Debian Codegraph @

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