@nimiplatform/sdk 0.9.1 → 0.10.0
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/dist/core/ai/profile-authoring.d.ts +1 -1
- package/dist/core/ai/profile-authoring.d.ts.map +1 -1
- package/dist/core/ai/profile-authoring.js.map +1 -1
- package/dist/core/app/index.d.ts +1 -1
- package/dist/core/app/index.d.ts.map +1 -1
- package/dist/core/app/index.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-ai.d.ts +14 -1
- package/dist/core/app/local-app-runtime-platform-ai.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform-ai.js +48 -5
- package/dist/core/app/local-app-runtime-platform-ai.js.map +1 -1
- package/dist/core/app/local-app-runtime-platform-vision.d.ts +32 -0
- package/dist/core/app/local-app-runtime-platform-vision.d.ts.map +1 -0
- package/dist/core/app/local-app-runtime-platform-vision.js +77 -0
- package/dist/core/app/local-app-runtime-platform-vision.js.map +1 -0
- package/dist/core/app/local-app-runtime-platform.d.ts +1 -1
- package/dist/core/app/local-app-runtime-platform.d.ts.map +1 -1
- package/dist/core/app/local-app-runtime-platform.js.map +1 -1
- package/dist/core-generated/runtime-client.d.ts.map +1 -1
- package/dist/core-generated/runtime-client.js +80 -8
- package/dist/core-generated/runtime-client.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.d.ts +44 -2
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.js +93 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts +235 -2
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js +455 -3
- package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts +316 -7
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.js +928 -225
- package/dist/core-generated/runtime-protobuf/runtime/v1/app.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/auth.d.ts +4 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/auth.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/auth.js +4 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/auth.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.d.ts +53 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.js +138 -2
- package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts +17 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/common.js +16 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/common.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts +55 -82
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js +98 -168
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_asset_catalog.d.ts +8 -0
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_asset_catalog.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_asset_catalog.js +13 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_asset_catalog.js.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.d.ts +211 -318
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.d.ts.map +1 -1
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.js +494 -616
- package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.js.map +1 -1
- package/dist/core-generated/runtime-public-client.d.ts.map +1 -1
- package/dist/core-generated/runtime-public-client.js +80 -8
- package/dist/core-generated/runtime-public-client.js.map +1 -1
- package/dist/core-generated/runtime-public-rpc-auth-posture.d.ts.map +1 -1
- package/dist/core-generated/runtime-public-rpc-auth-posture.js +10 -1
- package/dist/core-generated/runtime-public-rpc-auth-posture.js.map +1 -1
- package/dist/core-generated/runtime-public-wire-codecs.d.ts +14 -4
- package/dist/core-generated/runtime-public-wire-codecs.d.ts.map +1 -1
- package/dist/core-generated/runtime-public-wire-codecs.js +14 -4
- package/dist/core-generated/runtime-public-wire-codecs.js.map +1 -1
- package/dist/core-generated/runtime-rpc-auth-posture.d.ts.map +1 -1
- package/dist/core-generated/runtime-rpc-auth-posture.js +10 -1
- package/dist/core-generated/runtime-rpc-auth-posture.js.map +1 -1
- package/dist/core-generated/runtime-typed-client.d.ts +22 -12
- package/dist/core-generated/runtime-typed-client.d.ts.map +1 -1
- package/dist/core-generated/runtime-typed-client.js +102 -12
- package/dist/core-generated/runtime-typed-client.js.map +1 -1
- package/dist/core-generated/runtime-wire-codecs.d.ts +14 -4
- package/dist/core-generated/runtime-wire-codecs.d.ts.map +1 -1
- package/dist/core-generated/runtime-wire-codecs.js +14 -4
- package/dist/core-generated/runtime-wire-codecs.js.map +1 -1
- package/dist/runtime/desktop-first-party-runtime.d.ts +3 -3
- package/dist/runtime/desktop-first-party-runtime.d.ts.map +1 -1
- package/dist/runtime/desktop-first-party-runtime.js +8 -1
- package/dist/runtime/desktop-first-party-runtime.js.map +1 -1
- package/dist/runtime/first-party-protected-runtime-profiles.generated.d.ts +32 -4
- package/dist/runtime/first-party-protected-runtime-profiles.generated.d.ts.map +1 -1
- package/dist/runtime/first-party-protected-runtime-profiles.generated.js +10 -3
- package/dist/runtime/first-party-protected-runtime-profiles.generated.js.map +1 -1
- package/dist/runtime/generated.d.ts +2 -2
- package/dist/runtime/generated.d.ts.map +1 -1
- package/dist/runtime/generated.js +1 -1
- package/dist/runtime/generated.js.map +1 -1
- package/dist/runtime/local-asset-vocabulary.d.ts +2 -1
- package/dist/runtime/local-asset-vocabulary.d.ts.map +1 -1
- package/dist/runtime/local-asset-vocabulary.js +3 -0
- package/dist/runtime/local-asset-vocabulary.js.map +1 -1
- package/dist/runtime/machine-loadouts.d.ts +13 -0
- package/dist/runtime/machine-loadouts.d.ts.map +1 -1
- package/dist/runtime/machine-loadouts.js +22 -1
- package/dist/runtime/machine-loadouts.js.map +1 -1
- package/dist/runtime/runtime-local-environment-client-projections.d.ts +2 -4
- package/dist/runtime/runtime-local-environment-client-projections.d.ts.map +1 -1
- package/dist/runtime/runtime-local-environment-client-projections.js +2 -64
- package/dist/runtime/runtime-local-environment-client-projections.js.map +1 -1
- package/dist/runtime/runtime-local-environment-client-types.d.ts +29 -50
- package/dist/runtime/runtime-local-environment-client-types.d.ts.map +1 -1
- package/dist/runtime/runtime-local-environment-client.d.ts +1 -1
- package/dist/runtime/runtime-local-environment-client.d.ts.map +1 -1
- package/dist/runtime/runtime-local-environment-client.js +72 -23
- package/dist/runtime/runtime-local-environment-client.js.map +1 -1
- package/dist/runtime/runtime-local-recommendation-types.d.ts +47 -116
- package/dist/runtime/runtime-local-recommendation-types.d.ts.map +1 -1
- package/dist/runtime/runtime-local-recommendation.d.ts +11 -33
- package/dist/runtime/runtime-local-recommendation.d.ts.map +1 -1
- package/dist/runtime/runtime-local-recommendation.js +102 -261
- package/dist/runtime/runtime-local-recommendation.js.map +1 -1
- package/dist/runtime/runtime-method-modules.d.ts +2 -2
- package/dist/runtime/runtime-method-modules.d.ts.map +1 -1
- package/dist/runtime/runtime-method-modules.js +4 -1
- package/dist/runtime/runtime-method-modules.js.map +1 -1
- package/dist/runtime/scenario-jobs.d.ts +2 -1
- package/dist/runtime/scenario-jobs.d.ts.map +1 -1
- package/dist/runtime/scenario-jobs.js +17 -1
- package/dist/runtime/scenario-jobs.js.map +1 -1
- package/dist/runtime/wire-types/agent-participation-types.d.ts +2 -2
- package/dist/runtime/wire-types/agent-participation-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-enums.d.ts +9 -2
- package/dist/runtime/wire-types/ai-scenario-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-enums.js +8 -0
- package/dist/runtime/wire-types/ai-scenario-enums.js.map +1 -1
- package/dist/runtime/wire-types/ai-scenario-types.d.ts +4 -4
- package/dist/runtime/wire-types/ai-scenario-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/identity-app-enums.d.ts +3 -1
- package/dist/runtime/wire-types/identity-app-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/identity-app-enums.js +2 -0
- package/dist/runtime/wire-types/identity-app-enums.js.map +1 -1
- package/dist/runtime/wire-types/identity-app-types.d.ts +2 -2
- package/dist/runtime/wire-types/identity-app-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/local-memory-enums.d.ts +13 -45
- package/dist/runtime/wire-types/local-memory-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/local-memory-enums.js +21 -59
- package/dist/runtime/wire-types/local-memory-enums.js.map +1 -1
- package/dist/runtime/wire-types/local-memory-types.d.ts +4 -4
- package/dist/runtime/wire-types/local-memory-types.d.ts.map +1 -1
- package/dist/runtime/wire-types/reason-code-enums.d.ts +5 -1
- package/dist/runtime/wire-types/reason-code-enums.d.ts.map +1 -1
- package/dist/runtime/wire-types/reason-code-enums.js +4 -0
- package/dist/runtime/wire-types/reason-code-enums.js.map +1 -1
- package/package.json +1 -1
- package/dist/runtime/runtime-local-recommendation-feed-ui.d.ts +0 -26
- package/dist/runtime/runtime-local-recommendation-feed-ui.d.ts.map +0 -1
- package/dist/runtime/runtime-local-recommendation-feed-ui.js +0 -453
- package/dist/runtime/runtime-local-recommendation-feed-ui.js.map +0 -1
|
@@ -2,220 +2,173 @@ import { WireType } from "@protobuf-ts/runtime";
|
|
|
2
2
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
3
3
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
4
4
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
5
|
-
import {
|
|
6
|
-
import { Struct } from "../../google/protobuf/struct.js";
|
|
7
|
-
import { LocalAssetKind } from "./local_runtime_asset_catalog.js";
|
|
8
|
-
// === Recommendation Feed ===
|
|
5
|
+
import { ReasonCode } from "./common.js";
|
|
9
6
|
/**
|
|
10
|
-
*
|
|
7
|
+
* Runtime-owned applicability for one exact recommendation context. It is
|
|
8
|
+
* neither configuration, readiness, selection, nor execution truth.
|
|
9
|
+
*
|
|
10
|
+
* @generated from protobuf enum nimi.runtime.v1.LocalRecommendationApplicability
|
|
11
11
|
*/
|
|
12
|
-
export var
|
|
13
|
-
(function (
|
|
12
|
+
export var LocalRecommendationApplicability;
|
|
13
|
+
(function (LocalRecommendationApplicability) {
|
|
14
14
|
/**
|
|
15
|
-
* @generated from protobuf enum value:
|
|
15
|
+
* @generated from protobuf enum value: LOCAL_RECOMMENDATION_APPLICABILITY_UNSPECIFIED = 0;
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
LocalRecommendationApplicability[LocalRecommendationApplicability["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
18
18
|
/**
|
|
19
|
-
* @generated from protobuf enum value:
|
|
19
|
+
* @generated from protobuf enum value: LOCAL_RECOMMENDATION_APPLICABILITY_SUPPORTED = 1;
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
LocalRecommendationApplicability[LocalRecommendationApplicability["SUPPORTED"] = 1] = "SUPPORTED";
|
|
22
22
|
/**
|
|
23
|
-
* @generated from protobuf enum value:
|
|
23
|
+
* @generated from protobuf enum value: LOCAL_RECOMMENDATION_APPLICABILITY_UNKNOWN = 2;
|
|
24
24
|
*/
|
|
25
|
-
|
|
26
|
-
})(LocalRecommendationSource || (LocalRecommendationSource = {}));
|
|
27
|
-
/**
|
|
28
|
-
* @generated from protobuf enum nimi.runtime.v1.LocalRecommendationFormat
|
|
29
|
-
*/
|
|
30
|
-
export var LocalRecommendationFormat;
|
|
31
|
-
(function (LocalRecommendationFormat) {
|
|
25
|
+
LocalRecommendationApplicability[LocalRecommendationApplicability["UNKNOWN"] = 2] = "UNKNOWN";
|
|
32
26
|
/**
|
|
33
|
-
* @generated from protobuf enum value:
|
|
27
|
+
* @generated from protobuf enum value: LOCAL_RECOMMENDATION_APPLICABILITY_UNSUPPORTED = 3;
|
|
34
28
|
*/
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
* @generated from protobuf enum value: LOCAL_RECOMMENDATION_FORMAT_GGUF = 1;
|
|
38
|
-
*/
|
|
39
|
-
LocalRecommendationFormat[LocalRecommendationFormat["GGUF"] = 1] = "GGUF";
|
|
40
|
-
/**
|
|
41
|
-
* @generated from protobuf enum value: LOCAL_RECOMMENDATION_FORMAT_SAFETENSORS = 2;
|
|
42
|
-
*/
|
|
43
|
-
LocalRecommendationFormat[LocalRecommendationFormat["SAFETENSORS"] = 2] = "SAFETENSORS";
|
|
44
|
-
})(LocalRecommendationFormat || (LocalRecommendationFormat = {}));
|
|
29
|
+
LocalRecommendationApplicability[LocalRecommendationApplicability["UNSUPPORTED"] = 3] = "UNSUPPORTED";
|
|
30
|
+
})(LocalRecommendationApplicability || (LocalRecommendationApplicability = {}));
|
|
45
31
|
/**
|
|
46
|
-
* @generated from protobuf enum nimi.runtime.v1.
|
|
32
|
+
* @generated from protobuf enum nimi.runtime.v1.ModelAssetSourceAvailability
|
|
47
33
|
*/
|
|
48
|
-
export var
|
|
49
|
-
(function (
|
|
50
|
-
/**
|
|
51
|
-
* @generated from protobuf enum value: LOCAL_RECOMMENDATION_TIER_UNSPECIFIED = 0;
|
|
52
|
-
*/
|
|
53
|
-
LocalRecommendationTier[LocalRecommendationTier["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
54
|
-
/**
|
|
55
|
-
* @generated from protobuf enum value: LOCAL_RECOMMENDATION_TIER_RECOMMENDED = 1;
|
|
56
|
-
*/
|
|
57
|
-
LocalRecommendationTier[LocalRecommendationTier["RECOMMENDED"] = 1] = "RECOMMENDED";
|
|
34
|
+
export var ModelAssetSourceAvailability;
|
|
35
|
+
(function (ModelAssetSourceAvailability) {
|
|
58
36
|
/**
|
|
59
|
-
* @generated from protobuf enum value:
|
|
37
|
+
* @generated from protobuf enum value: MODEL_ASSET_SOURCE_AVAILABILITY_UNSPECIFIED = 0;
|
|
60
38
|
*/
|
|
61
|
-
|
|
39
|
+
ModelAssetSourceAvailability[ModelAssetSourceAvailability["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
62
40
|
/**
|
|
63
|
-
* @generated from protobuf enum value:
|
|
41
|
+
* @generated from protobuf enum value: MODEL_ASSET_SOURCE_AVAILABILITY_AVAILABLE = 1;
|
|
64
42
|
*/
|
|
65
|
-
|
|
43
|
+
ModelAssetSourceAvailability[ModelAssetSourceAvailability["AVAILABLE"] = 1] = "AVAILABLE";
|
|
66
44
|
/**
|
|
67
|
-
* @generated from protobuf enum value:
|
|
45
|
+
* @generated from protobuf enum value: MODEL_ASSET_SOURCE_AVAILABILITY_UNAVAILABLE = 2;
|
|
68
46
|
*/
|
|
69
|
-
|
|
70
|
-
})(
|
|
47
|
+
ModelAssetSourceAvailability[ModelAssetSourceAvailability["UNAVAILABLE"] = 2] = "UNAVAILABLE";
|
|
48
|
+
})(ModelAssetSourceAvailability || (ModelAssetSourceAvailability = {}));
|
|
71
49
|
/**
|
|
72
|
-
* @generated from protobuf enum nimi.runtime.v1.
|
|
50
|
+
* @generated from protobuf enum nimi.runtime.v1.ModelAssetSourceFreshness
|
|
73
51
|
*/
|
|
74
|
-
export var
|
|
75
|
-
(function (
|
|
76
|
-
/**
|
|
77
|
-
* @generated from protobuf enum value: LOCAL_RECOMMENDATION_CONFIDENCE_UNSPECIFIED = 0;
|
|
78
|
-
*/
|
|
79
|
-
LocalRecommendationConfidence[LocalRecommendationConfidence["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
80
|
-
/**
|
|
81
|
-
* @generated from protobuf enum value: LOCAL_RECOMMENDATION_CONFIDENCE_HIGH = 1;
|
|
82
|
-
*/
|
|
83
|
-
LocalRecommendationConfidence[LocalRecommendationConfidence["HIGH"] = 1] = "HIGH";
|
|
52
|
+
export var ModelAssetSourceFreshness;
|
|
53
|
+
(function (ModelAssetSourceFreshness) {
|
|
84
54
|
/**
|
|
85
|
-
* @generated from protobuf enum value:
|
|
55
|
+
* @generated from protobuf enum value: MODEL_ASSET_SOURCE_FRESHNESS_UNSPECIFIED = 0;
|
|
86
56
|
*/
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* @generated from protobuf enum value: LOCAL_RECOMMENDATION_CONFIDENCE_LOW = 3;
|
|
90
|
-
*/
|
|
91
|
-
LocalRecommendationConfidence[LocalRecommendationConfidence["LOW"] = 3] = "LOW";
|
|
92
|
-
})(LocalRecommendationConfidence || (LocalRecommendationConfidence = {}));
|
|
93
|
-
/**
|
|
94
|
-
* @generated from protobuf enum nimi.runtime.v1.LocalHostSupportClass
|
|
95
|
-
*/
|
|
96
|
-
export var LocalHostSupportClass;
|
|
97
|
-
(function (LocalHostSupportClass) {
|
|
57
|
+
ModelAssetSourceFreshness[ModelAssetSourceFreshness["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
98
58
|
/**
|
|
99
|
-
* @generated from protobuf enum value:
|
|
59
|
+
* @generated from protobuf enum value: MODEL_ASSET_SOURCE_FRESHNESS_FRESH = 1;
|
|
100
60
|
*/
|
|
101
|
-
|
|
61
|
+
ModelAssetSourceFreshness[ModelAssetSourceFreshness["FRESH"] = 1] = "FRESH";
|
|
102
62
|
/**
|
|
103
|
-
* @generated from protobuf enum value:
|
|
63
|
+
* @generated from protobuf enum value: MODEL_ASSET_SOURCE_FRESHNESS_STALE = 2;
|
|
104
64
|
*/
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
*/
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
*/
|
|
175
|
-
LocalRecommendationFeedCapability[LocalRecommendationFeedCapability["VIDEO"] = 3] = "VIDEO";
|
|
176
|
-
})(LocalRecommendationFeedCapability || (LocalRecommendationFeedCapability = {}));
|
|
65
|
+
ModelAssetSourceFreshness[ModelAssetSourceFreshness["STALE"] = 2] = "STALE";
|
|
66
|
+
})(ModelAssetSourceFreshness || (ModelAssetSourceFreshness = {}));
|
|
67
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
68
|
+
class ModelAssetFeaturedSourceObservation$Type extends MessageType {
|
|
69
|
+
constructor() {
|
|
70
|
+
super("nimi.runtime.v1.ModelAssetFeaturedSourceObservation", [
|
|
71
|
+
{ no: 1, name: "availability", kind: "enum", T: () => ["nimi.runtime.v1.ModelAssetSourceAvailability", ModelAssetSourceAvailability, "MODEL_ASSET_SOURCE_AVAILABILITY_"] },
|
|
72
|
+
{ no: 2, name: "freshness", kind: "enum", T: () => ["nimi.runtime.v1.ModelAssetSourceFreshness", ModelAssetSourceFreshness, "MODEL_ASSET_SOURCE_FRESHNESS_"] },
|
|
73
|
+
{ no: 3, name: "generation", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
74
|
+
{ no: 4, name: "reason_code", kind: "enum", T: () => ["nimi.runtime.v1.ReasonCode", ReasonCode] }
|
|
75
|
+
]);
|
|
76
|
+
}
|
|
77
|
+
create(value) {
|
|
78
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
79
|
+
message.availability = 0;
|
|
80
|
+
message.freshness = 0;
|
|
81
|
+
message.generation = "";
|
|
82
|
+
message.reasonCode = 0;
|
|
83
|
+
if (value !== undefined)
|
|
84
|
+
reflectionMergePartial(this, message, value);
|
|
85
|
+
return message;
|
|
86
|
+
}
|
|
87
|
+
internalBinaryRead(reader, length, options, target) {
|
|
88
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
89
|
+
while (reader.pos < end) {
|
|
90
|
+
let [fieldNo, wireType] = reader.tag();
|
|
91
|
+
switch (fieldNo) {
|
|
92
|
+
case /* nimi.runtime.v1.ModelAssetSourceAvailability availability */ 1:
|
|
93
|
+
message.availability = reader.int32();
|
|
94
|
+
break;
|
|
95
|
+
case /* nimi.runtime.v1.ModelAssetSourceFreshness freshness */ 2:
|
|
96
|
+
message.freshness = reader.int32();
|
|
97
|
+
break;
|
|
98
|
+
case /* string generation */ 3:
|
|
99
|
+
message.generation = reader.string();
|
|
100
|
+
break;
|
|
101
|
+
case /* nimi.runtime.v1.ReasonCode reason_code */ 4:
|
|
102
|
+
message.reasonCode = reader.int32();
|
|
103
|
+
break;
|
|
104
|
+
default:
|
|
105
|
+
let u = options.readUnknownField;
|
|
106
|
+
if (u === "throw")
|
|
107
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
108
|
+
let d = reader.skip(wireType);
|
|
109
|
+
if (u !== false)
|
|
110
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return message;
|
|
114
|
+
}
|
|
115
|
+
internalBinaryWrite(message, writer, options) {
|
|
116
|
+
/* nimi.runtime.v1.ModelAssetSourceAvailability availability = 1; */
|
|
117
|
+
if (message.availability !== 0)
|
|
118
|
+
writer.tag(1, WireType.Varint).int32(message.availability);
|
|
119
|
+
/* nimi.runtime.v1.ModelAssetSourceFreshness freshness = 2; */
|
|
120
|
+
if (message.freshness !== 0)
|
|
121
|
+
writer.tag(2, WireType.Varint).int32(message.freshness);
|
|
122
|
+
/* string generation = 3; */
|
|
123
|
+
if (message.generation !== "")
|
|
124
|
+
writer.tag(3, WireType.LengthDelimited).string(message.generation);
|
|
125
|
+
/* nimi.runtime.v1.ReasonCode reason_code = 4; */
|
|
126
|
+
if (message.reasonCode !== 0)
|
|
127
|
+
writer.tag(4, WireType.Varint).int32(message.reasonCode);
|
|
128
|
+
let u = options.writeUnknownFields;
|
|
129
|
+
if (u !== false)
|
|
130
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
131
|
+
return writer;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
177
134
|
/**
|
|
178
|
-
* @generated
|
|
135
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.ModelAssetFeaturedSourceObservation
|
|
179
136
|
*/
|
|
180
|
-
export
|
|
181
|
-
(function (LocalRecommendationFeedSource) {
|
|
182
|
-
/**
|
|
183
|
-
* @generated from protobuf enum value: LOCAL_RECOMMENDATION_FEED_SOURCE_UNSPECIFIED = 0;
|
|
184
|
-
*/
|
|
185
|
-
LocalRecommendationFeedSource[LocalRecommendationFeedSource["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
186
|
-
/**
|
|
187
|
-
* @generated from protobuf enum value: LOCAL_RECOMMENDATION_FEED_SOURCE_MODEL_INDEX = 1;
|
|
188
|
-
*/
|
|
189
|
-
LocalRecommendationFeedSource[LocalRecommendationFeedSource["MODEL_INDEX"] = 1] = "MODEL_INDEX";
|
|
190
|
-
})(LocalRecommendationFeedSource || (LocalRecommendationFeedSource = {}));
|
|
137
|
+
export const ModelAssetFeaturedSourceObservation = new ModelAssetFeaturedSourceObservation$Type();
|
|
191
138
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
192
|
-
class
|
|
139
|
+
class ModelAssetCatalogSearchResult$Type extends MessageType {
|
|
193
140
|
constructor() {
|
|
194
|
-
super("nimi.runtime.v1.
|
|
195
|
-
{ no: 1, name: "
|
|
196
|
-
{ no: 2, name: "
|
|
197
|
-
{ no: 3, name: "
|
|
198
|
-
{ no: 4, name: "
|
|
199
|
-
{ no: 5, name: "
|
|
200
|
-
{ no: 6, name: "
|
|
201
|
-
{ no: 7, name: "
|
|
202
|
-
{ no: 8, name: "
|
|
203
|
-
{ no:
|
|
204
|
-
{ no:
|
|
141
|
+
super("nimi.runtime.v1.ModelAssetCatalogSearchResult", [
|
|
142
|
+
{ no: 1, name: "model_locator", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
143
|
+
{ no: 2, name: "source_label", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
144
|
+
{ no: 3, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
145
|
+
{ no: 4, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
146
|
+
{ no: 5, name: "categories", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
147
|
+
{ no: 6, name: "model_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
148
|
+
{ no: 7, name: "license", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
149
|
+
{ no: 8, name: "tags", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
150
|
+
{ no: 9, name: "downloads", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
|
|
151
|
+
{ no: 10, name: "likes", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
|
|
152
|
+
{ no: 11, name: "last_modified", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
153
|
+
{ no: 12, name: "verified", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
154
|
+
{ no: 13, name: "author", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
205
155
|
]);
|
|
206
156
|
}
|
|
207
157
|
create(value) {
|
|
208
158
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
209
|
-
message.
|
|
210
|
-
message.
|
|
211
|
-
message.
|
|
212
|
-
message.
|
|
213
|
-
message.
|
|
214
|
-
message.
|
|
215
|
-
message.
|
|
216
|
-
message.
|
|
217
|
-
message.
|
|
218
|
-
message.
|
|
159
|
+
message.modelLocator = "";
|
|
160
|
+
message.sourceLabel = "";
|
|
161
|
+
message.title = "";
|
|
162
|
+
message.description = "";
|
|
163
|
+
message.categories = [];
|
|
164
|
+
message.modelType = "";
|
|
165
|
+
message.license = "";
|
|
166
|
+
message.tags = [];
|
|
167
|
+
message.downloads = "0";
|
|
168
|
+
message.likes = "0";
|
|
169
|
+
message.lastModified = "";
|
|
170
|
+
message.verified = false;
|
|
171
|
+
message.author = "";
|
|
219
172
|
if (value !== undefined)
|
|
220
173
|
reflectionMergePartial(this, message, value);
|
|
221
174
|
return message;
|
|
@@ -225,35 +178,44 @@ class LocalCatalogRecommendation$Type extends MessageType {
|
|
|
225
178
|
while (reader.pos < end) {
|
|
226
179
|
let [fieldNo, wireType] = reader.tag();
|
|
227
180
|
switch (fieldNo) {
|
|
228
|
-
case /*
|
|
229
|
-
message.
|
|
181
|
+
case /* string model_locator */ 1:
|
|
182
|
+
message.modelLocator = reader.string();
|
|
183
|
+
break;
|
|
184
|
+
case /* string source_label */ 2:
|
|
185
|
+
message.sourceLabel = reader.string();
|
|
186
|
+
break;
|
|
187
|
+
case /* string title */ 3:
|
|
188
|
+
message.title = reader.string();
|
|
230
189
|
break;
|
|
231
|
-
case /*
|
|
232
|
-
message.
|
|
190
|
+
case /* string description */ 4:
|
|
191
|
+
message.description = reader.string();
|
|
233
192
|
break;
|
|
234
|
-
case /*
|
|
235
|
-
message.
|
|
193
|
+
case /* repeated string categories */ 5:
|
|
194
|
+
message.categories.push(reader.string());
|
|
236
195
|
break;
|
|
237
|
-
case /*
|
|
238
|
-
message.
|
|
196
|
+
case /* string model_type */ 6:
|
|
197
|
+
message.modelType = reader.string();
|
|
239
198
|
break;
|
|
240
|
-
case /*
|
|
241
|
-
message.
|
|
199
|
+
case /* string license */ 7:
|
|
200
|
+
message.license = reader.string();
|
|
242
201
|
break;
|
|
243
|
-
case /* repeated string
|
|
244
|
-
message.
|
|
202
|
+
case /* repeated string tags */ 8:
|
|
203
|
+
message.tags.push(reader.string());
|
|
245
204
|
break;
|
|
246
|
-
case /*
|
|
247
|
-
message.
|
|
205
|
+
case /* int64 downloads */ 9:
|
|
206
|
+
message.downloads = reader.int64().toString();
|
|
248
207
|
break;
|
|
249
|
-
case /*
|
|
250
|
-
message.
|
|
208
|
+
case /* int64 likes */ 10:
|
|
209
|
+
message.likes = reader.int64().toString();
|
|
210
|
+
break;
|
|
211
|
+
case /* string last_modified */ 11:
|
|
212
|
+
message.lastModified = reader.string();
|
|
251
213
|
break;
|
|
252
|
-
case /*
|
|
253
|
-
message.
|
|
214
|
+
case /* bool verified */ 12:
|
|
215
|
+
message.verified = reader.bool();
|
|
254
216
|
break;
|
|
255
|
-
case /*
|
|
256
|
-
message.
|
|
217
|
+
case /* string author */ 13:
|
|
218
|
+
message.author = reader.string();
|
|
257
219
|
break;
|
|
258
220
|
default:
|
|
259
221
|
let u = options.readUnknownField;
|
|
@@ -267,36 +229,45 @@ class LocalCatalogRecommendation$Type extends MessageType {
|
|
|
267
229
|
return message;
|
|
268
230
|
}
|
|
269
231
|
internalBinaryWrite(message, writer, options) {
|
|
270
|
-
/*
|
|
271
|
-
if (message.
|
|
272
|
-
writer.tag(1, WireType.
|
|
273
|
-
/*
|
|
274
|
-
if (message.
|
|
275
|
-
writer.tag(2, WireType.
|
|
276
|
-
/*
|
|
277
|
-
if (message.
|
|
278
|
-
writer.tag(3, WireType.
|
|
279
|
-
/*
|
|
280
|
-
if (message.
|
|
281
|
-
writer.tag(4, WireType.
|
|
282
|
-
/*
|
|
283
|
-
|
|
284
|
-
writer.tag(5, WireType.
|
|
285
|
-
/*
|
|
286
|
-
|
|
287
|
-
writer.tag(6, WireType.LengthDelimited).string(message.
|
|
288
|
-
/* string
|
|
289
|
-
if (message.
|
|
290
|
-
writer.tag(7, WireType.LengthDelimited).string(message.
|
|
291
|
-
/* repeated string
|
|
292
|
-
for (let i = 0; i < message.
|
|
293
|
-
writer.tag(8, WireType.LengthDelimited).string(message.
|
|
294
|
-
/*
|
|
295
|
-
|
|
296
|
-
writer.tag(
|
|
297
|
-
/*
|
|
298
|
-
if (message.
|
|
299
|
-
writer.tag(
|
|
232
|
+
/* string model_locator = 1; */
|
|
233
|
+
if (message.modelLocator !== "")
|
|
234
|
+
writer.tag(1, WireType.LengthDelimited).string(message.modelLocator);
|
|
235
|
+
/* string source_label = 2; */
|
|
236
|
+
if (message.sourceLabel !== "")
|
|
237
|
+
writer.tag(2, WireType.LengthDelimited).string(message.sourceLabel);
|
|
238
|
+
/* string title = 3; */
|
|
239
|
+
if (message.title !== "")
|
|
240
|
+
writer.tag(3, WireType.LengthDelimited).string(message.title);
|
|
241
|
+
/* string description = 4; */
|
|
242
|
+
if (message.description !== "")
|
|
243
|
+
writer.tag(4, WireType.LengthDelimited).string(message.description);
|
|
244
|
+
/* repeated string categories = 5; */
|
|
245
|
+
for (let i = 0; i < message.categories.length; i++)
|
|
246
|
+
writer.tag(5, WireType.LengthDelimited).string(message.categories[i]);
|
|
247
|
+
/* string model_type = 6; */
|
|
248
|
+
if (message.modelType !== "")
|
|
249
|
+
writer.tag(6, WireType.LengthDelimited).string(message.modelType);
|
|
250
|
+
/* string license = 7; */
|
|
251
|
+
if (message.license !== "")
|
|
252
|
+
writer.tag(7, WireType.LengthDelimited).string(message.license);
|
|
253
|
+
/* repeated string tags = 8; */
|
|
254
|
+
for (let i = 0; i < message.tags.length; i++)
|
|
255
|
+
writer.tag(8, WireType.LengthDelimited).string(message.tags[i]);
|
|
256
|
+
/* int64 downloads = 9; */
|
|
257
|
+
if (message.downloads !== "0")
|
|
258
|
+
writer.tag(9, WireType.Varint).int64(message.downloads);
|
|
259
|
+
/* int64 likes = 10; */
|
|
260
|
+
if (message.likes !== "0")
|
|
261
|
+
writer.tag(10, WireType.Varint).int64(message.likes);
|
|
262
|
+
/* string last_modified = 11; */
|
|
263
|
+
if (message.lastModified !== "")
|
|
264
|
+
writer.tag(11, WireType.LengthDelimited).string(message.lastModified);
|
|
265
|
+
/* bool verified = 12; */
|
|
266
|
+
if (message.verified !== false)
|
|
267
|
+
writer.tag(12, WireType.Varint).bool(message.verified);
|
|
268
|
+
/* string author = 13; */
|
|
269
|
+
if (message.author !== "")
|
|
270
|
+
writer.tag(13, WireType.LengthDelimited).string(message.author);
|
|
300
271
|
let u = options.writeUnknownFields;
|
|
301
272
|
if (u !== false)
|
|
302
273
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -304,29 +275,56 @@ class LocalCatalogRecommendation$Type extends MessageType {
|
|
|
304
275
|
}
|
|
305
276
|
}
|
|
306
277
|
/**
|
|
307
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
278
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.ModelAssetCatalogSearchResult
|
|
308
279
|
*/
|
|
309
|
-
export const
|
|
280
|
+
export const ModelAssetCatalogSearchResult = new ModelAssetCatalogSearchResult$Type();
|
|
310
281
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
311
|
-
class
|
|
282
|
+
class ModelAssetMarketCandidate$Type extends MessageType {
|
|
312
283
|
constructor() {
|
|
313
|
-
super("nimi.runtime.v1.
|
|
314
|
-
{ no: 1, name: "
|
|
315
|
-
{ no: 2, name: "
|
|
316
|
-
{ no: 3, name: "
|
|
317
|
-
{ no: 4, name: "
|
|
318
|
-
{ no: 5, name: "
|
|
319
|
-
{ no: 6, name: "
|
|
284
|
+
super("nimi.runtime.v1.ModelAssetMarketCandidate", [
|
|
285
|
+
{ no: 1, name: "offer_ref", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
286
|
+
{ no: 2, name: "source_label", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
287
|
+
{ no: 3, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
288
|
+
{ no: 4, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
289
|
+
{ no: 5, name: "categories", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
290
|
+
{ no: 6, name: "model_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
291
|
+
{ no: 7, name: "variant_label", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
292
|
+
{ no: 8, name: "format", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
293
|
+
{ no: 9, name: "total_size_bytes", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
|
|
294
|
+
{ no: 10, name: "license", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
295
|
+
{ no: 11, name: "tags", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
296
|
+
{ no: 12, name: "downloads", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
|
|
297
|
+
{ no: 13, name: "likes", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
|
|
298
|
+
{ no: 14, name: "last_modified", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
299
|
+
{ no: 15, name: "verified", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
300
|
+
{ no: 16, name: "installed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
301
|
+
{ no: 17, name: "installable", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
302
|
+
{ no: 18, name: "featured_ordinal", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
303
|
+
{ no: 19, name: "editorial_reason", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
304
|
+
{ no: 20, name: "author", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
320
305
|
]);
|
|
321
306
|
}
|
|
322
307
|
create(value) {
|
|
323
308
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
324
|
-
message.
|
|
325
|
-
message.
|
|
326
|
-
message.
|
|
327
|
-
message.
|
|
309
|
+
message.offerRef = "";
|
|
310
|
+
message.sourceLabel = "";
|
|
311
|
+
message.title = "";
|
|
312
|
+
message.description = "";
|
|
313
|
+
message.categories = [];
|
|
314
|
+
message.modelType = "";
|
|
315
|
+
message.variantLabel = "";
|
|
316
|
+
message.format = "";
|
|
328
317
|
message.totalSizeBytes = "0";
|
|
329
|
-
message.
|
|
318
|
+
message.license = "";
|
|
319
|
+
message.tags = [];
|
|
320
|
+
message.downloads = "0";
|
|
321
|
+
message.likes = "0";
|
|
322
|
+
message.lastModified = "";
|
|
323
|
+
message.verified = false;
|
|
324
|
+
message.installed = false;
|
|
325
|
+
message.installable = false;
|
|
326
|
+
message.editorialReason = "";
|
|
327
|
+
message.author = "";
|
|
330
328
|
if (value !== undefined)
|
|
331
329
|
reflectionMergePartial(this, message, value);
|
|
332
330
|
return message;
|
|
@@ -336,23 +334,65 @@ class LocalRecommendationFeedEntryDescriptor$Type extends MessageType {
|
|
|
336
334
|
while (reader.pos < end) {
|
|
337
335
|
let [fieldNo, wireType] = reader.tag();
|
|
338
336
|
switch (fieldNo) {
|
|
339
|
-
case /* string
|
|
340
|
-
message.
|
|
337
|
+
case /* string offer_ref */ 1:
|
|
338
|
+
message.offerRef = reader.string();
|
|
339
|
+
break;
|
|
340
|
+
case /* string source_label */ 2:
|
|
341
|
+
message.sourceLabel = reader.string();
|
|
342
|
+
break;
|
|
343
|
+
case /* string title */ 3:
|
|
344
|
+
message.title = reader.string();
|
|
345
|
+
break;
|
|
346
|
+
case /* string description */ 4:
|
|
347
|
+
message.description = reader.string();
|
|
348
|
+
break;
|
|
349
|
+
case /* repeated string categories */ 5:
|
|
350
|
+
message.categories.push(reader.string());
|
|
341
351
|
break;
|
|
342
|
-
case /*
|
|
343
|
-
message.
|
|
352
|
+
case /* string model_type */ 6:
|
|
353
|
+
message.modelType = reader.string();
|
|
344
354
|
break;
|
|
345
|
-
case /* string
|
|
346
|
-
message.
|
|
355
|
+
case /* string variant_label */ 7:
|
|
356
|
+
message.variantLabel = reader.string();
|
|
347
357
|
break;
|
|
348
|
-
case /*
|
|
349
|
-
message.
|
|
358
|
+
case /* string format */ 8:
|
|
359
|
+
message.format = reader.string();
|
|
350
360
|
break;
|
|
351
|
-
case /* int64 total_size_bytes */
|
|
361
|
+
case /* int64 total_size_bytes */ 9:
|
|
352
362
|
message.totalSizeBytes = reader.int64().toString();
|
|
353
363
|
break;
|
|
354
|
-
case /* string
|
|
355
|
-
message.
|
|
364
|
+
case /* string license */ 10:
|
|
365
|
+
message.license = reader.string();
|
|
366
|
+
break;
|
|
367
|
+
case /* repeated string tags */ 11:
|
|
368
|
+
message.tags.push(reader.string());
|
|
369
|
+
break;
|
|
370
|
+
case /* int64 downloads */ 12:
|
|
371
|
+
message.downloads = reader.int64().toString();
|
|
372
|
+
break;
|
|
373
|
+
case /* int64 likes */ 13:
|
|
374
|
+
message.likes = reader.int64().toString();
|
|
375
|
+
break;
|
|
376
|
+
case /* string last_modified */ 14:
|
|
377
|
+
message.lastModified = reader.string();
|
|
378
|
+
break;
|
|
379
|
+
case /* bool verified */ 15:
|
|
380
|
+
message.verified = reader.bool();
|
|
381
|
+
break;
|
|
382
|
+
case /* bool installed */ 16:
|
|
383
|
+
message.installed = reader.bool();
|
|
384
|
+
break;
|
|
385
|
+
case /* bool installable */ 17:
|
|
386
|
+
message.installable = reader.bool();
|
|
387
|
+
break;
|
|
388
|
+
case /* optional int32 featured_ordinal */ 18:
|
|
389
|
+
message.featuredOrdinal = reader.int32();
|
|
390
|
+
break;
|
|
391
|
+
case /* string editorial_reason */ 19:
|
|
392
|
+
message.editorialReason = reader.string();
|
|
393
|
+
break;
|
|
394
|
+
case /* string author */ 20:
|
|
395
|
+
message.author = reader.string();
|
|
356
396
|
break;
|
|
357
397
|
default:
|
|
358
398
|
let u = options.readUnknownField;
|
|
@@ -366,24 +406,66 @@ class LocalRecommendationFeedEntryDescriptor$Type extends MessageType {
|
|
|
366
406
|
return message;
|
|
367
407
|
}
|
|
368
408
|
internalBinaryWrite(message, writer, options) {
|
|
369
|
-
/* string
|
|
370
|
-
if (message.
|
|
371
|
-
writer.tag(1, WireType.LengthDelimited).string(message.
|
|
372
|
-
/*
|
|
373
|
-
if (message.
|
|
374
|
-
writer.tag(2, WireType.
|
|
375
|
-
/* string
|
|
376
|
-
if (message.
|
|
377
|
-
writer.tag(3, WireType.LengthDelimited).string(message.
|
|
378
|
-
/*
|
|
379
|
-
|
|
380
|
-
writer.tag(4, WireType.LengthDelimited).string(message.
|
|
381
|
-
/*
|
|
409
|
+
/* string offer_ref = 1; */
|
|
410
|
+
if (message.offerRef !== "")
|
|
411
|
+
writer.tag(1, WireType.LengthDelimited).string(message.offerRef);
|
|
412
|
+
/* string source_label = 2; */
|
|
413
|
+
if (message.sourceLabel !== "")
|
|
414
|
+
writer.tag(2, WireType.LengthDelimited).string(message.sourceLabel);
|
|
415
|
+
/* string title = 3; */
|
|
416
|
+
if (message.title !== "")
|
|
417
|
+
writer.tag(3, WireType.LengthDelimited).string(message.title);
|
|
418
|
+
/* string description = 4; */
|
|
419
|
+
if (message.description !== "")
|
|
420
|
+
writer.tag(4, WireType.LengthDelimited).string(message.description);
|
|
421
|
+
/* repeated string categories = 5; */
|
|
422
|
+
for (let i = 0; i < message.categories.length; i++)
|
|
423
|
+
writer.tag(5, WireType.LengthDelimited).string(message.categories[i]);
|
|
424
|
+
/* string model_type = 6; */
|
|
425
|
+
if (message.modelType !== "")
|
|
426
|
+
writer.tag(6, WireType.LengthDelimited).string(message.modelType);
|
|
427
|
+
/* string variant_label = 7; */
|
|
428
|
+
if (message.variantLabel !== "")
|
|
429
|
+
writer.tag(7, WireType.LengthDelimited).string(message.variantLabel);
|
|
430
|
+
/* string format = 8; */
|
|
431
|
+
if (message.format !== "")
|
|
432
|
+
writer.tag(8, WireType.LengthDelimited).string(message.format);
|
|
433
|
+
/* int64 total_size_bytes = 9; */
|
|
382
434
|
if (message.totalSizeBytes !== "0")
|
|
383
|
-
writer.tag(
|
|
384
|
-
/* string
|
|
385
|
-
if (message.
|
|
386
|
-
writer.tag(
|
|
435
|
+
writer.tag(9, WireType.Varint).int64(message.totalSizeBytes);
|
|
436
|
+
/* string license = 10; */
|
|
437
|
+
if (message.license !== "")
|
|
438
|
+
writer.tag(10, WireType.LengthDelimited).string(message.license);
|
|
439
|
+
/* repeated string tags = 11; */
|
|
440
|
+
for (let i = 0; i < message.tags.length; i++)
|
|
441
|
+
writer.tag(11, WireType.LengthDelimited).string(message.tags[i]);
|
|
442
|
+
/* int64 downloads = 12; */
|
|
443
|
+
if (message.downloads !== "0")
|
|
444
|
+
writer.tag(12, WireType.Varint).int64(message.downloads);
|
|
445
|
+
/* int64 likes = 13; */
|
|
446
|
+
if (message.likes !== "0")
|
|
447
|
+
writer.tag(13, WireType.Varint).int64(message.likes);
|
|
448
|
+
/* string last_modified = 14; */
|
|
449
|
+
if (message.lastModified !== "")
|
|
450
|
+
writer.tag(14, WireType.LengthDelimited).string(message.lastModified);
|
|
451
|
+
/* bool verified = 15; */
|
|
452
|
+
if (message.verified !== false)
|
|
453
|
+
writer.tag(15, WireType.Varint).bool(message.verified);
|
|
454
|
+
/* bool installed = 16; */
|
|
455
|
+
if (message.installed !== false)
|
|
456
|
+
writer.tag(16, WireType.Varint).bool(message.installed);
|
|
457
|
+
/* bool installable = 17; */
|
|
458
|
+
if (message.installable !== false)
|
|
459
|
+
writer.tag(17, WireType.Varint).bool(message.installable);
|
|
460
|
+
/* optional int32 featured_ordinal = 18; */
|
|
461
|
+
if (message.featuredOrdinal !== undefined)
|
|
462
|
+
writer.tag(18, WireType.Varint).int32(message.featuredOrdinal);
|
|
463
|
+
/* string editorial_reason = 19; */
|
|
464
|
+
if (message.editorialReason !== "")
|
|
465
|
+
writer.tag(19, WireType.LengthDelimited).string(message.editorialReason);
|
|
466
|
+
/* string author = 20; */
|
|
467
|
+
if (message.author !== "")
|
|
468
|
+
writer.tag(20, WireType.LengthDelimited).string(message.author);
|
|
387
469
|
let u = options.writeUnknownFields;
|
|
388
470
|
if (u !== false)
|
|
389
471
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -391,19 +473,21 @@ class LocalRecommendationFeedEntryDescriptor$Type extends MessageType {
|
|
|
391
473
|
}
|
|
392
474
|
}
|
|
393
475
|
/**
|
|
394
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
476
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.ModelAssetMarketCandidate
|
|
395
477
|
*/
|
|
396
|
-
export const
|
|
478
|
+
export const ModelAssetMarketCandidate = new ModelAssetMarketCandidate$Type();
|
|
397
479
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
398
|
-
class
|
|
480
|
+
class ListFeaturedModelAssetsRequest$Type extends MessageType {
|
|
399
481
|
constructor() {
|
|
400
|
-
super("nimi.runtime.v1.
|
|
401
|
-
{ no: 1, name: "
|
|
482
|
+
super("nimi.runtime.v1.ListFeaturedModelAssetsRequest", [
|
|
483
|
+
{ no: 1, name: "category", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
484
|
+
{ no: 2, name: "page_size", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
402
485
|
]);
|
|
403
486
|
}
|
|
404
487
|
create(value) {
|
|
405
488
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
406
|
-
message.
|
|
489
|
+
message.category = "";
|
|
490
|
+
message.pageSize = 0;
|
|
407
491
|
if (value !== undefined)
|
|
408
492
|
reflectionMergePartial(this, message, value);
|
|
409
493
|
return message;
|
|
@@ -413,8 +497,11 @@ class LocalRecommendationInstalledState$Type extends MessageType {
|
|
|
413
497
|
while (reader.pos < end) {
|
|
414
498
|
let [fieldNo, wireType] = reader.tag();
|
|
415
499
|
switch (fieldNo) {
|
|
416
|
-
case /*
|
|
417
|
-
message.
|
|
500
|
+
case /* string category */ 1:
|
|
501
|
+
message.category = reader.string();
|
|
502
|
+
break;
|
|
503
|
+
case /* int32 page_size */ 2:
|
|
504
|
+
message.pageSize = reader.int32();
|
|
418
505
|
break;
|
|
419
506
|
default:
|
|
420
507
|
let u = options.readUnknownField;
|
|
@@ -428,9 +515,12 @@ class LocalRecommendationInstalledState$Type extends MessageType {
|
|
|
428
515
|
return message;
|
|
429
516
|
}
|
|
430
517
|
internalBinaryWrite(message, writer, options) {
|
|
431
|
-
/*
|
|
432
|
-
if (message.
|
|
433
|
-
writer.tag(1, WireType.
|
|
518
|
+
/* string category = 1; */
|
|
519
|
+
if (message.category !== "")
|
|
520
|
+
writer.tag(1, WireType.LengthDelimited).string(message.category);
|
|
521
|
+
/* int32 page_size = 2; */
|
|
522
|
+
if (message.pageSize !== 0)
|
|
523
|
+
writer.tag(2, WireType.Varint).int32(message.pageSize);
|
|
434
524
|
let u = options.writeUnknownFields;
|
|
435
525
|
if (u !== false)
|
|
436
526
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -438,23 +528,20 @@ class LocalRecommendationInstalledState$Type extends MessageType {
|
|
|
438
528
|
}
|
|
439
529
|
}
|
|
440
530
|
/**
|
|
441
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
531
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.ListFeaturedModelAssetsRequest
|
|
442
532
|
*/
|
|
443
|
-
export const
|
|
533
|
+
export const ListFeaturedModelAssetsRequest = new ListFeaturedModelAssetsRequest$Type();
|
|
444
534
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
445
|
-
class
|
|
535
|
+
class ListFeaturedModelAssetsResponse$Type extends MessageType {
|
|
446
536
|
constructor() {
|
|
447
|
-
super("nimi.runtime.v1.
|
|
448
|
-
{ no: 1, name: "
|
|
449
|
-
{ no: 2, name: "
|
|
450
|
-
{ no: 3, name: "can_open_model_asset", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
537
|
+
super("nimi.runtime.v1.ListFeaturedModelAssetsResponse", [
|
|
538
|
+
{ no: 1, name: "source", kind: "message", T: () => ModelAssetFeaturedSourceObservation },
|
|
539
|
+
{ no: 2, name: "items", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ModelAssetMarketCandidate }
|
|
451
540
|
]);
|
|
452
541
|
}
|
|
453
542
|
create(value) {
|
|
454
543
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
455
|
-
message.
|
|
456
|
-
message.canOpenVariants = false;
|
|
457
|
-
message.canOpenModelAsset = false;
|
|
544
|
+
message.items = [];
|
|
458
545
|
if (value !== undefined)
|
|
459
546
|
reflectionMergePartial(this, message, value);
|
|
460
547
|
return message;
|
|
@@ -464,14 +551,11 @@ class LocalRecommendationActionState$Type extends MessageType {
|
|
|
464
551
|
while (reader.pos < end) {
|
|
465
552
|
let [fieldNo, wireType] = reader.tag();
|
|
466
553
|
switch (fieldNo) {
|
|
467
|
-
case /*
|
|
468
|
-
message.
|
|
554
|
+
case /* nimi.runtime.v1.ModelAssetFeaturedSourceObservation source */ 1:
|
|
555
|
+
message.source = ModelAssetFeaturedSourceObservation.internalBinaryRead(reader, reader.uint32(), options, message.source);
|
|
469
556
|
break;
|
|
470
|
-
case /*
|
|
471
|
-
message.
|
|
472
|
-
break;
|
|
473
|
-
case /* bool can_open_model_asset */ 3:
|
|
474
|
-
message.canOpenModelAsset = reader.bool();
|
|
557
|
+
case /* repeated nimi.runtime.v1.ModelAssetMarketCandidate items */ 2:
|
|
558
|
+
message.items.push(ModelAssetMarketCandidate.internalBinaryRead(reader, reader.uint32(), options));
|
|
475
559
|
break;
|
|
476
560
|
default:
|
|
477
561
|
let u = options.readUnknownField;
|
|
@@ -485,15 +569,12 @@ class LocalRecommendationActionState$Type extends MessageType {
|
|
|
485
569
|
return message;
|
|
486
570
|
}
|
|
487
571
|
internalBinaryWrite(message, writer, options) {
|
|
488
|
-
/*
|
|
489
|
-
if (message.
|
|
490
|
-
writer.tag(1, WireType.
|
|
491
|
-
/*
|
|
492
|
-
|
|
493
|
-
writer.tag(2, WireType.
|
|
494
|
-
/* bool can_open_model_asset = 3; */
|
|
495
|
-
if (message.canOpenModelAsset !== false)
|
|
496
|
-
writer.tag(3, WireType.Varint).bool(message.canOpenModelAsset);
|
|
572
|
+
/* nimi.runtime.v1.ModelAssetFeaturedSourceObservation source = 1; */
|
|
573
|
+
if (message.source)
|
|
574
|
+
ModelAssetFeaturedSourceObservation.internalBinaryWrite(message.source, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
575
|
+
/* repeated nimi.runtime.v1.ModelAssetMarketCandidate items = 2; */
|
|
576
|
+
for (let i = 0; i < message.items.length; i++)
|
|
577
|
+
ModelAssetMarketCandidate.internalBinaryWrite(message.items[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
497
578
|
let u = options.writeUnknownFields;
|
|
498
579
|
if (u !== false)
|
|
499
580
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -501,40 +582,23 @@ class LocalRecommendationActionState$Type extends MessageType {
|
|
|
501
582
|
}
|
|
502
583
|
}
|
|
503
584
|
/**
|
|
504
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
585
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.ListFeaturedModelAssetsResponse
|
|
505
586
|
*/
|
|
506
|
-
export const
|
|
587
|
+
export const ListFeaturedModelAssetsResponse = new ListFeaturedModelAssetsResponse$Type();
|
|
507
588
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
508
|
-
class
|
|
589
|
+
class FactoryProfileCapabilityApplicability$Type extends MessageType {
|
|
509
590
|
constructor() {
|
|
510
|
-
super("nimi.runtime.v1.
|
|
511
|
-
{ no: 1, name: "
|
|
512
|
-
{ no: 2, name: "
|
|
513
|
-
{ no: 3, name: "
|
|
514
|
-
{ no: 4, name: "revision", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
515
|
-
{ no: 5, name: "capabilities", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
516
|
-
{ no: 6, name: "engine", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
517
|
-
{ no: 7, name: "entry", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
518
|
-
{ no: 8, name: "files", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
519
|
-
{ no: 9, name: "license", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
520
|
-
{ no: 10, name: "hashes", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } },
|
|
521
|
-
{ no: 11, name: "endpoint", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
522
|
-
{ no: 12, name: "engine_config", kind: "message", T: () => Struct }
|
|
591
|
+
super("nimi.runtime.v1.FactoryProfileCapabilityApplicability", [
|
|
592
|
+
{ no: 1, name: "capability_contract", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
593
|
+
{ no: 2, name: "applicability", kind: "enum", T: () => ["nimi.runtime.v1.LocalRecommendationApplicability", LocalRecommendationApplicability, "LOCAL_RECOMMENDATION_APPLICABILITY_"] },
|
|
594
|
+
{ no: 3, name: "reasons", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["nimi.runtime.v1.ReasonCode", ReasonCode] }
|
|
523
595
|
]);
|
|
524
596
|
}
|
|
525
597
|
create(value) {
|
|
526
598
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
527
|
-
message.
|
|
528
|
-
message.
|
|
529
|
-
message.
|
|
530
|
-
message.revision = "";
|
|
531
|
-
message.capabilities = [];
|
|
532
|
-
message.engine = "";
|
|
533
|
-
message.entry = "";
|
|
534
|
-
message.files = [];
|
|
535
|
-
message.license = "";
|
|
536
|
-
message.hashes = {};
|
|
537
|
-
message.endpoint = "";
|
|
599
|
+
message.capabilityContract = "";
|
|
600
|
+
message.applicability = 0;
|
|
601
|
+
message.reasons = [];
|
|
538
602
|
if (value !== undefined)
|
|
539
603
|
reflectionMergePartial(this, message, value);
|
|
540
604
|
return message;
|
|
@@ -544,41 +608,18 @@ class LocalRecommendationInstallPayload$Type extends MessageType {
|
|
|
544
608
|
while (reader.pos < end) {
|
|
545
609
|
let [fieldNo, wireType] = reader.tag();
|
|
546
610
|
switch (fieldNo) {
|
|
547
|
-
case /* string
|
|
548
|
-
message.
|
|
611
|
+
case /* string capability_contract */ 1:
|
|
612
|
+
message.capabilityContract = reader.string();
|
|
549
613
|
break;
|
|
550
|
-
case /* nimi.runtime.v1.
|
|
551
|
-
message.
|
|
614
|
+
case /* nimi.runtime.v1.LocalRecommendationApplicability applicability */ 2:
|
|
615
|
+
message.applicability = reader.int32();
|
|
552
616
|
break;
|
|
553
|
-
case /*
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
case /* repeated string capabilities */ 5:
|
|
560
|
-
message.capabilities.push(reader.string());
|
|
561
|
-
break;
|
|
562
|
-
case /* string engine */ 6:
|
|
563
|
-
message.engine = reader.string();
|
|
564
|
-
break;
|
|
565
|
-
case /* string entry */ 7:
|
|
566
|
-
message.entry = reader.string();
|
|
567
|
-
break;
|
|
568
|
-
case /* repeated string files */ 8:
|
|
569
|
-
message.files.push(reader.string());
|
|
570
|
-
break;
|
|
571
|
-
case /* string license */ 9:
|
|
572
|
-
message.license = reader.string();
|
|
573
|
-
break;
|
|
574
|
-
case /* map<string, string> hashes */ 10:
|
|
575
|
-
this.binaryReadMap10(message.hashes, reader, options);
|
|
576
|
-
break;
|
|
577
|
-
case /* string endpoint */ 11:
|
|
578
|
-
message.endpoint = reader.string();
|
|
579
|
-
break;
|
|
580
|
-
case /* google.protobuf.Struct engine_config */ 12:
|
|
581
|
-
message.engineConfig = Struct.internalBinaryRead(reader, reader.uint32(), options, message.engineConfig);
|
|
617
|
+
case /* repeated nimi.runtime.v1.ReasonCode reasons */ 3:
|
|
618
|
+
if (wireType === WireType.LengthDelimited)
|
|
619
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
620
|
+
message.reasons.push(reader.int32());
|
|
621
|
+
else
|
|
622
|
+
message.reasons.push(reader.int32());
|
|
582
623
|
break;
|
|
583
624
|
default:
|
|
584
625
|
let u = options.readUnknownField;
|
|
@@ -591,59 +632,75 @@ class LocalRecommendationInstallPayload$Type extends MessageType {
|
|
|
591
632
|
}
|
|
592
633
|
return message;
|
|
593
634
|
}
|
|
594
|
-
|
|
595
|
-
|
|
635
|
+
internalBinaryWrite(message, writer, options) {
|
|
636
|
+
/* string capability_contract = 1; */
|
|
637
|
+
if (message.capabilityContract !== "")
|
|
638
|
+
writer.tag(1, WireType.LengthDelimited).string(message.capabilityContract);
|
|
639
|
+
/* nimi.runtime.v1.LocalRecommendationApplicability applicability = 2; */
|
|
640
|
+
if (message.applicability !== 0)
|
|
641
|
+
writer.tag(2, WireType.Varint).int32(message.applicability);
|
|
642
|
+
/* repeated nimi.runtime.v1.ReasonCode reasons = 3; */
|
|
643
|
+
if (message.reasons.length) {
|
|
644
|
+
writer.tag(3, WireType.LengthDelimited).fork();
|
|
645
|
+
for (let i = 0; i < message.reasons.length; i++)
|
|
646
|
+
writer.int32(message.reasons[i]);
|
|
647
|
+
writer.join();
|
|
648
|
+
}
|
|
649
|
+
let u = options.writeUnknownFields;
|
|
650
|
+
if (u !== false)
|
|
651
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
652
|
+
return writer;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.FactoryProfileCapabilityApplicability
|
|
657
|
+
*/
|
|
658
|
+
export const FactoryProfileCapabilityApplicability = new FactoryProfileCapabilityApplicability$Type();
|
|
659
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
660
|
+
class FactoryProfileRecommendation$Type extends MessageType {
|
|
661
|
+
constructor() {
|
|
662
|
+
super("nimi.runtime.v1.FactoryProfileRecommendation", [
|
|
663
|
+
{ no: 1, name: "profile_alias", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
664
|
+
{ no: 2, name: "capabilities", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FactoryProfileCapabilityApplicability }
|
|
665
|
+
]);
|
|
666
|
+
}
|
|
667
|
+
create(value) {
|
|
668
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
669
|
+
message.profileAlias = "";
|
|
670
|
+
message.capabilities = [];
|
|
671
|
+
if (value !== undefined)
|
|
672
|
+
reflectionMergePartial(this, message, value);
|
|
673
|
+
return message;
|
|
674
|
+
}
|
|
675
|
+
internalBinaryRead(reader, length, options, target) {
|
|
676
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
596
677
|
while (reader.pos < end) {
|
|
597
678
|
let [fieldNo, wireType] = reader.tag();
|
|
598
679
|
switch (fieldNo) {
|
|
599
|
-
case 1:
|
|
600
|
-
|
|
680
|
+
case /* string profile_alias */ 1:
|
|
681
|
+
message.profileAlias = reader.string();
|
|
601
682
|
break;
|
|
602
|
-
case 2:
|
|
603
|
-
|
|
683
|
+
case /* repeated nimi.runtime.v1.FactoryProfileCapabilityApplicability capabilities */ 2:
|
|
684
|
+
message.capabilities.push(FactoryProfileCapabilityApplicability.internalBinaryRead(reader, reader.uint32(), options));
|
|
604
685
|
break;
|
|
605
|
-
default:
|
|
686
|
+
default:
|
|
687
|
+
let u = options.readUnknownField;
|
|
688
|
+
if (u === "throw")
|
|
689
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
690
|
+
let d = reader.skip(wireType);
|
|
691
|
+
if (u !== false)
|
|
692
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
606
693
|
}
|
|
607
694
|
}
|
|
608
|
-
|
|
695
|
+
return message;
|
|
609
696
|
}
|
|
610
697
|
internalBinaryWrite(message, writer, options) {
|
|
611
|
-
/* string
|
|
612
|
-
if (message.
|
|
613
|
-
writer.tag(1, WireType.LengthDelimited).string(message.
|
|
614
|
-
/* nimi.runtime.v1.
|
|
615
|
-
if (message.kind !== 0)
|
|
616
|
-
writer.tag(2, WireType.Varint).int32(message.kind);
|
|
617
|
-
/* string repo = 3; */
|
|
618
|
-
if (message.repo !== "")
|
|
619
|
-
writer.tag(3, WireType.LengthDelimited).string(message.repo);
|
|
620
|
-
/* string revision = 4; */
|
|
621
|
-
if (message.revision !== "")
|
|
622
|
-
writer.tag(4, WireType.LengthDelimited).string(message.revision);
|
|
623
|
-
/* repeated string capabilities = 5; */
|
|
698
|
+
/* string profile_alias = 1; */
|
|
699
|
+
if (message.profileAlias !== "")
|
|
700
|
+
writer.tag(1, WireType.LengthDelimited).string(message.profileAlias);
|
|
701
|
+
/* repeated nimi.runtime.v1.FactoryProfileCapabilityApplicability capabilities = 2; */
|
|
624
702
|
for (let i = 0; i < message.capabilities.length; i++)
|
|
625
|
-
writer.tag(
|
|
626
|
-
/* string engine = 6; */
|
|
627
|
-
if (message.engine !== "")
|
|
628
|
-
writer.tag(6, WireType.LengthDelimited).string(message.engine);
|
|
629
|
-
/* string entry = 7; */
|
|
630
|
-
if (message.entry !== "")
|
|
631
|
-
writer.tag(7, WireType.LengthDelimited).string(message.entry);
|
|
632
|
-
/* repeated string files = 8; */
|
|
633
|
-
for (let i = 0; i < message.files.length; i++)
|
|
634
|
-
writer.tag(8, WireType.LengthDelimited).string(message.files[i]);
|
|
635
|
-
/* string license = 9; */
|
|
636
|
-
if (message.license !== "")
|
|
637
|
-
writer.tag(9, WireType.LengthDelimited).string(message.license);
|
|
638
|
-
/* map<string, string> hashes = 10; */
|
|
639
|
-
for (let k of globalThis.Object.keys(message.hashes))
|
|
640
|
-
writer.tag(10, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.hashes[k]).join();
|
|
641
|
-
/* string endpoint = 11; */
|
|
642
|
-
if (message.endpoint !== "")
|
|
643
|
-
writer.tag(11, WireType.LengthDelimited).string(message.endpoint);
|
|
644
|
-
/* google.protobuf.Struct engine_config = 12; */
|
|
645
|
-
if (message.engineConfig)
|
|
646
|
-
Struct.internalBinaryWrite(message.engineConfig, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
703
|
+
FactoryProfileCapabilityApplicability.internalBinaryWrite(message.capabilities[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
647
704
|
let u = options.writeUnknownFields;
|
|
648
705
|
if (u !== false)
|
|
649
706
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -651,51 +708,19 @@ class LocalRecommendationInstallPayload$Type extends MessageType {
|
|
|
651
708
|
}
|
|
652
709
|
}
|
|
653
710
|
/**
|
|
654
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
711
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.FactoryProfileRecommendation
|
|
655
712
|
*/
|
|
656
|
-
export const
|
|
713
|
+
export const FactoryProfileRecommendation = new FactoryProfileRecommendation$Type();
|
|
657
714
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
658
|
-
class
|
|
715
|
+
class ListFactoryProfileRecommendationsRequest$Type extends MessageType {
|
|
659
716
|
constructor() {
|
|
660
|
-
super("nimi.runtime.v1.
|
|
661
|
-
{ no: 1, name: "
|
|
662
|
-
{ no: 2, name: "source", kind: "enum", T: () => ["nimi.runtime.v1.LocalRecommendationFeedSource", LocalRecommendationFeedSource, "LOCAL_RECOMMENDATION_FEED_SOURCE_"] },
|
|
663
|
-
{ no: 3, name: "repo", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
664
|
-
{ no: 4, name: "revision", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
665
|
-
{ no: 5, name: "title", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
666
|
-
{ no: 6, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
667
|
-
{ no: 7, name: "capabilities", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
668
|
-
{ no: 8, name: "tags", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
669
|
-
{ no: 9, name: "formats", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["nimi.runtime.v1.LocalRecommendationFormat", LocalRecommendationFormat, "LOCAL_RECOMMENDATION_FORMAT_"] },
|
|
670
|
-
{ no: 10, name: "downloads", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
|
|
671
|
-
{ no: 11, name: "likes", kind: "scalar", T: 3 /*ScalarType.INT64*/ },
|
|
672
|
-
{ no: 12, name: "last_modified", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
673
|
-
{ no: 13, name: "preferred_engine", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
674
|
-
{ no: 14, name: "verified", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
675
|
-
{ no: 15, name: "entries", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalRecommendationFeedEntryDescriptor },
|
|
676
|
-
{ no: 16, name: "recommendation", kind: "message", T: () => LocalCatalogRecommendation },
|
|
677
|
-
{ no: 17, name: "installed_state", kind: "message", T: () => LocalRecommendationInstalledState },
|
|
678
|
-
{ no: 18, name: "action_state", kind: "message", T: () => LocalRecommendationActionState },
|
|
679
|
-
{ no: 19, name: "install_payload", kind: "message", T: () => LocalRecommendationInstallPayload }
|
|
717
|
+
super("nimi.runtime.v1.ListFactoryProfileRecommendationsRequest", [
|
|
718
|
+
{ no: 1, name: "capability_contract", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
680
719
|
]);
|
|
681
720
|
}
|
|
682
721
|
create(value) {
|
|
683
722
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
684
|
-
message.
|
|
685
|
-
message.source = 0;
|
|
686
|
-
message.repo = "";
|
|
687
|
-
message.revision = "";
|
|
688
|
-
message.title = "";
|
|
689
|
-
message.description = "";
|
|
690
|
-
message.capabilities = [];
|
|
691
|
-
message.tags = [];
|
|
692
|
-
message.formats = [];
|
|
693
|
-
message.downloads = "0";
|
|
694
|
-
message.likes = "0";
|
|
695
|
-
message.lastModified = "";
|
|
696
|
-
message.preferredEngine = "";
|
|
697
|
-
message.verified = false;
|
|
698
|
-
message.entries = [];
|
|
723
|
+
message.capabilityContract = "";
|
|
699
724
|
if (value !== undefined)
|
|
700
725
|
reflectionMergePartial(this, message, value);
|
|
701
726
|
return message;
|
|
@@ -705,66 +730,8 @@ class LocalRecommendationFeedItemDescriptor$Type extends MessageType {
|
|
|
705
730
|
while (reader.pos < end) {
|
|
706
731
|
let [fieldNo, wireType] = reader.tag();
|
|
707
732
|
switch (fieldNo) {
|
|
708
|
-
case /* string
|
|
709
|
-
message.
|
|
710
|
-
break;
|
|
711
|
-
case /* nimi.runtime.v1.LocalRecommendationFeedSource source */ 2:
|
|
712
|
-
message.source = reader.int32();
|
|
713
|
-
break;
|
|
714
|
-
case /* string repo */ 3:
|
|
715
|
-
message.repo = reader.string();
|
|
716
|
-
break;
|
|
717
|
-
case /* string revision */ 4:
|
|
718
|
-
message.revision = reader.string();
|
|
719
|
-
break;
|
|
720
|
-
case /* string title */ 5:
|
|
721
|
-
message.title = reader.string();
|
|
722
|
-
break;
|
|
723
|
-
case /* string description */ 6:
|
|
724
|
-
message.description = reader.string();
|
|
725
|
-
break;
|
|
726
|
-
case /* repeated string capabilities */ 7:
|
|
727
|
-
message.capabilities.push(reader.string());
|
|
728
|
-
break;
|
|
729
|
-
case /* repeated string tags */ 8:
|
|
730
|
-
message.tags.push(reader.string());
|
|
731
|
-
break;
|
|
732
|
-
case /* repeated nimi.runtime.v1.LocalRecommendationFormat formats */ 9:
|
|
733
|
-
if (wireType === WireType.LengthDelimited)
|
|
734
|
-
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
735
|
-
message.formats.push(reader.int32());
|
|
736
|
-
else
|
|
737
|
-
message.formats.push(reader.int32());
|
|
738
|
-
break;
|
|
739
|
-
case /* int64 downloads */ 10:
|
|
740
|
-
message.downloads = reader.int64().toString();
|
|
741
|
-
break;
|
|
742
|
-
case /* int64 likes */ 11:
|
|
743
|
-
message.likes = reader.int64().toString();
|
|
744
|
-
break;
|
|
745
|
-
case /* string last_modified */ 12:
|
|
746
|
-
message.lastModified = reader.string();
|
|
747
|
-
break;
|
|
748
|
-
case /* string preferred_engine */ 13:
|
|
749
|
-
message.preferredEngine = reader.string();
|
|
750
|
-
break;
|
|
751
|
-
case /* bool verified */ 14:
|
|
752
|
-
message.verified = reader.bool();
|
|
753
|
-
break;
|
|
754
|
-
case /* repeated nimi.runtime.v1.LocalRecommendationFeedEntryDescriptor entries */ 15:
|
|
755
|
-
message.entries.push(LocalRecommendationFeedEntryDescriptor.internalBinaryRead(reader, reader.uint32(), options));
|
|
756
|
-
break;
|
|
757
|
-
case /* nimi.runtime.v1.LocalCatalogRecommendation recommendation */ 16:
|
|
758
|
-
message.recommendation = LocalCatalogRecommendation.internalBinaryRead(reader, reader.uint32(), options, message.recommendation);
|
|
759
|
-
break;
|
|
760
|
-
case /* nimi.runtime.v1.LocalRecommendationInstalledState installed_state */ 17:
|
|
761
|
-
message.installedState = LocalRecommendationInstalledState.internalBinaryRead(reader, reader.uint32(), options, message.installedState);
|
|
762
|
-
break;
|
|
763
|
-
case /* nimi.runtime.v1.LocalRecommendationActionState action_state */ 18:
|
|
764
|
-
message.actionState = LocalRecommendationActionState.internalBinaryRead(reader, reader.uint32(), options, message.actionState);
|
|
765
|
-
break;
|
|
766
|
-
case /* nimi.runtime.v1.LocalRecommendationInstallPayload install_payload */ 19:
|
|
767
|
-
message.installPayload = LocalRecommendationInstallPayload.internalBinaryRead(reader, reader.uint32(), options, message.installPayload);
|
|
733
|
+
case /* string capability_contract */ 1:
|
|
734
|
+
message.capabilityContract = reader.string();
|
|
768
735
|
break;
|
|
769
736
|
default:
|
|
770
737
|
let u = options.readUnknownField;
|
|
@@ -778,67 +745,9 @@ class LocalRecommendationFeedItemDescriptor$Type extends MessageType {
|
|
|
778
745
|
return message;
|
|
779
746
|
}
|
|
780
747
|
internalBinaryWrite(message, writer, options) {
|
|
781
|
-
/* string
|
|
782
|
-
if (message.
|
|
783
|
-
writer.tag(1, WireType.LengthDelimited).string(message.
|
|
784
|
-
/* nimi.runtime.v1.LocalRecommendationFeedSource source = 2; */
|
|
785
|
-
if (message.source !== 0)
|
|
786
|
-
writer.tag(2, WireType.Varint).int32(message.source);
|
|
787
|
-
/* string repo = 3; */
|
|
788
|
-
if (message.repo !== "")
|
|
789
|
-
writer.tag(3, WireType.LengthDelimited).string(message.repo);
|
|
790
|
-
/* string revision = 4; */
|
|
791
|
-
if (message.revision !== "")
|
|
792
|
-
writer.tag(4, WireType.LengthDelimited).string(message.revision);
|
|
793
|
-
/* string title = 5; */
|
|
794
|
-
if (message.title !== "")
|
|
795
|
-
writer.tag(5, WireType.LengthDelimited).string(message.title);
|
|
796
|
-
/* string description = 6; */
|
|
797
|
-
if (message.description !== "")
|
|
798
|
-
writer.tag(6, WireType.LengthDelimited).string(message.description);
|
|
799
|
-
/* repeated string capabilities = 7; */
|
|
800
|
-
for (let i = 0; i < message.capabilities.length; i++)
|
|
801
|
-
writer.tag(7, WireType.LengthDelimited).string(message.capabilities[i]);
|
|
802
|
-
/* repeated string tags = 8; */
|
|
803
|
-
for (let i = 0; i < message.tags.length; i++)
|
|
804
|
-
writer.tag(8, WireType.LengthDelimited).string(message.tags[i]);
|
|
805
|
-
/* repeated nimi.runtime.v1.LocalRecommendationFormat formats = 9; */
|
|
806
|
-
if (message.formats.length) {
|
|
807
|
-
writer.tag(9, WireType.LengthDelimited).fork();
|
|
808
|
-
for (let i = 0; i < message.formats.length; i++)
|
|
809
|
-
writer.int32(message.formats[i]);
|
|
810
|
-
writer.join();
|
|
811
|
-
}
|
|
812
|
-
/* int64 downloads = 10; */
|
|
813
|
-
if (message.downloads !== "0")
|
|
814
|
-
writer.tag(10, WireType.Varint).int64(message.downloads);
|
|
815
|
-
/* int64 likes = 11; */
|
|
816
|
-
if (message.likes !== "0")
|
|
817
|
-
writer.tag(11, WireType.Varint).int64(message.likes);
|
|
818
|
-
/* string last_modified = 12; */
|
|
819
|
-
if (message.lastModified !== "")
|
|
820
|
-
writer.tag(12, WireType.LengthDelimited).string(message.lastModified);
|
|
821
|
-
/* string preferred_engine = 13; */
|
|
822
|
-
if (message.preferredEngine !== "")
|
|
823
|
-
writer.tag(13, WireType.LengthDelimited).string(message.preferredEngine);
|
|
824
|
-
/* bool verified = 14; */
|
|
825
|
-
if (message.verified !== false)
|
|
826
|
-
writer.tag(14, WireType.Varint).bool(message.verified);
|
|
827
|
-
/* repeated nimi.runtime.v1.LocalRecommendationFeedEntryDescriptor entries = 15; */
|
|
828
|
-
for (let i = 0; i < message.entries.length; i++)
|
|
829
|
-
LocalRecommendationFeedEntryDescriptor.internalBinaryWrite(message.entries[i], writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
|
830
|
-
/* nimi.runtime.v1.LocalCatalogRecommendation recommendation = 16; */
|
|
831
|
-
if (message.recommendation)
|
|
832
|
-
LocalCatalogRecommendation.internalBinaryWrite(message.recommendation, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
|
|
833
|
-
/* nimi.runtime.v1.LocalRecommendationInstalledState installed_state = 17; */
|
|
834
|
-
if (message.installedState)
|
|
835
|
-
LocalRecommendationInstalledState.internalBinaryWrite(message.installedState, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
|
|
836
|
-
/* nimi.runtime.v1.LocalRecommendationActionState action_state = 18; */
|
|
837
|
-
if (message.actionState)
|
|
838
|
-
LocalRecommendationActionState.internalBinaryWrite(message.actionState, writer.tag(18, WireType.LengthDelimited).fork(), options).join();
|
|
839
|
-
/* nimi.runtime.v1.LocalRecommendationInstallPayload install_payload = 19; */
|
|
840
|
-
if (message.installPayload)
|
|
841
|
-
LocalRecommendationInstallPayload.internalBinaryWrite(message.installPayload, writer.tag(19, WireType.LengthDelimited).fork(), options).join();
|
|
748
|
+
/* string capability_contract = 1; */
|
|
749
|
+
if (message.capabilityContract !== "")
|
|
750
|
+
writer.tag(1, WireType.LengthDelimited).string(message.capabilityContract);
|
|
842
751
|
let u = options.writeUnknownFields;
|
|
843
752
|
if (u !== false)
|
|
844
753
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -846,26 +755,19 @@ class LocalRecommendationFeedItemDescriptor$Type extends MessageType {
|
|
|
846
755
|
}
|
|
847
756
|
}
|
|
848
757
|
/**
|
|
849
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
758
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.ListFactoryProfileRecommendationsRequest
|
|
850
759
|
*/
|
|
851
|
-
export const
|
|
760
|
+
export const ListFactoryProfileRecommendationsRequest = new ListFactoryProfileRecommendationsRequest$Type();
|
|
852
761
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
853
|
-
class
|
|
762
|
+
class ListFactoryProfileRecommendationsResponse$Type extends MessageType {
|
|
854
763
|
constructor() {
|
|
855
|
-
super("nimi.runtime.v1.
|
|
856
|
-
{ no: 1, name: "
|
|
857
|
-
{ no: 2, name: "active_capability", kind: "enum", T: () => ["nimi.runtime.v1.LocalRecommendationFeedCapability", LocalRecommendationFeedCapability, "LOCAL_RECOMMENDATION_FEED_CAPABILITY_"] },
|
|
858
|
-
{ no: 3, name: "generated_at", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
859
|
-
{ no: 4, name: "cache_state", kind: "enum", T: () => ["nimi.runtime.v1.LocalRecommendationFeedCacheState", LocalRecommendationFeedCacheState, "LOCAL_RECOMMENDATION_FEED_CACHE_STATE_"] },
|
|
860
|
-
{ no: 5, name: "items", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => LocalRecommendationFeedItemDescriptor }
|
|
764
|
+
super("nimi.runtime.v1.ListFactoryProfileRecommendationsResponse", [
|
|
765
|
+
{ no: 1, name: "profiles", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FactoryProfileRecommendation }
|
|
861
766
|
]);
|
|
862
767
|
}
|
|
863
768
|
create(value) {
|
|
864
769
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
865
|
-
message.
|
|
866
|
-
message.generatedAt = "";
|
|
867
|
-
message.cacheState = 0;
|
|
868
|
-
message.items = [];
|
|
770
|
+
message.profiles = [];
|
|
869
771
|
if (value !== undefined)
|
|
870
772
|
reflectionMergePartial(this, message, value);
|
|
871
773
|
return message;
|
|
@@ -875,20 +777,8 @@ class LocalRecommendationFeedDescriptor$Type extends MessageType {
|
|
|
875
777
|
while (reader.pos < end) {
|
|
876
778
|
let [fieldNo, wireType] = reader.tag();
|
|
877
779
|
switch (fieldNo) {
|
|
878
|
-
case /* nimi.runtime.v1.
|
|
879
|
-
message.
|
|
880
|
-
break;
|
|
881
|
-
case /* nimi.runtime.v1.LocalRecommendationFeedCapability active_capability */ 2:
|
|
882
|
-
message.activeCapability = reader.int32();
|
|
883
|
-
break;
|
|
884
|
-
case /* string generated_at */ 3:
|
|
885
|
-
message.generatedAt = reader.string();
|
|
886
|
-
break;
|
|
887
|
-
case /* nimi.runtime.v1.LocalRecommendationFeedCacheState cache_state */ 4:
|
|
888
|
-
message.cacheState = reader.int32();
|
|
889
|
-
break;
|
|
890
|
-
case /* repeated nimi.runtime.v1.LocalRecommendationFeedItemDescriptor items */ 5:
|
|
891
|
-
message.items.push(LocalRecommendationFeedItemDescriptor.internalBinaryRead(reader, reader.uint32(), options));
|
|
780
|
+
case /* repeated nimi.runtime.v1.FactoryProfileRecommendation profiles */ 1:
|
|
781
|
+
message.profiles.push(FactoryProfileRecommendation.internalBinaryRead(reader, reader.uint32(), options));
|
|
892
782
|
break;
|
|
893
783
|
default:
|
|
894
784
|
let u = options.readUnknownField;
|
|
@@ -902,21 +792,9 @@ class LocalRecommendationFeedDescriptor$Type extends MessageType {
|
|
|
902
792
|
return message;
|
|
903
793
|
}
|
|
904
794
|
internalBinaryWrite(message, writer, options) {
|
|
905
|
-
/* nimi.runtime.v1.
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
/* nimi.runtime.v1.LocalRecommendationFeedCapability active_capability = 2; */
|
|
909
|
-
if (message.activeCapability !== 0)
|
|
910
|
-
writer.tag(2, WireType.Varint).int32(message.activeCapability);
|
|
911
|
-
/* string generated_at = 3; */
|
|
912
|
-
if (message.generatedAt !== "")
|
|
913
|
-
writer.tag(3, WireType.LengthDelimited).string(message.generatedAt);
|
|
914
|
-
/* nimi.runtime.v1.LocalRecommendationFeedCacheState cache_state = 4; */
|
|
915
|
-
if (message.cacheState !== 0)
|
|
916
|
-
writer.tag(4, WireType.Varint).int32(message.cacheState);
|
|
917
|
-
/* repeated nimi.runtime.v1.LocalRecommendationFeedItemDescriptor items = 5; */
|
|
918
|
-
for (let i = 0; i < message.items.length; i++)
|
|
919
|
-
LocalRecommendationFeedItemDescriptor.internalBinaryWrite(message.items[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
795
|
+
/* repeated nimi.runtime.v1.FactoryProfileRecommendation profiles = 1; */
|
|
796
|
+
for (let i = 0; i < message.profiles.length; i++)
|
|
797
|
+
FactoryProfileRecommendation.internalBinaryWrite(message.profiles[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
920
798
|
let u = options.writeUnknownFields;
|
|
921
799
|
if (u !== false)
|
|
922
800
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -924,7 +802,7 @@ class LocalRecommendationFeedDescriptor$Type extends MessageType {
|
|
|
924
802
|
}
|
|
925
803
|
}
|
|
926
804
|
/**
|
|
927
|
-
* @generated MessageType for protobuf message nimi.runtime.v1.
|
|
805
|
+
* @generated MessageType for protobuf message nimi.runtime.v1.ListFactoryProfileRecommendationsResponse
|
|
928
806
|
*/
|
|
929
|
-
export const
|
|
807
|
+
export const ListFactoryProfileRecommendationsResponse = new ListFactoryProfileRecommendationsResponse$Type();
|
|
930
808
|
//# sourceMappingURL=local_runtime_recommendation.js.map
|