@miradorlabs/web-grpc 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -186,6 +186,8 @@ export enum ProjectStatus {
|
|
|
186
186
|
PROJECT_STATUS_UNSPECIFIED = 0,
|
|
187
187
|
PROJECT_STATUS_ACTIVE = 1,
|
|
188
188
|
PROJECT_STATUS_ARCHIVED = 2,
|
|
189
|
+
/** PROJECT_STATUS_DELETED - Soft-deleted, pending asynchronous cleanup */
|
|
190
|
+
PROJECT_STATUS_DELETED = 3,
|
|
189
191
|
UNRECOGNIZED = -1,
|
|
190
192
|
}
|
|
191
193
|
|
|
@@ -200,6 +202,9 @@ export function projectStatusFromJSON(object: any): ProjectStatus {
|
|
|
200
202
|
case 2:
|
|
201
203
|
case "PROJECT_STATUS_ARCHIVED":
|
|
202
204
|
return ProjectStatus.PROJECT_STATUS_ARCHIVED;
|
|
205
|
+
case 3:
|
|
206
|
+
case "PROJECT_STATUS_DELETED":
|
|
207
|
+
return ProjectStatus.PROJECT_STATUS_DELETED;
|
|
203
208
|
case -1:
|
|
204
209
|
case "UNRECOGNIZED":
|
|
205
210
|
default:
|
|
@@ -215,6 +220,8 @@ export function projectStatusToJSON(object: ProjectStatus): string {
|
|
|
215
220
|
return "PROJECT_STATUS_ACTIVE";
|
|
216
221
|
case ProjectStatus.PROJECT_STATUS_ARCHIVED:
|
|
217
222
|
return "PROJECT_STATUS_ARCHIVED";
|
|
223
|
+
case ProjectStatus.PROJECT_STATUS_DELETED:
|
|
224
|
+
return "PROJECT_STATUS_DELETED";
|
|
218
225
|
case ProjectStatus.UNRECOGNIZED:
|
|
219
226
|
default:
|
|
220
227
|
return "UNRECOGNIZED";
|
|
@@ -749,6 +756,21 @@ export interface UpdateProjectResponse {
|
|
|
749
756
|
project: Project | undefined;
|
|
750
757
|
}
|
|
751
758
|
|
|
759
|
+
/**
|
|
760
|
+
* Soft delete: marks the project deleted so it disappears from listings and
|
|
761
|
+
* authorization immediately; data removal happens asynchronously later.
|
|
762
|
+
*/
|
|
763
|
+
export interface DeleteProjectRequest {
|
|
764
|
+
/** Organization UUID */
|
|
765
|
+
organizationId: string;
|
|
766
|
+
/** Project UUID to delete */
|
|
767
|
+
projectId: string;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
export interface DeleteProjectResponse {
|
|
771
|
+
status: ResponseStatus | undefined;
|
|
772
|
+
}
|
|
773
|
+
|
|
752
774
|
export interface StreamProjectsStatsRequest {
|
|
753
775
|
organizationId: string;
|
|
754
776
|
/** Max 50 */
|
|
@@ -6235,6 +6257,150 @@ export const UpdateProjectResponse: MessageFns<UpdateProjectResponse> = {
|
|
|
6235
6257
|
},
|
|
6236
6258
|
};
|
|
6237
6259
|
|
|
6260
|
+
function createBaseDeleteProjectRequest(): DeleteProjectRequest {
|
|
6261
|
+
return { organizationId: "", projectId: "" };
|
|
6262
|
+
}
|
|
6263
|
+
|
|
6264
|
+
export const DeleteProjectRequest: MessageFns<DeleteProjectRequest> = {
|
|
6265
|
+
encode(message: DeleteProjectRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
6266
|
+
if (message.organizationId !== "") {
|
|
6267
|
+
writer.uint32(10).string(message.organizationId);
|
|
6268
|
+
}
|
|
6269
|
+
if (message.projectId !== "") {
|
|
6270
|
+
writer.uint32(18).string(message.projectId);
|
|
6271
|
+
}
|
|
6272
|
+
return writer;
|
|
6273
|
+
},
|
|
6274
|
+
|
|
6275
|
+
decode(input: BinaryReader | Uint8Array, length?: number): DeleteProjectRequest {
|
|
6276
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6277
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6278
|
+
const message = createBaseDeleteProjectRequest();
|
|
6279
|
+
while (reader.pos < end) {
|
|
6280
|
+
const tag = reader.uint32();
|
|
6281
|
+
switch (tag >>> 3) {
|
|
6282
|
+
case 1: {
|
|
6283
|
+
if (tag !== 10) {
|
|
6284
|
+
break;
|
|
6285
|
+
}
|
|
6286
|
+
|
|
6287
|
+
message.organizationId = reader.string();
|
|
6288
|
+
continue;
|
|
6289
|
+
}
|
|
6290
|
+
case 2: {
|
|
6291
|
+
if (tag !== 18) {
|
|
6292
|
+
break;
|
|
6293
|
+
}
|
|
6294
|
+
|
|
6295
|
+
message.projectId = reader.string();
|
|
6296
|
+
continue;
|
|
6297
|
+
}
|
|
6298
|
+
}
|
|
6299
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6300
|
+
break;
|
|
6301
|
+
}
|
|
6302
|
+
reader.skip(tag & 7);
|
|
6303
|
+
}
|
|
6304
|
+
return message;
|
|
6305
|
+
},
|
|
6306
|
+
|
|
6307
|
+
fromJSON(object: any): DeleteProjectRequest {
|
|
6308
|
+
return {
|
|
6309
|
+
organizationId: isSet(object.organizationId)
|
|
6310
|
+
? globalThis.String(object.organizationId)
|
|
6311
|
+
: isSet(object.organization_id)
|
|
6312
|
+
? globalThis.String(object.organization_id)
|
|
6313
|
+
: "",
|
|
6314
|
+
projectId: isSet(object.projectId)
|
|
6315
|
+
? globalThis.String(object.projectId)
|
|
6316
|
+
: isSet(object.project_id)
|
|
6317
|
+
? globalThis.String(object.project_id)
|
|
6318
|
+
: "",
|
|
6319
|
+
};
|
|
6320
|
+
},
|
|
6321
|
+
|
|
6322
|
+
toJSON(message: DeleteProjectRequest): unknown {
|
|
6323
|
+
const obj: any = {};
|
|
6324
|
+
if (message.organizationId !== "") {
|
|
6325
|
+
obj.organizationId = message.organizationId;
|
|
6326
|
+
}
|
|
6327
|
+
if (message.projectId !== "") {
|
|
6328
|
+
obj.projectId = message.projectId;
|
|
6329
|
+
}
|
|
6330
|
+
return obj;
|
|
6331
|
+
},
|
|
6332
|
+
|
|
6333
|
+
create<I extends Exact<DeepPartial<DeleteProjectRequest>, I>>(base?: I): DeleteProjectRequest {
|
|
6334
|
+
return DeleteProjectRequest.fromPartial(base ?? ({} as any));
|
|
6335
|
+
},
|
|
6336
|
+
fromPartial<I extends Exact<DeepPartial<DeleteProjectRequest>, I>>(object: I): DeleteProjectRequest {
|
|
6337
|
+
const message = createBaseDeleteProjectRequest();
|
|
6338
|
+
message.organizationId = object.organizationId ?? "";
|
|
6339
|
+
message.projectId = object.projectId ?? "";
|
|
6340
|
+
return message;
|
|
6341
|
+
},
|
|
6342
|
+
};
|
|
6343
|
+
|
|
6344
|
+
function createBaseDeleteProjectResponse(): DeleteProjectResponse {
|
|
6345
|
+
return { status: undefined };
|
|
6346
|
+
}
|
|
6347
|
+
|
|
6348
|
+
export const DeleteProjectResponse: MessageFns<DeleteProjectResponse> = {
|
|
6349
|
+
encode(message: DeleteProjectResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
6350
|
+
if (message.status !== undefined) {
|
|
6351
|
+
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
6352
|
+
}
|
|
6353
|
+
return writer;
|
|
6354
|
+
},
|
|
6355
|
+
|
|
6356
|
+
decode(input: BinaryReader | Uint8Array, length?: number): DeleteProjectResponse {
|
|
6357
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
6358
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6359
|
+
const message = createBaseDeleteProjectResponse();
|
|
6360
|
+
while (reader.pos < end) {
|
|
6361
|
+
const tag = reader.uint32();
|
|
6362
|
+
switch (tag >>> 3) {
|
|
6363
|
+
case 1: {
|
|
6364
|
+
if (tag !== 10) {
|
|
6365
|
+
break;
|
|
6366
|
+
}
|
|
6367
|
+
|
|
6368
|
+
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
6369
|
+
continue;
|
|
6370
|
+
}
|
|
6371
|
+
}
|
|
6372
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6373
|
+
break;
|
|
6374
|
+
}
|
|
6375
|
+
reader.skip(tag & 7);
|
|
6376
|
+
}
|
|
6377
|
+
return message;
|
|
6378
|
+
},
|
|
6379
|
+
|
|
6380
|
+
fromJSON(object: any): DeleteProjectResponse {
|
|
6381
|
+
return { status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined };
|
|
6382
|
+
},
|
|
6383
|
+
|
|
6384
|
+
toJSON(message: DeleteProjectResponse): unknown {
|
|
6385
|
+
const obj: any = {};
|
|
6386
|
+
if (message.status !== undefined) {
|
|
6387
|
+
obj.status = ResponseStatus.toJSON(message.status);
|
|
6388
|
+
}
|
|
6389
|
+
return obj;
|
|
6390
|
+
},
|
|
6391
|
+
|
|
6392
|
+
create<I extends Exact<DeepPartial<DeleteProjectResponse>, I>>(base?: I): DeleteProjectResponse {
|
|
6393
|
+
return DeleteProjectResponse.fromPartial(base ?? ({} as any));
|
|
6394
|
+
},
|
|
6395
|
+
fromPartial<I extends Exact<DeepPartial<DeleteProjectResponse>, I>>(object: I): DeleteProjectResponse {
|
|
6396
|
+
const message = createBaseDeleteProjectResponse();
|
|
6397
|
+
message.status = (object.status !== undefined && object.status !== null)
|
|
6398
|
+
? ResponseStatus.fromPartial(object.status)
|
|
6399
|
+
: undefined;
|
|
6400
|
+
return message;
|
|
6401
|
+
},
|
|
6402
|
+
};
|
|
6403
|
+
|
|
6238
6404
|
function createBaseStreamProjectsStatsRequest(): StreamProjectsStatsRequest {
|
|
6239
6405
|
return { organizationId: "", projectIds: [] };
|
|
6240
6406
|
}
|
|
@@ -6739,6 +6905,7 @@ export interface AccountGatewayService {
|
|
|
6739
6905
|
CreateProject(request: CreateProjectRequest, metadata?: Metadata): Promise<CreateProjectResponse>;
|
|
6740
6906
|
ListProjects(request: ListProjectsRequest, metadata?: Metadata): Promise<ListProjectsResponse>;
|
|
6741
6907
|
UpdateProject(request: UpdateProjectRequest, metadata?: Metadata): Promise<UpdateProjectResponse>;
|
|
6908
|
+
DeleteProject(request: DeleteProjectRequest, metadata?: Metadata): Promise<DeleteProjectResponse>;
|
|
6742
6909
|
/** Web API Key operations */
|
|
6743
6910
|
CreateWebApiKey(request: CreateWebApiKeyRequest, metadata?: Metadata): Promise<CreateWebApiKeyResponse>;
|
|
6744
6911
|
ListWebApiKeys(request: ListWebApiKeysRequest, metadata?: Metadata): Promise<ListWebApiKeysResponse>;
|
|
@@ -6784,6 +6951,7 @@ export class AccountGatewayServiceClientImpl implements AccountGatewayService {
|
|
|
6784
6951
|
this.CreateProject = this.CreateProject.bind(this);
|
|
6785
6952
|
this.ListProjects = this.ListProjects.bind(this);
|
|
6786
6953
|
this.UpdateProject = this.UpdateProject.bind(this);
|
|
6954
|
+
this.DeleteProject = this.DeleteProject.bind(this);
|
|
6787
6955
|
this.CreateWebApiKey = this.CreateWebApiKey.bind(this);
|
|
6788
6956
|
this.ListWebApiKeys = this.ListWebApiKeys.bind(this);
|
|
6789
6957
|
this.UpdateWebApiKeyStatus = this.UpdateWebApiKeyStatus.bind(this);
|
|
@@ -6829,6 +6997,12 @@ export class AccountGatewayServiceClientImpl implements AccountGatewayService {
|
|
|
6829
6997
|
return promise.then((data) => UpdateProjectResponse.decode(new BinaryReader(data)));
|
|
6830
6998
|
}
|
|
6831
6999
|
|
|
7000
|
+
DeleteProject(request: DeleteProjectRequest, metadata?: Metadata): Promise<DeleteProjectResponse> {
|
|
7001
|
+
const data = DeleteProjectRequest.encode(request).finish();
|
|
7002
|
+
const promise = this.rpc.request(this.service, "DeleteProject", data, metadata);
|
|
7003
|
+
return promise.then((data) => DeleteProjectResponse.decode(new BinaryReader(data)));
|
|
7004
|
+
}
|
|
7005
|
+
|
|
6832
7006
|
CreateWebApiKey(request: CreateWebApiKeyRequest, metadata?: Metadata): Promise<CreateWebApiKeyResponse> {
|
|
6833
7007
|
const data = CreateWebApiKeyRequest.encode(request).finish();
|
|
6834
7008
|
const promise = this.rpc.request(this.service, "CreateWebApiKey", data, metadata);
|
|
@@ -94,6 +94,28 @@ function deserialize_gateway_web_v1_CreateWebApiKeyResponse(buffer_arg) {
|
|
|
94
94
|
return proto_gateway_web_v1_account_gateway_pb.CreateWebApiKeyResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
function serialize_gateway_web_v1_DeleteProjectRequest(arg) {
|
|
98
|
+
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.DeleteProjectRequest)) {
|
|
99
|
+
throw new Error('Expected argument of type gateway.web.v1.DeleteProjectRequest');
|
|
100
|
+
}
|
|
101
|
+
return Buffer.from(arg.serializeBinary());
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function deserialize_gateway_web_v1_DeleteProjectRequest(buffer_arg) {
|
|
105
|
+
return proto_gateway_web_v1_account_gateway_pb.DeleteProjectRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function serialize_gateway_web_v1_DeleteProjectResponse(arg) {
|
|
109
|
+
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.DeleteProjectResponse)) {
|
|
110
|
+
throw new Error('Expected argument of type gateway.web.v1.DeleteProjectResponse');
|
|
111
|
+
}
|
|
112
|
+
return Buffer.from(arg.serializeBinary());
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function deserialize_gateway_web_v1_DeleteProjectResponse(buffer_arg) {
|
|
116
|
+
return proto_gateway_web_v1_account_gateway_pb.DeleteProjectResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
117
|
+
}
|
|
118
|
+
|
|
97
119
|
function serialize_gateway_web_v1_DeleteServerApiKeyRequest(arg) {
|
|
98
120
|
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.DeleteServerApiKeyRequest)) {
|
|
99
121
|
throw new Error('Expected argument of type gateway.web.v1.DeleteServerApiKeyRequest');
|
|
@@ -582,6 +604,17 @@ createProject: {
|
|
|
582
604
|
responseSerialize: serialize_gateway_web_v1_UpdateProjectResponse,
|
|
583
605
|
responseDeserialize: deserialize_gateway_web_v1_UpdateProjectResponse,
|
|
584
606
|
},
|
|
607
|
+
deleteProject: {
|
|
608
|
+
path: '/gateway.web.v1.AccountGatewayService/DeleteProject',
|
|
609
|
+
requestStream: false,
|
|
610
|
+
responseStream: false,
|
|
611
|
+
requestType: proto_gateway_web_v1_account_gateway_pb.DeleteProjectRequest,
|
|
612
|
+
responseType: proto_gateway_web_v1_account_gateway_pb.DeleteProjectResponse,
|
|
613
|
+
requestSerialize: serialize_gateway_web_v1_DeleteProjectRequest,
|
|
614
|
+
requestDeserialize: deserialize_gateway_web_v1_DeleteProjectRequest,
|
|
615
|
+
responseSerialize: serialize_gateway_web_v1_DeleteProjectResponse,
|
|
616
|
+
responseDeserialize: deserialize_gateway_web_v1_DeleteProjectResponse,
|
|
617
|
+
},
|
|
585
618
|
// Web API Key operations
|
|
586
619
|
createWebApiKey: {
|
|
587
620
|
path: '/gateway.web.v1.AccountGatewayService/CreateWebApiKey',
|
|
@@ -33,6 +33,8 @@ goog.exportSymbol('proto.gateway.web.v1.CreateServerApiKeyRequest', null, global
|
|
|
33
33
|
goog.exportSymbol('proto.gateway.web.v1.CreateServerApiKeyResponse', null, global);
|
|
34
34
|
goog.exportSymbol('proto.gateway.web.v1.CreateWebApiKeyRequest', null, global);
|
|
35
35
|
goog.exportSymbol('proto.gateway.web.v1.CreateWebApiKeyResponse', null, global);
|
|
36
|
+
goog.exportSymbol('proto.gateway.web.v1.DeleteProjectRequest', null, global);
|
|
37
|
+
goog.exportSymbol('proto.gateway.web.v1.DeleteProjectResponse', null, global);
|
|
36
38
|
goog.exportSymbol('proto.gateway.web.v1.DeleteServerApiKeyRequest', null, global);
|
|
37
39
|
goog.exportSymbol('proto.gateway.web.v1.DeleteServerApiKeyResponse', null, global);
|
|
38
40
|
goog.exportSymbol('proto.gateway.web.v1.DeleteWebApiKeyRequest', null, global);
|
|
@@ -1249,6 +1251,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1249
1251
|
*/
|
|
1250
1252
|
proto.gateway.web.v1.UpdateProjectResponse.displayName = 'proto.gateway.web.v1.UpdateProjectResponse';
|
|
1251
1253
|
}
|
|
1254
|
+
/**
|
|
1255
|
+
* Generated by JsPbCodeGenerator.
|
|
1256
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1257
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1258
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1259
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1260
|
+
* valid.
|
|
1261
|
+
* @extends {jspb.Message}
|
|
1262
|
+
* @constructor
|
|
1263
|
+
*/
|
|
1264
|
+
proto.gateway.web.v1.DeleteProjectRequest = function(opt_data) {
|
|
1265
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1266
|
+
};
|
|
1267
|
+
goog.inherits(proto.gateway.web.v1.DeleteProjectRequest, jspb.Message);
|
|
1268
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1269
|
+
/**
|
|
1270
|
+
* @public
|
|
1271
|
+
* @override
|
|
1272
|
+
*/
|
|
1273
|
+
proto.gateway.web.v1.DeleteProjectRequest.displayName = 'proto.gateway.web.v1.DeleteProjectRequest';
|
|
1274
|
+
}
|
|
1275
|
+
/**
|
|
1276
|
+
* Generated by JsPbCodeGenerator.
|
|
1277
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1278
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1279
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1280
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1281
|
+
* valid.
|
|
1282
|
+
* @extends {jspb.Message}
|
|
1283
|
+
* @constructor
|
|
1284
|
+
*/
|
|
1285
|
+
proto.gateway.web.v1.DeleteProjectResponse = function(opt_data) {
|
|
1286
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1287
|
+
};
|
|
1288
|
+
goog.inherits(proto.gateway.web.v1.DeleteProjectResponse, jspb.Message);
|
|
1289
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1290
|
+
/**
|
|
1291
|
+
* @public
|
|
1292
|
+
* @override
|
|
1293
|
+
*/
|
|
1294
|
+
proto.gateway.web.v1.DeleteProjectResponse.displayName = 'proto.gateway.web.v1.DeleteProjectResponse';
|
|
1295
|
+
}
|
|
1252
1296
|
/**
|
|
1253
1297
|
* Generated by JsPbCodeGenerator.
|
|
1254
1298
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -13175,6 +13219,317 @@ proto.gateway.web.v1.UpdateProjectResponse.prototype.hasProject = function() {
|
|
|
13175
13219
|
|
|
13176
13220
|
|
|
13177
13221
|
|
|
13222
|
+
|
|
13223
|
+
|
|
13224
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13225
|
+
/**
|
|
13226
|
+
* Creates an object representation of this proto.
|
|
13227
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
13228
|
+
* Optional fields that are not set will be set to undefined.
|
|
13229
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
13230
|
+
* For the list of reserved names please see:
|
|
13231
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
13232
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
13233
|
+
* JSPB instance for transitional soy proto support:
|
|
13234
|
+
* http://goto/soy-param-migration
|
|
13235
|
+
* @return {!Object}
|
|
13236
|
+
*/
|
|
13237
|
+
proto.gateway.web.v1.DeleteProjectRequest.prototype.toObject = function(opt_includeInstance) {
|
|
13238
|
+
return proto.gateway.web.v1.DeleteProjectRequest.toObject(opt_includeInstance, this);
|
|
13239
|
+
};
|
|
13240
|
+
|
|
13241
|
+
|
|
13242
|
+
/**
|
|
13243
|
+
* Static version of the {@see toObject} method.
|
|
13244
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
13245
|
+
* the JSPB instance for transitional soy proto support:
|
|
13246
|
+
* http://goto/soy-param-migration
|
|
13247
|
+
* @param {!proto.gateway.web.v1.DeleteProjectRequest} msg The msg instance to transform.
|
|
13248
|
+
* @return {!Object}
|
|
13249
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13250
|
+
*/
|
|
13251
|
+
proto.gateway.web.v1.DeleteProjectRequest.toObject = function(includeInstance, msg) {
|
|
13252
|
+
var f, obj = {
|
|
13253
|
+
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
13254
|
+
projectId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
13255
|
+
};
|
|
13256
|
+
|
|
13257
|
+
if (includeInstance) {
|
|
13258
|
+
obj.$jspbMessageInstance = msg;
|
|
13259
|
+
}
|
|
13260
|
+
return obj;
|
|
13261
|
+
};
|
|
13262
|
+
}
|
|
13263
|
+
|
|
13264
|
+
|
|
13265
|
+
/**
|
|
13266
|
+
* Deserializes binary data (in protobuf wire format).
|
|
13267
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
13268
|
+
* @return {!proto.gateway.web.v1.DeleteProjectRequest}
|
|
13269
|
+
*/
|
|
13270
|
+
proto.gateway.web.v1.DeleteProjectRequest.deserializeBinary = function(bytes) {
|
|
13271
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
13272
|
+
var msg = new proto.gateway.web.v1.DeleteProjectRequest;
|
|
13273
|
+
return proto.gateway.web.v1.DeleteProjectRequest.deserializeBinaryFromReader(msg, reader);
|
|
13274
|
+
};
|
|
13275
|
+
|
|
13276
|
+
|
|
13277
|
+
/**
|
|
13278
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
13279
|
+
* given reader into the given message object.
|
|
13280
|
+
* @param {!proto.gateway.web.v1.DeleteProjectRequest} msg The message object to deserialize into.
|
|
13281
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
13282
|
+
* @return {!proto.gateway.web.v1.DeleteProjectRequest}
|
|
13283
|
+
*/
|
|
13284
|
+
proto.gateway.web.v1.DeleteProjectRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
13285
|
+
while (reader.nextField()) {
|
|
13286
|
+
if (reader.isEndGroup()) {
|
|
13287
|
+
break;
|
|
13288
|
+
}
|
|
13289
|
+
var field = reader.getFieldNumber();
|
|
13290
|
+
switch (field) {
|
|
13291
|
+
case 1:
|
|
13292
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13293
|
+
msg.setOrganizationId(value);
|
|
13294
|
+
break;
|
|
13295
|
+
case 2:
|
|
13296
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13297
|
+
msg.setProjectId(value);
|
|
13298
|
+
break;
|
|
13299
|
+
default:
|
|
13300
|
+
reader.skipField();
|
|
13301
|
+
break;
|
|
13302
|
+
}
|
|
13303
|
+
}
|
|
13304
|
+
return msg;
|
|
13305
|
+
};
|
|
13306
|
+
|
|
13307
|
+
|
|
13308
|
+
/**
|
|
13309
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
13310
|
+
* @return {!Uint8Array}
|
|
13311
|
+
*/
|
|
13312
|
+
proto.gateway.web.v1.DeleteProjectRequest.prototype.serializeBinary = function() {
|
|
13313
|
+
var writer = new jspb.BinaryWriter();
|
|
13314
|
+
proto.gateway.web.v1.DeleteProjectRequest.serializeBinaryToWriter(this, writer);
|
|
13315
|
+
return writer.getResultBuffer();
|
|
13316
|
+
};
|
|
13317
|
+
|
|
13318
|
+
|
|
13319
|
+
/**
|
|
13320
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
13321
|
+
* format), writing to the given BinaryWriter.
|
|
13322
|
+
* @param {!proto.gateway.web.v1.DeleteProjectRequest} message
|
|
13323
|
+
* @param {!jspb.BinaryWriter} writer
|
|
13324
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13325
|
+
*/
|
|
13326
|
+
proto.gateway.web.v1.DeleteProjectRequest.serializeBinaryToWriter = function(message, writer) {
|
|
13327
|
+
var f = undefined;
|
|
13328
|
+
f = message.getOrganizationId();
|
|
13329
|
+
if (f.length > 0) {
|
|
13330
|
+
writer.writeString(
|
|
13331
|
+
1,
|
|
13332
|
+
f
|
|
13333
|
+
);
|
|
13334
|
+
}
|
|
13335
|
+
f = message.getProjectId();
|
|
13336
|
+
if (f.length > 0) {
|
|
13337
|
+
writer.writeString(
|
|
13338
|
+
2,
|
|
13339
|
+
f
|
|
13340
|
+
);
|
|
13341
|
+
}
|
|
13342
|
+
};
|
|
13343
|
+
|
|
13344
|
+
|
|
13345
|
+
/**
|
|
13346
|
+
* optional string organization_id = 1;
|
|
13347
|
+
* @return {string}
|
|
13348
|
+
*/
|
|
13349
|
+
proto.gateway.web.v1.DeleteProjectRequest.prototype.getOrganizationId = function() {
|
|
13350
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
13351
|
+
};
|
|
13352
|
+
|
|
13353
|
+
|
|
13354
|
+
/**
|
|
13355
|
+
* @param {string} value
|
|
13356
|
+
* @return {!proto.gateway.web.v1.DeleteProjectRequest} returns this
|
|
13357
|
+
*/
|
|
13358
|
+
proto.gateway.web.v1.DeleteProjectRequest.prototype.setOrganizationId = function(value) {
|
|
13359
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
13360
|
+
};
|
|
13361
|
+
|
|
13362
|
+
|
|
13363
|
+
/**
|
|
13364
|
+
* optional string project_id = 2;
|
|
13365
|
+
* @return {string}
|
|
13366
|
+
*/
|
|
13367
|
+
proto.gateway.web.v1.DeleteProjectRequest.prototype.getProjectId = function() {
|
|
13368
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
13369
|
+
};
|
|
13370
|
+
|
|
13371
|
+
|
|
13372
|
+
/**
|
|
13373
|
+
* @param {string} value
|
|
13374
|
+
* @return {!proto.gateway.web.v1.DeleteProjectRequest} returns this
|
|
13375
|
+
*/
|
|
13376
|
+
proto.gateway.web.v1.DeleteProjectRequest.prototype.setProjectId = function(value) {
|
|
13377
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
13378
|
+
};
|
|
13379
|
+
|
|
13380
|
+
|
|
13381
|
+
|
|
13382
|
+
|
|
13383
|
+
|
|
13384
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13385
|
+
/**
|
|
13386
|
+
* Creates an object representation of this proto.
|
|
13387
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
13388
|
+
* Optional fields that are not set will be set to undefined.
|
|
13389
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
13390
|
+
* For the list of reserved names please see:
|
|
13391
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
13392
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
13393
|
+
* JSPB instance for transitional soy proto support:
|
|
13394
|
+
* http://goto/soy-param-migration
|
|
13395
|
+
* @return {!Object}
|
|
13396
|
+
*/
|
|
13397
|
+
proto.gateway.web.v1.DeleteProjectResponse.prototype.toObject = function(opt_includeInstance) {
|
|
13398
|
+
return proto.gateway.web.v1.DeleteProjectResponse.toObject(opt_includeInstance, this);
|
|
13399
|
+
};
|
|
13400
|
+
|
|
13401
|
+
|
|
13402
|
+
/**
|
|
13403
|
+
* Static version of the {@see toObject} method.
|
|
13404
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
13405
|
+
* the JSPB instance for transitional soy proto support:
|
|
13406
|
+
* http://goto/soy-param-migration
|
|
13407
|
+
* @param {!proto.gateway.web.v1.DeleteProjectResponse} msg The msg instance to transform.
|
|
13408
|
+
* @return {!Object}
|
|
13409
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13410
|
+
*/
|
|
13411
|
+
proto.gateway.web.v1.DeleteProjectResponse.toObject = function(includeInstance, msg) {
|
|
13412
|
+
var f, obj = {
|
|
13413
|
+
status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f)
|
|
13414
|
+
};
|
|
13415
|
+
|
|
13416
|
+
if (includeInstance) {
|
|
13417
|
+
obj.$jspbMessageInstance = msg;
|
|
13418
|
+
}
|
|
13419
|
+
return obj;
|
|
13420
|
+
};
|
|
13421
|
+
}
|
|
13422
|
+
|
|
13423
|
+
|
|
13424
|
+
/**
|
|
13425
|
+
* Deserializes binary data (in protobuf wire format).
|
|
13426
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
13427
|
+
* @return {!proto.gateway.web.v1.DeleteProjectResponse}
|
|
13428
|
+
*/
|
|
13429
|
+
proto.gateway.web.v1.DeleteProjectResponse.deserializeBinary = function(bytes) {
|
|
13430
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
13431
|
+
var msg = new proto.gateway.web.v1.DeleteProjectResponse;
|
|
13432
|
+
return proto.gateway.web.v1.DeleteProjectResponse.deserializeBinaryFromReader(msg, reader);
|
|
13433
|
+
};
|
|
13434
|
+
|
|
13435
|
+
|
|
13436
|
+
/**
|
|
13437
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
13438
|
+
* given reader into the given message object.
|
|
13439
|
+
* @param {!proto.gateway.web.v1.DeleteProjectResponse} msg The message object to deserialize into.
|
|
13440
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
13441
|
+
* @return {!proto.gateway.web.v1.DeleteProjectResponse}
|
|
13442
|
+
*/
|
|
13443
|
+
proto.gateway.web.v1.DeleteProjectResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
13444
|
+
while (reader.nextField()) {
|
|
13445
|
+
if (reader.isEndGroup()) {
|
|
13446
|
+
break;
|
|
13447
|
+
}
|
|
13448
|
+
var field = reader.getFieldNumber();
|
|
13449
|
+
switch (field) {
|
|
13450
|
+
case 1:
|
|
13451
|
+
var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
|
|
13452
|
+
reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
|
|
13453
|
+
msg.setStatus(value);
|
|
13454
|
+
break;
|
|
13455
|
+
default:
|
|
13456
|
+
reader.skipField();
|
|
13457
|
+
break;
|
|
13458
|
+
}
|
|
13459
|
+
}
|
|
13460
|
+
return msg;
|
|
13461
|
+
};
|
|
13462
|
+
|
|
13463
|
+
|
|
13464
|
+
/**
|
|
13465
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
13466
|
+
* @return {!Uint8Array}
|
|
13467
|
+
*/
|
|
13468
|
+
proto.gateway.web.v1.DeleteProjectResponse.prototype.serializeBinary = function() {
|
|
13469
|
+
var writer = new jspb.BinaryWriter();
|
|
13470
|
+
proto.gateway.web.v1.DeleteProjectResponse.serializeBinaryToWriter(this, writer);
|
|
13471
|
+
return writer.getResultBuffer();
|
|
13472
|
+
};
|
|
13473
|
+
|
|
13474
|
+
|
|
13475
|
+
/**
|
|
13476
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
13477
|
+
* format), writing to the given BinaryWriter.
|
|
13478
|
+
* @param {!proto.gateway.web.v1.DeleteProjectResponse} message
|
|
13479
|
+
* @param {!jspb.BinaryWriter} writer
|
|
13480
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13481
|
+
*/
|
|
13482
|
+
proto.gateway.web.v1.DeleteProjectResponse.serializeBinaryToWriter = function(message, writer) {
|
|
13483
|
+
var f = undefined;
|
|
13484
|
+
f = message.getStatus();
|
|
13485
|
+
if (f != null) {
|
|
13486
|
+
writer.writeMessage(
|
|
13487
|
+
1,
|
|
13488
|
+
f,
|
|
13489
|
+
proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
|
|
13490
|
+
);
|
|
13491
|
+
}
|
|
13492
|
+
};
|
|
13493
|
+
|
|
13494
|
+
|
|
13495
|
+
/**
|
|
13496
|
+
* optional gateway.common.v1.ResponseStatus status = 1;
|
|
13497
|
+
* @return {?proto.gateway.common.v1.ResponseStatus}
|
|
13498
|
+
*/
|
|
13499
|
+
proto.gateway.web.v1.DeleteProjectResponse.prototype.getStatus = function() {
|
|
13500
|
+
return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
|
|
13501
|
+
jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
|
|
13502
|
+
};
|
|
13503
|
+
|
|
13504
|
+
|
|
13505
|
+
/**
|
|
13506
|
+
* @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
|
|
13507
|
+
* @return {!proto.gateway.web.v1.DeleteProjectResponse} returns this
|
|
13508
|
+
*/
|
|
13509
|
+
proto.gateway.web.v1.DeleteProjectResponse.prototype.setStatus = function(value) {
|
|
13510
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
13511
|
+
};
|
|
13512
|
+
|
|
13513
|
+
|
|
13514
|
+
/**
|
|
13515
|
+
* Clears the message field making it undefined.
|
|
13516
|
+
* @return {!proto.gateway.web.v1.DeleteProjectResponse} returns this
|
|
13517
|
+
*/
|
|
13518
|
+
proto.gateway.web.v1.DeleteProjectResponse.prototype.clearStatus = function() {
|
|
13519
|
+
return this.setStatus(undefined);
|
|
13520
|
+
};
|
|
13521
|
+
|
|
13522
|
+
|
|
13523
|
+
/**
|
|
13524
|
+
* Returns whether this field is set.
|
|
13525
|
+
* @return {boolean}
|
|
13526
|
+
*/
|
|
13527
|
+
proto.gateway.web.v1.DeleteProjectResponse.prototype.hasStatus = function() {
|
|
13528
|
+
return jspb.Message.getField(this, 1) != null;
|
|
13529
|
+
};
|
|
13530
|
+
|
|
13531
|
+
|
|
13532
|
+
|
|
13178
13533
|
/**
|
|
13179
13534
|
* List of repeated fields within this message type.
|
|
13180
13535
|
* @private {!Array<number>}
|
|
@@ -14304,7 +14659,8 @@ proto.gateway.web.v1.OnboardingStatus = {
|
|
|
14304
14659
|
proto.gateway.web.v1.ProjectStatus = {
|
|
14305
14660
|
PROJECT_STATUS_UNSPECIFIED: 0,
|
|
14306
14661
|
PROJECT_STATUS_ACTIVE: 1,
|
|
14307
|
-
PROJECT_STATUS_ARCHIVED: 2
|
|
14662
|
+
PROJECT_STATUS_ARCHIVED: 2,
|
|
14663
|
+
PROJECT_STATUS_DELETED: 3
|
|
14308
14664
|
};
|
|
14309
14665
|
|
|
14310
14666
|
/**
|