@miradorlabs/web-grpc 3.22.0 → 3.24.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 +1 -1
- package/proto/gateway/web/v1/admin_gateway.ts +219 -1
- package/proto/gateway/web/v1/admin_gateway_grpc_pb.js +34 -0
- package/proto/gateway/web/v1/admin_gateway_pb.js +458 -1
- package/proto/gateway/web/v1/reference_gateway.ts +102 -1
- package/proto/gateway/web/v1/reference_gateway_pb.js +230 -1
package/package.json
CHANGED
|
@@ -31,7 +31,11 @@ export interface InviteCode {
|
|
|
31
31
|
createdAt: Date | undefined;
|
|
32
32
|
expiresAt: Date | undefined;
|
|
33
33
|
reservedAt: Date | undefined;
|
|
34
|
-
redeemedAt:
|
|
34
|
+
redeemedAt:
|
|
35
|
+
| Date
|
|
36
|
+
| undefined;
|
|
37
|
+
/** The last time staff emailed the code; absent if it never was. */
|
|
38
|
+
emailedAt: Date | undefined;
|
|
35
39
|
}
|
|
36
40
|
|
|
37
41
|
export interface GenerateInviteCodesRequest {
|
|
@@ -53,6 +57,16 @@ export interface ListInviteCodesResponse {
|
|
|
53
57
|
codes: InviteCode[];
|
|
54
58
|
}
|
|
55
59
|
|
|
60
|
+
export interface SendInviteCodeEmailRequest {
|
|
61
|
+
id: string;
|
|
62
|
+
email: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface SendInviteCodeEmailResponse {
|
|
66
|
+
status: ResponseStatus | undefined;
|
|
67
|
+
code: InviteCode | undefined;
|
|
68
|
+
}
|
|
69
|
+
|
|
56
70
|
export interface UpdateAIProviderRequest {
|
|
57
71
|
name: string;
|
|
58
72
|
/** Needs a letter or digit. Stored as its lowercase slug ("GPT 6 Sol" -> "gpt-6-sol"). */
|
|
@@ -320,6 +334,7 @@ function createBaseInviteCode(): InviteCode {
|
|
|
320
334
|
expiresAt: undefined,
|
|
321
335
|
reservedAt: undefined,
|
|
322
336
|
redeemedAt: undefined,
|
|
337
|
+
emailedAt: undefined,
|
|
323
338
|
};
|
|
324
339
|
}
|
|
325
340
|
|
|
@@ -352,6 +367,9 @@ export const InviteCode: MessageFns<InviteCode> = {
|
|
|
352
367
|
if (message.redeemedAt !== undefined) {
|
|
353
368
|
Timestamp.encode(toTimestamp(message.redeemedAt), writer.uint32(74).fork()).join();
|
|
354
369
|
}
|
|
370
|
+
if (message.emailedAt !== undefined) {
|
|
371
|
+
Timestamp.encode(toTimestamp(message.emailedAt), writer.uint32(82).fork()).join();
|
|
372
|
+
}
|
|
355
373
|
return writer;
|
|
356
374
|
},
|
|
357
375
|
|
|
@@ -440,6 +458,14 @@ export const InviteCode: MessageFns<InviteCode> = {
|
|
|
440
458
|
message.redeemedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
441
459
|
continue;
|
|
442
460
|
}
|
|
461
|
+
case 10: {
|
|
462
|
+
if (tag !== 82) {
|
|
463
|
+
break;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
message.emailedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
467
|
+
continue;
|
|
468
|
+
}
|
|
443
469
|
}
|
|
444
470
|
if ((tag & 7) === 4 || tag === 0) {
|
|
445
471
|
break;
|
|
@@ -483,6 +509,11 @@ export const InviteCode: MessageFns<InviteCode> = {
|
|
|
483
509
|
: isSet(object.redeemed_at)
|
|
484
510
|
? fromJsonTimestamp(object.redeemed_at)
|
|
485
511
|
: undefined,
|
|
512
|
+
emailedAt: isSet(object.emailedAt)
|
|
513
|
+
? fromJsonTimestamp(object.emailedAt)
|
|
514
|
+
: isSet(object.emailed_at)
|
|
515
|
+
? fromJsonTimestamp(object.emailed_at)
|
|
516
|
+
: undefined,
|
|
486
517
|
};
|
|
487
518
|
},
|
|
488
519
|
|
|
@@ -515,6 +546,9 @@ export const InviteCode: MessageFns<InviteCode> = {
|
|
|
515
546
|
if (message.redeemedAt !== undefined) {
|
|
516
547
|
obj.redeemedAt = message.redeemedAt.toISOString();
|
|
517
548
|
}
|
|
549
|
+
if (message.emailedAt !== undefined) {
|
|
550
|
+
obj.emailedAt = message.emailedAt.toISOString();
|
|
551
|
+
}
|
|
518
552
|
return obj;
|
|
519
553
|
},
|
|
520
554
|
|
|
@@ -532,6 +566,7 @@ export const InviteCode: MessageFns<InviteCode> = {
|
|
|
532
566
|
message.expiresAt = object.expiresAt ?? undefined;
|
|
533
567
|
message.reservedAt = object.reservedAt ?? undefined;
|
|
534
568
|
message.redeemedAt = object.redeemedAt ?? undefined;
|
|
569
|
+
message.emailedAt = object.emailedAt ?? undefined;
|
|
535
570
|
return message;
|
|
536
571
|
},
|
|
537
572
|
};
|
|
@@ -867,6 +902,180 @@ export const ListInviteCodesResponse: MessageFns<ListInviteCodesResponse> = {
|
|
|
867
902
|
},
|
|
868
903
|
};
|
|
869
904
|
|
|
905
|
+
function createBaseSendInviteCodeEmailRequest(): SendInviteCodeEmailRequest {
|
|
906
|
+
return { id: "", email: "" };
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
export const SendInviteCodeEmailRequest: MessageFns<SendInviteCodeEmailRequest> = {
|
|
910
|
+
encode(message: SendInviteCodeEmailRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
911
|
+
if (message.id !== "") {
|
|
912
|
+
writer.uint32(10).string(message.id);
|
|
913
|
+
}
|
|
914
|
+
if (message.email !== "") {
|
|
915
|
+
writer.uint32(18).string(message.email);
|
|
916
|
+
}
|
|
917
|
+
return writer;
|
|
918
|
+
},
|
|
919
|
+
|
|
920
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SendInviteCodeEmailRequest {
|
|
921
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
922
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
923
|
+
if (previousRecursionDepth >= 100) {
|
|
924
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
925
|
+
}
|
|
926
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
927
|
+
try {
|
|
928
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
929
|
+
const message = createBaseSendInviteCodeEmailRequest();
|
|
930
|
+
while (reader.pos < end) {
|
|
931
|
+
const tag = reader.uint32();
|
|
932
|
+
switch (tag >>> 3) {
|
|
933
|
+
case 1: {
|
|
934
|
+
if (tag !== 10) {
|
|
935
|
+
break;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
message.id = reader.string();
|
|
939
|
+
continue;
|
|
940
|
+
}
|
|
941
|
+
case 2: {
|
|
942
|
+
if (tag !== 18) {
|
|
943
|
+
break;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
message.email = reader.string();
|
|
947
|
+
continue;
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
951
|
+
break;
|
|
952
|
+
}
|
|
953
|
+
reader.skip(tag & 7);
|
|
954
|
+
}
|
|
955
|
+
return message;
|
|
956
|
+
} finally {
|
|
957
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
958
|
+
}
|
|
959
|
+
},
|
|
960
|
+
|
|
961
|
+
fromJSON(object: any): SendInviteCodeEmailRequest {
|
|
962
|
+
return {
|
|
963
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
964
|
+
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
965
|
+
};
|
|
966
|
+
},
|
|
967
|
+
|
|
968
|
+
toJSON(message: SendInviteCodeEmailRequest): unknown {
|
|
969
|
+
const obj: any = {};
|
|
970
|
+
if (message.id !== "") {
|
|
971
|
+
obj.id = message.id;
|
|
972
|
+
}
|
|
973
|
+
if (message.email !== "") {
|
|
974
|
+
obj.email = message.email;
|
|
975
|
+
}
|
|
976
|
+
return obj;
|
|
977
|
+
},
|
|
978
|
+
|
|
979
|
+
create<I extends Exact<DeepPartial<SendInviteCodeEmailRequest>, I>>(base?: I): SendInviteCodeEmailRequest {
|
|
980
|
+
return SendInviteCodeEmailRequest.fromPartial(base ?? ({} as any));
|
|
981
|
+
},
|
|
982
|
+
fromPartial<I extends Exact<DeepPartial<SendInviteCodeEmailRequest>, I>>(object: I): SendInviteCodeEmailRequest {
|
|
983
|
+
const message = createBaseSendInviteCodeEmailRequest();
|
|
984
|
+
message.id = object.id ?? "";
|
|
985
|
+
message.email = object.email ?? "";
|
|
986
|
+
return message;
|
|
987
|
+
},
|
|
988
|
+
};
|
|
989
|
+
|
|
990
|
+
function createBaseSendInviteCodeEmailResponse(): SendInviteCodeEmailResponse {
|
|
991
|
+
return { status: undefined, code: undefined };
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
export const SendInviteCodeEmailResponse: MessageFns<SendInviteCodeEmailResponse> = {
|
|
995
|
+
encode(message: SendInviteCodeEmailResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
996
|
+
if (message.status !== undefined) {
|
|
997
|
+
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
998
|
+
}
|
|
999
|
+
if (message.code !== undefined) {
|
|
1000
|
+
InviteCode.encode(message.code, writer.uint32(18).fork()).join();
|
|
1001
|
+
}
|
|
1002
|
+
return writer;
|
|
1003
|
+
},
|
|
1004
|
+
|
|
1005
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SendInviteCodeEmailResponse {
|
|
1006
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1007
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1008
|
+
if (previousRecursionDepth >= 100) {
|
|
1009
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1010
|
+
}
|
|
1011
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1012
|
+
try {
|
|
1013
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1014
|
+
const message = createBaseSendInviteCodeEmailResponse();
|
|
1015
|
+
while (reader.pos < end) {
|
|
1016
|
+
const tag = reader.uint32();
|
|
1017
|
+
switch (tag >>> 3) {
|
|
1018
|
+
case 1: {
|
|
1019
|
+
if (tag !== 10) {
|
|
1020
|
+
break;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
1024
|
+
continue;
|
|
1025
|
+
}
|
|
1026
|
+
case 2: {
|
|
1027
|
+
if (tag !== 18) {
|
|
1028
|
+
break;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
message.code = InviteCode.decode(reader, reader.uint32());
|
|
1032
|
+
continue;
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1036
|
+
break;
|
|
1037
|
+
}
|
|
1038
|
+
reader.skip(tag & 7);
|
|
1039
|
+
}
|
|
1040
|
+
return message;
|
|
1041
|
+
} finally {
|
|
1042
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1043
|
+
}
|
|
1044
|
+
},
|
|
1045
|
+
|
|
1046
|
+
fromJSON(object: any): SendInviteCodeEmailResponse {
|
|
1047
|
+
return {
|
|
1048
|
+
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
1049
|
+
code: isSet(object.code) ? InviteCode.fromJSON(object.code) : undefined,
|
|
1050
|
+
};
|
|
1051
|
+
},
|
|
1052
|
+
|
|
1053
|
+
toJSON(message: SendInviteCodeEmailResponse): unknown {
|
|
1054
|
+
const obj: any = {};
|
|
1055
|
+
if (message.status !== undefined) {
|
|
1056
|
+
obj.status = ResponseStatus.toJSON(message.status);
|
|
1057
|
+
}
|
|
1058
|
+
if (message.code !== undefined) {
|
|
1059
|
+
obj.code = InviteCode.toJSON(message.code);
|
|
1060
|
+
}
|
|
1061
|
+
return obj;
|
|
1062
|
+
},
|
|
1063
|
+
|
|
1064
|
+
create<I extends Exact<DeepPartial<SendInviteCodeEmailResponse>, I>>(base?: I): SendInviteCodeEmailResponse {
|
|
1065
|
+
return SendInviteCodeEmailResponse.fromPartial(base ?? ({} as any));
|
|
1066
|
+
},
|
|
1067
|
+
fromPartial<I extends Exact<DeepPartial<SendInviteCodeEmailResponse>, I>>(object: I): SendInviteCodeEmailResponse {
|
|
1068
|
+
const message = createBaseSendInviteCodeEmailResponse();
|
|
1069
|
+
message.status = (object.status !== undefined && object.status !== null)
|
|
1070
|
+
? ResponseStatus.fromPartial(object.status)
|
|
1071
|
+
: undefined;
|
|
1072
|
+
message.code = (object.code !== undefined && object.code !== null)
|
|
1073
|
+
? InviteCode.fromPartial(object.code)
|
|
1074
|
+
: undefined;
|
|
1075
|
+
return message;
|
|
1076
|
+
},
|
|
1077
|
+
};
|
|
1078
|
+
|
|
870
1079
|
function createBaseUpdateAIProviderRequest(): UpdateAIProviderRequest {
|
|
871
1080
|
return { name: "", displayName: "" };
|
|
872
1081
|
}
|
|
@@ -2318,6 +2527,8 @@ export interface AdminGatewayService {
|
|
|
2318
2527
|
/** Beta invite codes for this gateway's product. */
|
|
2319
2528
|
GenerateInviteCodes(request: GenerateInviteCodesRequest, metadata?: Metadata): Promise<GenerateInviteCodesResponse>;
|
|
2320
2529
|
ListInviteCodes(request: ListInviteCodesRequest, metadata?: Metadata): Promise<ListInviteCodesResponse>;
|
|
2530
|
+
/** SendInviteCodeEmail emails one available code to an address and records when it was sent. */
|
|
2531
|
+
SendInviteCodeEmail(request: SendInviteCodeEmailRequest, metadata?: Metadata): Promise<SendInviteCodeEmailResponse>;
|
|
2321
2532
|
/**
|
|
2322
2533
|
* Staff set a global AI name's display name for every organization. An update makes the name MANUAL; the
|
|
2323
2534
|
* model processor never overwrites it. The tables are read through ReferenceGatewayService.
|
|
@@ -2350,6 +2561,7 @@ export class AdminGatewayServiceClientImpl implements AdminGatewayService {
|
|
|
2350
2561
|
this.GetAdminStatus = this.GetAdminStatus.bind(this);
|
|
2351
2562
|
this.GenerateInviteCodes = this.GenerateInviteCodes.bind(this);
|
|
2352
2563
|
this.ListInviteCodes = this.ListInviteCodes.bind(this);
|
|
2564
|
+
this.SendInviteCodeEmail = this.SendInviteCodeEmail.bind(this);
|
|
2353
2565
|
this.UpdateAIProvider = this.UpdateAIProvider.bind(this);
|
|
2354
2566
|
this.UpdateAIModel = this.UpdateAIModel.bind(this);
|
|
2355
2567
|
this.UpdateAIEffort = this.UpdateAIEffort.bind(this);
|
|
@@ -2377,6 +2589,12 @@ export class AdminGatewayServiceClientImpl implements AdminGatewayService {
|
|
|
2377
2589
|
return promise.then((data) => ListInviteCodesResponse.decode(new BinaryReader(data)));
|
|
2378
2590
|
}
|
|
2379
2591
|
|
|
2592
|
+
SendInviteCodeEmail(request: SendInviteCodeEmailRequest, metadata?: Metadata): Promise<SendInviteCodeEmailResponse> {
|
|
2593
|
+
const data = SendInviteCodeEmailRequest.encode(request).finish();
|
|
2594
|
+
const promise = this.rpc.request(this.service, "SendInviteCodeEmail", data, metadata);
|
|
2595
|
+
return promise.then((data) => SendInviteCodeEmailResponse.decode(new BinaryReader(data)));
|
|
2596
|
+
}
|
|
2597
|
+
|
|
2380
2598
|
UpdateAIProvider(request: UpdateAIProviderRequest, metadata?: Metadata): Promise<UpdateAIProviderResponse> {
|
|
2381
2599
|
const data = UpdateAIProviderRequest.encode(request).finish();
|
|
2382
2600
|
const promise = this.rpc.request(this.service, "UpdateAIProvider", data, metadata);
|
|
@@ -163,6 +163,28 @@ function deserialize_gateway_web_v1_ListInviteCodesResponse(buffer_arg) {
|
|
|
163
163
|
return proto_gateway_web_v1_admin_gateway_pb.ListInviteCodesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
+
function serialize_gateway_web_v1_SendInviteCodeEmailRequest(arg) {
|
|
167
|
+
if (!(arg instanceof proto_gateway_web_v1_admin_gateway_pb.SendInviteCodeEmailRequest)) {
|
|
168
|
+
throw new Error('Expected argument of type gateway.web.v1.SendInviteCodeEmailRequest');
|
|
169
|
+
}
|
|
170
|
+
return Buffer.from(arg.serializeBinary());
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
function deserialize_gateway_web_v1_SendInviteCodeEmailRequest(buffer_arg) {
|
|
174
|
+
return proto_gateway_web_v1_admin_gateway_pb.SendInviteCodeEmailRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
function serialize_gateway_web_v1_SendInviteCodeEmailResponse(arg) {
|
|
178
|
+
if (!(arg instanceof proto_gateway_web_v1_admin_gateway_pb.SendInviteCodeEmailResponse)) {
|
|
179
|
+
throw new Error('Expected argument of type gateway.web.v1.SendInviteCodeEmailResponse');
|
|
180
|
+
}
|
|
181
|
+
return Buffer.from(arg.serializeBinary());
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
function deserialize_gateway_web_v1_SendInviteCodeEmailResponse(buffer_arg) {
|
|
185
|
+
return proto_gateway_web_v1_admin_gateway_pb.SendInviteCodeEmailResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
186
|
+
}
|
|
187
|
+
|
|
166
188
|
function serialize_gateway_web_v1_UpdateAIBillerRequest(arg) {
|
|
167
189
|
if (!(arg instanceof proto_gateway_web_v1_admin_gateway_pb.UpdateAIBillerRequest)) {
|
|
168
190
|
throw new Error('Expected argument of type gateway.web.v1.UpdateAIBillerRequest');
|
|
@@ -291,6 +313,18 @@ generateInviteCodes: {
|
|
|
291
313
|
responseSerialize: serialize_gateway_web_v1_ListInviteCodesResponse,
|
|
292
314
|
responseDeserialize: deserialize_gateway_web_v1_ListInviteCodesResponse,
|
|
293
315
|
},
|
|
316
|
+
// SendInviteCodeEmail emails one available code to an address and records when it was sent.
|
|
317
|
+
sendInviteCodeEmail: {
|
|
318
|
+
path: '/gateway.web.v1.AdminGatewayService/SendInviteCodeEmail',
|
|
319
|
+
requestStream: false,
|
|
320
|
+
responseStream: false,
|
|
321
|
+
requestType: proto_gateway_web_v1_admin_gateway_pb.SendInviteCodeEmailRequest,
|
|
322
|
+
responseType: proto_gateway_web_v1_admin_gateway_pb.SendInviteCodeEmailResponse,
|
|
323
|
+
requestSerialize: serialize_gateway_web_v1_SendInviteCodeEmailRequest,
|
|
324
|
+
requestDeserialize: deserialize_gateway_web_v1_SendInviteCodeEmailRequest,
|
|
325
|
+
responseSerialize: serialize_gateway_web_v1_SendInviteCodeEmailResponse,
|
|
326
|
+
responseDeserialize: deserialize_gateway_web_v1_SendInviteCodeEmailResponse,
|
|
327
|
+
},
|
|
294
328
|
// Staff set a global AI name's display name for every organization. An update makes the name MANUAL; the
|
|
295
329
|
// model processor never overwrites it. The tables are read through ReferenceGatewayService.
|
|
296
330
|
updateAIProvider: {
|
|
@@ -40,6 +40,8 @@ goog.exportSymbol('proto.gateway.web.v1.GetAdminStatusResponse', null, global);
|
|
|
40
40
|
goog.exportSymbol('proto.gateway.web.v1.InviteCode', null, global);
|
|
41
41
|
goog.exportSymbol('proto.gateway.web.v1.ListInviteCodesRequest', null, global);
|
|
42
42
|
goog.exportSymbol('proto.gateway.web.v1.ListInviteCodesResponse', null, global);
|
|
43
|
+
goog.exportSymbol('proto.gateway.web.v1.SendInviteCodeEmailRequest', null, global);
|
|
44
|
+
goog.exportSymbol('proto.gateway.web.v1.SendInviteCodeEmailResponse', null, global);
|
|
43
45
|
goog.exportSymbol('proto.gateway.web.v1.UpdateAIBillerRequest', null, global);
|
|
44
46
|
goog.exportSymbol('proto.gateway.web.v1.UpdateAIBillerResponse', null, global);
|
|
45
47
|
goog.exportSymbol('proto.gateway.web.v1.UpdateAIEffortRequest', null, global);
|
|
@@ -195,6 +197,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
195
197
|
*/
|
|
196
198
|
proto.gateway.web.v1.ListInviteCodesResponse.displayName = 'proto.gateway.web.v1.ListInviteCodesResponse';
|
|
197
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* Generated by JsPbCodeGenerator.
|
|
202
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
203
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
204
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
205
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
206
|
+
* valid.
|
|
207
|
+
* @extends {jspb.Message}
|
|
208
|
+
* @constructor
|
|
209
|
+
*/
|
|
210
|
+
proto.gateway.web.v1.SendInviteCodeEmailRequest = function(opt_data) {
|
|
211
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
212
|
+
};
|
|
213
|
+
goog.inherits(proto.gateway.web.v1.SendInviteCodeEmailRequest, jspb.Message);
|
|
214
|
+
if (goog.DEBUG && !COMPILED) {
|
|
215
|
+
/**
|
|
216
|
+
* @public
|
|
217
|
+
* @override
|
|
218
|
+
*/
|
|
219
|
+
proto.gateway.web.v1.SendInviteCodeEmailRequest.displayName = 'proto.gateway.web.v1.SendInviteCodeEmailRequest';
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Generated by JsPbCodeGenerator.
|
|
223
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
224
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
225
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
226
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
227
|
+
* valid.
|
|
228
|
+
* @extends {jspb.Message}
|
|
229
|
+
* @constructor
|
|
230
|
+
*/
|
|
231
|
+
proto.gateway.web.v1.SendInviteCodeEmailResponse = function(opt_data) {
|
|
232
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
233
|
+
};
|
|
234
|
+
goog.inherits(proto.gateway.web.v1.SendInviteCodeEmailResponse, jspb.Message);
|
|
235
|
+
if (goog.DEBUG && !COMPILED) {
|
|
236
|
+
/**
|
|
237
|
+
* @public
|
|
238
|
+
* @override
|
|
239
|
+
*/
|
|
240
|
+
proto.gateway.web.v1.SendInviteCodeEmailResponse.displayName = 'proto.gateway.web.v1.SendInviteCodeEmailResponse';
|
|
241
|
+
}
|
|
198
242
|
/**
|
|
199
243
|
* Generated by JsPbCodeGenerator.
|
|
200
244
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -853,7 +897,8 @@ redeemedByUserId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
|
853
897
|
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
854
898
|
expiresAt: (f = msg.getExpiresAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
855
899
|
reservedAt: (f = msg.getReservedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
856
|
-
redeemedAt: (f = msg.getRedeemedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
900
|
+
redeemedAt: (f = msg.getRedeemedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
901
|
+
emailedAt: (f = msg.getEmailedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
857
902
|
};
|
|
858
903
|
|
|
859
904
|
if (includeInstance) {
|
|
@@ -930,6 +975,11 @@ proto.gateway.web.v1.InviteCode.deserializeBinaryFromReader = function(msg, read
|
|
|
930
975
|
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
931
976
|
msg.setRedeemedAt(value);
|
|
932
977
|
break;
|
|
978
|
+
case 10:
|
|
979
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
980
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
981
|
+
msg.setEmailedAt(value);
|
|
982
|
+
break;
|
|
933
983
|
default:
|
|
934
984
|
reader.skipField();
|
|
935
985
|
break;
|
|
@@ -1026,6 +1076,14 @@ proto.gateway.web.v1.InviteCode.serializeBinaryToWriter = function(message, writ
|
|
|
1026
1076
|
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
1027
1077
|
);
|
|
1028
1078
|
}
|
|
1079
|
+
f = message.getEmailedAt();
|
|
1080
|
+
if (f != null) {
|
|
1081
|
+
writer.writeMessage(
|
|
1082
|
+
10,
|
|
1083
|
+
f,
|
|
1084
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
1085
|
+
);
|
|
1086
|
+
}
|
|
1029
1087
|
};
|
|
1030
1088
|
|
|
1031
1089
|
|
|
@@ -1267,6 +1325,43 @@ proto.gateway.web.v1.InviteCode.prototype.hasRedeemedAt = function() {
|
|
|
1267
1325
|
};
|
|
1268
1326
|
|
|
1269
1327
|
|
|
1328
|
+
/**
|
|
1329
|
+
* optional google.protobuf.Timestamp emailed_at = 10;
|
|
1330
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
1331
|
+
*/
|
|
1332
|
+
proto.gateway.web.v1.InviteCode.prototype.getEmailedAt = function() {
|
|
1333
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
1334
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 10));
|
|
1335
|
+
};
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
/**
|
|
1339
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
1340
|
+
* @return {!proto.gateway.web.v1.InviteCode} returns this
|
|
1341
|
+
*/
|
|
1342
|
+
proto.gateway.web.v1.InviteCode.prototype.setEmailedAt = function(value) {
|
|
1343
|
+
return jspb.Message.setWrapperField(this, 10, value);
|
|
1344
|
+
};
|
|
1345
|
+
|
|
1346
|
+
|
|
1347
|
+
/**
|
|
1348
|
+
* Clears the message field making it undefined.
|
|
1349
|
+
* @return {!proto.gateway.web.v1.InviteCode} returns this
|
|
1350
|
+
*/
|
|
1351
|
+
proto.gateway.web.v1.InviteCode.prototype.clearEmailedAt = function() {
|
|
1352
|
+
return this.setEmailedAt(undefined);
|
|
1353
|
+
};
|
|
1354
|
+
|
|
1355
|
+
|
|
1356
|
+
/**
|
|
1357
|
+
* Returns whether this field is set.
|
|
1358
|
+
* @return {boolean}
|
|
1359
|
+
*/
|
|
1360
|
+
proto.gateway.web.v1.InviteCode.prototype.hasEmailedAt = function() {
|
|
1361
|
+
return jspb.Message.getField(this, 10) != null;
|
|
1362
|
+
};
|
|
1363
|
+
|
|
1364
|
+
|
|
1270
1365
|
|
|
1271
1366
|
|
|
1272
1367
|
|
|
@@ -2004,6 +2099,368 @@ proto.gateway.web.v1.ListInviteCodesResponse.prototype.clearCodesList = function
|
|
|
2004
2099
|
|
|
2005
2100
|
|
|
2006
2101
|
|
|
2102
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2103
|
+
/**
|
|
2104
|
+
* Creates an object representation of this proto.
|
|
2105
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2106
|
+
* Optional fields that are not set will be set to undefined.
|
|
2107
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2108
|
+
* For the list of reserved names please see:
|
|
2109
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2110
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2111
|
+
* JSPB instance for transitional soy proto support:
|
|
2112
|
+
* http://goto/soy-param-migration
|
|
2113
|
+
* @return {!Object}
|
|
2114
|
+
*/
|
|
2115
|
+
proto.gateway.web.v1.SendInviteCodeEmailRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2116
|
+
return proto.gateway.web.v1.SendInviteCodeEmailRequest.toObject(opt_includeInstance, this);
|
|
2117
|
+
};
|
|
2118
|
+
|
|
2119
|
+
|
|
2120
|
+
/**
|
|
2121
|
+
* Static version of the {@see toObject} method.
|
|
2122
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2123
|
+
* the JSPB instance for transitional soy proto support:
|
|
2124
|
+
* http://goto/soy-param-migration
|
|
2125
|
+
* @param {!proto.gateway.web.v1.SendInviteCodeEmailRequest} msg The msg instance to transform.
|
|
2126
|
+
* @return {!Object}
|
|
2127
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2128
|
+
*/
|
|
2129
|
+
proto.gateway.web.v1.SendInviteCodeEmailRequest.toObject = function(includeInstance, msg) {
|
|
2130
|
+
var f, obj = {
|
|
2131
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2132
|
+
email: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
2133
|
+
};
|
|
2134
|
+
|
|
2135
|
+
if (includeInstance) {
|
|
2136
|
+
obj.$jspbMessageInstance = msg;
|
|
2137
|
+
}
|
|
2138
|
+
return obj;
|
|
2139
|
+
};
|
|
2140
|
+
}
|
|
2141
|
+
|
|
2142
|
+
|
|
2143
|
+
/**
|
|
2144
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2145
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
2146
|
+
* @return {!proto.gateway.web.v1.SendInviteCodeEmailRequest}
|
|
2147
|
+
*/
|
|
2148
|
+
proto.gateway.web.v1.SendInviteCodeEmailRequest.deserializeBinary = function(bytes) {
|
|
2149
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2150
|
+
var msg = new proto.gateway.web.v1.SendInviteCodeEmailRequest;
|
|
2151
|
+
return proto.gateway.web.v1.SendInviteCodeEmailRequest.deserializeBinaryFromReader(msg, reader);
|
|
2152
|
+
};
|
|
2153
|
+
|
|
2154
|
+
|
|
2155
|
+
/**
|
|
2156
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2157
|
+
* given reader into the given message object.
|
|
2158
|
+
* @param {!proto.gateway.web.v1.SendInviteCodeEmailRequest} msg The message object to deserialize into.
|
|
2159
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2160
|
+
* @return {!proto.gateway.web.v1.SendInviteCodeEmailRequest}
|
|
2161
|
+
*/
|
|
2162
|
+
proto.gateway.web.v1.SendInviteCodeEmailRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2163
|
+
while (reader.nextField()) {
|
|
2164
|
+
if (reader.isEndGroup()) {
|
|
2165
|
+
break;
|
|
2166
|
+
}
|
|
2167
|
+
var field = reader.getFieldNumber();
|
|
2168
|
+
switch (field) {
|
|
2169
|
+
case 1:
|
|
2170
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
2171
|
+
msg.setId(value);
|
|
2172
|
+
break;
|
|
2173
|
+
case 2:
|
|
2174
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
2175
|
+
msg.setEmail(value);
|
|
2176
|
+
break;
|
|
2177
|
+
default:
|
|
2178
|
+
reader.skipField();
|
|
2179
|
+
break;
|
|
2180
|
+
}
|
|
2181
|
+
}
|
|
2182
|
+
return msg;
|
|
2183
|
+
};
|
|
2184
|
+
|
|
2185
|
+
|
|
2186
|
+
/**
|
|
2187
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2188
|
+
* @return {!Uint8Array}
|
|
2189
|
+
*/
|
|
2190
|
+
proto.gateway.web.v1.SendInviteCodeEmailRequest.prototype.serializeBinary = function() {
|
|
2191
|
+
var writer = new jspb.BinaryWriter();
|
|
2192
|
+
proto.gateway.web.v1.SendInviteCodeEmailRequest.serializeBinaryToWriter(this, writer);
|
|
2193
|
+
return writer.getResultBuffer();
|
|
2194
|
+
};
|
|
2195
|
+
|
|
2196
|
+
|
|
2197
|
+
/**
|
|
2198
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2199
|
+
* format), writing to the given BinaryWriter.
|
|
2200
|
+
* @param {!proto.gateway.web.v1.SendInviteCodeEmailRequest} message
|
|
2201
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2202
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2203
|
+
*/
|
|
2204
|
+
proto.gateway.web.v1.SendInviteCodeEmailRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2205
|
+
var f = undefined;
|
|
2206
|
+
f = message.getId();
|
|
2207
|
+
if (f.length > 0) {
|
|
2208
|
+
writer.writeString(
|
|
2209
|
+
1,
|
|
2210
|
+
f
|
|
2211
|
+
);
|
|
2212
|
+
}
|
|
2213
|
+
f = message.getEmail();
|
|
2214
|
+
if (f.length > 0) {
|
|
2215
|
+
writer.writeString(
|
|
2216
|
+
2,
|
|
2217
|
+
f
|
|
2218
|
+
);
|
|
2219
|
+
}
|
|
2220
|
+
};
|
|
2221
|
+
|
|
2222
|
+
|
|
2223
|
+
/**
|
|
2224
|
+
* optional string id = 1;
|
|
2225
|
+
* @return {string}
|
|
2226
|
+
*/
|
|
2227
|
+
proto.gateway.web.v1.SendInviteCodeEmailRequest.prototype.getId = function() {
|
|
2228
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2229
|
+
};
|
|
2230
|
+
|
|
2231
|
+
|
|
2232
|
+
/**
|
|
2233
|
+
* @param {string} value
|
|
2234
|
+
* @return {!proto.gateway.web.v1.SendInviteCodeEmailRequest} returns this
|
|
2235
|
+
*/
|
|
2236
|
+
proto.gateway.web.v1.SendInviteCodeEmailRequest.prototype.setId = function(value) {
|
|
2237
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2238
|
+
};
|
|
2239
|
+
|
|
2240
|
+
|
|
2241
|
+
/**
|
|
2242
|
+
* optional string email = 2;
|
|
2243
|
+
* @return {string}
|
|
2244
|
+
*/
|
|
2245
|
+
proto.gateway.web.v1.SendInviteCodeEmailRequest.prototype.getEmail = function() {
|
|
2246
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2247
|
+
};
|
|
2248
|
+
|
|
2249
|
+
|
|
2250
|
+
/**
|
|
2251
|
+
* @param {string} value
|
|
2252
|
+
* @return {!proto.gateway.web.v1.SendInviteCodeEmailRequest} returns this
|
|
2253
|
+
*/
|
|
2254
|
+
proto.gateway.web.v1.SendInviteCodeEmailRequest.prototype.setEmail = function(value) {
|
|
2255
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2256
|
+
};
|
|
2257
|
+
|
|
2258
|
+
|
|
2259
|
+
|
|
2260
|
+
|
|
2261
|
+
|
|
2262
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2263
|
+
/**
|
|
2264
|
+
* Creates an object representation of this proto.
|
|
2265
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2266
|
+
* Optional fields that are not set will be set to undefined.
|
|
2267
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2268
|
+
* For the list of reserved names please see:
|
|
2269
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2270
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2271
|
+
* JSPB instance for transitional soy proto support:
|
|
2272
|
+
* http://goto/soy-param-migration
|
|
2273
|
+
* @return {!Object}
|
|
2274
|
+
*/
|
|
2275
|
+
proto.gateway.web.v1.SendInviteCodeEmailResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2276
|
+
return proto.gateway.web.v1.SendInviteCodeEmailResponse.toObject(opt_includeInstance, this);
|
|
2277
|
+
};
|
|
2278
|
+
|
|
2279
|
+
|
|
2280
|
+
/**
|
|
2281
|
+
* Static version of the {@see toObject} method.
|
|
2282
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2283
|
+
* the JSPB instance for transitional soy proto support:
|
|
2284
|
+
* http://goto/soy-param-migration
|
|
2285
|
+
* @param {!proto.gateway.web.v1.SendInviteCodeEmailResponse} msg The msg instance to transform.
|
|
2286
|
+
* @return {!Object}
|
|
2287
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2288
|
+
*/
|
|
2289
|
+
proto.gateway.web.v1.SendInviteCodeEmailResponse.toObject = function(includeInstance, msg) {
|
|
2290
|
+
var f, obj = {
|
|
2291
|
+
status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
|
|
2292
|
+
code: (f = msg.getCode()) && proto.gateway.web.v1.InviteCode.toObject(includeInstance, f)
|
|
2293
|
+
};
|
|
2294
|
+
|
|
2295
|
+
if (includeInstance) {
|
|
2296
|
+
obj.$jspbMessageInstance = msg;
|
|
2297
|
+
}
|
|
2298
|
+
return obj;
|
|
2299
|
+
};
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
|
|
2303
|
+
/**
|
|
2304
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2305
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
2306
|
+
* @return {!proto.gateway.web.v1.SendInviteCodeEmailResponse}
|
|
2307
|
+
*/
|
|
2308
|
+
proto.gateway.web.v1.SendInviteCodeEmailResponse.deserializeBinary = function(bytes) {
|
|
2309
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2310
|
+
var msg = new proto.gateway.web.v1.SendInviteCodeEmailResponse;
|
|
2311
|
+
return proto.gateway.web.v1.SendInviteCodeEmailResponse.deserializeBinaryFromReader(msg, reader);
|
|
2312
|
+
};
|
|
2313
|
+
|
|
2314
|
+
|
|
2315
|
+
/**
|
|
2316
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2317
|
+
* given reader into the given message object.
|
|
2318
|
+
* @param {!proto.gateway.web.v1.SendInviteCodeEmailResponse} msg The message object to deserialize into.
|
|
2319
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2320
|
+
* @return {!proto.gateway.web.v1.SendInviteCodeEmailResponse}
|
|
2321
|
+
*/
|
|
2322
|
+
proto.gateway.web.v1.SendInviteCodeEmailResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2323
|
+
while (reader.nextField()) {
|
|
2324
|
+
if (reader.isEndGroup()) {
|
|
2325
|
+
break;
|
|
2326
|
+
}
|
|
2327
|
+
var field = reader.getFieldNumber();
|
|
2328
|
+
switch (field) {
|
|
2329
|
+
case 1:
|
|
2330
|
+
var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
|
|
2331
|
+
reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
|
|
2332
|
+
msg.setStatus(value);
|
|
2333
|
+
break;
|
|
2334
|
+
case 2:
|
|
2335
|
+
var value = new proto.gateway.web.v1.InviteCode;
|
|
2336
|
+
reader.readMessage(value,proto.gateway.web.v1.InviteCode.deserializeBinaryFromReader);
|
|
2337
|
+
msg.setCode(value);
|
|
2338
|
+
break;
|
|
2339
|
+
default:
|
|
2340
|
+
reader.skipField();
|
|
2341
|
+
break;
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2344
|
+
return msg;
|
|
2345
|
+
};
|
|
2346
|
+
|
|
2347
|
+
|
|
2348
|
+
/**
|
|
2349
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2350
|
+
* @return {!Uint8Array}
|
|
2351
|
+
*/
|
|
2352
|
+
proto.gateway.web.v1.SendInviteCodeEmailResponse.prototype.serializeBinary = function() {
|
|
2353
|
+
var writer = new jspb.BinaryWriter();
|
|
2354
|
+
proto.gateway.web.v1.SendInviteCodeEmailResponse.serializeBinaryToWriter(this, writer);
|
|
2355
|
+
return writer.getResultBuffer();
|
|
2356
|
+
};
|
|
2357
|
+
|
|
2358
|
+
|
|
2359
|
+
/**
|
|
2360
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2361
|
+
* format), writing to the given BinaryWriter.
|
|
2362
|
+
* @param {!proto.gateway.web.v1.SendInviteCodeEmailResponse} message
|
|
2363
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2364
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2365
|
+
*/
|
|
2366
|
+
proto.gateway.web.v1.SendInviteCodeEmailResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2367
|
+
var f = undefined;
|
|
2368
|
+
f = message.getStatus();
|
|
2369
|
+
if (f != null) {
|
|
2370
|
+
writer.writeMessage(
|
|
2371
|
+
1,
|
|
2372
|
+
f,
|
|
2373
|
+
proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
|
|
2374
|
+
);
|
|
2375
|
+
}
|
|
2376
|
+
f = message.getCode();
|
|
2377
|
+
if (f != null) {
|
|
2378
|
+
writer.writeMessage(
|
|
2379
|
+
2,
|
|
2380
|
+
f,
|
|
2381
|
+
proto.gateway.web.v1.InviteCode.serializeBinaryToWriter
|
|
2382
|
+
);
|
|
2383
|
+
}
|
|
2384
|
+
};
|
|
2385
|
+
|
|
2386
|
+
|
|
2387
|
+
/**
|
|
2388
|
+
* optional gateway.common.v1.ResponseStatus status = 1;
|
|
2389
|
+
* @return {?proto.gateway.common.v1.ResponseStatus}
|
|
2390
|
+
*/
|
|
2391
|
+
proto.gateway.web.v1.SendInviteCodeEmailResponse.prototype.getStatus = function() {
|
|
2392
|
+
return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
|
|
2393
|
+
jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
|
|
2394
|
+
};
|
|
2395
|
+
|
|
2396
|
+
|
|
2397
|
+
/**
|
|
2398
|
+
* @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
|
|
2399
|
+
* @return {!proto.gateway.web.v1.SendInviteCodeEmailResponse} returns this
|
|
2400
|
+
*/
|
|
2401
|
+
proto.gateway.web.v1.SendInviteCodeEmailResponse.prototype.setStatus = function(value) {
|
|
2402
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2403
|
+
};
|
|
2404
|
+
|
|
2405
|
+
|
|
2406
|
+
/**
|
|
2407
|
+
* Clears the message field making it undefined.
|
|
2408
|
+
* @return {!proto.gateway.web.v1.SendInviteCodeEmailResponse} returns this
|
|
2409
|
+
*/
|
|
2410
|
+
proto.gateway.web.v1.SendInviteCodeEmailResponse.prototype.clearStatus = function() {
|
|
2411
|
+
return this.setStatus(undefined);
|
|
2412
|
+
};
|
|
2413
|
+
|
|
2414
|
+
|
|
2415
|
+
/**
|
|
2416
|
+
* Returns whether this field is set.
|
|
2417
|
+
* @return {boolean}
|
|
2418
|
+
*/
|
|
2419
|
+
proto.gateway.web.v1.SendInviteCodeEmailResponse.prototype.hasStatus = function() {
|
|
2420
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2421
|
+
};
|
|
2422
|
+
|
|
2423
|
+
|
|
2424
|
+
/**
|
|
2425
|
+
* optional InviteCode code = 2;
|
|
2426
|
+
* @return {?proto.gateway.web.v1.InviteCode}
|
|
2427
|
+
*/
|
|
2428
|
+
proto.gateway.web.v1.SendInviteCodeEmailResponse.prototype.getCode = function() {
|
|
2429
|
+
return /** @type{?proto.gateway.web.v1.InviteCode} */ (
|
|
2430
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.InviteCode, 2));
|
|
2431
|
+
};
|
|
2432
|
+
|
|
2433
|
+
|
|
2434
|
+
/**
|
|
2435
|
+
* @param {?proto.gateway.web.v1.InviteCode|undefined} value
|
|
2436
|
+
* @return {!proto.gateway.web.v1.SendInviteCodeEmailResponse} returns this
|
|
2437
|
+
*/
|
|
2438
|
+
proto.gateway.web.v1.SendInviteCodeEmailResponse.prototype.setCode = function(value) {
|
|
2439
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2440
|
+
};
|
|
2441
|
+
|
|
2442
|
+
|
|
2443
|
+
/**
|
|
2444
|
+
* Clears the message field making it undefined.
|
|
2445
|
+
* @return {!proto.gateway.web.v1.SendInviteCodeEmailResponse} returns this
|
|
2446
|
+
*/
|
|
2447
|
+
proto.gateway.web.v1.SendInviteCodeEmailResponse.prototype.clearCode = function() {
|
|
2448
|
+
return this.setCode(undefined);
|
|
2449
|
+
};
|
|
2450
|
+
|
|
2451
|
+
|
|
2452
|
+
/**
|
|
2453
|
+
* Returns whether this field is set.
|
|
2454
|
+
* @return {boolean}
|
|
2455
|
+
*/
|
|
2456
|
+
proto.gateway.web.v1.SendInviteCodeEmailResponse.prototype.hasCode = function() {
|
|
2457
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2458
|
+
};
|
|
2459
|
+
|
|
2460
|
+
|
|
2461
|
+
|
|
2462
|
+
|
|
2463
|
+
|
|
2007
2464
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2008
2465
|
/**
|
|
2009
2466
|
* Creates an object representation of this proto.
|
|
@@ -303,6 +303,16 @@ export interface ListAIModelsRequest {
|
|
|
303
303
|
/** Needed unless scope is ALL. */
|
|
304
304
|
projectId: string;
|
|
305
305
|
scope: AIReferenceNameScope;
|
|
306
|
+
filter: AIReferenceNameFilter | undefined;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* AIReferenceNameFilter mirrors telemetry.api.v1.AIReferenceNameFilter. Set fields AND, a repeated field matches
|
|
311
|
+
* any of its values, and an unset or empty field does not filter.
|
|
312
|
+
*/
|
|
313
|
+
export interface AIReferenceNameFilter {
|
|
314
|
+
/** Exact display names (byte comparison): keeps every name shown as one of them, an unrecorded name by its guess. */
|
|
315
|
+
displayNames: string[];
|
|
306
316
|
}
|
|
307
317
|
|
|
308
318
|
export interface ListAIModelsResponse {
|
|
@@ -1502,7 +1512,7 @@ export const ListAIProvidersResponse: MessageFns<ListAIProvidersResponse> = {
|
|
|
1502
1512
|
};
|
|
1503
1513
|
|
|
1504
1514
|
function createBaseListAIModelsRequest(): ListAIModelsRequest {
|
|
1505
|
-
return { organizationId: "", projectId: "", scope: 0 };
|
|
1515
|
+
return { organizationId: "", projectId: "", scope: 0, filter: undefined };
|
|
1506
1516
|
}
|
|
1507
1517
|
|
|
1508
1518
|
export const ListAIModelsRequest: MessageFns<ListAIModelsRequest> = {
|
|
@@ -1516,6 +1526,9 @@ export const ListAIModelsRequest: MessageFns<ListAIModelsRequest> = {
|
|
|
1516
1526
|
if (message.scope !== 0) {
|
|
1517
1527
|
writer.uint32(24).int32(message.scope);
|
|
1518
1528
|
}
|
|
1529
|
+
if (message.filter !== undefined) {
|
|
1530
|
+
AIReferenceNameFilter.encode(message.filter, writer.uint32(34).fork()).join();
|
|
1531
|
+
}
|
|
1519
1532
|
return writer;
|
|
1520
1533
|
},
|
|
1521
1534
|
|
|
@@ -1556,6 +1569,14 @@ export const ListAIModelsRequest: MessageFns<ListAIModelsRequest> = {
|
|
|
1556
1569
|
message.scope = reader.int32() as any;
|
|
1557
1570
|
continue;
|
|
1558
1571
|
}
|
|
1572
|
+
case 4: {
|
|
1573
|
+
if (tag !== 34) {
|
|
1574
|
+
break;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
message.filter = AIReferenceNameFilter.decode(reader, reader.uint32());
|
|
1578
|
+
continue;
|
|
1579
|
+
}
|
|
1559
1580
|
}
|
|
1560
1581
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1561
1582
|
break;
|
|
@@ -1581,6 +1602,7 @@ export const ListAIModelsRequest: MessageFns<ListAIModelsRequest> = {
|
|
|
1581
1602
|
? globalThis.String(object.project_id)
|
|
1582
1603
|
: "",
|
|
1583
1604
|
scope: isSet(object.scope) ? aIReferenceNameScopeFromJSON(object.scope) : 0,
|
|
1605
|
+
filter: isSet(object.filter) ? AIReferenceNameFilter.fromJSON(object.filter) : undefined,
|
|
1584
1606
|
};
|
|
1585
1607
|
},
|
|
1586
1608
|
|
|
@@ -1595,6 +1617,9 @@ export const ListAIModelsRequest: MessageFns<ListAIModelsRequest> = {
|
|
|
1595
1617
|
if (message.scope !== 0) {
|
|
1596
1618
|
obj.scope = aIReferenceNameScopeToJSON(message.scope);
|
|
1597
1619
|
}
|
|
1620
|
+
if (message.filter !== undefined) {
|
|
1621
|
+
obj.filter = AIReferenceNameFilter.toJSON(message.filter);
|
|
1622
|
+
}
|
|
1598
1623
|
return obj;
|
|
1599
1624
|
},
|
|
1600
1625
|
|
|
@@ -1606,6 +1631,82 @@ export const ListAIModelsRequest: MessageFns<ListAIModelsRequest> = {
|
|
|
1606
1631
|
message.organizationId = object.organizationId ?? "";
|
|
1607
1632
|
message.projectId = object.projectId ?? "";
|
|
1608
1633
|
message.scope = object.scope ?? 0;
|
|
1634
|
+
message.filter = (object.filter !== undefined && object.filter !== null)
|
|
1635
|
+
? AIReferenceNameFilter.fromPartial(object.filter)
|
|
1636
|
+
: undefined;
|
|
1637
|
+
return message;
|
|
1638
|
+
},
|
|
1639
|
+
};
|
|
1640
|
+
|
|
1641
|
+
function createBaseAIReferenceNameFilter(): AIReferenceNameFilter {
|
|
1642
|
+
return { displayNames: [] };
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
|
+
export const AIReferenceNameFilter: MessageFns<AIReferenceNameFilter> = {
|
|
1646
|
+
encode(message: AIReferenceNameFilter, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1647
|
+
for (const v of message.displayNames) {
|
|
1648
|
+
writer.uint32(10).string(v!);
|
|
1649
|
+
}
|
|
1650
|
+
return writer;
|
|
1651
|
+
},
|
|
1652
|
+
|
|
1653
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AIReferenceNameFilter {
|
|
1654
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1655
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1656
|
+
if (previousRecursionDepth >= 100) {
|
|
1657
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1658
|
+
}
|
|
1659
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1660
|
+
try {
|
|
1661
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1662
|
+
const message = createBaseAIReferenceNameFilter();
|
|
1663
|
+
while (reader.pos < end) {
|
|
1664
|
+
const tag = reader.uint32();
|
|
1665
|
+
switch (tag >>> 3) {
|
|
1666
|
+
case 1: {
|
|
1667
|
+
if (tag !== 10) {
|
|
1668
|
+
break;
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
message.displayNames.push(reader.string());
|
|
1672
|
+
continue;
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1676
|
+
break;
|
|
1677
|
+
}
|
|
1678
|
+
reader.skip(tag & 7);
|
|
1679
|
+
}
|
|
1680
|
+
return message;
|
|
1681
|
+
} finally {
|
|
1682
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1683
|
+
}
|
|
1684
|
+
},
|
|
1685
|
+
|
|
1686
|
+
fromJSON(object: any): AIReferenceNameFilter {
|
|
1687
|
+
return {
|
|
1688
|
+
displayNames: globalThis.Array.isArray(object?.displayNames)
|
|
1689
|
+
? object.displayNames.map((e: any) => globalThis.String(e))
|
|
1690
|
+
: globalThis.Array.isArray(object?.display_names)
|
|
1691
|
+
? object.display_names.map((e: any) => globalThis.String(e))
|
|
1692
|
+
: [],
|
|
1693
|
+
};
|
|
1694
|
+
},
|
|
1695
|
+
|
|
1696
|
+
toJSON(message: AIReferenceNameFilter): unknown {
|
|
1697
|
+
const obj: any = {};
|
|
1698
|
+
if (message.displayNames?.length) {
|
|
1699
|
+
obj.displayNames = message.displayNames;
|
|
1700
|
+
}
|
|
1701
|
+
return obj;
|
|
1702
|
+
},
|
|
1703
|
+
|
|
1704
|
+
create<I extends Exact<DeepPartial<AIReferenceNameFilter>, I>>(base?: I): AIReferenceNameFilter {
|
|
1705
|
+
return AIReferenceNameFilter.fromPartial(base ?? ({} as any));
|
|
1706
|
+
},
|
|
1707
|
+
fromPartial<I extends Exact<DeepPartial<AIReferenceNameFilter>, I>>(object: I): AIReferenceNameFilter {
|
|
1708
|
+
const message = createBaseAIReferenceNameFilter();
|
|
1709
|
+
message.displayNames = object.displayNames?.map((e) => e) || [];
|
|
1609
1710
|
return message;
|
|
1610
1711
|
},
|
|
1611
1712
|
};
|
|
@@ -32,6 +32,7 @@ goog.exportSymbol('proto.gateway.web.v1.AIReferenceGroupFilter', null, global);
|
|
|
32
32
|
goog.exportSymbol('proto.gateway.web.v1.AIReferenceGroupObservation', null, global);
|
|
33
33
|
goog.exportSymbol('proto.gateway.web.v1.AIReferenceGroupStatus', null, global);
|
|
34
34
|
goog.exportSymbol('proto.gateway.web.v1.AIReferenceName', null, global);
|
|
35
|
+
goog.exportSymbol('proto.gateway.web.v1.AIReferenceNameFilter', null, global);
|
|
35
36
|
goog.exportSymbol('proto.gateway.web.v1.AIReferenceNameOrigin', null, global);
|
|
36
37
|
goog.exportSymbol('proto.gateway.web.v1.AIReferenceNameScope', null, global);
|
|
37
38
|
goog.exportSymbol('proto.gateway.web.v1.AIReferenceSourceCount', null, global);
|
|
@@ -244,6 +245,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
244
245
|
*/
|
|
245
246
|
proto.gateway.web.v1.ListAIModelsRequest.displayName = 'proto.gateway.web.v1.ListAIModelsRequest';
|
|
246
247
|
}
|
|
248
|
+
/**
|
|
249
|
+
* Generated by JsPbCodeGenerator.
|
|
250
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
251
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
252
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
253
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
254
|
+
* valid.
|
|
255
|
+
* @extends {jspb.Message}
|
|
256
|
+
* @constructor
|
|
257
|
+
*/
|
|
258
|
+
proto.gateway.web.v1.AIReferenceNameFilter = function(opt_data) {
|
|
259
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.AIReferenceNameFilter.repeatedFields_, null);
|
|
260
|
+
};
|
|
261
|
+
goog.inherits(proto.gateway.web.v1.AIReferenceNameFilter, jspb.Message);
|
|
262
|
+
if (goog.DEBUG && !COMPILED) {
|
|
263
|
+
/**
|
|
264
|
+
* @public
|
|
265
|
+
* @override
|
|
266
|
+
*/
|
|
267
|
+
proto.gateway.web.v1.AIReferenceNameFilter.displayName = 'proto.gateway.web.v1.AIReferenceNameFilter';
|
|
268
|
+
}
|
|
247
269
|
/**
|
|
248
270
|
* Generated by JsPbCodeGenerator.
|
|
249
271
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -2623,7 +2645,8 @@ proto.gateway.web.v1.ListAIModelsRequest.toObject = function(includeInstance, ms
|
|
|
2623
2645
|
var f, obj = {
|
|
2624
2646
|
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2625
2647
|
projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2626
|
-
scope: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
2648
|
+
scope: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
2649
|
+
filter: (f = msg.getFilter()) && proto.gateway.web.v1.AIReferenceNameFilter.toObject(includeInstance, f)
|
|
2627
2650
|
};
|
|
2628
2651
|
|
|
2629
2652
|
if (includeInstance) {
|
|
@@ -2672,6 +2695,11 @@ proto.gateway.web.v1.ListAIModelsRequest.deserializeBinaryFromReader = function(
|
|
|
2672
2695
|
var value = /** @type {!proto.gateway.web.v1.AIReferenceNameScope} */ (reader.readEnum());
|
|
2673
2696
|
msg.setScope(value);
|
|
2674
2697
|
break;
|
|
2698
|
+
case 4:
|
|
2699
|
+
var value = new proto.gateway.web.v1.AIReferenceNameFilter;
|
|
2700
|
+
reader.readMessage(value,proto.gateway.web.v1.AIReferenceNameFilter.deserializeBinaryFromReader);
|
|
2701
|
+
msg.setFilter(value);
|
|
2702
|
+
break;
|
|
2675
2703
|
default:
|
|
2676
2704
|
reader.skipField();
|
|
2677
2705
|
break;
|
|
@@ -2722,6 +2750,14 @@ proto.gateway.web.v1.ListAIModelsRequest.serializeBinaryToWriter = function(mess
|
|
|
2722
2750
|
f
|
|
2723
2751
|
);
|
|
2724
2752
|
}
|
|
2753
|
+
f = message.getFilter();
|
|
2754
|
+
if (f != null) {
|
|
2755
|
+
writer.writeMessage(
|
|
2756
|
+
4,
|
|
2757
|
+
f,
|
|
2758
|
+
proto.gateway.web.v1.AIReferenceNameFilter.serializeBinaryToWriter
|
|
2759
|
+
);
|
|
2760
|
+
}
|
|
2725
2761
|
};
|
|
2726
2762
|
|
|
2727
2763
|
|
|
@@ -2779,6 +2815,199 @@ proto.gateway.web.v1.ListAIModelsRequest.prototype.setScope = function(value) {
|
|
|
2779
2815
|
};
|
|
2780
2816
|
|
|
2781
2817
|
|
|
2818
|
+
/**
|
|
2819
|
+
* optional AIReferenceNameFilter filter = 4;
|
|
2820
|
+
* @return {?proto.gateway.web.v1.AIReferenceNameFilter}
|
|
2821
|
+
*/
|
|
2822
|
+
proto.gateway.web.v1.ListAIModelsRequest.prototype.getFilter = function() {
|
|
2823
|
+
return /** @type{?proto.gateway.web.v1.AIReferenceNameFilter} */ (
|
|
2824
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.AIReferenceNameFilter, 4));
|
|
2825
|
+
};
|
|
2826
|
+
|
|
2827
|
+
|
|
2828
|
+
/**
|
|
2829
|
+
* @param {?proto.gateway.web.v1.AIReferenceNameFilter|undefined} value
|
|
2830
|
+
* @return {!proto.gateway.web.v1.ListAIModelsRequest} returns this
|
|
2831
|
+
*/
|
|
2832
|
+
proto.gateway.web.v1.ListAIModelsRequest.prototype.setFilter = function(value) {
|
|
2833
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
2834
|
+
};
|
|
2835
|
+
|
|
2836
|
+
|
|
2837
|
+
/**
|
|
2838
|
+
* Clears the message field making it undefined.
|
|
2839
|
+
* @return {!proto.gateway.web.v1.ListAIModelsRequest} returns this
|
|
2840
|
+
*/
|
|
2841
|
+
proto.gateway.web.v1.ListAIModelsRequest.prototype.clearFilter = function() {
|
|
2842
|
+
return this.setFilter(undefined);
|
|
2843
|
+
};
|
|
2844
|
+
|
|
2845
|
+
|
|
2846
|
+
/**
|
|
2847
|
+
* Returns whether this field is set.
|
|
2848
|
+
* @return {boolean}
|
|
2849
|
+
*/
|
|
2850
|
+
proto.gateway.web.v1.ListAIModelsRequest.prototype.hasFilter = function() {
|
|
2851
|
+
return jspb.Message.getField(this, 4) != null;
|
|
2852
|
+
};
|
|
2853
|
+
|
|
2854
|
+
|
|
2855
|
+
|
|
2856
|
+
/**
|
|
2857
|
+
* List of repeated fields within this message type.
|
|
2858
|
+
* @private {!Array<number>}
|
|
2859
|
+
* @const
|
|
2860
|
+
*/
|
|
2861
|
+
proto.gateway.web.v1.AIReferenceNameFilter.repeatedFields_ = [1];
|
|
2862
|
+
|
|
2863
|
+
|
|
2864
|
+
|
|
2865
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2866
|
+
/**
|
|
2867
|
+
* Creates an object representation of this proto.
|
|
2868
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2869
|
+
* Optional fields that are not set will be set to undefined.
|
|
2870
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2871
|
+
* For the list of reserved names please see:
|
|
2872
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2873
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2874
|
+
* JSPB instance for transitional soy proto support:
|
|
2875
|
+
* http://goto/soy-param-migration
|
|
2876
|
+
* @return {!Object}
|
|
2877
|
+
*/
|
|
2878
|
+
proto.gateway.web.v1.AIReferenceNameFilter.prototype.toObject = function(opt_includeInstance) {
|
|
2879
|
+
return proto.gateway.web.v1.AIReferenceNameFilter.toObject(opt_includeInstance, this);
|
|
2880
|
+
};
|
|
2881
|
+
|
|
2882
|
+
|
|
2883
|
+
/**
|
|
2884
|
+
* Static version of the {@see toObject} method.
|
|
2885
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2886
|
+
* the JSPB instance for transitional soy proto support:
|
|
2887
|
+
* http://goto/soy-param-migration
|
|
2888
|
+
* @param {!proto.gateway.web.v1.AIReferenceNameFilter} msg The msg instance to transform.
|
|
2889
|
+
* @return {!Object}
|
|
2890
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2891
|
+
*/
|
|
2892
|
+
proto.gateway.web.v1.AIReferenceNameFilter.toObject = function(includeInstance, msg) {
|
|
2893
|
+
var f, obj = {
|
|
2894
|
+
displayNamesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
2895
|
+
};
|
|
2896
|
+
|
|
2897
|
+
if (includeInstance) {
|
|
2898
|
+
obj.$jspbMessageInstance = msg;
|
|
2899
|
+
}
|
|
2900
|
+
return obj;
|
|
2901
|
+
};
|
|
2902
|
+
}
|
|
2903
|
+
|
|
2904
|
+
|
|
2905
|
+
/**
|
|
2906
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2907
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
2908
|
+
* @return {!proto.gateway.web.v1.AIReferenceNameFilter}
|
|
2909
|
+
*/
|
|
2910
|
+
proto.gateway.web.v1.AIReferenceNameFilter.deserializeBinary = function(bytes) {
|
|
2911
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2912
|
+
var msg = new proto.gateway.web.v1.AIReferenceNameFilter;
|
|
2913
|
+
return proto.gateway.web.v1.AIReferenceNameFilter.deserializeBinaryFromReader(msg, reader);
|
|
2914
|
+
};
|
|
2915
|
+
|
|
2916
|
+
|
|
2917
|
+
/**
|
|
2918
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2919
|
+
* given reader into the given message object.
|
|
2920
|
+
* @param {!proto.gateway.web.v1.AIReferenceNameFilter} msg The message object to deserialize into.
|
|
2921
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2922
|
+
* @return {!proto.gateway.web.v1.AIReferenceNameFilter}
|
|
2923
|
+
*/
|
|
2924
|
+
proto.gateway.web.v1.AIReferenceNameFilter.deserializeBinaryFromReader = function(msg, reader) {
|
|
2925
|
+
while (reader.nextField()) {
|
|
2926
|
+
if (reader.isEndGroup()) {
|
|
2927
|
+
break;
|
|
2928
|
+
}
|
|
2929
|
+
var field = reader.getFieldNumber();
|
|
2930
|
+
switch (field) {
|
|
2931
|
+
case 1:
|
|
2932
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
2933
|
+
msg.addDisplayNames(value);
|
|
2934
|
+
break;
|
|
2935
|
+
default:
|
|
2936
|
+
reader.skipField();
|
|
2937
|
+
break;
|
|
2938
|
+
}
|
|
2939
|
+
}
|
|
2940
|
+
return msg;
|
|
2941
|
+
};
|
|
2942
|
+
|
|
2943
|
+
|
|
2944
|
+
/**
|
|
2945
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2946
|
+
* @return {!Uint8Array}
|
|
2947
|
+
*/
|
|
2948
|
+
proto.gateway.web.v1.AIReferenceNameFilter.prototype.serializeBinary = function() {
|
|
2949
|
+
var writer = new jspb.BinaryWriter();
|
|
2950
|
+
proto.gateway.web.v1.AIReferenceNameFilter.serializeBinaryToWriter(this, writer);
|
|
2951
|
+
return writer.getResultBuffer();
|
|
2952
|
+
};
|
|
2953
|
+
|
|
2954
|
+
|
|
2955
|
+
/**
|
|
2956
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2957
|
+
* format), writing to the given BinaryWriter.
|
|
2958
|
+
* @param {!proto.gateway.web.v1.AIReferenceNameFilter} message
|
|
2959
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2960
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2961
|
+
*/
|
|
2962
|
+
proto.gateway.web.v1.AIReferenceNameFilter.serializeBinaryToWriter = function(message, writer) {
|
|
2963
|
+
var f = undefined;
|
|
2964
|
+
f = message.getDisplayNamesList();
|
|
2965
|
+
if (f.length > 0) {
|
|
2966
|
+
writer.writeRepeatedString(
|
|
2967
|
+
1,
|
|
2968
|
+
f
|
|
2969
|
+
);
|
|
2970
|
+
}
|
|
2971
|
+
};
|
|
2972
|
+
|
|
2973
|
+
|
|
2974
|
+
/**
|
|
2975
|
+
* repeated string display_names = 1;
|
|
2976
|
+
* @return {!Array<string>}
|
|
2977
|
+
*/
|
|
2978
|
+
proto.gateway.web.v1.AIReferenceNameFilter.prototype.getDisplayNamesList = function() {
|
|
2979
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
2980
|
+
};
|
|
2981
|
+
|
|
2982
|
+
|
|
2983
|
+
/**
|
|
2984
|
+
* @param {!Array<string>} value
|
|
2985
|
+
* @return {!proto.gateway.web.v1.AIReferenceNameFilter} returns this
|
|
2986
|
+
*/
|
|
2987
|
+
proto.gateway.web.v1.AIReferenceNameFilter.prototype.setDisplayNamesList = function(value) {
|
|
2988
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
2989
|
+
};
|
|
2990
|
+
|
|
2991
|
+
|
|
2992
|
+
/**
|
|
2993
|
+
* @param {string} value
|
|
2994
|
+
* @param {number=} opt_index
|
|
2995
|
+
* @return {!proto.gateway.web.v1.AIReferenceNameFilter} returns this
|
|
2996
|
+
*/
|
|
2997
|
+
proto.gateway.web.v1.AIReferenceNameFilter.prototype.addDisplayNames = function(value, opt_index) {
|
|
2998
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
2999
|
+
};
|
|
3000
|
+
|
|
3001
|
+
|
|
3002
|
+
/**
|
|
3003
|
+
* Clears the list making it empty but non-null.
|
|
3004
|
+
* @return {!proto.gateway.web.v1.AIReferenceNameFilter} returns this
|
|
3005
|
+
*/
|
|
3006
|
+
proto.gateway.web.v1.AIReferenceNameFilter.prototype.clearDisplayNamesList = function() {
|
|
3007
|
+
return this.setDisplayNamesList([]);
|
|
3008
|
+
};
|
|
3009
|
+
|
|
3010
|
+
|
|
2782
3011
|
|
|
2783
3012
|
/**
|
|
2784
3013
|
* List of repeated fields within this message type.
|