@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,105 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
|
|
2
|
+
// @generated from file raystack/assets/v1beta2/metric.proto (package raystack.assets.v1beta2, 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, Struct, Timestamp } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A metric is a timeseries aggregation over a table that supports zero or more dimensions.
|
|
11
|
+
*
|
|
12
|
+
* @generated from message raystack.assets.v1beta2.Metric
|
|
13
|
+
*/
|
|
14
|
+
export class Metric extends Message<Metric> {
|
|
15
|
+
/**
|
|
16
|
+
* Namespace of the metric. Something like `{project}-{model}` for dbt and
|
|
17
|
+
* `schema` for Cube.
|
|
18
|
+
*
|
|
19
|
+
* @generated from field: string namespace = 1;
|
|
20
|
+
*/
|
|
21
|
+
namespace = "";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The field being used to calculate a metric.
|
|
25
|
+
*
|
|
26
|
+
* @generated from field: string field_name = 2;
|
|
27
|
+
*/
|
|
28
|
+
fieldName = "";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Type of the evaluated metric. ex: count_distinct, average etc.
|
|
32
|
+
*
|
|
33
|
+
* @generated from field: string measure_type = 3;
|
|
34
|
+
*/
|
|
35
|
+
measureType = "";
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Optional: The query, possibly in SQL representation, with filters and aggregations.
|
|
39
|
+
*
|
|
40
|
+
* @generated from field: string query = 4;
|
|
41
|
+
*/
|
|
42
|
+
query = "";
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Optional: List of attributes the metric has. This could include the
|
|
46
|
+
* following:
|
|
47
|
+
* - time_grains[repeated string]: One or more "grains" at which the metric
|
|
48
|
+
* can be evaluated. Ex: [day, week, month].
|
|
49
|
+
* - dimensions[repeated string]: A list of dimensions to group or filter the
|
|
50
|
+
* metric by. Ex: [plan, country].
|
|
51
|
+
* - filters[repeated map<string, string>]: Predicates for the metric. Ex:
|
|
52
|
+
* [{"field": "is_paying", "operator": "is", "value": "true"}].
|
|
53
|
+
*
|
|
54
|
+
* @generated from field: google.protobuf.Struct attributes = 5;
|
|
55
|
+
*/
|
|
56
|
+
attributes?: Struct;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The timestamp of the metric's creation.
|
|
60
|
+
*
|
|
61
|
+
* @generated from field: google.protobuf.Timestamp create_time = 101;
|
|
62
|
+
*/
|
|
63
|
+
createTime?: Timestamp;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The timestamp when the metric was last modified.
|
|
67
|
+
*
|
|
68
|
+
* @generated from field: google.protobuf.Timestamp update_time = 102;
|
|
69
|
+
*/
|
|
70
|
+
updateTime?: Timestamp;
|
|
71
|
+
|
|
72
|
+
constructor(data?: PartialMessage<Metric>) {
|
|
73
|
+
super();
|
|
74
|
+
proto3.util.initPartial(data, this);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
78
|
+
static readonly typeName = "raystack.assets.v1beta2.Metric";
|
|
79
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
80
|
+
{ no: 1, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
81
|
+
{ no: 2, name: "field_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
82
|
+
{ no: 3, name: "measure_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
83
|
+
{ no: 4, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
84
|
+
{ no: 5, name: "attributes", kind: "message", T: Struct },
|
|
85
|
+
{ no: 101, name: "create_time", kind: "message", T: Timestamp },
|
|
86
|
+
{ no: 102, name: "update_time", kind: "message", T: Timestamp },
|
|
87
|
+
]);
|
|
88
|
+
|
|
89
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Metric {
|
|
90
|
+
return new Metric().fromBinary(bytes, options);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Metric {
|
|
94
|
+
return new Metric().fromJson(jsonValue, options);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Metric {
|
|
98
|
+
return new Metric().fromJsonString(jsonString, options);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
static equals(a: Metric | PlainMessage<Metric> | undefined, b: Metric | PlainMessage<Metric> | undefined): boolean {
|
|
102
|
+
return proto3.util.equals(Metric, a, b);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1
|
|
2
|
+
// @generated from protobuf file "raystack/assets/v1beta2/model.proto" (package "raystack.assets.v1beta2", 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 { Struct } from "../../../google/protobuf/struct";
|
|
15
|
+
/**
|
|
16
|
+
* Schema of the model's inputs and outputs. Strongly inspired by
|
|
17
|
+
* https://mlflow.org/docs/latest/python_api/mlflow.models.html#mlflow.models.ModelSignature.
|
|
18
|
+
*
|
|
19
|
+
* @generated from protobuf message raystack.assets.v1beta2.ModelSignature
|
|
20
|
+
*/
|
|
21
|
+
export interface ModelSignature {
|
|
22
|
+
/**
|
|
23
|
+
* @generated from protobuf field: repeated raystack.assets.v1beta2.ModelSignature.Parameter inputs = 1
|
|
24
|
+
*/
|
|
25
|
+
inputs: ModelSignature_Parameter[];
|
|
26
|
+
/**
|
|
27
|
+
* @generated from protobuf field: repeated raystack.assets.v1beta2.ModelSignature.Parameter outputs = 2
|
|
28
|
+
*/
|
|
29
|
+
outputs: ModelSignature_Parameter[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Specification of name and type of a single column in a dataset.
|
|
33
|
+
*
|
|
34
|
+
* @generated from protobuf message raystack.assets.v1beta2.ModelSignature.Parameter
|
|
35
|
+
*/
|
|
36
|
+
export interface ModelSignature_Parameter {
|
|
37
|
+
/**
|
|
38
|
+
* Optional: Name of the input or output parameter.
|
|
39
|
+
*
|
|
40
|
+
* @generated from protobuf field: string name = 1
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
/**
|
|
44
|
+
* Data type of the parameter. Ex: boolean, double, numpy's dtypes etc.
|
|
45
|
+
*
|
|
46
|
+
* @generated from protobuf field: string data_type = 2
|
|
47
|
+
*/
|
|
48
|
+
dataType: string;
|
|
49
|
+
/**
|
|
50
|
+
* Optional: The tensor shape.
|
|
51
|
+
*
|
|
52
|
+
* @generated from protobuf field: repeated int64 shape = 3
|
|
53
|
+
*/
|
|
54
|
+
shape: bigint[];
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @generated from protobuf message raystack.assets.v1beta2.ModelVersion
|
|
58
|
+
*/
|
|
59
|
+
export interface ModelVersion {
|
|
60
|
+
/**
|
|
61
|
+
* The schema of a model version’s inputs and outputs.
|
|
62
|
+
*
|
|
63
|
+
* @generated from protobuf field: raystack.assets.v1beta2.ModelSignature signature = 1
|
|
64
|
+
*/
|
|
65
|
+
signature?: ModelSignature;
|
|
66
|
+
/**
|
|
67
|
+
* Status of the model version. ex: pending/ready/serving/terminated etc.
|
|
68
|
+
*
|
|
69
|
+
* @generated from protobuf field: string status = 2
|
|
70
|
+
*/
|
|
71
|
+
status: string;
|
|
72
|
+
/**
|
|
73
|
+
* Version of the model
|
|
74
|
+
*
|
|
75
|
+
* @generated from protobuf field: string version = 3
|
|
76
|
+
*/
|
|
77
|
+
version: string;
|
|
78
|
+
/**
|
|
79
|
+
* List of attributes the model version has. This could include the following:
|
|
80
|
+
* - mlflow_run_id[string]: MLFlow expriment run ID associated with the model
|
|
81
|
+
* version. Relevant for Merlin models.
|
|
82
|
+
* - mlflow_run_url[string]: URL of MLFlow experiment run associated with
|
|
83
|
+
* the model. Relevant for Merlin models.
|
|
84
|
+
* - endpoint_url[string]: Endpoint that the model is serving requests on.
|
|
85
|
+
* Ex: http://<model_name>-<version>.<project_name>.<merlin_base_url>.
|
|
86
|
+
* - version_endpoint_url[string]: Endpoint that the model is serving
|
|
87
|
+
* requests on for the specific version. Ex:
|
|
88
|
+
* http://<model_name>-<version>.<project_name>.<merlin_base_url>.
|
|
89
|
+
* - traffic[double]: Percentage of traffic being served by this version of
|
|
90
|
+
* the model.
|
|
91
|
+
* - weight[double]: Weightage for the model version endpoint.
|
|
92
|
+
* - params[map<string, string>]: Parameters for the Model's run.
|
|
93
|
+
* - metrics[map<string, double>]: Metrics for the model's run.
|
|
94
|
+
*
|
|
95
|
+
* @generated from protobuf field: google.protobuf.Struct attributes = 4
|
|
96
|
+
*/
|
|
97
|
+
attributes?: Struct;
|
|
98
|
+
/**
|
|
99
|
+
* Optional. List of labels the model version has.
|
|
100
|
+
*
|
|
101
|
+
* @generated from protobuf field: map<string, string> labels = 5
|
|
102
|
+
*/
|
|
103
|
+
labels: {
|
|
104
|
+
[key: string]: string;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* The timestamp of the model's creation.
|
|
108
|
+
*
|
|
109
|
+
* @generated from protobuf field: google.protobuf.Timestamp create_time = 101
|
|
110
|
+
*/
|
|
111
|
+
createTime?: Timestamp;
|
|
112
|
+
/**
|
|
113
|
+
* The timestamp when the model was last modified.
|
|
114
|
+
*
|
|
115
|
+
* @generated from protobuf field: google.protobuf.Timestamp update_time = 102
|
|
116
|
+
*/
|
|
117
|
+
updateTime?: Timestamp;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Model represents a Data Science Model commonly used for Machine Learning
|
|
121
|
+
* (ML). Models are algorithms trained on data to find patterns or make
|
|
122
|
+
* predictions. Models typically consume ML features to generate a meaningful
|
|
123
|
+
* output. The inputs can also include contextual information that is made
|
|
124
|
+
* available in realtime as part of the request to the model server.
|
|
125
|
+
*
|
|
126
|
+
* @generated from protobuf message raystack.assets.v1beta2.Model
|
|
127
|
+
*/
|
|
128
|
+
export interface Model {
|
|
129
|
+
/**
|
|
130
|
+
* Optional: Model's namespace or project.
|
|
131
|
+
*
|
|
132
|
+
* @generated from protobuf field: string namespace = 1
|
|
133
|
+
*/
|
|
134
|
+
namespace: string;
|
|
135
|
+
/**
|
|
136
|
+
* Flavor of the ML Model. ex: pytorch, tensorflow etc.
|
|
137
|
+
*
|
|
138
|
+
* @generated from protobuf field: string flavor = 2
|
|
139
|
+
*/
|
|
140
|
+
flavor: string;
|
|
141
|
+
/**
|
|
142
|
+
* Optional: Algorithm used to train the ML Model.
|
|
143
|
+
*
|
|
144
|
+
* @generated from protobuf field: string algorithm = 3
|
|
145
|
+
*/
|
|
146
|
+
algorithm: string;
|
|
147
|
+
/**
|
|
148
|
+
* Status of the model. ex: active/deleted etc.
|
|
149
|
+
*
|
|
150
|
+
* @generated from protobuf field: string status = 4
|
|
151
|
+
*/
|
|
152
|
+
status: string;
|
|
153
|
+
/**
|
|
154
|
+
* Versions of the model, similar to experiment runs in MLFlow and model
|
|
155
|
+
* version in Merlin.
|
|
156
|
+
*
|
|
157
|
+
* @generated from protobuf field: repeated raystack.assets.v1beta2.ModelVersion versions = 5
|
|
158
|
+
*/
|
|
159
|
+
versions: ModelVersion[];
|
|
160
|
+
/**
|
|
161
|
+
* List of attributes the model version has. This could include the following:
|
|
162
|
+
* - project_id[double]: ID of project the model is present in.
|
|
163
|
+
* - project_name[string]: Name of project the model is present in.
|
|
164
|
+
* - mlflow_experiment_id[double]: MLFlow experiment ID associated with the
|
|
165
|
+
* model. Relevant for Merlin models.
|
|
166
|
+
* - mlflow_experiment_url[string]: URL of MLFlow experiment associated with
|
|
167
|
+
* the model. Relevant for Merlin models.
|
|
168
|
+
* - endpoint_urls[repeated string]: List of URLs associated with endpoints
|
|
169
|
+
* that are serving requests for the model. Relevant for Merlin models.
|
|
170
|
+
*
|
|
171
|
+
* @generated from protobuf field: google.protobuf.Struct attributes = 6
|
|
172
|
+
*/
|
|
173
|
+
attributes?: Struct;
|
|
174
|
+
/**
|
|
175
|
+
* The timestamp of the model's creation.
|
|
176
|
+
*
|
|
177
|
+
* @generated from protobuf field: google.protobuf.Timestamp create_time = 101
|
|
178
|
+
*/
|
|
179
|
+
createTime?: Timestamp;
|
|
180
|
+
/**
|
|
181
|
+
* The timestamp when the model was last modified.
|
|
182
|
+
*
|
|
183
|
+
* @generated from protobuf field: google.protobuf.Timestamp update_time = 102
|
|
184
|
+
*/
|
|
185
|
+
updateTime?: Timestamp;
|
|
186
|
+
}
|
|
187
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
188
|
+
class ModelSignature$Type extends MessageType<ModelSignature> {
|
|
189
|
+
constructor() {
|
|
190
|
+
super("raystack.assets.v1beta2.ModelSignature", [
|
|
191
|
+
{ no: 1, name: "inputs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ModelSignature_Parameter },
|
|
192
|
+
{ no: 2, name: "outputs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ModelSignature_Parameter }
|
|
193
|
+
]);
|
|
194
|
+
}
|
|
195
|
+
create(value?: PartialMessage<ModelSignature>): ModelSignature {
|
|
196
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
197
|
+
message.inputs = [];
|
|
198
|
+
message.outputs = [];
|
|
199
|
+
if (value !== undefined)
|
|
200
|
+
reflectionMergePartial<ModelSignature>(this, message, value);
|
|
201
|
+
return message;
|
|
202
|
+
}
|
|
203
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ModelSignature): ModelSignature {
|
|
204
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
205
|
+
while (reader.pos < end) {
|
|
206
|
+
let [fieldNo, wireType] = reader.tag();
|
|
207
|
+
switch (fieldNo) {
|
|
208
|
+
case /* repeated raystack.assets.v1beta2.ModelSignature.Parameter inputs */ 1:
|
|
209
|
+
message.inputs.push(ModelSignature_Parameter.internalBinaryRead(reader, reader.uint32(), options));
|
|
210
|
+
break;
|
|
211
|
+
case /* repeated raystack.assets.v1beta2.ModelSignature.Parameter outputs */ 2:
|
|
212
|
+
message.outputs.push(ModelSignature_Parameter.internalBinaryRead(reader, reader.uint32(), options));
|
|
213
|
+
break;
|
|
214
|
+
default:
|
|
215
|
+
let u = options.readUnknownField;
|
|
216
|
+
if (u === "throw")
|
|
217
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
218
|
+
let d = reader.skip(wireType);
|
|
219
|
+
if (u !== false)
|
|
220
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
return message;
|
|
224
|
+
}
|
|
225
|
+
internalBinaryWrite(message: ModelSignature, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
226
|
+
/* repeated raystack.assets.v1beta2.ModelSignature.Parameter inputs = 1; */
|
|
227
|
+
for (let i = 0; i < message.inputs.length; i++)
|
|
228
|
+
ModelSignature_Parameter.internalBinaryWrite(message.inputs[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
229
|
+
/* repeated raystack.assets.v1beta2.ModelSignature.Parameter outputs = 2; */
|
|
230
|
+
for (let i = 0; i < message.outputs.length; i++)
|
|
231
|
+
ModelSignature_Parameter.internalBinaryWrite(message.outputs[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
232
|
+
let u = options.writeUnknownFields;
|
|
233
|
+
if (u !== false)
|
|
234
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
235
|
+
return writer;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* @generated MessageType for protobuf message raystack.assets.v1beta2.ModelSignature
|
|
240
|
+
*/
|
|
241
|
+
export const ModelSignature = new ModelSignature$Type();
|
|
242
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
243
|
+
class ModelSignature_Parameter$Type extends MessageType<ModelSignature_Parameter> {
|
|
244
|
+
constructor() {
|
|
245
|
+
super("raystack.assets.v1beta2.ModelSignature.Parameter", [
|
|
246
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
247
|
+
{ no: 2, name: "data_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
248
|
+
{ no: 3, name: "shape", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
249
|
+
]);
|
|
250
|
+
}
|
|
251
|
+
create(value?: PartialMessage<ModelSignature_Parameter>): ModelSignature_Parameter {
|
|
252
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
253
|
+
message.name = "";
|
|
254
|
+
message.dataType = "";
|
|
255
|
+
message.shape = [];
|
|
256
|
+
if (value !== undefined)
|
|
257
|
+
reflectionMergePartial<ModelSignature_Parameter>(this, message, value);
|
|
258
|
+
return message;
|
|
259
|
+
}
|
|
260
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ModelSignature_Parameter): ModelSignature_Parameter {
|
|
261
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
262
|
+
while (reader.pos < end) {
|
|
263
|
+
let [fieldNo, wireType] = reader.tag();
|
|
264
|
+
switch (fieldNo) {
|
|
265
|
+
case /* string name */ 1:
|
|
266
|
+
message.name = reader.string();
|
|
267
|
+
break;
|
|
268
|
+
case /* string data_type */ 2:
|
|
269
|
+
message.dataType = reader.string();
|
|
270
|
+
break;
|
|
271
|
+
case /* repeated int64 shape */ 3:
|
|
272
|
+
if (wireType === WireType.LengthDelimited)
|
|
273
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
274
|
+
message.shape.push(reader.int64().toBigInt());
|
|
275
|
+
else
|
|
276
|
+
message.shape.push(reader.int64().toBigInt());
|
|
277
|
+
break;
|
|
278
|
+
default:
|
|
279
|
+
let u = options.readUnknownField;
|
|
280
|
+
if (u === "throw")
|
|
281
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
282
|
+
let d = reader.skip(wireType);
|
|
283
|
+
if (u !== false)
|
|
284
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
return message;
|
|
288
|
+
}
|
|
289
|
+
internalBinaryWrite(message: ModelSignature_Parameter, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
290
|
+
/* string name = 1; */
|
|
291
|
+
if (message.name !== "")
|
|
292
|
+
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
293
|
+
/* string data_type = 2; */
|
|
294
|
+
if (message.dataType !== "")
|
|
295
|
+
writer.tag(2, WireType.LengthDelimited).string(message.dataType);
|
|
296
|
+
/* repeated int64 shape = 3; */
|
|
297
|
+
if (message.shape.length) {
|
|
298
|
+
writer.tag(3, WireType.LengthDelimited).fork();
|
|
299
|
+
for (let i = 0; i < message.shape.length; i++)
|
|
300
|
+
writer.int64(message.shape[i]);
|
|
301
|
+
writer.join();
|
|
302
|
+
}
|
|
303
|
+
let u = options.writeUnknownFields;
|
|
304
|
+
if (u !== false)
|
|
305
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
306
|
+
return writer;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* @generated MessageType for protobuf message raystack.assets.v1beta2.ModelSignature.Parameter
|
|
311
|
+
*/
|
|
312
|
+
export const ModelSignature_Parameter = new ModelSignature_Parameter$Type();
|
|
313
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
314
|
+
class ModelVersion$Type extends MessageType<ModelVersion> {
|
|
315
|
+
constructor() {
|
|
316
|
+
super("raystack.assets.v1beta2.ModelVersion", [
|
|
317
|
+
{ no: 1, name: "signature", kind: "message", T: () => ModelSignature },
|
|
318
|
+
{ no: 2, name: "status", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
319
|
+
{ no: 3, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
320
|
+
{ no: 4, name: "attributes", kind: "message", T: () => Struct },
|
|
321
|
+
{ no: 5, name: "labels", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } },
|
|
322
|
+
{ no: 101, name: "create_time", kind: "message", T: () => Timestamp },
|
|
323
|
+
{ no: 102, name: "update_time", kind: "message", T: () => Timestamp }
|
|
324
|
+
]);
|
|
325
|
+
}
|
|
326
|
+
create(value?: PartialMessage<ModelVersion>): ModelVersion {
|
|
327
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
328
|
+
message.status = "";
|
|
329
|
+
message.version = "";
|
|
330
|
+
message.labels = {};
|
|
331
|
+
if (value !== undefined)
|
|
332
|
+
reflectionMergePartial<ModelVersion>(this, message, value);
|
|
333
|
+
return message;
|
|
334
|
+
}
|
|
335
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ModelVersion): ModelVersion {
|
|
336
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
337
|
+
while (reader.pos < end) {
|
|
338
|
+
let [fieldNo, wireType] = reader.tag();
|
|
339
|
+
switch (fieldNo) {
|
|
340
|
+
case /* raystack.assets.v1beta2.ModelSignature signature */ 1:
|
|
341
|
+
message.signature = ModelSignature.internalBinaryRead(reader, reader.uint32(), options, message.signature);
|
|
342
|
+
break;
|
|
343
|
+
case /* string status */ 2:
|
|
344
|
+
message.status = reader.string();
|
|
345
|
+
break;
|
|
346
|
+
case /* string version */ 3:
|
|
347
|
+
message.version = reader.string();
|
|
348
|
+
break;
|
|
349
|
+
case /* google.protobuf.Struct attributes */ 4:
|
|
350
|
+
message.attributes = Struct.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
|
|
351
|
+
break;
|
|
352
|
+
case /* map<string, string> labels */ 5:
|
|
353
|
+
this.binaryReadMap5(message.labels, reader, options);
|
|
354
|
+
break;
|
|
355
|
+
case /* google.protobuf.Timestamp create_time */ 101:
|
|
356
|
+
message.createTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createTime);
|
|
357
|
+
break;
|
|
358
|
+
case /* google.protobuf.Timestamp update_time */ 102:
|
|
359
|
+
message.updateTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updateTime);
|
|
360
|
+
break;
|
|
361
|
+
default:
|
|
362
|
+
let u = options.readUnknownField;
|
|
363
|
+
if (u === "throw")
|
|
364
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
365
|
+
let d = reader.skip(wireType);
|
|
366
|
+
if (u !== false)
|
|
367
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
return message;
|
|
371
|
+
}
|
|
372
|
+
private binaryReadMap5(map: ModelVersion["labels"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
|
373
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof ModelVersion["labels"] | undefined, val: ModelVersion["labels"][any] | undefined;
|
|
374
|
+
while (reader.pos < end) {
|
|
375
|
+
let [fieldNo, wireType] = reader.tag();
|
|
376
|
+
switch (fieldNo) {
|
|
377
|
+
case 1:
|
|
378
|
+
key = reader.string();
|
|
379
|
+
break;
|
|
380
|
+
case 2:
|
|
381
|
+
val = reader.string();
|
|
382
|
+
break;
|
|
383
|
+
default: throw new globalThis.Error("unknown map entry field for raystack.assets.v1beta2.ModelVersion.labels");
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
map[key ?? ""] = val ?? "";
|
|
387
|
+
}
|
|
388
|
+
internalBinaryWrite(message: ModelVersion, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
389
|
+
/* raystack.assets.v1beta2.ModelSignature signature = 1; */
|
|
390
|
+
if (message.signature)
|
|
391
|
+
ModelSignature.internalBinaryWrite(message.signature, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
392
|
+
/* string status = 2; */
|
|
393
|
+
if (message.status !== "")
|
|
394
|
+
writer.tag(2, WireType.LengthDelimited).string(message.status);
|
|
395
|
+
/* string version = 3; */
|
|
396
|
+
if (message.version !== "")
|
|
397
|
+
writer.tag(3, WireType.LengthDelimited).string(message.version);
|
|
398
|
+
/* google.protobuf.Struct attributes = 4; */
|
|
399
|
+
if (message.attributes)
|
|
400
|
+
Struct.internalBinaryWrite(message.attributes, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
401
|
+
/* map<string, string> labels = 5; */
|
|
402
|
+
for (let k of globalThis.Object.keys(message.labels))
|
|
403
|
+
writer.tag(5, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.labels[k]).join();
|
|
404
|
+
/* google.protobuf.Timestamp create_time = 101; */
|
|
405
|
+
if (message.createTime)
|
|
406
|
+
Timestamp.internalBinaryWrite(message.createTime, writer.tag(101, WireType.LengthDelimited).fork(), options).join();
|
|
407
|
+
/* google.protobuf.Timestamp update_time = 102; */
|
|
408
|
+
if (message.updateTime)
|
|
409
|
+
Timestamp.internalBinaryWrite(message.updateTime, writer.tag(102, WireType.LengthDelimited).fork(), options).join();
|
|
410
|
+
let u = options.writeUnknownFields;
|
|
411
|
+
if (u !== false)
|
|
412
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
413
|
+
return writer;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* @generated MessageType for protobuf message raystack.assets.v1beta2.ModelVersion
|
|
418
|
+
*/
|
|
419
|
+
export const ModelVersion = new ModelVersion$Type();
|
|
420
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
421
|
+
class Model$Type extends MessageType<Model> {
|
|
422
|
+
constructor() {
|
|
423
|
+
super("raystack.assets.v1beta2.Model", [
|
|
424
|
+
{ no: 1, name: "namespace", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
425
|
+
{ no: 2, name: "flavor", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
426
|
+
{ no: 3, name: "algorithm", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
427
|
+
{ no: 4, name: "status", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
428
|
+
{ no: 5, name: "versions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ModelVersion },
|
|
429
|
+
{ no: 6, name: "attributes", kind: "message", T: () => Struct },
|
|
430
|
+
{ no: 101, name: "create_time", kind: "message", T: () => Timestamp },
|
|
431
|
+
{ no: 102, name: "update_time", kind: "message", T: () => Timestamp }
|
|
432
|
+
]);
|
|
433
|
+
}
|
|
434
|
+
create(value?: PartialMessage<Model>): Model {
|
|
435
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
436
|
+
message.namespace = "";
|
|
437
|
+
message.flavor = "";
|
|
438
|
+
message.algorithm = "";
|
|
439
|
+
message.status = "";
|
|
440
|
+
message.versions = [];
|
|
441
|
+
if (value !== undefined)
|
|
442
|
+
reflectionMergePartial<Model>(this, message, value);
|
|
443
|
+
return message;
|
|
444
|
+
}
|
|
445
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Model): Model {
|
|
446
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
447
|
+
while (reader.pos < end) {
|
|
448
|
+
let [fieldNo, wireType] = reader.tag();
|
|
449
|
+
switch (fieldNo) {
|
|
450
|
+
case /* string namespace */ 1:
|
|
451
|
+
message.namespace = reader.string();
|
|
452
|
+
break;
|
|
453
|
+
case /* string flavor */ 2:
|
|
454
|
+
message.flavor = reader.string();
|
|
455
|
+
break;
|
|
456
|
+
case /* string algorithm */ 3:
|
|
457
|
+
message.algorithm = reader.string();
|
|
458
|
+
break;
|
|
459
|
+
case /* string status */ 4:
|
|
460
|
+
message.status = reader.string();
|
|
461
|
+
break;
|
|
462
|
+
case /* repeated raystack.assets.v1beta2.ModelVersion versions */ 5:
|
|
463
|
+
message.versions.push(ModelVersion.internalBinaryRead(reader, reader.uint32(), options));
|
|
464
|
+
break;
|
|
465
|
+
case /* google.protobuf.Struct attributes */ 6:
|
|
466
|
+
message.attributes = Struct.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
|
|
467
|
+
break;
|
|
468
|
+
case /* google.protobuf.Timestamp create_time */ 101:
|
|
469
|
+
message.createTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createTime);
|
|
470
|
+
break;
|
|
471
|
+
case /* google.protobuf.Timestamp update_time */ 102:
|
|
472
|
+
message.updateTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updateTime);
|
|
473
|
+
break;
|
|
474
|
+
default:
|
|
475
|
+
let u = options.readUnknownField;
|
|
476
|
+
if (u === "throw")
|
|
477
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
478
|
+
let d = reader.skip(wireType);
|
|
479
|
+
if (u !== false)
|
|
480
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
return message;
|
|
484
|
+
}
|
|
485
|
+
internalBinaryWrite(message: Model, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
486
|
+
/* string namespace = 1; */
|
|
487
|
+
if (message.namespace !== "")
|
|
488
|
+
writer.tag(1, WireType.LengthDelimited).string(message.namespace);
|
|
489
|
+
/* string flavor = 2; */
|
|
490
|
+
if (message.flavor !== "")
|
|
491
|
+
writer.tag(2, WireType.LengthDelimited).string(message.flavor);
|
|
492
|
+
/* string algorithm = 3; */
|
|
493
|
+
if (message.algorithm !== "")
|
|
494
|
+
writer.tag(3, WireType.LengthDelimited).string(message.algorithm);
|
|
495
|
+
/* string status = 4; */
|
|
496
|
+
if (message.status !== "")
|
|
497
|
+
writer.tag(4, WireType.LengthDelimited).string(message.status);
|
|
498
|
+
/* repeated raystack.assets.v1beta2.ModelVersion versions = 5; */
|
|
499
|
+
for (let i = 0; i < message.versions.length; i++)
|
|
500
|
+
ModelVersion.internalBinaryWrite(message.versions[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
501
|
+
/* google.protobuf.Struct attributes = 6; */
|
|
502
|
+
if (message.attributes)
|
|
503
|
+
Struct.internalBinaryWrite(message.attributes, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
504
|
+
/* google.protobuf.Timestamp create_time = 101; */
|
|
505
|
+
if (message.createTime)
|
|
506
|
+
Timestamp.internalBinaryWrite(message.createTime, writer.tag(101, WireType.LengthDelimited).fork(), options).join();
|
|
507
|
+
/* google.protobuf.Timestamp update_time = 102; */
|
|
508
|
+
if (message.updateTime)
|
|
509
|
+
Timestamp.internalBinaryWrite(message.updateTime, writer.tag(102, WireType.LengthDelimited).fork(), options).join();
|
|
510
|
+
let u = options.writeUnknownFields;
|
|
511
|
+
if (u !== false)
|
|
512
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
513
|
+
return writer;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* @generated MessageType for protobuf message raystack.assets.v1beta2.Model
|
|
518
|
+
*/
|
|
519
|
+
export const Model = new Model$Type();
|