Debian Codegraph @

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