instill-sdk 0.0.1
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/README.md +369 -0
- package/dist/chunk-2VZRNT6D.mjs +0 -0
- package/dist/chunk-3VVR3XHW.mjs +56 -0
- package/dist/chunk-42SCMPQP.mjs +0 -0
- package/dist/chunk-4KLHN5HK.mjs +0 -0
- package/dist/chunk-4TKUHGUZ.mjs +244 -0
- package/dist/chunk-4VWYH26Q.mjs +145 -0
- package/dist/chunk-6M57XUNI.mjs +64 -0
- package/dist/chunk-6NTCWRRC.mjs +0 -0
- package/dist/chunk-6ZXT6X3H.mjs +0 -0
- package/dist/chunk-73EPIL2R.mjs +0 -0
- package/dist/chunk-7KV3Y36U.mjs +17 -0
- package/dist/chunk-D5OKZ665.mjs +32 -0
- package/dist/chunk-DXEIDDIA.mjs +32 -0
- package/dist/chunk-EBWGEVUX.mjs +33 -0
- package/dist/chunk-ECC5KF6S.mjs +150 -0
- package/dist/chunk-EHG2FVLQ.mjs +0 -0
- package/dist/chunk-EXJ4UK7Q.mjs +49 -0
- package/dist/chunk-FAXYADOP.mjs +0 -0
- package/dist/chunk-FNCXOA62.mjs +0 -0
- package/dist/chunk-GPM5FDRS.mjs +154 -0
- package/dist/chunk-IB43VC55.mjs +41 -0
- package/dist/chunk-IPW3WQCQ.mjs +35 -0
- package/dist/chunk-IWAQMUMR.mjs +42 -0
- package/dist/chunk-JONZWFL5.mjs +168 -0
- package/dist/chunk-JTTE7IZY.mjs +14 -0
- package/dist/chunk-JY37AKV6.mjs +0 -0
- package/dist/chunk-KCKTAMXW.mjs +0 -0
- package/dist/chunk-KHFNAMT4.mjs +160 -0
- package/dist/chunk-NRP5M7FG.mjs +128 -0
- package/dist/chunk-QLWRKSUE.mjs +104 -0
- package/dist/chunk-QV7PYP7E.mjs +0 -0
- package/dist/chunk-QZOKJQTL.mjs +102 -0
- package/dist/chunk-RVRM4NPL.mjs +29 -0
- package/dist/chunk-VASX6R4R.mjs +0 -0
- package/dist/chunk-VIPORJ6H.mjs +77 -0
- package/dist/chunk-WBQAMGXK.mjs +0 -0
- package/dist/chunk-WL54JNC6.mjs +64 -0
- package/dist/chunk-WLPBUHMI.mjs +0 -0
- package/dist/chunk-YT6ZGA4J.mjs +46 -0
- package/dist/chunk-YXNMG2RZ.mjs +98 -0
- package/dist/chunk-ZRC43MN3.mjs +111 -0
- package/dist/chunk-magic-string.3a794426-OWTMMGNR.mjs +1253 -0
- package/dist/connector/ConnectorClient.d.ts +54 -0
- package/dist/connector/ConnectorClient.js +457 -0
- package/dist/connector/ConnectorClient.mjs +16 -0
- package/dist/connector/action.d.ts +13 -0
- package/dist/connector/action.js +72 -0
- package/dist/connector/action.mjs +11 -0
- package/dist/connector/index.d.ts +2 -0
- package/dist/connector/index.js +37 -0
- package/dist/connector/index.mjs +13 -0
- package/dist/connector/mutation.d.ts +19 -0
- package/dist/connector/mutation.js +91 -0
- package/dist/connector/mutation.mjs +13 -0
- package/dist/connector/queries.d.ts +34 -0
- package/dist/connector/queries.js +227 -0
- package/dist/connector/queries.mjs +23 -0
- package/dist/connector/types.d.ts +102 -0
- package/dist/connector/types.js +18 -0
- package/dist/connector/types.mjs +1 -0
- package/dist/helper/axiosInstance.d.ts +3 -0
- package/dist/helper/axiosInstance.js +44 -0
- package/dist/helper/axiosInstance.mjs +7 -0
- package/dist/helper/config.d.ts +1 -0
- package/dist/helper/config.js +53 -0
- package/dist/helper/config.mjs +7 -0
- package/dist/helper/createClient.d.ts +2 -0
- package/dist/helper/createClient.js +90 -0
- package/dist/helper/createClient.mjs +8 -0
- package/dist/helper/getInstillApiErrorMessage.d.ts +2 -0
- package/dist/helper/getInstillApiErrorMessage.js +41 -0
- package/dist/helper/getInstillApiErrorMessage.mjs +7 -0
- package/dist/helper/getQueryString.d.ts +7 -0
- package/dist/helper/getQueryString.js +57 -0
- package/dist/helper/getQueryString.mjs +7 -0
- package/dist/helper/getQueryString.test.d.ts +1 -0
- package/dist/helper/getQueryString.test.js +15769 -0
- package/dist/helper/getQueryString.test.mjs +14458 -0
- package/dist/helper/index.d.ts +5 -0
- package/dist/helper/index.js +145 -0
- package/dist/helper/index.mjs +21 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +1978 -0
- package/dist/index.mjs +87 -0
- package/dist/metric/MetricClient.d.ts +21 -0
- package/dist/metric/MetricClient.js +215 -0
- package/dist/metric/MetricClient.mjs +14 -0
- package/dist/metric/index.d.ts +1 -0
- package/dist/metric/index.js +18 -0
- package/dist/metric/index.mjs +3 -0
- package/dist/metric/pipeline/index.d.ts +1 -0
- package/dist/metric/pipeline/index.js +18 -0
- package/dist/metric/pipeline/index.mjs +2 -0
- package/dist/metric/pipeline/queries.d.ts +21 -0
- package/dist/metric/pipeline/queries.js +168 -0
- package/dist/metric/pipeline/queries.mjs +17 -0
- package/dist/metric/pipeline/types.d.ts +63 -0
- package/dist/metric/pipeline/types.js +18 -0
- package/dist/metric/pipeline/types.mjs +1 -0
- package/dist/mgmt/AuthClient.d.ts +35 -0
- package/dist/mgmt/AuthClient.js +308 -0
- package/dist/mgmt/AuthClient.mjs +16 -0
- package/dist/mgmt/action.d.ts +8 -0
- package/dist/mgmt/action.js +61 -0
- package/dist/mgmt/action.mjs +11 -0
- package/dist/mgmt/index.d.ts +2 -0
- package/dist/mgmt/index.js +37 -0
- package/dist/mgmt/index.mjs +13 -0
- package/dist/mgmt/mutation.d.ts +18 -0
- package/dist/mgmt/mutation.js +83 -0
- package/dist/mgmt/mutation.mjs +13 -0
- package/dist/mgmt/queries.d.ts +17 -0
- package/dist/mgmt/queries.js +148 -0
- package/dist/mgmt/queries.mjs +19 -0
- package/dist/mgmt/types.d.ts +62 -0
- package/dist/mgmt/types.js +18 -0
- package/dist/mgmt/types.mjs +1 -0
- package/dist/model/ModelClient.d.ts +48 -0
- package/dist/model/ModelClient.js +466 -0
- package/dist/model/ModelClient.mjs +16 -0
- package/dist/model/action.d.ts +9 -0
- package/dist/model/action.js +57 -0
- package/dist/model/action.mjs +9 -0
- package/dist/model/index.d.ts +2 -0
- package/dist/model/index.js +37 -0
- package/dist/model/index.mjs +13 -0
- package/dist/model/mutation.d.ts +15 -0
- package/dist/model/mutation.js +128 -0
- package/dist/model/mutation.mjs +11 -0
- package/dist/model/queries.d.ts +35 -0
- package/dist/model/queries.js +234 -0
- package/dist/model/queries.mjs +25 -0
- package/dist/model/types.d.ts +141 -0
- package/dist/model/types.js +18 -0
- package/dist/model/types.mjs +1 -0
- package/dist/operation/OperationClient.d.ts +11 -0
- package/dist/operation/OperationClient.js +106 -0
- package/dist/operation/OperationClient.mjs +8 -0
- package/dist/operation/index.d.ts +2 -0
- package/dist/operation/index.js +31 -0
- package/dist/operation/index.mjs +5 -0
- package/dist/operation/queries.d.ts +9 -0
- package/dist/operation/queries.js +67 -0
- package/dist/operation/queries.mjs +9 -0
- package/dist/operation/types.d.ts +9 -0
- package/dist/operation/types.js +18 -0
- package/dist/operation/types.mjs +1 -0
- package/dist/pipeline/PipelineClient.d.ts +80 -0
- package/dist/pipeline/PipelineClient.js +639 -0
- package/dist/pipeline/PipelineClient.mjs +16 -0
- package/dist/pipeline/action.d.ts +34 -0
- package/dist/pipeline/action.js +157 -0
- package/dist/pipeline/action.mjs +17 -0
- package/dist/pipeline/index.d.ts +2 -0
- package/dist/pipeline/index.js +37 -0
- package/dist/pipeline/index.mjs +13 -0
- package/dist/pipeline/mutation.d.ts +33 -0
- package/dist/pipeline/mutation.js +134 -0
- package/dist/pipeline/mutation.mjs +19 -0
- package/dist/pipeline/queries.d.ts +32 -0
- package/dist/pipeline/queries.js +223 -0
- package/dist/pipeline/queries.mjs +23 -0
- package/dist/pipeline/types.d.ts +204 -0
- package/dist/pipeline/types.js +18 -0
- package/dist/pipeline/types.mjs +1 -0
- package/dist/protogen-ts/base/metric/v1alpha/metric.ts +4522 -0
- package/dist/protogen-ts/base/metric/v1alpha/metric_service.ts +314 -0
- package/dist/protogen-ts/base/mgmt/v1alpha/metric.ts +2486 -0
- package/dist/protogen-ts/base/mgmt/v1alpha/mgmt.ts +3787 -0
- package/dist/protogen-ts/base/mgmt/v1alpha/mgmt_private_service.ts +107 -0
- package/dist/protogen-ts/base/mgmt/v1alpha/mgmt_public_service.ts +326 -0
- package/dist/protogen-ts/base/usage/v1alpha/usage.ts +2185 -0
- package/dist/protogen-ts/base/usage/v1alpha/usage_service.ts +81 -0
- package/dist/protogen-ts/common/healthcheck/v1alpha/healthcheck.ts +188 -0
- package/dist/protogen-ts/common/task/v1alpha/task.ts +109 -0
- package/dist/protogen-ts/google/api/annotations.ts +3 -0
- package/dist/protogen-ts/google/api/client.ts +2073 -0
- package/dist/protogen-ts/google/api/field_behavior.ts +119 -0
- package/dist/protogen-ts/google/api/http.ts +745 -0
- package/dist/protogen-ts/google/api/launch_stage.ts +115 -0
- package/dist/protogen-ts/google/api/resource.ts +529 -0
- package/dist/protogen-ts/google/longrunning/operations.ts +890 -0
- package/dist/protogen-ts/google/protobuf/any.ts +259 -0
- package/dist/protogen-ts/google/protobuf/descriptor.ts +4831 -0
- package/dist/protogen-ts/google/protobuf/duration.ts +203 -0
- package/dist/protogen-ts/google/protobuf/empty.ts +70 -0
- package/dist/protogen-ts/google/protobuf/field_mask.ts +289 -0
- package/dist/protogen-ts/google/protobuf/struct.ts +543 -0
- package/dist/protogen-ts/google/protobuf/timestamp.ts +232 -0
- package/dist/protogen-ts/google/rpc/status.ts +138 -0
- package/dist/protogen-ts/model/controller/v1alpha/controller.ts +823 -0
- package/dist/protogen-ts/model/controller/v1alpha/controller_service.ts +95 -0
- package/dist/protogen-ts/model/model/v1alpha/common.ts +135 -0
- package/dist/protogen-ts/model/model/v1alpha/model.ts +5682 -0
- package/dist/protogen-ts/model/model/v1alpha/model_definition.ts +775 -0
- package/dist/protogen-ts/model/model/v1alpha/model_private_service.ts +87 -0
- package/dist/protogen-ts/model/model/v1alpha/model_public_service.ts +383 -0
- package/dist/protogen-ts/model/model/v1alpha/task_classification.ts +326 -0
- package/dist/protogen-ts/model/model/v1alpha/task_detection.ts +411 -0
- package/dist/protogen-ts/model/model/v1alpha/task_instance_segmentation.ts +435 -0
- package/dist/protogen-ts/model/model/v1alpha/task_keypoint.ts +510 -0
- package/dist/protogen-ts/model/model/v1alpha/task_ocr.ts +406 -0
- package/dist/protogen-ts/model/model/v1alpha/task_semantic_segmentation.ts +396 -0
- package/dist/protogen-ts/model/model/v1alpha/task_text_generation.ts +247 -0
- package/dist/protogen-ts/model/model/v1alpha/task_text_to_image.ts +221 -0
- package/dist/protogen-ts/model/model/v1alpha/task_unspecified.ts +142 -0
- package/dist/protogen-ts/protoc-gen-openapiv2/options/annotations.ts +3 -0
- package/dist/protogen-ts/protoc-gen-openapiv2/options/openapiv2.ts +5095 -0
- package/dist/protogen-ts/vdp/connector/v1alpha/connector.ts +3637 -0
- package/dist/protogen-ts/vdp/connector/v1alpha/connector_definition.ts +1043 -0
- package/dist/protogen-ts/vdp/connector/v1alpha/connector_private_service.ts +92 -0
- package/dist/protogen-ts/vdp/connector/v1alpha/connector_public_service.ts +310 -0
- package/dist/protogen-ts/vdp/connector/v1alpha/spec.ts +126 -0
- package/dist/protogen-ts/vdp/controller/v1alpha/controller.ts +853 -0
- package/dist/protogen-ts/vdp/controller/v1alpha/controller_service.ts +95 -0
- package/dist/protogen-ts/vdp/pipeline/v1alpha/common.ts +498 -0
- package/dist/protogen-ts/vdp/pipeline/v1alpha/operator_definition.ts +948 -0
- package/dist/protogen-ts/vdp/pipeline/v1alpha/pipeline.ts +6006 -0
- package/dist/protogen-ts/vdp/pipeline/v1alpha/pipeline_private_service.ts +83 -0
- package/dist/protogen-ts/vdp/pipeline/v1alpha/pipeline_public_service.ts +413 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types.d.ts +23 -0
- package/dist/types.js +18 -0
- package/dist/types.mjs +1 -0
- package/package.json +50 -0
|
@@ -0,0 +1,948 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Struct } from "../../../google/protobuf/struct";
|
|
4
|
+
import { View, viewFromJSON, viewToJSON } from "./common";
|
|
5
|
+
|
|
6
|
+
export const protobufPackage = "vdp.pipeline.v1alpha";
|
|
7
|
+
|
|
8
|
+
/** View enumerates the definition views */
|
|
9
|
+
export interface Spec {
|
|
10
|
+
/** Spec operator specification */
|
|
11
|
+
componentSpecification:
|
|
12
|
+
| { [key: string]: any }
|
|
13
|
+
| undefined;
|
|
14
|
+
/** Spec openapi specification */
|
|
15
|
+
openapiSpecifications: { [key: string]: any } | undefined;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** Operator represents the operator definition data model */
|
|
19
|
+
export interface OperatorDefinition {
|
|
20
|
+
/**
|
|
21
|
+
* Operator resource name. It must have the format of
|
|
22
|
+
* "operator-definitions/*"
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/** Operator UUID */
|
|
26
|
+
uid: string;
|
|
27
|
+
/**
|
|
28
|
+
* Operator resource ID (the last segment of the
|
|
29
|
+
* resource name) used to construct the resource name. This conforms to
|
|
30
|
+
* RFC-1034, which restricts to letters, numbers, and hyphen, with the first
|
|
31
|
+
* character a letter, the last a letter or a number, and a 63 character
|
|
32
|
+
* maximum.
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/** Operator title */
|
|
36
|
+
title: string;
|
|
37
|
+
/** Operator documentation URL */
|
|
38
|
+
documentationUrl: string;
|
|
39
|
+
/** Operator icon */
|
|
40
|
+
icon: string;
|
|
41
|
+
/** Operator spec */
|
|
42
|
+
spec:
|
|
43
|
+
| Spec
|
|
44
|
+
| undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Operator tombstone, i.e., if not set or false, the
|
|
47
|
+
* configuration is active, or otherwise, if true, this configuration is
|
|
48
|
+
* permanently off
|
|
49
|
+
*/
|
|
50
|
+
tombstone: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Operator public flag, i.e., true if this operator
|
|
53
|
+
* definition is available to all workspaces
|
|
54
|
+
*/
|
|
55
|
+
public: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Operator custom flag, i.e., whether this is a custom
|
|
58
|
+
* operator definition
|
|
59
|
+
*/
|
|
60
|
+
custom: boolean;
|
|
61
|
+
/** Operator iconUrl */
|
|
62
|
+
iconUrl: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* ListOperatorDefinitionsRequest represents a request to list
|
|
67
|
+
* OperatorDefinitions
|
|
68
|
+
*/
|
|
69
|
+
export interface ListOperatorDefinitionsRequest {
|
|
70
|
+
/**
|
|
71
|
+
* The maximum number of OperatorDefinitions to return. The
|
|
72
|
+
* service may return fewer than this value. If unspecified, at most 10
|
|
73
|
+
* OperatorDefinitions will be returned. The maximum value is 100;
|
|
74
|
+
* values above 100 will be coerced to 100.
|
|
75
|
+
*/
|
|
76
|
+
pageSize?:
|
|
77
|
+
| number
|
|
78
|
+
| undefined;
|
|
79
|
+
/** Page token */
|
|
80
|
+
pageToken?:
|
|
81
|
+
| string
|
|
82
|
+
| undefined;
|
|
83
|
+
/** Definition view (default is DEFINITION_VIEW_BASIC) */
|
|
84
|
+
view?:
|
|
85
|
+
| View
|
|
86
|
+
| undefined;
|
|
87
|
+
/** Filter expression to list operator definitions */
|
|
88
|
+
filter?: string | undefined;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* ListOperatorDefinitionsResponse represents a response for a list
|
|
93
|
+
* of OperatorDefinitions
|
|
94
|
+
*/
|
|
95
|
+
export interface ListOperatorDefinitionsResponse {
|
|
96
|
+
/** A list of Operator resources */
|
|
97
|
+
operatorDefinitions: OperatorDefinition[];
|
|
98
|
+
/** Next page token */
|
|
99
|
+
nextPageToken: string;
|
|
100
|
+
/** Total count of Operator resources */
|
|
101
|
+
totalSize: number;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* GetOperatorDefinitionRequest represents a request to query a
|
|
106
|
+
* Operator resource
|
|
107
|
+
*/
|
|
108
|
+
export interface GetOperatorDefinitionRequest {
|
|
109
|
+
/**
|
|
110
|
+
* Operator resource name. It must have the format of
|
|
111
|
+
* "operator-definitions/*"
|
|
112
|
+
*/
|
|
113
|
+
name: string;
|
|
114
|
+
/**
|
|
115
|
+
* Operator resource view (default is
|
|
116
|
+
* DEFINITION_VIEW_BASIC)
|
|
117
|
+
*/
|
|
118
|
+
view?: View | undefined;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* GetOperatorDefinitionResponse represents a
|
|
123
|
+
* Operator response
|
|
124
|
+
*/
|
|
125
|
+
export interface GetOperatorDefinitionResponse {
|
|
126
|
+
/** A Operator resource */
|
|
127
|
+
operatorDefinition: OperatorDefinition | undefined;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* LookUpOperatorDefinitionAdminRequest represents a request to query a
|
|
132
|
+
* operatorDefinition via permalink by admin
|
|
133
|
+
*/
|
|
134
|
+
export interface LookUpOperatorDefinitionAdminRequest {
|
|
135
|
+
/**
|
|
136
|
+
* Permalink of a operator. For example:
|
|
137
|
+
* "operator-definitions/{uid}"
|
|
138
|
+
*/
|
|
139
|
+
permalink: string;
|
|
140
|
+
/** Operator view (default is VIEW_BASIC) */
|
|
141
|
+
view?: View | undefined;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* LookUpOperatorAdminResponse represents a response for a
|
|
146
|
+
* operator
|
|
147
|
+
*/
|
|
148
|
+
export interface LookUpOperatorDefinitionAdminResponse {
|
|
149
|
+
/** operator resource */
|
|
150
|
+
operatorDefinition: OperatorDefinition | undefined;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
function createBaseSpec(): Spec {
|
|
154
|
+
return { componentSpecification: undefined, openapiSpecifications: undefined };
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export const Spec = {
|
|
158
|
+
encode(message: Spec, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
159
|
+
if (message.componentSpecification !== undefined) {
|
|
160
|
+
Struct.encode(Struct.wrap(message.componentSpecification), writer.uint32(10).fork()).ldelim();
|
|
161
|
+
}
|
|
162
|
+
if (message.openapiSpecifications !== undefined) {
|
|
163
|
+
Struct.encode(Struct.wrap(message.openapiSpecifications), writer.uint32(18).fork()).ldelim();
|
|
164
|
+
}
|
|
165
|
+
return writer;
|
|
166
|
+
},
|
|
167
|
+
|
|
168
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Spec {
|
|
169
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
170
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
171
|
+
const message = createBaseSpec();
|
|
172
|
+
while (reader.pos < end) {
|
|
173
|
+
const tag = reader.uint32();
|
|
174
|
+
switch (tag >>> 3) {
|
|
175
|
+
case 1:
|
|
176
|
+
if (tag !== 10) {
|
|
177
|
+
break;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
message.componentSpecification = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
|
181
|
+
continue;
|
|
182
|
+
case 2:
|
|
183
|
+
if (tag !== 18) {
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
message.openapiSpecifications = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
|
188
|
+
continue;
|
|
189
|
+
}
|
|
190
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
193
|
+
reader.skipType(tag & 7);
|
|
194
|
+
}
|
|
195
|
+
return message;
|
|
196
|
+
},
|
|
197
|
+
|
|
198
|
+
fromJSON(object: any): Spec {
|
|
199
|
+
return {
|
|
200
|
+
componentSpecification: isObject(object.componentSpecification) ? object.componentSpecification : undefined,
|
|
201
|
+
openapiSpecifications: isObject(object.openapiSpecifications) ? object.openapiSpecifications : undefined,
|
|
202
|
+
};
|
|
203
|
+
},
|
|
204
|
+
|
|
205
|
+
toJSON(message: Spec): unknown {
|
|
206
|
+
const obj: any = {};
|
|
207
|
+
if (message.componentSpecification !== undefined) {
|
|
208
|
+
obj.componentSpecification = message.componentSpecification;
|
|
209
|
+
}
|
|
210
|
+
if (message.openapiSpecifications !== undefined) {
|
|
211
|
+
obj.openapiSpecifications = message.openapiSpecifications;
|
|
212
|
+
}
|
|
213
|
+
return obj;
|
|
214
|
+
},
|
|
215
|
+
|
|
216
|
+
create<I extends Exact<DeepPartial<Spec>, I>>(base?: I): Spec {
|
|
217
|
+
return Spec.fromPartial(base ?? ({} as any));
|
|
218
|
+
},
|
|
219
|
+
fromPartial<I extends Exact<DeepPartial<Spec>, I>>(object: I): Spec {
|
|
220
|
+
const message = createBaseSpec();
|
|
221
|
+
message.componentSpecification = object.componentSpecification ?? undefined;
|
|
222
|
+
message.openapiSpecifications = object.openapiSpecifications ?? undefined;
|
|
223
|
+
return message;
|
|
224
|
+
},
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
function createBaseOperatorDefinition(): OperatorDefinition {
|
|
228
|
+
return {
|
|
229
|
+
name: "",
|
|
230
|
+
uid: "",
|
|
231
|
+
id: "",
|
|
232
|
+
title: "",
|
|
233
|
+
documentationUrl: "",
|
|
234
|
+
icon: "",
|
|
235
|
+
spec: undefined,
|
|
236
|
+
tombstone: false,
|
|
237
|
+
public: false,
|
|
238
|
+
custom: false,
|
|
239
|
+
iconUrl: "",
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export const OperatorDefinition = {
|
|
244
|
+
encode(message: OperatorDefinition, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
245
|
+
if (message.name !== "") {
|
|
246
|
+
writer.uint32(10).string(message.name);
|
|
247
|
+
}
|
|
248
|
+
if (message.uid !== "") {
|
|
249
|
+
writer.uint32(18).string(message.uid);
|
|
250
|
+
}
|
|
251
|
+
if (message.id !== "") {
|
|
252
|
+
writer.uint32(26).string(message.id);
|
|
253
|
+
}
|
|
254
|
+
if (message.title !== "") {
|
|
255
|
+
writer.uint32(34).string(message.title);
|
|
256
|
+
}
|
|
257
|
+
if (message.documentationUrl !== "") {
|
|
258
|
+
writer.uint32(42).string(message.documentationUrl);
|
|
259
|
+
}
|
|
260
|
+
if (message.icon !== "") {
|
|
261
|
+
writer.uint32(50).string(message.icon);
|
|
262
|
+
}
|
|
263
|
+
if (message.spec !== undefined) {
|
|
264
|
+
Spec.encode(message.spec, writer.uint32(58).fork()).ldelim();
|
|
265
|
+
}
|
|
266
|
+
if (message.tombstone === true) {
|
|
267
|
+
writer.uint32(64).bool(message.tombstone);
|
|
268
|
+
}
|
|
269
|
+
if (message.public === true) {
|
|
270
|
+
writer.uint32(72).bool(message.public);
|
|
271
|
+
}
|
|
272
|
+
if (message.custom === true) {
|
|
273
|
+
writer.uint32(80).bool(message.custom);
|
|
274
|
+
}
|
|
275
|
+
if (message.iconUrl !== "") {
|
|
276
|
+
writer.uint32(90).string(message.iconUrl);
|
|
277
|
+
}
|
|
278
|
+
return writer;
|
|
279
|
+
},
|
|
280
|
+
|
|
281
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): OperatorDefinition {
|
|
282
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
283
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
284
|
+
const message = createBaseOperatorDefinition();
|
|
285
|
+
while (reader.pos < end) {
|
|
286
|
+
const tag = reader.uint32();
|
|
287
|
+
switch (tag >>> 3) {
|
|
288
|
+
case 1:
|
|
289
|
+
if (tag !== 10) {
|
|
290
|
+
break;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
message.name = reader.string();
|
|
294
|
+
continue;
|
|
295
|
+
case 2:
|
|
296
|
+
if (tag !== 18) {
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
message.uid = reader.string();
|
|
301
|
+
continue;
|
|
302
|
+
case 3:
|
|
303
|
+
if (tag !== 26) {
|
|
304
|
+
break;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
message.id = reader.string();
|
|
308
|
+
continue;
|
|
309
|
+
case 4:
|
|
310
|
+
if (tag !== 34) {
|
|
311
|
+
break;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
message.title = reader.string();
|
|
315
|
+
continue;
|
|
316
|
+
case 5:
|
|
317
|
+
if (tag !== 42) {
|
|
318
|
+
break;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
message.documentationUrl = reader.string();
|
|
322
|
+
continue;
|
|
323
|
+
case 6:
|
|
324
|
+
if (tag !== 50) {
|
|
325
|
+
break;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
message.icon = reader.string();
|
|
329
|
+
continue;
|
|
330
|
+
case 7:
|
|
331
|
+
if (tag !== 58) {
|
|
332
|
+
break;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
message.spec = Spec.decode(reader, reader.uint32());
|
|
336
|
+
continue;
|
|
337
|
+
case 8:
|
|
338
|
+
if (tag !== 64) {
|
|
339
|
+
break;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
message.tombstone = reader.bool();
|
|
343
|
+
continue;
|
|
344
|
+
case 9:
|
|
345
|
+
if (tag !== 72) {
|
|
346
|
+
break;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
message.public = reader.bool();
|
|
350
|
+
continue;
|
|
351
|
+
case 10:
|
|
352
|
+
if (tag !== 80) {
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
message.custom = reader.bool();
|
|
357
|
+
continue;
|
|
358
|
+
case 11:
|
|
359
|
+
if (tag !== 90) {
|
|
360
|
+
break;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
message.iconUrl = reader.string();
|
|
364
|
+
continue;
|
|
365
|
+
}
|
|
366
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
367
|
+
break;
|
|
368
|
+
}
|
|
369
|
+
reader.skipType(tag & 7);
|
|
370
|
+
}
|
|
371
|
+
return message;
|
|
372
|
+
},
|
|
373
|
+
|
|
374
|
+
fromJSON(object: any): OperatorDefinition {
|
|
375
|
+
return {
|
|
376
|
+
name: isSet(object.name) ? String(object.name) : "",
|
|
377
|
+
uid: isSet(object.uid) ? String(object.uid) : "",
|
|
378
|
+
id: isSet(object.id) ? String(object.id) : "",
|
|
379
|
+
title: isSet(object.title) ? String(object.title) : "",
|
|
380
|
+
documentationUrl: isSet(object.documentationUrl) ? String(object.documentationUrl) : "",
|
|
381
|
+
icon: isSet(object.icon) ? String(object.icon) : "",
|
|
382
|
+
spec: isSet(object.spec) ? Spec.fromJSON(object.spec) : undefined,
|
|
383
|
+
tombstone: isSet(object.tombstone) ? Boolean(object.tombstone) : false,
|
|
384
|
+
public: isSet(object.public) ? Boolean(object.public) : false,
|
|
385
|
+
custom: isSet(object.custom) ? Boolean(object.custom) : false,
|
|
386
|
+
iconUrl: isSet(object.iconUrl) ? String(object.iconUrl) : "",
|
|
387
|
+
};
|
|
388
|
+
},
|
|
389
|
+
|
|
390
|
+
toJSON(message: OperatorDefinition): unknown {
|
|
391
|
+
const obj: any = {};
|
|
392
|
+
if (message.name !== "") {
|
|
393
|
+
obj.name = message.name;
|
|
394
|
+
}
|
|
395
|
+
if (message.uid !== "") {
|
|
396
|
+
obj.uid = message.uid;
|
|
397
|
+
}
|
|
398
|
+
if (message.id !== "") {
|
|
399
|
+
obj.id = message.id;
|
|
400
|
+
}
|
|
401
|
+
if (message.title !== "") {
|
|
402
|
+
obj.title = message.title;
|
|
403
|
+
}
|
|
404
|
+
if (message.documentationUrl !== "") {
|
|
405
|
+
obj.documentationUrl = message.documentationUrl;
|
|
406
|
+
}
|
|
407
|
+
if (message.icon !== "") {
|
|
408
|
+
obj.icon = message.icon;
|
|
409
|
+
}
|
|
410
|
+
if (message.spec !== undefined) {
|
|
411
|
+
obj.spec = Spec.toJSON(message.spec);
|
|
412
|
+
}
|
|
413
|
+
if (message.tombstone === true) {
|
|
414
|
+
obj.tombstone = message.tombstone;
|
|
415
|
+
}
|
|
416
|
+
if (message.public === true) {
|
|
417
|
+
obj.public = message.public;
|
|
418
|
+
}
|
|
419
|
+
if (message.custom === true) {
|
|
420
|
+
obj.custom = message.custom;
|
|
421
|
+
}
|
|
422
|
+
if (message.iconUrl !== "") {
|
|
423
|
+
obj.iconUrl = message.iconUrl;
|
|
424
|
+
}
|
|
425
|
+
return obj;
|
|
426
|
+
},
|
|
427
|
+
|
|
428
|
+
create<I extends Exact<DeepPartial<OperatorDefinition>, I>>(base?: I): OperatorDefinition {
|
|
429
|
+
return OperatorDefinition.fromPartial(base ?? ({} as any));
|
|
430
|
+
},
|
|
431
|
+
fromPartial<I extends Exact<DeepPartial<OperatorDefinition>, I>>(object: I): OperatorDefinition {
|
|
432
|
+
const message = createBaseOperatorDefinition();
|
|
433
|
+
message.name = object.name ?? "";
|
|
434
|
+
message.uid = object.uid ?? "";
|
|
435
|
+
message.id = object.id ?? "";
|
|
436
|
+
message.title = object.title ?? "";
|
|
437
|
+
message.documentationUrl = object.documentationUrl ?? "";
|
|
438
|
+
message.icon = object.icon ?? "";
|
|
439
|
+
message.spec = (object.spec !== undefined && object.spec !== null) ? Spec.fromPartial(object.spec) : undefined;
|
|
440
|
+
message.tombstone = object.tombstone ?? false;
|
|
441
|
+
message.public = object.public ?? false;
|
|
442
|
+
message.custom = object.custom ?? false;
|
|
443
|
+
message.iconUrl = object.iconUrl ?? "";
|
|
444
|
+
return message;
|
|
445
|
+
},
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
function createBaseListOperatorDefinitionsRequest(): ListOperatorDefinitionsRequest {
|
|
449
|
+
return { pageSize: undefined, pageToken: undefined, view: undefined, filter: undefined };
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
export const ListOperatorDefinitionsRequest = {
|
|
453
|
+
encode(message: ListOperatorDefinitionsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
454
|
+
if (message.pageSize !== undefined) {
|
|
455
|
+
writer.uint32(8).int32(message.pageSize);
|
|
456
|
+
}
|
|
457
|
+
if (message.pageToken !== undefined) {
|
|
458
|
+
writer.uint32(18).string(message.pageToken);
|
|
459
|
+
}
|
|
460
|
+
if (message.view !== undefined) {
|
|
461
|
+
writer.uint32(24).int32(message.view);
|
|
462
|
+
}
|
|
463
|
+
if (message.filter !== undefined) {
|
|
464
|
+
writer.uint32(34).string(message.filter);
|
|
465
|
+
}
|
|
466
|
+
return writer;
|
|
467
|
+
},
|
|
468
|
+
|
|
469
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ListOperatorDefinitionsRequest {
|
|
470
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
471
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
472
|
+
const message = createBaseListOperatorDefinitionsRequest();
|
|
473
|
+
while (reader.pos < end) {
|
|
474
|
+
const tag = reader.uint32();
|
|
475
|
+
switch (tag >>> 3) {
|
|
476
|
+
case 1:
|
|
477
|
+
if (tag !== 8) {
|
|
478
|
+
break;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
message.pageSize = reader.int32();
|
|
482
|
+
continue;
|
|
483
|
+
case 2:
|
|
484
|
+
if (tag !== 18) {
|
|
485
|
+
break;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
message.pageToken = reader.string();
|
|
489
|
+
continue;
|
|
490
|
+
case 3:
|
|
491
|
+
if (tag !== 24) {
|
|
492
|
+
break;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
message.view = reader.int32() as any;
|
|
496
|
+
continue;
|
|
497
|
+
case 4:
|
|
498
|
+
if (tag !== 34) {
|
|
499
|
+
break;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
message.filter = reader.string();
|
|
503
|
+
continue;
|
|
504
|
+
}
|
|
505
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
506
|
+
break;
|
|
507
|
+
}
|
|
508
|
+
reader.skipType(tag & 7);
|
|
509
|
+
}
|
|
510
|
+
return message;
|
|
511
|
+
},
|
|
512
|
+
|
|
513
|
+
fromJSON(object: any): ListOperatorDefinitionsRequest {
|
|
514
|
+
return {
|
|
515
|
+
pageSize: isSet(object.pageSize) ? Number(object.pageSize) : undefined,
|
|
516
|
+
pageToken: isSet(object.pageToken) ? String(object.pageToken) : undefined,
|
|
517
|
+
view: isSet(object.view) ? viewFromJSON(object.view) : undefined,
|
|
518
|
+
filter: isSet(object.filter) ? String(object.filter) : undefined,
|
|
519
|
+
};
|
|
520
|
+
},
|
|
521
|
+
|
|
522
|
+
toJSON(message: ListOperatorDefinitionsRequest): unknown {
|
|
523
|
+
const obj: any = {};
|
|
524
|
+
if (message.pageSize !== undefined) {
|
|
525
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
526
|
+
}
|
|
527
|
+
if (message.pageToken !== undefined) {
|
|
528
|
+
obj.pageToken = message.pageToken;
|
|
529
|
+
}
|
|
530
|
+
if (message.view !== undefined) {
|
|
531
|
+
obj.view = viewToJSON(message.view);
|
|
532
|
+
}
|
|
533
|
+
if (message.filter !== undefined) {
|
|
534
|
+
obj.filter = message.filter;
|
|
535
|
+
}
|
|
536
|
+
return obj;
|
|
537
|
+
},
|
|
538
|
+
|
|
539
|
+
create<I extends Exact<DeepPartial<ListOperatorDefinitionsRequest>, I>>(base?: I): ListOperatorDefinitionsRequest {
|
|
540
|
+
return ListOperatorDefinitionsRequest.fromPartial(base ?? ({} as any));
|
|
541
|
+
},
|
|
542
|
+
fromPartial<I extends Exact<DeepPartial<ListOperatorDefinitionsRequest>, I>>(
|
|
543
|
+
object: I,
|
|
544
|
+
): ListOperatorDefinitionsRequest {
|
|
545
|
+
const message = createBaseListOperatorDefinitionsRequest();
|
|
546
|
+
message.pageSize = object.pageSize ?? undefined;
|
|
547
|
+
message.pageToken = object.pageToken ?? undefined;
|
|
548
|
+
message.view = object.view ?? undefined;
|
|
549
|
+
message.filter = object.filter ?? undefined;
|
|
550
|
+
return message;
|
|
551
|
+
},
|
|
552
|
+
};
|
|
553
|
+
|
|
554
|
+
function createBaseListOperatorDefinitionsResponse(): ListOperatorDefinitionsResponse {
|
|
555
|
+
return { operatorDefinitions: [], nextPageToken: "", totalSize: 0 };
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
export const ListOperatorDefinitionsResponse = {
|
|
559
|
+
encode(message: ListOperatorDefinitionsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
560
|
+
for (const v of message.operatorDefinitions) {
|
|
561
|
+
OperatorDefinition.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
562
|
+
}
|
|
563
|
+
if (message.nextPageToken !== "") {
|
|
564
|
+
writer.uint32(18).string(message.nextPageToken);
|
|
565
|
+
}
|
|
566
|
+
if (message.totalSize !== 0) {
|
|
567
|
+
writer.uint32(24).int32(message.totalSize);
|
|
568
|
+
}
|
|
569
|
+
return writer;
|
|
570
|
+
},
|
|
571
|
+
|
|
572
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ListOperatorDefinitionsResponse {
|
|
573
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
574
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
575
|
+
const message = createBaseListOperatorDefinitionsResponse();
|
|
576
|
+
while (reader.pos < end) {
|
|
577
|
+
const tag = reader.uint32();
|
|
578
|
+
switch (tag >>> 3) {
|
|
579
|
+
case 1:
|
|
580
|
+
if (tag !== 10) {
|
|
581
|
+
break;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
message.operatorDefinitions.push(OperatorDefinition.decode(reader, reader.uint32()));
|
|
585
|
+
continue;
|
|
586
|
+
case 2:
|
|
587
|
+
if (tag !== 18) {
|
|
588
|
+
break;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
message.nextPageToken = reader.string();
|
|
592
|
+
continue;
|
|
593
|
+
case 3:
|
|
594
|
+
if (tag !== 24) {
|
|
595
|
+
break;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
message.totalSize = reader.int32();
|
|
599
|
+
continue;
|
|
600
|
+
}
|
|
601
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
602
|
+
break;
|
|
603
|
+
}
|
|
604
|
+
reader.skipType(tag & 7);
|
|
605
|
+
}
|
|
606
|
+
return message;
|
|
607
|
+
},
|
|
608
|
+
|
|
609
|
+
fromJSON(object: any): ListOperatorDefinitionsResponse {
|
|
610
|
+
return {
|
|
611
|
+
operatorDefinitions: Array.isArray(object?.operatorDefinitions)
|
|
612
|
+
? object.operatorDefinitions.map((e: any) => OperatorDefinition.fromJSON(e))
|
|
613
|
+
: [],
|
|
614
|
+
nextPageToken: isSet(object.nextPageToken) ? String(object.nextPageToken) : "",
|
|
615
|
+
totalSize: isSet(object.totalSize) ? Number(object.totalSize) : 0,
|
|
616
|
+
};
|
|
617
|
+
},
|
|
618
|
+
|
|
619
|
+
toJSON(message: ListOperatorDefinitionsResponse): unknown {
|
|
620
|
+
const obj: any = {};
|
|
621
|
+
if (message.operatorDefinitions?.length) {
|
|
622
|
+
obj.operatorDefinitions = message.operatorDefinitions.map((e) => OperatorDefinition.toJSON(e));
|
|
623
|
+
}
|
|
624
|
+
if (message.nextPageToken !== "") {
|
|
625
|
+
obj.nextPageToken = message.nextPageToken;
|
|
626
|
+
}
|
|
627
|
+
if (message.totalSize !== 0) {
|
|
628
|
+
obj.totalSize = Math.round(message.totalSize);
|
|
629
|
+
}
|
|
630
|
+
return obj;
|
|
631
|
+
},
|
|
632
|
+
|
|
633
|
+
create<I extends Exact<DeepPartial<ListOperatorDefinitionsResponse>, I>>(base?: I): ListOperatorDefinitionsResponse {
|
|
634
|
+
return ListOperatorDefinitionsResponse.fromPartial(base ?? ({} as any));
|
|
635
|
+
},
|
|
636
|
+
fromPartial<I extends Exact<DeepPartial<ListOperatorDefinitionsResponse>, I>>(
|
|
637
|
+
object: I,
|
|
638
|
+
): ListOperatorDefinitionsResponse {
|
|
639
|
+
const message = createBaseListOperatorDefinitionsResponse();
|
|
640
|
+
message.operatorDefinitions = object.operatorDefinitions?.map((e) => OperatorDefinition.fromPartial(e)) || [];
|
|
641
|
+
message.nextPageToken = object.nextPageToken ?? "";
|
|
642
|
+
message.totalSize = object.totalSize ?? 0;
|
|
643
|
+
return message;
|
|
644
|
+
},
|
|
645
|
+
};
|
|
646
|
+
|
|
647
|
+
function createBaseGetOperatorDefinitionRequest(): GetOperatorDefinitionRequest {
|
|
648
|
+
return { name: "", view: undefined };
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
export const GetOperatorDefinitionRequest = {
|
|
652
|
+
encode(message: GetOperatorDefinitionRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
653
|
+
if (message.name !== "") {
|
|
654
|
+
writer.uint32(10).string(message.name);
|
|
655
|
+
}
|
|
656
|
+
if (message.view !== undefined) {
|
|
657
|
+
writer.uint32(16).int32(message.view);
|
|
658
|
+
}
|
|
659
|
+
return writer;
|
|
660
|
+
},
|
|
661
|
+
|
|
662
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetOperatorDefinitionRequest {
|
|
663
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
664
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
665
|
+
const message = createBaseGetOperatorDefinitionRequest();
|
|
666
|
+
while (reader.pos < end) {
|
|
667
|
+
const tag = reader.uint32();
|
|
668
|
+
switch (tag >>> 3) {
|
|
669
|
+
case 1:
|
|
670
|
+
if (tag !== 10) {
|
|
671
|
+
break;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
message.name = reader.string();
|
|
675
|
+
continue;
|
|
676
|
+
case 2:
|
|
677
|
+
if (tag !== 16) {
|
|
678
|
+
break;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
message.view = reader.int32() as any;
|
|
682
|
+
continue;
|
|
683
|
+
}
|
|
684
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
685
|
+
break;
|
|
686
|
+
}
|
|
687
|
+
reader.skipType(tag & 7);
|
|
688
|
+
}
|
|
689
|
+
return message;
|
|
690
|
+
},
|
|
691
|
+
|
|
692
|
+
fromJSON(object: any): GetOperatorDefinitionRequest {
|
|
693
|
+
return {
|
|
694
|
+
name: isSet(object.name) ? String(object.name) : "",
|
|
695
|
+
view: isSet(object.view) ? viewFromJSON(object.view) : undefined,
|
|
696
|
+
};
|
|
697
|
+
},
|
|
698
|
+
|
|
699
|
+
toJSON(message: GetOperatorDefinitionRequest): unknown {
|
|
700
|
+
const obj: any = {};
|
|
701
|
+
if (message.name !== "") {
|
|
702
|
+
obj.name = message.name;
|
|
703
|
+
}
|
|
704
|
+
if (message.view !== undefined) {
|
|
705
|
+
obj.view = viewToJSON(message.view);
|
|
706
|
+
}
|
|
707
|
+
return obj;
|
|
708
|
+
},
|
|
709
|
+
|
|
710
|
+
create<I extends Exact<DeepPartial<GetOperatorDefinitionRequest>, I>>(base?: I): GetOperatorDefinitionRequest {
|
|
711
|
+
return GetOperatorDefinitionRequest.fromPartial(base ?? ({} as any));
|
|
712
|
+
},
|
|
713
|
+
fromPartial<I extends Exact<DeepPartial<GetOperatorDefinitionRequest>, I>>(object: I): GetOperatorDefinitionRequest {
|
|
714
|
+
const message = createBaseGetOperatorDefinitionRequest();
|
|
715
|
+
message.name = object.name ?? "";
|
|
716
|
+
message.view = object.view ?? undefined;
|
|
717
|
+
return message;
|
|
718
|
+
},
|
|
719
|
+
};
|
|
720
|
+
|
|
721
|
+
function createBaseGetOperatorDefinitionResponse(): GetOperatorDefinitionResponse {
|
|
722
|
+
return { operatorDefinition: undefined };
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
export const GetOperatorDefinitionResponse = {
|
|
726
|
+
encode(message: GetOperatorDefinitionResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
727
|
+
if (message.operatorDefinition !== undefined) {
|
|
728
|
+
OperatorDefinition.encode(message.operatorDefinition, writer.uint32(10).fork()).ldelim();
|
|
729
|
+
}
|
|
730
|
+
return writer;
|
|
731
|
+
},
|
|
732
|
+
|
|
733
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetOperatorDefinitionResponse {
|
|
734
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
735
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
736
|
+
const message = createBaseGetOperatorDefinitionResponse();
|
|
737
|
+
while (reader.pos < end) {
|
|
738
|
+
const tag = reader.uint32();
|
|
739
|
+
switch (tag >>> 3) {
|
|
740
|
+
case 1:
|
|
741
|
+
if (tag !== 10) {
|
|
742
|
+
break;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
message.operatorDefinition = OperatorDefinition.decode(reader, reader.uint32());
|
|
746
|
+
continue;
|
|
747
|
+
}
|
|
748
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
749
|
+
break;
|
|
750
|
+
}
|
|
751
|
+
reader.skipType(tag & 7);
|
|
752
|
+
}
|
|
753
|
+
return message;
|
|
754
|
+
},
|
|
755
|
+
|
|
756
|
+
fromJSON(object: any): GetOperatorDefinitionResponse {
|
|
757
|
+
return {
|
|
758
|
+
operatorDefinition: isSet(object.operatorDefinition)
|
|
759
|
+
? OperatorDefinition.fromJSON(object.operatorDefinition)
|
|
760
|
+
: undefined,
|
|
761
|
+
};
|
|
762
|
+
},
|
|
763
|
+
|
|
764
|
+
toJSON(message: GetOperatorDefinitionResponse): unknown {
|
|
765
|
+
const obj: any = {};
|
|
766
|
+
if (message.operatorDefinition !== undefined) {
|
|
767
|
+
obj.operatorDefinition = OperatorDefinition.toJSON(message.operatorDefinition);
|
|
768
|
+
}
|
|
769
|
+
return obj;
|
|
770
|
+
},
|
|
771
|
+
|
|
772
|
+
create<I extends Exact<DeepPartial<GetOperatorDefinitionResponse>, I>>(base?: I): GetOperatorDefinitionResponse {
|
|
773
|
+
return GetOperatorDefinitionResponse.fromPartial(base ?? ({} as any));
|
|
774
|
+
},
|
|
775
|
+
fromPartial<I extends Exact<DeepPartial<GetOperatorDefinitionResponse>, I>>(
|
|
776
|
+
object: I,
|
|
777
|
+
): GetOperatorDefinitionResponse {
|
|
778
|
+
const message = createBaseGetOperatorDefinitionResponse();
|
|
779
|
+
message.operatorDefinition = (object.operatorDefinition !== undefined && object.operatorDefinition !== null)
|
|
780
|
+
? OperatorDefinition.fromPartial(object.operatorDefinition)
|
|
781
|
+
: undefined;
|
|
782
|
+
return message;
|
|
783
|
+
},
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
function createBaseLookUpOperatorDefinitionAdminRequest(): LookUpOperatorDefinitionAdminRequest {
|
|
787
|
+
return { permalink: "", view: undefined };
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
export const LookUpOperatorDefinitionAdminRequest = {
|
|
791
|
+
encode(message: LookUpOperatorDefinitionAdminRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
792
|
+
if (message.permalink !== "") {
|
|
793
|
+
writer.uint32(10).string(message.permalink);
|
|
794
|
+
}
|
|
795
|
+
if (message.view !== undefined) {
|
|
796
|
+
writer.uint32(16).int32(message.view);
|
|
797
|
+
}
|
|
798
|
+
return writer;
|
|
799
|
+
},
|
|
800
|
+
|
|
801
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): LookUpOperatorDefinitionAdminRequest {
|
|
802
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
803
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
804
|
+
const message = createBaseLookUpOperatorDefinitionAdminRequest();
|
|
805
|
+
while (reader.pos < end) {
|
|
806
|
+
const tag = reader.uint32();
|
|
807
|
+
switch (tag >>> 3) {
|
|
808
|
+
case 1:
|
|
809
|
+
if (tag !== 10) {
|
|
810
|
+
break;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
message.permalink = reader.string();
|
|
814
|
+
continue;
|
|
815
|
+
case 2:
|
|
816
|
+
if (tag !== 16) {
|
|
817
|
+
break;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
message.view = reader.int32() as any;
|
|
821
|
+
continue;
|
|
822
|
+
}
|
|
823
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
824
|
+
break;
|
|
825
|
+
}
|
|
826
|
+
reader.skipType(tag & 7);
|
|
827
|
+
}
|
|
828
|
+
return message;
|
|
829
|
+
},
|
|
830
|
+
|
|
831
|
+
fromJSON(object: any): LookUpOperatorDefinitionAdminRequest {
|
|
832
|
+
return {
|
|
833
|
+
permalink: isSet(object.permalink) ? String(object.permalink) : "",
|
|
834
|
+
view: isSet(object.view) ? viewFromJSON(object.view) : undefined,
|
|
835
|
+
};
|
|
836
|
+
},
|
|
837
|
+
|
|
838
|
+
toJSON(message: LookUpOperatorDefinitionAdminRequest): unknown {
|
|
839
|
+
const obj: any = {};
|
|
840
|
+
if (message.permalink !== "") {
|
|
841
|
+
obj.permalink = message.permalink;
|
|
842
|
+
}
|
|
843
|
+
if (message.view !== undefined) {
|
|
844
|
+
obj.view = viewToJSON(message.view);
|
|
845
|
+
}
|
|
846
|
+
return obj;
|
|
847
|
+
},
|
|
848
|
+
|
|
849
|
+
create<I extends Exact<DeepPartial<LookUpOperatorDefinitionAdminRequest>, I>>(
|
|
850
|
+
base?: I,
|
|
851
|
+
): LookUpOperatorDefinitionAdminRequest {
|
|
852
|
+
return LookUpOperatorDefinitionAdminRequest.fromPartial(base ?? ({} as any));
|
|
853
|
+
},
|
|
854
|
+
fromPartial<I extends Exact<DeepPartial<LookUpOperatorDefinitionAdminRequest>, I>>(
|
|
855
|
+
object: I,
|
|
856
|
+
): LookUpOperatorDefinitionAdminRequest {
|
|
857
|
+
const message = createBaseLookUpOperatorDefinitionAdminRequest();
|
|
858
|
+
message.permalink = object.permalink ?? "";
|
|
859
|
+
message.view = object.view ?? undefined;
|
|
860
|
+
return message;
|
|
861
|
+
},
|
|
862
|
+
};
|
|
863
|
+
|
|
864
|
+
function createBaseLookUpOperatorDefinitionAdminResponse(): LookUpOperatorDefinitionAdminResponse {
|
|
865
|
+
return { operatorDefinition: undefined };
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
export const LookUpOperatorDefinitionAdminResponse = {
|
|
869
|
+
encode(message: LookUpOperatorDefinitionAdminResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
870
|
+
if (message.operatorDefinition !== undefined) {
|
|
871
|
+
OperatorDefinition.encode(message.operatorDefinition, writer.uint32(10).fork()).ldelim();
|
|
872
|
+
}
|
|
873
|
+
return writer;
|
|
874
|
+
},
|
|
875
|
+
|
|
876
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): LookUpOperatorDefinitionAdminResponse {
|
|
877
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
878
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
879
|
+
const message = createBaseLookUpOperatorDefinitionAdminResponse();
|
|
880
|
+
while (reader.pos < end) {
|
|
881
|
+
const tag = reader.uint32();
|
|
882
|
+
switch (tag >>> 3) {
|
|
883
|
+
case 1:
|
|
884
|
+
if (tag !== 10) {
|
|
885
|
+
break;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
message.operatorDefinition = OperatorDefinition.decode(reader, reader.uint32());
|
|
889
|
+
continue;
|
|
890
|
+
}
|
|
891
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
892
|
+
break;
|
|
893
|
+
}
|
|
894
|
+
reader.skipType(tag & 7);
|
|
895
|
+
}
|
|
896
|
+
return message;
|
|
897
|
+
},
|
|
898
|
+
|
|
899
|
+
fromJSON(object: any): LookUpOperatorDefinitionAdminResponse {
|
|
900
|
+
return {
|
|
901
|
+
operatorDefinition: isSet(object.operatorDefinition)
|
|
902
|
+
? OperatorDefinition.fromJSON(object.operatorDefinition)
|
|
903
|
+
: undefined,
|
|
904
|
+
};
|
|
905
|
+
},
|
|
906
|
+
|
|
907
|
+
toJSON(message: LookUpOperatorDefinitionAdminResponse): unknown {
|
|
908
|
+
const obj: any = {};
|
|
909
|
+
if (message.operatorDefinition !== undefined) {
|
|
910
|
+
obj.operatorDefinition = OperatorDefinition.toJSON(message.operatorDefinition);
|
|
911
|
+
}
|
|
912
|
+
return obj;
|
|
913
|
+
},
|
|
914
|
+
|
|
915
|
+
create<I extends Exact<DeepPartial<LookUpOperatorDefinitionAdminResponse>, I>>(
|
|
916
|
+
base?: I,
|
|
917
|
+
): LookUpOperatorDefinitionAdminResponse {
|
|
918
|
+
return LookUpOperatorDefinitionAdminResponse.fromPartial(base ?? ({} as any));
|
|
919
|
+
},
|
|
920
|
+
fromPartial<I extends Exact<DeepPartial<LookUpOperatorDefinitionAdminResponse>, I>>(
|
|
921
|
+
object: I,
|
|
922
|
+
): LookUpOperatorDefinitionAdminResponse {
|
|
923
|
+
const message = createBaseLookUpOperatorDefinitionAdminResponse();
|
|
924
|
+
message.operatorDefinition = (object.operatorDefinition !== undefined && object.operatorDefinition !== null)
|
|
925
|
+
? OperatorDefinition.fromPartial(object.operatorDefinition)
|
|
926
|
+
: undefined;
|
|
927
|
+
return message;
|
|
928
|
+
},
|
|
929
|
+
};
|
|
930
|
+
|
|
931
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
932
|
+
|
|
933
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
934
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
935
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
936
|
+
: Partial<T>;
|
|
937
|
+
|
|
938
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
939
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
940
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
941
|
+
|
|
942
|
+
function isObject(value: any): boolean {
|
|
943
|
+
return typeof value === "object" && value !== null;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
function isSet(value: any): boolean {
|
|
947
|
+
return value !== null && value !== undefined;
|
|
948
|
+
}
|