@norskvideo/norsk-api 0.0.322

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,334 @@
1
+ // @generated by protoc-gen-es v0.3.0 with parameter "target=ts"
2
+ // @generated from file shared/common.proto (package norsk.api.common, 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
+ * `Version` gives version information about the currently running Norsk release
11
+ *
12
+ *
13
+ * @generated from message norsk.api.common.Version
14
+ */
15
+ export class Version extends Message<Version> {
16
+ /**
17
+ * The major version number
18
+ *
19
+ * @generated from field: int32 majorVersion = 1;
20
+ */
21
+ majorVersion = 0;
22
+
23
+ /**
24
+ * The minor version number
25
+ *
26
+ * @generated from field: int32 minorVersion = 2;
27
+ */
28
+ minorVersion = 0;
29
+
30
+ /**
31
+ * The build number
32
+ *
33
+ * @generated from field: int32 buildNumber = 3;
34
+ */
35
+ buildNumber = 0;
36
+
37
+ /**
38
+ * The git branch name
39
+ *
40
+ * @generated from field: string branchName = 4;
41
+ */
42
+ branchName = "";
43
+
44
+ /**
45
+ * The version label to uniquely identify this build
46
+ *
47
+ * @generated from field: string label = 5;
48
+ */
49
+ label = "";
50
+
51
+ constructor(data?: PartialMessage<Version>) {
52
+ super();
53
+ proto3.util.initPartial(data, this);
54
+ }
55
+
56
+ static readonly runtime = proto3;
57
+ static readonly typeName = "norsk.api.common.Version";
58
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
59
+ { no: 1, name: "majorVersion", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
60
+ { no: 2, name: "minorVersion", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
61
+ { no: 3, name: "buildNumber", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
62
+ { no: 4, name: "branchName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
63
+ { no: 5, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ },
64
+ ]);
65
+
66
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Version {
67
+ return new Version().fromBinary(bytes, options);
68
+ }
69
+
70
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Version {
71
+ return new Version().fromJson(jsonValue, options);
72
+ }
73
+
74
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Version {
75
+ return new Version().fromJsonString(jsonString, options);
76
+ }
77
+
78
+ static equals(a: Version | PlainMessage<Version> | undefined, b: Version | PlainMessage<Version> | undefined): boolean {
79
+ return proto3.util.equals(Version, a, b);
80
+ }
81
+ }
82
+
83
+ /**
84
+ * @generated from message norsk.api.common.QuorumDefinition
85
+ */
86
+ export class QuorumDefinition extends Message<QuorumDefinition> {
87
+ /**
88
+ * @generated from field: string groupName = 1;
89
+ */
90
+ groupName = "";
91
+
92
+ /**
93
+ * @generated from field: int32 numberOfWitnesses = 2;
94
+ */
95
+ numberOfWitnesses = 0;
96
+
97
+ constructor(data?: PartialMessage<QuorumDefinition>) {
98
+ super();
99
+ proto3.util.initPartial(data, this);
100
+ }
101
+
102
+ static readonly runtime = proto3;
103
+ static readonly typeName = "norsk.api.common.QuorumDefinition";
104
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
105
+ { no: 1, name: "groupName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
106
+ { no: 2, name: "numberOfWitnesses", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
107
+ ]);
108
+
109
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QuorumDefinition {
110
+ return new QuorumDefinition().fromBinary(bytes, options);
111
+ }
112
+
113
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QuorumDefinition {
114
+ return new QuorumDefinition().fromJson(jsonValue, options);
115
+ }
116
+
117
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QuorumDefinition {
118
+ return new QuorumDefinition().fromJsonString(jsonString, options);
119
+ }
120
+
121
+ static equals(a: QuorumDefinition | PlainMessage<QuorumDefinition> | undefined, b: QuorumDefinition | PlainMessage<QuorumDefinition> | undefined): boolean {
122
+ return proto3.util.equals(QuorumDefinition, a, b);
123
+ }
124
+ }
125
+
126
+ /**
127
+ * Metrics on the Erlang VM scheduler utilization
128
+ *
129
+ * @generated from message norsk.api.common.SchedulerUtilization
130
+ */
131
+ export class SchedulerUtilization extends Message<SchedulerUtilization> {
132
+ /**
133
+ * @generated from field: float normalPercentage = 1;
134
+ */
135
+ normalPercentage = 0;
136
+
137
+ /**
138
+ * @generated from field: float cpuPercentage = 2;
139
+ */
140
+ cpuPercentage = 0;
141
+
142
+ /**
143
+ * @generated from field: float ioPercentage = 3;
144
+ */
145
+ ioPercentage = 0;
146
+
147
+ constructor(data?: PartialMessage<SchedulerUtilization>) {
148
+ super();
149
+ proto3.util.initPartial(data, this);
150
+ }
151
+
152
+ static readonly runtime = proto3;
153
+ static readonly typeName = "norsk.api.common.SchedulerUtilization";
154
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
155
+ { no: 1, name: "normalPercentage", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
156
+ { no: 2, name: "cpuPercentage", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
157
+ { no: 3, name: "ioPercentage", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
158
+ ]);
159
+
160
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SchedulerUtilization {
161
+ return new SchedulerUtilization().fromBinary(bytes, options);
162
+ }
163
+
164
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SchedulerUtilization {
165
+ return new SchedulerUtilization().fromJson(jsonValue, options);
166
+ }
167
+
168
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SchedulerUtilization {
169
+ return new SchedulerUtilization().fromJsonString(jsonString, options);
170
+ }
171
+
172
+ static equals(a: SchedulerUtilization | PlainMessage<SchedulerUtilization> | undefined, b: SchedulerUtilization | PlainMessage<SchedulerUtilization> | undefined): boolean {
173
+ return proto3.util.equals(SchedulerUtilization, a, b);
174
+ }
175
+ }
176
+
177
+ /**
178
+ * Metrics on the host load. CPU and Network metrics are for the entire
179
+ * host, whereas the scheduler utilization is just for the erlang instance
180
+ * reporting the metric
181
+ *
182
+ * @generated from message norsk.api.common.CurrentLoad
183
+ */
184
+ export class CurrentLoad extends Message<CurrentLoad> {
185
+ /**
186
+ * @generated from field: float cpuPercentage = 1;
187
+ */
188
+ cpuPercentage = 0;
189
+
190
+ /**
191
+ * @generated from field: uint64 networkKbps = 2;
192
+ */
193
+ networkKbps = protoInt64.zero;
194
+
195
+ /**
196
+ * @generated from field: norsk.api.common.SchedulerUtilization schedulerUtilization = 3;
197
+ */
198
+ schedulerUtilization?: SchedulerUtilization;
199
+
200
+ constructor(data?: PartialMessage<CurrentLoad>) {
201
+ super();
202
+ proto3.util.initPartial(data, this);
203
+ }
204
+
205
+ static readonly runtime = proto3;
206
+ static readonly typeName = "norsk.api.common.CurrentLoad";
207
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
208
+ { no: 1, name: "cpuPercentage", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
209
+ { no: 2, name: "networkKbps", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
210
+ { no: 3, name: "schedulerUtilization", kind: "message", T: SchedulerUtilization },
211
+ ]);
212
+
213
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CurrentLoad {
214
+ return new CurrentLoad().fromBinary(bytes, options);
215
+ }
216
+
217
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CurrentLoad {
218
+ return new CurrentLoad().fromJson(jsonValue, options);
219
+ }
220
+
221
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CurrentLoad {
222
+ return new CurrentLoad().fromJsonString(jsonString, options);
223
+ }
224
+
225
+ static equals(a: CurrentLoad | PlainMessage<CurrentLoad> | undefined, b: CurrentLoad | PlainMessage<CurrentLoad> | undefined): boolean {
226
+ return proto3.util.equals(CurrentLoad, a, b);
227
+ }
228
+ }
229
+
230
+ /**
231
+ * @generated from message norsk.api.common.Log
232
+ */
233
+ export class Log extends Message<Log> {
234
+ /**
235
+ * @generated from field: norsk.api.common.Log.Level level = 1;
236
+ */
237
+ level = Log_Level.EMERGENCY;
238
+
239
+ /**
240
+ * @generated from field: uint64 timestamp = 2;
241
+ */
242
+ timestamp = protoInt64.zero;
243
+
244
+ /**
245
+ * @generated from field: string msg = 3;
246
+ */
247
+ msg = "";
248
+
249
+ constructor(data?: PartialMessage<Log>) {
250
+ super();
251
+ proto3.util.initPartial(data, this);
252
+ }
253
+
254
+ static readonly runtime = proto3;
255
+ static readonly typeName = "norsk.api.common.Log";
256
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
257
+ { no: 1, name: "level", kind: "enum", T: proto3.getEnumType(Log_Level) },
258
+ { no: 2, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
259
+ { no: 3, name: "msg", kind: "scalar", T: 9 /* ScalarType.STRING */ },
260
+ ]);
261
+
262
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Log {
263
+ return new Log().fromBinary(bytes, options);
264
+ }
265
+
266
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Log {
267
+ return new Log().fromJson(jsonValue, options);
268
+ }
269
+
270
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Log {
271
+ return new Log().fromJsonString(jsonString, options);
272
+ }
273
+
274
+ static equals(a: Log | PlainMessage<Log> | undefined, b: Log | PlainMessage<Log> | undefined): boolean {
275
+ return proto3.util.equals(Log, a, b);
276
+ }
277
+ }
278
+
279
+ /**
280
+ * @generated from enum norsk.api.common.Log.Level
281
+ */
282
+ export enum Log_Level {
283
+ /**
284
+ * @generated from enum value: EMERGENCY = 0;
285
+ */
286
+ EMERGENCY = 0,
287
+
288
+ /**
289
+ * @generated from enum value: ALERT = 1;
290
+ */
291
+ ALERT = 1,
292
+
293
+ /**
294
+ * @generated from enum value: CRITICAL = 2;
295
+ */
296
+ CRITICAL = 2,
297
+
298
+ /**
299
+ * @generated from enum value: ERROR = 3;
300
+ */
301
+ ERROR = 3,
302
+
303
+ /**
304
+ * @generated from enum value: WARNING = 4;
305
+ */
306
+ WARNING = 4,
307
+
308
+ /**
309
+ * @generated from enum value: NOTICE = 5;
310
+ */
311
+ NOTICE = 5,
312
+
313
+ /**
314
+ * @generated from enum value: INFO = 6;
315
+ */
316
+ INFO = 6,
317
+
318
+ /**
319
+ * @generated from enum value: DEBUG = 7;
320
+ */
321
+ DEBUG = 7,
322
+ }
323
+ // Retrieve enum metadata with: proto3.getEnumType(Log_Level)
324
+ proto3.util.setEnumType(Log_Level, "norsk.api.common.Log.Level", [
325
+ { no: 0, name: "EMERGENCY" },
326
+ { no: 1, name: "ALERT" },
327
+ { no: 2, name: "CRITICAL" },
328
+ { no: 3, name: "ERROR" },
329
+ { no: 4, name: "WARNING" },
330
+ { no: 5, name: "NOTICE" },
331
+ { no: 6, name: "INFO" },
332
+ { no: 7, name: "DEBUG" },
333
+ ]);
334
+
@@ -0,0 +1,56 @@
1
+ // package: grpc.health.v1
2
+ // file: shared/health.proto
3
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+
7
+ import * as grpc from "@grpc/grpc-js";
8
+ import * as shared_health_pb from "../shared/health_pb";
9
+
10
+ interface IHealthService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
11
+ check: IHealthService_ICheck;
12
+ watch: IHealthService_IWatch;
13
+ }
14
+
15
+ interface IHealthService_ICheck extends grpc.MethodDefinition<shared_health_pb.HealthCheckRequest, shared_health_pb.HealthCheckResponse> {
16
+ path: "/grpc.health.v1.Health/Check";
17
+ requestStream: false;
18
+ responseStream: false;
19
+ requestSerialize: grpc.serialize<shared_health_pb.HealthCheckRequest>;
20
+ requestDeserialize: grpc.deserialize<shared_health_pb.HealthCheckRequest>;
21
+ responseSerialize: grpc.serialize<shared_health_pb.HealthCheckResponse>;
22
+ responseDeserialize: grpc.deserialize<shared_health_pb.HealthCheckResponse>;
23
+ }
24
+ interface IHealthService_IWatch extends grpc.MethodDefinition<shared_health_pb.HealthCheckRequest, shared_health_pb.HealthCheckResponse> {
25
+ path: "/grpc.health.v1.Health/Watch";
26
+ requestStream: false;
27
+ responseStream: true;
28
+ requestSerialize: grpc.serialize<shared_health_pb.HealthCheckRequest>;
29
+ requestDeserialize: grpc.deserialize<shared_health_pb.HealthCheckRequest>;
30
+ responseSerialize: grpc.serialize<shared_health_pb.HealthCheckResponse>;
31
+ responseDeserialize: grpc.deserialize<shared_health_pb.HealthCheckResponse>;
32
+ }
33
+
34
+ export const HealthService: IHealthService;
35
+
36
+ export interface IHealthServer extends grpc.UntypedServiceImplementation {
37
+ check: grpc.handleUnaryCall<shared_health_pb.HealthCheckRequest, shared_health_pb.HealthCheckResponse>;
38
+ watch: grpc.handleServerStreamingCall<shared_health_pb.HealthCheckRequest, shared_health_pb.HealthCheckResponse>;
39
+ }
40
+
41
+ export interface IHealthClient {
42
+ check(request: shared_health_pb.HealthCheckRequest, callback: (error: grpc.ServiceError | null, response: shared_health_pb.HealthCheckResponse) => void): grpc.ClientUnaryCall;
43
+ check(request: shared_health_pb.HealthCheckRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_health_pb.HealthCheckResponse) => void): grpc.ClientUnaryCall;
44
+ check(request: shared_health_pb.HealthCheckRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: shared_health_pb.HealthCheckResponse) => void): grpc.ClientUnaryCall;
45
+ watch(request: shared_health_pb.HealthCheckRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<shared_health_pb.HealthCheckResponse>;
46
+ watch(request: shared_health_pb.HealthCheckRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<shared_health_pb.HealthCheckResponse>;
47
+ }
48
+
49
+ export class HealthClient extends grpc.Client implements IHealthClient {
50
+ constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
51
+ public check(request: shared_health_pb.HealthCheckRequest, callback: (error: grpc.ServiceError | null, response: shared_health_pb.HealthCheckResponse) => void): grpc.ClientUnaryCall;
52
+ public check(request: shared_health_pb.HealthCheckRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: shared_health_pb.HealthCheckResponse) => void): grpc.ClientUnaryCall;
53
+ public check(request: shared_health_pb.HealthCheckRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: shared_health_pb.HealthCheckResponse) => void): grpc.ClientUnaryCall;
54
+ public watch(request: shared_health_pb.HealthCheckRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<shared_health_pb.HealthCheckResponse>;
55
+ public watch(request: shared_health_pb.HealthCheckRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<shared_health_pb.HealthCheckResponse>;
56
+ }
@@ -0,0 +1,90 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ // Original file comments:
4
+ // Copyright 2015 The gRPC Authors
5
+ //
6
+ // Licensed under the Apache License, Version 2.0 (the "License");
7
+ // you may not use this file except in compliance with the License.
8
+ // You may obtain a copy of the License at
9
+ //
10
+ // http://www.apache.org/licenses/LICENSE-2.0
11
+ //
12
+ // Unless required by applicable law or agreed to in writing, software
13
+ // distributed under the License is distributed on an "AS IS" BASIS,
14
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ // See the License for the specific language governing permissions and
16
+ // limitations under the License.
17
+ //
18
+ // The canonical version of this proto can be found at
19
+ // https://github.com/grpc/grpc-proto/blob/master/grpc/health/v1/health.proto
20
+ //
21
+ 'use strict';
22
+ var grpc = require('@grpc/grpc-js');
23
+ var shared_health_pb = require('../shared/health_pb.js');
24
+
25
+ function serialize_grpc_health_v1_HealthCheckRequest(arg) {
26
+ if (!(arg instanceof shared_health_pb.HealthCheckRequest)) {
27
+ throw new Error('Expected argument of type grpc.health.v1.HealthCheckRequest');
28
+ }
29
+ return Buffer.from(arg.toBinary());
30
+ }
31
+
32
+ function deserialize_grpc_health_v1_HealthCheckRequest(buffer_arg) {
33
+ return shared_health_pb.HealthCheckRequest.fromBinary(new Uint8Array(buffer_arg));
34
+ }
35
+
36
+ function serialize_grpc_health_v1_HealthCheckResponse(arg) {
37
+ if (!(arg instanceof shared_health_pb.HealthCheckResponse)) {
38
+ throw new Error('Expected argument of type grpc.health.v1.HealthCheckResponse');
39
+ }
40
+ return Buffer.from(arg.toBinary());
41
+ }
42
+
43
+ function deserialize_grpc_health_v1_HealthCheckResponse(buffer_arg) {
44
+ return shared_health_pb.HealthCheckResponse.fromBinary(new Uint8Array(buffer_arg));
45
+ }
46
+
47
+
48
+ var HealthService = exports.HealthService = {
49
+ // If the requested service is unknown, the call will fail with status
50
+ // NOT_FOUND.
51
+ check: {
52
+ path: '/grpc.health.v1.Health/Check',
53
+ requestStream: false,
54
+ responseStream: false,
55
+ requestType: shared_health_pb.HealthCheckRequest,
56
+ responseType: shared_health_pb.HealthCheckResponse,
57
+ requestSerialize: serialize_grpc_health_v1_HealthCheckRequest,
58
+ requestDeserialize: deserialize_grpc_health_v1_HealthCheckRequest,
59
+ responseSerialize: serialize_grpc_health_v1_HealthCheckResponse,
60
+ responseDeserialize: deserialize_grpc_health_v1_HealthCheckResponse,
61
+ },
62
+ // Performs a watch for the serving status of the requested service.
63
+ // The server will immediately send back a message indicating the current
64
+ // serving status. It will then subsequently send a new message whenever
65
+ // the service's serving status changes.
66
+ //
67
+ // If the requested service is unknown when the call is received, the
68
+ // server will send a message setting the serving status to
69
+ // SERVICE_UNKNOWN but will *not* terminate the call. If at some
70
+ // future point, the serving status of the service becomes known, the
71
+ // server will send a new message with the service's serving status.
72
+ //
73
+ // If the call terminates with status UNIMPLEMENTED, then clients
74
+ // should assume this method is not supported and should not retry the
75
+ // call. If the call terminates with any other status (including OK),
76
+ // clients should retry the call with appropriate exponential backoff.
77
+ watch: {
78
+ path: '/grpc.health.v1.Health/Watch',
79
+ requestStream: false,
80
+ responseStream: true,
81
+ requestType: shared_health_pb.HealthCheckRequest,
82
+ responseType: shared_health_pb.HealthCheckResponse,
83
+ requestSerialize: serialize_grpc_health_v1_HealthCheckRequest,
84
+ requestDeserialize: deserialize_grpc_health_v1_HealthCheckRequest,
85
+ responseSerialize: serialize_grpc_health_v1_HealthCheckResponse,
86
+ responseDeserialize: deserialize_grpc_health_v1_HealthCheckResponse,
87
+ },
88
+ };
89
+
90
+ exports.HealthClient = grpc.makeGenericClientConstructor(HealthService);
@@ -0,0 +1,59 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * @generated from message grpc.health.v1.HealthCheckRequest
5
+ */
6
+ export declare class HealthCheckRequest extends Message<HealthCheckRequest> {
7
+ /**
8
+ * @generated from field: string service = 1;
9
+ */
10
+ service: string;
11
+ constructor(data?: PartialMessage<HealthCheckRequest>);
12
+ static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
13
+ static readonly typeName = "grpc.health.v1.HealthCheckRequest";
14
+ static readonly fields: FieldList;
15
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HealthCheckRequest;
16
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HealthCheckRequest;
17
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HealthCheckRequest;
18
+ static equals(a: HealthCheckRequest | PlainMessage<HealthCheckRequest> | undefined, b: HealthCheckRequest | PlainMessage<HealthCheckRequest> | undefined): boolean;
19
+ }
20
+ /**
21
+ * @generated from message grpc.health.v1.HealthCheckResponse
22
+ */
23
+ export declare class HealthCheckResponse extends Message<HealthCheckResponse> {
24
+ /**
25
+ * @generated from field: grpc.health.v1.HealthCheckResponse.ServingStatus status = 1;
26
+ */
27
+ status: HealthCheckResponse_ServingStatus;
28
+ constructor(data?: PartialMessage<HealthCheckResponse>);
29
+ static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime").ProtoRuntime;
30
+ static readonly typeName = "grpc.health.v1.HealthCheckResponse";
31
+ static readonly fields: FieldList;
32
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HealthCheckResponse;
33
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HealthCheckResponse;
34
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HealthCheckResponse;
35
+ static equals(a: HealthCheckResponse | PlainMessage<HealthCheckResponse> | undefined, b: HealthCheckResponse | PlainMessage<HealthCheckResponse> | undefined): boolean;
36
+ }
37
+ /**
38
+ * @generated from enum grpc.health.v1.HealthCheckResponse.ServingStatus
39
+ */
40
+ export declare enum HealthCheckResponse_ServingStatus {
41
+ /**
42
+ * @generated from enum value: UNKNOWN = 0;
43
+ */
44
+ UNKNOWN = 0,
45
+ /**
46
+ * @generated from enum value: SERVING = 1;
47
+ */
48
+ SERVING = 1,
49
+ /**
50
+ * @generated from enum value: NOT_SERVING = 2;
51
+ */
52
+ NOT_SERVING = 2,
53
+ /**
54
+ * Used only by the Watch method.
55
+ *
56
+ * @generated from enum value: SERVICE_UNKNOWN = 3;
57
+ */
58
+ SERVICE_UNKNOWN = 3
59
+ }
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ // Copyright 2015 The gRPC Authors
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.HealthCheckResponse_ServingStatus = exports.HealthCheckResponse = exports.HealthCheckRequest = void 0;
17
+ const protobuf_1 = require("@bufbuild/protobuf");
18
+ /**
19
+ * @generated from message grpc.health.v1.HealthCheckRequest
20
+ */
21
+ class HealthCheckRequest extends protobuf_1.Message {
22
+ constructor(data) {
23
+ super();
24
+ /**
25
+ * @generated from field: string service = 1;
26
+ */
27
+ this.service = "";
28
+ protobuf_1.proto3.util.initPartial(data, this);
29
+ }
30
+ static fromBinary(bytes, options) {
31
+ return new HealthCheckRequest().fromBinary(bytes, options);
32
+ }
33
+ static fromJson(jsonValue, options) {
34
+ return new HealthCheckRequest().fromJson(jsonValue, options);
35
+ }
36
+ static fromJsonString(jsonString, options) {
37
+ return new HealthCheckRequest().fromJsonString(jsonString, options);
38
+ }
39
+ static equals(a, b) {
40
+ return protobuf_1.proto3.util.equals(HealthCheckRequest, a, b);
41
+ }
42
+ }
43
+ exports.HealthCheckRequest = HealthCheckRequest;
44
+ HealthCheckRequest.runtime = protobuf_1.proto3;
45
+ HealthCheckRequest.typeName = "grpc.health.v1.HealthCheckRequest";
46
+ HealthCheckRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
47
+ { no: 1, name: "service", kind: "scalar", T: 9 /* ScalarType.STRING */ },
48
+ ]);
49
+ /**
50
+ * @generated from message grpc.health.v1.HealthCheckResponse
51
+ */
52
+ class HealthCheckResponse extends protobuf_1.Message {
53
+ constructor(data) {
54
+ super();
55
+ /**
56
+ * @generated from field: grpc.health.v1.HealthCheckResponse.ServingStatus status = 1;
57
+ */
58
+ this.status = HealthCheckResponse_ServingStatus.UNKNOWN;
59
+ protobuf_1.proto3.util.initPartial(data, this);
60
+ }
61
+ static fromBinary(bytes, options) {
62
+ return new HealthCheckResponse().fromBinary(bytes, options);
63
+ }
64
+ static fromJson(jsonValue, options) {
65
+ return new HealthCheckResponse().fromJson(jsonValue, options);
66
+ }
67
+ static fromJsonString(jsonString, options) {
68
+ return new HealthCheckResponse().fromJsonString(jsonString, options);
69
+ }
70
+ static equals(a, b) {
71
+ return protobuf_1.proto3.util.equals(HealthCheckResponse, a, b);
72
+ }
73
+ }
74
+ exports.HealthCheckResponse = HealthCheckResponse;
75
+ HealthCheckResponse.runtime = protobuf_1.proto3;
76
+ HealthCheckResponse.typeName = "grpc.health.v1.HealthCheckResponse";
77
+ HealthCheckResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
78
+ { no: 1, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(HealthCheckResponse_ServingStatus) },
79
+ ]);
80
+ /**
81
+ * @generated from enum grpc.health.v1.HealthCheckResponse.ServingStatus
82
+ */
83
+ var HealthCheckResponse_ServingStatus;
84
+ (function (HealthCheckResponse_ServingStatus) {
85
+ /**
86
+ * @generated from enum value: UNKNOWN = 0;
87
+ */
88
+ HealthCheckResponse_ServingStatus[HealthCheckResponse_ServingStatus["UNKNOWN"] = 0] = "UNKNOWN";
89
+ /**
90
+ * @generated from enum value: SERVING = 1;
91
+ */
92
+ HealthCheckResponse_ServingStatus[HealthCheckResponse_ServingStatus["SERVING"] = 1] = "SERVING";
93
+ /**
94
+ * @generated from enum value: NOT_SERVING = 2;
95
+ */
96
+ HealthCheckResponse_ServingStatus[HealthCheckResponse_ServingStatus["NOT_SERVING"] = 2] = "NOT_SERVING";
97
+ /**
98
+ * Used only by the Watch method.
99
+ *
100
+ * @generated from enum value: SERVICE_UNKNOWN = 3;
101
+ */
102
+ HealthCheckResponse_ServingStatus[HealthCheckResponse_ServingStatus["SERVICE_UNKNOWN"] = 3] = "SERVICE_UNKNOWN";
103
+ })(HealthCheckResponse_ServingStatus = exports.HealthCheckResponse_ServingStatus || (exports.HealthCheckResponse_ServingStatus = {}));
104
+ // Retrieve enum metadata with: proto3.getEnumType(HealthCheckResponse_ServingStatus)
105
+ protobuf_1.proto3.util.setEnumType(HealthCheckResponse_ServingStatus, "grpc.health.v1.HealthCheckResponse.ServingStatus", [
106
+ { no: 0, name: "UNKNOWN" },
107
+ { no: 1, name: "SERVING" },
108
+ { no: 2, name: "NOT_SERVING" },
109
+ { no: 3, name: "SERVICE_UNKNOWN" },
110
+ ]);
111
+ //# sourceMappingURL=health_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"health_pb.js","sourceRoot":"","sources":["health_pb.ts"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAWjC,iDAAqD;AAErD;;GAEG;AACH,MAAa,kBAAmB,SAAQ,kBAA2B;IAMjE,YAAY,IAAyC;QACnD,KAAK,EAAE,CAAC;QANV;;WAEG;QACH,YAAO,GAAG,EAAE,CAAC;QAIX,iBAAM,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACtC,CAAC;IAQD,MAAM,CAAC,UAAU,CAAC,KAAiB,EAAE,OAAoC;QACvE,OAAO,IAAI,kBAAkB,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,SAAoB,EAAE,OAAkC;QACtE,OAAO,IAAI,kBAAkB,EAAE,CAAC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,UAAkB,EAAE,OAAkC;QAC1E,OAAO,IAAI,kBAAkB,EAAE,CAAC,cAAc,CAAC,UAA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