Debian Codegraph @

js/types/v1/environment_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/environment.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.Environment
11 */
12 export class Environment extends Message<Environment> {
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 constructor(data?: PartialMessage<Environment>) {
24 super();
25 proto3.util.initPartial(data, this);
26 }
27
28 static readonly runtime: typeof proto3 = proto3;
29 static readonly typeName = "types.v1.Environment";
30 static readonly fields: FieldList = proto3.util.newFieldList(() => [
31 { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
32 { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
33 ]);
34
35 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Environment {
36 return new Environment().fromBinary(bytes, options);
37 }
38
39 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Environment {
40 return new Environment().fromJson(jsonValue, options);
41 }
42
43 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Environment {
44 return new Environment().fromJsonString(jsonString, options);
45 }
46
47 static equals(a: Environment | PlainMessage<Environment> | undefined, b: Environment | PlainMessage<Environment> | undefined): boolean {
48 return proto3.util.equals(Environment, a, b);
49 }
50 }
51