Debian Codegraph @

js/svc/environment/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/environment/v1/service.proto (package svc.environment.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 import { Cursor } from "../../../types/v1/cursor_pb";
9 import { Machine } from "../../../types/v1/machine_pb";
10
11 /**
12 * @generated from message svc.environment.v1.ListMachineRequest
13 */
14 export class ListMachineRequest extends Message<ListMachineRequest> {
15 /**
16 * @generated from field: types.v1.Cursor cursor = 1;
17 */
18 cursor?: Cursor;
19
20 /**
21 * @generated from field: int32 limit = 2;
22 */
23 limit = 0;
24
25 /**
26 * @generated from field: int64 environment_id = 3;
27 */
28 environmentId = protoInt64.zero;
29
30 constructor(data?: PartialMessage<ListMachineRequest>) {
31 super();
32 proto3.util.initPartial(data, this);
33 }
34
35 static readonly runtime: typeof proto3 = proto3;
36 static readonly typeName = "svc.environment.v1.ListMachineRequest";
37 static readonly fields: FieldList = proto3.util.newFieldList(() => [
38 { no: 1, name: "cursor", kind: "message", T: Cursor },
39 { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
40 { no: 3, name: "environment_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
41 ]);
42
43 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListMachineRequest {
44 return new ListMachineRequest().fromBinary(bytes, options);
45 }
46
47 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListMachineRequest {
48 return new ListMachineRequest().fromJson(jsonValue, options);
49 }
50
51 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListMachineRequest {
52 return new ListMachineRequest().fromJsonString(jsonString, options);
53 }
54
55 static equals(a: ListMachineRequest | PlainMessage<ListMachineRequest> | undefined, b: ListMachineRequest | PlainMessage<ListMachineRequest> | undefined): boolean {
56 return proto3.util.equals(ListMachineRequest, a, b);
57 }
58 }
59
60 /**
61 * @generated from message svc.environment.v1.ListMachineResponse
62 */
63 export class ListMachineResponse extends Message<ListMachineResponse> {
64 /**
65 * @generated from field: types.v1.Cursor next = 1;
66 */
67 next?: Cursor;
68
69 /**
70 * @generated from field: repeated svc.environment.v1.ListMachineResponse.ListItem items = 2;
71 */
72 items: ListMachineResponse_ListItem[] = [];
73
74 constructor(data?: PartialMessage<ListMachineResponse>) {
75 super();
76 proto3.util.initPartial(data, this);
77 }
78
79 static readonly runtime: typeof proto3 = proto3;
80 static readonly typeName = "svc.environment.v1.ListMachineResponse";
81 static readonly fields: FieldList = proto3.util.newFieldList(() => [
82 { no: 1, name: "next", kind: "message", T: Cursor },
83 { no: 2, name: "items", kind: "message", T: ListMachineResponse_ListItem, repeated: true },
84 ]);
85
86 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListMachineResponse {
87 return new ListMachineResponse().fromBinary(bytes, options);
88 }
89
90 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListMachineResponse {
91 return new ListMachineResponse().fromJson(jsonValue, options);
92 }
93
94 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListMachineResponse {
95 return new ListMachineResponse().fromJsonString(jsonString, options);
96 }
97
98 static equals(a: ListMachineResponse | PlainMessage<ListMachineResponse> | undefined, b: ListMachineResponse | PlainMessage<ListMachineResponse> | undefined): boolean {
99 return proto3.util.equals(ListMachineResponse, a, b);
100 }
101 }
102
103 /**
104 * @generated from message svc.environment.v1.ListMachineResponse.ListItem
105 */
106 export class ListMachineResponse_ListItem extends Message<ListMachineResponse_ListItem> {
107 /**
108 * @generated from field: types.v1.Machine machine = 1;
109 */
110 machine?: Machine;
111
112 constructor(data?: PartialMessage<ListMachineResponse_ListItem>) {
113 super();
114 proto3.util.initPartial(data, this);
115 }
116
117 static readonly runtime: typeof proto3 = proto3;
118 static readonly typeName = "svc.environment.v1.ListMachineResponse.ListItem";
119 static readonly fields: FieldList = proto3.util.newFieldList(() => [
120 { no: 1, name: "machine", kind: "message", T: Machine },
121 ]);
122
123 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListMachineResponse_ListItem {
124 return new ListMachineResponse_ListItem().fromBinary(bytes, options);
125 }
126
127 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListMachineResponse_ListItem {
128 return new ListMachineResponse_ListItem().fromJson(jsonValue, options);
129 }
130
131 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListMachineResponse_ListItem {
132 return new ListMachineResponse_ListItem().fromJsonString(jsonString, options);
133 }
134
135 static equals(a: ListMachineResponse_ListItem | PlainMessage<ListMachineResponse_ListItem> | undefined, b: ListMachineResponse_ListItem | PlainMessage<ListMachineResponse_ListItem> | undefined): boolean {
136 return proto3.util.equals(ListMachineResponse_ListItem, a, b);
137 }
138 }
139