Debian Codegraph @

js/types/v1/user_token_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_token.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 } from "@bufbuild/protobuf";
8
9 /**
10 * @generated from message types.v1.UserToken
11 */
12 export class UserToken extends Message<UserToken> {
13 /**
14 * @generated from field: int64 user_id = 1;
15 */
16 userId = protoInt64.zero;
17
18 /**
19 * @generated from field: string token = 2;
20 */
21 token = "";
22
23 constructor(data?: PartialMessage<UserToken>) {
24 super();
25 proto3.util.initPartial(data, this);
26 }
27
28 static readonly runtime: typeof proto3 = proto3;
29 static readonly typeName = "types.v1.UserToken";
30 static readonly fields: FieldList = proto3.util.newFieldList(() => [
31 { no: 1, name: "user_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
32 { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
33 ]);
34
35 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserToken {
36 return new UserToken().fromBinary(bytes, options);
37 }
38
39 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserToken {
40 return new UserToken().fromJson(jsonValue, options);
41 }
42
43 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserToken {
44 return new UserToken().fromJsonString(jsonString, options);
45 }
46
47 static equals(a: UserToken | PlainMessage<UserToken> | undefined, b: UserToken | PlainMessage<UserToken> | undefined): boolean {
48 return proto3.util.equals(UserToken, a, b);
49 }
50 }
51