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,2073 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Duration } from "../protobuf/duration";
|
|
4
|
+
import { LaunchStage, launchStageFromJSON, launchStageToJSON } from "./launch_stage";
|
|
5
|
+
|
|
6
|
+
export const protobufPackage = "google.api";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The organization for which the client libraries are being published.
|
|
10
|
+
* Affects the url where generated docs are published, etc.
|
|
11
|
+
*/
|
|
12
|
+
export enum ClientLibraryOrganization {
|
|
13
|
+
/** CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED - Not useful. */
|
|
14
|
+
CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0,
|
|
15
|
+
/** CLOUD - Google Cloud Platform Org. */
|
|
16
|
+
CLOUD = 1,
|
|
17
|
+
/** ADS - Ads (Advertising) Org. */
|
|
18
|
+
ADS = 2,
|
|
19
|
+
/** PHOTOS - Photos Org. */
|
|
20
|
+
PHOTOS = 3,
|
|
21
|
+
/** STREET_VIEW - Street View Org. */
|
|
22
|
+
STREET_VIEW = 4,
|
|
23
|
+
/** SHOPPING - Shopping Org. */
|
|
24
|
+
SHOPPING = 5,
|
|
25
|
+
/** GEO - Geo Org. */
|
|
26
|
+
GEO = 6,
|
|
27
|
+
/** GENERATIVE_AI - Generative AI - https://developers.generativeai.google */
|
|
28
|
+
GENERATIVE_AI = 7,
|
|
29
|
+
UNRECOGNIZED = -1,
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function clientLibraryOrganizationFromJSON(object: any): ClientLibraryOrganization {
|
|
33
|
+
switch (object) {
|
|
34
|
+
case 0:
|
|
35
|
+
case "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED":
|
|
36
|
+
return ClientLibraryOrganization.CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED;
|
|
37
|
+
case 1:
|
|
38
|
+
case "CLOUD":
|
|
39
|
+
return ClientLibraryOrganization.CLOUD;
|
|
40
|
+
case 2:
|
|
41
|
+
case "ADS":
|
|
42
|
+
return ClientLibraryOrganization.ADS;
|
|
43
|
+
case 3:
|
|
44
|
+
case "PHOTOS":
|
|
45
|
+
return ClientLibraryOrganization.PHOTOS;
|
|
46
|
+
case 4:
|
|
47
|
+
case "STREET_VIEW":
|
|
48
|
+
return ClientLibraryOrganization.STREET_VIEW;
|
|
49
|
+
case 5:
|
|
50
|
+
case "SHOPPING":
|
|
51
|
+
return ClientLibraryOrganization.SHOPPING;
|
|
52
|
+
case 6:
|
|
53
|
+
case "GEO":
|
|
54
|
+
return ClientLibraryOrganization.GEO;
|
|
55
|
+
case 7:
|
|
56
|
+
case "GENERATIVE_AI":
|
|
57
|
+
return ClientLibraryOrganization.GENERATIVE_AI;
|
|
58
|
+
case -1:
|
|
59
|
+
case "UNRECOGNIZED":
|
|
60
|
+
default:
|
|
61
|
+
return ClientLibraryOrganization.UNRECOGNIZED;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function clientLibraryOrganizationToJSON(object: ClientLibraryOrganization): string {
|
|
66
|
+
switch (object) {
|
|
67
|
+
case ClientLibraryOrganization.CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED:
|
|
68
|
+
return "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED";
|
|
69
|
+
case ClientLibraryOrganization.CLOUD:
|
|
70
|
+
return "CLOUD";
|
|
71
|
+
case ClientLibraryOrganization.ADS:
|
|
72
|
+
return "ADS";
|
|
73
|
+
case ClientLibraryOrganization.PHOTOS:
|
|
74
|
+
return "PHOTOS";
|
|
75
|
+
case ClientLibraryOrganization.STREET_VIEW:
|
|
76
|
+
return "STREET_VIEW";
|
|
77
|
+
case ClientLibraryOrganization.SHOPPING:
|
|
78
|
+
return "SHOPPING";
|
|
79
|
+
case ClientLibraryOrganization.GEO:
|
|
80
|
+
return "GEO";
|
|
81
|
+
case ClientLibraryOrganization.GENERATIVE_AI:
|
|
82
|
+
return "GENERATIVE_AI";
|
|
83
|
+
case ClientLibraryOrganization.UNRECOGNIZED:
|
|
84
|
+
default:
|
|
85
|
+
return "UNRECOGNIZED";
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** To where should client libraries be published? */
|
|
90
|
+
export enum ClientLibraryDestination {
|
|
91
|
+
/**
|
|
92
|
+
* CLIENT_LIBRARY_DESTINATION_UNSPECIFIED - Client libraries will neither be generated nor published to package
|
|
93
|
+
* managers.
|
|
94
|
+
*/
|
|
95
|
+
CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0,
|
|
96
|
+
/**
|
|
97
|
+
* GITHUB - Generate the client library in a repo under github.com/googleapis,
|
|
98
|
+
* but don't publish it to package managers.
|
|
99
|
+
*/
|
|
100
|
+
GITHUB = 10,
|
|
101
|
+
/** PACKAGE_MANAGER - Publish the library to package managers like nuget.org and npmjs.com. */
|
|
102
|
+
PACKAGE_MANAGER = 20,
|
|
103
|
+
UNRECOGNIZED = -1,
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function clientLibraryDestinationFromJSON(object: any): ClientLibraryDestination {
|
|
107
|
+
switch (object) {
|
|
108
|
+
case 0:
|
|
109
|
+
case "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED":
|
|
110
|
+
return ClientLibraryDestination.CLIENT_LIBRARY_DESTINATION_UNSPECIFIED;
|
|
111
|
+
case 10:
|
|
112
|
+
case "GITHUB":
|
|
113
|
+
return ClientLibraryDestination.GITHUB;
|
|
114
|
+
case 20:
|
|
115
|
+
case "PACKAGE_MANAGER":
|
|
116
|
+
return ClientLibraryDestination.PACKAGE_MANAGER;
|
|
117
|
+
case -1:
|
|
118
|
+
case "UNRECOGNIZED":
|
|
119
|
+
default:
|
|
120
|
+
return ClientLibraryDestination.UNRECOGNIZED;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function clientLibraryDestinationToJSON(object: ClientLibraryDestination): string {
|
|
125
|
+
switch (object) {
|
|
126
|
+
case ClientLibraryDestination.CLIENT_LIBRARY_DESTINATION_UNSPECIFIED:
|
|
127
|
+
return "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED";
|
|
128
|
+
case ClientLibraryDestination.GITHUB:
|
|
129
|
+
return "GITHUB";
|
|
130
|
+
case ClientLibraryDestination.PACKAGE_MANAGER:
|
|
131
|
+
return "PACKAGE_MANAGER";
|
|
132
|
+
case ClientLibraryDestination.UNRECOGNIZED:
|
|
133
|
+
default:
|
|
134
|
+
return "UNRECOGNIZED";
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/** Required information for every language. */
|
|
139
|
+
export interface CommonLanguageSettings {
|
|
140
|
+
/**
|
|
141
|
+
* Link to automatically generated reference documentation. Example:
|
|
142
|
+
* https://cloud.google.com/nodejs/docs/reference/asset/latest
|
|
143
|
+
*
|
|
144
|
+
* @deprecated
|
|
145
|
+
*/
|
|
146
|
+
referenceDocsUri: string;
|
|
147
|
+
/** The destination where API teams want this client library to be published. */
|
|
148
|
+
destinations: ClientLibraryDestination[];
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/** Details about how and where to publish client libraries. */
|
|
152
|
+
export interface ClientLibrarySettings {
|
|
153
|
+
/**
|
|
154
|
+
* Version of the API to apply these settings to. This is the full protobuf
|
|
155
|
+
* package for the API, ending in the version element.
|
|
156
|
+
* Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
|
157
|
+
*/
|
|
158
|
+
version: string;
|
|
159
|
+
/** Launch stage of this version of the API. */
|
|
160
|
+
launchStage: LaunchStage;
|
|
161
|
+
/**
|
|
162
|
+
* When using transport=rest, the client request will encode enums as
|
|
163
|
+
* numbers rather than strings.
|
|
164
|
+
*/
|
|
165
|
+
restNumericEnums: boolean;
|
|
166
|
+
/** Settings for legacy Java features, supported in the Service YAML. */
|
|
167
|
+
javaSettings:
|
|
168
|
+
| JavaSettings
|
|
169
|
+
| undefined;
|
|
170
|
+
/** Settings for C++ client libraries. */
|
|
171
|
+
cppSettings:
|
|
172
|
+
| CppSettings
|
|
173
|
+
| undefined;
|
|
174
|
+
/** Settings for PHP client libraries. */
|
|
175
|
+
phpSettings:
|
|
176
|
+
| PhpSettings
|
|
177
|
+
| undefined;
|
|
178
|
+
/** Settings for Python client libraries. */
|
|
179
|
+
pythonSettings:
|
|
180
|
+
| PythonSettings
|
|
181
|
+
| undefined;
|
|
182
|
+
/** Settings for Node client libraries. */
|
|
183
|
+
nodeSettings:
|
|
184
|
+
| NodeSettings
|
|
185
|
+
| undefined;
|
|
186
|
+
/** Settings for .NET client libraries. */
|
|
187
|
+
dotnetSettings:
|
|
188
|
+
| DotnetSettings
|
|
189
|
+
| undefined;
|
|
190
|
+
/** Settings for Ruby client libraries. */
|
|
191
|
+
rubySettings:
|
|
192
|
+
| RubySettings
|
|
193
|
+
| undefined;
|
|
194
|
+
/** Settings for Go client libraries. */
|
|
195
|
+
goSettings: GoSettings | undefined;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* This message configures the settings for publishing [Google Cloud Client
|
|
200
|
+
* libraries](https://cloud.google.com/apis/docs/cloud-client-libraries)
|
|
201
|
+
* generated from the service config.
|
|
202
|
+
*/
|
|
203
|
+
export interface Publishing {
|
|
204
|
+
/**
|
|
205
|
+
* A list of API method settings, e.g. the behavior for methods that use the
|
|
206
|
+
* long-running operation pattern.
|
|
207
|
+
*/
|
|
208
|
+
methodSettings: MethodSettings[];
|
|
209
|
+
/**
|
|
210
|
+
* Link to a *public* URI where users can report issues. Example:
|
|
211
|
+
* https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
|
212
|
+
*/
|
|
213
|
+
newIssueUri: string;
|
|
214
|
+
/**
|
|
215
|
+
* Link to product home page. Example:
|
|
216
|
+
* https://cloud.google.com/asset-inventory/docs/overview
|
|
217
|
+
*/
|
|
218
|
+
documentationUri: string;
|
|
219
|
+
/**
|
|
220
|
+
* Used as a tracking tag when collecting data about the APIs developer
|
|
221
|
+
* relations artifacts like docs, packages delivered to package managers,
|
|
222
|
+
* etc. Example: "speech".
|
|
223
|
+
*/
|
|
224
|
+
apiShortName: string;
|
|
225
|
+
/** GitHub label to apply to issues and pull requests opened for this API. */
|
|
226
|
+
githubLabel: string;
|
|
227
|
+
/**
|
|
228
|
+
* GitHub teams to be added to CODEOWNERS in the directory in GitHub
|
|
229
|
+
* containing source code for the client libraries for this API.
|
|
230
|
+
*/
|
|
231
|
+
codeownerGithubTeams: string[];
|
|
232
|
+
/**
|
|
233
|
+
* A prefix used in sample code when demarking regions to be included in
|
|
234
|
+
* documentation.
|
|
235
|
+
*/
|
|
236
|
+
docTagPrefix: string;
|
|
237
|
+
/** For whom the client library is being published. */
|
|
238
|
+
organization: ClientLibraryOrganization;
|
|
239
|
+
/**
|
|
240
|
+
* Client library settings. If the same version string appears multiple
|
|
241
|
+
* times in this list, then the last one wins. Settings from earlier
|
|
242
|
+
* settings with the same version string are discarded.
|
|
243
|
+
*/
|
|
244
|
+
librarySettings: ClientLibrarySettings[];
|
|
245
|
+
/**
|
|
246
|
+
* Optional link to proto reference documentation. Example:
|
|
247
|
+
* https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
|
248
|
+
*/
|
|
249
|
+
protoReferenceDocumentationUri: string;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/** Settings for Java client libraries. */
|
|
253
|
+
export interface JavaSettings {
|
|
254
|
+
/**
|
|
255
|
+
* The package name to use in Java. Clobbers the java_package option
|
|
256
|
+
* set in the protobuf. This should be used **only** by APIs
|
|
257
|
+
* who have already set the language_settings.java.package_name" field
|
|
258
|
+
* in gapic.yaml. API teams should use the protobuf java_package option
|
|
259
|
+
* where possible.
|
|
260
|
+
*
|
|
261
|
+
* Example of a YAML configuration::
|
|
262
|
+
*
|
|
263
|
+
* publishing:
|
|
264
|
+
* java_settings:
|
|
265
|
+
* library_package: com.google.cloud.pubsub.v1
|
|
266
|
+
*/
|
|
267
|
+
libraryPackage: string;
|
|
268
|
+
/**
|
|
269
|
+
* Configure the Java class name to use instead of the service's for its
|
|
270
|
+
* corresponding generated GAPIC client. Keys are fully-qualified
|
|
271
|
+
* service names as they appear in the protobuf (including the full
|
|
272
|
+
* the language_settings.java.interface_names" field in gapic.yaml. API
|
|
273
|
+
* teams should otherwise use the service name as it appears in the
|
|
274
|
+
* protobuf.
|
|
275
|
+
*
|
|
276
|
+
* Example of a YAML configuration::
|
|
277
|
+
*
|
|
278
|
+
* publishing:
|
|
279
|
+
* java_settings:
|
|
280
|
+
* service_class_names:
|
|
281
|
+
* - google.pubsub.v1.Publisher: TopicAdmin
|
|
282
|
+
* - google.pubsub.v1.Subscriber: SubscriptionAdmin
|
|
283
|
+
*/
|
|
284
|
+
serviceClassNames: { [key: string]: string };
|
|
285
|
+
/** Some settings. */
|
|
286
|
+
common: CommonLanguageSettings | undefined;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export interface JavaSettings_ServiceClassNamesEntry {
|
|
290
|
+
key: string;
|
|
291
|
+
value: string;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/** Settings for C++ client libraries. */
|
|
295
|
+
export interface CppSettings {
|
|
296
|
+
/** Some settings. */
|
|
297
|
+
common: CommonLanguageSettings | undefined;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/** Settings for Php client libraries. */
|
|
301
|
+
export interface PhpSettings {
|
|
302
|
+
/** Some settings. */
|
|
303
|
+
common: CommonLanguageSettings | undefined;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/** Settings for Python client libraries. */
|
|
307
|
+
export interface PythonSettings {
|
|
308
|
+
/** Some settings. */
|
|
309
|
+
common: CommonLanguageSettings | undefined;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/** Settings for Node client libraries. */
|
|
313
|
+
export interface NodeSettings {
|
|
314
|
+
/** Some settings. */
|
|
315
|
+
common: CommonLanguageSettings | undefined;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/** Settings for Dotnet client libraries. */
|
|
319
|
+
export interface DotnetSettings {
|
|
320
|
+
/** Some settings. */
|
|
321
|
+
common:
|
|
322
|
+
| CommonLanguageSettings
|
|
323
|
+
| undefined;
|
|
324
|
+
/**
|
|
325
|
+
* Map from original service names to renamed versions.
|
|
326
|
+
* This is used when the default generated types
|
|
327
|
+
* would cause a naming conflict. (Neither name is
|
|
328
|
+
* fully-qualified.)
|
|
329
|
+
* Example: Subscriber to SubscriberServiceApi.
|
|
330
|
+
*/
|
|
331
|
+
renamedServices: { [key: string]: string };
|
|
332
|
+
/**
|
|
333
|
+
* Map from full resource types to the effective short name
|
|
334
|
+
* for the resource. This is used when otherwise resource
|
|
335
|
+
* named from different services would cause naming collisions.
|
|
336
|
+
* Example entry:
|
|
337
|
+
* "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
|
338
|
+
*/
|
|
339
|
+
renamedResources: { [key: string]: string };
|
|
340
|
+
/**
|
|
341
|
+
* List of full resource types to ignore during generation.
|
|
342
|
+
* This is typically used for API-specific Location resources,
|
|
343
|
+
* which should be handled by the generator as if they were actually
|
|
344
|
+
* the common Location resources.
|
|
345
|
+
* Example entry: "documentai.googleapis.com/Location"
|
|
346
|
+
*/
|
|
347
|
+
ignoredResources: string[];
|
|
348
|
+
/**
|
|
349
|
+
* Namespaces which must be aliased in snippets due to
|
|
350
|
+
* a known (but non-generator-predictable) naming collision
|
|
351
|
+
*/
|
|
352
|
+
forcedNamespaceAliases: string[];
|
|
353
|
+
/**
|
|
354
|
+
* Method signatures (in the form "service.method(signature)")
|
|
355
|
+
* which are provided separately, so shouldn't be generated.
|
|
356
|
+
* Snippets *calling* these methods are still generated, however.
|
|
357
|
+
*/
|
|
358
|
+
handwrittenSignatures: string[];
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export interface DotnetSettings_RenamedServicesEntry {
|
|
362
|
+
key: string;
|
|
363
|
+
value: string;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
export interface DotnetSettings_RenamedResourcesEntry {
|
|
367
|
+
key: string;
|
|
368
|
+
value: string;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/** Settings for Ruby client libraries. */
|
|
372
|
+
export interface RubySettings {
|
|
373
|
+
/** Some settings. */
|
|
374
|
+
common: CommonLanguageSettings | undefined;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/** Settings for Go client libraries. */
|
|
378
|
+
export interface GoSettings {
|
|
379
|
+
/** Some settings. */
|
|
380
|
+
common: CommonLanguageSettings | undefined;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/** Describes the generator configuration for a method. */
|
|
384
|
+
export interface MethodSettings {
|
|
385
|
+
/**
|
|
386
|
+
* The fully qualified name of the method, for which the options below apply.
|
|
387
|
+
* This is used to find the method to apply the options.
|
|
388
|
+
*/
|
|
389
|
+
selector: string;
|
|
390
|
+
/**
|
|
391
|
+
* Describes settings to use for long-running operations when generating
|
|
392
|
+
* API methods for RPCs. Complements RPCs that use the annotations in
|
|
393
|
+
* google/longrunning/operations.proto.
|
|
394
|
+
*
|
|
395
|
+
* Example of a YAML configuration::
|
|
396
|
+
*
|
|
397
|
+
* publishing:
|
|
398
|
+
* method_settings:
|
|
399
|
+
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
|
400
|
+
* long_running:
|
|
401
|
+
* initial_poll_delay:
|
|
402
|
+
* seconds: 60 # 1 minute
|
|
403
|
+
* poll_delay_multiplier: 1.5
|
|
404
|
+
* max_poll_delay:
|
|
405
|
+
* seconds: 360 # 6 minutes
|
|
406
|
+
* total_poll_timeout:
|
|
407
|
+
* seconds: 54000 # 90 minutes
|
|
408
|
+
*/
|
|
409
|
+
longRunning: MethodSettings_LongRunning | undefined;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Describes settings to use when generating API methods that use the
|
|
414
|
+
* long-running operation pattern.
|
|
415
|
+
* All default values below are from those used in the client library
|
|
416
|
+
* generators (e.g.
|
|
417
|
+
* [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)).
|
|
418
|
+
*/
|
|
419
|
+
export interface MethodSettings_LongRunning {
|
|
420
|
+
/**
|
|
421
|
+
* Initial delay after which the first poll request will be made.
|
|
422
|
+
* Default value: 5 seconds.
|
|
423
|
+
*/
|
|
424
|
+
initialPollDelay:
|
|
425
|
+
| Duration
|
|
426
|
+
| undefined;
|
|
427
|
+
/**
|
|
428
|
+
* Multiplier to gradually increase delay between subsequent polls until it
|
|
429
|
+
* reaches max_poll_delay.
|
|
430
|
+
* Default value: 1.5.
|
|
431
|
+
*/
|
|
432
|
+
pollDelayMultiplier: number;
|
|
433
|
+
/**
|
|
434
|
+
* Maximum time between two subsequent poll requests.
|
|
435
|
+
* Default value: 45 seconds.
|
|
436
|
+
*/
|
|
437
|
+
maxPollDelay:
|
|
438
|
+
| Duration
|
|
439
|
+
| undefined;
|
|
440
|
+
/**
|
|
441
|
+
* Total polling timeout.
|
|
442
|
+
* Default value: 5 minutes.
|
|
443
|
+
*/
|
|
444
|
+
totalPollTimeout: Duration | undefined;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
function createBaseCommonLanguageSettings(): CommonLanguageSettings {
|
|
448
|
+
return { referenceDocsUri: "", destinations: [] };
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
export const CommonLanguageSettings = {
|
|
452
|
+
encode(message: CommonLanguageSettings, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
453
|
+
if (message.referenceDocsUri !== "") {
|
|
454
|
+
writer.uint32(10).string(message.referenceDocsUri);
|
|
455
|
+
}
|
|
456
|
+
writer.uint32(18).fork();
|
|
457
|
+
for (const v of message.destinations) {
|
|
458
|
+
writer.int32(v);
|
|
459
|
+
}
|
|
460
|
+
writer.ldelim();
|
|
461
|
+
return writer;
|
|
462
|
+
},
|
|
463
|
+
|
|
464
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CommonLanguageSettings {
|
|
465
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
466
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
467
|
+
const message = createBaseCommonLanguageSettings();
|
|
468
|
+
while (reader.pos < end) {
|
|
469
|
+
const tag = reader.uint32();
|
|
470
|
+
switch (tag >>> 3) {
|
|
471
|
+
case 1:
|
|
472
|
+
if (tag !== 10) {
|
|
473
|
+
break;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
message.referenceDocsUri = reader.string();
|
|
477
|
+
continue;
|
|
478
|
+
case 2:
|
|
479
|
+
if (tag === 16) {
|
|
480
|
+
message.destinations.push(reader.int32() as any);
|
|
481
|
+
|
|
482
|
+
continue;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
if (tag === 18) {
|
|
486
|
+
const end2 = reader.uint32() + reader.pos;
|
|
487
|
+
while (reader.pos < end2) {
|
|
488
|
+
message.destinations.push(reader.int32() as any);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
continue;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
break;
|
|
495
|
+
}
|
|
496
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
497
|
+
break;
|
|
498
|
+
}
|
|
499
|
+
reader.skipType(tag & 7);
|
|
500
|
+
}
|
|
501
|
+
return message;
|
|
502
|
+
},
|
|
503
|
+
|
|
504
|
+
fromJSON(object: any): CommonLanguageSettings {
|
|
505
|
+
return {
|
|
506
|
+
referenceDocsUri: isSet(object.referenceDocsUri) ? String(object.referenceDocsUri) : "",
|
|
507
|
+
destinations: Array.isArray(object?.destinations)
|
|
508
|
+
? object.destinations.map((e: any) => clientLibraryDestinationFromJSON(e))
|
|
509
|
+
: [],
|
|
510
|
+
};
|
|
511
|
+
},
|
|
512
|
+
|
|
513
|
+
toJSON(message: CommonLanguageSettings): unknown {
|
|
514
|
+
const obj: any = {};
|
|
515
|
+
if (message.referenceDocsUri !== "") {
|
|
516
|
+
obj.referenceDocsUri = message.referenceDocsUri;
|
|
517
|
+
}
|
|
518
|
+
if (message.destinations?.length) {
|
|
519
|
+
obj.destinations = message.destinations.map((e) => clientLibraryDestinationToJSON(e));
|
|
520
|
+
}
|
|
521
|
+
return obj;
|
|
522
|
+
},
|
|
523
|
+
|
|
524
|
+
create<I extends Exact<DeepPartial<CommonLanguageSettings>, I>>(base?: I): CommonLanguageSettings {
|
|
525
|
+
return CommonLanguageSettings.fromPartial(base ?? ({} as any));
|
|
526
|
+
},
|
|
527
|
+
fromPartial<I extends Exact<DeepPartial<CommonLanguageSettings>, I>>(object: I): CommonLanguageSettings {
|
|
528
|
+
const message = createBaseCommonLanguageSettings();
|
|
529
|
+
message.referenceDocsUri = object.referenceDocsUri ?? "";
|
|
530
|
+
message.destinations = object.destinations?.map((e) => e) || [];
|
|
531
|
+
return message;
|
|
532
|
+
},
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
function createBaseClientLibrarySettings(): ClientLibrarySettings {
|
|
536
|
+
return {
|
|
537
|
+
version: "",
|
|
538
|
+
launchStage: 0,
|
|
539
|
+
restNumericEnums: false,
|
|
540
|
+
javaSettings: undefined,
|
|
541
|
+
cppSettings: undefined,
|
|
542
|
+
phpSettings: undefined,
|
|
543
|
+
pythonSettings: undefined,
|
|
544
|
+
nodeSettings: undefined,
|
|
545
|
+
dotnetSettings: undefined,
|
|
546
|
+
rubySettings: undefined,
|
|
547
|
+
goSettings: undefined,
|
|
548
|
+
};
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
export const ClientLibrarySettings = {
|
|
552
|
+
encode(message: ClientLibrarySettings, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
553
|
+
if (message.version !== "") {
|
|
554
|
+
writer.uint32(10).string(message.version);
|
|
555
|
+
}
|
|
556
|
+
if (message.launchStage !== 0) {
|
|
557
|
+
writer.uint32(16).int32(message.launchStage);
|
|
558
|
+
}
|
|
559
|
+
if (message.restNumericEnums === true) {
|
|
560
|
+
writer.uint32(24).bool(message.restNumericEnums);
|
|
561
|
+
}
|
|
562
|
+
if (message.javaSettings !== undefined) {
|
|
563
|
+
JavaSettings.encode(message.javaSettings, writer.uint32(170).fork()).ldelim();
|
|
564
|
+
}
|
|
565
|
+
if (message.cppSettings !== undefined) {
|
|
566
|
+
CppSettings.encode(message.cppSettings, writer.uint32(178).fork()).ldelim();
|
|
567
|
+
}
|
|
568
|
+
if (message.phpSettings !== undefined) {
|
|
569
|
+
PhpSettings.encode(message.phpSettings, writer.uint32(186).fork()).ldelim();
|
|
570
|
+
}
|
|
571
|
+
if (message.pythonSettings !== undefined) {
|
|
572
|
+
PythonSettings.encode(message.pythonSettings, writer.uint32(194).fork()).ldelim();
|
|
573
|
+
}
|
|
574
|
+
if (message.nodeSettings !== undefined) {
|
|
575
|
+
NodeSettings.encode(message.nodeSettings, writer.uint32(202).fork()).ldelim();
|
|
576
|
+
}
|
|
577
|
+
if (message.dotnetSettings !== undefined) {
|
|
578
|
+
DotnetSettings.encode(message.dotnetSettings, writer.uint32(210).fork()).ldelim();
|
|
579
|
+
}
|
|
580
|
+
if (message.rubySettings !== undefined) {
|
|
581
|
+
RubySettings.encode(message.rubySettings, writer.uint32(218).fork()).ldelim();
|
|
582
|
+
}
|
|
583
|
+
if (message.goSettings !== undefined) {
|
|
584
|
+
GoSettings.encode(message.goSettings, writer.uint32(226).fork()).ldelim();
|
|
585
|
+
}
|
|
586
|
+
return writer;
|
|
587
|
+
},
|
|
588
|
+
|
|
589
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ClientLibrarySettings {
|
|
590
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
591
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
592
|
+
const message = createBaseClientLibrarySettings();
|
|
593
|
+
while (reader.pos < end) {
|
|
594
|
+
const tag = reader.uint32();
|
|
595
|
+
switch (tag >>> 3) {
|
|
596
|
+
case 1:
|
|
597
|
+
if (tag !== 10) {
|
|
598
|
+
break;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
message.version = reader.string();
|
|
602
|
+
continue;
|
|
603
|
+
case 2:
|
|
604
|
+
if (tag !== 16) {
|
|
605
|
+
break;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
message.launchStage = reader.int32() as any;
|
|
609
|
+
continue;
|
|
610
|
+
case 3:
|
|
611
|
+
if (tag !== 24) {
|
|
612
|
+
break;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
message.restNumericEnums = reader.bool();
|
|
616
|
+
continue;
|
|
617
|
+
case 21:
|
|
618
|
+
if (tag !== 170) {
|
|
619
|
+
break;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
message.javaSettings = JavaSettings.decode(reader, reader.uint32());
|
|
623
|
+
continue;
|
|
624
|
+
case 22:
|
|
625
|
+
if (tag !== 178) {
|
|
626
|
+
break;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
message.cppSettings = CppSettings.decode(reader, reader.uint32());
|
|
630
|
+
continue;
|
|
631
|
+
case 23:
|
|
632
|
+
if (tag !== 186) {
|
|
633
|
+
break;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
message.phpSettings = PhpSettings.decode(reader, reader.uint32());
|
|
637
|
+
continue;
|
|
638
|
+
case 24:
|
|
639
|
+
if (tag !== 194) {
|
|
640
|
+
break;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
message.pythonSettings = PythonSettings.decode(reader, reader.uint32());
|
|
644
|
+
continue;
|
|
645
|
+
case 25:
|
|
646
|
+
if (tag !== 202) {
|
|
647
|
+
break;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
message.nodeSettings = NodeSettings.decode(reader, reader.uint32());
|
|
651
|
+
continue;
|
|
652
|
+
case 26:
|
|
653
|
+
if (tag !== 210) {
|
|
654
|
+
break;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
message.dotnetSettings = DotnetSettings.decode(reader, reader.uint32());
|
|
658
|
+
continue;
|
|
659
|
+
case 27:
|
|
660
|
+
if (tag !== 218) {
|
|
661
|
+
break;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
message.rubySettings = RubySettings.decode(reader, reader.uint32());
|
|
665
|
+
continue;
|
|
666
|
+
case 28:
|
|
667
|
+
if (tag !== 226) {
|
|
668
|
+
break;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
message.goSettings = GoSettings.decode(reader, reader.uint32());
|
|
672
|
+
continue;
|
|
673
|
+
}
|
|
674
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
675
|
+
break;
|
|
676
|
+
}
|
|
677
|
+
reader.skipType(tag & 7);
|
|
678
|
+
}
|
|
679
|
+
return message;
|
|
680
|
+
},
|
|
681
|
+
|
|
682
|
+
fromJSON(object: any): ClientLibrarySettings {
|
|
683
|
+
return {
|
|
684
|
+
version: isSet(object.version) ? String(object.version) : "",
|
|
685
|
+
launchStage: isSet(object.launchStage) ? launchStageFromJSON(object.launchStage) : 0,
|
|
686
|
+
restNumericEnums: isSet(object.restNumericEnums) ? Boolean(object.restNumericEnums) : false,
|
|
687
|
+
javaSettings: isSet(object.javaSettings) ? JavaSettings.fromJSON(object.javaSettings) : undefined,
|
|
688
|
+
cppSettings: isSet(object.cppSettings) ? CppSettings.fromJSON(object.cppSettings) : undefined,
|
|
689
|
+
phpSettings: isSet(object.phpSettings) ? PhpSettings.fromJSON(object.phpSettings) : undefined,
|
|
690
|
+
pythonSettings: isSet(object.pythonSettings) ? PythonSettings.fromJSON(object.pythonSettings) : undefined,
|
|
691
|
+
nodeSettings: isSet(object.nodeSettings) ? NodeSettings.fromJSON(object.nodeSettings) : undefined,
|
|
692
|
+
dotnetSettings: isSet(object.dotnetSettings) ? DotnetSettings.fromJSON(object.dotnetSettings) : undefined,
|
|
693
|
+
rubySettings: isSet(object.rubySettings) ? RubySettings.fromJSON(object.rubySettings) : undefined,
|
|
694
|
+
goSettings: isSet(object.goSettings) ? GoSettings.fromJSON(object.goSettings) : undefined,
|
|
695
|
+
};
|
|
696
|
+
},
|
|
697
|
+
|
|
698
|
+
toJSON(message: ClientLibrarySettings): unknown {
|
|
699
|
+
const obj: any = {};
|
|
700
|
+
if (message.version !== "") {
|
|
701
|
+
obj.version = message.version;
|
|
702
|
+
}
|
|
703
|
+
if (message.launchStage !== 0) {
|
|
704
|
+
obj.launchStage = launchStageToJSON(message.launchStage);
|
|
705
|
+
}
|
|
706
|
+
if (message.restNumericEnums === true) {
|
|
707
|
+
obj.restNumericEnums = message.restNumericEnums;
|
|
708
|
+
}
|
|
709
|
+
if (message.javaSettings !== undefined) {
|
|
710
|
+
obj.javaSettings = JavaSettings.toJSON(message.javaSettings);
|
|
711
|
+
}
|
|
712
|
+
if (message.cppSettings !== undefined) {
|
|
713
|
+
obj.cppSettings = CppSettings.toJSON(message.cppSettings);
|
|
714
|
+
}
|
|
715
|
+
if (message.phpSettings !== undefined) {
|
|
716
|
+
obj.phpSettings = PhpSettings.toJSON(message.phpSettings);
|
|
717
|
+
}
|
|
718
|
+
if (message.pythonSettings !== undefined) {
|
|
719
|
+
obj.pythonSettings = PythonSettings.toJSON(message.pythonSettings);
|
|
720
|
+
}
|
|
721
|
+
if (message.nodeSettings !== undefined) {
|
|
722
|
+
obj.nodeSettings = NodeSettings.toJSON(message.nodeSettings);
|
|
723
|
+
}
|
|
724
|
+
if (message.dotnetSettings !== undefined) {
|
|
725
|
+
obj.dotnetSettings = DotnetSettings.toJSON(message.dotnetSettings);
|
|
726
|
+
}
|
|
727
|
+
if (message.rubySettings !== undefined) {
|
|
728
|
+
obj.rubySettings = RubySettings.toJSON(message.rubySettings);
|
|
729
|
+
}
|
|
730
|
+
if (message.goSettings !== undefined) {
|
|
731
|
+
obj.goSettings = GoSettings.toJSON(message.goSettings);
|
|
732
|
+
}
|
|
733
|
+
return obj;
|
|
734
|
+
},
|
|
735
|
+
|
|
736
|
+
create<I extends Exact<DeepPartial<ClientLibrarySettings>, I>>(base?: I): ClientLibrarySettings {
|
|
737
|
+
return ClientLibrarySettings.fromPartial(base ?? ({} as any));
|
|
738
|
+
},
|
|
739
|
+
fromPartial<I extends Exact<DeepPartial<ClientLibrarySettings>, I>>(object: I): ClientLibrarySettings {
|
|
740
|
+
const message = createBaseClientLibrarySettings();
|
|
741
|
+
message.version = object.version ?? "";
|
|
742
|
+
message.launchStage = object.launchStage ?? 0;
|
|
743
|
+
message.restNumericEnums = object.restNumericEnums ?? false;
|
|
744
|
+
message.javaSettings = (object.javaSettings !== undefined && object.javaSettings !== null)
|
|
745
|
+
? JavaSettings.fromPartial(object.javaSettings)
|
|
746
|
+
: undefined;
|
|
747
|
+
message.cppSettings = (object.cppSettings !== undefined && object.cppSettings !== null)
|
|
748
|
+
? CppSettings.fromPartial(object.cppSettings)
|
|
749
|
+
: undefined;
|
|
750
|
+
message.phpSettings = (object.phpSettings !== undefined && object.phpSettings !== null)
|
|
751
|
+
? PhpSettings.fromPartial(object.phpSettings)
|
|
752
|
+
: undefined;
|
|
753
|
+
message.pythonSettings = (object.pythonSettings !== undefined && object.pythonSettings !== null)
|
|
754
|
+
? PythonSettings.fromPartial(object.pythonSettings)
|
|
755
|
+
: undefined;
|
|
756
|
+
message.nodeSettings = (object.nodeSettings !== undefined && object.nodeSettings !== null)
|
|
757
|
+
? NodeSettings.fromPartial(object.nodeSettings)
|
|
758
|
+
: undefined;
|
|
759
|
+
message.dotnetSettings = (object.dotnetSettings !== undefined && object.dotnetSettings !== null)
|
|
760
|
+
? DotnetSettings.fromPartial(object.dotnetSettings)
|
|
761
|
+
: undefined;
|
|
762
|
+
message.rubySettings = (object.rubySettings !== undefined && object.rubySettings !== null)
|
|
763
|
+
? RubySettings.fromPartial(object.rubySettings)
|
|
764
|
+
: undefined;
|
|
765
|
+
message.goSettings = (object.goSettings !== undefined && object.goSettings !== null)
|
|
766
|
+
? GoSettings.fromPartial(object.goSettings)
|
|
767
|
+
: undefined;
|
|
768
|
+
return message;
|
|
769
|
+
},
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
function createBasePublishing(): Publishing {
|
|
773
|
+
return {
|
|
774
|
+
methodSettings: [],
|
|
775
|
+
newIssueUri: "",
|
|
776
|
+
documentationUri: "",
|
|
777
|
+
apiShortName: "",
|
|
778
|
+
githubLabel: "",
|
|
779
|
+
codeownerGithubTeams: [],
|
|
780
|
+
docTagPrefix: "",
|
|
781
|
+
organization: 0,
|
|
782
|
+
librarySettings: [],
|
|
783
|
+
protoReferenceDocumentationUri: "",
|
|
784
|
+
};
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
export const Publishing = {
|
|
788
|
+
encode(message: Publishing, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
789
|
+
for (const v of message.methodSettings) {
|
|
790
|
+
MethodSettings.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
791
|
+
}
|
|
792
|
+
if (message.newIssueUri !== "") {
|
|
793
|
+
writer.uint32(810).string(message.newIssueUri);
|
|
794
|
+
}
|
|
795
|
+
if (message.documentationUri !== "") {
|
|
796
|
+
writer.uint32(818).string(message.documentationUri);
|
|
797
|
+
}
|
|
798
|
+
if (message.apiShortName !== "") {
|
|
799
|
+
writer.uint32(826).string(message.apiShortName);
|
|
800
|
+
}
|
|
801
|
+
if (message.githubLabel !== "") {
|
|
802
|
+
writer.uint32(834).string(message.githubLabel);
|
|
803
|
+
}
|
|
804
|
+
for (const v of message.codeownerGithubTeams) {
|
|
805
|
+
writer.uint32(842).string(v!);
|
|
806
|
+
}
|
|
807
|
+
if (message.docTagPrefix !== "") {
|
|
808
|
+
writer.uint32(850).string(message.docTagPrefix);
|
|
809
|
+
}
|
|
810
|
+
if (message.organization !== 0) {
|
|
811
|
+
writer.uint32(856).int32(message.organization);
|
|
812
|
+
}
|
|
813
|
+
for (const v of message.librarySettings) {
|
|
814
|
+
ClientLibrarySettings.encode(v!, writer.uint32(874).fork()).ldelim();
|
|
815
|
+
}
|
|
816
|
+
if (message.protoReferenceDocumentationUri !== "") {
|
|
817
|
+
writer.uint32(882).string(message.protoReferenceDocumentationUri);
|
|
818
|
+
}
|
|
819
|
+
return writer;
|
|
820
|
+
},
|
|
821
|
+
|
|
822
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Publishing {
|
|
823
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
824
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
825
|
+
const message = createBasePublishing();
|
|
826
|
+
while (reader.pos < end) {
|
|
827
|
+
const tag = reader.uint32();
|
|
828
|
+
switch (tag >>> 3) {
|
|
829
|
+
case 2:
|
|
830
|
+
if (tag !== 18) {
|
|
831
|
+
break;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
message.methodSettings.push(MethodSettings.decode(reader, reader.uint32()));
|
|
835
|
+
continue;
|
|
836
|
+
case 101:
|
|
837
|
+
if (tag !== 810) {
|
|
838
|
+
break;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
message.newIssueUri = reader.string();
|
|
842
|
+
continue;
|
|
843
|
+
case 102:
|
|
844
|
+
if (tag !== 818) {
|
|
845
|
+
break;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
message.documentationUri = reader.string();
|
|
849
|
+
continue;
|
|
850
|
+
case 103:
|
|
851
|
+
if (tag !== 826) {
|
|
852
|
+
break;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
message.apiShortName = reader.string();
|
|
856
|
+
continue;
|
|
857
|
+
case 104:
|
|
858
|
+
if (tag !== 834) {
|
|
859
|
+
break;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
message.githubLabel = reader.string();
|
|
863
|
+
continue;
|
|
864
|
+
case 105:
|
|
865
|
+
if (tag !== 842) {
|
|
866
|
+
break;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
message.codeownerGithubTeams.push(reader.string());
|
|
870
|
+
continue;
|
|
871
|
+
case 106:
|
|
872
|
+
if (tag !== 850) {
|
|
873
|
+
break;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
message.docTagPrefix = reader.string();
|
|
877
|
+
continue;
|
|
878
|
+
case 107:
|
|
879
|
+
if (tag !== 856) {
|
|
880
|
+
break;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
message.organization = reader.int32() as any;
|
|
884
|
+
continue;
|
|
885
|
+
case 109:
|
|
886
|
+
if (tag !== 874) {
|
|
887
|
+
break;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
message.librarySettings.push(ClientLibrarySettings.decode(reader, reader.uint32()));
|
|
891
|
+
continue;
|
|
892
|
+
case 110:
|
|
893
|
+
if (tag !== 882) {
|
|
894
|
+
break;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
message.protoReferenceDocumentationUri = reader.string();
|
|
898
|
+
continue;
|
|
899
|
+
}
|
|
900
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
901
|
+
break;
|
|
902
|
+
}
|
|
903
|
+
reader.skipType(tag & 7);
|
|
904
|
+
}
|
|
905
|
+
return message;
|
|
906
|
+
},
|
|
907
|
+
|
|
908
|
+
fromJSON(object: any): Publishing {
|
|
909
|
+
return {
|
|
910
|
+
methodSettings: Array.isArray(object?.methodSettings)
|
|
911
|
+
? object.methodSettings.map((e: any) => MethodSettings.fromJSON(e))
|
|
912
|
+
: [],
|
|
913
|
+
newIssueUri: isSet(object.newIssueUri) ? String(object.newIssueUri) : "",
|
|
914
|
+
documentationUri: isSet(object.documentationUri) ? String(object.documentationUri) : "",
|
|
915
|
+
apiShortName: isSet(object.apiShortName) ? String(object.apiShortName) : "",
|
|
916
|
+
githubLabel: isSet(object.githubLabel) ? String(object.githubLabel) : "",
|
|
917
|
+
codeownerGithubTeams: Array.isArray(object?.codeownerGithubTeams)
|
|
918
|
+
? object.codeownerGithubTeams.map((e: any) => String(e))
|
|
919
|
+
: [],
|
|
920
|
+
docTagPrefix: isSet(object.docTagPrefix) ? String(object.docTagPrefix) : "",
|
|
921
|
+
organization: isSet(object.organization) ? clientLibraryOrganizationFromJSON(object.organization) : 0,
|
|
922
|
+
librarySettings: Array.isArray(object?.librarySettings)
|
|
923
|
+
? object.librarySettings.map((e: any) => ClientLibrarySettings.fromJSON(e))
|
|
924
|
+
: [],
|
|
925
|
+
protoReferenceDocumentationUri: isSet(object.protoReferenceDocumentationUri)
|
|
926
|
+
? String(object.protoReferenceDocumentationUri)
|
|
927
|
+
: "",
|
|
928
|
+
};
|
|
929
|
+
},
|
|
930
|
+
|
|
931
|
+
toJSON(message: Publishing): unknown {
|
|
932
|
+
const obj: any = {};
|
|
933
|
+
if (message.methodSettings?.length) {
|
|
934
|
+
obj.methodSettings = message.methodSettings.map((e) => MethodSettings.toJSON(e));
|
|
935
|
+
}
|
|
936
|
+
if (message.newIssueUri !== "") {
|
|
937
|
+
obj.newIssueUri = message.newIssueUri;
|
|
938
|
+
}
|
|
939
|
+
if (message.documentationUri !== "") {
|
|
940
|
+
obj.documentationUri = message.documentationUri;
|
|
941
|
+
}
|
|
942
|
+
if (message.apiShortName !== "") {
|
|
943
|
+
obj.apiShortName = message.apiShortName;
|
|
944
|
+
}
|
|
945
|
+
if (message.githubLabel !== "") {
|
|
946
|
+
obj.githubLabel = message.githubLabel;
|
|
947
|
+
}
|
|
948
|
+
if (message.codeownerGithubTeams?.length) {
|
|
949
|
+
obj.codeownerGithubTeams = message.codeownerGithubTeams;
|
|
950
|
+
}
|
|
951
|
+
if (message.docTagPrefix !== "") {
|
|
952
|
+
obj.docTagPrefix = message.docTagPrefix;
|
|
953
|
+
}
|
|
954
|
+
if (message.organization !== 0) {
|
|
955
|
+
obj.organization = clientLibraryOrganizationToJSON(message.organization);
|
|
956
|
+
}
|
|
957
|
+
if (message.librarySettings?.length) {
|
|
958
|
+
obj.librarySettings = message.librarySettings.map((e) => ClientLibrarySettings.toJSON(e));
|
|
959
|
+
}
|
|
960
|
+
if (message.protoReferenceDocumentationUri !== "") {
|
|
961
|
+
obj.protoReferenceDocumentationUri = message.protoReferenceDocumentationUri;
|
|
962
|
+
}
|
|
963
|
+
return obj;
|
|
964
|
+
},
|
|
965
|
+
|
|
966
|
+
create<I extends Exact<DeepPartial<Publishing>, I>>(base?: I): Publishing {
|
|
967
|
+
return Publishing.fromPartial(base ?? ({} as any));
|
|
968
|
+
},
|
|
969
|
+
fromPartial<I extends Exact<DeepPartial<Publishing>, I>>(object: I): Publishing {
|
|
970
|
+
const message = createBasePublishing();
|
|
971
|
+
message.methodSettings = object.methodSettings?.map((e) => MethodSettings.fromPartial(e)) || [];
|
|
972
|
+
message.newIssueUri = object.newIssueUri ?? "";
|
|
973
|
+
message.documentationUri = object.documentationUri ?? "";
|
|
974
|
+
message.apiShortName = object.apiShortName ?? "";
|
|
975
|
+
message.githubLabel = object.githubLabel ?? "";
|
|
976
|
+
message.codeownerGithubTeams = object.codeownerGithubTeams?.map((e) => e) || [];
|
|
977
|
+
message.docTagPrefix = object.docTagPrefix ?? "";
|
|
978
|
+
message.organization = object.organization ?? 0;
|
|
979
|
+
message.librarySettings = object.librarySettings?.map((e) => ClientLibrarySettings.fromPartial(e)) || [];
|
|
980
|
+
message.protoReferenceDocumentationUri = object.protoReferenceDocumentationUri ?? "";
|
|
981
|
+
return message;
|
|
982
|
+
},
|
|
983
|
+
};
|
|
984
|
+
|
|
985
|
+
function createBaseJavaSettings(): JavaSettings {
|
|
986
|
+
return { libraryPackage: "", serviceClassNames: {}, common: undefined };
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
export const JavaSettings = {
|
|
990
|
+
encode(message: JavaSettings, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
991
|
+
if (message.libraryPackage !== "") {
|
|
992
|
+
writer.uint32(10).string(message.libraryPackage);
|
|
993
|
+
}
|
|
994
|
+
Object.entries(message.serviceClassNames).forEach(([key, value]) => {
|
|
995
|
+
JavaSettings_ServiceClassNamesEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
|
|
996
|
+
});
|
|
997
|
+
if (message.common !== undefined) {
|
|
998
|
+
CommonLanguageSettings.encode(message.common, writer.uint32(26).fork()).ldelim();
|
|
999
|
+
}
|
|
1000
|
+
return writer;
|
|
1001
|
+
},
|
|
1002
|
+
|
|
1003
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): JavaSettings {
|
|
1004
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1005
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1006
|
+
const message = createBaseJavaSettings();
|
|
1007
|
+
while (reader.pos < end) {
|
|
1008
|
+
const tag = reader.uint32();
|
|
1009
|
+
switch (tag >>> 3) {
|
|
1010
|
+
case 1:
|
|
1011
|
+
if (tag !== 10) {
|
|
1012
|
+
break;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
message.libraryPackage = reader.string();
|
|
1016
|
+
continue;
|
|
1017
|
+
case 2:
|
|
1018
|
+
if (tag !== 18) {
|
|
1019
|
+
break;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
const entry2 = JavaSettings_ServiceClassNamesEntry.decode(reader, reader.uint32());
|
|
1023
|
+
if (entry2.value !== undefined) {
|
|
1024
|
+
message.serviceClassNames[entry2.key] = entry2.value;
|
|
1025
|
+
}
|
|
1026
|
+
continue;
|
|
1027
|
+
case 3:
|
|
1028
|
+
if (tag !== 26) {
|
|
1029
|
+
break;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
message.common = CommonLanguageSettings.decode(reader, reader.uint32());
|
|
1033
|
+
continue;
|
|
1034
|
+
}
|
|
1035
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1036
|
+
break;
|
|
1037
|
+
}
|
|
1038
|
+
reader.skipType(tag & 7);
|
|
1039
|
+
}
|
|
1040
|
+
return message;
|
|
1041
|
+
},
|
|
1042
|
+
|
|
1043
|
+
fromJSON(object: any): JavaSettings {
|
|
1044
|
+
return {
|
|
1045
|
+
libraryPackage: isSet(object.libraryPackage) ? String(object.libraryPackage) : "",
|
|
1046
|
+
serviceClassNames: isObject(object.serviceClassNames)
|
|
1047
|
+
? Object.entries(object.serviceClassNames).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
|
1048
|
+
acc[key] = String(value);
|
|
1049
|
+
return acc;
|
|
1050
|
+
}, {})
|
|
1051
|
+
: {},
|
|
1052
|
+
common: isSet(object.common) ? CommonLanguageSettings.fromJSON(object.common) : undefined,
|
|
1053
|
+
};
|
|
1054
|
+
},
|
|
1055
|
+
|
|
1056
|
+
toJSON(message: JavaSettings): unknown {
|
|
1057
|
+
const obj: any = {};
|
|
1058
|
+
if (message.libraryPackage !== "") {
|
|
1059
|
+
obj.libraryPackage = message.libraryPackage;
|
|
1060
|
+
}
|
|
1061
|
+
if (message.serviceClassNames) {
|
|
1062
|
+
const entries = Object.entries(message.serviceClassNames);
|
|
1063
|
+
if (entries.length > 0) {
|
|
1064
|
+
obj.serviceClassNames = {};
|
|
1065
|
+
entries.forEach(([k, v]) => {
|
|
1066
|
+
obj.serviceClassNames[k] = v;
|
|
1067
|
+
});
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
if (message.common !== undefined) {
|
|
1071
|
+
obj.common = CommonLanguageSettings.toJSON(message.common);
|
|
1072
|
+
}
|
|
1073
|
+
return obj;
|
|
1074
|
+
},
|
|
1075
|
+
|
|
1076
|
+
create<I extends Exact<DeepPartial<JavaSettings>, I>>(base?: I): JavaSettings {
|
|
1077
|
+
return JavaSettings.fromPartial(base ?? ({} as any));
|
|
1078
|
+
},
|
|
1079
|
+
fromPartial<I extends Exact<DeepPartial<JavaSettings>, I>>(object: I): JavaSettings {
|
|
1080
|
+
const message = createBaseJavaSettings();
|
|
1081
|
+
message.libraryPackage = object.libraryPackage ?? "";
|
|
1082
|
+
message.serviceClassNames = Object.entries(object.serviceClassNames ?? {}).reduce<{ [key: string]: string }>(
|
|
1083
|
+
(acc, [key, value]) => {
|
|
1084
|
+
if (value !== undefined) {
|
|
1085
|
+
acc[key] = String(value);
|
|
1086
|
+
}
|
|
1087
|
+
return acc;
|
|
1088
|
+
},
|
|
1089
|
+
{},
|
|
1090
|
+
);
|
|
1091
|
+
message.common = (object.common !== undefined && object.common !== null)
|
|
1092
|
+
? CommonLanguageSettings.fromPartial(object.common)
|
|
1093
|
+
: undefined;
|
|
1094
|
+
return message;
|
|
1095
|
+
},
|
|
1096
|
+
};
|
|
1097
|
+
|
|
1098
|
+
function createBaseJavaSettings_ServiceClassNamesEntry(): JavaSettings_ServiceClassNamesEntry {
|
|
1099
|
+
return { key: "", value: "" };
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
export const JavaSettings_ServiceClassNamesEntry = {
|
|
1103
|
+
encode(message: JavaSettings_ServiceClassNamesEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1104
|
+
if (message.key !== "") {
|
|
1105
|
+
writer.uint32(10).string(message.key);
|
|
1106
|
+
}
|
|
1107
|
+
if (message.value !== "") {
|
|
1108
|
+
writer.uint32(18).string(message.value);
|
|
1109
|
+
}
|
|
1110
|
+
return writer;
|
|
1111
|
+
},
|
|
1112
|
+
|
|
1113
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): JavaSettings_ServiceClassNamesEntry {
|
|
1114
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1115
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1116
|
+
const message = createBaseJavaSettings_ServiceClassNamesEntry();
|
|
1117
|
+
while (reader.pos < end) {
|
|
1118
|
+
const tag = reader.uint32();
|
|
1119
|
+
switch (tag >>> 3) {
|
|
1120
|
+
case 1:
|
|
1121
|
+
if (tag !== 10) {
|
|
1122
|
+
break;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
message.key = reader.string();
|
|
1126
|
+
continue;
|
|
1127
|
+
case 2:
|
|
1128
|
+
if (tag !== 18) {
|
|
1129
|
+
break;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
message.value = reader.string();
|
|
1133
|
+
continue;
|
|
1134
|
+
}
|
|
1135
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1136
|
+
break;
|
|
1137
|
+
}
|
|
1138
|
+
reader.skipType(tag & 7);
|
|
1139
|
+
}
|
|
1140
|
+
return message;
|
|
1141
|
+
},
|
|
1142
|
+
|
|
1143
|
+
fromJSON(object: any): JavaSettings_ServiceClassNamesEntry {
|
|
1144
|
+
return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };
|
|
1145
|
+
},
|
|
1146
|
+
|
|
1147
|
+
toJSON(message: JavaSettings_ServiceClassNamesEntry): unknown {
|
|
1148
|
+
const obj: any = {};
|
|
1149
|
+
if (message.key !== "") {
|
|
1150
|
+
obj.key = message.key;
|
|
1151
|
+
}
|
|
1152
|
+
if (message.value !== "") {
|
|
1153
|
+
obj.value = message.value;
|
|
1154
|
+
}
|
|
1155
|
+
return obj;
|
|
1156
|
+
},
|
|
1157
|
+
|
|
1158
|
+
create<I extends Exact<DeepPartial<JavaSettings_ServiceClassNamesEntry>, I>>(
|
|
1159
|
+
base?: I,
|
|
1160
|
+
): JavaSettings_ServiceClassNamesEntry {
|
|
1161
|
+
return JavaSettings_ServiceClassNamesEntry.fromPartial(base ?? ({} as any));
|
|
1162
|
+
},
|
|
1163
|
+
fromPartial<I extends Exact<DeepPartial<JavaSettings_ServiceClassNamesEntry>, I>>(
|
|
1164
|
+
object: I,
|
|
1165
|
+
): JavaSettings_ServiceClassNamesEntry {
|
|
1166
|
+
const message = createBaseJavaSettings_ServiceClassNamesEntry();
|
|
1167
|
+
message.key = object.key ?? "";
|
|
1168
|
+
message.value = object.value ?? "";
|
|
1169
|
+
return message;
|
|
1170
|
+
},
|
|
1171
|
+
};
|
|
1172
|
+
|
|
1173
|
+
function createBaseCppSettings(): CppSettings {
|
|
1174
|
+
return { common: undefined };
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
export const CppSettings = {
|
|
1178
|
+
encode(message: CppSettings, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1179
|
+
if (message.common !== undefined) {
|
|
1180
|
+
CommonLanguageSettings.encode(message.common, writer.uint32(10).fork()).ldelim();
|
|
1181
|
+
}
|
|
1182
|
+
return writer;
|
|
1183
|
+
},
|
|
1184
|
+
|
|
1185
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CppSettings {
|
|
1186
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1187
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1188
|
+
const message = createBaseCppSettings();
|
|
1189
|
+
while (reader.pos < end) {
|
|
1190
|
+
const tag = reader.uint32();
|
|
1191
|
+
switch (tag >>> 3) {
|
|
1192
|
+
case 1:
|
|
1193
|
+
if (tag !== 10) {
|
|
1194
|
+
break;
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
message.common = CommonLanguageSettings.decode(reader, reader.uint32());
|
|
1198
|
+
continue;
|
|
1199
|
+
}
|
|
1200
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1201
|
+
break;
|
|
1202
|
+
}
|
|
1203
|
+
reader.skipType(tag & 7);
|
|
1204
|
+
}
|
|
1205
|
+
return message;
|
|
1206
|
+
},
|
|
1207
|
+
|
|
1208
|
+
fromJSON(object: any): CppSettings {
|
|
1209
|
+
return { common: isSet(object.common) ? CommonLanguageSettings.fromJSON(object.common) : undefined };
|
|
1210
|
+
},
|
|
1211
|
+
|
|
1212
|
+
toJSON(message: CppSettings): unknown {
|
|
1213
|
+
const obj: any = {};
|
|
1214
|
+
if (message.common !== undefined) {
|
|
1215
|
+
obj.common = CommonLanguageSettings.toJSON(message.common);
|
|
1216
|
+
}
|
|
1217
|
+
return obj;
|
|
1218
|
+
},
|
|
1219
|
+
|
|
1220
|
+
create<I extends Exact<DeepPartial<CppSettings>, I>>(base?: I): CppSettings {
|
|
1221
|
+
return CppSettings.fromPartial(base ?? ({} as any));
|
|
1222
|
+
},
|
|
1223
|
+
fromPartial<I extends Exact<DeepPartial<CppSettings>, I>>(object: I): CppSettings {
|
|
1224
|
+
const message = createBaseCppSettings();
|
|
1225
|
+
message.common = (object.common !== undefined && object.common !== null)
|
|
1226
|
+
? CommonLanguageSettings.fromPartial(object.common)
|
|
1227
|
+
: undefined;
|
|
1228
|
+
return message;
|
|
1229
|
+
},
|
|
1230
|
+
};
|
|
1231
|
+
|
|
1232
|
+
function createBasePhpSettings(): PhpSettings {
|
|
1233
|
+
return { common: undefined };
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
export const PhpSettings = {
|
|
1237
|
+
encode(message: PhpSettings, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1238
|
+
if (message.common !== undefined) {
|
|
1239
|
+
CommonLanguageSettings.encode(message.common, writer.uint32(10).fork()).ldelim();
|
|
1240
|
+
}
|
|
1241
|
+
return writer;
|
|
1242
|
+
},
|
|
1243
|
+
|
|
1244
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PhpSettings {
|
|
1245
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1246
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1247
|
+
const message = createBasePhpSettings();
|
|
1248
|
+
while (reader.pos < end) {
|
|
1249
|
+
const tag = reader.uint32();
|
|
1250
|
+
switch (tag >>> 3) {
|
|
1251
|
+
case 1:
|
|
1252
|
+
if (tag !== 10) {
|
|
1253
|
+
break;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
message.common = CommonLanguageSettings.decode(reader, reader.uint32());
|
|
1257
|
+
continue;
|
|
1258
|
+
}
|
|
1259
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1260
|
+
break;
|
|
1261
|
+
}
|
|
1262
|
+
reader.skipType(tag & 7);
|
|
1263
|
+
}
|
|
1264
|
+
return message;
|
|
1265
|
+
},
|
|
1266
|
+
|
|
1267
|
+
fromJSON(object: any): PhpSettings {
|
|
1268
|
+
return { common: isSet(object.common) ? CommonLanguageSettings.fromJSON(object.common) : undefined };
|
|
1269
|
+
},
|
|
1270
|
+
|
|
1271
|
+
toJSON(message: PhpSettings): unknown {
|
|
1272
|
+
const obj: any = {};
|
|
1273
|
+
if (message.common !== undefined) {
|
|
1274
|
+
obj.common = CommonLanguageSettings.toJSON(message.common);
|
|
1275
|
+
}
|
|
1276
|
+
return obj;
|
|
1277
|
+
},
|
|
1278
|
+
|
|
1279
|
+
create<I extends Exact<DeepPartial<PhpSettings>, I>>(base?: I): PhpSettings {
|
|
1280
|
+
return PhpSettings.fromPartial(base ?? ({} as any));
|
|
1281
|
+
},
|
|
1282
|
+
fromPartial<I extends Exact<DeepPartial<PhpSettings>, I>>(object: I): PhpSettings {
|
|
1283
|
+
const message = createBasePhpSettings();
|
|
1284
|
+
message.common = (object.common !== undefined && object.common !== null)
|
|
1285
|
+
? CommonLanguageSettings.fromPartial(object.common)
|
|
1286
|
+
: undefined;
|
|
1287
|
+
return message;
|
|
1288
|
+
},
|
|
1289
|
+
};
|
|
1290
|
+
|
|
1291
|
+
function createBasePythonSettings(): PythonSettings {
|
|
1292
|
+
return { common: undefined };
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
export const PythonSettings = {
|
|
1296
|
+
encode(message: PythonSettings, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1297
|
+
if (message.common !== undefined) {
|
|
1298
|
+
CommonLanguageSettings.encode(message.common, writer.uint32(10).fork()).ldelim();
|
|
1299
|
+
}
|
|
1300
|
+
return writer;
|
|
1301
|
+
},
|
|
1302
|
+
|
|
1303
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PythonSettings {
|
|
1304
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1305
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1306
|
+
const message = createBasePythonSettings();
|
|
1307
|
+
while (reader.pos < end) {
|
|
1308
|
+
const tag = reader.uint32();
|
|
1309
|
+
switch (tag >>> 3) {
|
|
1310
|
+
case 1:
|
|
1311
|
+
if (tag !== 10) {
|
|
1312
|
+
break;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
message.common = CommonLanguageSettings.decode(reader, reader.uint32());
|
|
1316
|
+
continue;
|
|
1317
|
+
}
|
|
1318
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1319
|
+
break;
|
|
1320
|
+
}
|
|
1321
|
+
reader.skipType(tag & 7);
|
|
1322
|
+
}
|
|
1323
|
+
return message;
|
|
1324
|
+
},
|
|
1325
|
+
|
|
1326
|
+
fromJSON(object: any): PythonSettings {
|
|
1327
|
+
return { common: isSet(object.common) ? CommonLanguageSettings.fromJSON(object.common) : undefined };
|
|
1328
|
+
},
|
|
1329
|
+
|
|
1330
|
+
toJSON(message: PythonSettings): unknown {
|
|
1331
|
+
const obj: any = {};
|
|
1332
|
+
if (message.common !== undefined) {
|
|
1333
|
+
obj.common = CommonLanguageSettings.toJSON(message.common);
|
|
1334
|
+
}
|
|
1335
|
+
return obj;
|
|
1336
|
+
},
|
|
1337
|
+
|
|
1338
|
+
create<I extends Exact<DeepPartial<PythonSettings>, I>>(base?: I): PythonSettings {
|
|
1339
|
+
return PythonSettings.fromPartial(base ?? ({} as any));
|
|
1340
|
+
},
|
|
1341
|
+
fromPartial<I extends Exact<DeepPartial<PythonSettings>, I>>(object: I): PythonSettings {
|
|
1342
|
+
const message = createBasePythonSettings();
|
|
1343
|
+
message.common = (object.common !== undefined && object.common !== null)
|
|
1344
|
+
? CommonLanguageSettings.fromPartial(object.common)
|
|
1345
|
+
: undefined;
|
|
1346
|
+
return message;
|
|
1347
|
+
},
|
|
1348
|
+
};
|
|
1349
|
+
|
|
1350
|
+
function createBaseNodeSettings(): NodeSettings {
|
|
1351
|
+
return { common: undefined };
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
export const NodeSettings = {
|
|
1355
|
+
encode(message: NodeSettings, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1356
|
+
if (message.common !== undefined) {
|
|
1357
|
+
CommonLanguageSettings.encode(message.common, writer.uint32(10).fork()).ldelim();
|
|
1358
|
+
}
|
|
1359
|
+
return writer;
|
|
1360
|
+
},
|
|
1361
|
+
|
|
1362
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): NodeSettings {
|
|
1363
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1364
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1365
|
+
const message = createBaseNodeSettings();
|
|
1366
|
+
while (reader.pos < end) {
|
|
1367
|
+
const tag = reader.uint32();
|
|
1368
|
+
switch (tag >>> 3) {
|
|
1369
|
+
case 1:
|
|
1370
|
+
if (tag !== 10) {
|
|
1371
|
+
break;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
message.common = CommonLanguageSettings.decode(reader, reader.uint32());
|
|
1375
|
+
continue;
|
|
1376
|
+
}
|
|
1377
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1378
|
+
break;
|
|
1379
|
+
}
|
|
1380
|
+
reader.skipType(tag & 7);
|
|
1381
|
+
}
|
|
1382
|
+
return message;
|
|
1383
|
+
},
|
|
1384
|
+
|
|
1385
|
+
fromJSON(object: any): NodeSettings {
|
|
1386
|
+
return { common: isSet(object.common) ? CommonLanguageSettings.fromJSON(object.common) : undefined };
|
|
1387
|
+
},
|
|
1388
|
+
|
|
1389
|
+
toJSON(message: NodeSettings): unknown {
|
|
1390
|
+
const obj: any = {};
|
|
1391
|
+
if (message.common !== undefined) {
|
|
1392
|
+
obj.common = CommonLanguageSettings.toJSON(message.common);
|
|
1393
|
+
}
|
|
1394
|
+
return obj;
|
|
1395
|
+
},
|
|
1396
|
+
|
|
1397
|
+
create<I extends Exact<DeepPartial<NodeSettings>, I>>(base?: I): NodeSettings {
|
|
1398
|
+
return NodeSettings.fromPartial(base ?? ({} as any));
|
|
1399
|
+
},
|
|
1400
|
+
fromPartial<I extends Exact<DeepPartial<NodeSettings>, I>>(object: I): NodeSettings {
|
|
1401
|
+
const message = createBaseNodeSettings();
|
|
1402
|
+
message.common = (object.common !== undefined && object.common !== null)
|
|
1403
|
+
? CommonLanguageSettings.fromPartial(object.common)
|
|
1404
|
+
: undefined;
|
|
1405
|
+
return message;
|
|
1406
|
+
},
|
|
1407
|
+
};
|
|
1408
|
+
|
|
1409
|
+
function createBaseDotnetSettings(): DotnetSettings {
|
|
1410
|
+
return {
|
|
1411
|
+
common: undefined,
|
|
1412
|
+
renamedServices: {},
|
|
1413
|
+
renamedResources: {},
|
|
1414
|
+
ignoredResources: [],
|
|
1415
|
+
forcedNamespaceAliases: [],
|
|
1416
|
+
handwrittenSignatures: [],
|
|
1417
|
+
};
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
export const DotnetSettings = {
|
|
1421
|
+
encode(message: DotnetSettings, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1422
|
+
if (message.common !== undefined) {
|
|
1423
|
+
CommonLanguageSettings.encode(message.common, writer.uint32(10).fork()).ldelim();
|
|
1424
|
+
}
|
|
1425
|
+
Object.entries(message.renamedServices).forEach(([key, value]) => {
|
|
1426
|
+
DotnetSettings_RenamedServicesEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).ldelim();
|
|
1427
|
+
});
|
|
1428
|
+
Object.entries(message.renamedResources).forEach(([key, value]) => {
|
|
1429
|
+
DotnetSettings_RenamedResourcesEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).ldelim();
|
|
1430
|
+
});
|
|
1431
|
+
for (const v of message.ignoredResources) {
|
|
1432
|
+
writer.uint32(34).string(v!);
|
|
1433
|
+
}
|
|
1434
|
+
for (const v of message.forcedNamespaceAliases) {
|
|
1435
|
+
writer.uint32(42).string(v!);
|
|
1436
|
+
}
|
|
1437
|
+
for (const v of message.handwrittenSignatures) {
|
|
1438
|
+
writer.uint32(50).string(v!);
|
|
1439
|
+
}
|
|
1440
|
+
return writer;
|
|
1441
|
+
},
|
|
1442
|
+
|
|
1443
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DotnetSettings {
|
|
1444
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1445
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1446
|
+
const message = createBaseDotnetSettings();
|
|
1447
|
+
while (reader.pos < end) {
|
|
1448
|
+
const tag = reader.uint32();
|
|
1449
|
+
switch (tag >>> 3) {
|
|
1450
|
+
case 1:
|
|
1451
|
+
if (tag !== 10) {
|
|
1452
|
+
break;
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
message.common = CommonLanguageSettings.decode(reader, reader.uint32());
|
|
1456
|
+
continue;
|
|
1457
|
+
case 2:
|
|
1458
|
+
if (tag !== 18) {
|
|
1459
|
+
break;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
const entry2 = DotnetSettings_RenamedServicesEntry.decode(reader, reader.uint32());
|
|
1463
|
+
if (entry2.value !== undefined) {
|
|
1464
|
+
message.renamedServices[entry2.key] = entry2.value;
|
|
1465
|
+
}
|
|
1466
|
+
continue;
|
|
1467
|
+
case 3:
|
|
1468
|
+
if (tag !== 26) {
|
|
1469
|
+
break;
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
const entry3 = DotnetSettings_RenamedResourcesEntry.decode(reader, reader.uint32());
|
|
1473
|
+
if (entry3.value !== undefined) {
|
|
1474
|
+
message.renamedResources[entry3.key] = entry3.value;
|
|
1475
|
+
}
|
|
1476
|
+
continue;
|
|
1477
|
+
case 4:
|
|
1478
|
+
if (tag !== 34) {
|
|
1479
|
+
break;
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
message.ignoredResources.push(reader.string());
|
|
1483
|
+
continue;
|
|
1484
|
+
case 5:
|
|
1485
|
+
if (tag !== 42) {
|
|
1486
|
+
break;
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
message.forcedNamespaceAliases.push(reader.string());
|
|
1490
|
+
continue;
|
|
1491
|
+
case 6:
|
|
1492
|
+
if (tag !== 50) {
|
|
1493
|
+
break;
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
message.handwrittenSignatures.push(reader.string());
|
|
1497
|
+
continue;
|
|
1498
|
+
}
|
|
1499
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1500
|
+
break;
|
|
1501
|
+
}
|
|
1502
|
+
reader.skipType(tag & 7);
|
|
1503
|
+
}
|
|
1504
|
+
return message;
|
|
1505
|
+
},
|
|
1506
|
+
|
|
1507
|
+
fromJSON(object: any): DotnetSettings {
|
|
1508
|
+
return {
|
|
1509
|
+
common: isSet(object.common) ? CommonLanguageSettings.fromJSON(object.common) : undefined,
|
|
1510
|
+
renamedServices: isObject(object.renamedServices)
|
|
1511
|
+
? Object.entries(object.renamedServices).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
|
1512
|
+
acc[key] = String(value);
|
|
1513
|
+
return acc;
|
|
1514
|
+
}, {})
|
|
1515
|
+
: {},
|
|
1516
|
+
renamedResources: isObject(object.renamedResources)
|
|
1517
|
+
? Object.entries(object.renamedResources).reduce<{ [key: string]: string }>((acc, [key, value]) => {
|
|
1518
|
+
acc[key] = String(value);
|
|
1519
|
+
return acc;
|
|
1520
|
+
}, {})
|
|
1521
|
+
: {},
|
|
1522
|
+
ignoredResources: Array.isArray(object?.ignoredResources)
|
|
1523
|
+
? object.ignoredResources.map((e: any) => String(e))
|
|
1524
|
+
: [],
|
|
1525
|
+
forcedNamespaceAliases: Array.isArray(object?.forcedNamespaceAliases)
|
|
1526
|
+
? object.forcedNamespaceAliases.map((e: any) => String(e))
|
|
1527
|
+
: [],
|
|
1528
|
+
handwrittenSignatures: Array.isArray(object?.handwrittenSignatures)
|
|
1529
|
+
? object.handwrittenSignatures.map((e: any) => String(e))
|
|
1530
|
+
: [],
|
|
1531
|
+
};
|
|
1532
|
+
},
|
|
1533
|
+
|
|
1534
|
+
toJSON(message: DotnetSettings): unknown {
|
|
1535
|
+
const obj: any = {};
|
|
1536
|
+
if (message.common !== undefined) {
|
|
1537
|
+
obj.common = CommonLanguageSettings.toJSON(message.common);
|
|
1538
|
+
}
|
|
1539
|
+
if (message.renamedServices) {
|
|
1540
|
+
const entries = Object.entries(message.renamedServices);
|
|
1541
|
+
if (entries.length > 0) {
|
|
1542
|
+
obj.renamedServices = {};
|
|
1543
|
+
entries.forEach(([k, v]) => {
|
|
1544
|
+
obj.renamedServices[k] = v;
|
|
1545
|
+
});
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
if (message.renamedResources) {
|
|
1549
|
+
const entries = Object.entries(message.renamedResources);
|
|
1550
|
+
if (entries.length > 0) {
|
|
1551
|
+
obj.renamedResources = {};
|
|
1552
|
+
entries.forEach(([k, v]) => {
|
|
1553
|
+
obj.renamedResources[k] = v;
|
|
1554
|
+
});
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
if (message.ignoredResources?.length) {
|
|
1558
|
+
obj.ignoredResources = message.ignoredResources;
|
|
1559
|
+
}
|
|
1560
|
+
if (message.forcedNamespaceAliases?.length) {
|
|
1561
|
+
obj.forcedNamespaceAliases = message.forcedNamespaceAliases;
|
|
1562
|
+
}
|
|
1563
|
+
if (message.handwrittenSignatures?.length) {
|
|
1564
|
+
obj.handwrittenSignatures = message.handwrittenSignatures;
|
|
1565
|
+
}
|
|
1566
|
+
return obj;
|
|
1567
|
+
},
|
|
1568
|
+
|
|
1569
|
+
create<I extends Exact<DeepPartial<DotnetSettings>, I>>(base?: I): DotnetSettings {
|
|
1570
|
+
return DotnetSettings.fromPartial(base ?? ({} as any));
|
|
1571
|
+
},
|
|
1572
|
+
fromPartial<I extends Exact<DeepPartial<DotnetSettings>, I>>(object: I): DotnetSettings {
|
|
1573
|
+
const message = createBaseDotnetSettings();
|
|
1574
|
+
message.common = (object.common !== undefined && object.common !== null)
|
|
1575
|
+
? CommonLanguageSettings.fromPartial(object.common)
|
|
1576
|
+
: undefined;
|
|
1577
|
+
message.renamedServices = Object.entries(object.renamedServices ?? {}).reduce<{ [key: string]: string }>(
|
|
1578
|
+
(acc, [key, value]) => {
|
|
1579
|
+
if (value !== undefined) {
|
|
1580
|
+
acc[key] = String(value);
|
|
1581
|
+
}
|
|
1582
|
+
return acc;
|
|
1583
|
+
},
|
|
1584
|
+
{},
|
|
1585
|
+
);
|
|
1586
|
+
message.renamedResources = Object.entries(object.renamedResources ?? {}).reduce<{ [key: string]: string }>(
|
|
1587
|
+
(acc, [key, value]) => {
|
|
1588
|
+
if (value !== undefined) {
|
|
1589
|
+
acc[key] = String(value);
|
|
1590
|
+
}
|
|
1591
|
+
return acc;
|
|
1592
|
+
},
|
|
1593
|
+
{},
|
|
1594
|
+
);
|
|
1595
|
+
message.ignoredResources = object.ignoredResources?.map((e) => e) || [];
|
|
1596
|
+
message.forcedNamespaceAliases = object.forcedNamespaceAliases?.map((e) => e) || [];
|
|
1597
|
+
message.handwrittenSignatures = object.handwrittenSignatures?.map((e) => e) || [];
|
|
1598
|
+
return message;
|
|
1599
|
+
},
|
|
1600
|
+
};
|
|
1601
|
+
|
|
1602
|
+
function createBaseDotnetSettings_RenamedServicesEntry(): DotnetSettings_RenamedServicesEntry {
|
|
1603
|
+
return { key: "", value: "" };
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
export const DotnetSettings_RenamedServicesEntry = {
|
|
1607
|
+
encode(message: DotnetSettings_RenamedServicesEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1608
|
+
if (message.key !== "") {
|
|
1609
|
+
writer.uint32(10).string(message.key);
|
|
1610
|
+
}
|
|
1611
|
+
if (message.value !== "") {
|
|
1612
|
+
writer.uint32(18).string(message.value);
|
|
1613
|
+
}
|
|
1614
|
+
return writer;
|
|
1615
|
+
},
|
|
1616
|
+
|
|
1617
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DotnetSettings_RenamedServicesEntry {
|
|
1618
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1619
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1620
|
+
const message = createBaseDotnetSettings_RenamedServicesEntry();
|
|
1621
|
+
while (reader.pos < end) {
|
|
1622
|
+
const tag = reader.uint32();
|
|
1623
|
+
switch (tag >>> 3) {
|
|
1624
|
+
case 1:
|
|
1625
|
+
if (tag !== 10) {
|
|
1626
|
+
break;
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
message.key = reader.string();
|
|
1630
|
+
continue;
|
|
1631
|
+
case 2:
|
|
1632
|
+
if (tag !== 18) {
|
|
1633
|
+
break;
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
message.value = reader.string();
|
|
1637
|
+
continue;
|
|
1638
|
+
}
|
|
1639
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1640
|
+
break;
|
|
1641
|
+
}
|
|
1642
|
+
reader.skipType(tag & 7);
|
|
1643
|
+
}
|
|
1644
|
+
return message;
|
|
1645
|
+
},
|
|
1646
|
+
|
|
1647
|
+
fromJSON(object: any): DotnetSettings_RenamedServicesEntry {
|
|
1648
|
+
return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };
|
|
1649
|
+
},
|
|
1650
|
+
|
|
1651
|
+
toJSON(message: DotnetSettings_RenamedServicesEntry): unknown {
|
|
1652
|
+
const obj: any = {};
|
|
1653
|
+
if (message.key !== "") {
|
|
1654
|
+
obj.key = message.key;
|
|
1655
|
+
}
|
|
1656
|
+
if (message.value !== "") {
|
|
1657
|
+
obj.value = message.value;
|
|
1658
|
+
}
|
|
1659
|
+
return obj;
|
|
1660
|
+
},
|
|
1661
|
+
|
|
1662
|
+
create<I extends Exact<DeepPartial<DotnetSettings_RenamedServicesEntry>, I>>(
|
|
1663
|
+
base?: I,
|
|
1664
|
+
): DotnetSettings_RenamedServicesEntry {
|
|
1665
|
+
return DotnetSettings_RenamedServicesEntry.fromPartial(base ?? ({} as any));
|
|
1666
|
+
},
|
|
1667
|
+
fromPartial<I extends Exact<DeepPartial<DotnetSettings_RenamedServicesEntry>, I>>(
|
|
1668
|
+
object: I,
|
|
1669
|
+
): DotnetSettings_RenamedServicesEntry {
|
|
1670
|
+
const message = createBaseDotnetSettings_RenamedServicesEntry();
|
|
1671
|
+
message.key = object.key ?? "";
|
|
1672
|
+
message.value = object.value ?? "";
|
|
1673
|
+
return message;
|
|
1674
|
+
},
|
|
1675
|
+
};
|
|
1676
|
+
|
|
1677
|
+
function createBaseDotnetSettings_RenamedResourcesEntry(): DotnetSettings_RenamedResourcesEntry {
|
|
1678
|
+
return { key: "", value: "" };
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
export const DotnetSettings_RenamedResourcesEntry = {
|
|
1682
|
+
encode(message: DotnetSettings_RenamedResourcesEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1683
|
+
if (message.key !== "") {
|
|
1684
|
+
writer.uint32(10).string(message.key);
|
|
1685
|
+
}
|
|
1686
|
+
if (message.value !== "") {
|
|
1687
|
+
writer.uint32(18).string(message.value);
|
|
1688
|
+
}
|
|
1689
|
+
return writer;
|
|
1690
|
+
},
|
|
1691
|
+
|
|
1692
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DotnetSettings_RenamedResourcesEntry {
|
|
1693
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1694
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1695
|
+
const message = createBaseDotnetSettings_RenamedResourcesEntry();
|
|
1696
|
+
while (reader.pos < end) {
|
|
1697
|
+
const tag = reader.uint32();
|
|
1698
|
+
switch (tag >>> 3) {
|
|
1699
|
+
case 1:
|
|
1700
|
+
if (tag !== 10) {
|
|
1701
|
+
break;
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
message.key = reader.string();
|
|
1705
|
+
continue;
|
|
1706
|
+
case 2:
|
|
1707
|
+
if (tag !== 18) {
|
|
1708
|
+
break;
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
message.value = reader.string();
|
|
1712
|
+
continue;
|
|
1713
|
+
}
|
|
1714
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1715
|
+
break;
|
|
1716
|
+
}
|
|
1717
|
+
reader.skipType(tag & 7);
|
|
1718
|
+
}
|
|
1719
|
+
return message;
|
|
1720
|
+
},
|
|
1721
|
+
|
|
1722
|
+
fromJSON(object: any): DotnetSettings_RenamedResourcesEntry {
|
|
1723
|
+
return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };
|
|
1724
|
+
},
|
|
1725
|
+
|
|
1726
|
+
toJSON(message: DotnetSettings_RenamedResourcesEntry): unknown {
|
|
1727
|
+
const obj: any = {};
|
|
1728
|
+
if (message.key !== "") {
|
|
1729
|
+
obj.key = message.key;
|
|
1730
|
+
}
|
|
1731
|
+
if (message.value !== "") {
|
|
1732
|
+
obj.value = message.value;
|
|
1733
|
+
}
|
|
1734
|
+
return obj;
|
|
1735
|
+
},
|
|
1736
|
+
|
|
1737
|
+
create<I extends Exact<DeepPartial<DotnetSettings_RenamedResourcesEntry>, I>>(
|
|
1738
|
+
base?: I,
|
|
1739
|
+
): DotnetSettings_RenamedResourcesEntry {
|
|
1740
|
+
return DotnetSettings_RenamedResourcesEntry.fromPartial(base ?? ({} as any));
|
|
1741
|
+
},
|
|
1742
|
+
fromPartial<I extends Exact<DeepPartial<DotnetSettings_RenamedResourcesEntry>, I>>(
|
|
1743
|
+
object: I,
|
|
1744
|
+
): DotnetSettings_RenamedResourcesEntry {
|
|
1745
|
+
const message = createBaseDotnetSettings_RenamedResourcesEntry();
|
|
1746
|
+
message.key = object.key ?? "";
|
|
1747
|
+
message.value = object.value ?? "";
|
|
1748
|
+
return message;
|
|
1749
|
+
},
|
|
1750
|
+
};
|
|
1751
|
+
|
|
1752
|
+
function createBaseRubySettings(): RubySettings {
|
|
1753
|
+
return { common: undefined };
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
export const RubySettings = {
|
|
1757
|
+
encode(message: RubySettings, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1758
|
+
if (message.common !== undefined) {
|
|
1759
|
+
CommonLanguageSettings.encode(message.common, writer.uint32(10).fork()).ldelim();
|
|
1760
|
+
}
|
|
1761
|
+
return writer;
|
|
1762
|
+
},
|
|
1763
|
+
|
|
1764
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RubySettings {
|
|
1765
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1766
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1767
|
+
const message = createBaseRubySettings();
|
|
1768
|
+
while (reader.pos < end) {
|
|
1769
|
+
const tag = reader.uint32();
|
|
1770
|
+
switch (tag >>> 3) {
|
|
1771
|
+
case 1:
|
|
1772
|
+
if (tag !== 10) {
|
|
1773
|
+
break;
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
message.common = CommonLanguageSettings.decode(reader, reader.uint32());
|
|
1777
|
+
continue;
|
|
1778
|
+
}
|
|
1779
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1780
|
+
break;
|
|
1781
|
+
}
|
|
1782
|
+
reader.skipType(tag & 7);
|
|
1783
|
+
}
|
|
1784
|
+
return message;
|
|
1785
|
+
},
|
|
1786
|
+
|
|
1787
|
+
fromJSON(object: any): RubySettings {
|
|
1788
|
+
return { common: isSet(object.common) ? CommonLanguageSettings.fromJSON(object.common) : undefined };
|
|
1789
|
+
},
|
|
1790
|
+
|
|
1791
|
+
toJSON(message: RubySettings): unknown {
|
|
1792
|
+
const obj: any = {};
|
|
1793
|
+
if (message.common !== undefined) {
|
|
1794
|
+
obj.common = CommonLanguageSettings.toJSON(message.common);
|
|
1795
|
+
}
|
|
1796
|
+
return obj;
|
|
1797
|
+
},
|
|
1798
|
+
|
|
1799
|
+
create<I extends Exact<DeepPartial<RubySettings>, I>>(base?: I): RubySettings {
|
|
1800
|
+
return RubySettings.fromPartial(base ?? ({} as any));
|
|
1801
|
+
},
|
|
1802
|
+
fromPartial<I extends Exact<DeepPartial<RubySettings>, I>>(object: I): RubySettings {
|
|
1803
|
+
const message = createBaseRubySettings();
|
|
1804
|
+
message.common = (object.common !== undefined && object.common !== null)
|
|
1805
|
+
? CommonLanguageSettings.fromPartial(object.common)
|
|
1806
|
+
: undefined;
|
|
1807
|
+
return message;
|
|
1808
|
+
},
|
|
1809
|
+
};
|
|
1810
|
+
|
|
1811
|
+
function createBaseGoSettings(): GoSettings {
|
|
1812
|
+
return { common: undefined };
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
export const GoSettings = {
|
|
1816
|
+
encode(message: GoSettings, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1817
|
+
if (message.common !== undefined) {
|
|
1818
|
+
CommonLanguageSettings.encode(message.common, writer.uint32(10).fork()).ldelim();
|
|
1819
|
+
}
|
|
1820
|
+
return writer;
|
|
1821
|
+
},
|
|
1822
|
+
|
|
1823
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GoSettings {
|
|
1824
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1825
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1826
|
+
const message = createBaseGoSettings();
|
|
1827
|
+
while (reader.pos < end) {
|
|
1828
|
+
const tag = reader.uint32();
|
|
1829
|
+
switch (tag >>> 3) {
|
|
1830
|
+
case 1:
|
|
1831
|
+
if (tag !== 10) {
|
|
1832
|
+
break;
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
message.common = CommonLanguageSettings.decode(reader, reader.uint32());
|
|
1836
|
+
continue;
|
|
1837
|
+
}
|
|
1838
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1839
|
+
break;
|
|
1840
|
+
}
|
|
1841
|
+
reader.skipType(tag & 7);
|
|
1842
|
+
}
|
|
1843
|
+
return message;
|
|
1844
|
+
},
|
|
1845
|
+
|
|
1846
|
+
fromJSON(object: any): GoSettings {
|
|
1847
|
+
return { common: isSet(object.common) ? CommonLanguageSettings.fromJSON(object.common) : undefined };
|
|
1848
|
+
},
|
|
1849
|
+
|
|
1850
|
+
toJSON(message: GoSettings): unknown {
|
|
1851
|
+
const obj: any = {};
|
|
1852
|
+
if (message.common !== undefined) {
|
|
1853
|
+
obj.common = CommonLanguageSettings.toJSON(message.common);
|
|
1854
|
+
}
|
|
1855
|
+
return obj;
|
|
1856
|
+
},
|
|
1857
|
+
|
|
1858
|
+
create<I extends Exact<DeepPartial<GoSettings>, I>>(base?: I): GoSettings {
|
|
1859
|
+
return GoSettings.fromPartial(base ?? ({} as any));
|
|
1860
|
+
},
|
|
1861
|
+
fromPartial<I extends Exact<DeepPartial<GoSettings>, I>>(object: I): GoSettings {
|
|
1862
|
+
const message = createBaseGoSettings();
|
|
1863
|
+
message.common = (object.common !== undefined && object.common !== null)
|
|
1864
|
+
? CommonLanguageSettings.fromPartial(object.common)
|
|
1865
|
+
: undefined;
|
|
1866
|
+
return message;
|
|
1867
|
+
},
|
|
1868
|
+
};
|
|
1869
|
+
|
|
1870
|
+
function createBaseMethodSettings(): MethodSettings {
|
|
1871
|
+
return { selector: "", longRunning: undefined };
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
export const MethodSettings = {
|
|
1875
|
+
encode(message: MethodSettings, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1876
|
+
if (message.selector !== "") {
|
|
1877
|
+
writer.uint32(10).string(message.selector);
|
|
1878
|
+
}
|
|
1879
|
+
if (message.longRunning !== undefined) {
|
|
1880
|
+
MethodSettings_LongRunning.encode(message.longRunning, writer.uint32(18).fork()).ldelim();
|
|
1881
|
+
}
|
|
1882
|
+
return writer;
|
|
1883
|
+
},
|
|
1884
|
+
|
|
1885
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MethodSettings {
|
|
1886
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1887
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1888
|
+
const message = createBaseMethodSettings();
|
|
1889
|
+
while (reader.pos < end) {
|
|
1890
|
+
const tag = reader.uint32();
|
|
1891
|
+
switch (tag >>> 3) {
|
|
1892
|
+
case 1:
|
|
1893
|
+
if (tag !== 10) {
|
|
1894
|
+
break;
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
message.selector = reader.string();
|
|
1898
|
+
continue;
|
|
1899
|
+
case 2:
|
|
1900
|
+
if (tag !== 18) {
|
|
1901
|
+
break;
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
message.longRunning = MethodSettings_LongRunning.decode(reader, reader.uint32());
|
|
1905
|
+
continue;
|
|
1906
|
+
}
|
|
1907
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1908
|
+
break;
|
|
1909
|
+
}
|
|
1910
|
+
reader.skipType(tag & 7);
|
|
1911
|
+
}
|
|
1912
|
+
return message;
|
|
1913
|
+
},
|
|
1914
|
+
|
|
1915
|
+
fromJSON(object: any): MethodSettings {
|
|
1916
|
+
return {
|
|
1917
|
+
selector: isSet(object.selector) ? String(object.selector) : "",
|
|
1918
|
+
longRunning: isSet(object.longRunning) ? MethodSettings_LongRunning.fromJSON(object.longRunning) : undefined,
|
|
1919
|
+
};
|
|
1920
|
+
},
|
|
1921
|
+
|
|
1922
|
+
toJSON(message: MethodSettings): unknown {
|
|
1923
|
+
const obj: any = {};
|
|
1924
|
+
if (message.selector !== "") {
|
|
1925
|
+
obj.selector = message.selector;
|
|
1926
|
+
}
|
|
1927
|
+
if (message.longRunning !== undefined) {
|
|
1928
|
+
obj.longRunning = MethodSettings_LongRunning.toJSON(message.longRunning);
|
|
1929
|
+
}
|
|
1930
|
+
return obj;
|
|
1931
|
+
},
|
|
1932
|
+
|
|
1933
|
+
create<I extends Exact<DeepPartial<MethodSettings>, I>>(base?: I): MethodSettings {
|
|
1934
|
+
return MethodSettings.fromPartial(base ?? ({} as any));
|
|
1935
|
+
},
|
|
1936
|
+
fromPartial<I extends Exact<DeepPartial<MethodSettings>, I>>(object: I): MethodSettings {
|
|
1937
|
+
const message = createBaseMethodSettings();
|
|
1938
|
+
message.selector = object.selector ?? "";
|
|
1939
|
+
message.longRunning = (object.longRunning !== undefined && object.longRunning !== null)
|
|
1940
|
+
? MethodSettings_LongRunning.fromPartial(object.longRunning)
|
|
1941
|
+
: undefined;
|
|
1942
|
+
return message;
|
|
1943
|
+
},
|
|
1944
|
+
};
|
|
1945
|
+
|
|
1946
|
+
function createBaseMethodSettings_LongRunning(): MethodSettings_LongRunning {
|
|
1947
|
+
return { initialPollDelay: undefined, pollDelayMultiplier: 0, maxPollDelay: undefined, totalPollTimeout: undefined };
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
export const MethodSettings_LongRunning = {
|
|
1951
|
+
encode(message: MethodSettings_LongRunning, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1952
|
+
if (message.initialPollDelay !== undefined) {
|
|
1953
|
+
Duration.encode(message.initialPollDelay, writer.uint32(10).fork()).ldelim();
|
|
1954
|
+
}
|
|
1955
|
+
if (message.pollDelayMultiplier !== 0) {
|
|
1956
|
+
writer.uint32(21).float(message.pollDelayMultiplier);
|
|
1957
|
+
}
|
|
1958
|
+
if (message.maxPollDelay !== undefined) {
|
|
1959
|
+
Duration.encode(message.maxPollDelay, writer.uint32(26).fork()).ldelim();
|
|
1960
|
+
}
|
|
1961
|
+
if (message.totalPollTimeout !== undefined) {
|
|
1962
|
+
Duration.encode(message.totalPollTimeout, writer.uint32(34).fork()).ldelim();
|
|
1963
|
+
}
|
|
1964
|
+
return writer;
|
|
1965
|
+
},
|
|
1966
|
+
|
|
1967
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MethodSettings_LongRunning {
|
|
1968
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1969
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1970
|
+
const message = createBaseMethodSettings_LongRunning();
|
|
1971
|
+
while (reader.pos < end) {
|
|
1972
|
+
const tag = reader.uint32();
|
|
1973
|
+
switch (tag >>> 3) {
|
|
1974
|
+
case 1:
|
|
1975
|
+
if (tag !== 10) {
|
|
1976
|
+
break;
|
|
1977
|
+
}
|
|
1978
|
+
|
|
1979
|
+
message.initialPollDelay = Duration.decode(reader, reader.uint32());
|
|
1980
|
+
continue;
|
|
1981
|
+
case 2:
|
|
1982
|
+
if (tag !== 21) {
|
|
1983
|
+
break;
|
|
1984
|
+
}
|
|
1985
|
+
|
|
1986
|
+
message.pollDelayMultiplier = reader.float();
|
|
1987
|
+
continue;
|
|
1988
|
+
case 3:
|
|
1989
|
+
if (tag !== 26) {
|
|
1990
|
+
break;
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
message.maxPollDelay = Duration.decode(reader, reader.uint32());
|
|
1994
|
+
continue;
|
|
1995
|
+
case 4:
|
|
1996
|
+
if (tag !== 34) {
|
|
1997
|
+
break;
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
message.totalPollTimeout = Duration.decode(reader, reader.uint32());
|
|
2001
|
+
continue;
|
|
2002
|
+
}
|
|
2003
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2004
|
+
break;
|
|
2005
|
+
}
|
|
2006
|
+
reader.skipType(tag & 7);
|
|
2007
|
+
}
|
|
2008
|
+
return message;
|
|
2009
|
+
},
|
|
2010
|
+
|
|
2011
|
+
fromJSON(object: any): MethodSettings_LongRunning {
|
|
2012
|
+
return {
|
|
2013
|
+
initialPollDelay: isSet(object.initialPollDelay) ? Duration.fromJSON(object.initialPollDelay) : undefined,
|
|
2014
|
+
pollDelayMultiplier: isSet(object.pollDelayMultiplier) ? Number(object.pollDelayMultiplier) : 0,
|
|
2015
|
+
maxPollDelay: isSet(object.maxPollDelay) ? Duration.fromJSON(object.maxPollDelay) : undefined,
|
|
2016
|
+
totalPollTimeout: isSet(object.totalPollTimeout) ? Duration.fromJSON(object.totalPollTimeout) : undefined,
|
|
2017
|
+
};
|
|
2018
|
+
},
|
|
2019
|
+
|
|
2020
|
+
toJSON(message: MethodSettings_LongRunning): unknown {
|
|
2021
|
+
const obj: any = {};
|
|
2022
|
+
if (message.initialPollDelay !== undefined) {
|
|
2023
|
+
obj.initialPollDelay = Duration.toJSON(message.initialPollDelay);
|
|
2024
|
+
}
|
|
2025
|
+
if (message.pollDelayMultiplier !== 0) {
|
|
2026
|
+
obj.pollDelayMultiplier = message.pollDelayMultiplier;
|
|
2027
|
+
}
|
|
2028
|
+
if (message.maxPollDelay !== undefined) {
|
|
2029
|
+
obj.maxPollDelay = Duration.toJSON(message.maxPollDelay);
|
|
2030
|
+
}
|
|
2031
|
+
if (message.totalPollTimeout !== undefined) {
|
|
2032
|
+
obj.totalPollTimeout = Duration.toJSON(message.totalPollTimeout);
|
|
2033
|
+
}
|
|
2034
|
+
return obj;
|
|
2035
|
+
},
|
|
2036
|
+
|
|
2037
|
+
create<I extends Exact<DeepPartial<MethodSettings_LongRunning>, I>>(base?: I): MethodSettings_LongRunning {
|
|
2038
|
+
return MethodSettings_LongRunning.fromPartial(base ?? ({} as any));
|
|
2039
|
+
},
|
|
2040
|
+
fromPartial<I extends Exact<DeepPartial<MethodSettings_LongRunning>, I>>(object: I): MethodSettings_LongRunning {
|
|
2041
|
+
const message = createBaseMethodSettings_LongRunning();
|
|
2042
|
+
message.initialPollDelay = (object.initialPollDelay !== undefined && object.initialPollDelay !== null)
|
|
2043
|
+
? Duration.fromPartial(object.initialPollDelay)
|
|
2044
|
+
: undefined;
|
|
2045
|
+
message.pollDelayMultiplier = object.pollDelayMultiplier ?? 0;
|
|
2046
|
+
message.maxPollDelay = (object.maxPollDelay !== undefined && object.maxPollDelay !== null)
|
|
2047
|
+
? Duration.fromPartial(object.maxPollDelay)
|
|
2048
|
+
: undefined;
|
|
2049
|
+
message.totalPollTimeout = (object.totalPollTimeout !== undefined && object.totalPollTimeout !== null)
|
|
2050
|
+
? Duration.fromPartial(object.totalPollTimeout)
|
|
2051
|
+
: undefined;
|
|
2052
|
+
return message;
|
|
2053
|
+
},
|
|
2054
|
+
};
|
|
2055
|
+
|
|
2056
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
2057
|
+
|
|
2058
|
+
export type DeepPartial<T> = T extends Builtin ? T
|
|
2059
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
|
2060
|
+
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
2061
|
+
: Partial<T>;
|
|
2062
|
+
|
|
2063
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
2064
|
+
export type Exact<P, I extends P> = P extends Builtin ? P
|
|
2065
|
+
: P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
|
|
2066
|
+
|
|
2067
|
+
function isObject(value: any): boolean {
|
|
2068
|
+
return typeof value === "object" && value !== null;
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2071
|
+
function isSet(value: any): boolean {
|
|
2072
|
+
return value !== null && value !== undefined;
|
|
2073
|
+
}
|