@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,752 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1
|
|
2
|
+
// @generated from protobuf file "google/protobuf/wrappers.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
|
+
//
|
|
36
|
+
// Wrappers for primitive (non-message) types. These types are useful
|
|
37
|
+
// for embedding primitives in the `google.protobuf.Any` type and for places
|
|
38
|
+
// where we need to distinguish between the absence of a primitive
|
|
39
|
+
// typed field and its default value.
|
|
40
|
+
//
|
|
41
|
+
// These wrappers have no meaningful use within repeated fields as they lack
|
|
42
|
+
// the ability to detect presence on individual elements.
|
|
43
|
+
// These wrappers have no meaningful use within a map or a oneof since
|
|
44
|
+
// individual entries of a map or fields of a oneof can already detect presence.
|
|
45
|
+
//
|
|
46
|
+
import { ScalarType } from "@protobuf-ts/runtime";
|
|
47
|
+
import { LongType } from "@protobuf-ts/runtime";
|
|
48
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
49
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
50
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
51
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
52
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
53
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
54
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
55
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
56
|
+
import type { JsonValue } from "@protobuf-ts/runtime";
|
|
57
|
+
import type { JsonReadOptions } from "@protobuf-ts/runtime";
|
|
58
|
+
import type { JsonWriteOptions } from "@protobuf-ts/runtime";
|
|
59
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
60
|
+
/**
|
|
61
|
+
* Wrapper message for `double`.
|
|
62
|
+
*
|
|
63
|
+
* The JSON representation for `DoubleValue` is JSON number.
|
|
64
|
+
*
|
|
65
|
+
* @generated from protobuf message google.protobuf.DoubleValue
|
|
66
|
+
*/
|
|
67
|
+
export interface DoubleValue {
|
|
68
|
+
/**
|
|
69
|
+
* The double value.
|
|
70
|
+
*
|
|
71
|
+
* @generated from protobuf field: double value = 1
|
|
72
|
+
*/
|
|
73
|
+
value: number;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Wrapper message for `float`.
|
|
77
|
+
*
|
|
78
|
+
* The JSON representation for `FloatValue` is JSON number.
|
|
79
|
+
*
|
|
80
|
+
* @generated from protobuf message google.protobuf.FloatValue
|
|
81
|
+
*/
|
|
82
|
+
export interface FloatValue {
|
|
83
|
+
/**
|
|
84
|
+
* The float value.
|
|
85
|
+
*
|
|
86
|
+
* @generated from protobuf field: float value = 1
|
|
87
|
+
*/
|
|
88
|
+
value: number;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Wrapper message for `int64`.
|
|
92
|
+
*
|
|
93
|
+
* The JSON representation for `Int64Value` is JSON string.
|
|
94
|
+
*
|
|
95
|
+
* @generated from protobuf message google.protobuf.Int64Value
|
|
96
|
+
*/
|
|
97
|
+
export interface Int64Value {
|
|
98
|
+
/**
|
|
99
|
+
* The int64 value.
|
|
100
|
+
*
|
|
101
|
+
* @generated from protobuf field: int64 value = 1
|
|
102
|
+
*/
|
|
103
|
+
value: bigint;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Wrapper message for `uint64`.
|
|
107
|
+
*
|
|
108
|
+
* The JSON representation for `UInt64Value` is JSON string.
|
|
109
|
+
*
|
|
110
|
+
* @generated from protobuf message google.protobuf.UInt64Value
|
|
111
|
+
*/
|
|
112
|
+
export interface UInt64Value {
|
|
113
|
+
/**
|
|
114
|
+
* The uint64 value.
|
|
115
|
+
*
|
|
116
|
+
* @generated from protobuf field: uint64 value = 1
|
|
117
|
+
*/
|
|
118
|
+
value: bigint;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Wrapper message for `int32`.
|
|
122
|
+
*
|
|
123
|
+
* The JSON representation for `Int32Value` is JSON number.
|
|
124
|
+
*
|
|
125
|
+
* @generated from protobuf message google.protobuf.Int32Value
|
|
126
|
+
*/
|
|
127
|
+
export interface Int32Value {
|
|
128
|
+
/**
|
|
129
|
+
* The int32 value.
|
|
130
|
+
*
|
|
131
|
+
* @generated from protobuf field: int32 value = 1
|
|
132
|
+
*/
|
|
133
|
+
value: number;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Wrapper message for `uint32`.
|
|
137
|
+
*
|
|
138
|
+
* The JSON representation for `UInt32Value` is JSON number.
|
|
139
|
+
*
|
|
140
|
+
* @generated from protobuf message google.protobuf.UInt32Value
|
|
141
|
+
*/
|
|
142
|
+
export interface UInt32Value {
|
|
143
|
+
/**
|
|
144
|
+
* The uint32 value.
|
|
145
|
+
*
|
|
146
|
+
* @generated from protobuf field: uint32 value = 1
|
|
147
|
+
*/
|
|
148
|
+
value: number;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Wrapper message for `bool`.
|
|
152
|
+
*
|
|
153
|
+
* The JSON representation for `BoolValue` is JSON `true` and `false`.
|
|
154
|
+
*
|
|
155
|
+
* @generated from protobuf message google.protobuf.BoolValue
|
|
156
|
+
*/
|
|
157
|
+
export interface BoolValue {
|
|
158
|
+
/**
|
|
159
|
+
* The bool value.
|
|
160
|
+
*
|
|
161
|
+
* @generated from protobuf field: bool value = 1
|
|
162
|
+
*/
|
|
163
|
+
value: boolean;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Wrapper message for `string`.
|
|
167
|
+
*
|
|
168
|
+
* The JSON representation for `StringValue` is JSON string.
|
|
169
|
+
*
|
|
170
|
+
* @generated from protobuf message google.protobuf.StringValue
|
|
171
|
+
*/
|
|
172
|
+
export interface StringValue {
|
|
173
|
+
/**
|
|
174
|
+
* The string value.
|
|
175
|
+
*
|
|
176
|
+
* @generated from protobuf field: string value = 1
|
|
177
|
+
*/
|
|
178
|
+
value: string;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Wrapper message for `bytes`.
|
|
182
|
+
*
|
|
183
|
+
* The JSON representation for `BytesValue` is JSON string.
|
|
184
|
+
*
|
|
185
|
+
* @generated from protobuf message google.protobuf.BytesValue
|
|
186
|
+
*/
|
|
187
|
+
export interface BytesValue {
|
|
188
|
+
/**
|
|
189
|
+
* The bytes value.
|
|
190
|
+
*
|
|
191
|
+
* @generated from protobuf field: bytes value = 1
|
|
192
|
+
*/
|
|
193
|
+
value: Uint8Array;
|
|
194
|
+
}
|
|
195
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
196
|
+
class DoubleValue$Type extends MessageType<DoubleValue> {
|
|
197
|
+
constructor() {
|
|
198
|
+
super("google.protobuf.DoubleValue", [
|
|
199
|
+
{ no: 1, name: "value", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ }
|
|
200
|
+
]);
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Encode `DoubleValue` to JSON number.
|
|
204
|
+
*/
|
|
205
|
+
internalJsonWrite(message: DoubleValue, options: JsonWriteOptions): JsonValue {
|
|
206
|
+
return this.refJsonWriter.scalar(2, message.value, "value", false, true);
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Decode `DoubleValue` from JSON number.
|
|
210
|
+
*/
|
|
211
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: DoubleValue): DoubleValue {
|
|
212
|
+
if (!target)
|
|
213
|
+
target = this.create();
|
|
214
|
+
target.value = this.refJsonReader.scalar(json, 1, undefined, "value") as number;
|
|
215
|
+
return target;
|
|
216
|
+
}
|
|
217
|
+
create(value?: PartialMessage<DoubleValue>): DoubleValue {
|
|
218
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
219
|
+
message.value = 0;
|
|
220
|
+
if (value !== undefined)
|
|
221
|
+
reflectionMergePartial<DoubleValue>(this, message, value);
|
|
222
|
+
return message;
|
|
223
|
+
}
|
|
224
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DoubleValue): DoubleValue {
|
|
225
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
226
|
+
while (reader.pos < end) {
|
|
227
|
+
let [fieldNo, wireType] = reader.tag();
|
|
228
|
+
switch (fieldNo) {
|
|
229
|
+
case /* double value */ 1:
|
|
230
|
+
message.value = reader.double();
|
|
231
|
+
break;
|
|
232
|
+
default:
|
|
233
|
+
let u = options.readUnknownField;
|
|
234
|
+
if (u === "throw")
|
|
235
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
236
|
+
let d = reader.skip(wireType);
|
|
237
|
+
if (u !== false)
|
|
238
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
return message;
|
|
242
|
+
}
|
|
243
|
+
internalBinaryWrite(message: DoubleValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
244
|
+
/* double value = 1; */
|
|
245
|
+
if (message.value !== 0)
|
|
246
|
+
writer.tag(1, WireType.Bit64).double(message.value);
|
|
247
|
+
let u = options.writeUnknownFields;
|
|
248
|
+
if (u !== false)
|
|
249
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
250
|
+
return writer;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* @generated MessageType for protobuf message google.protobuf.DoubleValue
|
|
255
|
+
*/
|
|
256
|
+
export const DoubleValue = new DoubleValue$Type();
|
|
257
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
258
|
+
class FloatValue$Type extends MessageType<FloatValue> {
|
|
259
|
+
constructor() {
|
|
260
|
+
super("google.protobuf.FloatValue", [
|
|
261
|
+
{ no: 1, name: "value", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ }
|
|
262
|
+
]);
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Encode `FloatValue` to JSON number.
|
|
266
|
+
*/
|
|
267
|
+
internalJsonWrite(message: FloatValue, options: JsonWriteOptions): JsonValue {
|
|
268
|
+
return this.refJsonWriter.scalar(1, message.value, "value", false, true);
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Decode `FloatValue` from JSON number.
|
|
272
|
+
*/
|
|
273
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: FloatValue): FloatValue {
|
|
274
|
+
if (!target)
|
|
275
|
+
target = this.create();
|
|
276
|
+
target.value = this.refJsonReader.scalar(json, 1, undefined, "value") as number;
|
|
277
|
+
return target;
|
|
278
|
+
}
|
|
279
|
+
create(value?: PartialMessage<FloatValue>): FloatValue {
|
|
280
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
281
|
+
message.value = 0;
|
|
282
|
+
if (value !== undefined)
|
|
283
|
+
reflectionMergePartial<FloatValue>(this, message, value);
|
|
284
|
+
return message;
|
|
285
|
+
}
|
|
286
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FloatValue): FloatValue {
|
|
287
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
288
|
+
while (reader.pos < end) {
|
|
289
|
+
let [fieldNo, wireType] = reader.tag();
|
|
290
|
+
switch (fieldNo) {
|
|
291
|
+
case /* float value */ 1:
|
|
292
|
+
message.value = reader.float();
|
|
293
|
+
break;
|
|
294
|
+
default:
|
|
295
|
+
let u = options.readUnknownField;
|
|
296
|
+
if (u === "throw")
|
|
297
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
298
|
+
let d = reader.skip(wireType);
|
|
299
|
+
if (u !== false)
|
|
300
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
return message;
|
|
304
|
+
}
|
|
305
|
+
internalBinaryWrite(message: FloatValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
306
|
+
/* float value = 1; */
|
|
307
|
+
if (message.value !== 0)
|
|
308
|
+
writer.tag(1, WireType.Bit32).float(message.value);
|
|
309
|
+
let u = options.writeUnknownFields;
|
|
310
|
+
if (u !== false)
|
|
311
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
312
|
+
return writer;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* @generated MessageType for protobuf message google.protobuf.FloatValue
|
|
317
|
+
*/
|
|
318
|
+
export const FloatValue = new FloatValue$Type();
|
|
319
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
320
|
+
class Int64Value$Type extends MessageType<Int64Value> {
|
|
321
|
+
constructor() {
|
|
322
|
+
super("google.protobuf.Int64Value", [
|
|
323
|
+
{ no: 1, name: "value", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
324
|
+
]);
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Encode `Int64Value` to JSON string.
|
|
328
|
+
*/
|
|
329
|
+
internalJsonWrite(message: Int64Value, options: JsonWriteOptions): JsonValue {
|
|
330
|
+
return this.refJsonWriter.scalar(ScalarType.INT64, message.value, "value", false, true);
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* Decode `Int64Value` from JSON string.
|
|
334
|
+
*/
|
|
335
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Int64Value): Int64Value {
|
|
336
|
+
if (!target)
|
|
337
|
+
target = this.create();
|
|
338
|
+
target.value = this.refJsonReader.scalar(json, ScalarType.INT64, LongType.BIGINT, "value") as any;
|
|
339
|
+
return target;
|
|
340
|
+
}
|
|
341
|
+
create(value?: PartialMessage<Int64Value>): Int64Value {
|
|
342
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
343
|
+
message.value = 0n;
|
|
344
|
+
if (value !== undefined)
|
|
345
|
+
reflectionMergePartial<Int64Value>(this, message, value);
|
|
346
|
+
return message;
|
|
347
|
+
}
|
|
348
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Int64Value): Int64Value {
|
|
349
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
350
|
+
while (reader.pos < end) {
|
|
351
|
+
let [fieldNo, wireType] = reader.tag();
|
|
352
|
+
switch (fieldNo) {
|
|
353
|
+
case /* int64 value */ 1:
|
|
354
|
+
message.value = reader.int64().toBigInt();
|
|
355
|
+
break;
|
|
356
|
+
default:
|
|
357
|
+
let u = options.readUnknownField;
|
|
358
|
+
if (u === "throw")
|
|
359
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
360
|
+
let d = reader.skip(wireType);
|
|
361
|
+
if (u !== false)
|
|
362
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
return message;
|
|
366
|
+
}
|
|
367
|
+
internalBinaryWrite(message: Int64Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
368
|
+
/* int64 value = 1; */
|
|
369
|
+
if (message.value !== 0n)
|
|
370
|
+
writer.tag(1, WireType.Varint).int64(message.value);
|
|
371
|
+
let u = options.writeUnknownFields;
|
|
372
|
+
if (u !== false)
|
|
373
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
374
|
+
return writer;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* @generated MessageType for protobuf message google.protobuf.Int64Value
|
|
379
|
+
*/
|
|
380
|
+
export const Int64Value = new Int64Value$Type();
|
|
381
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
382
|
+
class UInt64Value$Type extends MessageType<UInt64Value> {
|
|
383
|
+
constructor() {
|
|
384
|
+
super("google.protobuf.UInt64Value", [
|
|
385
|
+
{ no: 1, name: "value", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
386
|
+
]);
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Encode `UInt64Value` to JSON string.
|
|
390
|
+
*/
|
|
391
|
+
internalJsonWrite(message: UInt64Value, options: JsonWriteOptions): JsonValue {
|
|
392
|
+
return this.refJsonWriter.scalar(ScalarType.UINT64, message.value, "value", false, true);
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Decode `UInt64Value` from JSON string.
|
|
396
|
+
*/
|
|
397
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: UInt64Value): UInt64Value {
|
|
398
|
+
if (!target)
|
|
399
|
+
target = this.create();
|
|
400
|
+
target.value = this.refJsonReader.scalar(json, ScalarType.UINT64, LongType.BIGINT, "value") as any;
|
|
401
|
+
return target;
|
|
402
|
+
}
|
|
403
|
+
create(value?: PartialMessage<UInt64Value>): UInt64Value {
|
|
404
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
405
|
+
message.value = 0n;
|
|
406
|
+
if (value !== undefined)
|
|
407
|
+
reflectionMergePartial<UInt64Value>(this, message, value);
|
|
408
|
+
return message;
|
|
409
|
+
}
|
|
410
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UInt64Value): UInt64Value {
|
|
411
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
412
|
+
while (reader.pos < end) {
|
|
413
|
+
let [fieldNo, wireType] = reader.tag();
|
|
414
|
+
switch (fieldNo) {
|
|
415
|
+
case /* uint64 value */ 1:
|
|
416
|
+
message.value = reader.uint64().toBigInt();
|
|
417
|
+
break;
|
|
418
|
+
default:
|
|
419
|
+
let u = options.readUnknownField;
|
|
420
|
+
if (u === "throw")
|
|
421
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
422
|
+
let d = reader.skip(wireType);
|
|
423
|
+
if (u !== false)
|
|
424
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
return message;
|
|
428
|
+
}
|
|
429
|
+
internalBinaryWrite(message: UInt64Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
430
|
+
/* uint64 value = 1; */
|
|
431
|
+
if (message.value !== 0n)
|
|
432
|
+
writer.tag(1, WireType.Varint).uint64(message.value);
|
|
433
|
+
let u = options.writeUnknownFields;
|
|
434
|
+
if (u !== false)
|
|
435
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
436
|
+
return writer;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* @generated MessageType for protobuf message google.protobuf.UInt64Value
|
|
441
|
+
*/
|
|
442
|
+
export const UInt64Value = new UInt64Value$Type();
|
|
443
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
444
|
+
class Int32Value$Type extends MessageType<Int32Value> {
|
|
445
|
+
constructor() {
|
|
446
|
+
super("google.protobuf.Int32Value", [
|
|
447
|
+
{ no: 1, name: "value", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
448
|
+
]);
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* Encode `Int32Value` to JSON string.
|
|
452
|
+
*/
|
|
453
|
+
internalJsonWrite(message: Int32Value, options: JsonWriteOptions): JsonValue {
|
|
454
|
+
return this.refJsonWriter.scalar(5, message.value, "value", false, true);
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* Decode `Int32Value` from JSON string.
|
|
458
|
+
*/
|
|
459
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Int32Value): Int32Value {
|
|
460
|
+
if (!target)
|
|
461
|
+
target = this.create();
|
|
462
|
+
target.value = this.refJsonReader.scalar(json, 5, undefined, "value") as number;
|
|
463
|
+
return target;
|
|
464
|
+
}
|
|
465
|
+
create(value?: PartialMessage<Int32Value>): Int32Value {
|
|
466
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
467
|
+
message.value = 0;
|
|
468
|
+
if (value !== undefined)
|
|
469
|
+
reflectionMergePartial<Int32Value>(this, message, value);
|
|
470
|
+
return message;
|
|
471
|
+
}
|
|
472
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Int32Value): Int32Value {
|
|
473
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
474
|
+
while (reader.pos < end) {
|
|
475
|
+
let [fieldNo, wireType] = reader.tag();
|
|
476
|
+
switch (fieldNo) {
|
|
477
|
+
case /* int32 value */ 1:
|
|
478
|
+
message.value = reader.int32();
|
|
479
|
+
break;
|
|
480
|
+
default:
|
|
481
|
+
let u = options.readUnknownField;
|
|
482
|
+
if (u === "throw")
|
|
483
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
484
|
+
let d = reader.skip(wireType);
|
|
485
|
+
if (u !== false)
|
|
486
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
return message;
|
|
490
|
+
}
|
|
491
|
+
internalBinaryWrite(message: Int32Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
492
|
+
/* int32 value = 1; */
|
|
493
|
+
if (message.value !== 0)
|
|
494
|
+
writer.tag(1, WireType.Varint).int32(message.value);
|
|
495
|
+
let u = options.writeUnknownFields;
|
|
496
|
+
if (u !== false)
|
|
497
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
498
|
+
return writer;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* @generated MessageType for protobuf message google.protobuf.Int32Value
|
|
503
|
+
*/
|
|
504
|
+
export const Int32Value = new Int32Value$Type();
|
|
505
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
506
|
+
class UInt32Value$Type extends MessageType<UInt32Value> {
|
|
507
|
+
constructor() {
|
|
508
|
+
super("google.protobuf.UInt32Value", [
|
|
509
|
+
{ no: 1, name: "value", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
510
|
+
]);
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* Encode `UInt32Value` to JSON string.
|
|
514
|
+
*/
|
|
515
|
+
internalJsonWrite(message: UInt32Value, options: JsonWriteOptions): JsonValue {
|
|
516
|
+
return this.refJsonWriter.scalar(13, message.value, "value", false, true);
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* Decode `UInt32Value` from JSON string.
|
|
520
|
+
*/
|
|
521
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: UInt32Value): UInt32Value {
|
|
522
|
+
if (!target)
|
|
523
|
+
target = this.create();
|
|
524
|
+
target.value = this.refJsonReader.scalar(json, 13, undefined, "value") as number;
|
|
525
|
+
return target;
|
|
526
|
+
}
|
|
527
|
+
create(value?: PartialMessage<UInt32Value>): UInt32Value {
|
|
528
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
529
|
+
message.value = 0;
|
|
530
|
+
if (value !== undefined)
|
|
531
|
+
reflectionMergePartial<UInt32Value>(this, message, value);
|
|
532
|
+
return message;
|
|
533
|
+
}
|
|
534
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UInt32Value): UInt32Value {
|
|
535
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
536
|
+
while (reader.pos < end) {
|
|
537
|
+
let [fieldNo, wireType] = reader.tag();
|
|
538
|
+
switch (fieldNo) {
|
|
539
|
+
case /* uint32 value */ 1:
|
|
540
|
+
message.value = reader.uint32();
|
|
541
|
+
break;
|
|
542
|
+
default:
|
|
543
|
+
let u = options.readUnknownField;
|
|
544
|
+
if (u === "throw")
|
|
545
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
546
|
+
let d = reader.skip(wireType);
|
|
547
|
+
if (u !== false)
|
|
548
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
return message;
|
|
552
|
+
}
|
|
553
|
+
internalBinaryWrite(message: UInt32Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
554
|
+
/* uint32 value = 1; */
|
|
555
|
+
if (message.value !== 0)
|
|
556
|
+
writer.tag(1, WireType.Varint).uint32(message.value);
|
|
557
|
+
let u = options.writeUnknownFields;
|
|
558
|
+
if (u !== false)
|
|
559
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
560
|
+
return writer;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
* @generated MessageType for protobuf message google.protobuf.UInt32Value
|
|
565
|
+
*/
|
|
566
|
+
export const UInt32Value = new UInt32Value$Type();
|
|
567
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
568
|
+
class BoolValue$Type extends MessageType<BoolValue> {
|
|
569
|
+
constructor() {
|
|
570
|
+
super("google.protobuf.BoolValue", [
|
|
571
|
+
{ no: 1, name: "value", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
572
|
+
]);
|
|
573
|
+
}
|
|
574
|
+
/**
|
|
575
|
+
* Encode `BoolValue` to JSON bool.
|
|
576
|
+
*/
|
|
577
|
+
internalJsonWrite(message: BoolValue, options: JsonWriteOptions): JsonValue {
|
|
578
|
+
return message.value;
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* Decode `BoolValue` from JSON bool.
|
|
582
|
+
*/
|
|
583
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: BoolValue): BoolValue {
|
|
584
|
+
if (!target)
|
|
585
|
+
target = this.create();
|
|
586
|
+
target.value = this.refJsonReader.scalar(json, 8, undefined, "value") as boolean;
|
|
587
|
+
return target;
|
|
588
|
+
}
|
|
589
|
+
create(value?: PartialMessage<BoolValue>): BoolValue {
|
|
590
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
591
|
+
message.value = false;
|
|
592
|
+
if (value !== undefined)
|
|
593
|
+
reflectionMergePartial<BoolValue>(this, message, value);
|
|
594
|
+
return message;
|
|
595
|
+
}
|
|
596
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BoolValue): BoolValue {
|
|
597
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
598
|
+
while (reader.pos < end) {
|
|
599
|
+
let [fieldNo, wireType] = reader.tag();
|
|
600
|
+
switch (fieldNo) {
|
|
601
|
+
case /* bool value */ 1:
|
|
602
|
+
message.value = reader.bool();
|
|
603
|
+
break;
|
|
604
|
+
default:
|
|
605
|
+
let u = options.readUnknownField;
|
|
606
|
+
if (u === "throw")
|
|
607
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
608
|
+
let d = reader.skip(wireType);
|
|
609
|
+
if (u !== false)
|
|
610
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
return message;
|
|
614
|
+
}
|
|
615
|
+
internalBinaryWrite(message: BoolValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
616
|
+
/* bool value = 1; */
|
|
617
|
+
if (message.value !== false)
|
|
618
|
+
writer.tag(1, WireType.Varint).bool(message.value);
|
|
619
|
+
let u = options.writeUnknownFields;
|
|
620
|
+
if (u !== false)
|
|
621
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
622
|
+
return writer;
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* @generated MessageType for protobuf message google.protobuf.BoolValue
|
|
627
|
+
*/
|
|
628
|
+
export const BoolValue = new BoolValue$Type();
|
|
629
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
630
|
+
class StringValue$Type extends MessageType<StringValue> {
|
|
631
|
+
constructor() {
|
|
632
|
+
super("google.protobuf.StringValue", [
|
|
633
|
+
{ no: 1, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
634
|
+
]);
|
|
635
|
+
}
|
|
636
|
+
/**
|
|
637
|
+
* Encode `StringValue` to JSON string.
|
|
638
|
+
*/
|
|
639
|
+
internalJsonWrite(message: StringValue, options: JsonWriteOptions): JsonValue {
|
|
640
|
+
return message.value;
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
* Decode `StringValue` from JSON string.
|
|
644
|
+
*/
|
|
645
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: StringValue): StringValue {
|
|
646
|
+
if (!target)
|
|
647
|
+
target = this.create();
|
|
648
|
+
target.value = this.refJsonReader.scalar(json, 9, undefined, "value") as string;
|
|
649
|
+
return target;
|
|
650
|
+
}
|
|
651
|
+
create(value?: PartialMessage<StringValue>): StringValue {
|
|
652
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
653
|
+
message.value = "";
|
|
654
|
+
if (value !== undefined)
|
|
655
|
+
reflectionMergePartial<StringValue>(this, message, value);
|
|
656
|
+
return message;
|
|
657
|
+
}
|
|
658
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StringValue): StringValue {
|
|
659
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
660
|
+
while (reader.pos < end) {
|
|
661
|
+
let [fieldNo, wireType] = reader.tag();
|
|
662
|
+
switch (fieldNo) {
|
|
663
|
+
case /* string value */ 1:
|
|
664
|
+
message.value = reader.string();
|
|
665
|
+
break;
|
|
666
|
+
default:
|
|
667
|
+
let u = options.readUnknownField;
|
|
668
|
+
if (u === "throw")
|
|
669
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
670
|
+
let d = reader.skip(wireType);
|
|
671
|
+
if (u !== false)
|
|
672
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
return message;
|
|
676
|
+
}
|
|
677
|
+
internalBinaryWrite(message: StringValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
678
|
+
/* string value = 1; */
|
|
679
|
+
if (message.value !== "")
|
|
680
|
+
writer.tag(1, WireType.LengthDelimited).string(message.value);
|
|
681
|
+
let u = options.writeUnknownFields;
|
|
682
|
+
if (u !== false)
|
|
683
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
684
|
+
return writer;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* @generated MessageType for protobuf message google.protobuf.StringValue
|
|
689
|
+
*/
|
|
690
|
+
export const StringValue = new StringValue$Type();
|
|
691
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
692
|
+
class BytesValue$Type extends MessageType<BytesValue> {
|
|
693
|
+
constructor() {
|
|
694
|
+
super("google.protobuf.BytesValue", [
|
|
695
|
+
{ no: 1, name: "value", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
696
|
+
]);
|
|
697
|
+
}
|
|
698
|
+
/**
|
|
699
|
+
* Encode `BytesValue` to JSON string.
|
|
700
|
+
*/
|
|
701
|
+
internalJsonWrite(message: BytesValue, options: JsonWriteOptions): JsonValue {
|
|
702
|
+
return this.refJsonWriter.scalar(12, message.value, "value", false, true);
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
* Decode `BytesValue` from JSON string.
|
|
706
|
+
*/
|
|
707
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: BytesValue): BytesValue {
|
|
708
|
+
if (!target)
|
|
709
|
+
target = this.create();
|
|
710
|
+
target.value = this.refJsonReader.scalar(json, 12, undefined, "value") as Uint8Array;
|
|
711
|
+
return target;
|
|
712
|
+
}
|
|
713
|
+
create(value?: PartialMessage<BytesValue>): BytesValue {
|
|
714
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
715
|
+
message.value = new Uint8Array(0);
|
|
716
|
+
if (value !== undefined)
|
|
717
|
+
reflectionMergePartial<BytesValue>(this, message, value);
|
|
718
|
+
return message;
|
|
719
|
+
}
|
|
720
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BytesValue): BytesValue {
|
|
721
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
722
|
+
while (reader.pos < end) {
|
|
723
|
+
let [fieldNo, wireType] = reader.tag();
|
|
724
|
+
switch (fieldNo) {
|
|
725
|
+
case /* bytes value */ 1:
|
|
726
|
+
message.value = reader.bytes();
|
|
727
|
+
break;
|
|
728
|
+
default:
|
|
729
|
+
let u = options.readUnknownField;
|
|
730
|
+
if (u === "throw")
|
|
731
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
732
|
+
let d = reader.skip(wireType);
|
|
733
|
+
if (u !== false)
|
|
734
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
return message;
|
|
738
|
+
}
|
|
739
|
+
internalBinaryWrite(message: BytesValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
740
|
+
/* bytes value = 1; */
|
|
741
|
+
if (message.value.length)
|
|
742
|
+
writer.tag(1, WireType.LengthDelimited).bytes(message.value);
|
|
743
|
+
let u = options.writeUnknownFields;
|
|
744
|
+
if (u !== false)
|
|
745
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
746
|
+
return writer;
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
* @generated MessageType for protobuf message google.protobuf.BytesValue
|
|
751
|
+
*/
|
|
752
|
+
export const BytesValue = new BytesValue$Type();
|