@raystack/proton 0.1.0-ce225175aa066e6f296bc489293bb83ed0edcef6
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.
- package/google/api/annotations_pb.ts +33 -0
- package/google/api/field_behavior.ts +95 -0
- package/google/api/field_behavior_pb.ts +139 -0
- package/google/api/http.ts +695 -0
- package/google/api/http_pb.ts +547 -0
- package/google/api/httpbody.ts +159 -0
- package/google/api/httpbody_pb.ts +122 -0
- package/google/protobuf/any.ts +322 -0
- package/google/protobuf/descriptor.ts +3475 -0
- package/google/protobuf/duration.ts +231 -0
- package/google/protobuf/struct.ts +484 -0
- package/google/protobuf/timestamp.ts +290 -0
- package/google/protobuf/wrappers.ts +752 -0
- package/package.json +47 -0
- package/protoc-gen-openapiv2/options/annotations_pb.ts +78 -0
- package/protoc-gen-openapiv2/options/openapiv2.ts +3110 -0
- package/protoc-gen-openapiv2/options/openapiv2_pb.ts +1995 -0
- package/raystack/assets/index.ts +29 -0
- package/raystack/assets/v1beta1/bucket.ts +362 -0
- package/raystack/assets/v1beta1/bucket_pb.ts +233 -0
- package/raystack/assets/v1beta1/dashboard.ts +426 -0
- package/raystack/assets/v1beta1/dashboard_pb.ts +275 -0
- package/raystack/assets/v1beta1/event.ts +105 -0
- package/raystack/assets/v1beta1/event_pb.ts +70 -0
- package/raystack/assets/v1beta1/group.ts +223 -0
- package/raystack/assets/v1beta1/group_pb.ts +149 -0
- package/raystack/assets/v1beta1/job.ts +147 -0
- package/raystack/assets/v1beta1/job_pb.ts +100 -0
- package/raystack/assets/v1beta1/lineage.ts +90 -0
- package/raystack/assets/v1beta1/lineage_pb.ts +61 -0
- package/raystack/assets/v1beta1/ownership.ts +179 -0
- package/raystack/assets/v1beta1/ownership_pb.ts +119 -0
- package/raystack/assets/v1beta1/preview.ts +87 -0
- package/raystack/assets/v1beta1/preview_pb.ts +58 -0
- package/raystack/assets/v1beta1/properties.ts +116 -0
- package/raystack/assets/v1beta1/properties_pb.ts +63 -0
- package/raystack/assets/v1beta1/resource.ts +149 -0
- package/raystack/assets/v1beta1/resource_pb.ts +96 -0
- package/raystack/assets/v1beta1/schema.ts +421 -0
- package/raystack/assets/v1beta1/schema_pb.ts +262 -0
- package/raystack/assets/v1beta1/table.ts +408 -0
- package/raystack/assets/v1beta1/table_pb.ts +266 -0
- package/raystack/assets/v1beta1/timestamp.ts +158 -0
- package/raystack/assets/v1beta1/timestamp_pb.ts +107 -0
- package/raystack/assets/v1beta1/topic.ts +253 -0
- package/raystack/assets/v1beta1/topic_pb.ts +171 -0
- package/raystack/assets/v1beta1/user.ts +451 -0
- package/raystack/assets/v1beta1/user_pb.ts +292 -0
- package/raystack/assets/v1beta2/application.ts +125 -0
- package/raystack/assets/v1beta2/application_pb.ts +79 -0
- package/raystack/assets/v1beta2/asset.ts +269 -0
- package/raystack/assets/v1beta2/asset_pb.ts +157 -0
- package/raystack/assets/v1beta2/bucket.ts +341 -0
- package/raystack/assets/v1beta2/bucket_pb.ts +215 -0
- package/raystack/assets/v1beta2/common.ts +392 -0
- package/raystack/assets/v1beta2/common_pb.ts +258 -0
- package/raystack/assets/v1beta2/dashboard.ts +393 -0
- package/raystack/assets/v1beta2/dashboard_pb.ts +247 -0
- package/raystack/assets/v1beta2/experiment.ts +274 -0
- package/raystack/assets/v1beta2/experiment_pb.ts +180 -0
- package/raystack/assets/v1beta2/feature_table.ts +387 -0
- package/raystack/assets/v1beta2/feature_table_pb.ts +237 -0
- package/raystack/assets/v1beta2/group.ts +178 -0
- package/raystack/assets/v1beta2/group_pb.ts +118 -0
- package/raystack/assets/v1beta2/job.ts +99 -0
- package/raystack/assets/v1beta2/job_pb.ts +65 -0
- package/raystack/assets/v1beta2/metric.ts +163 -0
- package/raystack/assets/v1beta2/metric_pb.ts +105 -0
- package/raystack/assets/v1beta2/model.ts +519 -0
- package/raystack/assets/v1beta2/model_pb.ts +322 -0
- package/raystack/assets/v1beta2/table.ts +663 -0
- package/raystack/assets/v1beta2/table_pb.ts +409 -0
- package/raystack/assets/v1beta2/topic.ts +275 -0
- package/raystack/assets/v1beta2/topic_pb.ts +181 -0
- package/raystack/assets/v1beta2/user.ts +433 -0
- package/raystack/assets/v1beta2/user_pb.ts +277 -0
- package/raystack/common/index.ts +3 -0
- package/raystack/common/v1/service-CommonService_connectquery.ts +21 -0
- package/raystack/common/v1/service.client.ts +37 -0
- package/raystack/common/v1/service.ts +245 -0
- package/raystack/common/v1/service_connect.ts +26 -0
- package/raystack/common/v1/service_pb.ts +149 -0
- package/raystack/compass/index.ts +3 -0
- package/raystack/compass/v1beta1/service-CompassService_connectquery.ts +605 -0
- package/raystack/compass/v1beta1/service.client.ts +594 -0
- package/raystack/compass/v1beta1/service.ts +8169 -0
- package/raystack/compass/v1beta1/service_connect.ts +407 -0
- package/raystack/compass/v1beta1/service_pb.ts +4975 -0
- package/raystack/entropy/index.ts +6 -0
- package/raystack/entropy/v1beta1/module-ModuleService_connectquery.ts +77 -0
- package/raystack/entropy/v1beta1/module.client.ts +89 -0
- package/raystack/entropy/v1beta1/module.ts +692 -0
- package/raystack/entropy/v1beta1/module_connect.ts +62 -0
- package/raystack/entropy/v1beta1/module_pb.ts +445 -0
- package/raystack/entropy/v1beta1/resource-ResourceService_connectquery.ts +105 -0
- package/raystack/entropy/v1beta1/resource.client.ts +129 -0
- package/raystack/entropy/v1beta1/resource.ts +1817 -0
- package/raystack/entropy/v1beta1/resource_connect.ts +89 -0
- package/raystack/entropy/v1beta1/resource_pb.ts +1092 -0
- package/raystack/frontier/index.ts +7 -0
- package/raystack/frontier/v1beta1/admin-AdminService_connectquery.ts +756 -0
- package/raystack/frontier/v1beta1/admin.client.ts +849 -0
- package/raystack/frontier/v1beta1/admin.ts +9007 -0
- package/raystack/frontier/v1beta1/admin_connect.ts +573 -0
- package/raystack/frontier/v1beta1/admin_pb.ts +5615 -0
- package/raystack/frontier/v1beta1/frontier-FrontierService_connectquery.ts +2399 -0
- package/raystack/frontier/v1beta1/frontier.client.ts +2307 -0
- package/raystack/frontier/v1beta1/frontier.ts +23706 -0
- package/raystack/frontier/v1beta1/frontier_connect.ts +1574 -0
- package/raystack/frontier/v1beta1/frontier_pb.ts +15258 -0
- package/raystack/frontier/v1beta1/models.ts +7433 -0
- package/raystack/frontier/v1beta1/models_pb.ts +4345 -0
- package/raystack/guardian/index.ts +3 -0
- package/raystack/guardian/v1beta1/guardian-GuardianService_connectquery.ts +569 -0
- package/raystack/guardian/v1beta1/guardian.client.ts +552 -0
- package/raystack/guardian/v1beta1/guardian.ts +9688 -0
- package/raystack/guardian/v1beta1/guardian_connect.ts +381 -0
- package/raystack/guardian/v1beta1/guardian_pb.ts +5858 -0
- package/raystack/optimus/core/v1beta1/backup-BackupService_connectquery.ts +49 -0
- package/raystack/optimus/core/v1beta1/backup.client.ts +63 -0
- package/raystack/optimus/core/v1beta1/backup.ts +708 -0
- package/raystack/optimus/core/v1beta1/backup_connect.ts +44 -0
- package/raystack/optimus/core/v1beta1/backup_pb.ts +406 -0
- package/raystack/optimus/core/v1beta1/job_run-JobRunService_connectquery.ts +71 -0
- package/raystack/optimus/core/v1beta1/job_run.client.ts +96 -0
- package/raystack/optimus/core/v1beta1/job_run.ts +1008 -0
- package/raystack/optimus/core/v1beta1/job_run_connect.ts +63 -0
- package/raystack/optimus/core/v1beta1/job_run_pb.ts +612 -0
- package/raystack/optimus/core/v1beta1/job_spec-JobSpecificationService_connectquery.ts +249 -0
- package/raystack/optimus/core/v1beta1/job_spec.client.ts +363 -0
- package/raystack/optimus/core/v1beta1/job_spec.ts +5134 -0
- package/raystack/optimus/core/v1beta1/job_spec_connect.ts +233 -0
- package/raystack/optimus/core/v1beta1/job_spec_pb.ts +3196 -0
- package/raystack/optimus/core/v1beta1/namespace-NamespaceService_connectquery.ts +55 -0
- package/raystack/optimus/core/v1beta1/namespace.client.ts +75 -0
- package/raystack/optimus/core/v1beta1/namespace.ts +477 -0
- package/raystack/optimus/core/v1beta1/namespace_connect.ts +50 -0
- package/raystack/optimus/core/v1beta1/namespace_pb.ts +291 -0
- package/raystack/optimus/core/v1beta1/project-ProjectService_connectquery.ts +55 -0
- package/raystack/optimus/core/v1beta1/project.client.ts +75 -0
- package/raystack/optimus/core/v1beta1/project.ts +520 -0
- package/raystack/optimus/core/v1beta1/project_connect.ts +50 -0
- package/raystack/optimus/core/v1beta1/project_pb.ts +322 -0
- package/raystack/optimus/core/v1beta1/replay-ReplayService_connectquery.ts +63 -0
- package/raystack/optimus/core/v1beta1/replay.client.ts +76 -0
- package/raystack/optimus/core/v1beta1/replay.ts +881 -0
- package/raystack/optimus/core/v1beta1/replay_connect.ts +53 -0
- package/raystack/optimus/core/v1beta1/replay_pb.ts +522 -0
- package/raystack/optimus/core/v1beta1/resource-ResourceService_connectquery.ts +104 -0
- package/raystack/optimus/core/v1beta1/resource.client.ts +148 -0
- package/raystack/optimus/core/v1beta1/resource.ts +1329 -0
- package/raystack/optimus/core/v1beta1/resource_connect.ts +96 -0
- package/raystack/optimus/core/v1beta1/resource_pb.ts +791 -0
- package/raystack/optimus/core/v1beta1/runtime-RuntimeService_connectquery.ts +23 -0
- package/raystack/optimus/core/v1beta1/runtime.client.ts +45 -0
- package/raystack/optimus/core/v1beta1/runtime.ts +131 -0
- package/raystack/optimus/core/v1beta1/runtime_connect.ts +30 -0
- package/raystack/optimus/core/v1beta1/runtime_pb.ts +82 -0
- package/raystack/optimus/core/v1beta1/secret-SecretService_connectquery.ts +71 -0
- package/raystack/optimus/core/v1beta1/secret.client.ts +92 -0
- package/raystack/optimus/core/v1beta1/secret.ts +619 -0
- package/raystack/optimus/core/v1beta1/secret_connect.ts +61 -0
- package/raystack/optimus/core/v1beta1/secret_pb.ts +393 -0
- package/raystack/optimus/core/v1beta1/status.ts +113 -0
- package/raystack/optimus/core/v1beta1/status_pb.ts +101 -0
- package/raystack/optimus/integration/v1beta1/event.ts +531 -0
- package/raystack/optimus/integration/v1beta1/event_pb.ts +362 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver-DependencyResolverModService_connectquery.ts +72 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver.client.ts +100 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver.ts +950 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver_connect.ts +65 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver_pb.ts +604 -0
- package/raystack/predator/index.ts +2 -0
- package/raystack/predator/v1beta1/metrics_log.ts +457 -0
- package/raystack/predator/v1beta1/metrics_log_pb.ts +277 -0
- package/raystack/predator/v1beta1/result_log.ts +390 -0
- package/raystack/predator/v1beta1/result_log_pb.ts +235 -0
- package/raystack/raccoon/index.ts +3 -0
- package/raystack/raccoon/v1beta1/raccoon-EventService_connectquery.ts +21 -0
- package/raystack/raccoon/v1beta1/raccoon.client.ts +37 -0
- package/raystack/raccoon/v1beta1/raccoon.ts +442 -0
- package/raystack/raccoon/v1beta1/raccoon_connect.ts +26 -0
- package/raystack/raccoon/v1beta1/raccoon_pb.ts +324 -0
- package/raystack/siren/index.ts +3 -0
- package/raystack/siren/v1beta1/siren-SirenService_connectquery.ts +497 -0
- package/raystack/siren/v1beta1/siren.client.ts +479 -0
- package/raystack/siren/v1beta1/siren.ts +6507 -0
- package/raystack/siren/v1beta1/siren_connect.ts +332 -0
- package/raystack/siren/v1beta1/siren_pb.ts +3853 -0
- package/raystack/stencil/index.ts +3 -0
- package/raystack/stencil/v1beta1/stencil-StencilService_connectquery.ts +231 -0
- package/raystack/stencil/v1beta1/stencil.client.ts +232 -0
- package/raystack/stencil/v1beta1/stencil.ts +2716 -0
- package/raystack/stencil/v1beta1/stencil_connect.ts +161 -0
- package/raystack/stencil/v1beta1/stencil_pb.ts +1729 -0
- package/validate/validate.ts +4130 -0
- package/validate/validate_pb.ts +2621 -0
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
|
|
2
|
+
// @generated from file raystack/predator/v1beta1/metrics_log.proto (package raystack.predator.v1beta1, 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, Timestamp } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from message raystack.predator.v1beta1.MetricsLogKey
|
|
11
|
+
*/
|
|
12
|
+
export class MetricsLogKey extends Message<MetricsLogKey> {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: string id = 1;
|
|
15
|
+
*/
|
|
16
|
+
id = "";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: raystack.predator.v1beta1.Group group = 2;
|
|
20
|
+
*/
|
|
21
|
+
group?: Group;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @generated from field: google.protobuf.Timestamp event_timestamp = 99;
|
|
25
|
+
*/
|
|
26
|
+
eventTimestamp?: Timestamp;
|
|
27
|
+
|
|
28
|
+
constructor(data?: PartialMessage<MetricsLogKey>) {
|
|
29
|
+
super();
|
|
30
|
+
proto3.util.initPartial(data, this);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
34
|
+
static readonly typeName = "raystack.predator.v1beta1.MetricsLogKey";
|
|
35
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
36
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
37
|
+
{ no: 2, name: "group", kind: "message", T: Group },
|
|
38
|
+
{ no: 99, name: "event_timestamp", kind: "message", T: Timestamp },
|
|
39
|
+
]);
|
|
40
|
+
|
|
41
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MetricsLogKey {
|
|
42
|
+
return new MetricsLogKey().fromBinary(bytes, options);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MetricsLogKey {
|
|
46
|
+
return new MetricsLogKey().fromJson(jsonValue, options);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MetricsLogKey {
|
|
50
|
+
return new MetricsLogKey().fromJsonString(jsonString, options);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static equals(a: MetricsLogKey | PlainMessage<MetricsLogKey> | undefined, b: MetricsLogKey | PlainMessage<MetricsLogKey> | undefined): boolean {
|
|
54
|
+
return proto3.util.equals(MetricsLogKey, a, b);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @generated from message raystack.predator.v1beta1.MetricsLogMessage
|
|
60
|
+
*/
|
|
61
|
+
export class MetricsLogMessage extends Message<MetricsLogMessage> {
|
|
62
|
+
/**
|
|
63
|
+
* @generated from field: string id = 1;
|
|
64
|
+
*/
|
|
65
|
+
id = "";
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @generated from field: string urn = 2;
|
|
69
|
+
*/
|
|
70
|
+
urn = "";
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @generated from field: string filter = 3;
|
|
74
|
+
*/
|
|
75
|
+
filter = "";
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @generated from field: raystack.predator.v1beta1.Group group = 4;
|
|
79
|
+
*/
|
|
80
|
+
group?: Group;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @generated from field: string mode = 5;
|
|
84
|
+
*/
|
|
85
|
+
mode = "";
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @generated from field: repeated raystack.predator.v1beta1.Metric table_metrics = 6;
|
|
89
|
+
*/
|
|
90
|
+
tableMetrics: Metric[] = [];
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @generated from field: repeated raystack.predator.v1beta1.ColumnMetric column_metrics = 7;
|
|
94
|
+
*/
|
|
95
|
+
columnMetrics: ColumnMetric[] = [];
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @generated from field: google.protobuf.Timestamp event_timestamp = 99;
|
|
99
|
+
*/
|
|
100
|
+
eventTimestamp?: Timestamp;
|
|
101
|
+
|
|
102
|
+
constructor(data?: PartialMessage<MetricsLogMessage>) {
|
|
103
|
+
super();
|
|
104
|
+
proto3.util.initPartial(data, this);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
108
|
+
static readonly typeName = "raystack.predator.v1beta1.MetricsLogMessage";
|
|
109
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
110
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
111
|
+
{ no: 2, name: "urn", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
112
|
+
{ no: 3, name: "filter", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
113
|
+
{ no: 4, name: "group", kind: "message", T: Group },
|
|
114
|
+
{ no: 5, name: "mode", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
115
|
+
{ no: 6, name: "table_metrics", kind: "message", T: Metric, repeated: true },
|
|
116
|
+
{ no: 7, name: "column_metrics", kind: "message", T: ColumnMetric, repeated: true },
|
|
117
|
+
{ no: 99, name: "event_timestamp", kind: "message", T: Timestamp },
|
|
118
|
+
]);
|
|
119
|
+
|
|
120
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MetricsLogMessage {
|
|
121
|
+
return new MetricsLogMessage().fromBinary(bytes, options);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MetricsLogMessage {
|
|
125
|
+
return new MetricsLogMessage().fromJson(jsonValue, options);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MetricsLogMessage {
|
|
129
|
+
return new MetricsLogMessage().fromJsonString(jsonString, options);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
static equals(a: MetricsLogMessage | PlainMessage<MetricsLogMessage> | undefined, b: MetricsLogMessage | PlainMessage<MetricsLogMessage> | undefined): boolean {
|
|
133
|
+
return proto3.util.equals(MetricsLogMessage, a, b);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @generated from message raystack.predator.v1beta1.Metric
|
|
139
|
+
*/
|
|
140
|
+
export class Metric extends Message<Metric> {
|
|
141
|
+
/**
|
|
142
|
+
* @generated from field: string name = 1;
|
|
143
|
+
*/
|
|
144
|
+
name = "";
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @generated from field: double value = 2;
|
|
148
|
+
*/
|
|
149
|
+
value = 0;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @generated from field: string condition = 3;
|
|
153
|
+
*/
|
|
154
|
+
condition = "";
|
|
155
|
+
|
|
156
|
+
constructor(data?: PartialMessage<Metric>) {
|
|
157
|
+
super();
|
|
158
|
+
proto3.util.initPartial(data, this);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
162
|
+
static readonly typeName = "raystack.predator.v1beta1.Metric";
|
|
163
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
164
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
165
|
+
{ no: 2, name: "value", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
166
|
+
{ no: 3, name: "condition", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
167
|
+
]);
|
|
168
|
+
|
|
169
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Metric {
|
|
170
|
+
return new Metric().fromBinary(bytes, options);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Metric {
|
|
174
|
+
return new Metric().fromJson(jsonValue, options);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Metric {
|
|
178
|
+
return new Metric().fromJsonString(jsonString, options);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
static equals(a: Metric | PlainMessage<Metric> | undefined, b: Metric | PlainMessage<Metric> | undefined): boolean {
|
|
182
|
+
return proto3.util.equals(Metric, a, b);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* @generated from message raystack.predator.v1beta1.Group
|
|
188
|
+
*/
|
|
189
|
+
export class Group extends Message<Group> {
|
|
190
|
+
/**
|
|
191
|
+
* @generated from field: string column = 1;
|
|
192
|
+
*/
|
|
193
|
+
column = "";
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @generated from field: string value = 2;
|
|
197
|
+
*/
|
|
198
|
+
value = "";
|
|
199
|
+
|
|
200
|
+
constructor(data?: PartialMessage<Group>) {
|
|
201
|
+
super();
|
|
202
|
+
proto3.util.initPartial(data, this);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
206
|
+
static readonly typeName = "raystack.predator.v1beta1.Group";
|
|
207
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
208
|
+
{ no: 1, name: "column", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
209
|
+
{ no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
210
|
+
]);
|
|
211
|
+
|
|
212
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Group {
|
|
213
|
+
return new Group().fromBinary(bytes, options);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Group {
|
|
217
|
+
return new Group().fromJson(jsonValue, options);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Group {
|
|
221
|
+
return new Group().fromJsonString(jsonString, options);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
static equals(a: Group | PlainMessage<Group> | undefined, b: Group | PlainMessage<Group> | undefined): boolean {
|
|
225
|
+
return proto3.util.equals(Group, a, b);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* @generated from message raystack.predator.v1beta1.ColumnMetric
|
|
231
|
+
*/
|
|
232
|
+
export class ColumnMetric extends Message<ColumnMetric> {
|
|
233
|
+
/**
|
|
234
|
+
* @generated from field: string id = 1;
|
|
235
|
+
*/
|
|
236
|
+
id = "";
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* @generated from field: string type = 2;
|
|
240
|
+
*/
|
|
241
|
+
type = "";
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* @generated from field: repeated raystack.predator.v1beta1.Metric metrics = 3;
|
|
245
|
+
*/
|
|
246
|
+
metrics: Metric[] = [];
|
|
247
|
+
|
|
248
|
+
constructor(data?: PartialMessage<ColumnMetric>) {
|
|
249
|
+
super();
|
|
250
|
+
proto3.util.initPartial(data, this);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
254
|
+
static readonly typeName = "raystack.predator.v1beta1.ColumnMetric";
|
|
255
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
256
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
257
|
+
{ no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
258
|
+
{ no: 3, name: "metrics", kind: "message", T: Metric, repeated: true },
|
|
259
|
+
]);
|
|
260
|
+
|
|
261
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ColumnMetric {
|
|
262
|
+
return new ColumnMetric().fromBinary(bytes, options);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ColumnMetric {
|
|
266
|
+
return new ColumnMetric().fromJson(jsonValue, options);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ColumnMetric {
|
|
270
|
+
return new ColumnMetric().fromJsonString(jsonString, options);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
static equals(a: ColumnMetric | PlainMessage<ColumnMetric> | undefined, b: ColumnMetric | PlainMessage<ColumnMetric> | undefined): boolean {
|
|
274
|
+
return proto3.util.equals(ColumnMetric, a, b);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1
|
|
2
|
+
// @generated from protobuf file "raystack/predator/v1beta1/result_log.proto" (package "raystack.predator.v1beta1", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
+
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
14
|
+
import { Group } from "./metrics_log";
|
|
15
|
+
/**
|
|
16
|
+
* @generated from protobuf message raystack.predator.v1beta1.ResultLogKey
|
|
17
|
+
*/
|
|
18
|
+
export interface ResultLogKey {
|
|
19
|
+
/**
|
|
20
|
+
* @generated from protobuf field: string id = 1
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
/**
|
|
24
|
+
* @generated from protobuf field: raystack.predator.v1beta1.Group group = 2
|
|
25
|
+
*/
|
|
26
|
+
group?: Group;
|
|
27
|
+
/**
|
|
28
|
+
* @generated from protobuf field: google.protobuf.Timestamp event_timestamp = 99
|
|
29
|
+
*/
|
|
30
|
+
eventTimestamp?: Timestamp;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @generated from protobuf message raystack.predator.v1beta1.ResultLogMessage
|
|
34
|
+
*/
|
|
35
|
+
export interface ResultLogMessage {
|
|
36
|
+
/**
|
|
37
|
+
* @generated from protobuf field: string id = 1
|
|
38
|
+
*/
|
|
39
|
+
id: string;
|
|
40
|
+
/**
|
|
41
|
+
* @generated from protobuf field: string profile_id = 2
|
|
42
|
+
*/
|
|
43
|
+
profileId: string;
|
|
44
|
+
/**
|
|
45
|
+
* @generated from protobuf field: string urn = 3
|
|
46
|
+
*/
|
|
47
|
+
urn: string;
|
|
48
|
+
/**
|
|
49
|
+
* @generated from protobuf field: raystack.predator.v1beta1.Group group = 4
|
|
50
|
+
*/
|
|
51
|
+
group?: Group;
|
|
52
|
+
/**
|
|
53
|
+
* @generated from protobuf field: repeated raystack.predator.v1beta1.Result results = 5
|
|
54
|
+
*/
|
|
55
|
+
results: Result[];
|
|
56
|
+
/**
|
|
57
|
+
* @generated from protobuf field: google.protobuf.Timestamp event_timestamp = 99
|
|
58
|
+
*/
|
|
59
|
+
eventTimestamp?: Timestamp;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @generated from protobuf message raystack.predator.v1beta1.Result
|
|
63
|
+
*/
|
|
64
|
+
export interface Result {
|
|
65
|
+
/**
|
|
66
|
+
* @generated from protobuf field: string name = 1
|
|
67
|
+
*/
|
|
68
|
+
name: string;
|
|
69
|
+
/**
|
|
70
|
+
* @generated from protobuf field: string field_id = 2
|
|
71
|
+
*/
|
|
72
|
+
fieldId: string;
|
|
73
|
+
/**
|
|
74
|
+
* @generated from protobuf field: double value = 3
|
|
75
|
+
*/
|
|
76
|
+
value: number;
|
|
77
|
+
/**
|
|
78
|
+
* @generated from protobuf field: repeated raystack.predator.v1beta1.ToleranceRule rules = 4
|
|
79
|
+
*/
|
|
80
|
+
rules: ToleranceRule[];
|
|
81
|
+
/**
|
|
82
|
+
* @generated from protobuf field: bool pass_flag = 5
|
|
83
|
+
*/
|
|
84
|
+
passFlag: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* @generated from protobuf field: string condition = 6
|
|
87
|
+
*/
|
|
88
|
+
condition: string;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @generated from protobuf message raystack.predator.v1beta1.ToleranceRule
|
|
92
|
+
*/
|
|
93
|
+
export interface ToleranceRule {
|
|
94
|
+
/**
|
|
95
|
+
* @generated from protobuf field: string name = 1
|
|
96
|
+
*/
|
|
97
|
+
name: string;
|
|
98
|
+
/**
|
|
99
|
+
* @generated from protobuf field: double value = 2
|
|
100
|
+
*/
|
|
101
|
+
value: number;
|
|
102
|
+
}
|
|
103
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
104
|
+
class ResultLogKey$Type extends MessageType<ResultLogKey> {
|
|
105
|
+
constructor() {
|
|
106
|
+
super("raystack.predator.v1beta1.ResultLogKey", [
|
|
107
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
108
|
+
{ no: 2, name: "group", kind: "message", T: () => Group },
|
|
109
|
+
{ no: 99, name: "event_timestamp", kind: "message", T: () => Timestamp }
|
|
110
|
+
]);
|
|
111
|
+
}
|
|
112
|
+
create(value?: PartialMessage<ResultLogKey>): ResultLogKey {
|
|
113
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
114
|
+
message.id = "";
|
|
115
|
+
if (value !== undefined)
|
|
116
|
+
reflectionMergePartial<ResultLogKey>(this, message, value);
|
|
117
|
+
return message;
|
|
118
|
+
}
|
|
119
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResultLogKey): ResultLogKey {
|
|
120
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
121
|
+
while (reader.pos < end) {
|
|
122
|
+
let [fieldNo, wireType] = reader.tag();
|
|
123
|
+
switch (fieldNo) {
|
|
124
|
+
case /* string id */ 1:
|
|
125
|
+
message.id = reader.string();
|
|
126
|
+
break;
|
|
127
|
+
case /* raystack.predator.v1beta1.Group group */ 2:
|
|
128
|
+
message.group = Group.internalBinaryRead(reader, reader.uint32(), options, message.group);
|
|
129
|
+
break;
|
|
130
|
+
case /* google.protobuf.Timestamp event_timestamp */ 99:
|
|
131
|
+
message.eventTimestamp = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.eventTimestamp);
|
|
132
|
+
break;
|
|
133
|
+
default:
|
|
134
|
+
let u = options.readUnknownField;
|
|
135
|
+
if (u === "throw")
|
|
136
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
137
|
+
let d = reader.skip(wireType);
|
|
138
|
+
if (u !== false)
|
|
139
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return message;
|
|
143
|
+
}
|
|
144
|
+
internalBinaryWrite(message: ResultLogKey, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
145
|
+
/* string id = 1; */
|
|
146
|
+
if (message.id !== "")
|
|
147
|
+
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
148
|
+
/* raystack.predator.v1beta1.Group group = 2; */
|
|
149
|
+
if (message.group)
|
|
150
|
+
Group.internalBinaryWrite(message.group, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
151
|
+
/* google.protobuf.Timestamp event_timestamp = 99; */
|
|
152
|
+
if (message.eventTimestamp)
|
|
153
|
+
Timestamp.internalBinaryWrite(message.eventTimestamp, writer.tag(99, WireType.LengthDelimited).fork(), options).join();
|
|
154
|
+
let u = options.writeUnknownFields;
|
|
155
|
+
if (u !== false)
|
|
156
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
157
|
+
return writer;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* @generated MessageType for protobuf message raystack.predator.v1beta1.ResultLogKey
|
|
162
|
+
*/
|
|
163
|
+
export const ResultLogKey = new ResultLogKey$Type();
|
|
164
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
165
|
+
class ResultLogMessage$Type extends MessageType<ResultLogMessage> {
|
|
166
|
+
constructor() {
|
|
167
|
+
super("raystack.predator.v1beta1.ResultLogMessage", [
|
|
168
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
169
|
+
{ no: 2, name: "profile_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
170
|
+
{ no: 3, name: "urn", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
171
|
+
{ no: 4, name: "group", kind: "message", T: () => Group },
|
|
172
|
+
{ no: 5, name: "results", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Result },
|
|
173
|
+
{ no: 99, name: "event_timestamp", kind: "message", T: () => Timestamp }
|
|
174
|
+
]);
|
|
175
|
+
}
|
|
176
|
+
create(value?: PartialMessage<ResultLogMessage>): ResultLogMessage {
|
|
177
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
178
|
+
message.id = "";
|
|
179
|
+
message.profileId = "";
|
|
180
|
+
message.urn = "";
|
|
181
|
+
message.results = [];
|
|
182
|
+
if (value !== undefined)
|
|
183
|
+
reflectionMergePartial<ResultLogMessage>(this, message, value);
|
|
184
|
+
return message;
|
|
185
|
+
}
|
|
186
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResultLogMessage): ResultLogMessage {
|
|
187
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
188
|
+
while (reader.pos < end) {
|
|
189
|
+
let [fieldNo, wireType] = reader.tag();
|
|
190
|
+
switch (fieldNo) {
|
|
191
|
+
case /* string id */ 1:
|
|
192
|
+
message.id = reader.string();
|
|
193
|
+
break;
|
|
194
|
+
case /* string profile_id */ 2:
|
|
195
|
+
message.profileId = reader.string();
|
|
196
|
+
break;
|
|
197
|
+
case /* string urn */ 3:
|
|
198
|
+
message.urn = reader.string();
|
|
199
|
+
break;
|
|
200
|
+
case /* raystack.predator.v1beta1.Group group */ 4:
|
|
201
|
+
message.group = Group.internalBinaryRead(reader, reader.uint32(), options, message.group);
|
|
202
|
+
break;
|
|
203
|
+
case /* repeated raystack.predator.v1beta1.Result results */ 5:
|
|
204
|
+
message.results.push(Result.internalBinaryRead(reader, reader.uint32(), options));
|
|
205
|
+
break;
|
|
206
|
+
case /* google.protobuf.Timestamp event_timestamp */ 99:
|
|
207
|
+
message.eventTimestamp = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.eventTimestamp);
|
|
208
|
+
break;
|
|
209
|
+
default:
|
|
210
|
+
let u = options.readUnknownField;
|
|
211
|
+
if (u === "throw")
|
|
212
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
213
|
+
let d = reader.skip(wireType);
|
|
214
|
+
if (u !== false)
|
|
215
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
return message;
|
|
219
|
+
}
|
|
220
|
+
internalBinaryWrite(message: ResultLogMessage, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
221
|
+
/* string id = 1; */
|
|
222
|
+
if (message.id !== "")
|
|
223
|
+
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
224
|
+
/* string profile_id = 2; */
|
|
225
|
+
if (message.profileId !== "")
|
|
226
|
+
writer.tag(2, WireType.LengthDelimited).string(message.profileId);
|
|
227
|
+
/* string urn = 3; */
|
|
228
|
+
if (message.urn !== "")
|
|
229
|
+
writer.tag(3, WireType.LengthDelimited).string(message.urn);
|
|
230
|
+
/* raystack.predator.v1beta1.Group group = 4; */
|
|
231
|
+
if (message.group)
|
|
232
|
+
Group.internalBinaryWrite(message.group, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
233
|
+
/* repeated raystack.predator.v1beta1.Result results = 5; */
|
|
234
|
+
for (let i = 0; i < message.results.length; i++)
|
|
235
|
+
Result.internalBinaryWrite(message.results[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
236
|
+
/* google.protobuf.Timestamp event_timestamp = 99; */
|
|
237
|
+
if (message.eventTimestamp)
|
|
238
|
+
Timestamp.internalBinaryWrite(message.eventTimestamp, writer.tag(99, WireType.LengthDelimited).fork(), options).join();
|
|
239
|
+
let u = options.writeUnknownFields;
|
|
240
|
+
if (u !== false)
|
|
241
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
242
|
+
return writer;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* @generated MessageType for protobuf message raystack.predator.v1beta1.ResultLogMessage
|
|
247
|
+
*/
|
|
248
|
+
export const ResultLogMessage = new ResultLogMessage$Type();
|
|
249
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
250
|
+
class Result$Type extends MessageType<Result> {
|
|
251
|
+
constructor() {
|
|
252
|
+
super("raystack.predator.v1beta1.Result", [
|
|
253
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
254
|
+
{ no: 2, name: "field_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
255
|
+
{ no: 3, name: "value", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
|
256
|
+
{ no: 4, name: "rules", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ToleranceRule },
|
|
257
|
+
{ no: 5, name: "pass_flag", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
258
|
+
{ no: 6, name: "condition", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
259
|
+
]);
|
|
260
|
+
}
|
|
261
|
+
create(value?: PartialMessage<Result>): Result {
|
|
262
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
263
|
+
message.name = "";
|
|
264
|
+
message.fieldId = "";
|
|
265
|
+
message.value = 0;
|
|
266
|
+
message.rules = [];
|
|
267
|
+
message.passFlag = false;
|
|
268
|
+
message.condition = "";
|
|
269
|
+
if (value !== undefined)
|
|
270
|
+
reflectionMergePartial<Result>(this, message, value);
|
|
271
|
+
return message;
|
|
272
|
+
}
|
|
273
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Result): Result {
|
|
274
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
275
|
+
while (reader.pos < end) {
|
|
276
|
+
let [fieldNo, wireType] = reader.tag();
|
|
277
|
+
switch (fieldNo) {
|
|
278
|
+
case /* string name */ 1:
|
|
279
|
+
message.name = reader.string();
|
|
280
|
+
break;
|
|
281
|
+
case /* string field_id */ 2:
|
|
282
|
+
message.fieldId = reader.string();
|
|
283
|
+
break;
|
|
284
|
+
case /* double value */ 3:
|
|
285
|
+
message.value = reader.double();
|
|
286
|
+
break;
|
|
287
|
+
case /* repeated raystack.predator.v1beta1.ToleranceRule rules */ 4:
|
|
288
|
+
message.rules.push(ToleranceRule.internalBinaryRead(reader, reader.uint32(), options));
|
|
289
|
+
break;
|
|
290
|
+
case /* bool pass_flag */ 5:
|
|
291
|
+
message.passFlag = reader.bool();
|
|
292
|
+
break;
|
|
293
|
+
case /* string condition */ 6:
|
|
294
|
+
message.condition = reader.string();
|
|
295
|
+
break;
|
|
296
|
+
default:
|
|
297
|
+
let u = options.readUnknownField;
|
|
298
|
+
if (u === "throw")
|
|
299
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
300
|
+
let d = reader.skip(wireType);
|
|
301
|
+
if (u !== false)
|
|
302
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
return message;
|
|
306
|
+
}
|
|
307
|
+
internalBinaryWrite(message: Result, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
308
|
+
/* string name = 1; */
|
|
309
|
+
if (message.name !== "")
|
|
310
|
+
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
311
|
+
/* string field_id = 2; */
|
|
312
|
+
if (message.fieldId !== "")
|
|
313
|
+
writer.tag(2, WireType.LengthDelimited).string(message.fieldId);
|
|
314
|
+
/* double value = 3; */
|
|
315
|
+
if (message.value !== 0)
|
|
316
|
+
writer.tag(3, WireType.Bit64).double(message.value);
|
|
317
|
+
/* repeated raystack.predator.v1beta1.ToleranceRule rules = 4; */
|
|
318
|
+
for (let i = 0; i < message.rules.length; i++)
|
|
319
|
+
ToleranceRule.internalBinaryWrite(message.rules[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
320
|
+
/* bool pass_flag = 5; */
|
|
321
|
+
if (message.passFlag !== false)
|
|
322
|
+
writer.tag(5, WireType.Varint).bool(message.passFlag);
|
|
323
|
+
/* string condition = 6; */
|
|
324
|
+
if (message.condition !== "")
|
|
325
|
+
writer.tag(6, WireType.LengthDelimited).string(message.condition);
|
|
326
|
+
let u = options.writeUnknownFields;
|
|
327
|
+
if (u !== false)
|
|
328
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
329
|
+
return writer;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* @generated MessageType for protobuf message raystack.predator.v1beta1.Result
|
|
334
|
+
*/
|
|
335
|
+
export const Result = new Result$Type();
|
|
336
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
337
|
+
class ToleranceRule$Type extends MessageType<ToleranceRule> {
|
|
338
|
+
constructor() {
|
|
339
|
+
super("raystack.predator.v1beta1.ToleranceRule", [
|
|
340
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
341
|
+
{ no: 2, name: "value", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ }
|
|
342
|
+
]);
|
|
343
|
+
}
|
|
344
|
+
create(value?: PartialMessage<ToleranceRule>): ToleranceRule {
|
|
345
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
346
|
+
message.name = "";
|
|
347
|
+
message.value = 0;
|
|
348
|
+
if (value !== undefined)
|
|
349
|
+
reflectionMergePartial<ToleranceRule>(this, message, value);
|
|
350
|
+
return message;
|
|
351
|
+
}
|
|
352
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ToleranceRule): ToleranceRule {
|
|
353
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
354
|
+
while (reader.pos < end) {
|
|
355
|
+
let [fieldNo, wireType] = reader.tag();
|
|
356
|
+
switch (fieldNo) {
|
|
357
|
+
case /* string name */ 1:
|
|
358
|
+
message.name = reader.string();
|
|
359
|
+
break;
|
|
360
|
+
case /* double value */ 2:
|
|
361
|
+
message.value = reader.double();
|
|
362
|
+
break;
|
|
363
|
+
default:
|
|
364
|
+
let u = options.readUnknownField;
|
|
365
|
+
if (u === "throw")
|
|
366
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
367
|
+
let d = reader.skip(wireType);
|
|
368
|
+
if (u !== false)
|
|
369
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
return message;
|
|
373
|
+
}
|
|
374
|
+
internalBinaryWrite(message: ToleranceRule, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
375
|
+
/* string name = 1; */
|
|
376
|
+
if (message.name !== "")
|
|
377
|
+
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
378
|
+
/* double value = 2; */
|
|
379
|
+
if (message.value !== 0)
|
|
380
|
+
writer.tag(2, WireType.Bit64).double(message.value);
|
|
381
|
+
let u = options.writeUnknownFields;
|
|
382
|
+
if (u !== false)
|
|
383
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
384
|
+
return writer;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* @generated MessageType for protobuf message raystack.predator.v1beta1.ToleranceRule
|
|
389
|
+
*/
|
|
390
|
+
export const ToleranceRule = new ToleranceRule$Type();
|