@miradorlabs/web-grpc 4.21.0 → 4.23.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.
Files changed (36) hide show
  1. package/google/api/field_behavior.ts +1 -1
  2. package/google/protobuf/descriptor.ts +1 -1
  3. package/google/protobuf/duration.ts +1 -1
  4. package/google/protobuf/timestamp.ts +1 -1
  5. package/package.json +1 -1
  6. package/proto/gateway/common/v1/attribute_value.ts +1 -1
  7. package/proto/gateway/common/v1/status.ts +1 -1
  8. package/proto/gateway/common/v1/types.ts +1 -1
  9. package/proto/gateway/web/v1/account_gateway.ts +1448 -105
  10. package/proto/gateway/web/v1/account_gateway_grpc_pb.js +137 -0
  11. package/proto/gateway/web/v1/account_gateway_pb.js +2522 -39
  12. package/proto/gateway/web/v1/admin_gateway.ts +1 -1
  13. package/proto/gateway/web/v1/ai_gateway.ts +1 -1
  14. package/proto/gateway/web/v1/attribute_value.ts +1 -1
  15. package/proto/gateway/web/v1/beta_gateway.ts +1 -1
  16. package/proto/gateway/web/v1/chain_gateway.ts +1 -1
  17. package/proto/gateway/web/v1/claude_enterprise_gateway.ts +1 -1
  18. package/proto/gateway/web/v1/common.ts +1 -1
  19. package/proto/gateway/web/v1/derived_metric_gateway.ts +1 -1
  20. package/proto/gateway/web/v1/desktop_auth_gateway.ts +194 -1
  21. package/proto/gateway/web/v1/desktop_auth_gateway_grpc_pb.js +35 -0
  22. package/proto/gateway/web/v1/desktop_auth_gateway_pb.js +355 -0
  23. package/proto/gateway/web/v1/github_connector.ts +1 -1
  24. package/proto/gateway/web/v1/integration_gateway.ts +1 -1
  25. package/proto/gateway/web/v1/log_gateway.ts +1 -1
  26. package/proto/gateway/web/v1/market_gateway.ts +1 -1
  27. package/proto/gateway/web/v1/metric_gateway.ts +1 -1
  28. package/proto/gateway/web/v1/notification_gateway.ts +1 -1
  29. package/proto/gateway/web/v1/oauth_gateway.ts +1 -1
  30. package/proto/gateway/web/v1/plan_gateway.ts +1 -1
  31. package/proto/gateway/web/v1/policy_gateway.ts +1 -1
  32. package/proto/gateway/web/v1/reference_gateway.ts +1 -1
  33. package/proto/gateway/web/v1/rule_gateway.ts +1 -1
  34. package/proto/gateway/web/v1/slo_gateway.ts +1 -1
  35. package/proto/gateway/web/v1/trace_gateway.ts +1 -1
  36. package/proto/gateway/web/v1/trace_measure_gateway.ts +1 -1
@@ -25,6 +25,8 @@ goog.exportSymbol('proto.gateway.web.v1.AddDemoProjectRequest', null, global);
25
25
  goog.exportSymbol('proto.gateway.web.v1.AddDemoProjectResponse', null, global);
26
26
  goog.exportSymbol('proto.gateway.web.v1.ApproveMcpAuthorizationRequest', null, global);
27
27
  goog.exportSymbol('proto.gateway.web.v1.ApproveMcpAuthorizationResponse', null, global);
28
+ goog.exportSymbol('proto.gateway.web.v1.AssignProjectRoleRequest', null, global);
29
+ goog.exportSymbol('proto.gateway.web.v1.AssignProjectRoleResponse', null, global);
28
30
  goog.exportSymbol('proto.gateway.web.v1.AuthorizeCliLoginRequest', null, global);
29
31
  goog.exportSymbol('proto.gateway.web.v1.AuthorizeCliLoginResponse', null, global);
30
32
  goog.exportSymbol('proto.gateway.web.v1.CliSession', null, global);
@@ -56,6 +58,8 @@ goog.exportSymbol('proto.gateway.web.v1.ListCliSessionsRequest', null, global);
56
58
  goog.exportSymbol('proto.gateway.web.v1.ListCliSessionsResponse', null, global);
57
59
  goog.exportSymbol('proto.gateway.web.v1.ListInvitationsRequest', null, global);
58
60
  goog.exportSymbol('proto.gateway.web.v1.ListInvitationsResponse', null, global);
61
+ goog.exportSymbol('proto.gateway.web.v1.ListProjectRolesRequest', null, global);
62
+ goog.exportSymbol('proto.gateway.web.v1.ListProjectRolesResponse', null, global);
59
63
  goog.exportSymbol('proto.gateway.web.v1.ListProjectsRequest', null, global);
60
64
  goog.exportSymbol('proto.gateway.web.v1.ListProjectsResponse', null, global);
61
65
  goog.exportSymbol('proto.gateway.web.v1.ListServerApiKeysRequest', null, global);
@@ -75,14 +79,19 @@ goog.exportSymbol('proto.gateway.web.v1.OrganizationType', null, global);
75
79
  goog.exportSymbol('proto.gateway.web.v1.OrganizationUser', null, global);
76
80
  goog.exportSymbol('proto.gateway.web.v1.ProductFeatures', null, global);
77
81
  goog.exportSymbol('proto.gateway.web.v1.Project', null, global);
82
+ goog.exportSymbol('proto.gateway.web.v1.ProjectRole', null, global);
78
83
  goog.exportSymbol('proto.gateway.web.v1.ProjectStats', null, global);
79
84
  goog.exportSymbol('proto.gateway.web.v1.ProjectStatsSnapshot', null, global);
80
85
  goog.exportSymbol('proto.gateway.web.v1.ProjectStatsUpdate', null, global);
81
86
  goog.exportSymbol('proto.gateway.web.v1.ProjectStatus', null, global);
87
+ goog.exportSymbol('proto.gateway.web.v1.ProjectUser', null, global);
88
+ goog.exportSymbol('proto.gateway.web.v1.ProjectUserFilter', null, global);
82
89
  goog.exportSymbol('proto.gateway.web.v1.ProjectsStatsEnvelope', null, global);
83
90
  goog.exportSymbol('proto.gateway.web.v1.ProjectsStatsEnvelope.EventCase', null, global);
84
91
  goog.exportSymbol('proto.gateway.web.v1.RemoveDemoProjectRequest', null, global);
85
92
  goog.exportSymbol('proto.gateway.web.v1.RemoveDemoProjectResponse', null, global);
93
+ goog.exportSymbol('proto.gateway.web.v1.RemoveProjectRoleRequest', null, global);
94
+ goog.exportSymbol('proto.gateway.web.v1.RemoveProjectRoleResponse', null, global);
86
95
  goog.exportSymbol('proto.gateway.web.v1.RemoveUserRequest', null, global);
87
96
  goog.exportSymbol('proto.gateway.web.v1.RemoveUserResponse', null, global);
88
97
  goog.exportSymbol('proto.gateway.web.v1.ResendInviteRequest', null, global);
@@ -102,6 +111,8 @@ goog.exportSymbol('proto.gateway.web.v1.UpdateOrganizationRequest', null, global
102
111
  goog.exportSymbol('proto.gateway.web.v1.UpdateOrganizationResponse', null, global);
103
112
  goog.exportSymbol('proto.gateway.web.v1.UpdateProjectRequest', null, global);
104
113
  goog.exportSymbol('proto.gateway.web.v1.UpdateProjectResponse', null, global);
114
+ goog.exportSymbol('proto.gateway.web.v1.UpdateProjectRoleRequest', null, global);
115
+ goog.exportSymbol('proto.gateway.web.v1.UpdateProjectRoleResponse', null, global);
105
116
  goog.exportSymbol('proto.gateway.web.v1.UpdateServerApiKeyRequest', null, global);
106
117
  goog.exportSymbol('proto.gateway.web.v1.UpdateServerApiKeyRequest.ServerApiKeyUpdates', null, global);
107
118
  goog.exportSymbol('proto.gateway.web.v1.UpdateServerApiKeyResponse', null, global);
@@ -1190,6 +1201,216 @@ if (goog.DEBUG && !COMPILED) {
1190
1201
  */
1191
1202
  proto.gateway.web.v1.RemoveUserResponse.displayName = 'proto.gateway.web.v1.RemoveUserResponse';
1192
1203
  }
1204
+ /**
1205
+ * Generated by JsPbCodeGenerator.
1206
+ * @param {Array=} opt_data Optional initial data array, typically from a
1207
+ * server response, or constructed directly in Javascript. The array is used
1208
+ * in place and becomes part of the constructed object. It is not cloned.
1209
+ * If no data is provided, the constructed object will be empty, but still
1210
+ * valid.
1211
+ * @extends {jspb.Message}
1212
+ * @constructor
1213
+ */
1214
+ proto.gateway.web.v1.AssignProjectRoleRequest = function(opt_data) {
1215
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1216
+ };
1217
+ goog.inherits(proto.gateway.web.v1.AssignProjectRoleRequest, jspb.Message);
1218
+ if (goog.DEBUG && !COMPILED) {
1219
+ /**
1220
+ * @public
1221
+ * @override
1222
+ */
1223
+ proto.gateway.web.v1.AssignProjectRoleRequest.displayName = 'proto.gateway.web.v1.AssignProjectRoleRequest';
1224
+ }
1225
+ /**
1226
+ * Generated by JsPbCodeGenerator.
1227
+ * @param {Array=} opt_data Optional initial data array, typically from a
1228
+ * server response, or constructed directly in Javascript. The array is used
1229
+ * in place and becomes part of the constructed object. It is not cloned.
1230
+ * If no data is provided, the constructed object will be empty, but still
1231
+ * valid.
1232
+ * @extends {jspb.Message}
1233
+ * @constructor
1234
+ */
1235
+ proto.gateway.web.v1.AssignProjectRoleResponse = function(opt_data) {
1236
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1237
+ };
1238
+ goog.inherits(proto.gateway.web.v1.AssignProjectRoleResponse, jspb.Message);
1239
+ if (goog.DEBUG && !COMPILED) {
1240
+ /**
1241
+ * @public
1242
+ * @override
1243
+ */
1244
+ proto.gateway.web.v1.AssignProjectRoleResponse.displayName = 'proto.gateway.web.v1.AssignProjectRoleResponse';
1245
+ }
1246
+ /**
1247
+ * Generated by JsPbCodeGenerator.
1248
+ * @param {Array=} opt_data Optional initial data array, typically from a
1249
+ * server response, or constructed directly in Javascript. The array is used
1250
+ * in place and becomes part of the constructed object. It is not cloned.
1251
+ * If no data is provided, the constructed object will be empty, but still
1252
+ * valid.
1253
+ * @extends {jspb.Message}
1254
+ * @constructor
1255
+ */
1256
+ proto.gateway.web.v1.UpdateProjectRoleRequest = function(opt_data) {
1257
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1258
+ };
1259
+ goog.inherits(proto.gateway.web.v1.UpdateProjectRoleRequest, jspb.Message);
1260
+ if (goog.DEBUG && !COMPILED) {
1261
+ /**
1262
+ * @public
1263
+ * @override
1264
+ */
1265
+ proto.gateway.web.v1.UpdateProjectRoleRequest.displayName = 'proto.gateway.web.v1.UpdateProjectRoleRequest';
1266
+ }
1267
+ /**
1268
+ * Generated by JsPbCodeGenerator.
1269
+ * @param {Array=} opt_data Optional initial data array, typically from a
1270
+ * server response, or constructed directly in Javascript. The array is used
1271
+ * in place and becomes part of the constructed object. It is not cloned.
1272
+ * If no data is provided, the constructed object will be empty, but still
1273
+ * valid.
1274
+ * @extends {jspb.Message}
1275
+ * @constructor
1276
+ */
1277
+ proto.gateway.web.v1.UpdateProjectRoleResponse = function(opt_data) {
1278
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1279
+ };
1280
+ goog.inherits(proto.gateway.web.v1.UpdateProjectRoleResponse, jspb.Message);
1281
+ if (goog.DEBUG && !COMPILED) {
1282
+ /**
1283
+ * @public
1284
+ * @override
1285
+ */
1286
+ proto.gateway.web.v1.UpdateProjectRoleResponse.displayName = 'proto.gateway.web.v1.UpdateProjectRoleResponse';
1287
+ }
1288
+ /**
1289
+ * Generated by JsPbCodeGenerator.
1290
+ * @param {Array=} opt_data Optional initial data array, typically from a
1291
+ * server response, or constructed directly in Javascript. The array is used
1292
+ * in place and becomes part of the constructed object. It is not cloned.
1293
+ * If no data is provided, the constructed object will be empty, but still
1294
+ * valid.
1295
+ * @extends {jspb.Message}
1296
+ * @constructor
1297
+ */
1298
+ proto.gateway.web.v1.RemoveProjectRoleRequest = function(opt_data) {
1299
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1300
+ };
1301
+ goog.inherits(proto.gateway.web.v1.RemoveProjectRoleRequest, jspb.Message);
1302
+ if (goog.DEBUG && !COMPILED) {
1303
+ /**
1304
+ * @public
1305
+ * @override
1306
+ */
1307
+ proto.gateway.web.v1.RemoveProjectRoleRequest.displayName = 'proto.gateway.web.v1.RemoveProjectRoleRequest';
1308
+ }
1309
+ /**
1310
+ * Generated by JsPbCodeGenerator.
1311
+ * @param {Array=} opt_data Optional initial data array, typically from a
1312
+ * server response, or constructed directly in Javascript. The array is used
1313
+ * in place and becomes part of the constructed object. It is not cloned.
1314
+ * If no data is provided, the constructed object will be empty, but still
1315
+ * valid.
1316
+ * @extends {jspb.Message}
1317
+ * @constructor
1318
+ */
1319
+ proto.gateway.web.v1.RemoveProjectRoleResponse = function(opt_data) {
1320
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1321
+ };
1322
+ goog.inherits(proto.gateway.web.v1.RemoveProjectRoleResponse, jspb.Message);
1323
+ if (goog.DEBUG && !COMPILED) {
1324
+ /**
1325
+ * @public
1326
+ * @override
1327
+ */
1328
+ proto.gateway.web.v1.RemoveProjectRoleResponse.displayName = 'proto.gateway.web.v1.RemoveProjectRoleResponse';
1329
+ }
1330
+ /**
1331
+ * Generated by JsPbCodeGenerator.
1332
+ * @param {Array=} opt_data Optional initial data array, typically from a
1333
+ * server response, or constructed directly in Javascript. The array is used
1334
+ * in place and becomes part of the constructed object. It is not cloned.
1335
+ * If no data is provided, the constructed object will be empty, but still
1336
+ * valid.
1337
+ * @extends {jspb.Message}
1338
+ * @constructor
1339
+ */
1340
+ proto.gateway.web.v1.ListProjectRolesRequest = function(opt_data) {
1341
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1342
+ };
1343
+ goog.inherits(proto.gateway.web.v1.ListProjectRolesRequest, jspb.Message);
1344
+ if (goog.DEBUG && !COMPILED) {
1345
+ /**
1346
+ * @public
1347
+ * @override
1348
+ */
1349
+ proto.gateway.web.v1.ListProjectRolesRequest.displayName = 'proto.gateway.web.v1.ListProjectRolesRequest';
1350
+ }
1351
+ /**
1352
+ * Generated by JsPbCodeGenerator.
1353
+ * @param {Array=} opt_data Optional initial data array, typically from a
1354
+ * server response, or constructed directly in Javascript. The array is used
1355
+ * in place and becomes part of the constructed object. It is not cloned.
1356
+ * If no data is provided, the constructed object will be empty, but still
1357
+ * valid.
1358
+ * @extends {jspb.Message}
1359
+ * @constructor
1360
+ */
1361
+ proto.gateway.web.v1.ListProjectRolesResponse = function(opt_data) {
1362
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListProjectRolesResponse.repeatedFields_, null);
1363
+ };
1364
+ goog.inherits(proto.gateway.web.v1.ListProjectRolesResponse, jspb.Message);
1365
+ if (goog.DEBUG && !COMPILED) {
1366
+ /**
1367
+ * @public
1368
+ * @override
1369
+ */
1370
+ proto.gateway.web.v1.ListProjectRolesResponse.displayName = 'proto.gateway.web.v1.ListProjectRolesResponse';
1371
+ }
1372
+ /**
1373
+ * Generated by JsPbCodeGenerator.
1374
+ * @param {Array=} opt_data Optional initial data array, typically from a
1375
+ * server response, or constructed directly in Javascript. The array is used
1376
+ * in place and becomes part of the constructed object. It is not cloned.
1377
+ * If no data is provided, the constructed object will be empty, but still
1378
+ * valid.
1379
+ * @extends {jspb.Message}
1380
+ * @constructor
1381
+ */
1382
+ proto.gateway.web.v1.ProjectUserFilter = function(opt_data) {
1383
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ProjectUserFilter.repeatedFields_, null);
1384
+ };
1385
+ goog.inherits(proto.gateway.web.v1.ProjectUserFilter, jspb.Message);
1386
+ if (goog.DEBUG && !COMPILED) {
1387
+ /**
1388
+ * @public
1389
+ * @override
1390
+ */
1391
+ proto.gateway.web.v1.ProjectUserFilter.displayName = 'proto.gateway.web.v1.ProjectUserFilter';
1392
+ }
1393
+ /**
1394
+ * Generated by JsPbCodeGenerator.
1395
+ * @param {Array=} opt_data Optional initial data array, typically from a
1396
+ * server response, or constructed directly in Javascript. The array is used
1397
+ * in place and becomes part of the constructed object. It is not cloned.
1398
+ * If no data is provided, the constructed object will be empty, but still
1399
+ * valid.
1400
+ * @extends {jspb.Message}
1401
+ * @constructor
1402
+ */
1403
+ proto.gateway.web.v1.ProjectUser = function(opt_data) {
1404
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1405
+ };
1406
+ goog.inherits(proto.gateway.web.v1.ProjectUser, jspb.Message);
1407
+ if (goog.DEBUG && !COMPILED) {
1408
+ /**
1409
+ * @public
1410
+ * @override
1411
+ */
1412
+ proto.gateway.web.v1.ProjectUser.displayName = 'proto.gateway.web.v1.ProjectUser';
1413
+ }
1193
1414
  /**
1194
1415
  * Generated by JsPbCodeGenerator.
1195
1416
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -13074,8 +13295,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
13074
13295
  * http://goto/soy-param-migration
13075
13296
  * @return {!Object}
13076
13297
  */
13077
- proto.gateway.web.v1.ListInvitationsRequest.prototype.toObject = function(opt_includeInstance) {
13078
- return proto.gateway.web.v1.ListInvitationsRequest.toObject(opt_includeInstance, this);
13298
+ proto.gateway.web.v1.AssignProjectRoleRequest.prototype.toObject = function(opt_includeInstance) {
13299
+ return proto.gateway.web.v1.AssignProjectRoleRequest.toObject(opt_includeInstance, this);
13079
13300
  };
13080
13301
 
13081
13302
 
@@ -13084,13 +13305,16 @@ proto.gateway.web.v1.ListInvitationsRequest.prototype.toObject = function(opt_in
13084
13305
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
13085
13306
  * the JSPB instance for transitional soy proto support:
13086
13307
  * http://goto/soy-param-migration
13087
- * @param {!proto.gateway.web.v1.ListInvitationsRequest} msg The msg instance to transform.
13308
+ * @param {!proto.gateway.web.v1.AssignProjectRoleRequest} msg The msg instance to transform.
13088
13309
  * @return {!Object}
13089
13310
  * @suppress {unusedLocalVariables} f is only used for nested messages
13090
13311
  */
13091
- proto.gateway.web.v1.ListInvitationsRequest.toObject = function(includeInstance, msg) {
13312
+ proto.gateway.web.v1.AssignProjectRoleRequest.toObject = function(includeInstance, msg) {
13092
13313
  var f, obj = {
13093
- organizationId: jspb.Message.getFieldWithDefault(msg, 1, "")
13314
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
13315
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
13316
+ userId: jspb.Message.getFieldWithDefault(msg, 3, ""),
13317
+ role: jspb.Message.getFieldWithDefault(msg, 4, 0)
13094
13318
  };
13095
13319
 
13096
13320
  if (includeInstance) {
@@ -13104,23 +13328,23 @@ organizationId: jspb.Message.getFieldWithDefault(msg, 1, "")
13104
13328
  /**
13105
13329
  * Deserializes binary data (in protobuf wire format).
13106
13330
  * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
13107
- * @return {!proto.gateway.web.v1.ListInvitationsRequest}
13331
+ * @return {!proto.gateway.web.v1.AssignProjectRoleRequest}
13108
13332
  */
13109
- proto.gateway.web.v1.ListInvitationsRequest.deserializeBinary = function(bytes) {
13333
+ proto.gateway.web.v1.AssignProjectRoleRequest.deserializeBinary = function(bytes) {
13110
13334
  var reader = new jspb.BinaryReader(bytes);
13111
- var msg = new proto.gateway.web.v1.ListInvitationsRequest;
13112
- return proto.gateway.web.v1.ListInvitationsRequest.deserializeBinaryFromReader(msg, reader);
13335
+ var msg = new proto.gateway.web.v1.AssignProjectRoleRequest;
13336
+ return proto.gateway.web.v1.AssignProjectRoleRequest.deserializeBinaryFromReader(msg, reader);
13113
13337
  };
13114
13338
 
13115
13339
 
13116
13340
  /**
13117
13341
  * Deserializes binary data (in protobuf wire format) from the
13118
13342
  * given reader into the given message object.
13119
- * @param {!proto.gateway.web.v1.ListInvitationsRequest} msg The message object to deserialize into.
13343
+ * @param {!proto.gateway.web.v1.AssignProjectRoleRequest} msg The message object to deserialize into.
13120
13344
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
13121
- * @return {!proto.gateway.web.v1.ListInvitationsRequest}
13345
+ * @return {!proto.gateway.web.v1.AssignProjectRoleRequest}
13122
13346
  */
13123
- proto.gateway.web.v1.ListInvitationsRequest.deserializeBinaryFromReader = function(msg, reader) {
13347
+ proto.gateway.web.v1.AssignProjectRoleRequest.deserializeBinaryFromReader = function(msg, reader) {
13124
13348
  while (reader.nextField()) {
13125
13349
  if (reader.isEndGroup()) {
13126
13350
  break;
@@ -13131,6 +13355,18 @@ proto.gateway.web.v1.ListInvitationsRequest.deserializeBinaryFromReader = functi
13131
13355
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
13132
13356
  msg.setOrganizationId(value);
13133
13357
  break;
13358
+ case 2:
13359
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
13360
+ msg.setProjectId(value);
13361
+ break;
13362
+ case 3:
13363
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
13364
+ msg.setUserId(value);
13365
+ break;
13366
+ case 4:
13367
+ var value = /** @type {!proto.gateway.web.v1.ProjectRole} */ (reader.readEnum());
13368
+ msg.setRole(value);
13369
+ break;
13134
13370
  default:
13135
13371
  reader.skipField();
13136
13372
  break;
@@ -13144,9 +13380,9 @@ proto.gateway.web.v1.ListInvitationsRequest.deserializeBinaryFromReader = functi
13144
13380
  * Serializes the message to binary data (in protobuf wire format).
13145
13381
  * @return {!Uint8Array}
13146
13382
  */
13147
- proto.gateway.web.v1.ListInvitationsRequest.prototype.serializeBinary = function() {
13383
+ proto.gateway.web.v1.AssignProjectRoleRequest.prototype.serializeBinary = function() {
13148
13384
  var writer = new jspb.BinaryWriter();
13149
- proto.gateway.web.v1.ListInvitationsRequest.serializeBinaryToWriter(this, writer);
13385
+ proto.gateway.web.v1.AssignProjectRoleRequest.serializeBinaryToWriter(this, writer);
13150
13386
  return writer.getResultBuffer();
13151
13387
  };
13152
13388
 
@@ -13154,11 +13390,11 @@ proto.gateway.web.v1.ListInvitationsRequest.prototype.serializeBinary = function
13154
13390
  /**
13155
13391
  * Serializes the given message to binary data (in protobuf wire
13156
13392
  * format), writing to the given BinaryWriter.
13157
- * @param {!proto.gateway.web.v1.ListInvitationsRequest} message
13393
+ * @param {!proto.gateway.web.v1.AssignProjectRoleRequest} message
13158
13394
  * @param {!jspb.BinaryWriter} writer
13159
13395
  * @suppress {unusedLocalVariables} f is only used for nested messages
13160
13396
  */
13161
- proto.gateway.web.v1.ListInvitationsRequest.serializeBinaryToWriter = function(message, writer) {
13397
+ proto.gateway.web.v1.AssignProjectRoleRequest.serializeBinaryToWriter = function(message, writer) {
13162
13398
  var f = undefined;
13163
13399
  f = message.getOrganizationId();
13164
13400
  if (f.length > 0) {
@@ -13167,6 +13403,27 @@ proto.gateway.web.v1.ListInvitationsRequest.serializeBinaryToWriter = function(m
13167
13403
  f
13168
13404
  );
13169
13405
  }
13406
+ f = message.getProjectId();
13407
+ if (f.length > 0) {
13408
+ writer.writeString(
13409
+ 2,
13410
+ f
13411
+ );
13412
+ }
13413
+ f = message.getUserId();
13414
+ if (f.length > 0) {
13415
+ writer.writeString(
13416
+ 3,
13417
+ f
13418
+ );
13419
+ }
13420
+ f = message.getRole();
13421
+ if (f !== 0.0) {
13422
+ writer.writeEnum(
13423
+ 4,
13424
+ f
13425
+ );
13426
+ }
13170
13427
  };
13171
13428
 
13172
13429
 
@@ -13174,45 +13431,2232 @@ proto.gateway.web.v1.ListInvitationsRequest.serializeBinaryToWriter = function(m
13174
13431
  * optional string organization_id = 1;
13175
13432
  * @return {string}
13176
13433
  */
13177
- proto.gateway.web.v1.ListInvitationsRequest.prototype.getOrganizationId = function() {
13434
+ proto.gateway.web.v1.AssignProjectRoleRequest.prototype.getOrganizationId = function() {
13178
13435
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
13179
13436
  };
13180
13437
 
13181
13438
 
13182
13439
  /**
13183
13440
  * @param {string} value
13184
- * @return {!proto.gateway.web.v1.ListInvitationsRequest} returns this
13441
+ * @return {!proto.gateway.web.v1.AssignProjectRoleRequest} returns this
13185
13442
  */
13186
- proto.gateway.web.v1.ListInvitationsRequest.prototype.setOrganizationId = function(value) {
13443
+ proto.gateway.web.v1.AssignProjectRoleRequest.prototype.setOrganizationId = function(value) {
13187
13444
  return jspb.Message.setProto3StringField(this, 1, value);
13188
13445
  };
13189
13446
 
13190
13447
 
13191
-
13192
13448
  /**
13193
- * List of repeated fields within this message type.
13194
- * @private {!Array<number>}
13195
- * @const
13449
+ * optional string project_id = 2;
13450
+ * @return {string}
13196
13451
  */
13197
- proto.gateway.web.v1.ListInvitationsResponse.repeatedFields_ = [2];
13198
-
13452
+ proto.gateway.web.v1.AssignProjectRoleRequest.prototype.getProjectId = function() {
13453
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
13454
+ };
13199
13455
 
13200
13456
 
13201
- if (jspb.Message.GENERATE_TO_OBJECT) {
13202
13457
  /**
13203
- * Creates an object representation of this proto.
13204
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
13205
- * Optional fields that are not set will be set to undefined.
13206
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
13207
- * For the list of reserved names please see:
13208
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
13209
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
13210
- * JSPB instance for transitional soy proto support:
13211
- * http://goto/soy-param-migration
13212
- * @return {!Object}
13458
+ * @param {string} value
13459
+ * @return {!proto.gateway.web.v1.AssignProjectRoleRequest} returns this
13213
13460
  */
13214
- proto.gateway.web.v1.ListInvitationsResponse.prototype.toObject = function(opt_includeInstance) {
13215
- return proto.gateway.web.v1.ListInvitationsResponse.toObject(opt_includeInstance, this);
13461
+ proto.gateway.web.v1.AssignProjectRoleRequest.prototype.setProjectId = function(value) {
13462
+ return jspb.Message.setProto3StringField(this, 2, value);
13463
+ };
13464
+
13465
+
13466
+ /**
13467
+ * optional string user_id = 3;
13468
+ * @return {string}
13469
+ */
13470
+ proto.gateway.web.v1.AssignProjectRoleRequest.prototype.getUserId = function() {
13471
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
13472
+ };
13473
+
13474
+
13475
+ /**
13476
+ * @param {string} value
13477
+ * @return {!proto.gateway.web.v1.AssignProjectRoleRequest} returns this
13478
+ */
13479
+ proto.gateway.web.v1.AssignProjectRoleRequest.prototype.setUserId = function(value) {
13480
+ return jspb.Message.setProto3StringField(this, 3, value);
13481
+ };
13482
+
13483
+
13484
+ /**
13485
+ * optional ProjectRole role = 4;
13486
+ * @return {!proto.gateway.web.v1.ProjectRole}
13487
+ */
13488
+ proto.gateway.web.v1.AssignProjectRoleRequest.prototype.getRole = function() {
13489
+ return /** @type {!proto.gateway.web.v1.ProjectRole} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
13490
+ };
13491
+
13492
+
13493
+ /**
13494
+ * @param {!proto.gateway.web.v1.ProjectRole} value
13495
+ * @return {!proto.gateway.web.v1.AssignProjectRoleRequest} returns this
13496
+ */
13497
+ proto.gateway.web.v1.AssignProjectRoleRequest.prototype.setRole = function(value) {
13498
+ return jspb.Message.setProto3EnumField(this, 4, value);
13499
+ };
13500
+
13501
+
13502
+
13503
+
13504
+
13505
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13506
+ /**
13507
+ * Creates an object representation of this proto.
13508
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
13509
+ * Optional fields that are not set will be set to undefined.
13510
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
13511
+ * For the list of reserved names please see:
13512
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
13513
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
13514
+ * JSPB instance for transitional soy proto support:
13515
+ * http://goto/soy-param-migration
13516
+ * @return {!Object}
13517
+ */
13518
+ proto.gateway.web.v1.AssignProjectRoleResponse.prototype.toObject = function(opt_includeInstance) {
13519
+ return proto.gateway.web.v1.AssignProjectRoleResponse.toObject(opt_includeInstance, this);
13520
+ };
13521
+
13522
+
13523
+ /**
13524
+ * Static version of the {@see toObject} method.
13525
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
13526
+ * the JSPB instance for transitional soy proto support:
13527
+ * http://goto/soy-param-migration
13528
+ * @param {!proto.gateway.web.v1.AssignProjectRoleResponse} msg The msg instance to transform.
13529
+ * @return {!Object}
13530
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13531
+ */
13532
+ proto.gateway.web.v1.AssignProjectRoleResponse.toObject = function(includeInstance, msg) {
13533
+ var f, obj = {
13534
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
13535
+ projectUser: (f = msg.getProjectUser()) && proto.gateway.web.v1.ProjectUser.toObject(includeInstance, f)
13536
+ };
13537
+
13538
+ if (includeInstance) {
13539
+ obj.$jspbMessageInstance = msg;
13540
+ }
13541
+ return obj;
13542
+ };
13543
+ }
13544
+
13545
+
13546
+ /**
13547
+ * Deserializes binary data (in protobuf wire format).
13548
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
13549
+ * @return {!proto.gateway.web.v1.AssignProjectRoleResponse}
13550
+ */
13551
+ proto.gateway.web.v1.AssignProjectRoleResponse.deserializeBinary = function(bytes) {
13552
+ var reader = new jspb.BinaryReader(bytes);
13553
+ var msg = new proto.gateway.web.v1.AssignProjectRoleResponse;
13554
+ return proto.gateway.web.v1.AssignProjectRoleResponse.deserializeBinaryFromReader(msg, reader);
13555
+ };
13556
+
13557
+
13558
+ /**
13559
+ * Deserializes binary data (in protobuf wire format) from the
13560
+ * given reader into the given message object.
13561
+ * @param {!proto.gateway.web.v1.AssignProjectRoleResponse} msg The message object to deserialize into.
13562
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
13563
+ * @return {!proto.gateway.web.v1.AssignProjectRoleResponse}
13564
+ */
13565
+ proto.gateway.web.v1.AssignProjectRoleResponse.deserializeBinaryFromReader = function(msg, reader) {
13566
+ while (reader.nextField()) {
13567
+ if (reader.isEndGroup()) {
13568
+ break;
13569
+ }
13570
+ var field = reader.getFieldNumber();
13571
+ switch (field) {
13572
+ case 1:
13573
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
13574
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
13575
+ msg.setStatus(value);
13576
+ break;
13577
+ case 2:
13578
+ var value = new proto.gateway.web.v1.ProjectUser;
13579
+ reader.readMessage(value,proto.gateway.web.v1.ProjectUser.deserializeBinaryFromReader);
13580
+ msg.setProjectUser(value);
13581
+ break;
13582
+ default:
13583
+ reader.skipField();
13584
+ break;
13585
+ }
13586
+ }
13587
+ return msg;
13588
+ };
13589
+
13590
+
13591
+ /**
13592
+ * Serializes the message to binary data (in protobuf wire format).
13593
+ * @return {!Uint8Array}
13594
+ */
13595
+ proto.gateway.web.v1.AssignProjectRoleResponse.prototype.serializeBinary = function() {
13596
+ var writer = new jspb.BinaryWriter();
13597
+ proto.gateway.web.v1.AssignProjectRoleResponse.serializeBinaryToWriter(this, writer);
13598
+ return writer.getResultBuffer();
13599
+ };
13600
+
13601
+
13602
+ /**
13603
+ * Serializes the given message to binary data (in protobuf wire
13604
+ * format), writing to the given BinaryWriter.
13605
+ * @param {!proto.gateway.web.v1.AssignProjectRoleResponse} message
13606
+ * @param {!jspb.BinaryWriter} writer
13607
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13608
+ */
13609
+ proto.gateway.web.v1.AssignProjectRoleResponse.serializeBinaryToWriter = function(message, writer) {
13610
+ var f = undefined;
13611
+ f = message.getStatus();
13612
+ if (f != null) {
13613
+ writer.writeMessage(
13614
+ 1,
13615
+ f,
13616
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
13617
+ );
13618
+ }
13619
+ f = message.getProjectUser();
13620
+ if (f != null) {
13621
+ writer.writeMessage(
13622
+ 2,
13623
+ f,
13624
+ proto.gateway.web.v1.ProjectUser.serializeBinaryToWriter
13625
+ );
13626
+ }
13627
+ };
13628
+
13629
+
13630
+ /**
13631
+ * optional gateway.common.v1.ResponseStatus status = 1;
13632
+ * @return {?proto.gateway.common.v1.ResponseStatus}
13633
+ */
13634
+ proto.gateway.web.v1.AssignProjectRoleResponse.prototype.getStatus = function() {
13635
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
13636
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
13637
+ };
13638
+
13639
+
13640
+ /**
13641
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
13642
+ * @return {!proto.gateway.web.v1.AssignProjectRoleResponse} returns this
13643
+ */
13644
+ proto.gateway.web.v1.AssignProjectRoleResponse.prototype.setStatus = function(value) {
13645
+ return jspb.Message.setWrapperField(this, 1, value);
13646
+ };
13647
+
13648
+
13649
+ /**
13650
+ * Clears the message field making it undefined.
13651
+ * @return {!proto.gateway.web.v1.AssignProjectRoleResponse} returns this
13652
+ */
13653
+ proto.gateway.web.v1.AssignProjectRoleResponse.prototype.clearStatus = function() {
13654
+ return this.setStatus(undefined);
13655
+ };
13656
+
13657
+
13658
+ /**
13659
+ * Returns whether this field is set.
13660
+ * @return {boolean}
13661
+ */
13662
+ proto.gateway.web.v1.AssignProjectRoleResponse.prototype.hasStatus = function() {
13663
+ return jspb.Message.getField(this, 1) != null;
13664
+ };
13665
+
13666
+
13667
+ /**
13668
+ * optional ProjectUser project_user = 2;
13669
+ * @return {?proto.gateway.web.v1.ProjectUser}
13670
+ */
13671
+ proto.gateway.web.v1.AssignProjectRoleResponse.prototype.getProjectUser = function() {
13672
+ return /** @type{?proto.gateway.web.v1.ProjectUser} */ (
13673
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.ProjectUser, 2));
13674
+ };
13675
+
13676
+
13677
+ /**
13678
+ * @param {?proto.gateway.web.v1.ProjectUser|undefined} value
13679
+ * @return {!proto.gateway.web.v1.AssignProjectRoleResponse} returns this
13680
+ */
13681
+ proto.gateway.web.v1.AssignProjectRoleResponse.prototype.setProjectUser = function(value) {
13682
+ return jspb.Message.setWrapperField(this, 2, value);
13683
+ };
13684
+
13685
+
13686
+ /**
13687
+ * Clears the message field making it undefined.
13688
+ * @return {!proto.gateway.web.v1.AssignProjectRoleResponse} returns this
13689
+ */
13690
+ proto.gateway.web.v1.AssignProjectRoleResponse.prototype.clearProjectUser = function() {
13691
+ return this.setProjectUser(undefined);
13692
+ };
13693
+
13694
+
13695
+ /**
13696
+ * Returns whether this field is set.
13697
+ * @return {boolean}
13698
+ */
13699
+ proto.gateway.web.v1.AssignProjectRoleResponse.prototype.hasProjectUser = function() {
13700
+ return jspb.Message.getField(this, 2) != null;
13701
+ };
13702
+
13703
+
13704
+
13705
+
13706
+
13707
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13708
+ /**
13709
+ * Creates an object representation of this proto.
13710
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
13711
+ * Optional fields that are not set will be set to undefined.
13712
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
13713
+ * For the list of reserved names please see:
13714
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
13715
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
13716
+ * JSPB instance for transitional soy proto support:
13717
+ * http://goto/soy-param-migration
13718
+ * @return {!Object}
13719
+ */
13720
+ proto.gateway.web.v1.UpdateProjectRoleRequest.prototype.toObject = function(opt_includeInstance) {
13721
+ return proto.gateway.web.v1.UpdateProjectRoleRequest.toObject(opt_includeInstance, this);
13722
+ };
13723
+
13724
+
13725
+ /**
13726
+ * Static version of the {@see toObject} method.
13727
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
13728
+ * the JSPB instance for transitional soy proto support:
13729
+ * http://goto/soy-param-migration
13730
+ * @param {!proto.gateway.web.v1.UpdateProjectRoleRequest} msg The msg instance to transform.
13731
+ * @return {!Object}
13732
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13733
+ */
13734
+ proto.gateway.web.v1.UpdateProjectRoleRequest.toObject = function(includeInstance, msg) {
13735
+ var f, obj = {
13736
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
13737
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
13738
+ userId: jspb.Message.getFieldWithDefault(msg, 3, ""),
13739
+ role: jspb.Message.getFieldWithDefault(msg, 4, 0)
13740
+ };
13741
+
13742
+ if (includeInstance) {
13743
+ obj.$jspbMessageInstance = msg;
13744
+ }
13745
+ return obj;
13746
+ };
13747
+ }
13748
+
13749
+
13750
+ /**
13751
+ * Deserializes binary data (in protobuf wire format).
13752
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
13753
+ * @return {!proto.gateway.web.v1.UpdateProjectRoleRequest}
13754
+ */
13755
+ proto.gateway.web.v1.UpdateProjectRoleRequest.deserializeBinary = function(bytes) {
13756
+ var reader = new jspb.BinaryReader(bytes);
13757
+ var msg = new proto.gateway.web.v1.UpdateProjectRoleRequest;
13758
+ return proto.gateway.web.v1.UpdateProjectRoleRequest.deserializeBinaryFromReader(msg, reader);
13759
+ };
13760
+
13761
+
13762
+ /**
13763
+ * Deserializes binary data (in protobuf wire format) from the
13764
+ * given reader into the given message object.
13765
+ * @param {!proto.gateway.web.v1.UpdateProjectRoleRequest} msg The message object to deserialize into.
13766
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
13767
+ * @return {!proto.gateway.web.v1.UpdateProjectRoleRequest}
13768
+ */
13769
+ proto.gateway.web.v1.UpdateProjectRoleRequest.deserializeBinaryFromReader = function(msg, reader) {
13770
+ while (reader.nextField()) {
13771
+ if (reader.isEndGroup()) {
13772
+ break;
13773
+ }
13774
+ var field = reader.getFieldNumber();
13775
+ switch (field) {
13776
+ case 1:
13777
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
13778
+ msg.setOrganizationId(value);
13779
+ break;
13780
+ case 2:
13781
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
13782
+ msg.setProjectId(value);
13783
+ break;
13784
+ case 3:
13785
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
13786
+ msg.setUserId(value);
13787
+ break;
13788
+ case 4:
13789
+ var value = /** @type {!proto.gateway.web.v1.ProjectRole} */ (reader.readEnum());
13790
+ msg.setRole(value);
13791
+ break;
13792
+ default:
13793
+ reader.skipField();
13794
+ break;
13795
+ }
13796
+ }
13797
+ return msg;
13798
+ };
13799
+
13800
+
13801
+ /**
13802
+ * Serializes the message to binary data (in protobuf wire format).
13803
+ * @return {!Uint8Array}
13804
+ */
13805
+ proto.gateway.web.v1.UpdateProjectRoleRequest.prototype.serializeBinary = function() {
13806
+ var writer = new jspb.BinaryWriter();
13807
+ proto.gateway.web.v1.UpdateProjectRoleRequest.serializeBinaryToWriter(this, writer);
13808
+ return writer.getResultBuffer();
13809
+ };
13810
+
13811
+
13812
+ /**
13813
+ * Serializes the given message to binary data (in protobuf wire
13814
+ * format), writing to the given BinaryWriter.
13815
+ * @param {!proto.gateway.web.v1.UpdateProjectRoleRequest} message
13816
+ * @param {!jspb.BinaryWriter} writer
13817
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13818
+ */
13819
+ proto.gateway.web.v1.UpdateProjectRoleRequest.serializeBinaryToWriter = function(message, writer) {
13820
+ var f = undefined;
13821
+ f = message.getOrganizationId();
13822
+ if (f.length > 0) {
13823
+ writer.writeString(
13824
+ 1,
13825
+ f
13826
+ );
13827
+ }
13828
+ f = message.getProjectId();
13829
+ if (f.length > 0) {
13830
+ writer.writeString(
13831
+ 2,
13832
+ f
13833
+ );
13834
+ }
13835
+ f = message.getUserId();
13836
+ if (f.length > 0) {
13837
+ writer.writeString(
13838
+ 3,
13839
+ f
13840
+ );
13841
+ }
13842
+ f = message.getRole();
13843
+ if (f !== 0.0) {
13844
+ writer.writeEnum(
13845
+ 4,
13846
+ f
13847
+ );
13848
+ }
13849
+ };
13850
+
13851
+
13852
+ /**
13853
+ * optional string organization_id = 1;
13854
+ * @return {string}
13855
+ */
13856
+ proto.gateway.web.v1.UpdateProjectRoleRequest.prototype.getOrganizationId = function() {
13857
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
13858
+ };
13859
+
13860
+
13861
+ /**
13862
+ * @param {string} value
13863
+ * @return {!proto.gateway.web.v1.UpdateProjectRoleRequest} returns this
13864
+ */
13865
+ proto.gateway.web.v1.UpdateProjectRoleRequest.prototype.setOrganizationId = function(value) {
13866
+ return jspb.Message.setProto3StringField(this, 1, value);
13867
+ };
13868
+
13869
+
13870
+ /**
13871
+ * optional string project_id = 2;
13872
+ * @return {string}
13873
+ */
13874
+ proto.gateway.web.v1.UpdateProjectRoleRequest.prototype.getProjectId = function() {
13875
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
13876
+ };
13877
+
13878
+
13879
+ /**
13880
+ * @param {string} value
13881
+ * @return {!proto.gateway.web.v1.UpdateProjectRoleRequest} returns this
13882
+ */
13883
+ proto.gateway.web.v1.UpdateProjectRoleRequest.prototype.setProjectId = function(value) {
13884
+ return jspb.Message.setProto3StringField(this, 2, value);
13885
+ };
13886
+
13887
+
13888
+ /**
13889
+ * optional string user_id = 3;
13890
+ * @return {string}
13891
+ */
13892
+ proto.gateway.web.v1.UpdateProjectRoleRequest.prototype.getUserId = function() {
13893
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
13894
+ };
13895
+
13896
+
13897
+ /**
13898
+ * @param {string} value
13899
+ * @return {!proto.gateway.web.v1.UpdateProjectRoleRequest} returns this
13900
+ */
13901
+ proto.gateway.web.v1.UpdateProjectRoleRequest.prototype.setUserId = function(value) {
13902
+ return jspb.Message.setProto3StringField(this, 3, value);
13903
+ };
13904
+
13905
+
13906
+ /**
13907
+ * optional ProjectRole role = 4;
13908
+ * @return {!proto.gateway.web.v1.ProjectRole}
13909
+ */
13910
+ proto.gateway.web.v1.UpdateProjectRoleRequest.prototype.getRole = function() {
13911
+ return /** @type {!proto.gateway.web.v1.ProjectRole} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
13912
+ };
13913
+
13914
+
13915
+ /**
13916
+ * @param {!proto.gateway.web.v1.ProjectRole} value
13917
+ * @return {!proto.gateway.web.v1.UpdateProjectRoleRequest} returns this
13918
+ */
13919
+ proto.gateway.web.v1.UpdateProjectRoleRequest.prototype.setRole = function(value) {
13920
+ return jspb.Message.setProto3EnumField(this, 4, value);
13921
+ };
13922
+
13923
+
13924
+
13925
+
13926
+
13927
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13928
+ /**
13929
+ * Creates an object representation of this proto.
13930
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
13931
+ * Optional fields that are not set will be set to undefined.
13932
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
13933
+ * For the list of reserved names please see:
13934
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
13935
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
13936
+ * JSPB instance for transitional soy proto support:
13937
+ * http://goto/soy-param-migration
13938
+ * @return {!Object}
13939
+ */
13940
+ proto.gateway.web.v1.UpdateProjectRoleResponse.prototype.toObject = function(opt_includeInstance) {
13941
+ return proto.gateway.web.v1.UpdateProjectRoleResponse.toObject(opt_includeInstance, this);
13942
+ };
13943
+
13944
+
13945
+ /**
13946
+ * Static version of the {@see toObject} method.
13947
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
13948
+ * the JSPB instance for transitional soy proto support:
13949
+ * http://goto/soy-param-migration
13950
+ * @param {!proto.gateway.web.v1.UpdateProjectRoleResponse} msg The msg instance to transform.
13951
+ * @return {!Object}
13952
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13953
+ */
13954
+ proto.gateway.web.v1.UpdateProjectRoleResponse.toObject = function(includeInstance, msg) {
13955
+ var f, obj = {
13956
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
13957
+ projectUser: (f = msg.getProjectUser()) && proto.gateway.web.v1.ProjectUser.toObject(includeInstance, f)
13958
+ };
13959
+
13960
+ if (includeInstance) {
13961
+ obj.$jspbMessageInstance = msg;
13962
+ }
13963
+ return obj;
13964
+ };
13965
+ }
13966
+
13967
+
13968
+ /**
13969
+ * Deserializes binary data (in protobuf wire format).
13970
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
13971
+ * @return {!proto.gateway.web.v1.UpdateProjectRoleResponse}
13972
+ */
13973
+ proto.gateway.web.v1.UpdateProjectRoleResponse.deserializeBinary = function(bytes) {
13974
+ var reader = new jspb.BinaryReader(bytes);
13975
+ var msg = new proto.gateway.web.v1.UpdateProjectRoleResponse;
13976
+ return proto.gateway.web.v1.UpdateProjectRoleResponse.deserializeBinaryFromReader(msg, reader);
13977
+ };
13978
+
13979
+
13980
+ /**
13981
+ * Deserializes binary data (in protobuf wire format) from the
13982
+ * given reader into the given message object.
13983
+ * @param {!proto.gateway.web.v1.UpdateProjectRoleResponse} msg The message object to deserialize into.
13984
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
13985
+ * @return {!proto.gateway.web.v1.UpdateProjectRoleResponse}
13986
+ */
13987
+ proto.gateway.web.v1.UpdateProjectRoleResponse.deserializeBinaryFromReader = function(msg, reader) {
13988
+ while (reader.nextField()) {
13989
+ if (reader.isEndGroup()) {
13990
+ break;
13991
+ }
13992
+ var field = reader.getFieldNumber();
13993
+ switch (field) {
13994
+ case 1:
13995
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
13996
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
13997
+ msg.setStatus(value);
13998
+ break;
13999
+ case 2:
14000
+ var value = new proto.gateway.web.v1.ProjectUser;
14001
+ reader.readMessage(value,proto.gateway.web.v1.ProjectUser.deserializeBinaryFromReader);
14002
+ msg.setProjectUser(value);
14003
+ break;
14004
+ default:
14005
+ reader.skipField();
14006
+ break;
14007
+ }
14008
+ }
14009
+ return msg;
14010
+ };
14011
+
14012
+
14013
+ /**
14014
+ * Serializes the message to binary data (in protobuf wire format).
14015
+ * @return {!Uint8Array}
14016
+ */
14017
+ proto.gateway.web.v1.UpdateProjectRoleResponse.prototype.serializeBinary = function() {
14018
+ var writer = new jspb.BinaryWriter();
14019
+ proto.gateway.web.v1.UpdateProjectRoleResponse.serializeBinaryToWriter(this, writer);
14020
+ return writer.getResultBuffer();
14021
+ };
14022
+
14023
+
14024
+ /**
14025
+ * Serializes the given message to binary data (in protobuf wire
14026
+ * format), writing to the given BinaryWriter.
14027
+ * @param {!proto.gateway.web.v1.UpdateProjectRoleResponse} message
14028
+ * @param {!jspb.BinaryWriter} writer
14029
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14030
+ */
14031
+ proto.gateway.web.v1.UpdateProjectRoleResponse.serializeBinaryToWriter = function(message, writer) {
14032
+ var f = undefined;
14033
+ f = message.getStatus();
14034
+ if (f != null) {
14035
+ writer.writeMessage(
14036
+ 1,
14037
+ f,
14038
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
14039
+ );
14040
+ }
14041
+ f = message.getProjectUser();
14042
+ if (f != null) {
14043
+ writer.writeMessage(
14044
+ 2,
14045
+ f,
14046
+ proto.gateway.web.v1.ProjectUser.serializeBinaryToWriter
14047
+ );
14048
+ }
14049
+ };
14050
+
14051
+
14052
+ /**
14053
+ * optional gateway.common.v1.ResponseStatus status = 1;
14054
+ * @return {?proto.gateway.common.v1.ResponseStatus}
14055
+ */
14056
+ proto.gateway.web.v1.UpdateProjectRoleResponse.prototype.getStatus = function() {
14057
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
14058
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
14059
+ };
14060
+
14061
+
14062
+ /**
14063
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
14064
+ * @return {!proto.gateway.web.v1.UpdateProjectRoleResponse} returns this
14065
+ */
14066
+ proto.gateway.web.v1.UpdateProjectRoleResponse.prototype.setStatus = function(value) {
14067
+ return jspb.Message.setWrapperField(this, 1, value);
14068
+ };
14069
+
14070
+
14071
+ /**
14072
+ * Clears the message field making it undefined.
14073
+ * @return {!proto.gateway.web.v1.UpdateProjectRoleResponse} returns this
14074
+ */
14075
+ proto.gateway.web.v1.UpdateProjectRoleResponse.prototype.clearStatus = function() {
14076
+ return this.setStatus(undefined);
14077
+ };
14078
+
14079
+
14080
+ /**
14081
+ * Returns whether this field is set.
14082
+ * @return {boolean}
14083
+ */
14084
+ proto.gateway.web.v1.UpdateProjectRoleResponse.prototype.hasStatus = function() {
14085
+ return jspb.Message.getField(this, 1) != null;
14086
+ };
14087
+
14088
+
14089
+ /**
14090
+ * optional ProjectUser project_user = 2;
14091
+ * @return {?proto.gateway.web.v1.ProjectUser}
14092
+ */
14093
+ proto.gateway.web.v1.UpdateProjectRoleResponse.prototype.getProjectUser = function() {
14094
+ return /** @type{?proto.gateway.web.v1.ProjectUser} */ (
14095
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.ProjectUser, 2));
14096
+ };
14097
+
14098
+
14099
+ /**
14100
+ * @param {?proto.gateway.web.v1.ProjectUser|undefined} value
14101
+ * @return {!proto.gateway.web.v1.UpdateProjectRoleResponse} returns this
14102
+ */
14103
+ proto.gateway.web.v1.UpdateProjectRoleResponse.prototype.setProjectUser = function(value) {
14104
+ return jspb.Message.setWrapperField(this, 2, value);
14105
+ };
14106
+
14107
+
14108
+ /**
14109
+ * Clears the message field making it undefined.
14110
+ * @return {!proto.gateway.web.v1.UpdateProjectRoleResponse} returns this
14111
+ */
14112
+ proto.gateway.web.v1.UpdateProjectRoleResponse.prototype.clearProjectUser = function() {
14113
+ return this.setProjectUser(undefined);
14114
+ };
14115
+
14116
+
14117
+ /**
14118
+ * Returns whether this field is set.
14119
+ * @return {boolean}
14120
+ */
14121
+ proto.gateway.web.v1.UpdateProjectRoleResponse.prototype.hasProjectUser = function() {
14122
+ return jspb.Message.getField(this, 2) != null;
14123
+ };
14124
+
14125
+
14126
+
14127
+
14128
+
14129
+ if (jspb.Message.GENERATE_TO_OBJECT) {
14130
+ /**
14131
+ * Creates an object representation of this proto.
14132
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
14133
+ * Optional fields that are not set will be set to undefined.
14134
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
14135
+ * For the list of reserved names please see:
14136
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14137
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14138
+ * JSPB instance for transitional soy proto support:
14139
+ * http://goto/soy-param-migration
14140
+ * @return {!Object}
14141
+ */
14142
+ proto.gateway.web.v1.RemoveProjectRoleRequest.prototype.toObject = function(opt_includeInstance) {
14143
+ return proto.gateway.web.v1.RemoveProjectRoleRequest.toObject(opt_includeInstance, this);
14144
+ };
14145
+
14146
+
14147
+ /**
14148
+ * Static version of the {@see toObject} method.
14149
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14150
+ * the JSPB instance for transitional soy proto support:
14151
+ * http://goto/soy-param-migration
14152
+ * @param {!proto.gateway.web.v1.RemoveProjectRoleRequest} msg The msg instance to transform.
14153
+ * @return {!Object}
14154
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14155
+ */
14156
+ proto.gateway.web.v1.RemoveProjectRoleRequest.toObject = function(includeInstance, msg) {
14157
+ var f, obj = {
14158
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
14159
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
14160
+ userId: jspb.Message.getFieldWithDefault(msg, 3, "")
14161
+ };
14162
+
14163
+ if (includeInstance) {
14164
+ obj.$jspbMessageInstance = msg;
14165
+ }
14166
+ return obj;
14167
+ };
14168
+ }
14169
+
14170
+
14171
+ /**
14172
+ * Deserializes binary data (in protobuf wire format).
14173
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
14174
+ * @return {!proto.gateway.web.v1.RemoveProjectRoleRequest}
14175
+ */
14176
+ proto.gateway.web.v1.RemoveProjectRoleRequest.deserializeBinary = function(bytes) {
14177
+ var reader = new jspb.BinaryReader(bytes);
14178
+ var msg = new proto.gateway.web.v1.RemoveProjectRoleRequest;
14179
+ return proto.gateway.web.v1.RemoveProjectRoleRequest.deserializeBinaryFromReader(msg, reader);
14180
+ };
14181
+
14182
+
14183
+ /**
14184
+ * Deserializes binary data (in protobuf wire format) from the
14185
+ * given reader into the given message object.
14186
+ * @param {!proto.gateway.web.v1.RemoveProjectRoleRequest} msg The message object to deserialize into.
14187
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14188
+ * @return {!proto.gateway.web.v1.RemoveProjectRoleRequest}
14189
+ */
14190
+ proto.gateway.web.v1.RemoveProjectRoleRequest.deserializeBinaryFromReader = function(msg, reader) {
14191
+ while (reader.nextField()) {
14192
+ if (reader.isEndGroup()) {
14193
+ break;
14194
+ }
14195
+ var field = reader.getFieldNumber();
14196
+ switch (field) {
14197
+ case 1:
14198
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
14199
+ msg.setOrganizationId(value);
14200
+ break;
14201
+ case 2:
14202
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
14203
+ msg.setProjectId(value);
14204
+ break;
14205
+ case 3:
14206
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
14207
+ msg.setUserId(value);
14208
+ break;
14209
+ default:
14210
+ reader.skipField();
14211
+ break;
14212
+ }
14213
+ }
14214
+ return msg;
14215
+ };
14216
+
14217
+
14218
+ /**
14219
+ * Serializes the message to binary data (in protobuf wire format).
14220
+ * @return {!Uint8Array}
14221
+ */
14222
+ proto.gateway.web.v1.RemoveProjectRoleRequest.prototype.serializeBinary = function() {
14223
+ var writer = new jspb.BinaryWriter();
14224
+ proto.gateway.web.v1.RemoveProjectRoleRequest.serializeBinaryToWriter(this, writer);
14225
+ return writer.getResultBuffer();
14226
+ };
14227
+
14228
+
14229
+ /**
14230
+ * Serializes the given message to binary data (in protobuf wire
14231
+ * format), writing to the given BinaryWriter.
14232
+ * @param {!proto.gateway.web.v1.RemoveProjectRoleRequest} message
14233
+ * @param {!jspb.BinaryWriter} writer
14234
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14235
+ */
14236
+ proto.gateway.web.v1.RemoveProjectRoleRequest.serializeBinaryToWriter = function(message, writer) {
14237
+ var f = undefined;
14238
+ f = message.getOrganizationId();
14239
+ if (f.length > 0) {
14240
+ writer.writeString(
14241
+ 1,
14242
+ f
14243
+ );
14244
+ }
14245
+ f = message.getProjectId();
14246
+ if (f.length > 0) {
14247
+ writer.writeString(
14248
+ 2,
14249
+ f
14250
+ );
14251
+ }
14252
+ f = message.getUserId();
14253
+ if (f.length > 0) {
14254
+ writer.writeString(
14255
+ 3,
14256
+ f
14257
+ );
14258
+ }
14259
+ };
14260
+
14261
+
14262
+ /**
14263
+ * optional string organization_id = 1;
14264
+ * @return {string}
14265
+ */
14266
+ proto.gateway.web.v1.RemoveProjectRoleRequest.prototype.getOrganizationId = function() {
14267
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
14268
+ };
14269
+
14270
+
14271
+ /**
14272
+ * @param {string} value
14273
+ * @return {!proto.gateway.web.v1.RemoveProjectRoleRequest} returns this
14274
+ */
14275
+ proto.gateway.web.v1.RemoveProjectRoleRequest.prototype.setOrganizationId = function(value) {
14276
+ return jspb.Message.setProto3StringField(this, 1, value);
14277
+ };
14278
+
14279
+
14280
+ /**
14281
+ * optional string project_id = 2;
14282
+ * @return {string}
14283
+ */
14284
+ proto.gateway.web.v1.RemoveProjectRoleRequest.prototype.getProjectId = function() {
14285
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
14286
+ };
14287
+
14288
+
14289
+ /**
14290
+ * @param {string} value
14291
+ * @return {!proto.gateway.web.v1.RemoveProjectRoleRequest} returns this
14292
+ */
14293
+ proto.gateway.web.v1.RemoveProjectRoleRequest.prototype.setProjectId = function(value) {
14294
+ return jspb.Message.setProto3StringField(this, 2, value);
14295
+ };
14296
+
14297
+
14298
+ /**
14299
+ * optional string user_id = 3;
14300
+ * @return {string}
14301
+ */
14302
+ proto.gateway.web.v1.RemoveProjectRoleRequest.prototype.getUserId = function() {
14303
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
14304
+ };
14305
+
14306
+
14307
+ /**
14308
+ * @param {string} value
14309
+ * @return {!proto.gateway.web.v1.RemoveProjectRoleRequest} returns this
14310
+ */
14311
+ proto.gateway.web.v1.RemoveProjectRoleRequest.prototype.setUserId = function(value) {
14312
+ return jspb.Message.setProto3StringField(this, 3, value);
14313
+ };
14314
+
14315
+
14316
+
14317
+
14318
+
14319
+ if (jspb.Message.GENERATE_TO_OBJECT) {
14320
+ /**
14321
+ * Creates an object representation of this proto.
14322
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
14323
+ * Optional fields that are not set will be set to undefined.
14324
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
14325
+ * For the list of reserved names please see:
14326
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14327
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14328
+ * JSPB instance for transitional soy proto support:
14329
+ * http://goto/soy-param-migration
14330
+ * @return {!Object}
14331
+ */
14332
+ proto.gateway.web.v1.RemoveProjectRoleResponse.prototype.toObject = function(opt_includeInstance) {
14333
+ return proto.gateway.web.v1.RemoveProjectRoleResponse.toObject(opt_includeInstance, this);
14334
+ };
14335
+
14336
+
14337
+ /**
14338
+ * Static version of the {@see toObject} method.
14339
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14340
+ * the JSPB instance for transitional soy proto support:
14341
+ * http://goto/soy-param-migration
14342
+ * @param {!proto.gateway.web.v1.RemoveProjectRoleResponse} msg The msg instance to transform.
14343
+ * @return {!Object}
14344
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14345
+ */
14346
+ proto.gateway.web.v1.RemoveProjectRoleResponse.toObject = function(includeInstance, msg) {
14347
+ var f, obj = {
14348
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
14349
+ };
14350
+
14351
+ if (includeInstance) {
14352
+ obj.$jspbMessageInstance = msg;
14353
+ }
14354
+ return obj;
14355
+ };
14356
+ }
14357
+
14358
+
14359
+ /**
14360
+ * Deserializes binary data (in protobuf wire format).
14361
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
14362
+ * @return {!proto.gateway.web.v1.RemoveProjectRoleResponse}
14363
+ */
14364
+ proto.gateway.web.v1.RemoveProjectRoleResponse.deserializeBinary = function(bytes) {
14365
+ var reader = new jspb.BinaryReader(bytes);
14366
+ var msg = new proto.gateway.web.v1.RemoveProjectRoleResponse;
14367
+ return proto.gateway.web.v1.RemoveProjectRoleResponse.deserializeBinaryFromReader(msg, reader);
14368
+ };
14369
+
14370
+
14371
+ /**
14372
+ * Deserializes binary data (in protobuf wire format) from the
14373
+ * given reader into the given message object.
14374
+ * @param {!proto.gateway.web.v1.RemoveProjectRoleResponse} msg The message object to deserialize into.
14375
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14376
+ * @return {!proto.gateway.web.v1.RemoveProjectRoleResponse}
14377
+ */
14378
+ proto.gateway.web.v1.RemoveProjectRoleResponse.deserializeBinaryFromReader = function(msg, reader) {
14379
+ while (reader.nextField()) {
14380
+ if (reader.isEndGroup()) {
14381
+ break;
14382
+ }
14383
+ var field = reader.getFieldNumber();
14384
+ switch (field) {
14385
+ case 1:
14386
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
14387
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
14388
+ msg.setStatus(value);
14389
+ break;
14390
+ default:
14391
+ reader.skipField();
14392
+ break;
14393
+ }
14394
+ }
14395
+ return msg;
14396
+ };
14397
+
14398
+
14399
+ /**
14400
+ * Serializes the message to binary data (in protobuf wire format).
14401
+ * @return {!Uint8Array}
14402
+ */
14403
+ proto.gateway.web.v1.RemoveProjectRoleResponse.prototype.serializeBinary = function() {
14404
+ var writer = new jspb.BinaryWriter();
14405
+ proto.gateway.web.v1.RemoveProjectRoleResponse.serializeBinaryToWriter(this, writer);
14406
+ return writer.getResultBuffer();
14407
+ };
14408
+
14409
+
14410
+ /**
14411
+ * Serializes the given message to binary data (in protobuf wire
14412
+ * format), writing to the given BinaryWriter.
14413
+ * @param {!proto.gateway.web.v1.RemoveProjectRoleResponse} message
14414
+ * @param {!jspb.BinaryWriter} writer
14415
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14416
+ */
14417
+ proto.gateway.web.v1.RemoveProjectRoleResponse.serializeBinaryToWriter = function(message, writer) {
14418
+ var f = undefined;
14419
+ f = message.getStatus();
14420
+ if (f != null) {
14421
+ writer.writeMessage(
14422
+ 1,
14423
+ f,
14424
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
14425
+ );
14426
+ }
14427
+ };
14428
+
14429
+
14430
+ /**
14431
+ * optional gateway.common.v1.ResponseStatus status = 1;
14432
+ * @return {?proto.gateway.common.v1.ResponseStatus}
14433
+ */
14434
+ proto.gateway.web.v1.RemoveProjectRoleResponse.prototype.getStatus = function() {
14435
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
14436
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
14437
+ };
14438
+
14439
+
14440
+ /**
14441
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
14442
+ * @return {!proto.gateway.web.v1.RemoveProjectRoleResponse} returns this
14443
+ */
14444
+ proto.gateway.web.v1.RemoveProjectRoleResponse.prototype.setStatus = function(value) {
14445
+ return jspb.Message.setWrapperField(this, 1, value);
14446
+ };
14447
+
14448
+
14449
+ /**
14450
+ * Clears the message field making it undefined.
14451
+ * @return {!proto.gateway.web.v1.RemoveProjectRoleResponse} returns this
14452
+ */
14453
+ proto.gateway.web.v1.RemoveProjectRoleResponse.prototype.clearStatus = function() {
14454
+ return this.setStatus(undefined);
14455
+ };
14456
+
14457
+
14458
+ /**
14459
+ * Returns whether this field is set.
14460
+ * @return {boolean}
14461
+ */
14462
+ proto.gateway.web.v1.RemoveProjectRoleResponse.prototype.hasStatus = function() {
14463
+ return jspb.Message.getField(this, 1) != null;
14464
+ };
14465
+
14466
+
14467
+
14468
+
14469
+
14470
+ if (jspb.Message.GENERATE_TO_OBJECT) {
14471
+ /**
14472
+ * Creates an object representation of this proto.
14473
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
14474
+ * Optional fields that are not set will be set to undefined.
14475
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
14476
+ * For the list of reserved names please see:
14477
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14478
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14479
+ * JSPB instance for transitional soy proto support:
14480
+ * http://goto/soy-param-migration
14481
+ * @return {!Object}
14482
+ */
14483
+ proto.gateway.web.v1.ListProjectRolesRequest.prototype.toObject = function(opt_includeInstance) {
14484
+ return proto.gateway.web.v1.ListProjectRolesRequest.toObject(opt_includeInstance, this);
14485
+ };
14486
+
14487
+
14488
+ /**
14489
+ * Static version of the {@see toObject} method.
14490
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14491
+ * the JSPB instance for transitional soy proto support:
14492
+ * http://goto/soy-param-migration
14493
+ * @param {!proto.gateway.web.v1.ListProjectRolesRequest} msg The msg instance to transform.
14494
+ * @return {!Object}
14495
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14496
+ */
14497
+ proto.gateway.web.v1.ListProjectRolesRequest.toObject = function(includeInstance, msg) {
14498
+ var f, obj = {
14499
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
14500
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
14501
+ filter: (f = msg.getFilter()) && proto.gateway.web.v1.ProjectUserFilter.toObject(includeInstance, f),
14502
+ pageSize: jspb.Message.getFieldWithDefault(msg, 4, 0),
14503
+ pageToken: jspb.Message.getFieldWithDefault(msg, 5, "")
14504
+ };
14505
+
14506
+ if (includeInstance) {
14507
+ obj.$jspbMessageInstance = msg;
14508
+ }
14509
+ return obj;
14510
+ };
14511
+ }
14512
+
14513
+
14514
+ /**
14515
+ * Deserializes binary data (in protobuf wire format).
14516
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
14517
+ * @return {!proto.gateway.web.v1.ListProjectRolesRequest}
14518
+ */
14519
+ proto.gateway.web.v1.ListProjectRolesRequest.deserializeBinary = function(bytes) {
14520
+ var reader = new jspb.BinaryReader(bytes);
14521
+ var msg = new proto.gateway.web.v1.ListProjectRolesRequest;
14522
+ return proto.gateway.web.v1.ListProjectRolesRequest.deserializeBinaryFromReader(msg, reader);
14523
+ };
14524
+
14525
+
14526
+ /**
14527
+ * Deserializes binary data (in protobuf wire format) from the
14528
+ * given reader into the given message object.
14529
+ * @param {!proto.gateway.web.v1.ListProjectRolesRequest} msg The message object to deserialize into.
14530
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14531
+ * @return {!proto.gateway.web.v1.ListProjectRolesRequest}
14532
+ */
14533
+ proto.gateway.web.v1.ListProjectRolesRequest.deserializeBinaryFromReader = function(msg, reader) {
14534
+ while (reader.nextField()) {
14535
+ if (reader.isEndGroup()) {
14536
+ break;
14537
+ }
14538
+ var field = reader.getFieldNumber();
14539
+ switch (field) {
14540
+ case 1:
14541
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
14542
+ msg.setOrganizationId(value);
14543
+ break;
14544
+ case 2:
14545
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
14546
+ msg.setProjectId(value);
14547
+ break;
14548
+ case 3:
14549
+ var value = new proto.gateway.web.v1.ProjectUserFilter;
14550
+ reader.readMessage(value,proto.gateway.web.v1.ProjectUserFilter.deserializeBinaryFromReader);
14551
+ msg.setFilter(value);
14552
+ break;
14553
+ case 4:
14554
+ var value = /** @type {number} */ (reader.readInt32());
14555
+ msg.setPageSize(value);
14556
+ break;
14557
+ case 5:
14558
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
14559
+ msg.setPageToken(value);
14560
+ break;
14561
+ default:
14562
+ reader.skipField();
14563
+ break;
14564
+ }
14565
+ }
14566
+ return msg;
14567
+ };
14568
+
14569
+
14570
+ /**
14571
+ * Serializes the message to binary data (in protobuf wire format).
14572
+ * @return {!Uint8Array}
14573
+ */
14574
+ proto.gateway.web.v1.ListProjectRolesRequest.prototype.serializeBinary = function() {
14575
+ var writer = new jspb.BinaryWriter();
14576
+ proto.gateway.web.v1.ListProjectRolesRequest.serializeBinaryToWriter(this, writer);
14577
+ return writer.getResultBuffer();
14578
+ };
14579
+
14580
+
14581
+ /**
14582
+ * Serializes the given message to binary data (in protobuf wire
14583
+ * format), writing to the given BinaryWriter.
14584
+ * @param {!proto.gateway.web.v1.ListProjectRolesRequest} message
14585
+ * @param {!jspb.BinaryWriter} writer
14586
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14587
+ */
14588
+ proto.gateway.web.v1.ListProjectRolesRequest.serializeBinaryToWriter = function(message, writer) {
14589
+ var f = undefined;
14590
+ f = message.getOrganizationId();
14591
+ if (f.length > 0) {
14592
+ writer.writeString(
14593
+ 1,
14594
+ f
14595
+ );
14596
+ }
14597
+ f = message.getProjectId();
14598
+ if (f.length > 0) {
14599
+ writer.writeString(
14600
+ 2,
14601
+ f
14602
+ );
14603
+ }
14604
+ f = message.getFilter();
14605
+ if (f != null) {
14606
+ writer.writeMessage(
14607
+ 3,
14608
+ f,
14609
+ proto.gateway.web.v1.ProjectUserFilter.serializeBinaryToWriter
14610
+ );
14611
+ }
14612
+ f = message.getPageSize();
14613
+ if (f !== 0) {
14614
+ writer.writeInt32(
14615
+ 4,
14616
+ f
14617
+ );
14618
+ }
14619
+ f = message.getPageToken();
14620
+ if (f.length > 0) {
14621
+ writer.writeString(
14622
+ 5,
14623
+ f
14624
+ );
14625
+ }
14626
+ };
14627
+
14628
+
14629
+ /**
14630
+ * optional string organization_id = 1;
14631
+ * @return {string}
14632
+ */
14633
+ proto.gateway.web.v1.ListProjectRolesRequest.prototype.getOrganizationId = function() {
14634
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
14635
+ };
14636
+
14637
+
14638
+ /**
14639
+ * @param {string} value
14640
+ * @return {!proto.gateway.web.v1.ListProjectRolesRequest} returns this
14641
+ */
14642
+ proto.gateway.web.v1.ListProjectRolesRequest.prototype.setOrganizationId = function(value) {
14643
+ return jspb.Message.setProto3StringField(this, 1, value);
14644
+ };
14645
+
14646
+
14647
+ /**
14648
+ * optional string project_id = 2;
14649
+ * @return {string}
14650
+ */
14651
+ proto.gateway.web.v1.ListProjectRolesRequest.prototype.getProjectId = function() {
14652
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
14653
+ };
14654
+
14655
+
14656
+ /**
14657
+ * @param {string} value
14658
+ * @return {!proto.gateway.web.v1.ListProjectRolesRequest} returns this
14659
+ */
14660
+ proto.gateway.web.v1.ListProjectRolesRequest.prototype.setProjectId = function(value) {
14661
+ return jspb.Message.setProto3StringField(this, 2, value);
14662
+ };
14663
+
14664
+
14665
+ /**
14666
+ * optional ProjectUserFilter filter = 3;
14667
+ * @return {?proto.gateway.web.v1.ProjectUserFilter}
14668
+ */
14669
+ proto.gateway.web.v1.ListProjectRolesRequest.prototype.getFilter = function() {
14670
+ return /** @type{?proto.gateway.web.v1.ProjectUserFilter} */ (
14671
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.ProjectUserFilter, 3));
14672
+ };
14673
+
14674
+
14675
+ /**
14676
+ * @param {?proto.gateway.web.v1.ProjectUserFilter|undefined} value
14677
+ * @return {!proto.gateway.web.v1.ListProjectRolesRequest} returns this
14678
+ */
14679
+ proto.gateway.web.v1.ListProjectRolesRequest.prototype.setFilter = function(value) {
14680
+ return jspb.Message.setWrapperField(this, 3, value);
14681
+ };
14682
+
14683
+
14684
+ /**
14685
+ * Clears the message field making it undefined.
14686
+ * @return {!proto.gateway.web.v1.ListProjectRolesRequest} returns this
14687
+ */
14688
+ proto.gateway.web.v1.ListProjectRolesRequest.prototype.clearFilter = function() {
14689
+ return this.setFilter(undefined);
14690
+ };
14691
+
14692
+
14693
+ /**
14694
+ * Returns whether this field is set.
14695
+ * @return {boolean}
14696
+ */
14697
+ proto.gateway.web.v1.ListProjectRolesRequest.prototype.hasFilter = function() {
14698
+ return jspb.Message.getField(this, 3) != null;
14699
+ };
14700
+
14701
+
14702
+ /**
14703
+ * optional int32 page_size = 4;
14704
+ * @return {number}
14705
+ */
14706
+ proto.gateway.web.v1.ListProjectRolesRequest.prototype.getPageSize = function() {
14707
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
14708
+ };
14709
+
14710
+
14711
+ /**
14712
+ * @param {number} value
14713
+ * @return {!proto.gateway.web.v1.ListProjectRolesRequest} returns this
14714
+ */
14715
+ proto.gateway.web.v1.ListProjectRolesRequest.prototype.setPageSize = function(value) {
14716
+ return jspb.Message.setProto3IntField(this, 4, value);
14717
+ };
14718
+
14719
+
14720
+ /**
14721
+ * optional string page_token = 5;
14722
+ * @return {string}
14723
+ */
14724
+ proto.gateway.web.v1.ListProjectRolesRequest.prototype.getPageToken = function() {
14725
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
14726
+ };
14727
+
14728
+
14729
+ /**
14730
+ * @param {string} value
14731
+ * @return {!proto.gateway.web.v1.ListProjectRolesRequest} returns this
14732
+ */
14733
+ proto.gateway.web.v1.ListProjectRolesRequest.prototype.setPageToken = function(value) {
14734
+ return jspb.Message.setProto3StringField(this, 5, value);
14735
+ };
14736
+
14737
+
14738
+
14739
+ /**
14740
+ * List of repeated fields within this message type.
14741
+ * @private {!Array<number>}
14742
+ * @const
14743
+ */
14744
+ proto.gateway.web.v1.ListProjectRolesResponse.repeatedFields_ = [2];
14745
+
14746
+
14747
+
14748
+ if (jspb.Message.GENERATE_TO_OBJECT) {
14749
+ /**
14750
+ * Creates an object representation of this proto.
14751
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
14752
+ * Optional fields that are not set will be set to undefined.
14753
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
14754
+ * For the list of reserved names please see:
14755
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14756
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14757
+ * JSPB instance for transitional soy proto support:
14758
+ * http://goto/soy-param-migration
14759
+ * @return {!Object}
14760
+ */
14761
+ proto.gateway.web.v1.ListProjectRolesResponse.prototype.toObject = function(opt_includeInstance) {
14762
+ return proto.gateway.web.v1.ListProjectRolesResponse.toObject(opt_includeInstance, this);
14763
+ };
14764
+
14765
+
14766
+ /**
14767
+ * Static version of the {@see toObject} method.
14768
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14769
+ * the JSPB instance for transitional soy proto support:
14770
+ * http://goto/soy-param-migration
14771
+ * @param {!proto.gateway.web.v1.ListProjectRolesResponse} msg The msg instance to transform.
14772
+ * @return {!Object}
14773
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14774
+ */
14775
+ proto.gateway.web.v1.ListProjectRolesResponse.toObject = function(includeInstance, msg) {
14776
+ var f, obj = {
14777
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
14778
+ projectUsersList: jspb.Message.toObjectList(msg.getProjectUsersList(),
14779
+ proto.gateway.web.v1.ProjectUser.toObject, includeInstance),
14780
+ nextPageToken: jspb.Message.getFieldWithDefault(msg, 3, "")
14781
+ };
14782
+
14783
+ if (includeInstance) {
14784
+ obj.$jspbMessageInstance = msg;
14785
+ }
14786
+ return obj;
14787
+ };
14788
+ }
14789
+
14790
+
14791
+ /**
14792
+ * Deserializes binary data (in protobuf wire format).
14793
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
14794
+ * @return {!proto.gateway.web.v1.ListProjectRolesResponse}
14795
+ */
14796
+ proto.gateway.web.v1.ListProjectRolesResponse.deserializeBinary = function(bytes) {
14797
+ var reader = new jspb.BinaryReader(bytes);
14798
+ var msg = new proto.gateway.web.v1.ListProjectRolesResponse;
14799
+ return proto.gateway.web.v1.ListProjectRolesResponse.deserializeBinaryFromReader(msg, reader);
14800
+ };
14801
+
14802
+
14803
+ /**
14804
+ * Deserializes binary data (in protobuf wire format) from the
14805
+ * given reader into the given message object.
14806
+ * @param {!proto.gateway.web.v1.ListProjectRolesResponse} msg The message object to deserialize into.
14807
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14808
+ * @return {!proto.gateway.web.v1.ListProjectRolesResponse}
14809
+ */
14810
+ proto.gateway.web.v1.ListProjectRolesResponse.deserializeBinaryFromReader = function(msg, reader) {
14811
+ while (reader.nextField()) {
14812
+ if (reader.isEndGroup()) {
14813
+ break;
14814
+ }
14815
+ var field = reader.getFieldNumber();
14816
+ switch (field) {
14817
+ case 1:
14818
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
14819
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
14820
+ msg.setStatus(value);
14821
+ break;
14822
+ case 2:
14823
+ var value = new proto.gateway.web.v1.ProjectUser;
14824
+ reader.readMessage(value,proto.gateway.web.v1.ProjectUser.deserializeBinaryFromReader);
14825
+ msg.addProjectUsers(value);
14826
+ break;
14827
+ case 3:
14828
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
14829
+ msg.setNextPageToken(value);
14830
+ break;
14831
+ default:
14832
+ reader.skipField();
14833
+ break;
14834
+ }
14835
+ }
14836
+ return msg;
14837
+ };
14838
+
14839
+
14840
+ /**
14841
+ * Serializes the message to binary data (in protobuf wire format).
14842
+ * @return {!Uint8Array}
14843
+ */
14844
+ proto.gateway.web.v1.ListProjectRolesResponse.prototype.serializeBinary = function() {
14845
+ var writer = new jspb.BinaryWriter();
14846
+ proto.gateway.web.v1.ListProjectRolesResponse.serializeBinaryToWriter(this, writer);
14847
+ return writer.getResultBuffer();
14848
+ };
14849
+
14850
+
14851
+ /**
14852
+ * Serializes the given message to binary data (in protobuf wire
14853
+ * format), writing to the given BinaryWriter.
14854
+ * @param {!proto.gateway.web.v1.ListProjectRolesResponse} message
14855
+ * @param {!jspb.BinaryWriter} writer
14856
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14857
+ */
14858
+ proto.gateway.web.v1.ListProjectRolesResponse.serializeBinaryToWriter = function(message, writer) {
14859
+ var f = undefined;
14860
+ f = message.getStatus();
14861
+ if (f != null) {
14862
+ writer.writeMessage(
14863
+ 1,
14864
+ f,
14865
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
14866
+ );
14867
+ }
14868
+ f = message.getProjectUsersList();
14869
+ if (f.length > 0) {
14870
+ writer.writeRepeatedMessage(
14871
+ 2,
14872
+ f,
14873
+ proto.gateway.web.v1.ProjectUser.serializeBinaryToWriter
14874
+ );
14875
+ }
14876
+ f = message.getNextPageToken();
14877
+ if (f.length > 0) {
14878
+ writer.writeString(
14879
+ 3,
14880
+ f
14881
+ );
14882
+ }
14883
+ };
14884
+
14885
+
14886
+ /**
14887
+ * optional gateway.common.v1.ResponseStatus status = 1;
14888
+ * @return {?proto.gateway.common.v1.ResponseStatus}
14889
+ */
14890
+ proto.gateway.web.v1.ListProjectRolesResponse.prototype.getStatus = function() {
14891
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
14892
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
14893
+ };
14894
+
14895
+
14896
+ /**
14897
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
14898
+ * @return {!proto.gateway.web.v1.ListProjectRolesResponse} returns this
14899
+ */
14900
+ proto.gateway.web.v1.ListProjectRolesResponse.prototype.setStatus = function(value) {
14901
+ return jspb.Message.setWrapperField(this, 1, value);
14902
+ };
14903
+
14904
+
14905
+ /**
14906
+ * Clears the message field making it undefined.
14907
+ * @return {!proto.gateway.web.v1.ListProjectRolesResponse} returns this
14908
+ */
14909
+ proto.gateway.web.v1.ListProjectRolesResponse.prototype.clearStatus = function() {
14910
+ return this.setStatus(undefined);
14911
+ };
14912
+
14913
+
14914
+ /**
14915
+ * Returns whether this field is set.
14916
+ * @return {boolean}
14917
+ */
14918
+ proto.gateway.web.v1.ListProjectRolesResponse.prototype.hasStatus = function() {
14919
+ return jspb.Message.getField(this, 1) != null;
14920
+ };
14921
+
14922
+
14923
+ /**
14924
+ * repeated ProjectUser project_users = 2;
14925
+ * @return {!Array<!proto.gateway.web.v1.ProjectUser>}
14926
+ */
14927
+ proto.gateway.web.v1.ListProjectRolesResponse.prototype.getProjectUsersList = function() {
14928
+ return /** @type{!Array<!proto.gateway.web.v1.ProjectUser>} */ (
14929
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.ProjectUser, 2));
14930
+ };
14931
+
14932
+
14933
+ /**
14934
+ * @param {!Array<!proto.gateway.web.v1.ProjectUser>} value
14935
+ * @return {!proto.gateway.web.v1.ListProjectRolesResponse} returns this
14936
+ */
14937
+ proto.gateway.web.v1.ListProjectRolesResponse.prototype.setProjectUsersList = function(value) {
14938
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
14939
+ };
14940
+
14941
+
14942
+ /**
14943
+ * @param {!proto.gateway.web.v1.ProjectUser=} opt_value
14944
+ * @param {number=} opt_index
14945
+ * @return {!proto.gateway.web.v1.ProjectUser}
14946
+ */
14947
+ proto.gateway.web.v1.ListProjectRolesResponse.prototype.addProjectUsers = function(opt_value, opt_index) {
14948
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.ProjectUser, opt_index);
14949
+ };
14950
+
14951
+
14952
+ /**
14953
+ * Clears the list making it empty but non-null.
14954
+ * @return {!proto.gateway.web.v1.ListProjectRolesResponse} returns this
14955
+ */
14956
+ proto.gateway.web.v1.ListProjectRolesResponse.prototype.clearProjectUsersList = function() {
14957
+ return this.setProjectUsersList([]);
14958
+ };
14959
+
14960
+
14961
+ /**
14962
+ * optional string next_page_token = 3;
14963
+ * @return {string}
14964
+ */
14965
+ proto.gateway.web.v1.ListProjectRolesResponse.prototype.getNextPageToken = function() {
14966
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
14967
+ };
14968
+
14969
+
14970
+ /**
14971
+ * @param {string} value
14972
+ * @return {!proto.gateway.web.v1.ListProjectRolesResponse} returns this
14973
+ */
14974
+ proto.gateway.web.v1.ListProjectRolesResponse.prototype.setNextPageToken = function(value) {
14975
+ return jspb.Message.setProto3StringField(this, 3, value);
14976
+ };
14977
+
14978
+
14979
+
14980
+ /**
14981
+ * List of repeated fields within this message type.
14982
+ * @private {!Array<number>}
14983
+ * @const
14984
+ */
14985
+ proto.gateway.web.v1.ProjectUserFilter.repeatedFields_ = [1,2];
14986
+
14987
+
14988
+
14989
+ if (jspb.Message.GENERATE_TO_OBJECT) {
14990
+ /**
14991
+ * Creates an object representation of this proto.
14992
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
14993
+ * Optional fields that are not set will be set to undefined.
14994
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
14995
+ * For the list of reserved names please see:
14996
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14997
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14998
+ * JSPB instance for transitional soy proto support:
14999
+ * http://goto/soy-param-migration
15000
+ * @return {!Object}
15001
+ */
15002
+ proto.gateway.web.v1.ProjectUserFilter.prototype.toObject = function(opt_includeInstance) {
15003
+ return proto.gateway.web.v1.ProjectUserFilter.toObject(opt_includeInstance, this);
15004
+ };
15005
+
15006
+
15007
+ /**
15008
+ * Static version of the {@see toObject} method.
15009
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15010
+ * the JSPB instance for transitional soy proto support:
15011
+ * http://goto/soy-param-migration
15012
+ * @param {!proto.gateway.web.v1.ProjectUserFilter} msg The msg instance to transform.
15013
+ * @return {!Object}
15014
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15015
+ */
15016
+ proto.gateway.web.v1.ProjectUserFilter.toObject = function(includeInstance, msg) {
15017
+ var f, obj = {
15018
+ rolesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
15019
+ userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
15020
+ };
15021
+
15022
+ if (includeInstance) {
15023
+ obj.$jspbMessageInstance = msg;
15024
+ }
15025
+ return obj;
15026
+ };
15027
+ }
15028
+
15029
+
15030
+ /**
15031
+ * Deserializes binary data (in protobuf wire format).
15032
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
15033
+ * @return {!proto.gateway.web.v1.ProjectUserFilter}
15034
+ */
15035
+ proto.gateway.web.v1.ProjectUserFilter.deserializeBinary = function(bytes) {
15036
+ var reader = new jspb.BinaryReader(bytes);
15037
+ var msg = new proto.gateway.web.v1.ProjectUserFilter;
15038
+ return proto.gateway.web.v1.ProjectUserFilter.deserializeBinaryFromReader(msg, reader);
15039
+ };
15040
+
15041
+
15042
+ /**
15043
+ * Deserializes binary data (in protobuf wire format) from the
15044
+ * given reader into the given message object.
15045
+ * @param {!proto.gateway.web.v1.ProjectUserFilter} msg The message object to deserialize into.
15046
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15047
+ * @return {!proto.gateway.web.v1.ProjectUserFilter}
15048
+ */
15049
+ proto.gateway.web.v1.ProjectUserFilter.deserializeBinaryFromReader = function(msg, reader) {
15050
+ while (reader.nextField()) {
15051
+ if (reader.isEndGroup()) {
15052
+ break;
15053
+ }
15054
+ var field = reader.getFieldNumber();
15055
+ switch (field) {
15056
+ case 1:
15057
+ reader.readPackableEnumInto(msg.getRolesList());
15058
+ break;
15059
+ case 2:
15060
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
15061
+ msg.addUserIds(value);
15062
+ break;
15063
+ default:
15064
+ reader.skipField();
15065
+ break;
15066
+ }
15067
+ }
15068
+ return msg;
15069
+ };
15070
+
15071
+
15072
+ /**
15073
+ * Serializes the message to binary data (in protobuf wire format).
15074
+ * @return {!Uint8Array}
15075
+ */
15076
+ proto.gateway.web.v1.ProjectUserFilter.prototype.serializeBinary = function() {
15077
+ var writer = new jspb.BinaryWriter();
15078
+ proto.gateway.web.v1.ProjectUserFilter.serializeBinaryToWriter(this, writer);
15079
+ return writer.getResultBuffer();
15080
+ };
15081
+
15082
+
15083
+ /**
15084
+ * Serializes the given message to binary data (in protobuf wire
15085
+ * format), writing to the given BinaryWriter.
15086
+ * @param {!proto.gateway.web.v1.ProjectUserFilter} message
15087
+ * @param {!jspb.BinaryWriter} writer
15088
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15089
+ */
15090
+ proto.gateway.web.v1.ProjectUserFilter.serializeBinaryToWriter = function(message, writer) {
15091
+ var f = undefined;
15092
+ f = message.getRolesList();
15093
+ if (f.length > 0) {
15094
+ writer.writePackedEnum(
15095
+ 1,
15096
+ f
15097
+ );
15098
+ }
15099
+ f = message.getUserIdsList();
15100
+ if (f.length > 0) {
15101
+ writer.writeRepeatedString(
15102
+ 2,
15103
+ f
15104
+ );
15105
+ }
15106
+ };
15107
+
15108
+
15109
+ /**
15110
+ * repeated ProjectRole roles = 1;
15111
+ * @return {!Array<!proto.gateway.web.v1.ProjectRole>}
15112
+ */
15113
+ proto.gateway.web.v1.ProjectUserFilter.prototype.getRolesList = function() {
15114
+ return /** @type {!Array<!proto.gateway.web.v1.ProjectRole>} */ (jspb.Message.getRepeatedField(this, 1));
15115
+ };
15116
+
15117
+
15118
+ /**
15119
+ * @param {!Array<!proto.gateway.web.v1.ProjectRole>} value
15120
+ * @return {!proto.gateway.web.v1.ProjectUserFilter} returns this
15121
+ */
15122
+ proto.gateway.web.v1.ProjectUserFilter.prototype.setRolesList = function(value) {
15123
+ return jspb.Message.setField(this, 1, value || []);
15124
+ };
15125
+
15126
+
15127
+ /**
15128
+ * @param {!proto.gateway.web.v1.ProjectRole} value
15129
+ * @param {number=} opt_index
15130
+ * @return {!proto.gateway.web.v1.ProjectUserFilter} returns this
15131
+ */
15132
+ proto.gateway.web.v1.ProjectUserFilter.prototype.addRoles = function(value, opt_index) {
15133
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
15134
+ };
15135
+
15136
+
15137
+ /**
15138
+ * Clears the list making it empty but non-null.
15139
+ * @return {!proto.gateway.web.v1.ProjectUserFilter} returns this
15140
+ */
15141
+ proto.gateway.web.v1.ProjectUserFilter.prototype.clearRolesList = function() {
15142
+ return this.setRolesList([]);
15143
+ };
15144
+
15145
+
15146
+ /**
15147
+ * repeated string user_ids = 2;
15148
+ * @return {!Array<string>}
15149
+ */
15150
+ proto.gateway.web.v1.ProjectUserFilter.prototype.getUserIdsList = function() {
15151
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
15152
+ };
15153
+
15154
+
15155
+ /**
15156
+ * @param {!Array<string>} value
15157
+ * @return {!proto.gateway.web.v1.ProjectUserFilter} returns this
15158
+ */
15159
+ proto.gateway.web.v1.ProjectUserFilter.prototype.setUserIdsList = function(value) {
15160
+ return jspb.Message.setField(this, 2, value || []);
15161
+ };
15162
+
15163
+
15164
+ /**
15165
+ * @param {string} value
15166
+ * @param {number=} opt_index
15167
+ * @return {!proto.gateway.web.v1.ProjectUserFilter} returns this
15168
+ */
15169
+ proto.gateway.web.v1.ProjectUserFilter.prototype.addUserIds = function(value, opt_index) {
15170
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
15171
+ };
15172
+
15173
+
15174
+ /**
15175
+ * Clears the list making it empty but non-null.
15176
+ * @return {!proto.gateway.web.v1.ProjectUserFilter} returns this
15177
+ */
15178
+ proto.gateway.web.v1.ProjectUserFilter.prototype.clearUserIdsList = function() {
15179
+ return this.setUserIdsList([]);
15180
+ };
15181
+
15182
+
15183
+
15184
+
15185
+
15186
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15187
+ /**
15188
+ * Creates an object representation of this proto.
15189
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15190
+ * Optional fields that are not set will be set to undefined.
15191
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15192
+ * For the list of reserved names please see:
15193
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15194
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15195
+ * JSPB instance for transitional soy proto support:
15196
+ * http://goto/soy-param-migration
15197
+ * @return {!Object}
15198
+ */
15199
+ proto.gateway.web.v1.ProjectUser.prototype.toObject = function(opt_includeInstance) {
15200
+ return proto.gateway.web.v1.ProjectUser.toObject(opt_includeInstance, this);
15201
+ };
15202
+
15203
+
15204
+ /**
15205
+ * Static version of the {@see toObject} method.
15206
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15207
+ * the JSPB instance for transitional soy proto support:
15208
+ * http://goto/soy-param-migration
15209
+ * @param {!proto.gateway.web.v1.ProjectUser} msg The msg instance to transform.
15210
+ * @return {!Object}
15211
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15212
+ */
15213
+ proto.gateway.web.v1.ProjectUser.toObject = function(includeInstance, msg) {
15214
+ var f, obj = {
15215
+ userId: jspb.Message.getFieldWithDefault(msg, 1, ""),
15216
+ organizationId: jspb.Message.getFieldWithDefault(msg, 2, ""),
15217
+ projectId: jspb.Message.getFieldWithDefault(msg, 3, ""),
15218
+ role: jspb.Message.getFieldWithDefault(msg, 4, 0),
15219
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
15220
+ updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
15221
+ };
15222
+
15223
+ if (includeInstance) {
15224
+ obj.$jspbMessageInstance = msg;
15225
+ }
15226
+ return obj;
15227
+ };
15228
+ }
15229
+
15230
+
15231
+ /**
15232
+ * Deserializes binary data (in protobuf wire format).
15233
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
15234
+ * @return {!proto.gateway.web.v1.ProjectUser}
15235
+ */
15236
+ proto.gateway.web.v1.ProjectUser.deserializeBinary = function(bytes) {
15237
+ var reader = new jspb.BinaryReader(bytes);
15238
+ var msg = new proto.gateway.web.v1.ProjectUser;
15239
+ return proto.gateway.web.v1.ProjectUser.deserializeBinaryFromReader(msg, reader);
15240
+ };
15241
+
15242
+
15243
+ /**
15244
+ * Deserializes binary data (in protobuf wire format) from the
15245
+ * given reader into the given message object.
15246
+ * @param {!proto.gateway.web.v1.ProjectUser} msg The message object to deserialize into.
15247
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15248
+ * @return {!proto.gateway.web.v1.ProjectUser}
15249
+ */
15250
+ proto.gateway.web.v1.ProjectUser.deserializeBinaryFromReader = function(msg, reader) {
15251
+ while (reader.nextField()) {
15252
+ if (reader.isEndGroup()) {
15253
+ break;
15254
+ }
15255
+ var field = reader.getFieldNumber();
15256
+ switch (field) {
15257
+ case 1:
15258
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
15259
+ msg.setUserId(value);
15260
+ break;
15261
+ case 2:
15262
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
15263
+ msg.setOrganizationId(value);
15264
+ break;
15265
+ case 3:
15266
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
15267
+ msg.setProjectId(value);
15268
+ break;
15269
+ case 4:
15270
+ var value = /** @type {!proto.gateway.web.v1.ProjectRole} */ (reader.readEnum());
15271
+ msg.setRole(value);
15272
+ break;
15273
+ case 5:
15274
+ var value = new google_protobuf_timestamp_pb.Timestamp;
15275
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
15276
+ msg.setCreatedAt(value);
15277
+ break;
15278
+ case 6:
15279
+ var value = new google_protobuf_timestamp_pb.Timestamp;
15280
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
15281
+ msg.setUpdatedAt(value);
15282
+ break;
15283
+ default:
15284
+ reader.skipField();
15285
+ break;
15286
+ }
15287
+ }
15288
+ return msg;
15289
+ };
15290
+
15291
+
15292
+ /**
15293
+ * Serializes the message to binary data (in protobuf wire format).
15294
+ * @return {!Uint8Array}
15295
+ */
15296
+ proto.gateway.web.v1.ProjectUser.prototype.serializeBinary = function() {
15297
+ var writer = new jspb.BinaryWriter();
15298
+ proto.gateway.web.v1.ProjectUser.serializeBinaryToWriter(this, writer);
15299
+ return writer.getResultBuffer();
15300
+ };
15301
+
15302
+
15303
+ /**
15304
+ * Serializes the given message to binary data (in protobuf wire
15305
+ * format), writing to the given BinaryWriter.
15306
+ * @param {!proto.gateway.web.v1.ProjectUser} message
15307
+ * @param {!jspb.BinaryWriter} writer
15308
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15309
+ */
15310
+ proto.gateway.web.v1.ProjectUser.serializeBinaryToWriter = function(message, writer) {
15311
+ var f = undefined;
15312
+ f = message.getUserId();
15313
+ if (f.length > 0) {
15314
+ writer.writeString(
15315
+ 1,
15316
+ f
15317
+ );
15318
+ }
15319
+ f = message.getOrganizationId();
15320
+ if (f.length > 0) {
15321
+ writer.writeString(
15322
+ 2,
15323
+ f
15324
+ );
15325
+ }
15326
+ f = message.getProjectId();
15327
+ if (f.length > 0) {
15328
+ writer.writeString(
15329
+ 3,
15330
+ f
15331
+ );
15332
+ }
15333
+ f = message.getRole();
15334
+ if (f !== 0.0) {
15335
+ writer.writeEnum(
15336
+ 4,
15337
+ f
15338
+ );
15339
+ }
15340
+ f = message.getCreatedAt();
15341
+ if (f != null) {
15342
+ writer.writeMessage(
15343
+ 5,
15344
+ f,
15345
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
15346
+ );
15347
+ }
15348
+ f = message.getUpdatedAt();
15349
+ if (f != null) {
15350
+ writer.writeMessage(
15351
+ 6,
15352
+ f,
15353
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
15354
+ );
15355
+ }
15356
+ };
15357
+
15358
+
15359
+ /**
15360
+ * optional string user_id = 1;
15361
+ * @return {string}
15362
+ */
15363
+ proto.gateway.web.v1.ProjectUser.prototype.getUserId = function() {
15364
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
15365
+ };
15366
+
15367
+
15368
+ /**
15369
+ * @param {string} value
15370
+ * @return {!proto.gateway.web.v1.ProjectUser} returns this
15371
+ */
15372
+ proto.gateway.web.v1.ProjectUser.prototype.setUserId = function(value) {
15373
+ return jspb.Message.setProto3StringField(this, 1, value);
15374
+ };
15375
+
15376
+
15377
+ /**
15378
+ * optional string organization_id = 2;
15379
+ * @return {string}
15380
+ */
15381
+ proto.gateway.web.v1.ProjectUser.prototype.getOrganizationId = function() {
15382
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
15383
+ };
15384
+
15385
+
15386
+ /**
15387
+ * @param {string} value
15388
+ * @return {!proto.gateway.web.v1.ProjectUser} returns this
15389
+ */
15390
+ proto.gateway.web.v1.ProjectUser.prototype.setOrganizationId = function(value) {
15391
+ return jspb.Message.setProto3StringField(this, 2, value);
15392
+ };
15393
+
15394
+
15395
+ /**
15396
+ * optional string project_id = 3;
15397
+ * @return {string}
15398
+ */
15399
+ proto.gateway.web.v1.ProjectUser.prototype.getProjectId = function() {
15400
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
15401
+ };
15402
+
15403
+
15404
+ /**
15405
+ * @param {string} value
15406
+ * @return {!proto.gateway.web.v1.ProjectUser} returns this
15407
+ */
15408
+ proto.gateway.web.v1.ProjectUser.prototype.setProjectId = function(value) {
15409
+ return jspb.Message.setProto3StringField(this, 3, value);
15410
+ };
15411
+
15412
+
15413
+ /**
15414
+ * optional ProjectRole role = 4;
15415
+ * @return {!proto.gateway.web.v1.ProjectRole}
15416
+ */
15417
+ proto.gateway.web.v1.ProjectUser.prototype.getRole = function() {
15418
+ return /** @type {!proto.gateway.web.v1.ProjectRole} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
15419
+ };
15420
+
15421
+
15422
+ /**
15423
+ * @param {!proto.gateway.web.v1.ProjectRole} value
15424
+ * @return {!proto.gateway.web.v1.ProjectUser} returns this
15425
+ */
15426
+ proto.gateway.web.v1.ProjectUser.prototype.setRole = function(value) {
15427
+ return jspb.Message.setProto3EnumField(this, 4, value);
15428
+ };
15429
+
15430
+
15431
+ /**
15432
+ * optional google.protobuf.Timestamp created_at = 5;
15433
+ * @return {?proto.google.protobuf.Timestamp}
15434
+ */
15435
+ proto.gateway.web.v1.ProjectUser.prototype.getCreatedAt = function() {
15436
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
15437
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
15438
+ };
15439
+
15440
+
15441
+ /**
15442
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
15443
+ * @return {!proto.gateway.web.v1.ProjectUser} returns this
15444
+ */
15445
+ proto.gateway.web.v1.ProjectUser.prototype.setCreatedAt = function(value) {
15446
+ return jspb.Message.setWrapperField(this, 5, value);
15447
+ };
15448
+
15449
+
15450
+ /**
15451
+ * Clears the message field making it undefined.
15452
+ * @return {!proto.gateway.web.v1.ProjectUser} returns this
15453
+ */
15454
+ proto.gateway.web.v1.ProjectUser.prototype.clearCreatedAt = function() {
15455
+ return this.setCreatedAt(undefined);
15456
+ };
15457
+
15458
+
15459
+ /**
15460
+ * Returns whether this field is set.
15461
+ * @return {boolean}
15462
+ */
15463
+ proto.gateway.web.v1.ProjectUser.prototype.hasCreatedAt = function() {
15464
+ return jspb.Message.getField(this, 5) != null;
15465
+ };
15466
+
15467
+
15468
+ /**
15469
+ * optional google.protobuf.Timestamp updated_at = 6;
15470
+ * @return {?proto.google.protobuf.Timestamp}
15471
+ */
15472
+ proto.gateway.web.v1.ProjectUser.prototype.getUpdatedAt = function() {
15473
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
15474
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
15475
+ };
15476
+
15477
+
15478
+ /**
15479
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
15480
+ * @return {!proto.gateway.web.v1.ProjectUser} returns this
15481
+ */
15482
+ proto.gateway.web.v1.ProjectUser.prototype.setUpdatedAt = function(value) {
15483
+ return jspb.Message.setWrapperField(this, 6, value);
15484
+ };
15485
+
15486
+
15487
+ /**
15488
+ * Clears the message field making it undefined.
15489
+ * @return {!proto.gateway.web.v1.ProjectUser} returns this
15490
+ */
15491
+ proto.gateway.web.v1.ProjectUser.prototype.clearUpdatedAt = function() {
15492
+ return this.setUpdatedAt(undefined);
15493
+ };
15494
+
15495
+
15496
+ /**
15497
+ * Returns whether this field is set.
15498
+ * @return {boolean}
15499
+ */
15500
+ proto.gateway.web.v1.ProjectUser.prototype.hasUpdatedAt = function() {
15501
+ return jspb.Message.getField(this, 6) != null;
15502
+ };
15503
+
15504
+
15505
+
15506
+
15507
+
15508
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15509
+ /**
15510
+ * Creates an object representation of this proto.
15511
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15512
+ * Optional fields that are not set will be set to undefined.
15513
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15514
+ * For the list of reserved names please see:
15515
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15516
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15517
+ * JSPB instance for transitional soy proto support:
15518
+ * http://goto/soy-param-migration
15519
+ * @return {!Object}
15520
+ */
15521
+ proto.gateway.web.v1.ListInvitationsRequest.prototype.toObject = function(opt_includeInstance) {
15522
+ return proto.gateway.web.v1.ListInvitationsRequest.toObject(opt_includeInstance, this);
15523
+ };
15524
+
15525
+
15526
+ /**
15527
+ * Static version of the {@see toObject} method.
15528
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15529
+ * the JSPB instance for transitional soy proto support:
15530
+ * http://goto/soy-param-migration
15531
+ * @param {!proto.gateway.web.v1.ListInvitationsRequest} msg The msg instance to transform.
15532
+ * @return {!Object}
15533
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15534
+ */
15535
+ proto.gateway.web.v1.ListInvitationsRequest.toObject = function(includeInstance, msg) {
15536
+ var f, obj = {
15537
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, "")
15538
+ };
15539
+
15540
+ if (includeInstance) {
15541
+ obj.$jspbMessageInstance = msg;
15542
+ }
15543
+ return obj;
15544
+ };
15545
+ }
15546
+
15547
+
15548
+ /**
15549
+ * Deserializes binary data (in protobuf wire format).
15550
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
15551
+ * @return {!proto.gateway.web.v1.ListInvitationsRequest}
15552
+ */
15553
+ proto.gateway.web.v1.ListInvitationsRequest.deserializeBinary = function(bytes) {
15554
+ var reader = new jspb.BinaryReader(bytes);
15555
+ var msg = new proto.gateway.web.v1.ListInvitationsRequest;
15556
+ return proto.gateway.web.v1.ListInvitationsRequest.deserializeBinaryFromReader(msg, reader);
15557
+ };
15558
+
15559
+
15560
+ /**
15561
+ * Deserializes binary data (in protobuf wire format) from the
15562
+ * given reader into the given message object.
15563
+ * @param {!proto.gateway.web.v1.ListInvitationsRequest} msg The message object to deserialize into.
15564
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15565
+ * @return {!proto.gateway.web.v1.ListInvitationsRequest}
15566
+ */
15567
+ proto.gateway.web.v1.ListInvitationsRequest.deserializeBinaryFromReader = function(msg, reader) {
15568
+ while (reader.nextField()) {
15569
+ if (reader.isEndGroup()) {
15570
+ break;
15571
+ }
15572
+ var field = reader.getFieldNumber();
15573
+ switch (field) {
15574
+ case 1:
15575
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
15576
+ msg.setOrganizationId(value);
15577
+ break;
15578
+ default:
15579
+ reader.skipField();
15580
+ break;
15581
+ }
15582
+ }
15583
+ return msg;
15584
+ };
15585
+
15586
+
15587
+ /**
15588
+ * Serializes the message to binary data (in protobuf wire format).
15589
+ * @return {!Uint8Array}
15590
+ */
15591
+ proto.gateway.web.v1.ListInvitationsRequest.prototype.serializeBinary = function() {
15592
+ var writer = new jspb.BinaryWriter();
15593
+ proto.gateway.web.v1.ListInvitationsRequest.serializeBinaryToWriter(this, writer);
15594
+ return writer.getResultBuffer();
15595
+ };
15596
+
15597
+
15598
+ /**
15599
+ * Serializes the given message to binary data (in protobuf wire
15600
+ * format), writing to the given BinaryWriter.
15601
+ * @param {!proto.gateway.web.v1.ListInvitationsRequest} message
15602
+ * @param {!jspb.BinaryWriter} writer
15603
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15604
+ */
15605
+ proto.gateway.web.v1.ListInvitationsRequest.serializeBinaryToWriter = function(message, writer) {
15606
+ var f = undefined;
15607
+ f = message.getOrganizationId();
15608
+ if (f.length > 0) {
15609
+ writer.writeString(
15610
+ 1,
15611
+ f
15612
+ );
15613
+ }
15614
+ };
15615
+
15616
+
15617
+ /**
15618
+ * optional string organization_id = 1;
15619
+ * @return {string}
15620
+ */
15621
+ proto.gateway.web.v1.ListInvitationsRequest.prototype.getOrganizationId = function() {
15622
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
15623
+ };
15624
+
15625
+
15626
+ /**
15627
+ * @param {string} value
15628
+ * @return {!proto.gateway.web.v1.ListInvitationsRequest} returns this
15629
+ */
15630
+ proto.gateway.web.v1.ListInvitationsRequest.prototype.setOrganizationId = function(value) {
15631
+ return jspb.Message.setProto3StringField(this, 1, value);
15632
+ };
15633
+
15634
+
15635
+
15636
+ /**
15637
+ * List of repeated fields within this message type.
15638
+ * @private {!Array<number>}
15639
+ * @const
15640
+ */
15641
+ proto.gateway.web.v1.ListInvitationsResponse.repeatedFields_ = [2];
15642
+
15643
+
15644
+
15645
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15646
+ /**
15647
+ * Creates an object representation of this proto.
15648
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15649
+ * Optional fields that are not set will be set to undefined.
15650
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15651
+ * For the list of reserved names please see:
15652
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15653
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15654
+ * JSPB instance for transitional soy proto support:
15655
+ * http://goto/soy-param-migration
15656
+ * @return {!Object}
15657
+ */
15658
+ proto.gateway.web.v1.ListInvitationsResponse.prototype.toObject = function(opt_includeInstance) {
15659
+ return proto.gateway.web.v1.ListInvitationsResponse.toObject(opt_includeInstance, this);
13216
15660
  };
13217
15661
 
13218
15662
 
@@ -17898,7 +20342,8 @@ sessionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
17898
20342
  label: jspb.Message.getFieldWithDefault(msg, 2, ""),
17899
20343
  createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
17900
20344
  lastUsedAt: (f = msg.getLastUsedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
17901
- expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
20345
+ expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
20346
+ delegatedFromSessionId: jspb.Message.getFieldWithDefault(msg, 6, "")
17902
20347
  };
17903
20348
 
17904
20349
  if (includeInstance) {
@@ -17958,6 +20403,10 @@ proto.gateway.web.v1.CliSession.deserializeBinaryFromReader = function(msg, read
17958
20403
  reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
17959
20404
  msg.setExpiresAt(value);
17960
20405
  break;
20406
+ case 6:
20407
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
20408
+ msg.setDelegatedFromSessionId(value);
20409
+ break;
17961
20410
  default:
17962
20411
  reader.skipField();
17963
20412
  break;
@@ -18025,6 +20474,13 @@ proto.gateway.web.v1.CliSession.serializeBinaryToWriter = function(message, writ
18025
20474
  google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
18026
20475
  );
18027
20476
  }
20477
+ f = message.getDelegatedFromSessionId();
20478
+ if (f.length > 0) {
20479
+ writer.writeString(
20480
+ 6,
20481
+ f
20482
+ );
20483
+ }
18028
20484
  };
18029
20485
 
18030
20486
 
@@ -18175,6 +20631,24 @@ proto.gateway.web.v1.CliSession.prototype.hasExpiresAt = function() {
18175
20631
  };
18176
20632
 
18177
20633
 
20634
+ /**
20635
+ * optional string delegated_from_session_id = 6;
20636
+ * @return {string}
20637
+ */
20638
+ proto.gateway.web.v1.CliSession.prototype.getDelegatedFromSessionId = function() {
20639
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
20640
+ };
20641
+
20642
+
20643
+ /**
20644
+ * @param {string} value
20645
+ * @return {!proto.gateway.web.v1.CliSession} returns this
20646
+ */
20647
+ proto.gateway.web.v1.CliSession.prototype.setDelegatedFromSessionId = function(value) {
20648
+ return jspb.Message.setProto3StringField(this, 6, value);
20649
+ };
20650
+
20651
+
18178
20652
 
18179
20653
 
18180
20654
 
@@ -20178,6 +22652,15 @@ proto.gateway.web.v1.UserRole = {
20178
22652
  USER_ROLE_MEMBER: 2
20179
22653
  };
20180
22654
 
22655
+ /**
22656
+ * @enum {number}
22657
+ */
22658
+ proto.gateway.web.v1.ProjectRole = {
22659
+ PROJECT_ROLE_UNSPECIFIED: 0,
22660
+ PROJECT_ROLE_LEAD: 1,
22661
+ PROJECT_ROLE_MEMBER: 2
22662
+ };
22663
+
20181
22664
  /**
20182
22665
  * @enum {number}
20183
22666
  */