Debian Codegraph @

js/types/v1/user_pb.ts

raw symbols SCIP
1 // @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=none"
2 // @generated from file types/v1/user.proto (package types.v1, syntax proto3)
3 /* eslint-disable */
4 // @ts-nocheck
5
6 import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7 import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
8
9 /**
10 * @generated from message types.v1.User
11 */
12 export class User extends Message<User> {
13 /**
14 * @generated from field: int64 id = 1;
15 */
16 id = protoInt64.zero;
17
18 /**
19 * @generated from field: string email = 2;
20 */
21 email = "";
22
23 /**
24 * @generated from field: string profile_picture_url = 3;
25 */
26 profilePictureUrl = "";
27
28 /**
29 * @generated from field: string first_name = 4;
30 */
31 firstName = "";
32
33 /**
34 * @generated from field: string last_name = 5;
35 */
36 lastName = "";
37
38 /**
39 * @generated from field: bool email_verified = 6;
40 */
41 emailVerified = false;
42
43 /**
44 * @generated from field: google.protobuf.Timestamp created_at = 7;
45 */
46 createdAt?: Timestamp;
47
48 constructor(data?: PartialMessage<User>) {
49 super();
50 proto3.util.initPartial(data, this);
51 }
52
53 static readonly runtime: typeof proto3 = proto3;
54 static readonly typeName = "types.v1.User";
55 static readonly fields: FieldList = proto3.util.newFieldList(() => [
56 { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
57 { no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
58 { no: 3, name: "profile_picture_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
59 { no: 4, name: "first_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
60 { no: 5, name: "last_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
61 { no: 6, name: "email_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
62 { no: 7, name: "created_at", kind: "message", T: Timestamp },
63 ]);
64
65 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): User {
66 return new User().fromBinary(bytes, options);
67 }
68
69 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): User {
70 return new User().fromJson(jsonValue, options);
71 }
72
73 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): User {
74 return new User().fromJsonString(jsonString, options);
75 }
76
77 static equals(a: User | PlainMessage<User> | undefined, b: User | PlainMessage<User> | undefined): boolean {
78 return proto3.util.equals(User, a, b);
79 }
80 }
81