Debian Codegraph @

js/svc/cliupdate/v1/service_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 svc/cliupdate/v1/service.proto (package svc.cliupdate.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 import { Version } from "../../../types/v1/version_pb";
9 import { ReqMeta, ResMeta } from "../../../types/v1/meta_pb";
10 import { VersionArtifact } from "../../../types/v1/version_artifact_pb";
11
12 /**
13 * @generated from message svc.cliupdate.v1.GetNextUpdateRequest
14 */
15 export class GetNextUpdateRequest extends Message<GetNextUpdateRequest> {
16 /**
17 * @generated from field: string project_name = 1;
18 */
19 projectName = "";
20
21 /**
22 * @generated from field: types.v1.Version current_version = 2;
23 */
24 currentVersion?: Version;
25
26 /**
27 * @generated from field: string machine_architecture = 3;
28 */
29 machineArchitecture = "";
30
31 /**
32 * @generated from field: string machine_operating_system = 4;
33 */
34 machineOperatingSystem = "";
35
36 /**
37 * @generated from field: optional string release_channel_name = 5;
38 */
39 releaseChannelName?: string;
40
41 /**
42 * @generated from field: types.v1.ReqMeta meta = 1000;
43 */
44 meta?: ReqMeta;
45
46 constructor(data?: PartialMessage<GetNextUpdateRequest>) {
47 super();
48 proto3.util.initPartial(data, this);
49 }
50
51 static readonly runtime: typeof proto3 = proto3;
52 static readonly typeName = "svc.cliupdate.v1.GetNextUpdateRequest";
53 static readonly fields: FieldList = proto3.util.newFieldList(() => [
54 { no: 1, name: "project_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
55 { no: 2, name: "current_version", kind: "message", T: Version },
56 { no: 3, name: "machine_architecture", kind: "scalar", T: 9 /* ScalarType.STRING */ },
57 { no: 4, name: "machine_operating_system", kind: "scalar", T: 9 /* ScalarType.STRING */ },
58 { no: 5, name: "release_channel_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
59 { no: 1000, name: "meta", kind: "message", T: ReqMeta },
60 ]);
61
62 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetNextUpdateRequest {
63 return new GetNextUpdateRequest().fromBinary(bytes, options);
64 }
65
66 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetNextUpdateRequest {
67 return new GetNextUpdateRequest().fromJson(jsonValue, options);
68 }
69
70 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetNextUpdateRequest {
71 return new GetNextUpdateRequest().fromJsonString(jsonString, options);
72 }
73
74 static equals(a: GetNextUpdateRequest | PlainMessage<GetNextUpdateRequest> | undefined, b: GetNextUpdateRequest | PlainMessage<GetNextUpdateRequest> | undefined): boolean {
75 return proto3.util.equals(GetNextUpdateRequest, a, b);
76 }
77 }
78
79 /**
80 * @generated from message svc.cliupdate.v1.GetNextUpdateResponse
81 */
82 export class GetNextUpdateResponse extends Message<GetNextUpdateResponse> {
83 /**
84 * @generated from field: types.v1.Version next_version = 1;
85 */
86 nextVersion?: Version;
87
88 /**
89 * @generated from field: types.v1.VersionArtifact next_artifact = 2;
90 */
91 nextArtifact?: VersionArtifact;
92
93 /**
94 * @generated from field: types.v1.ResMeta meta = 1000;
95 */
96 meta?: ResMeta;
97
98 constructor(data?: PartialMessage<GetNextUpdateResponse>) {
99 super();
100 proto3.util.initPartial(data, this);
101 }
102
103 static readonly runtime: typeof proto3 = proto3;
104 static readonly typeName = "svc.cliupdate.v1.GetNextUpdateResponse";
105 static readonly fields: FieldList = proto3.util.newFieldList(() => [
106 { no: 1, name: "next_version", kind: "message", T: Version },
107 { no: 2, name: "next_artifact", kind: "message", T: VersionArtifact },
108 { no: 1000, name: "meta", kind: "message", T: ResMeta },
109 ]);
110
111 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetNextUpdateResponse {
112 return new GetNextUpdateResponse().fromBinary(bytes, options);
113 }
114
115 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetNextUpdateResponse {
116 return new GetNextUpdateResponse().fromJson(jsonValue, options);
117 }
118
119 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetNextUpdateResponse {
120 return new GetNextUpdateResponse().fromJsonString(jsonString, options);
121 }
122
123 static equals(a: GetNextUpdateResponse | PlainMessage<GetNextUpdateResponse> | undefined, b: GetNextUpdateResponse | PlainMessage<GetNextUpdateResponse> | undefined): boolean {
124 return proto3.util.equals(GetNextUpdateResponse, a, b);
125 }
126 }
127