@raystack/proton 0.1.0-ce225175aa066e6f296bc489293bb83ed0edcef6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/google/api/annotations_pb.ts +33 -0
- package/google/api/field_behavior.ts +95 -0
- package/google/api/field_behavior_pb.ts +139 -0
- package/google/api/http.ts +695 -0
- package/google/api/http_pb.ts +547 -0
- package/google/api/httpbody.ts +159 -0
- package/google/api/httpbody_pb.ts +122 -0
- package/google/protobuf/any.ts +322 -0
- package/google/protobuf/descriptor.ts +3475 -0
- package/google/protobuf/duration.ts +231 -0
- package/google/protobuf/struct.ts +484 -0
- package/google/protobuf/timestamp.ts +290 -0
- package/google/protobuf/wrappers.ts +752 -0
- package/package.json +47 -0
- package/protoc-gen-openapiv2/options/annotations_pb.ts +78 -0
- package/protoc-gen-openapiv2/options/openapiv2.ts +3110 -0
- package/protoc-gen-openapiv2/options/openapiv2_pb.ts +1995 -0
- package/raystack/assets/index.ts +29 -0
- package/raystack/assets/v1beta1/bucket.ts +362 -0
- package/raystack/assets/v1beta1/bucket_pb.ts +233 -0
- package/raystack/assets/v1beta1/dashboard.ts +426 -0
- package/raystack/assets/v1beta1/dashboard_pb.ts +275 -0
- package/raystack/assets/v1beta1/event.ts +105 -0
- package/raystack/assets/v1beta1/event_pb.ts +70 -0
- package/raystack/assets/v1beta1/group.ts +223 -0
- package/raystack/assets/v1beta1/group_pb.ts +149 -0
- package/raystack/assets/v1beta1/job.ts +147 -0
- package/raystack/assets/v1beta1/job_pb.ts +100 -0
- package/raystack/assets/v1beta1/lineage.ts +90 -0
- package/raystack/assets/v1beta1/lineage_pb.ts +61 -0
- package/raystack/assets/v1beta1/ownership.ts +179 -0
- package/raystack/assets/v1beta1/ownership_pb.ts +119 -0
- package/raystack/assets/v1beta1/preview.ts +87 -0
- package/raystack/assets/v1beta1/preview_pb.ts +58 -0
- package/raystack/assets/v1beta1/properties.ts +116 -0
- package/raystack/assets/v1beta1/properties_pb.ts +63 -0
- package/raystack/assets/v1beta1/resource.ts +149 -0
- package/raystack/assets/v1beta1/resource_pb.ts +96 -0
- package/raystack/assets/v1beta1/schema.ts +421 -0
- package/raystack/assets/v1beta1/schema_pb.ts +262 -0
- package/raystack/assets/v1beta1/table.ts +408 -0
- package/raystack/assets/v1beta1/table_pb.ts +266 -0
- package/raystack/assets/v1beta1/timestamp.ts +158 -0
- package/raystack/assets/v1beta1/timestamp_pb.ts +107 -0
- package/raystack/assets/v1beta1/topic.ts +253 -0
- package/raystack/assets/v1beta1/topic_pb.ts +171 -0
- package/raystack/assets/v1beta1/user.ts +451 -0
- package/raystack/assets/v1beta1/user_pb.ts +292 -0
- package/raystack/assets/v1beta2/application.ts +125 -0
- package/raystack/assets/v1beta2/application_pb.ts +79 -0
- package/raystack/assets/v1beta2/asset.ts +269 -0
- package/raystack/assets/v1beta2/asset_pb.ts +157 -0
- package/raystack/assets/v1beta2/bucket.ts +341 -0
- package/raystack/assets/v1beta2/bucket_pb.ts +215 -0
- package/raystack/assets/v1beta2/common.ts +392 -0
- package/raystack/assets/v1beta2/common_pb.ts +258 -0
- package/raystack/assets/v1beta2/dashboard.ts +393 -0
- package/raystack/assets/v1beta2/dashboard_pb.ts +247 -0
- package/raystack/assets/v1beta2/experiment.ts +274 -0
- package/raystack/assets/v1beta2/experiment_pb.ts +180 -0
- package/raystack/assets/v1beta2/feature_table.ts +387 -0
- package/raystack/assets/v1beta2/feature_table_pb.ts +237 -0
- package/raystack/assets/v1beta2/group.ts +178 -0
- package/raystack/assets/v1beta2/group_pb.ts +118 -0
- package/raystack/assets/v1beta2/job.ts +99 -0
- package/raystack/assets/v1beta2/job_pb.ts +65 -0
- package/raystack/assets/v1beta2/metric.ts +163 -0
- package/raystack/assets/v1beta2/metric_pb.ts +105 -0
- package/raystack/assets/v1beta2/model.ts +519 -0
- package/raystack/assets/v1beta2/model_pb.ts +322 -0
- package/raystack/assets/v1beta2/table.ts +663 -0
- package/raystack/assets/v1beta2/table_pb.ts +409 -0
- package/raystack/assets/v1beta2/topic.ts +275 -0
- package/raystack/assets/v1beta2/topic_pb.ts +181 -0
- package/raystack/assets/v1beta2/user.ts +433 -0
- package/raystack/assets/v1beta2/user_pb.ts +277 -0
- package/raystack/common/index.ts +3 -0
- package/raystack/common/v1/service-CommonService_connectquery.ts +21 -0
- package/raystack/common/v1/service.client.ts +37 -0
- package/raystack/common/v1/service.ts +245 -0
- package/raystack/common/v1/service_connect.ts +26 -0
- package/raystack/common/v1/service_pb.ts +149 -0
- package/raystack/compass/index.ts +3 -0
- package/raystack/compass/v1beta1/service-CompassService_connectquery.ts +605 -0
- package/raystack/compass/v1beta1/service.client.ts +594 -0
- package/raystack/compass/v1beta1/service.ts +8169 -0
- package/raystack/compass/v1beta1/service_connect.ts +407 -0
- package/raystack/compass/v1beta1/service_pb.ts +4975 -0
- package/raystack/entropy/index.ts +6 -0
- package/raystack/entropy/v1beta1/module-ModuleService_connectquery.ts +77 -0
- package/raystack/entropy/v1beta1/module.client.ts +89 -0
- package/raystack/entropy/v1beta1/module.ts +692 -0
- package/raystack/entropy/v1beta1/module_connect.ts +62 -0
- package/raystack/entropy/v1beta1/module_pb.ts +445 -0
- package/raystack/entropy/v1beta1/resource-ResourceService_connectquery.ts +105 -0
- package/raystack/entropy/v1beta1/resource.client.ts +129 -0
- package/raystack/entropy/v1beta1/resource.ts +1817 -0
- package/raystack/entropy/v1beta1/resource_connect.ts +89 -0
- package/raystack/entropy/v1beta1/resource_pb.ts +1092 -0
- package/raystack/frontier/index.ts +7 -0
- package/raystack/frontier/v1beta1/admin-AdminService_connectquery.ts +756 -0
- package/raystack/frontier/v1beta1/admin.client.ts +849 -0
- package/raystack/frontier/v1beta1/admin.ts +9007 -0
- package/raystack/frontier/v1beta1/admin_connect.ts +573 -0
- package/raystack/frontier/v1beta1/admin_pb.ts +5615 -0
- package/raystack/frontier/v1beta1/frontier-FrontierService_connectquery.ts +2399 -0
- package/raystack/frontier/v1beta1/frontier.client.ts +2307 -0
- package/raystack/frontier/v1beta1/frontier.ts +23706 -0
- package/raystack/frontier/v1beta1/frontier_connect.ts +1574 -0
- package/raystack/frontier/v1beta1/frontier_pb.ts +15258 -0
- package/raystack/frontier/v1beta1/models.ts +7433 -0
- package/raystack/frontier/v1beta1/models_pb.ts +4345 -0
- package/raystack/guardian/index.ts +3 -0
- package/raystack/guardian/v1beta1/guardian-GuardianService_connectquery.ts +569 -0
- package/raystack/guardian/v1beta1/guardian.client.ts +552 -0
- package/raystack/guardian/v1beta1/guardian.ts +9688 -0
- package/raystack/guardian/v1beta1/guardian_connect.ts +381 -0
- package/raystack/guardian/v1beta1/guardian_pb.ts +5858 -0
- package/raystack/optimus/core/v1beta1/backup-BackupService_connectquery.ts +49 -0
- package/raystack/optimus/core/v1beta1/backup.client.ts +63 -0
- package/raystack/optimus/core/v1beta1/backup.ts +708 -0
- package/raystack/optimus/core/v1beta1/backup_connect.ts +44 -0
- package/raystack/optimus/core/v1beta1/backup_pb.ts +406 -0
- package/raystack/optimus/core/v1beta1/job_run-JobRunService_connectquery.ts +71 -0
- package/raystack/optimus/core/v1beta1/job_run.client.ts +96 -0
- package/raystack/optimus/core/v1beta1/job_run.ts +1008 -0
- package/raystack/optimus/core/v1beta1/job_run_connect.ts +63 -0
- package/raystack/optimus/core/v1beta1/job_run_pb.ts +612 -0
- package/raystack/optimus/core/v1beta1/job_spec-JobSpecificationService_connectquery.ts +249 -0
- package/raystack/optimus/core/v1beta1/job_spec.client.ts +363 -0
- package/raystack/optimus/core/v1beta1/job_spec.ts +5134 -0
- package/raystack/optimus/core/v1beta1/job_spec_connect.ts +233 -0
- package/raystack/optimus/core/v1beta1/job_spec_pb.ts +3196 -0
- package/raystack/optimus/core/v1beta1/namespace-NamespaceService_connectquery.ts +55 -0
- package/raystack/optimus/core/v1beta1/namespace.client.ts +75 -0
- package/raystack/optimus/core/v1beta1/namespace.ts +477 -0
- package/raystack/optimus/core/v1beta1/namespace_connect.ts +50 -0
- package/raystack/optimus/core/v1beta1/namespace_pb.ts +291 -0
- package/raystack/optimus/core/v1beta1/project-ProjectService_connectquery.ts +55 -0
- package/raystack/optimus/core/v1beta1/project.client.ts +75 -0
- package/raystack/optimus/core/v1beta1/project.ts +520 -0
- package/raystack/optimus/core/v1beta1/project_connect.ts +50 -0
- package/raystack/optimus/core/v1beta1/project_pb.ts +322 -0
- package/raystack/optimus/core/v1beta1/replay-ReplayService_connectquery.ts +63 -0
- package/raystack/optimus/core/v1beta1/replay.client.ts +76 -0
- package/raystack/optimus/core/v1beta1/replay.ts +881 -0
- package/raystack/optimus/core/v1beta1/replay_connect.ts +53 -0
- package/raystack/optimus/core/v1beta1/replay_pb.ts +522 -0
- package/raystack/optimus/core/v1beta1/resource-ResourceService_connectquery.ts +104 -0
- package/raystack/optimus/core/v1beta1/resource.client.ts +148 -0
- package/raystack/optimus/core/v1beta1/resource.ts +1329 -0
- package/raystack/optimus/core/v1beta1/resource_connect.ts +96 -0
- package/raystack/optimus/core/v1beta1/resource_pb.ts +791 -0
- package/raystack/optimus/core/v1beta1/runtime-RuntimeService_connectquery.ts +23 -0
- package/raystack/optimus/core/v1beta1/runtime.client.ts +45 -0
- package/raystack/optimus/core/v1beta1/runtime.ts +131 -0
- package/raystack/optimus/core/v1beta1/runtime_connect.ts +30 -0
- package/raystack/optimus/core/v1beta1/runtime_pb.ts +82 -0
- package/raystack/optimus/core/v1beta1/secret-SecretService_connectquery.ts +71 -0
- package/raystack/optimus/core/v1beta1/secret.client.ts +92 -0
- package/raystack/optimus/core/v1beta1/secret.ts +619 -0
- package/raystack/optimus/core/v1beta1/secret_connect.ts +61 -0
- package/raystack/optimus/core/v1beta1/secret_pb.ts +393 -0
- package/raystack/optimus/core/v1beta1/status.ts +113 -0
- package/raystack/optimus/core/v1beta1/status_pb.ts +101 -0
- package/raystack/optimus/integration/v1beta1/event.ts +531 -0
- package/raystack/optimus/integration/v1beta1/event_pb.ts +362 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver-DependencyResolverModService_connectquery.ts +72 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver.client.ts +100 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver.ts +950 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver_connect.ts +65 -0
- package/raystack/optimus/plugins/v1beta1/dependency_resolver_pb.ts +604 -0
- package/raystack/predator/index.ts +2 -0
- package/raystack/predator/v1beta1/metrics_log.ts +457 -0
- package/raystack/predator/v1beta1/metrics_log_pb.ts +277 -0
- package/raystack/predator/v1beta1/result_log.ts +390 -0
- package/raystack/predator/v1beta1/result_log_pb.ts +235 -0
- package/raystack/raccoon/index.ts +3 -0
- package/raystack/raccoon/v1beta1/raccoon-EventService_connectquery.ts +21 -0
- package/raystack/raccoon/v1beta1/raccoon.client.ts +37 -0
- package/raystack/raccoon/v1beta1/raccoon.ts +442 -0
- package/raystack/raccoon/v1beta1/raccoon_connect.ts +26 -0
- package/raystack/raccoon/v1beta1/raccoon_pb.ts +324 -0
- package/raystack/siren/index.ts +3 -0
- package/raystack/siren/v1beta1/siren-SirenService_connectquery.ts +497 -0
- package/raystack/siren/v1beta1/siren.client.ts +479 -0
- package/raystack/siren/v1beta1/siren.ts +6507 -0
- package/raystack/siren/v1beta1/siren_connect.ts +332 -0
- package/raystack/siren/v1beta1/siren_pb.ts +3853 -0
- package/raystack/stencil/index.ts +3 -0
- package/raystack/stencil/v1beta1/stencil-StencilService_connectquery.ts +231 -0
- package/raystack/stencil/v1beta1/stencil.client.ts +232 -0
- package/raystack/stencil/v1beta1/stencil.ts +2716 -0
- package/raystack/stencil/v1beta1/stencil_connect.ts +161 -0
- package/raystack/stencil/v1beta1/stencil_pb.ts +1729 -0
- package/validate/validate.ts +4130 -0
- package/validate/validate_pb.ts +2621 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1
|
|
2
|
+
// @generated from protobuf file "google/api/httpbody.proto" (package "google.api", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
// Copyright 2023 Google LLC
|
|
6
|
+
//
|
|
7
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
// you may not use this file except in compliance with the License.
|
|
9
|
+
// You may obtain a copy of the License at
|
|
10
|
+
//
|
|
11
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
//
|
|
13
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
// See the License for the specific language governing permissions and
|
|
17
|
+
// limitations under the License.
|
|
18
|
+
//
|
|
19
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
20
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
21
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
22
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
23
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
24
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
25
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
26
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
27
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
28
|
+
import { Any } from "../protobuf/any";
|
|
29
|
+
/**
|
|
30
|
+
* Message that represents an arbitrary HTTP body. It should only be used for
|
|
31
|
+
* payload formats that can't be represented as JSON, such as raw binary or
|
|
32
|
+
* an HTML page.
|
|
33
|
+
*
|
|
34
|
+
*
|
|
35
|
+
* This message can be used both in streaming and non-streaming API methods in
|
|
36
|
+
* the request as well as the response.
|
|
37
|
+
*
|
|
38
|
+
* It can be used as a top-level request field, which is convenient if one
|
|
39
|
+
* wants to extract parameters from either the URL or HTTP template into the
|
|
40
|
+
* request fields and also want access to the raw HTTP body.
|
|
41
|
+
*
|
|
42
|
+
* Example:
|
|
43
|
+
*
|
|
44
|
+
* message GetResourceRequest {
|
|
45
|
+
* // A unique request id.
|
|
46
|
+
* string request_id = 1;
|
|
47
|
+
*
|
|
48
|
+
* // The raw HTTP body is bound to this field.
|
|
49
|
+
* google.api.HttpBody http_body = 2;
|
|
50
|
+
*
|
|
51
|
+
* }
|
|
52
|
+
*
|
|
53
|
+
* service ResourceService {
|
|
54
|
+
* rpc GetResource(GetResourceRequest)
|
|
55
|
+
* returns (google.api.HttpBody);
|
|
56
|
+
* rpc UpdateResource(google.api.HttpBody)
|
|
57
|
+
* returns (google.protobuf.Empty);
|
|
58
|
+
*
|
|
59
|
+
* }
|
|
60
|
+
*
|
|
61
|
+
* Example with streaming methods:
|
|
62
|
+
*
|
|
63
|
+
* service CaldavService {
|
|
64
|
+
* rpc GetCalendar(stream google.api.HttpBody)
|
|
65
|
+
* returns (stream google.api.HttpBody);
|
|
66
|
+
* rpc UpdateCalendar(stream google.api.HttpBody)
|
|
67
|
+
* returns (stream google.api.HttpBody);
|
|
68
|
+
*
|
|
69
|
+
* }
|
|
70
|
+
*
|
|
71
|
+
* Use of this type only changes how the request and response bodies are
|
|
72
|
+
* handled, all other features will continue to work unchanged.
|
|
73
|
+
*
|
|
74
|
+
* @generated from protobuf message google.api.HttpBody
|
|
75
|
+
*/
|
|
76
|
+
export interface HttpBody {
|
|
77
|
+
/**
|
|
78
|
+
* The HTTP Content-Type header value specifying the content type of the body.
|
|
79
|
+
*
|
|
80
|
+
* @generated from protobuf field: string content_type = 1
|
|
81
|
+
*/
|
|
82
|
+
contentType: string;
|
|
83
|
+
/**
|
|
84
|
+
* The HTTP request/response body as raw binary.
|
|
85
|
+
*
|
|
86
|
+
* @generated from protobuf field: bytes data = 2
|
|
87
|
+
*/
|
|
88
|
+
data: Uint8Array;
|
|
89
|
+
/**
|
|
90
|
+
* Application specific response metadata. Must be set in the first response
|
|
91
|
+
* for streaming APIs.
|
|
92
|
+
*
|
|
93
|
+
* @generated from protobuf field: repeated google.protobuf.Any extensions = 3
|
|
94
|
+
*/
|
|
95
|
+
extensions: Any[];
|
|
96
|
+
}
|
|
97
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
98
|
+
class HttpBody$Type extends MessageType<HttpBody> {
|
|
99
|
+
constructor() {
|
|
100
|
+
super("google.api.HttpBody", [
|
|
101
|
+
{ no: 1, name: "content_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
102
|
+
{ no: 2, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
103
|
+
{ no: 3, name: "extensions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Any }
|
|
104
|
+
]);
|
|
105
|
+
}
|
|
106
|
+
create(value?: PartialMessage<HttpBody>): HttpBody {
|
|
107
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
108
|
+
message.contentType = "";
|
|
109
|
+
message.data = new Uint8Array(0);
|
|
110
|
+
message.extensions = [];
|
|
111
|
+
if (value !== undefined)
|
|
112
|
+
reflectionMergePartial<HttpBody>(this, message, value);
|
|
113
|
+
return message;
|
|
114
|
+
}
|
|
115
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HttpBody): HttpBody {
|
|
116
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
117
|
+
while (reader.pos < end) {
|
|
118
|
+
let [fieldNo, wireType] = reader.tag();
|
|
119
|
+
switch (fieldNo) {
|
|
120
|
+
case /* string content_type */ 1:
|
|
121
|
+
message.contentType = reader.string();
|
|
122
|
+
break;
|
|
123
|
+
case /* bytes data */ 2:
|
|
124
|
+
message.data = reader.bytes();
|
|
125
|
+
break;
|
|
126
|
+
case /* repeated google.protobuf.Any extensions */ 3:
|
|
127
|
+
message.extensions.push(Any.internalBinaryRead(reader, reader.uint32(), options));
|
|
128
|
+
break;
|
|
129
|
+
default:
|
|
130
|
+
let u = options.readUnknownField;
|
|
131
|
+
if (u === "throw")
|
|
132
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
133
|
+
let d = reader.skip(wireType);
|
|
134
|
+
if (u !== false)
|
|
135
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return message;
|
|
139
|
+
}
|
|
140
|
+
internalBinaryWrite(message: HttpBody, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
141
|
+
/* string content_type = 1; */
|
|
142
|
+
if (message.contentType !== "")
|
|
143
|
+
writer.tag(1, WireType.LengthDelimited).string(message.contentType);
|
|
144
|
+
/* bytes data = 2; */
|
|
145
|
+
if (message.data.length)
|
|
146
|
+
writer.tag(2, WireType.LengthDelimited).bytes(message.data);
|
|
147
|
+
/* repeated google.protobuf.Any extensions = 3; */
|
|
148
|
+
for (let i = 0; i < message.extensions.length; i++)
|
|
149
|
+
Any.internalBinaryWrite(message.extensions[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
150
|
+
let u = options.writeUnknownFields;
|
|
151
|
+
if (u !== false)
|
|
152
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
153
|
+
return writer;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* @generated MessageType for protobuf message google.api.HttpBody
|
|
158
|
+
*/
|
|
159
|
+
export const HttpBody = new HttpBody$Type();
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
// Copyright 2023 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
|
|
16
|
+
// @generated from file google/api/httpbody.proto (package google.api, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
// @ts-nocheck
|
|
19
|
+
|
|
20
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
21
|
+
import { Any, Message, proto3 } from "@bufbuild/protobuf";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Message that represents an arbitrary HTTP body. It should only be used for
|
|
25
|
+
* payload formats that can't be represented as JSON, such as raw binary or
|
|
26
|
+
* an HTML page.
|
|
27
|
+
*
|
|
28
|
+
*
|
|
29
|
+
* This message can be used both in streaming and non-streaming API methods in
|
|
30
|
+
* the request as well as the response.
|
|
31
|
+
*
|
|
32
|
+
* It can be used as a top-level request field, which is convenient if one
|
|
33
|
+
* wants to extract parameters from either the URL or HTTP template into the
|
|
34
|
+
* request fields and also want access to the raw HTTP body.
|
|
35
|
+
*
|
|
36
|
+
* Example:
|
|
37
|
+
*
|
|
38
|
+
* message GetResourceRequest {
|
|
39
|
+
* // A unique request id.
|
|
40
|
+
* string request_id = 1;
|
|
41
|
+
*
|
|
42
|
+
* // The raw HTTP body is bound to this field.
|
|
43
|
+
* google.api.HttpBody http_body = 2;
|
|
44
|
+
*
|
|
45
|
+
* }
|
|
46
|
+
*
|
|
47
|
+
* service ResourceService {
|
|
48
|
+
* rpc GetResource(GetResourceRequest)
|
|
49
|
+
* returns (google.api.HttpBody);
|
|
50
|
+
* rpc UpdateResource(google.api.HttpBody)
|
|
51
|
+
* returns (google.protobuf.Empty);
|
|
52
|
+
*
|
|
53
|
+
* }
|
|
54
|
+
*
|
|
55
|
+
* Example with streaming methods:
|
|
56
|
+
*
|
|
57
|
+
* service CaldavService {
|
|
58
|
+
* rpc GetCalendar(stream google.api.HttpBody)
|
|
59
|
+
* returns (stream google.api.HttpBody);
|
|
60
|
+
* rpc UpdateCalendar(stream google.api.HttpBody)
|
|
61
|
+
* returns (stream google.api.HttpBody);
|
|
62
|
+
*
|
|
63
|
+
* }
|
|
64
|
+
*
|
|
65
|
+
* Use of this type only changes how the request and response bodies are
|
|
66
|
+
* handled, all other features will continue to work unchanged.
|
|
67
|
+
*
|
|
68
|
+
* @generated from message google.api.HttpBody
|
|
69
|
+
*/
|
|
70
|
+
export class HttpBody extends Message<HttpBody> {
|
|
71
|
+
/**
|
|
72
|
+
* The HTTP Content-Type header value specifying the content type of the body.
|
|
73
|
+
*
|
|
74
|
+
* @generated from field: string content_type = 1;
|
|
75
|
+
*/
|
|
76
|
+
contentType = "";
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* The HTTP request/response body as raw binary.
|
|
80
|
+
*
|
|
81
|
+
* @generated from field: bytes data = 2;
|
|
82
|
+
*/
|
|
83
|
+
data = new Uint8Array(0);
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Application specific response metadata. Must be set in the first response
|
|
87
|
+
* for streaming APIs.
|
|
88
|
+
*
|
|
89
|
+
* @generated from field: repeated google.protobuf.Any extensions = 3;
|
|
90
|
+
*/
|
|
91
|
+
extensions: Any[] = [];
|
|
92
|
+
|
|
93
|
+
constructor(data?: PartialMessage<HttpBody>) {
|
|
94
|
+
super();
|
|
95
|
+
proto3.util.initPartial(data, this);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
99
|
+
static readonly typeName = "google.api.HttpBody";
|
|
100
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
101
|
+
{ no: 1, name: "content_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
102
|
+
{ no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
103
|
+
{ no: 3, name: "extensions", kind: "message", T: Any, repeated: true },
|
|
104
|
+
]);
|
|
105
|
+
|
|
106
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HttpBody {
|
|
107
|
+
return new HttpBody().fromBinary(bytes, options);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HttpBody {
|
|
111
|
+
return new HttpBody().fromJson(jsonValue, options);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HttpBody {
|
|
115
|
+
return new HttpBody().fromJsonString(jsonString, options);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
static equals(a: HttpBody | PlainMessage<HttpBody> | undefined, b: HttpBody | PlainMessage<HttpBody> | undefined): boolean {
|
|
119
|
+
return proto3.util.equals(HttpBody, a, b);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1
|
|
2
|
+
// @generated from protobuf file "google/protobuf/any.proto" (package "google.protobuf", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
// Protocol Buffers - Google's data interchange format
|
|
6
|
+
// Copyright 2008 Google Inc. All rights reserved.
|
|
7
|
+
// https://developers.google.com/protocol-buffers/
|
|
8
|
+
//
|
|
9
|
+
// Redistribution and use in source and binary forms, with or without
|
|
10
|
+
// modification, are permitted provided that the following conditions are
|
|
11
|
+
// met:
|
|
12
|
+
//
|
|
13
|
+
// * Redistributions of source code must retain the above copyright
|
|
14
|
+
// notice, this list of conditions and the following disclaimer.
|
|
15
|
+
// * Redistributions in binary form must reproduce the above
|
|
16
|
+
// copyright notice, this list of conditions and the following disclaimer
|
|
17
|
+
// in the documentation and/or other materials provided with the
|
|
18
|
+
// distribution.
|
|
19
|
+
// * Neither the name of Google Inc. nor the names of its
|
|
20
|
+
// contributors may be used to endorse or promote products derived from
|
|
21
|
+
// this software without specific prior written permission.
|
|
22
|
+
//
|
|
23
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
24
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
25
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
26
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
27
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
28
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
29
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
30
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
31
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
32
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
33
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
34
|
+
//
|
|
35
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
36
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
37
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
38
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
39
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
40
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
41
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
42
|
+
import { isJsonObject } from "@protobuf-ts/runtime";
|
|
43
|
+
import { typeofJsonValue } from "@protobuf-ts/runtime";
|
|
44
|
+
import type { JsonValue } from "@protobuf-ts/runtime";
|
|
45
|
+
import { jsonWriteOptions } from "@protobuf-ts/runtime";
|
|
46
|
+
import type { JsonReadOptions } from "@protobuf-ts/runtime";
|
|
47
|
+
import type { JsonWriteOptions } from "@protobuf-ts/runtime";
|
|
48
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
49
|
+
import type { IMessageType } from "@protobuf-ts/runtime";
|
|
50
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
51
|
+
/**
|
|
52
|
+
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
53
|
+
* URL that describes the type of the serialized message.
|
|
54
|
+
*
|
|
55
|
+
* Protobuf library provides support to pack/unpack Any values in the form
|
|
56
|
+
* of utility functions or additional generated methods of the Any type.
|
|
57
|
+
*
|
|
58
|
+
* Example 1: Pack and unpack a message in C++.
|
|
59
|
+
*
|
|
60
|
+
* Foo foo = ...;
|
|
61
|
+
* Any any;
|
|
62
|
+
* any.PackFrom(foo);
|
|
63
|
+
* ...
|
|
64
|
+
* if (any.UnpackTo(&foo)) {
|
|
65
|
+
* ...
|
|
66
|
+
* }
|
|
67
|
+
*
|
|
68
|
+
* Example 2: Pack and unpack a message in Java.
|
|
69
|
+
*
|
|
70
|
+
* Foo foo = ...;
|
|
71
|
+
* Any any = Any.pack(foo);
|
|
72
|
+
* ...
|
|
73
|
+
* if (any.is(Foo.class)) {
|
|
74
|
+
* foo = any.unpack(Foo.class);
|
|
75
|
+
* }
|
|
76
|
+
*
|
|
77
|
+
* Example 3: Pack and unpack a message in Python.
|
|
78
|
+
*
|
|
79
|
+
* foo = Foo(...)
|
|
80
|
+
* any = Any()
|
|
81
|
+
* any.Pack(foo)
|
|
82
|
+
* ...
|
|
83
|
+
* if any.Is(Foo.DESCRIPTOR):
|
|
84
|
+
* any.Unpack(foo)
|
|
85
|
+
* ...
|
|
86
|
+
*
|
|
87
|
+
* Example 4: Pack and unpack a message in Go
|
|
88
|
+
*
|
|
89
|
+
* foo := &pb.Foo{...}
|
|
90
|
+
* any, err := anypb.New(foo)
|
|
91
|
+
* if err != nil {
|
|
92
|
+
* ...
|
|
93
|
+
* }
|
|
94
|
+
* ...
|
|
95
|
+
* foo := &pb.Foo{}
|
|
96
|
+
* if err := any.UnmarshalTo(foo); err != nil {
|
|
97
|
+
* ...
|
|
98
|
+
* }
|
|
99
|
+
*
|
|
100
|
+
* The pack methods provided by protobuf library will by default use
|
|
101
|
+
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
102
|
+
* methods only use the fully qualified type name after the last '/'
|
|
103
|
+
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
104
|
+
* name "y.z".
|
|
105
|
+
*
|
|
106
|
+
*
|
|
107
|
+
* JSON
|
|
108
|
+
*
|
|
109
|
+
* The JSON representation of an `Any` value uses the regular
|
|
110
|
+
* representation of the deserialized, embedded message, with an
|
|
111
|
+
* additional field `@type` which contains the type URL. Example:
|
|
112
|
+
*
|
|
113
|
+
* package google.profile;
|
|
114
|
+
* message Person {
|
|
115
|
+
* string first_name = 1;
|
|
116
|
+
* string last_name = 2;
|
|
117
|
+
* }
|
|
118
|
+
*
|
|
119
|
+
* {
|
|
120
|
+
* "@type": "type.googleapis.com/google.profile.Person",
|
|
121
|
+
* "firstName": <string>,
|
|
122
|
+
* "lastName": <string>
|
|
123
|
+
* }
|
|
124
|
+
*
|
|
125
|
+
* If the embedded message type is well-known and has a custom JSON
|
|
126
|
+
* representation, that representation will be embedded adding a field
|
|
127
|
+
* `value` which holds the custom JSON in addition to the `@type`
|
|
128
|
+
* field. Example (for message [google.protobuf.Duration][]):
|
|
129
|
+
*
|
|
130
|
+
* {
|
|
131
|
+
* "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
132
|
+
* "value": "1.212s"
|
|
133
|
+
* }
|
|
134
|
+
*
|
|
135
|
+
*
|
|
136
|
+
* @generated from protobuf message google.protobuf.Any
|
|
137
|
+
*/
|
|
138
|
+
export interface Any {
|
|
139
|
+
/**
|
|
140
|
+
* A URL/resource name that uniquely identifies the type of the serialized
|
|
141
|
+
* protocol buffer message. This string must contain at least
|
|
142
|
+
* one "/" character. The last segment of the URL's path must represent
|
|
143
|
+
* the fully qualified name of the type (as in
|
|
144
|
+
* `path/google.protobuf.Duration`). The name should be in a canonical form
|
|
145
|
+
* (e.g., leading "." is not accepted).
|
|
146
|
+
*
|
|
147
|
+
* In practice, teams usually precompile into the binary all types that they
|
|
148
|
+
* expect it to use in the context of Any. However, for URLs which use the
|
|
149
|
+
* scheme `http`, `https`, or no scheme, one can optionally set up a type
|
|
150
|
+
* server that maps type URLs to message definitions as follows:
|
|
151
|
+
*
|
|
152
|
+
* * If no scheme is provided, `https` is assumed.
|
|
153
|
+
* * An HTTP GET on the URL must yield a [google.protobuf.Type][]
|
|
154
|
+
* value in binary format, or produce an error.
|
|
155
|
+
* * Applications are allowed to cache lookup results based on the
|
|
156
|
+
* URL, or have them precompiled into a binary to avoid any
|
|
157
|
+
* lookup. Therefore, binary compatibility needs to be preserved
|
|
158
|
+
* on changes to types. (Use versioned type names to manage
|
|
159
|
+
* breaking changes.)
|
|
160
|
+
*
|
|
161
|
+
* Note: this functionality is not currently available in the official
|
|
162
|
+
* protobuf release, and it is not used for type URLs beginning with
|
|
163
|
+
* type.googleapis.com.
|
|
164
|
+
*
|
|
165
|
+
* Schemes other than `http`, `https` (or the empty scheme) might be
|
|
166
|
+
* used with implementation specific semantics.
|
|
167
|
+
*
|
|
168
|
+
*
|
|
169
|
+
* @generated from protobuf field: string type_url = 1
|
|
170
|
+
*/
|
|
171
|
+
typeUrl: string;
|
|
172
|
+
/**
|
|
173
|
+
* Must be a valid serialized protocol buffer of the above specified type.
|
|
174
|
+
*
|
|
175
|
+
* @generated from protobuf field: bytes value = 2
|
|
176
|
+
*/
|
|
177
|
+
value: Uint8Array;
|
|
178
|
+
}
|
|
179
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
180
|
+
class Any$Type extends MessageType<Any> {
|
|
181
|
+
constructor() {
|
|
182
|
+
super("google.protobuf.Any", [
|
|
183
|
+
{ no: 1, name: "type_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
184
|
+
{ no: 2, name: "value", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
185
|
+
]);
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Pack the message into a new `Any`.
|
|
189
|
+
*
|
|
190
|
+
* Uses 'type.googleapis.com/full.type.name' as the type URL.
|
|
191
|
+
*/
|
|
192
|
+
pack<T extends object>(message: T, type: IMessageType<T>): Any {
|
|
193
|
+
return {
|
|
194
|
+
typeUrl: this.typeNameToUrl(type.typeName), value: type.toBinary(message),
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Unpack the message from the `Any`.
|
|
199
|
+
*/
|
|
200
|
+
unpack<T extends object>(any: Any, type: IMessageType<T>, options?: Partial<BinaryReadOptions>): T {
|
|
201
|
+
if (!this.contains(any, type))
|
|
202
|
+
throw new Error("Cannot unpack google.protobuf.Any with typeUrl '" + any.typeUrl + "' as " + type.typeName + ".");
|
|
203
|
+
return type.fromBinary(any.value, options);
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Does the given `Any` contain a packed message of the given type?
|
|
207
|
+
*/
|
|
208
|
+
contains(any: Any, type: IMessageType<any> | string): boolean {
|
|
209
|
+
if (!any.typeUrl.length)
|
|
210
|
+
return false;
|
|
211
|
+
let wants = typeof type == "string" ? type : type.typeName;
|
|
212
|
+
let has = this.typeUrlToName(any.typeUrl);
|
|
213
|
+
return wants === has;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Convert the message to canonical JSON value.
|
|
217
|
+
*
|
|
218
|
+
* You have to provide the `typeRegistry` option so that the
|
|
219
|
+
* packed message can be converted to JSON.
|
|
220
|
+
*
|
|
221
|
+
* The `typeRegistry` option is also required to read
|
|
222
|
+
* `google.protobuf.Any` from JSON format.
|
|
223
|
+
*/
|
|
224
|
+
internalJsonWrite(any: Any, options: JsonWriteOptions): JsonValue {
|
|
225
|
+
if (any.typeUrl === "")
|
|
226
|
+
return {};
|
|
227
|
+
let typeName = this.typeUrlToName(any.typeUrl);
|
|
228
|
+
let opt = jsonWriteOptions(options);
|
|
229
|
+
let type = opt.typeRegistry?.find(t => t.typeName === typeName);
|
|
230
|
+
if (!type)
|
|
231
|
+
throw new globalThis.Error("Unable to convert google.protobuf.Any with typeUrl '" + any.typeUrl + "' to JSON. The specified type " + typeName + " is not available in the type registry.");
|
|
232
|
+
let value = type.fromBinary(any.value, { readUnknownField: false });
|
|
233
|
+
let json = type.internalJsonWrite(value, opt);
|
|
234
|
+
if (typeName.startsWith("google.protobuf.") || !isJsonObject(json))
|
|
235
|
+
json = { value: json };
|
|
236
|
+
json["@type"] = any.typeUrl;
|
|
237
|
+
return json;
|
|
238
|
+
}
|
|
239
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Any): Any {
|
|
240
|
+
if (!isJsonObject(json))
|
|
241
|
+
throw new globalThis.Error("Unable to parse google.protobuf.Any from JSON " + typeofJsonValue(json) + ".");
|
|
242
|
+
if (typeof json["@type"] != "string" || json["@type"] == "")
|
|
243
|
+
return this.create();
|
|
244
|
+
let typeName = this.typeUrlToName(json["@type"]);
|
|
245
|
+
let type = options?.typeRegistry?.find(t => t.typeName == typeName);
|
|
246
|
+
if (!type)
|
|
247
|
+
throw new globalThis.Error("Unable to parse google.protobuf.Any from JSON. The specified type " + typeName + " is not available in the type registry.");
|
|
248
|
+
let value;
|
|
249
|
+
if (typeName.startsWith("google.protobuf.") && json.hasOwnProperty("value"))
|
|
250
|
+
value = type.fromJson(json["value"], options);
|
|
251
|
+
else {
|
|
252
|
+
let copy = Object.assign({}, json);
|
|
253
|
+
delete copy["@type"];
|
|
254
|
+
value = type.fromJson(copy, options);
|
|
255
|
+
}
|
|
256
|
+
if (target === undefined)
|
|
257
|
+
target = this.create();
|
|
258
|
+
target.typeUrl = json["@type"];
|
|
259
|
+
target.value = type.toBinary(value);
|
|
260
|
+
return target;
|
|
261
|
+
}
|
|
262
|
+
typeNameToUrl(name: string): string {
|
|
263
|
+
if (!name.length)
|
|
264
|
+
throw new Error("invalid type name: " + name);
|
|
265
|
+
return "type.googleapis.com/" + name;
|
|
266
|
+
}
|
|
267
|
+
typeUrlToName(url: string): string {
|
|
268
|
+
if (!url.length)
|
|
269
|
+
throw new Error("invalid type url: " + url);
|
|
270
|
+
let slash = url.lastIndexOf("/");
|
|
271
|
+
let name = slash > 0 ? url.substring(slash + 1) : url;
|
|
272
|
+
if (!name.length)
|
|
273
|
+
throw new Error("invalid type url: " + url);
|
|
274
|
+
return name;
|
|
275
|
+
}
|
|
276
|
+
create(value?: PartialMessage<Any>): Any {
|
|
277
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
278
|
+
message.typeUrl = "";
|
|
279
|
+
message.value = new Uint8Array(0);
|
|
280
|
+
if (value !== undefined)
|
|
281
|
+
reflectionMergePartial<Any>(this, message, value);
|
|
282
|
+
return message;
|
|
283
|
+
}
|
|
284
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Any): Any {
|
|
285
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
286
|
+
while (reader.pos < end) {
|
|
287
|
+
let [fieldNo, wireType] = reader.tag();
|
|
288
|
+
switch (fieldNo) {
|
|
289
|
+
case /* string type_url */ 1:
|
|
290
|
+
message.typeUrl = reader.string();
|
|
291
|
+
break;
|
|
292
|
+
case /* bytes value */ 2:
|
|
293
|
+
message.value = reader.bytes();
|
|
294
|
+
break;
|
|
295
|
+
default:
|
|
296
|
+
let u = options.readUnknownField;
|
|
297
|
+
if (u === "throw")
|
|
298
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
299
|
+
let d = reader.skip(wireType);
|
|
300
|
+
if (u !== false)
|
|
301
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
return message;
|
|
305
|
+
}
|
|
306
|
+
internalBinaryWrite(message: Any, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
307
|
+
/* string type_url = 1; */
|
|
308
|
+
if (message.typeUrl !== "")
|
|
309
|
+
writer.tag(1, WireType.LengthDelimited).string(message.typeUrl);
|
|
310
|
+
/* bytes value = 2; */
|
|
311
|
+
if (message.value.length)
|
|
312
|
+
writer.tag(2, WireType.LengthDelimited).bytes(message.value);
|
|
313
|
+
let u = options.writeUnknownFields;
|
|
314
|
+
if (u !== false)
|
|
315
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
316
|
+
return writer;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* @generated MessageType for protobuf message google.protobuf.Any
|
|
321
|
+
*/
|
|
322
|
+
export const Any = new Any$Type();
|