@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,4130 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1
|
|
2
|
+
// @generated from protobuf file "validate/validate.proto" (package "validate", syntax proto2)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
6
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
9
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
11
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
12
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
13
|
+
import { Timestamp } from "../google/protobuf/timestamp";
|
|
14
|
+
import { Duration } from "../google/protobuf/duration";
|
|
15
|
+
/**
|
|
16
|
+
* FieldRules encapsulates the rules for each type of field. Depending on the
|
|
17
|
+
* field, the correct set should be used to ensure proper validations.
|
|
18
|
+
*
|
|
19
|
+
* @generated from protobuf message validate.FieldRules
|
|
20
|
+
*/
|
|
21
|
+
export interface FieldRules {
|
|
22
|
+
/**
|
|
23
|
+
* @generated from protobuf field: optional validate.MessageRules message = 17
|
|
24
|
+
*/
|
|
25
|
+
message?: MessageRules;
|
|
26
|
+
/**
|
|
27
|
+
* @generated from protobuf oneof: type
|
|
28
|
+
*/
|
|
29
|
+
type: {
|
|
30
|
+
oneofKind: "float";
|
|
31
|
+
/**
|
|
32
|
+
* Scalar Field Types
|
|
33
|
+
*
|
|
34
|
+
* @generated from protobuf field: validate.FloatRules float = 1
|
|
35
|
+
*/
|
|
36
|
+
float: FloatRules;
|
|
37
|
+
} | {
|
|
38
|
+
oneofKind: "double";
|
|
39
|
+
/**
|
|
40
|
+
* @generated from protobuf field: validate.DoubleRules double = 2
|
|
41
|
+
*/
|
|
42
|
+
double: DoubleRules;
|
|
43
|
+
} | {
|
|
44
|
+
oneofKind: "int32";
|
|
45
|
+
/**
|
|
46
|
+
* @generated from protobuf field: validate.Int32Rules int32 = 3
|
|
47
|
+
*/
|
|
48
|
+
int32: Int32Rules;
|
|
49
|
+
} | {
|
|
50
|
+
oneofKind: "int64";
|
|
51
|
+
/**
|
|
52
|
+
* @generated from protobuf field: validate.Int64Rules int64 = 4
|
|
53
|
+
*/
|
|
54
|
+
int64: Int64Rules;
|
|
55
|
+
} | {
|
|
56
|
+
oneofKind: "uint32";
|
|
57
|
+
/**
|
|
58
|
+
* @generated from protobuf field: validate.UInt32Rules uint32 = 5
|
|
59
|
+
*/
|
|
60
|
+
uint32: UInt32Rules;
|
|
61
|
+
} | {
|
|
62
|
+
oneofKind: "uint64";
|
|
63
|
+
/**
|
|
64
|
+
* @generated from protobuf field: validate.UInt64Rules uint64 = 6
|
|
65
|
+
*/
|
|
66
|
+
uint64: UInt64Rules;
|
|
67
|
+
} | {
|
|
68
|
+
oneofKind: "sint32";
|
|
69
|
+
/**
|
|
70
|
+
* @generated from protobuf field: validate.SInt32Rules sint32 = 7
|
|
71
|
+
*/
|
|
72
|
+
sint32: SInt32Rules;
|
|
73
|
+
} | {
|
|
74
|
+
oneofKind: "sint64";
|
|
75
|
+
/**
|
|
76
|
+
* @generated from protobuf field: validate.SInt64Rules sint64 = 8
|
|
77
|
+
*/
|
|
78
|
+
sint64: SInt64Rules;
|
|
79
|
+
} | {
|
|
80
|
+
oneofKind: "fixed32";
|
|
81
|
+
/**
|
|
82
|
+
* @generated from protobuf field: validate.Fixed32Rules fixed32 = 9
|
|
83
|
+
*/
|
|
84
|
+
fixed32: Fixed32Rules;
|
|
85
|
+
} | {
|
|
86
|
+
oneofKind: "fixed64";
|
|
87
|
+
/**
|
|
88
|
+
* @generated from protobuf field: validate.Fixed64Rules fixed64 = 10
|
|
89
|
+
*/
|
|
90
|
+
fixed64: Fixed64Rules;
|
|
91
|
+
} | {
|
|
92
|
+
oneofKind: "sfixed32";
|
|
93
|
+
/**
|
|
94
|
+
* @generated from protobuf field: validate.SFixed32Rules sfixed32 = 11
|
|
95
|
+
*/
|
|
96
|
+
sfixed32: SFixed32Rules;
|
|
97
|
+
} | {
|
|
98
|
+
oneofKind: "sfixed64";
|
|
99
|
+
/**
|
|
100
|
+
* @generated from protobuf field: validate.SFixed64Rules sfixed64 = 12
|
|
101
|
+
*/
|
|
102
|
+
sfixed64: SFixed64Rules;
|
|
103
|
+
} | {
|
|
104
|
+
oneofKind: "bool";
|
|
105
|
+
/**
|
|
106
|
+
* @generated from protobuf field: validate.BoolRules bool = 13
|
|
107
|
+
*/
|
|
108
|
+
bool: BoolRules;
|
|
109
|
+
} | {
|
|
110
|
+
oneofKind: "string";
|
|
111
|
+
/**
|
|
112
|
+
* @generated from protobuf field: validate.StringRules string = 14
|
|
113
|
+
*/
|
|
114
|
+
string: StringRules;
|
|
115
|
+
} | {
|
|
116
|
+
oneofKind: "bytes";
|
|
117
|
+
/**
|
|
118
|
+
* @generated from protobuf field: validate.BytesRules bytes = 15
|
|
119
|
+
*/
|
|
120
|
+
bytes: BytesRules;
|
|
121
|
+
} | {
|
|
122
|
+
oneofKind: "enum";
|
|
123
|
+
/**
|
|
124
|
+
* Complex Field Types
|
|
125
|
+
*
|
|
126
|
+
* @generated from protobuf field: validate.EnumRules enum = 16
|
|
127
|
+
*/
|
|
128
|
+
enum: EnumRules;
|
|
129
|
+
} | {
|
|
130
|
+
oneofKind: "repeated";
|
|
131
|
+
/**
|
|
132
|
+
* @generated from protobuf field: validate.RepeatedRules repeated = 18
|
|
133
|
+
*/
|
|
134
|
+
repeated: RepeatedRules;
|
|
135
|
+
} | {
|
|
136
|
+
oneofKind: "map";
|
|
137
|
+
/**
|
|
138
|
+
* @generated from protobuf field: validate.MapRules map = 19
|
|
139
|
+
*/
|
|
140
|
+
map: MapRules;
|
|
141
|
+
} | {
|
|
142
|
+
oneofKind: "any";
|
|
143
|
+
/**
|
|
144
|
+
* Well-Known Field Types
|
|
145
|
+
*
|
|
146
|
+
* @generated from protobuf field: validate.AnyRules any = 20
|
|
147
|
+
*/
|
|
148
|
+
any: AnyRules;
|
|
149
|
+
} | {
|
|
150
|
+
oneofKind: "duration";
|
|
151
|
+
/**
|
|
152
|
+
* @generated from protobuf field: validate.DurationRules duration = 21
|
|
153
|
+
*/
|
|
154
|
+
duration: DurationRules;
|
|
155
|
+
} | {
|
|
156
|
+
oneofKind: "timestamp";
|
|
157
|
+
/**
|
|
158
|
+
* @generated from protobuf field: validate.TimestampRules timestamp = 22
|
|
159
|
+
*/
|
|
160
|
+
timestamp: TimestampRules;
|
|
161
|
+
} | {
|
|
162
|
+
oneofKind: undefined;
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* FloatRules describes the constraints applied to `float` values
|
|
167
|
+
*
|
|
168
|
+
* @generated from protobuf message validate.FloatRules
|
|
169
|
+
*/
|
|
170
|
+
export interface FloatRules {
|
|
171
|
+
/**
|
|
172
|
+
* Const specifies that this field must be exactly the specified value
|
|
173
|
+
*
|
|
174
|
+
* @generated from protobuf field: optional float const = 1
|
|
175
|
+
*/
|
|
176
|
+
const?: number;
|
|
177
|
+
/**
|
|
178
|
+
* Lt specifies that this field must be less than the specified value,
|
|
179
|
+
* exclusive
|
|
180
|
+
*
|
|
181
|
+
* @generated from protobuf field: optional float lt = 2
|
|
182
|
+
*/
|
|
183
|
+
lt?: number;
|
|
184
|
+
/**
|
|
185
|
+
* Lte specifies that this field must be less than or equal to the
|
|
186
|
+
* specified value, inclusive
|
|
187
|
+
*
|
|
188
|
+
* @generated from protobuf field: optional float lte = 3
|
|
189
|
+
*/
|
|
190
|
+
lte?: number;
|
|
191
|
+
/**
|
|
192
|
+
* Gt specifies that this field must be greater than the specified value,
|
|
193
|
+
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
|
|
194
|
+
* range is reversed.
|
|
195
|
+
*
|
|
196
|
+
* @generated from protobuf field: optional float gt = 4
|
|
197
|
+
*/
|
|
198
|
+
gt?: number;
|
|
199
|
+
/**
|
|
200
|
+
* Gte specifies that this field must be greater than or equal to the
|
|
201
|
+
* specified value, inclusive. If the value of Gte is larger than a
|
|
202
|
+
* specified Lt or Lte, the range is reversed.
|
|
203
|
+
*
|
|
204
|
+
* @generated from protobuf field: optional float gte = 5
|
|
205
|
+
*/
|
|
206
|
+
gte?: number;
|
|
207
|
+
/**
|
|
208
|
+
* In specifies that this field must be equal to one of the specified
|
|
209
|
+
* values
|
|
210
|
+
*
|
|
211
|
+
* @generated from protobuf field: repeated float in = 6
|
|
212
|
+
*/
|
|
213
|
+
in: number[];
|
|
214
|
+
/**
|
|
215
|
+
* NotIn specifies that this field cannot be equal to one of the specified
|
|
216
|
+
* values
|
|
217
|
+
*
|
|
218
|
+
* @generated from protobuf field: repeated float not_in = 7
|
|
219
|
+
*/
|
|
220
|
+
notIn: number[];
|
|
221
|
+
/**
|
|
222
|
+
* IgnoreEmpty specifies that the validation rules of this field should be
|
|
223
|
+
* evaluated only if the field is not empty
|
|
224
|
+
*
|
|
225
|
+
* @generated from protobuf field: optional bool ignore_empty = 8
|
|
226
|
+
*/
|
|
227
|
+
ignoreEmpty?: boolean;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* DoubleRules describes the constraints applied to `double` values
|
|
231
|
+
*
|
|
232
|
+
* @generated from protobuf message validate.DoubleRules
|
|
233
|
+
*/
|
|
234
|
+
export interface DoubleRules {
|
|
235
|
+
/**
|
|
236
|
+
* Const specifies that this field must be exactly the specified value
|
|
237
|
+
*
|
|
238
|
+
* @generated from protobuf field: optional double const = 1
|
|
239
|
+
*/
|
|
240
|
+
const?: number;
|
|
241
|
+
/**
|
|
242
|
+
* Lt specifies that this field must be less than the specified value,
|
|
243
|
+
* exclusive
|
|
244
|
+
*
|
|
245
|
+
* @generated from protobuf field: optional double lt = 2
|
|
246
|
+
*/
|
|
247
|
+
lt?: number;
|
|
248
|
+
/**
|
|
249
|
+
* Lte specifies that this field must be less than or equal to the
|
|
250
|
+
* specified value, inclusive
|
|
251
|
+
*
|
|
252
|
+
* @generated from protobuf field: optional double lte = 3
|
|
253
|
+
*/
|
|
254
|
+
lte?: number;
|
|
255
|
+
/**
|
|
256
|
+
* Gt specifies that this field must be greater than the specified value,
|
|
257
|
+
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
|
|
258
|
+
* range is reversed.
|
|
259
|
+
*
|
|
260
|
+
* @generated from protobuf field: optional double gt = 4
|
|
261
|
+
*/
|
|
262
|
+
gt?: number;
|
|
263
|
+
/**
|
|
264
|
+
* Gte specifies that this field must be greater than or equal to the
|
|
265
|
+
* specified value, inclusive. If the value of Gte is larger than a
|
|
266
|
+
* specified Lt or Lte, the range is reversed.
|
|
267
|
+
*
|
|
268
|
+
* @generated from protobuf field: optional double gte = 5
|
|
269
|
+
*/
|
|
270
|
+
gte?: number;
|
|
271
|
+
/**
|
|
272
|
+
* In specifies that this field must be equal to one of the specified
|
|
273
|
+
* values
|
|
274
|
+
*
|
|
275
|
+
* @generated from protobuf field: repeated double in = 6
|
|
276
|
+
*/
|
|
277
|
+
in: number[];
|
|
278
|
+
/**
|
|
279
|
+
* NotIn specifies that this field cannot be equal to one of the specified
|
|
280
|
+
* values
|
|
281
|
+
*
|
|
282
|
+
* @generated from protobuf field: repeated double not_in = 7
|
|
283
|
+
*/
|
|
284
|
+
notIn: number[];
|
|
285
|
+
/**
|
|
286
|
+
* IgnoreEmpty specifies that the validation rules of this field should be
|
|
287
|
+
* evaluated only if the field is not empty
|
|
288
|
+
*
|
|
289
|
+
* @generated from protobuf field: optional bool ignore_empty = 8
|
|
290
|
+
*/
|
|
291
|
+
ignoreEmpty?: boolean;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Int32Rules describes the constraints applied to `int32` values
|
|
295
|
+
*
|
|
296
|
+
* @generated from protobuf message validate.Int32Rules
|
|
297
|
+
*/
|
|
298
|
+
export interface Int32Rules {
|
|
299
|
+
/**
|
|
300
|
+
* Const specifies that this field must be exactly the specified value
|
|
301
|
+
*
|
|
302
|
+
* @generated from protobuf field: optional int32 const = 1
|
|
303
|
+
*/
|
|
304
|
+
const?: number;
|
|
305
|
+
/**
|
|
306
|
+
* Lt specifies that this field must be less than the specified value,
|
|
307
|
+
* exclusive
|
|
308
|
+
*
|
|
309
|
+
* @generated from protobuf field: optional int32 lt = 2
|
|
310
|
+
*/
|
|
311
|
+
lt?: number;
|
|
312
|
+
/**
|
|
313
|
+
* Lte specifies that this field must be less than or equal to the
|
|
314
|
+
* specified value, inclusive
|
|
315
|
+
*
|
|
316
|
+
* @generated from protobuf field: optional int32 lte = 3
|
|
317
|
+
*/
|
|
318
|
+
lte?: number;
|
|
319
|
+
/**
|
|
320
|
+
* Gt specifies that this field must be greater than the specified value,
|
|
321
|
+
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
|
|
322
|
+
* range is reversed.
|
|
323
|
+
*
|
|
324
|
+
* @generated from protobuf field: optional int32 gt = 4
|
|
325
|
+
*/
|
|
326
|
+
gt?: number;
|
|
327
|
+
/**
|
|
328
|
+
* Gte specifies that this field must be greater than or equal to the
|
|
329
|
+
* specified value, inclusive. If the value of Gte is larger than a
|
|
330
|
+
* specified Lt or Lte, the range is reversed.
|
|
331
|
+
*
|
|
332
|
+
* @generated from protobuf field: optional int32 gte = 5
|
|
333
|
+
*/
|
|
334
|
+
gte?: number;
|
|
335
|
+
/**
|
|
336
|
+
* In specifies that this field must be equal to one of the specified
|
|
337
|
+
* values
|
|
338
|
+
*
|
|
339
|
+
* @generated from protobuf field: repeated int32 in = 6
|
|
340
|
+
*/
|
|
341
|
+
in: number[];
|
|
342
|
+
/**
|
|
343
|
+
* NotIn specifies that this field cannot be equal to one of the specified
|
|
344
|
+
* values
|
|
345
|
+
*
|
|
346
|
+
* @generated from protobuf field: repeated int32 not_in = 7
|
|
347
|
+
*/
|
|
348
|
+
notIn: number[];
|
|
349
|
+
/**
|
|
350
|
+
* IgnoreEmpty specifies that the validation rules of this field should be
|
|
351
|
+
* evaluated only if the field is not empty
|
|
352
|
+
*
|
|
353
|
+
* @generated from protobuf field: optional bool ignore_empty = 8
|
|
354
|
+
*/
|
|
355
|
+
ignoreEmpty?: boolean;
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Int64Rules describes the constraints applied to `int64` values
|
|
359
|
+
*
|
|
360
|
+
* @generated from protobuf message validate.Int64Rules
|
|
361
|
+
*/
|
|
362
|
+
export interface Int64Rules {
|
|
363
|
+
/**
|
|
364
|
+
* Const specifies that this field must be exactly the specified value
|
|
365
|
+
*
|
|
366
|
+
* @generated from protobuf field: optional int64 const = 1
|
|
367
|
+
*/
|
|
368
|
+
const?: bigint;
|
|
369
|
+
/**
|
|
370
|
+
* Lt specifies that this field must be less than the specified value,
|
|
371
|
+
* exclusive
|
|
372
|
+
*
|
|
373
|
+
* @generated from protobuf field: optional int64 lt = 2
|
|
374
|
+
*/
|
|
375
|
+
lt?: bigint;
|
|
376
|
+
/**
|
|
377
|
+
* Lte specifies that this field must be less than or equal to the
|
|
378
|
+
* specified value, inclusive
|
|
379
|
+
*
|
|
380
|
+
* @generated from protobuf field: optional int64 lte = 3
|
|
381
|
+
*/
|
|
382
|
+
lte?: bigint;
|
|
383
|
+
/**
|
|
384
|
+
* Gt specifies that this field must be greater than the specified value,
|
|
385
|
+
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
|
|
386
|
+
* range is reversed.
|
|
387
|
+
*
|
|
388
|
+
* @generated from protobuf field: optional int64 gt = 4
|
|
389
|
+
*/
|
|
390
|
+
gt?: bigint;
|
|
391
|
+
/**
|
|
392
|
+
* Gte specifies that this field must be greater than or equal to the
|
|
393
|
+
* specified value, inclusive. If the value of Gte is larger than a
|
|
394
|
+
* specified Lt or Lte, the range is reversed.
|
|
395
|
+
*
|
|
396
|
+
* @generated from protobuf field: optional int64 gte = 5
|
|
397
|
+
*/
|
|
398
|
+
gte?: bigint;
|
|
399
|
+
/**
|
|
400
|
+
* In specifies that this field must be equal to one of the specified
|
|
401
|
+
* values
|
|
402
|
+
*
|
|
403
|
+
* @generated from protobuf field: repeated int64 in = 6
|
|
404
|
+
*/
|
|
405
|
+
in: bigint[];
|
|
406
|
+
/**
|
|
407
|
+
* NotIn specifies that this field cannot be equal to one of the specified
|
|
408
|
+
* values
|
|
409
|
+
*
|
|
410
|
+
* @generated from protobuf field: repeated int64 not_in = 7
|
|
411
|
+
*/
|
|
412
|
+
notIn: bigint[];
|
|
413
|
+
/**
|
|
414
|
+
* IgnoreEmpty specifies that the validation rules of this field should be
|
|
415
|
+
* evaluated only if the field is not empty
|
|
416
|
+
*
|
|
417
|
+
* @generated from protobuf field: optional bool ignore_empty = 8
|
|
418
|
+
*/
|
|
419
|
+
ignoreEmpty?: boolean;
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* UInt32Rules describes the constraints applied to `uint32` values
|
|
423
|
+
*
|
|
424
|
+
* @generated from protobuf message validate.UInt32Rules
|
|
425
|
+
*/
|
|
426
|
+
export interface UInt32Rules {
|
|
427
|
+
/**
|
|
428
|
+
* Const specifies that this field must be exactly the specified value
|
|
429
|
+
*
|
|
430
|
+
* @generated from protobuf field: optional uint32 const = 1
|
|
431
|
+
*/
|
|
432
|
+
const?: number;
|
|
433
|
+
/**
|
|
434
|
+
* Lt specifies that this field must be less than the specified value,
|
|
435
|
+
* exclusive
|
|
436
|
+
*
|
|
437
|
+
* @generated from protobuf field: optional uint32 lt = 2
|
|
438
|
+
*/
|
|
439
|
+
lt?: number;
|
|
440
|
+
/**
|
|
441
|
+
* Lte specifies that this field must be less than or equal to the
|
|
442
|
+
* specified value, inclusive
|
|
443
|
+
*
|
|
444
|
+
* @generated from protobuf field: optional uint32 lte = 3
|
|
445
|
+
*/
|
|
446
|
+
lte?: number;
|
|
447
|
+
/**
|
|
448
|
+
* Gt specifies that this field must be greater than the specified value,
|
|
449
|
+
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
|
|
450
|
+
* range is reversed.
|
|
451
|
+
*
|
|
452
|
+
* @generated from protobuf field: optional uint32 gt = 4
|
|
453
|
+
*/
|
|
454
|
+
gt?: number;
|
|
455
|
+
/**
|
|
456
|
+
* Gte specifies that this field must be greater than or equal to the
|
|
457
|
+
* specified value, inclusive. If the value of Gte is larger than a
|
|
458
|
+
* specified Lt or Lte, the range is reversed.
|
|
459
|
+
*
|
|
460
|
+
* @generated from protobuf field: optional uint32 gte = 5
|
|
461
|
+
*/
|
|
462
|
+
gte?: number;
|
|
463
|
+
/**
|
|
464
|
+
* In specifies that this field must be equal to one of the specified
|
|
465
|
+
* values
|
|
466
|
+
*
|
|
467
|
+
* @generated from protobuf field: repeated uint32 in = 6
|
|
468
|
+
*/
|
|
469
|
+
in: number[];
|
|
470
|
+
/**
|
|
471
|
+
* NotIn specifies that this field cannot be equal to one of the specified
|
|
472
|
+
* values
|
|
473
|
+
*
|
|
474
|
+
* @generated from protobuf field: repeated uint32 not_in = 7
|
|
475
|
+
*/
|
|
476
|
+
notIn: number[];
|
|
477
|
+
/**
|
|
478
|
+
* IgnoreEmpty specifies that the validation rules of this field should be
|
|
479
|
+
* evaluated only if the field is not empty
|
|
480
|
+
*
|
|
481
|
+
* @generated from protobuf field: optional bool ignore_empty = 8
|
|
482
|
+
*/
|
|
483
|
+
ignoreEmpty?: boolean;
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* UInt64Rules describes the constraints applied to `uint64` values
|
|
487
|
+
*
|
|
488
|
+
* @generated from protobuf message validate.UInt64Rules
|
|
489
|
+
*/
|
|
490
|
+
export interface UInt64Rules {
|
|
491
|
+
/**
|
|
492
|
+
* Const specifies that this field must be exactly the specified value
|
|
493
|
+
*
|
|
494
|
+
* @generated from protobuf field: optional uint64 const = 1
|
|
495
|
+
*/
|
|
496
|
+
const?: bigint;
|
|
497
|
+
/**
|
|
498
|
+
* Lt specifies that this field must be less than the specified value,
|
|
499
|
+
* exclusive
|
|
500
|
+
*
|
|
501
|
+
* @generated from protobuf field: optional uint64 lt = 2
|
|
502
|
+
*/
|
|
503
|
+
lt?: bigint;
|
|
504
|
+
/**
|
|
505
|
+
* Lte specifies that this field must be less than or equal to the
|
|
506
|
+
* specified value, inclusive
|
|
507
|
+
*
|
|
508
|
+
* @generated from protobuf field: optional uint64 lte = 3
|
|
509
|
+
*/
|
|
510
|
+
lte?: bigint;
|
|
511
|
+
/**
|
|
512
|
+
* Gt specifies that this field must be greater than the specified value,
|
|
513
|
+
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
|
|
514
|
+
* range is reversed.
|
|
515
|
+
*
|
|
516
|
+
* @generated from protobuf field: optional uint64 gt = 4
|
|
517
|
+
*/
|
|
518
|
+
gt?: bigint;
|
|
519
|
+
/**
|
|
520
|
+
* Gte specifies that this field must be greater than or equal to the
|
|
521
|
+
* specified value, inclusive. If the value of Gte is larger than a
|
|
522
|
+
* specified Lt or Lte, the range is reversed.
|
|
523
|
+
*
|
|
524
|
+
* @generated from protobuf field: optional uint64 gte = 5
|
|
525
|
+
*/
|
|
526
|
+
gte?: bigint;
|
|
527
|
+
/**
|
|
528
|
+
* In specifies that this field must be equal to one of the specified
|
|
529
|
+
* values
|
|
530
|
+
*
|
|
531
|
+
* @generated from protobuf field: repeated uint64 in = 6
|
|
532
|
+
*/
|
|
533
|
+
in: bigint[];
|
|
534
|
+
/**
|
|
535
|
+
* NotIn specifies that this field cannot be equal to one of the specified
|
|
536
|
+
* values
|
|
537
|
+
*
|
|
538
|
+
* @generated from protobuf field: repeated uint64 not_in = 7
|
|
539
|
+
*/
|
|
540
|
+
notIn: bigint[];
|
|
541
|
+
/**
|
|
542
|
+
* IgnoreEmpty specifies that the validation rules of this field should be
|
|
543
|
+
* evaluated only if the field is not empty
|
|
544
|
+
*
|
|
545
|
+
* @generated from protobuf field: optional bool ignore_empty = 8
|
|
546
|
+
*/
|
|
547
|
+
ignoreEmpty?: boolean;
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* SInt32Rules describes the constraints applied to `sint32` values
|
|
551
|
+
*
|
|
552
|
+
* @generated from protobuf message validate.SInt32Rules
|
|
553
|
+
*/
|
|
554
|
+
export interface SInt32Rules {
|
|
555
|
+
/**
|
|
556
|
+
* Const specifies that this field must be exactly the specified value
|
|
557
|
+
*
|
|
558
|
+
* @generated from protobuf field: optional sint32 const = 1
|
|
559
|
+
*/
|
|
560
|
+
const?: number;
|
|
561
|
+
/**
|
|
562
|
+
* Lt specifies that this field must be less than the specified value,
|
|
563
|
+
* exclusive
|
|
564
|
+
*
|
|
565
|
+
* @generated from protobuf field: optional sint32 lt = 2
|
|
566
|
+
*/
|
|
567
|
+
lt?: number;
|
|
568
|
+
/**
|
|
569
|
+
* Lte specifies that this field must be less than or equal to the
|
|
570
|
+
* specified value, inclusive
|
|
571
|
+
*
|
|
572
|
+
* @generated from protobuf field: optional sint32 lte = 3
|
|
573
|
+
*/
|
|
574
|
+
lte?: number;
|
|
575
|
+
/**
|
|
576
|
+
* Gt specifies that this field must be greater than the specified value,
|
|
577
|
+
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
|
|
578
|
+
* range is reversed.
|
|
579
|
+
*
|
|
580
|
+
* @generated from protobuf field: optional sint32 gt = 4
|
|
581
|
+
*/
|
|
582
|
+
gt?: number;
|
|
583
|
+
/**
|
|
584
|
+
* Gte specifies that this field must be greater than or equal to the
|
|
585
|
+
* specified value, inclusive. If the value of Gte is larger than a
|
|
586
|
+
* specified Lt or Lte, the range is reversed.
|
|
587
|
+
*
|
|
588
|
+
* @generated from protobuf field: optional sint32 gte = 5
|
|
589
|
+
*/
|
|
590
|
+
gte?: number;
|
|
591
|
+
/**
|
|
592
|
+
* In specifies that this field must be equal to one of the specified
|
|
593
|
+
* values
|
|
594
|
+
*
|
|
595
|
+
* @generated from protobuf field: repeated sint32 in = 6
|
|
596
|
+
*/
|
|
597
|
+
in: number[];
|
|
598
|
+
/**
|
|
599
|
+
* NotIn specifies that this field cannot be equal to one of the specified
|
|
600
|
+
* values
|
|
601
|
+
*
|
|
602
|
+
* @generated from protobuf field: repeated sint32 not_in = 7
|
|
603
|
+
*/
|
|
604
|
+
notIn: number[];
|
|
605
|
+
/**
|
|
606
|
+
* IgnoreEmpty specifies that the validation rules of this field should be
|
|
607
|
+
* evaluated only if the field is not empty
|
|
608
|
+
*
|
|
609
|
+
* @generated from protobuf field: optional bool ignore_empty = 8
|
|
610
|
+
*/
|
|
611
|
+
ignoreEmpty?: boolean;
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* SInt64Rules describes the constraints applied to `sint64` values
|
|
615
|
+
*
|
|
616
|
+
* @generated from protobuf message validate.SInt64Rules
|
|
617
|
+
*/
|
|
618
|
+
export interface SInt64Rules {
|
|
619
|
+
/**
|
|
620
|
+
* Const specifies that this field must be exactly the specified value
|
|
621
|
+
*
|
|
622
|
+
* @generated from protobuf field: optional sint64 const = 1
|
|
623
|
+
*/
|
|
624
|
+
const?: bigint;
|
|
625
|
+
/**
|
|
626
|
+
* Lt specifies that this field must be less than the specified value,
|
|
627
|
+
* exclusive
|
|
628
|
+
*
|
|
629
|
+
* @generated from protobuf field: optional sint64 lt = 2
|
|
630
|
+
*/
|
|
631
|
+
lt?: bigint;
|
|
632
|
+
/**
|
|
633
|
+
* Lte specifies that this field must be less than or equal to the
|
|
634
|
+
* specified value, inclusive
|
|
635
|
+
*
|
|
636
|
+
* @generated from protobuf field: optional sint64 lte = 3
|
|
637
|
+
*/
|
|
638
|
+
lte?: bigint;
|
|
639
|
+
/**
|
|
640
|
+
* Gt specifies that this field must be greater than the specified value,
|
|
641
|
+
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
|
|
642
|
+
* range is reversed.
|
|
643
|
+
*
|
|
644
|
+
* @generated from protobuf field: optional sint64 gt = 4
|
|
645
|
+
*/
|
|
646
|
+
gt?: bigint;
|
|
647
|
+
/**
|
|
648
|
+
* Gte specifies that this field must be greater than or equal to the
|
|
649
|
+
* specified value, inclusive. If the value of Gte is larger than a
|
|
650
|
+
* specified Lt or Lte, the range is reversed.
|
|
651
|
+
*
|
|
652
|
+
* @generated from protobuf field: optional sint64 gte = 5
|
|
653
|
+
*/
|
|
654
|
+
gte?: bigint;
|
|
655
|
+
/**
|
|
656
|
+
* In specifies that this field must be equal to one of the specified
|
|
657
|
+
* values
|
|
658
|
+
*
|
|
659
|
+
* @generated from protobuf field: repeated sint64 in = 6
|
|
660
|
+
*/
|
|
661
|
+
in: bigint[];
|
|
662
|
+
/**
|
|
663
|
+
* NotIn specifies that this field cannot be equal to one of the specified
|
|
664
|
+
* values
|
|
665
|
+
*
|
|
666
|
+
* @generated from protobuf field: repeated sint64 not_in = 7
|
|
667
|
+
*/
|
|
668
|
+
notIn: bigint[];
|
|
669
|
+
/**
|
|
670
|
+
* IgnoreEmpty specifies that the validation rules of this field should be
|
|
671
|
+
* evaluated only if the field is not empty
|
|
672
|
+
*
|
|
673
|
+
* @generated from protobuf field: optional bool ignore_empty = 8
|
|
674
|
+
*/
|
|
675
|
+
ignoreEmpty?: boolean;
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* Fixed32Rules describes the constraints applied to `fixed32` values
|
|
679
|
+
*
|
|
680
|
+
* @generated from protobuf message validate.Fixed32Rules
|
|
681
|
+
*/
|
|
682
|
+
export interface Fixed32Rules {
|
|
683
|
+
/**
|
|
684
|
+
* Const specifies that this field must be exactly the specified value
|
|
685
|
+
*
|
|
686
|
+
* @generated from protobuf field: optional fixed32 const = 1
|
|
687
|
+
*/
|
|
688
|
+
const?: number;
|
|
689
|
+
/**
|
|
690
|
+
* Lt specifies that this field must be less than the specified value,
|
|
691
|
+
* exclusive
|
|
692
|
+
*
|
|
693
|
+
* @generated from protobuf field: optional fixed32 lt = 2
|
|
694
|
+
*/
|
|
695
|
+
lt?: number;
|
|
696
|
+
/**
|
|
697
|
+
* Lte specifies that this field must be less than or equal to the
|
|
698
|
+
* specified value, inclusive
|
|
699
|
+
*
|
|
700
|
+
* @generated from protobuf field: optional fixed32 lte = 3
|
|
701
|
+
*/
|
|
702
|
+
lte?: number;
|
|
703
|
+
/**
|
|
704
|
+
* Gt specifies that this field must be greater than the specified value,
|
|
705
|
+
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
|
|
706
|
+
* range is reversed.
|
|
707
|
+
*
|
|
708
|
+
* @generated from protobuf field: optional fixed32 gt = 4
|
|
709
|
+
*/
|
|
710
|
+
gt?: number;
|
|
711
|
+
/**
|
|
712
|
+
* Gte specifies that this field must be greater than or equal to the
|
|
713
|
+
* specified value, inclusive. If the value of Gte is larger than a
|
|
714
|
+
* specified Lt or Lte, the range is reversed.
|
|
715
|
+
*
|
|
716
|
+
* @generated from protobuf field: optional fixed32 gte = 5
|
|
717
|
+
*/
|
|
718
|
+
gte?: number;
|
|
719
|
+
/**
|
|
720
|
+
* In specifies that this field must be equal to one of the specified
|
|
721
|
+
* values
|
|
722
|
+
*
|
|
723
|
+
* @generated from protobuf field: repeated fixed32 in = 6
|
|
724
|
+
*/
|
|
725
|
+
in: number[];
|
|
726
|
+
/**
|
|
727
|
+
* NotIn specifies that this field cannot be equal to one of the specified
|
|
728
|
+
* values
|
|
729
|
+
*
|
|
730
|
+
* @generated from protobuf field: repeated fixed32 not_in = 7
|
|
731
|
+
*/
|
|
732
|
+
notIn: number[];
|
|
733
|
+
/**
|
|
734
|
+
* IgnoreEmpty specifies that the validation rules of this field should be
|
|
735
|
+
* evaluated only if the field is not empty
|
|
736
|
+
*
|
|
737
|
+
* @generated from protobuf field: optional bool ignore_empty = 8
|
|
738
|
+
*/
|
|
739
|
+
ignoreEmpty?: boolean;
|
|
740
|
+
}
|
|
741
|
+
/**
|
|
742
|
+
* Fixed64Rules describes the constraints applied to `fixed64` values
|
|
743
|
+
*
|
|
744
|
+
* @generated from protobuf message validate.Fixed64Rules
|
|
745
|
+
*/
|
|
746
|
+
export interface Fixed64Rules {
|
|
747
|
+
/**
|
|
748
|
+
* Const specifies that this field must be exactly the specified value
|
|
749
|
+
*
|
|
750
|
+
* @generated from protobuf field: optional fixed64 const = 1
|
|
751
|
+
*/
|
|
752
|
+
const?: bigint;
|
|
753
|
+
/**
|
|
754
|
+
* Lt specifies that this field must be less than the specified value,
|
|
755
|
+
* exclusive
|
|
756
|
+
*
|
|
757
|
+
* @generated from protobuf field: optional fixed64 lt = 2
|
|
758
|
+
*/
|
|
759
|
+
lt?: bigint;
|
|
760
|
+
/**
|
|
761
|
+
* Lte specifies that this field must be less than or equal to the
|
|
762
|
+
* specified value, inclusive
|
|
763
|
+
*
|
|
764
|
+
* @generated from protobuf field: optional fixed64 lte = 3
|
|
765
|
+
*/
|
|
766
|
+
lte?: bigint;
|
|
767
|
+
/**
|
|
768
|
+
* Gt specifies that this field must be greater than the specified value,
|
|
769
|
+
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
|
|
770
|
+
* range is reversed.
|
|
771
|
+
*
|
|
772
|
+
* @generated from protobuf field: optional fixed64 gt = 4
|
|
773
|
+
*/
|
|
774
|
+
gt?: bigint;
|
|
775
|
+
/**
|
|
776
|
+
* Gte specifies that this field must be greater than or equal to the
|
|
777
|
+
* specified value, inclusive. If the value of Gte is larger than a
|
|
778
|
+
* specified Lt or Lte, the range is reversed.
|
|
779
|
+
*
|
|
780
|
+
* @generated from protobuf field: optional fixed64 gte = 5
|
|
781
|
+
*/
|
|
782
|
+
gte?: bigint;
|
|
783
|
+
/**
|
|
784
|
+
* In specifies that this field must be equal to one of the specified
|
|
785
|
+
* values
|
|
786
|
+
*
|
|
787
|
+
* @generated from protobuf field: repeated fixed64 in = 6
|
|
788
|
+
*/
|
|
789
|
+
in: bigint[];
|
|
790
|
+
/**
|
|
791
|
+
* NotIn specifies that this field cannot be equal to one of the specified
|
|
792
|
+
* values
|
|
793
|
+
*
|
|
794
|
+
* @generated from protobuf field: repeated fixed64 not_in = 7
|
|
795
|
+
*/
|
|
796
|
+
notIn: bigint[];
|
|
797
|
+
/**
|
|
798
|
+
* IgnoreEmpty specifies that the validation rules of this field should be
|
|
799
|
+
* evaluated only if the field is not empty
|
|
800
|
+
*
|
|
801
|
+
* @generated from protobuf field: optional bool ignore_empty = 8
|
|
802
|
+
*/
|
|
803
|
+
ignoreEmpty?: boolean;
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* SFixed32Rules describes the constraints applied to `sfixed32` values
|
|
807
|
+
*
|
|
808
|
+
* @generated from protobuf message validate.SFixed32Rules
|
|
809
|
+
*/
|
|
810
|
+
export interface SFixed32Rules {
|
|
811
|
+
/**
|
|
812
|
+
* Const specifies that this field must be exactly the specified value
|
|
813
|
+
*
|
|
814
|
+
* @generated from protobuf field: optional sfixed32 const = 1
|
|
815
|
+
*/
|
|
816
|
+
const?: number;
|
|
817
|
+
/**
|
|
818
|
+
* Lt specifies that this field must be less than the specified value,
|
|
819
|
+
* exclusive
|
|
820
|
+
*
|
|
821
|
+
* @generated from protobuf field: optional sfixed32 lt = 2
|
|
822
|
+
*/
|
|
823
|
+
lt?: number;
|
|
824
|
+
/**
|
|
825
|
+
* Lte specifies that this field must be less than or equal to the
|
|
826
|
+
* specified value, inclusive
|
|
827
|
+
*
|
|
828
|
+
* @generated from protobuf field: optional sfixed32 lte = 3
|
|
829
|
+
*/
|
|
830
|
+
lte?: number;
|
|
831
|
+
/**
|
|
832
|
+
* Gt specifies that this field must be greater than the specified value,
|
|
833
|
+
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
|
|
834
|
+
* range is reversed.
|
|
835
|
+
*
|
|
836
|
+
* @generated from protobuf field: optional sfixed32 gt = 4
|
|
837
|
+
*/
|
|
838
|
+
gt?: number;
|
|
839
|
+
/**
|
|
840
|
+
* Gte specifies that this field must be greater than or equal to the
|
|
841
|
+
* specified value, inclusive. If the value of Gte is larger than a
|
|
842
|
+
* specified Lt or Lte, the range is reversed.
|
|
843
|
+
*
|
|
844
|
+
* @generated from protobuf field: optional sfixed32 gte = 5
|
|
845
|
+
*/
|
|
846
|
+
gte?: number;
|
|
847
|
+
/**
|
|
848
|
+
* In specifies that this field must be equal to one of the specified
|
|
849
|
+
* values
|
|
850
|
+
*
|
|
851
|
+
* @generated from protobuf field: repeated sfixed32 in = 6
|
|
852
|
+
*/
|
|
853
|
+
in: number[];
|
|
854
|
+
/**
|
|
855
|
+
* NotIn specifies that this field cannot be equal to one of the specified
|
|
856
|
+
* values
|
|
857
|
+
*
|
|
858
|
+
* @generated from protobuf field: repeated sfixed32 not_in = 7
|
|
859
|
+
*/
|
|
860
|
+
notIn: number[];
|
|
861
|
+
/**
|
|
862
|
+
* IgnoreEmpty specifies that the validation rules of this field should be
|
|
863
|
+
* evaluated only if the field is not empty
|
|
864
|
+
*
|
|
865
|
+
* @generated from protobuf field: optional bool ignore_empty = 8
|
|
866
|
+
*/
|
|
867
|
+
ignoreEmpty?: boolean;
|
|
868
|
+
}
|
|
869
|
+
/**
|
|
870
|
+
* SFixed64Rules describes the constraints applied to `sfixed64` values
|
|
871
|
+
*
|
|
872
|
+
* @generated from protobuf message validate.SFixed64Rules
|
|
873
|
+
*/
|
|
874
|
+
export interface SFixed64Rules {
|
|
875
|
+
/**
|
|
876
|
+
* Const specifies that this field must be exactly the specified value
|
|
877
|
+
*
|
|
878
|
+
* @generated from protobuf field: optional sfixed64 const = 1
|
|
879
|
+
*/
|
|
880
|
+
const?: bigint;
|
|
881
|
+
/**
|
|
882
|
+
* Lt specifies that this field must be less than the specified value,
|
|
883
|
+
* exclusive
|
|
884
|
+
*
|
|
885
|
+
* @generated from protobuf field: optional sfixed64 lt = 2
|
|
886
|
+
*/
|
|
887
|
+
lt?: bigint;
|
|
888
|
+
/**
|
|
889
|
+
* Lte specifies that this field must be less than or equal to the
|
|
890
|
+
* specified value, inclusive
|
|
891
|
+
*
|
|
892
|
+
* @generated from protobuf field: optional sfixed64 lte = 3
|
|
893
|
+
*/
|
|
894
|
+
lte?: bigint;
|
|
895
|
+
/**
|
|
896
|
+
* Gt specifies that this field must be greater than the specified value,
|
|
897
|
+
* exclusive. If the value of Gt is larger than a specified Lt or Lte, the
|
|
898
|
+
* range is reversed.
|
|
899
|
+
*
|
|
900
|
+
* @generated from protobuf field: optional sfixed64 gt = 4
|
|
901
|
+
*/
|
|
902
|
+
gt?: bigint;
|
|
903
|
+
/**
|
|
904
|
+
* Gte specifies that this field must be greater than or equal to the
|
|
905
|
+
* specified value, inclusive. If the value of Gte is larger than a
|
|
906
|
+
* specified Lt or Lte, the range is reversed.
|
|
907
|
+
*
|
|
908
|
+
* @generated from protobuf field: optional sfixed64 gte = 5
|
|
909
|
+
*/
|
|
910
|
+
gte?: bigint;
|
|
911
|
+
/**
|
|
912
|
+
* In specifies that this field must be equal to one of the specified
|
|
913
|
+
* values
|
|
914
|
+
*
|
|
915
|
+
* @generated from protobuf field: repeated sfixed64 in = 6
|
|
916
|
+
*/
|
|
917
|
+
in: bigint[];
|
|
918
|
+
/**
|
|
919
|
+
* NotIn specifies that this field cannot be equal to one of the specified
|
|
920
|
+
* values
|
|
921
|
+
*
|
|
922
|
+
* @generated from protobuf field: repeated sfixed64 not_in = 7
|
|
923
|
+
*/
|
|
924
|
+
notIn: bigint[];
|
|
925
|
+
/**
|
|
926
|
+
* IgnoreEmpty specifies that the validation rules of this field should be
|
|
927
|
+
* evaluated only if the field is not empty
|
|
928
|
+
*
|
|
929
|
+
* @generated from protobuf field: optional bool ignore_empty = 8
|
|
930
|
+
*/
|
|
931
|
+
ignoreEmpty?: boolean;
|
|
932
|
+
}
|
|
933
|
+
/**
|
|
934
|
+
* BoolRules describes the constraints applied to `bool` values
|
|
935
|
+
*
|
|
936
|
+
* @generated from protobuf message validate.BoolRules
|
|
937
|
+
*/
|
|
938
|
+
export interface BoolRules {
|
|
939
|
+
/**
|
|
940
|
+
* Const specifies that this field must be exactly the specified value
|
|
941
|
+
*
|
|
942
|
+
* @generated from protobuf field: optional bool const = 1
|
|
943
|
+
*/
|
|
944
|
+
const?: boolean;
|
|
945
|
+
}
|
|
946
|
+
/**
|
|
947
|
+
* StringRules describe the constraints applied to `string` values
|
|
948
|
+
*
|
|
949
|
+
* @generated from protobuf message validate.StringRules
|
|
950
|
+
*/
|
|
951
|
+
export interface StringRules {
|
|
952
|
+
/**
|
|
953
|
+
* Const specifies that this field must be exactly the specified value
|
|
954
|
+
*
|
|
955
|
+
* @generated from protobuf field: optional string const = 1
|
|
956
|
+
*/
|
|
957
|
+
const?: string;
|
|
958
|
+
/**
|
|
959
|
+
* Len specifies that this field must be the specified number of
|
|
960
|
+
* characters (Unicode code points). Note that the number of
|
|
961
|
+
* characters may differ from the number of bytes in the string.
|
|
962
|
+
*
|
|
963
|
+
* @generated from protobuf field: optional uint64 len = 19
|
|
964
|
+
*/
|
|
965
|
+
len?: bigint;
|
|
966
|
+
/**
|
|
967
|
+
* MinLen specifies that this field must be the specified number of
|
|
968
|
+
* characters (Unicode code points) at a minimum. Note that the number of
|
|
969
|
+
* characters may differ from the number of bytes in the string.
|
|
970
|
+
*
|
|
971
|
+
* @generated from protobuf field: optional uint64 min_len = 2
|
|
972
|
+
*/
|
|
973
|
+
minLen?: bigint;
|
|
974
|
+
/**
|
|
975
|
+
* MaxLen specifies that this field must be the specified number of
|
|
976
|
+
* characters (Unicode code points) at a maximum. Note that the number of
|
|
977
|
+
* characters may differ from the number of bytes in the string.
|
|
978
|
+
*
|
|
979
|
+
* @generated from protobuf field: optional uint64 max_len = 3
|
|
980
|
+
*/
|
|
981
|
+
maxLen?: bigint;
|
|
982
|
+
/**
|
|
983
|
+
* LenBytes specifies that this field must be the specified number of bytes
|
|
984
|
+
*
|
|
985
|
+
* @generated from protobuf field: optional uint64 len_bytes = 20
|
|
986
|
+
*/
|
|
987
|
+
lenBytes?: bigint;
|
|
988
|
+
/**
|
|
989
|
+
* MinBytes specifies that this field must be the specified number of bytes
|
|
990
|
+
* at a minimum
|
|
991
|
+
*
|
|
992
|
+
* @generated from protobuf field: optional uint64 min_bytes = 4
|
|
993
|
+
*/
|
|
994
|
+
minBytes?: bigint;
|
|
995
|
+
/**
|
|
996
|
+
* MaxBytes specifies that this field must be the specified number of bytes
|
|
997
|
+
* at a maximum
|
|
998
|
+
*
|
|
999
|
+
* @generated from protobuf field: optional uint64 max_bytes = 5
|
|
1000
|
+
*/
|
|
1001
|
+
maxBytes?: bigint;
|
|
1002
|
+
/**
|
|
1003
|
+
* Pattern specifes that this field must match against the specified
|
|
1004
|
+
* regular expression (RE2 syntax). The included expression should elide
|
|
1005
|
+
* any delimiters.
|
|
1006
|
+
*
|
|
1007
|
+
* @generated from protobuf field: optional string pattern = 6
|
|
1008
|
+
*/
|
|
1009
|
+
pattern?: string;
|
|
1010
|
+
/**
|
|
1011
|
+
* Prefix specifies that this field must have the specified substring at
|
|
1012
|
+
* the beginning of the string.
|
|
1013
|
+
*
|
|
1014
|
+
* @generated from protobuf field: optional string prefix = 7
|
|
1015
|
+
*/
|
|
1016
|
+
prefix?: string;
|
|
1017
|
+
/**
|
|
1018
|
+
* Suffix specifies that this field must have the specified substring at
|
|
1019
|
+
* the end of the string.
|
|
1020
|
+
*
|
|
1021
|
+
* @generated from protobuf field: optional string suffix = 8
|
|
1022
|
+
*/
|
|
1023
|
+
suffix?: string;
|
|
1024
|
+
/**
|
|
1025
|
+
* Contains specifies that this field must have the specified substring
|
|
1026
|
+
* anywhere in the string.
|
|
1027
|
+
*
|
|
1028
|
+
* @generated from protobuf field: optional string contains = 9
|
|
1029
|
+
*/
|
|
1030
|
+
contains?: string;
|
|
1031
|
+
/**
|
|
1032
|
+
* NotContains specifies that this field cannot have the specified substring
|
|
1033
|
+
* anywhere in the string.
|
|
1034
|
+
*
|
|
1035
|
+
* @generated from protobuf field: optional string not_contains = 23
|
|
1036
|
+
*/
|
|
1037
|
+
notContains?: string;
|
|
1038
|
+
/**
|
|
1039
|
+
* In specifies that this field must be equal to one of the specified
|
|
1040
|
+
* values
|
|
1041
|
+
*
|
|
1042
|
+
* @generated from protobuf field: repeated string in = 10
|
|
1043
|
+
*/
|
|
1044
|
+
in: string[];
|
|
1045
|
+
/**
|
|
1046
|
+
* NotIn specifies that this field cannot be equal to one of the specified
|
|
1047
|
+
* values
|
|
1048
|
+
*
|
|
1049
|
+
* @generated from protobuf field: repeated string not_in = 11
|
|
1050
|
+
*/
|
|
1051
|
+
notIn: string[];
|
|
1052
|
+
/**
|
|
1053
|
+
* WellKnown rules provide advanced constraints against common string
|
|
1054
|
+
* patterns
|
|
1055
|
+
*
|
|
1056
|
+
* @generated from protobuf oneof: well_known
|
|
1057
|
+
*/
|
|
1058
|
+
wellKnown: {
|
|
1059
|
+
oneofKind: "email";
|
|
1060
|
+
/**
|
|
1061
|
+
* Email specifies that the field must be a valid email address as
|
|
1062
|
+
* defined by RFC 5322
|
|
1063
|
+
*
|
|
1064
|
+
* @generated from protobuf field: bool email = 12
|
|
1065
|
+
*/
|
|
1066
|
+
email: boolean;
|
|
1067
|
+
} | {
|
|
1068
|
+
oneofKind: "hostname";
|
|
1069
|
+
/**
|
|
1070
|
+
* Hostname specifies that the field must be a valid hostname as
|
|
1071
|
+
* defined by RFC 1034. This constraint does not support
|
|
1072
|
+
* internationalized domain names (IDNs).
|
|
1073
|
+
*
|
|
1074
|
+
* @generated from protobuf field: bool hostname = 13
|
|
1075
|
+
*/
|
|
1076
|
+
hostname: boolean;
|
|
1077
|
+
} | {
|
|
1078
|
+
oneofKind: "ip";
|
|
1079
|
+
/**
|
|
1080
|
+
* Ip specifies that the field must be a valid IP (v4 or v6) address.
|
|
1081
|
+
* Valid IPv6 addresses should not include surrounding square brackets.
|
|
1082
|
+
*
|
|
1083
|
+
* @generated from protobuf field: bool ip = 14
|
|
1084
|
+
*/
|
|
1085
|
+
ip: boolean;
|
|
1086
|
+
} | {
|
|
1087
|
+
oneofKind: "ipv4";
|
|
1088
|
+
/**
|
|
1089
|
+
* Ipv4 specifies that the field must be a valid IPv4 address.
|
|
1090
|
+
*
|
|
1091
|
+
* @generated from protobuf field: bool ipv4 = 15
|
|
1092
|
+
*/
|
|
1093
|
+
ipv4: boolean;
|
|
1094
|
+
} | {
|
|
1095
|
+
oneofKind: "ipv6";
|
|
1096
|
+
/**
|
|
1097
|
+
* Ipv6 specifies that the field must be a valid IPv6 address. Valid
|
|
1098
|
+
* IPv6 addresses should not include surrounding square brackets.
|
|
1099
|
+
*
|
|
1100
|
+
* @generated from protobuf field: bool ipv6 = 16
|
|
1101
|
+
*/
|
|
1102
|
+
ipv6: boolean;
|
|
1103
|
+
} | {
|
|
1104
|
+
oneofKind: "uri";
|
|
1105
|
+
/**
|
|
1106
|
+
* Uri specifies that the field must be a valid, absolute URI as defined
|
|
1107
|
+
* by RFC 3986
|
|
1108
|
+
*
|
|
1109
|
+
* @generated from protobuf field: bool uri = 17
|
|
1110
|
+
*/
|
|
1111
|
+
uri: boolean;
|
|
1112
|
+
} | {
|
|
1113
|
+
oneofKind: "uriRef";
|
|
1114
|
+
/**
|
|
1115
|
+
* UriRef specifies that the field must be a valid URI as defined by RFC
|
|
1116
|
+
* 3986 and may be relative or absolute.
|
|
1117
|
+
*
|
|
1118
|
+
* @generated from protobuf field: bool uri_ref = 18
|
|
1119
|
+
*/
|
|
1120
|
+
uriRef: boolean;
|
|
1121
|
+
} | {
|
|
1122
|
+
oneofKind: "address";
|
|
1123
|
+
/**
|
|
1124
|
+
* Address specifies that the field must be either a valid hostname as
|
|
1125
|
+
* defined by RFC 1034 (which does not support internationalized domain
|
|
1126
|
+
* names or IDNs), or it can be a valid IP (v4 or v6).
|
|
1127
|
+
*
|
|
1128
|
+
* @generated from protobuf field: bool address = 21
|
|
1129
|
+
*/
|
|
1130
|
+
address: boolean;
|
|
1131
|
+
} | {
|
|
1132
|
+
oneofKind: "uuid";
|
|
1133
|
+
/**
|
|
1134
|
+
* Uuid specifies that the field must be a valid UUID as defined by
|
|
1135
|
+
* RFC 4122
|
|
1136
|
+
*
|
|
1137
|
+
* @generated from protobuf field: bool uuid = 22
|
|
1138
|
+
*/
|
|
1139
|
+
uuid: boolean;
|
|
1140
|
+
} | {
|
|
1141
|
+
oneofKind: "wellKnownRegex";
|
|
1142
|
+
/**
|
|
1143
|
+
* WellKnownRegex specifies a common well known pattern defined as a regex.
|
|
1144
|
+
*
|
|
1145
|
+
* @generated from protobuf field: validate.KnownRegex well_known_regex = 24
|
|
1146
|
+
*/
|
|
1147
|
+
wellKnownRegex: KnownRegex;
|
|
1148
|
+
} | {
|
|
1149
|
+
oneofKind: undefined;
|
|
1150
|
+
};
|
|
1151
|
+
/**
|
|
1152
|
+
* This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable
|
|
1153
|
+
* strict header validation.
|
|
1154
|
+
* By default, this is true, and HTTP header validations are RFC-compliant.
|
|
1155
|
+
* Setting to false will enable a looser validations that only disallows
|
|
1156
|
+
* \r\n\0 characters, which can be used to bypass header matching rules.
|
|
1157
|
+
*
|
|
1158
|
+
* @generated from protobuf field: optional bool strict = 25 [default = true]
|
|
1159
|
+
*/
|
|
1160
|
+
strict?: boolean;
|
|
1161
|
+
/**
|
|
1162
|
+
* IgnoreEmpty specifies that the validation rules of this field should be
|
|
1163
|
+
* evaluated only if the field is not empty
|
|
1164
|
+
*
|
|
1165
|
+
* @generated from protobuf field: optional bool ignore_empty = 26
|
|
1166
|
+
*/
|
|
1167
|
+
ignoreEmpty?: boolean;
|
|
1168
|
+
}
|
|
1169
|
+
/**
|
|
1170
|
+
* BytesRules describe the constraints applied to `bytes` values
|
|
1171
|
+
*
|
|
1172
|
+
* @generated from protobuf message validate.BytesRules
|
|
1173
|
+
*/
|
|
1174
|
+
export interface BytesRules {
|
|
1175
|
+
/**
|
|
1176
|
+
* Const specifies that this field must be exactly the specified value
|
|
1177
|
+
*
|
|
1178
|
+
* @generated from protobuf field: optional bytes const = 1
|
|
1179
|
+
*/
|
|
1180
|
+
const?: Uint8Array;
|
|
1181
|
+
/**
|
|
1182
|
+
* Len specifies that this field must be the specified number of bytes
|
|
1183
|
+
*
|
|
1184
|
+
* @generated from protobuf field: optional uint64 len = 13
|
|
1185
|
+
*/
|
|
1186
|
+
len?: bigint;
|
|
1187
|
+
/**
|
|
1188
|
+
* MinLen specifies that this field must be the specified number of bytes
|
|
1189
|
+
* at a minimum
|
|
1190
|
+
*
|
|
1191
|
+
* @generated from protobuf field: optional uint64 min_len = 2
|
|
1192
|
+
*/
|
|
1193
|
+
minLen?: bigint;
|
|
1194
|
+
/**
|
|
1195
|
+
* MaxLen specifies that this field must be the specified number of bytes
|
|
1196
|
+
* at a maximum
|
|
1197
|
+
*
|
|
1198
|
+
* @generated from protobuf field: optional uint64 max_len = 3
|
|
1199
|
+
*/
|
|
1200
|
+
maxLen?: bigint;
|
|
1201
|
+
/**
|
|
1202
|
+
* Pattern specifes that this field must match against the specified
|
|
1203
|
+
* regular expression (RE2 syntax). The included expression should elide
|
|
1204
|
+
* any delimiters.
|
|
1205
|
+
*
|
|
1206
|
+
* @generated from protobuf field: optional string pattern = 4
|
|
1207
|
+
*/
|
|
1208
|
+
pattern?: string;
|
|
1209
|
+
/**
|
|
1210
|
+
* Prefix specifies that this field must have the specified bytes at the
|
|
1211
|
+
* beginning of the string.
|
|
1212
|
+
*
|
|
1213
|
+
* @generated from protobuf field: optional bytes prefix = 5
|
|
1214
|
+
*/
|
|
1215
|
+
prefix?: Uint8Array;
|
|
1216
|
+
/**
|
|
1217
|
+
* Suffix specifies that this field must have the specified bytes at the
|
|
1218
|
+
* end of the string.
|
|
1219
|
+
*
|
|
1220
|
+
* @generated from protobuf field: optional bytes suffix = 6
|
|
1221
|
+
*/
|
|
1222
|
+
suffix?: Uint8Array;
|
|
1223
|
+
/**
|
|
1224
|
+
* Contains specifies that this field must have the specified bytes
|
|
1225
|
+
* anywhere in the string.
|
|
1226
|
+
*
|
|
1227
|
+
* @generated from protobuf field: optional bytes contains = 7
|
|
1228
|
+
*/
|
|
1229
|
+
contains?: Uint8Array;
|
|
1230
|
+
/**
|
|
1231
|
+
* In specifies that this field must be equal to one of the specified
|
|
1232
|
+
* values
|
|
1233
|
+
*
|
|
1234
|
+
* @generated from protobuf field: repeated bytes in = 8
|
|
1235
|
+
*/
|
|
1236
|
+
in: Uint8Array[];
|
|
1237
|
+
/**
|
|
1238
|
+
* NotIn specifies that this field cannot be equal to one of the specified
|
|
1239
|
+
* values
|
|
1240
|
+
*
|
|
1241
|
+
* @generated from protobuf field: repeated bytes not_in = 9
|
|
1242
|
+
*/
|
|
1243
|
+
notIn: Uint8Array[];
|
|
1244
|
+
/**
|
|
1245
|
+
* WellKnown rules provide advanced constraints against common byte
|
|
1246
|
+
* patterns
|
|
1247
|
+
*
|
|
1248
|
+
* @generated from protobuf oneof: well_known
|
|
1249
|
+
*/
|
|
1250
|
+
wellKnown: {
|
|
1251
|
+
oneofKind: "ip";
|
|
1252
|
+
/**
|
|
1253
|
+
* Ip specifies that the field must be a valid IP (v4 or v6) address in
|
|
1254
|
+
* byte format
|
|
1255
|
+
*
|
|
1256
|
+
* @generated from protobuf field: bool ip = 10
|
|
1257
|
+
*/
|
|
1258
|
+
ip: boolean;
|
|
1259
|
+
} | {
|
|
1260
|
+
oneofKind: "ipv4";
|
|
1261
|
+
/**
|
|
1262
|
+
* Ipv4 specifies that the field must be a valid IPv4 address in byte
|
|
1263
|
+
* format
|
|
1264
|
+
*
|
|
1265
|
+
* @generated from protobuf field: bool ipv4 = 11
|
|
1266
|
+
*/
|
|
1267
|
+
ipv4: boolean;
|
|
1268
|
+
} | {
|
|
1269
|
+
oneofKind: "ipv6";
|
|
1270
|
+
/**
|
|
1271
|
+
* Ipv6 specifies that the field must be a valid IPv6 address in byte
|
|
1272
|
+
* format
|
|
1273
|
+
*
|
|
1274
|
+
* @generated from protobuf field: bool ipv6 = 12
|
|
1275
|
+
*/
|
|
1276
|
+
ipv6: boolean;
|
|
1277
|
+
} | {
|
|
1278
|
+
oneofKind: undefined;
|
|
1279
|
+
};
|
|
1280
|
+
/**
|
|
1281
|
+
* IgnoreEmpty specifies that the validation rules of this field should be
|
|
1282
|
+
* evaluated only if the field is not empty
|
|
1283
|
+
*
|
|
1284
|
+
* @generated from protobuf field: optional bool ignore_empty = 14
|
|
1285
|
+
*/
|
|
1286
|
+
ignoreEmpty?: boolean;
|
|
1287
|
+
}
|
|
1288
|
+
/**
|
|
1289
|
+
* EnumRules describe the constraints applied to enum values
|
|
1290
|
+
*
|
|
1291
|
+
* @generated from protobuf message validate.EnumRules
|
|
1292
|
+
*/
|
|
1293
|
+
export interface EnumRules {
|
|
1294
|
+
/**
|
|
1295
|
+
* Const specifies that this field must be exactly the specified value
|
|
1296
|
+
*
|
|
1297
|
+
* @generated from protobuf field: optional int32 const = 1
|
|
1298
|
+
*/
|
|
1299
|
+
const?: number;
|
|
1300
|
+
/**
|
|
1301
|
+
* DefinedOnly specifies that this field must be only one of the defined
|
|
1302
|
+
* values for this enum, failing on any undefined value.
|
|
1303
|
+
*
|
|
1304
|
+
* @generated from protobuf field: optional bool defined_only = 2
|
|
1305
|
+
*/
|
|
1306
|
+
definedOnly?: boolean;
|
|
1307
|
+
/**
|
|
1308
|
+
* In specifies that this field must be equal to one of the specified
|
|
1309
|
+
* values
|
|
1310
|
+
*
|
|
1311
|
+
* @generated from protobuf field: repeated int32 in = 3
|
|
1312
|
+
*/
|
|
1313
|
+
in: number[];
|
|
1314
|
+
/**
|
|
1315
|
+
* NotIn specifies that this field cannot be equal to one of the specified
|
|
1316
|
+
* values
|
|
1317
|
+
*
|
|
1318
|
+
* @generated from protobuf field: repeated int32 not_in = 4
|
|
1319
|
+
*/
|
|
1320
|
+
notIn: number[];
|
|
1321
|
+
}
|
|
1322
|
+
/**
|
|
1323
|
+
* MessageRules describe the constraints applied to embedded message values.
|
|
1324
|
+
* For message-type fields, validation is performed recursively.
|
|
1325
|
+
*
|
|
1326
|
+
* @generated from protobuf message validate.MessageRules
|
|
1327
|
+
*/
|
|
1328
|
+
export interface MessageRules {
|
|
1329
|
+
/**
|
|
1330
|
+
* Skip specifies that the validation rules of this field should not be
|
|
1331
|
+
* evaluated
|
|
1332
|
+
*
|
|
1333
|
+
* @generated from protobuf field: optional bool skip = 1
|
|
1334
|
+
*/
|
|
1335
|
+
skip?: boolean;
|
|
1336
|
+
/**
|
|
1337
|
+
* Required specifies that this field must be set
|
|
1338
|
+
*
|
|
1339
|
+
* @generated from protobuf field: optional bool required = 2
|
|
1340
|
+
*/
|
|
1341
|
+
required?: boolean;
|
|
1342
|
+
}
|
|
1343
|
+
/**
|
|
1344
|
+
* RepeatedRules describe the constraints applied to `repeated` values
|
|
1345
|
+
*
|
|
1346
|
+
* @generated from protobuf message validate.RepeatedRules
|
|
1347
|
+
*/
|
|
1348
|
+
export interface RepeatedRules {
|
|
1349
|
+
/**
|
|
1350
|
+
* MinItems specifies that this field must have the specified number of
|
|
1351
|
+
* items at a minimum
|
|
1352
|
+
*
|
|
1353
|
+
* @generated from protobuf field: optional uint64 min_items = 1
|
|
1354
|
+
*/
|
|
1355
|
+
minItems?: bigint;
|
|
1356
|
+
/**
|
|
1357
|
+
* MaxItems specifies that this field must have the specified number of
|
|
1358
|
+
* items at a maximum
|
|
1359
|
+
*
|
|
1360
|
+
* @generated from protobuf field: optional uint64 max_items = 2
|
|
1361
|
+
*/
|
|
1362
|
+
maxItems?: bigint;
|
|
1363
|
+
/**
|
|
1364
|
+
* Unique specifies that all elements in this field must be unique. This
|
|
1365
|
+
* contraint is only applicable to scalar and enum types (messages are not
|
|
1366
|
+
* supported).
|
|
1367
|
+
*
|
|
1368
|
+
* @generated from protobuf field: optional bool unique = 3
|
|
1369
|
+
*/
|
|
1370
|
+
unique?: boolean;
|
|
1371
|
+
/**
|
|
1372
|
+
* Items specifies the contraints to be applied to each item in the field.
|
|
1373
|
+
* Repeated message fields will still execute validation against each item
|
|
1374
|
+
* unless skip is specified here.
|
|
1375
|
+
*
|
|
1376
|
+
* @generated from protobuf field: optional validate.FieldRules items = 4
|
|
1377
|
+
*/
|
|
1378
|
+
items?: FieldRules;
|
|
1379
|
+
/**
|
|
1380
|
+
* IgnoreEmpty specifies that the validation rules of this field should be
|
|
1381
|
+
* evaluated only if the field is not empty
|
|
1382
|
+
*
|
|
1383
|
+
* @generated from protobuf field: optional bool ignore_empty = 5
|
|
1384
|
+
*/
|
|
1385
|
+
ignoreEmpty?: boolean;
|
|
1386
|
+
}
|
|
1387
|
+
/**
|
|
1388
|
+
* MapRules describe the constraints applied to `map` values
|
|
1389
|
+
*
|
|
1390
|
+
* @generated from protobuf message validate.MapRules
|
|
1391
|
+
*/
|
|
1392
|
+
export interface MapRules {
|
|
1393
|
+
/**
|
|
1394
|
+
* MinPairs specifies that this field must have the specified number of
|
|
1395
|
+
* KVs at a minimum
|
|
1396
|
+
*
|
|
1397
|
+
* @generated from protobuf field: optional uint64 min_pairs = 1
|
|
1398
|
+
*/
|
|
1399
|
+
minPairs?: bigint;
|
|
1400
|
+
/**
|
|
1401
|
+
* MaxPairs specifies that this field must have the specified number of
|
|
1402
|
+
* KVs at a maximum
|
|
1403
|
+
*
|
|
1404
|
+
* @generated from protobuf field: optional uint64 max_pairs = 2
|
|
1405
|
+
*/
|
|
1406
|
+
maxPairs?: bigint;
|
|
1407
|
+
/**
|
|
1408
|
+
* NoSparse specifies values in this field cannot be unset. This only
|
|
1409
|
+
* applies to map's with message value types.
|
|
1410
|
+
*
|
|
1411
|
+
* @generated from protobuf field: optional bool no_sparse = 3
|
|
1412
|
+
*/
|
|
1413
|
+
noSparse?: boolean;
|
|
1414
|
+
/**
|
|
1415
|
+
* Keys specifies the constraints to be applied to each key in the field.
|
|
1416
|
+
*
|
|
1417
|
+
* @generated from protobuf field: optional validate.FieldRules keys = 4
|
|
1418
|
+
*/
|
|
1419
|
+
keys?: FieldRules;
|
|
1420
|
+
/**
|
|
1421
|
+
* Values specifies the constraints to be applied to the value of each key
|
|
1422
|
+
* in the field. Message values will still have their validations evaluated
|
|
1423
|
+
* unless skip is specified here.
|
|
1424
|
+
*
|
|
1425
|
+
* @generated from protobuf field: optional validate.FieldRules values = 5
|
|
1426
|
+
*/
|
|
1427
|
+
values?: FieldRules;
|
|
1428
|
+
/**
|
|
1429
|
+
* IgnoreEmpty specifies that the validation rules of this field should be
|
|
1430
|
+
* evaluated only if the field is not empty
|
|
1431
|
+
*
|
|
1432
|
+
* @generated from protobuf field: optional bool ignore_empty = 6
|
|
1433
|
+
*/
|
|
1434
|
+
ignoreEmpty?: boolean;
|
|
1435
|
+
}
|
|
1436
|
+
/**
|
|
1437
|
+
* AnyRules describe constraints applied exclusively to the
|
|
1438
|
+
* `google.protobuf.Any` well-known type
|
|
1439
|
+
*
|
|
1440
|
+
* @generated from protobuf message validate.AnyRules
|
|
1441
|
+
*/
|
|
1442
|
+
export interface AnyRules {
|
|
1443
|
+
/**
|
|
1444
|
+
* Required specifies that this field must be set
|
|
1445
|
+
*
|
|
1446
|
+
* @generated from protobuf field: optional bool required = 1
|
|
1447
|
+
*/
|
|
1448
|
+
required?: boolean;
|
|
1449
|
+
/**
|
|
1450
|
+
* In specifies that this field's `type_url` must be equal to one of the
|
|
1451
|
+
* specified values.
|
|
1452
|
+
*
|
|
1453
|
+
* @generated from protobuf field: repeated string in = 2
|
|
1454
|
+
*/
|
|
1455
|
+
in: string[];
|
|
1456
|
+
/**
|
|
1457
|
+
* NotIn specifies that this field's `type_url` must not be equal to any of
|
|
1458
|
+
* the specified values.
|
|
1459
|
+
*
|
|
1460
|
+
* @generated from protobuf field: repeated string not_in = 3
|
|
1461
|
+
*/
|
|
1462
|
+
notIn: string[];
|
|
1463
|
+
}
|
|
1464
|
+
/**
|
|
1465
|
+
* DurationRules describe the constraints applied exclusively to the
|
|
1466
|
+
* `google.protobuf.Duration` well-known type
|
|
1467
|
+
*
|
|
1468
|
+
* @generated from protobuf message validate.DurationRules
|
|
1469
|
+
*/
|
|
1470
|
+
export interface DurationRules {
|
|
1471
|
+
/**
|
|
1472
|
+
* Required specifies that this field must be set
|
|
1473
|
+
*
|
|
1474
|
+
* @generated from protobuf field: optional bool required = 1
|
|
1475
|
+
*/
|
|
1476
|
+
required?: boolean;
|
|
1477
|
+
/**
|
|
1478
|
+
* Const specifies that this field must be exactly the specified value
|
|
1479
|
+
*
|
|
1480
|
+
* @generated from protobuf field: optional google.protobuf.Duration const = 2
|
|
1481
|
+
*/
|
|
1482
|
+
const?: Duration;
|
|
1483
|
+
/**
|
|
1484
|
+
* Lt specifies that this field must be less than the specified value,
|
|
1485
|
+
* exclusive
|
|
1486
|
+
*
|
|
1487
|
+
* @generated from protobuf field: optional google.protobuf.Duration lt = 3
|
|
1488
|
+
*/
|
|
1489
|
+
lt?: Duration;
|
|
1490
|
+
/**
|
|
1491
|
+
* Lt specifies that this field must be less than the specified value,
|
|
1492
|
+
* inclusive
|
|
1493
|
+
*
|
|
1494
|
+
* @generated from protobuf field: optional google.protobuf.Duration lte = 4
|
|
1495
|
+
*/
|
|
1496
|
+
lte?: Duration;
|
|
1497
|
+
/**
|
|
1498
|
+
* Gt specifies that this field must be greater than the specified value,
|
|
1499
|
+
* exclusive
|
|
1500
|
+
*
|
|
1501
|
+
* @generated from protobuf field: optional google.protobuf.Duration gt = 5
|
|
1502
|
+
*/
|
|
1503
|
+
gt?: Duration;
|
|
1504
|
+
/**
|
|
1505
|
+
* Gte specifies that this field must be greater than the specified value,
|
|
1506
|
+
* inclusive
|
|
1507
|
+
*
|
|
1508
|
+
* @generated from protobuf field: optional google.protobuf.Duration gte = 6
|
|
1509
|
+
*/
|
|
1510
|
+
gte?: Duration;
|
|
1511
|
+
/**
|
|
1512
|
+
* In specifies that this field must be equal to one of the specified
|
|
1513
|
+
* values
|
|
1514
|
+
*
|
|
1515
|
+
* @generated from protobuf field: repeated google.protobuf.Duration in = 7
|
|
1516
|
+
*/
|
|
1517
|
+
in: Duration[];
|
|
1518
|
+
/**
|
|
1519
|
+
* NotIn specifies that this field cannot be equal to one of the specified
|
|
1520
|
+
* values
|
|
1521
|
+
*
|
|
1522
|
+
* @generated from protobuf field: repeated google.protobuf.Duration not_in = 8
|
|
1523
|
+
*/
|
|
1524
|
+
notIn: Duration[];
|
|
1525
|
+
}
|
|
1526
|
+
/**
|
|
1527
|
+
* TimestampRules describe the constraints applied exclusively to the
|
|
1528
|
+
* `google.protobuf.Timestamp` well-known type
|
|
1529
|
+
*
|
|
1530
|
+
* @generated from protobuf message validate.TimestampRules
|
|
1531
|
+
*/
|
|
1532
|
+
export interface TimestampRules {
|
|
1533
|
+
/**
|
|
1534
|
+
* Required specifies that this field must be set
|
|
1535
|
+
*
|
|
1536
|
+
* @generated from protobuf field: optional bool required = 1
|
|
1537
|
+
*/
|
|
1538
|
+
required?: boolean;
|
|
1539
|
+
/**
|
|
1540
|
+
* Const specifies that this field must be exactly the specified value
|
|
1541
|
+
*
|
|
1542
|
+
* @generated from protobuf field: optional google.protobuf.Timestamp const = 2
|
|
1543
|
+
*/
|
|
1544
|
+
const?: Timestamp;
|
|
1545
|
+
/**
|
|
1546
|
+
* Lt specifies that this field must be less than the specified value,
|
|
1547
|
+
* exclusive
|
|
1548
|
+
*
|
|
1549
|
+
* @generated from protobuf field: optional google.protobuf.Timestamp lt = 3
|
|
1550
|
+
*/
|
|
1551
|
+
lt?: Timestamp;
|
|
1552
|
+
/**
|
|
1553
|
+
* Lte specifies that this field must be less than the specified value,
|
|
1554
|
+
* inclusive
|
|
1555
|
+
*
|
|
1556
|
+
* @generated from protobuf field: optional google.protobuf.Timestamp lte = 4
|
|
1557
|
+
*/
|
|
1558
|
+
lte?: Timestamp;
|
|
1559
|
+
/**
|
|
1560
|
+
* Gt specifies that this field must be greater than the specified value,
|
|
1561
|
+
* exclusive
|
|
1562
|
+
*
|
|
1563
|
+
* @generated from protobuf field: optional google.protobuf.Timestamp gt = 5
|
|
1564
|
+
*/
|
|
1565
|
+
gt?: Timestamp;
|
|
1566
|
+
/**
|
|
1567
|
+
* Gte specifies that this field must be greater than the specified value,
|
|
1568
|
+
* inclusive
|
|
1569
|
+
*
|
|
1570
|
+
* @generated from protobuf field: optional google.protobuf.Timestamp gte = 6
|
|
1571
|
+
*/
|
|
1572
|
+
gte?: Timestamp;
|
|
1573
|
+
/**
|
|
1574
|
+
* LtNow specifies that this must be less than the current time. LtNow
|
|
1575
|
+
* can only be used with the Within rule.
|
|
1576
|
+
*
|
|
1577
|
+
* @generated from protobuf field: optional bool lt_now = 7
|
|
1578
|
+
*/
|
|
1579
|
+
ltNow?: boolean;
|
|
1580
|
+
/**
|
|
1581
|
+
* GtNow specifies that this must be greater than the current time. GtNow
|
|
1582
|
+
* can only be used with the Within rule.
|
|
1583
|
+
*
|
|
1584
|
+
* @generated from protobuf field: optional bool gt_now = 8
|
|
1585
|
+
*/
|
|
1586
|
+
gtNow?: boolean;
|
|
1587
|
+
/**
|
|
1588
|
+
* Within specifies that this field must be within this duration of the
|
|
1589
|
+
* current time. This constraint can be used alone or with the LtNow and
|
|
1590
|
+
* GtNow rules.
|
|
1591
|
+
*
|
|
1592
|
+
* @generated from protobuf field: optional google.protobuf.Duration within = 9
|
|
1593
|
+
*/
|
|
1594
|
+
within?: Duration;
|
|
1595
|
+
}
|
|
1596
|
+
/**
|
|
1597
|
+
* WellKnownRegex contain some well-known patterns.
|
|
1598
|
+
*
|
|
1599
|
+
* @generated from protobuf enum validate.KnownRegex
|
|
1600
|
+
*/
|
|
1601
|
+
export enum KnownRegex {
|
|
1602
|
+
/**
|
|
1603
|
+
* @generated from protobuf enum value: UNKNOWN = 0;
|
|
1604
|
+
*/
|
|
1605
|
+
UNKNOWN = 0,
|
|
1606
|
+
/**
|
|
1607
|
+
* HTTP header name as defined by RFC 7230.
|
|
1608
|
+
*
|
|
1609
|
+
* @generated from protobuf enum value: HTTP_HEADER_NAME = 1;
|
|
1610
|
+
*/
|
|
1611
|
+
HTTP_HEADER_NAME = 1,
|
|
1612
|
+
/**
|
|
1613
|
+
* HTTP header value as defined by RFC 7230.
|
|
1614
|
+
*
|
|
1615
|
+
* @generated from protobuf enum value: HTTP_HEADER_VALUE = 2;
|
|
1616
|
+
*/
|
|
1617
|
+
HTTP_HEADER_VALUE = 2
|
|
1618
|
+
}
|
|
1619
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1620
|
+
class FieldRules$Type extends MessageType<FieldRules> {
|
|
1621
|
+
constructor() {
|
|
1622
|
+
super("validate.FieldRules", [
|
|
1623
|
+
{ no: 17, name: "message", kind: "message", T: () => MessageRules },
|
|
1624
|
+
{ no: 1, name: "float", kind: "message", oneof: "type", T: () => FloatRules },
|
|
1625
|
+
{ no: 2, name: "double", kind: "message", oneof: "type", T: () => DoubleRules },
|
|
1626
|
+
{ no: 3, name: "int32", kind: "message", oneof: "type", T: () => Int32Rules },
|
|
1627
|
+
{ no: 4, name: "int64", kind: "message", oneof: "type", T: () => Int64Rules },
|
|
1628
|
+
{ no: 5, name: "uint32", kind: "message", oneof: "type", T: () => UInt32Rules },
|
|
1629
|
+
{ no: 6, name: "uint64", kind: "message", oneof: "type", T: () => UInt64Rules },
|
|
1630
|
+
{ no: 7, name: "sint32", kind: "message", oneof: "type", T: () => SInt32Rules },
|
|
1631
|
+
{ no: 8, name: "sint64", kind: "message", oneof: "type", T: () => SInt64Rules },
|
|
1632
|
+
{ no: 9, name: "fixed32", kind: "message", oneof: "type", T: () => Fixed32Rules },
|
|
1633
|
+
{ no: 10, name: "fixed64", kind: "message", oneof: "type", T: () => Fixed64Rules },
|
|
1634
|
+
{ no: 11, name: "sfixed32", kind: "message", oneof: "type", T: () => SFixed32Rules },
|
|
1635
|
+
{ no: 12, name: "sfixed64", kind: "message", oneof: "type", T: () => SFixed64Rules },
|
|
1636
|
+
{ no: 13, name: "bool", kind: "message", oneof: "type", T: () => BoolRules },
|
|
1637
|
+
{ no: 14, name: "string", kind: "message", oneof: "type", T: () => StringRules },
|
|
1638
|
+
{ no: 15, name: "bytes", kind: "message", oneof: "type", T: () => BytesRules },
|
|
1639
|
+
{ no: 16, name: "enum", kind: "message", oneof: "type", T: () => EnumRules },
|
|
1640
|
+
{ no: 18, name: "repeated", kind: "message", oneof: "type", T: () => RepeatedRules },
|
|
1641
|
+
{ no: 19, name: "map", kind: "message", oneof: "type", T: () => MapRules },
|
|
1642
|
+
{ no: 20, name: "any", kind: "message", oneof: "type", T: () => AnyRules },
|
|
1643
|
+
{ no: 21, name: "duration", kind: "message", oneof: "type", T: () => DurationRules },
|
|
1644
|
+
{ no: 22, name: "timestamp", kind: "message", oneof: "type", T: () => TimestampRules }
|
|
1645
|
+
]);
|
|
1646
|
+
}
|
|
1647
|
+
create(value?: PartialMessage<FieldRules>): FieldRules {
|
|
1648
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1649
|
+
message.type = { oneofKind: undefined };
|
|
1650
|
+
if (value !== undefined)
|
|
1651
|
+
reflectionMergePartial<FieldRules>(this, message, value);
|
|
1652
|
+
return message;
|
|
1653
|
+
}
|
|
1654
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldRules): FieldRules {
|
|
1655
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1656
|
+
while (reader.pos < end) {
|
|
1657
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1658
|
+
switch (fieldNo) {
|
|
1659
|
+
case /* optional validate.MessageRules message */ 17:
|
|
1660
|
+
message.message = MessageRules.internalBinaryRead(reader, reader.uint32(), options, message.message);
|
|
1661
|
+
break;
|
|
1662
|
+
case /* validate.FloatRules float */ 1:
|
|
1663
|
+
message.type = {
|
|
1664
|
+
oneofKind: "float",
|
|
1665
|
+
float: FloatRules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).float)
|
|
1666
|
+
};
|
|
1667
|
+
break;
|
|
1668
|
+
case /* validate.DoubleRules double */ 2:
|
|
1669
|
+
message.type = {
|
|
1670
|
+
oneofKind: "double",
|
|
1671
|
+
double: DoubleRules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).double)
|
|
1672
|
+
};
|
|
1673
|
+
break;
|
|
1674
|
+
case /* validate.Int32Rules int32 */ 3:
|
|
1675
|
+
message.type = {
|
|
1676
|
+
oneofKind: "int32",
|
|
1677
|
+
int32: Int32Rules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).int32)
|
|
1678
|
+
};
|
|
1679
|
+
break;
|
|
1680
|
+
case /* validate.Int64Rules int64 */ 4:
|
|
1681
|
+
message.type = {
|
|
1682
|
+
oneofKind: "int64",
|
|
1683
|
+
int64: Int64Rules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).int64)
|
|
1684
|
+
};
|
|
1685
|
+
break;
|
|
1686
|
+
case /* validate.UInt32Rules uint32 */ 5:
|
|
1687
|
+
message.type = {
|
|
1688
|
+
oneofKind: "uint32",
|
|
1689
|
+
uint32: UInt32Rules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).uint32)
|
|
1690
|
+
};
|
|
1691
|
+
break;
|
|
1692
|
+
case /* validate.UInt64Rules uint64 */ 6:
|
|
1693
|
+
message.type = {
|
|
1694
|
+
oneofKind: "uint64",
|
|
1695
|
+
uint64: UInt64Rules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).uint64)
|
|
1696
|
+
};
|
|
1697
|
+
break;
|
|
1698
|
+
case /* validate.SInt32Rules sint32 */ 7:
|
|
1699
|
+
message.type = {
|
|
1700
|
+
oneofKind: "sint32",
|
|
1701
|
+
sint32: SInt32Rules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).sint32)
|
|
1702
|
+
};
|
|
1703
|
+
break;
|
|
1704
|
+
case /* validate.SInt64Rules sint64 */ 8:
|
|
1705
|
+
message.type = {
|
|
1706
|
+
oneofKind: "sint64",
|
|
1707
|
+
sint64: SInt64Rules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).sint64)
|
|
1708
|
+
};
|
|
1709
|
+
break;
|
|
1710
|
+
case /* validate.Fixed32Rules fixed32 */ 9:
|
|
1711
|
+
message.type = {
|
|
1712
|
+
oneofKind: "fixed32",
|
|
1713
|
+
fixed32: Fixed32Rules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).fixed32)
|
|
1714
|
+
};
|
|
1715
|
+
break;
|
|
1716
|
+
case /* validate.Fixed64Rules fixed64 */ 10:
|
|
1717
|
+
message.type = {
|
|
1718
|
+
oneofKind: "fixed64",
|
|
1719
|
+
fixed64: Fixed64Rules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).fixed64)
|
|
1720
|
+
};
|
|
1721
|
+
break;
|
|
1722
|
+
case /* validate.SFixed32Rules sfixed32 */ 11:
|
|
1723
|
+
message.type = {
|
|
1724
|
+
oneofKind: "sfixed32",
|
|
1725
|
+
sfixed32: SFixed32Rules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).sfixed32)
|
|
1726
|
+
};
|
|
1727
|
+
break;
|
|
1728
|
+
case /* validate.SFixed64Rules sfixed64 */ 12:
|
|
1729
|
+
message.type = {
|
|
1730
|
+
oneofKind: "sfixed64",
|
|
1731
|
+
sfixed64: SFixed64Rules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).sfixed64)
|
|
1732
|
+
};
|
|
1733
|
+
break;
|
|
1734
|
+
case /* validate.BoolRules bool */ 13:
|
|
1735
|
+
message.type = {
|
|
1736
|
+
oneofKind: "bool",
|
|
1737
|
+
bool: BoolRules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).bool)
|
|
1738
|
+
};
|
|
1739
|
+
break;
|
|
1740
|
+
case /* validate.StringRules string */ 14:
|
|
1741
|
+
message.type = {
|
|
1742
|
+
oneofKind: "string",
|
|
1743
|
+
string: StringRules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).string)
|
|
1744
|
+
};
|
|
1745
|
+
break;
|
|
1746
|
+
case /* validate.BytesRules bytes */ 15:
|
|
1747
|
+
message.type = {
|
|
1748
|
+
oneofKind: "bytes",
|
|
1749
|
+
bytes: BytesRules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).bytes)
|
|
1750
|
+
};
|
|
1751
|
+
break;
|
|
1752
|
+
case /* validate.EnumRules enum */ 16:
|
|
1753
|
+
message.type = {
|
|
1754
|
+
oneofKind: "enum",
|
|
1755
|
+
enum: EnumRules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).enum)
|
|
1756
|
+
};
|
|
1757
|
+
break;
|
|
1758
|
+
case /* validate.RepeatedRules repeated */ 18:
|
|
1759
|
+
message.type = {
|
|
1760
|
+
oneofKind: "repeated",
|
|
1761
|
+
repeated: RepeatedRules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).repeated)
|
|
1762
|
+
};
|
|
1763
|
+
break;
|
|
1764
|
+
case /* validate.MapRules map */ 19:
|
|
1765
|
+
message.type = {
|
|
1766
|
+
oneofKind: "map",
|
|
1767
|
+
map: MapRules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).map)
|
|
1768
|
+
};
|
|
1769
|
+
break;
|
|
1770
|
+
case /* validate.AnyRules any */ 20:
|
|
1771
|
+
message.type = {
|
|
1772
|
+
oneofKind: "any",
|
|
1773
|
+
any: AnyRules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).any)
|
|
1774
|
+
};
|
|
1775
|
+
break;
|
|
1776
|
+
case /* validate.DurationRules duration */ 21:
|
|
1777
|
+
message.type = {
|
|
1778
|
+
oneofKind: "duration",
|
|
1779
|
+
duration: DurationRules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).duration)
|
|
1780
|
+
};
|
|
1781
|
+
break;
|
|
1782
|
+
case /* validate.TimestampRules timestamp */ 22:
|
|
1783
|
+
message.type = {
|
|
1784
|
+
oneofKind: "timestamp",
|
|
1785
|
+
timestamp: TimestampRules.internalBinaryRead(reader, reader.uint32(), options, (message.type as any).timestamp)
|
|
1786
|
+
};
|
|
1787
|
+
break;
|
|
1788
|
+
default:
|
|
1789
|
+
let u = options.readUnknownField;
|
|
1790
|
+
if (u === "throw")
|
|
1791
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1792
|
+
let d = reader.skip(wireType);
|
|
1793
|
+
if (u !== false)
|
|
1794
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
return message;
|
|
1798
|
+
}
|
|
1799
|
+
internalBinaryWrite(message: FieldRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1800
|
+
/* validate.FloatRules float = 1; */
|
|
1801
|
+
if (message.type.oneofKind === "float")
|
|
1802
|
+
FloatRules.internalBinaryWrite(message.type.float, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1803
|
+
/* validate.DoubleRules double = 2; */
|
|
1804
|
+
if (message.type.oneofKind === "double")
|
|
1805
|
+
DoubleRules.internalBinaryWrite(message.type.double, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1806
|
+
/* validate.Int32Rules int32 = 3; */
|
|
1807
|
+
if (message.type.oneofKind === "int32")
|
|
1808
|
+
Int32Rules.internalBinaryWrite(message.type.int32, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1809
|
+
/* validate.Int64Rules int64 = 4; */
|
|
1810
|
+
if (message.type.oneofKind === "int64")
|
|
1811
|
+
Int64Rules.internalBinaryWrite(message.type.int64, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
1812
|
+
/* validate.UInt32Rules uint32 = 5; */
|
|
1813
|
+
if (message.type.oneofKind === "uint32")
|
|
1814
|
+
UInt32Rules.internalBinaryWrite(message.type.uint32, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
1815
|
+
/* validate.UInt64Rules uint64 = 6; */
|
|
1816
|
+
if (message.type.oneofKind === "uint64")
|
|
1817
|
+
UInt64Rules.internalBinaryWrite(message.type.uint64, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
1818
|
+
/* validate.SInt32Rules sint32 = 7; */
|
|
1819
|
+
if (message.type.oneofKind === "sint32")
|
|
1820
|
+
SInt32Rules.internalBinaryWrite(message.type.sint32, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
1821
|
+
/* validate.SInt64Rules sint64 = 8; */
|
|
1822
|
+
if (message.type.oneofKind === "sint64")
|
|
1823
|
+
SInt64Rules.internalBinaryWrite(message.type.sint64, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
1824
|
+
/* validate.Fixed32Rules fixed32 = 9; */
|
|
1825
|
+
if (message.type.oneofKind === "fixed32")
|
|
1826
|
+
Fixed32Rules.internalBinaryWrite(message.type.fixed32, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
1827
|
+
/* validate.Fixed64Rules fixed64 = 10; */
|
|
1828
|
+
if (message.type.oneofKind === "fixed64")
|
|
1829
|
+
Fixed64Rules.internalBinaryWrite(message.type.fixed64, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
1830
|
+
/* validate.SFixed32Rules sfixed32 = 11; */
|
|
1831
|
+
if (message.type.oneofKind === "sfixed32")
|
|
1832
|
+
SFixed32Rules.internalBinaryWrite(message.type.sfixed32, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
1833
|
+
/* validate.SFixed64Rules sfixed64 = 12; */
|
|
1834
|
+
if (message.type.oneofKind === "sfixed64")
|
|
1835
|
+
SFixed64Rules.internalBinaryWrite(message.type.sfixed64, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
1836
|
+
/* validate.BoolRules bool = 13; */
|
|
1837
|
+
if (message.type.oneofKind === "bool")
|
|
1838
|
+
BoolRules.internalBinaryWrite(message.type.bool, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
|
|
1839
|
+
/* validate.StringRules string = 14; */
|
|
1840
|
+
if (message.type.oneofKind === "string")
|
|
1841
|
+
StringRules.internalBinaryWrite(message.type.string, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
|
1842
|
+
/* validate.BytesRules bytes = 15; */
|
|
1843
|
+
if (message.type.oneofKind === "bytes")
|
|
1844
|
+
BytesRules.internalBinaryWrite(message.type.bytes, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
|
1845
|
+
/* validate.EnumRules enum = 16; */
|
|
1846
|
+
if (message.type.oneofKind === "enum")
|
|
1847
|
+
EnumRules.internalBinaryWrite(message.type.enum, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
|
|
1848
|
+
/* optional validate.MessageRules message = 17; */
|
|
1849
|
+
if (message.message)
|
|
1850
|
+
MessageRules.internalBinaryWrite(message.message, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
|
|
1851
|
+
/* validate.RepeatedRules repeated = 18; */
|
|
1852
|
+
if (message.type.oneofKind === "repeated")
|
|
1853
|
+
RepeatedRules.internalBinaryWrite(message.type.repeated, writer.tag(18, WireType.LengthDelimited).fork(), options).join();
|
|
1854
|
+
/* validate.MapRules map = 19; */
|
|
1855
|
+
if (message.type.oneofKind === "map")
|
|
1856
|
+
MapRules.internalBinaryWrite(message.type.map, writer.tag(19, WireType.LengthDelimited).fork(), options).join();
|
|
1857
|
+
/* validate.AnyRules any = 20; */
|
|
1858
|
+
if (message.type.oneofKind === "any")
|
|
1859
|
+
AnyRules.internalBinaryWrite(message.type.any, writer.tag(20, WireType.LengthDelimited).fork(), options).join();
|
|
1860
|
+
/* validate.DurationRules duration = 21; */
|
|
1861
|
+
if (message.type.oneofKind === "duration")
|
|
1862
|
+
DurationRules.internalBinaryWrite(message.type.duration, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
|
|
1863
|
+
/* validate.TimestampRules timestamp = 22; */
|
|
1864
|
+
if (message.type.oneofKind === "timestamp")
|
|
1865
|
+
TimestampRules.internalBinaryWrite(message.type.timestamp, writer.tag(22, WireType.LengthDelimited).fork(), options).join();
|
|
1866
|
+
let u = options.writeUnknownFields;
|
|
1867
|
+
if (u !== false)
|
|
1868
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1869
|
+
return writer;
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
/**
|
|
1873
|
+
* @generated MessageType for protobuf message validate.FieldRules
|
|
1874
|
+
*/
|
|
1875
|
+
export const FieldRules = new FieldRules$Type();
|
|
1876
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1877
|
+
class FloatRules$Type extends MessageType<FloatRules> {
|
|
1878
|
+
constructor() {
|
|
1879
|
+
super("validate.FloatRules", [
|
|
1880
|
+
{ no: 1, name: "const", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/ },
|
|
1881
|
+
{ no: 2, name: "lt", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/ },
|
|
1882
|
+
{ no: 3, name: "lte", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/ },
|
|
1883
|
+
{ no: 4, name: "gt", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/ },
|
|
1884
|
+
{ no: 5, name: "gte", kind: "scalar", opt: true, T: 2 /*ScalarType.FLOAT*/ },
|
|
1885
|
+
{ no: 6, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 2 /*ScalarType.FLOAT*/ },
|
|
1886
|
+
{ no: 7, name: "not_in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 2 /*ScalarType.FLOAT*/ },
|
|
1887
|
+
{ no: 8, name: "ignore_empty", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
1888
|
+
]);
|
|
1889
|
+
}
|
|
1890
|
+
create(value?: PartialMessage<FloatRules>): FloatRules {
|
|
1891
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1892
|
+
message.in = [];
|
|
1893
|
+
message.notIn = [];
|
|
1894
|
+
if (value !== undefined)
|
|
1895
|
+
reflectionMergePartial<FloatRules>(this, message, value);
|
|
1896
|
+
return message;
|
|
1897
|
+
}
|
|
1898
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FloatRules): FloatRules {
|
|
1899
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1900
|
+
while (reader.pos < end) {
|
|
1901
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1902
|
+
switch (fieldNo) {
|
|
1903
|
+
case /* optional float const */ 1:
|
|
1904
|
+
message.const = reader.float();
|
|
1905
|
+
break;
|
|
1906
|
+
case /* optional float lt */ 2:
|
|
1907
|
+
message.lt = reader.float();
|
|
1908
|
+
break;
|
|
1909
|
+
case /* optional float lte */ 3:
|
|
1910
|
+
message.lte = reader.float();
|
|
1911
|
+
break;
|
|
1912
|
+
case /* optional float gt */ 4:
|
|
1913
|
+
message.gt = reader.float();
|
|
1914
|
+
break;
|
|
1915
|
+
case /* optional float gte */ 5:
|
|
1916
|
+
message.gte = reader.float();
|
|
1917
|
+
break;
|
|
1918
|
+
case /* repeated float in */ 6:
|
|
1919
|
+
if (wireType === WireType.LengthDelimited)
|
|
1920
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1921
|
+
message.in.push(reader.float());
|
|
1922
|
+
else
|
|
1923
|
+
message.in.push(reader.float());
|
|
1924
|
+
break;
|
|
1925
|
+
case /* repeated float not_in */ 7:
|
|
1926
|
+
if (wireType === WireType.LengthDelimited)
|
|
1927
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
1928
|
+
message.notIn.push(reader.float());
|
|
1929
|
+
else
|
|
1930
|
+
message.notIn.push(reader.float());
|
|
1931
|
+
break;
|
|
1932
|
+
case /* optional bool ignore_empty */ 8:
|
|
1933
|
+
message.ignoreEmpty = reader.bool();
|
|
1934
|
+
break;
|
|
1935
|
+
default:
|
|
1936
|
+
let u = options.readUnknownField;
|
|
1937
|
+
if (u === "throw")
|
|
1938
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1939
|
+
let d = reader.skip(wireType);
|
|
1940
|
+
if (u !== false)
|
|
1941
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1944
|
+
return message;
|
|
1945
|
+
}
|
|
1946
|
+
internalBinaryWrite(message: FloatRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1947
|
+
/* optional float const = 1; */
|
|
1948
|
+
if (message.const !== undefined)
|
|
1949
|
+
writer.tag(1, WireType.Bit32).float(message.const);
|
|
1950
|
+
/* optional float lt = 2; */
|
|
1951
|
+
if (message.lt !== undefined)
|
|
1952
|
+
writer.tag(2, WireType.Bit32).float(message.lt);
|
|
1953
|
+
/* optional float lte = 3; */
|
|
1954
|
+
if (message.lte !== undefined)
|
|
1955
|
+
writer.tag(3, WireType.Bit32).float(message.lte);
|
|
1956
|
+
/* optional float gt = 4; */
|
|
1957
|
+
if (message.gt !== undefined)
|
|
1958
|
+
writer.tag(4, WireType.Bit32).float(message.gt);
|
|
1959
|
+
/* optional float gte = 5; */
|
|
1960
|
+
if (message.gte !== undefined)
|
|
1961
|
+
writer.tag(5, WireType.Bit32).float(message.gte);
|
|
1962
|
+
/* repeated float in = 6; */
|
|
1963
|
+
for (let i = 0; i < message.in.length; i++)
|
|
1964
|
+
writer.tag(6, WireType.Bit32).float(message.in[i]);
|
|
1965
|
+
/* repeated float not_in = 7; */
|
|
1966
|
+
for (let i = 0; i < message.notIn.length; i++)
|
|
1967
|
+
writer.tag(7, WireType.Bit32).float(message.notIn[i]);
|
|
1968
|
+
/* optional bool ignore_empty = 8; */
|
|
1969
|
+
if (message.ignoreEmpty !== undefined)
|
|
1970
|
+
writer.tag(8, WireType.Varint).bool(message.ignoreEmpty);
|
|
1971
|
+
let u = options.writeUnknownFields;
|
|
1972
|
+
if (u !== false)
|
|
1973
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1974
|
+
return writer;
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
/**
|
|
1978
|
+
* @generated MessageType for protobuf message validate.FloatRules
|
|
1979
|
+
*/
|
|
1980
|
+
export const FloatRules = new FloatRules$Type();
|
|
1981
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1982
|
+
class DoubleRules$Type extends MessageType<DoubleRules> {
|
|
1983
|
+
constructor() {
|
|
1984
|
+
super("validate.DoubleRules", [
|
|
1985
|
+
{ no: 1, name: "const", kind: "scalar", opt: true, T: 1 /*ScalarType.DOUBLE*/ },
|
|
1986
|
+
{ no: 2, name: "lt", kind: "scalar", opt: true, T: 1 /*ScalarType.DOUBLE*/ },
|
|
1987
|
+
{ no: 3, name: "lte", kind: "scalar", opt: true, T: 1 /*ScalarType.DOUBLE*/ },
|
|
1988
|
+
{ no: 4, name: "gt", kind: "scalar", opt: true, T: 1 /*ScalarType.DOUBLE*/ },
|
|
1989
|
+
{ no: 5, name: "gte", kind: "scalar", opt: true, T: 1 /*ScalarType.DOUBLE*/ },
|
|
1990
|
+
{ no: 6, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 1 /*ScalarType.DOUBLE*/ },
|
|
1991
|
+
{ no: 7, name: "not_in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 1 /*ScalarType.DOUBLE*/ },
|
|
1992
|
+
{ no: 8, name: "ignore_empty", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
1993
|
+
]);
|
|
1994
|
+
}
|
|
1995
|
+
create(value?: PartialMessage<DoubleRules>): DoubleRules {
|
|
1996
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1997
|
+
message.in = [];
|
|
1998
|
+
message.notIn = [];
|
|
1999
|
+
if (value !== undefined)
|
|
2000
|
+
reflectionMergePartial<DoubleRules>(this, message, value);
|
|
2001
|
+
return message;
|
|
2002
|
+
}
|
|
2003
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DoubleRules): DoubleRules {
|
|
2004
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2005
|
+
while (reader.pos < end) {
|
|
2006
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2007
|
+
switch (fieldNo) {
|
|
2008
|
+
case /* optional double const */ 1:
|
|
2009
|
+
message.const = reader.double();
|
|
2010
|
+
break;
|
|
2011
|
+
case /* optional double lt */ 2:
|
|
2012
|
+
message.lt = reader.double();
|
|
2013
|
+
break;
|
|
2014
|
+
case /* optional double lte */ 3:
|
|
2015
|
+
message.lte = reader.double();
|
|
2016
|
+
break;
|
|
2017
|
+
case /* optional double gt */ 4:
|
|
2018
|
+
message.gt = reader.double();
|
|
2019
|
+
break;
|
|
2020
|
+
case /* optional double gte */ 5:
|
|
2021
|
+
message.gte = reader.double();
|
|
2022
|
+
break;
|
|
2023
|
+
case /* repeated double in */ 6:
|
|
2024
|
+
if (wireType === WireType.LengthDelimited)
|
|
2025
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
2026
|
+
message.in.push(reader.double());
|
|
2027
|
+
else
|
|
2028
|
+
message.in.push(reader.double());
|
|
2029
|
+
break;
|
|
2030
|
+
case /* repeated double not_in */ 7:
|
|
2031
|
+
if (wireType === WireType.LengthDelimited)
|
|
2032
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
2033
|
+
message.notIn.push(reader.double());
|
|
2034
|
+
else
|
|
2035
|
+
message.notIn.push(reader.double());
|
|
2036
|
+
break;
|
|
2037
|
+
case /* optional bool ignore_empty */ 8:
|
|
2038
|
+
message.ignoreEmpty = reader.bool();
|
|
2039
|
+
break;
|
|
2040
|
+
default:
|
|
2041
|
+
let u = options.readUnknownField;
|
|
2042
|
+
if (u === "throw")
|
|
2043
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2044
|
+
let d = reader.skip(wireType);
|
|
2045
|
+
if (u !== false)
|
|
2046
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
return message;
|
|
2050
|
+
}
|
|
2051
|
+
internalBinaryWrite(message: DoubleRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2052
|
+
/* optional double const = 1; */
|
|
2053
|
+
if (message.const !== undefined)
|
|
2054
|
+
writer.tag(1, WireType.Bit64).double(message.const);
|
|
2055
|
+
/* optional double lt = 2; */
|
|
2056
|
+
if (message.lt !== undefined)
|
|
2057
|
+
writer.tag(2, WireType.Bit64).double(message.lt);
|
|
2058
|
+
/* optional double lte = 3; */
|
|
2059
|
+
if (message.lte !== undefined)
|
|
2060
|
+
writer.tag(3, WireType.Bit64).double(message.lte);
|
|
2061
|
+
/* optional double gt = 4; */
|
|
2062
|
+
if (message.gt !== undefined)
|
|
2063
|
+
writer.tag(4, WireType.Bit64).double(message.gt);
|
|
2064
|
+
/* optional double gte = 5; */
|
|
2065
|
+
if (message.gte !== undefined)
|
|
2066
|
+
writer.tag(5, WireType.Bit64).double(message.gte);
|
|
2067
|
+
/* repeated double in = 6; */
|
|
2068
|
+
for (let i = 0; i < message.in.length; i++)
|
|
2069
|
+
writer.tag(6, WireType.Bit64).double(message.in[i]);
|
|
2070
|
+
/* repeated double not_in = 7; */
|
|
2071
|
+
for (let i = 0; i < message.notIn.length; i++)
|
|
2072
|
+
writer.tag(7, WireType.Bit64).double(message.notIn[i]);
|
|
2073
|
+
/* optional bool ignore_empty = 8; */
|
|
2074
|
+
if (message.ignoreEmpty !== undefined)
|
|
2075
|
+
writer.tag(8, WireType.Varint).bool(message.ignoreEmpty);
|
|
2076
|
+
let u = options.writeUnknownFields;
|
|
2077
|
+
if (u !== false)
|
|
2078
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2079
|
+
return writer;
|
|
2080
|
+
}
|
|
2081
|
+
}
|
|
2082
|
+
/**
|
|
2083
|
+
* @generated MessageType for protobuf message validate.DoubleRules
|
|
2084
|
+
*/
|
|
2085
|
+
export const DoubleRules = new DoubleRules$Type();
|
|
2086
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2087
|
+
class Int32Rules$Type extends MessageType<Int32Rules> {
|
|
2088
|
+
constructor() {
|
|
2089
|
+
super("validate.Int32Rules", [
|
|
2090
|
+
{ no: 1, name: "const", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
2091
|
+
{ no: 2, name: "lt", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
2092
|
+
{ no: 3, name: "lte", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
2093
|
+
{ no: 4, name: "gt", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
2094
|
+
{ no: 5, name: "gte", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
2095
|
+
{ no: 6, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 5 /*ScalarType.INT32*/ },
|
|
2096
|
+
{ no: 7, name: "not_in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 5 /*ScalarType.INT32*/ },
|
|
2097
|
+
{ no: 8, name: "ignore_empty", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
2098
|
+
]);
|
|
2099
|
+
}
|
|
2100
|
+
create(value?: PartialMessage<Int32Rules>): Int32Rules {
|
|
2101
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2102
|
+
message.in = [];
|
|
2103
|
+
message.notIn = [];
|
|
2104
|
+
if (value !== undefined)
|
|
2105
|
+
reflectionMergePartial<Int32Rules>(this, message, value);
|
|
2106
|
+
return message;
|
|
2107
|
+
}
|
|
2108
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Int32Rules): Int32Rules {
|
|
2109
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2110
|
+
while (reader.pos < end) {
|
|
2111
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2112
|
+
switch (fieldNo) {
|
|
2113
|
+
case /* optional int32 const */ 1:
|
|
2114
|
+
message.const = reader.int32();
|
|
2115
|
+
break;
|
|
2116
|
+
case /* optional int32 lt */ 2:
|
|
2117
|
+
message.lt = reader.int32();
|
|
2118
|
+
break;
|
|
2119
|
+
case /* optional int32 lte */ 3:
|
|
2120
|
+
message.lte = reader.int32();
|
|
2121
|
+
break;
|
|
2122
|
+
case /* optional int32 gt */ 4:
|
|
2123
|
+
message.gt = reader.int32();
|
|
2124
|
+
break;
|
|
2125
|
+
case /* optional int32 gte */ 5:
|
|
2126
|
+
message.gte = reader.int32();
|
|
2127
|
+
break;
|
|
2128
|
+
case /* repeated int32 in */ 6:
|
|
2129
|
+
if (wireType === WireType.LengthDelimited)
|
|
2130
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
2131
|
+
message.in.push(reader.int32());
|
|
2132
|
+
else
|
|
2133
|
+
message.in.push(reader.int32());
|
|
2134
|
+
break;
|
|
2135
|
+
case /* repeated int32 not_in */ 7:
|
|
2136
|
+
if (wireType === WireType.LengthDelimited)
|
|
2137
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
2138
|
+
message.notIn.push(reader.int32());
|
|
2139
|
+
else
|
|
2140
|
+
message.notIn.push(reader.int32());
|
|
2141
|
+
break;
|
|
2142
|
+
case /* optional bool ignore_empty */ 8:
|
|
2143
|
+
message.ignoreEmpty = reader.bool();
|
|
2144
|
+
break;
|
|
2145
|
+
default:
|
|
2146
|
+
let u = options.readUnknownField;
|
|
2147
|
+
if (u === "throw")
|
|
2148
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2149
|
+
let d = reader.skip(wireType);
|
|
2150
|
+
if (u !== false)
|
|
2151
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2152
|
+
}
|
|
2153
|
+
}
|
|
2154
|
+
return message;
|
|
2155
|
+
}
|
|
2156
|
+
internalBinaryWrite(message: Int32Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2157
|
+
/* optional int32 const = 1; */
|
|
2158
|
+
if (message.const !== undefined)
|
|
2159
|
+
writer.tag(1, WireType.Varint).int32(message.const);
|
|
2160
|
+
/* optional int32 lt = 2; */
|
|
2161
|
+
if (message.lt !== undefined)
|
|
2162
|
+
writer.tag(2, WireType.Varint).int32(message.lt);
|
|
2163
|
+
/* optional int32 lte = 3; */
|
|
2164
|
+
if (message.lte !== undefined)
|
|
2165
|
+
writer.tag(3, WireType.Varint).int32(message.lte);
|
|
2166
|
+
/* optional int32 gt = 4; */
|
|
2167
|
+
if (message.gt !== undefined)
|
|
2168
|
+
writer.tag(4, WireType.Varint).int32(message.gt);
|
|
2169
|
+
/* optional int32 gte = 5; */
|
|
2170
|
+
if (message.gte !== undefined)
|
|
2171
|
+
writer.tag(5, WireType.Varint).int32(message.gte);
|
|
2172
|
+
/* repeated int32 in = 6; */
|
|
2173
|
+
for (let i = 0; i < message.in.length; i++)
|
|
2174
|
+
writer.tag(6, WireType.Varint).int32(message.in[i]);
|
|
2175
|
+
/* repeated int32 not_in = 7; */
|
|
2176
|
+
for (let i = 0; i < message.notIn.length; i++)
|
|
2177
|
+
writer.tag(7, WireType.Varint).int32(message.notIn[i]);
|
|
2178
|
+
/* optional bool ignore_empty = 8; */
|
|
2179
|
+
if (message.ignoreEmpty !== undefined)
|
|
2180
|
+
writer.tag(8, WireType.Varint).bool(message.ignoreEmpty);
|
|
2181
|
+
let u = options.writeUnknownFields;
|
|
2182
|
+
if (u !== false)
|
|
2183
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2184
|
+
return writer;
|
|
2185
|
+
}
|
|
2186
|
+
}
|
|
2187
|
+
/**
|
|
2188
|
+
* @generated MessageType for protobuf message validate.Int32Rules
|
|
2189
|
+
*/
|
|
2190
|
+
export const Int32Rules = new Int32Rules$Type();
|
|
2191
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2192
|
+
class Int64Rules$Type extends MessageType<Int64Rules> {
|
|
2193
|
+
constructor() {
|
|
2194
|
+
super("validate.Int64Rules", [
|
|
2195
|
+
{ no: 1, name: "const", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2196
|
+
{ no: 2, name: "lt", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2197
|
+
{ no: 3, name: "lte", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2198
|
+
{ no: 4, name: "gt", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2199
|
+
{ no: 5, name: "gte", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2200
|
+
{ no: 6, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2201
|
+
{ no: 7, name: "not_in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2202
|
+
{ no: 8, name: "ignore_empty", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
2203
|
+
]);
|
|
2204
|
+
}
|
|
2205
|
+
create(value?: PartialMessage<Int64Rules>): Int64Rules {
|
|
2206
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2207
|
+
message.in = [];
|
|
2208
|
+
message.notIn = [];
|
|
2209
|
+
if (value !== undefined)
|
|
2210
|
+
reflectionMergePartial<Int64Rules>(this, message, value);
|
|
2211
|
+
return message;
|
|
2212
|
+
}
|
|
2213
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Int64Rules): Int64Rules {
|
|
2214
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2215
|
+
while (reader.pos < end) {
|
|
2216
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2217
|
+
switch (fieldNo) {
|
|
2218
|
+
case /* optional int64 const */ 1:
|
|
2219
|
+
message.const = reader.int64().toBigInt();
|
|
2220
|
+
break;
|
|
2221
|
+
case /* optional int64 lt */ 2:
|
|
2222
|
+
message.lt = reader.int64().toBigInt();
|
|
2223
|
+
break;
|
|
2224
|
+
case /* optional int64 lte */ 3:
|
|
2225
|
+
message.lte = reader.int64().toBigInt();
|
|
2226
|
+
break;
|
|
2227
|
+
case /* optional int64 gt */ 4:
|
|
2228
|
+
message.gt = reader.int64().toBigInt();
|
|
2229
|
+
break;
|
|
2230
|
+
case /* optional int64 gte */ 5:
|
|
2231
|
+
message.gte = reader.int64().toBigInt();
|
|
2232
|
+
break;
|
|
2233
|
+
case /* repeated int64 in */ 6:
|
|
2234
|
+
if (wireType === WireType.LengthDelimited)
|
|
2235
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
2236
|
+
message.in.push(reader.int64().toBigInt());
|
|
2237
|
+
else
|
|
2238
|
+
message.in.push(reader.int64().toBigInt());
|
|
2239
|
+
break;
|
|
2240
|
+
case /* repeated int64 not_in */ 7:
|
|
2241
|
+
if (wireType === WireType.LengthDelimited)
|
|
2242
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
2243
|
+
message.notIn.push(reader.int64().toBigInt());
|
|
2244
|
+
else
|
|
2245
|
+
message.notIn.push(reader.int64().toBigInt());
|
|
2246
|
+
break;
|
|
2247
|
+
case /* optional bool ignore_empty */ 8:
|
|
2248
|
+
message.ignoreEmpty = reader.bool();
|
|
2249
|
+
break;
|
|
2250
|
+
default:
|
|
2251
|
+
let u = options.readUnknownField;
|
|
2252
|
+
if (u === "throw")
|
|
2253
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2254
|
+
let d = reader.skip(wireType);
|
|
2255
|
+
if (u !== false)
|
|
2256
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2257
|
+
}
|
|
2258
|
+
}
|
|
2259
|
+
return message;
|
|
2260
|
+
}
|
|
2261
|
+
internalBinaryWrite(message: Int64Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2262
|
+
/* optional int64 const = 1; */
|
|
2263
|
+
if (message.const !== undefined)
|
|
2264
|
+
writer.tag(1, WireType.Varint).int64(message.const);
|
|
2265
|
+
/* optional int64 lt = 2; */
|
|
2266
|
+
if (message.lt !== undefined)
|
|
2267
|
+
writer.tag(2, WireType.Varint).int64(message.lt);
|
|
2268
|
+
/* optional int64 lte = 3; */
|
|
2269
|
+
if (message.lte !== undefined)
|
|
2270
|
+
writer.tag(3, WireType.Varint).int64(message.lte);
|
|
2271
|
+
/* optional int64 gt = 4; */
|
|
2272
|
+
if (message.gt !== undefined)
|
|
2273
|
+
writer.tag(4, WireType.Varint).int64(message.gt);
|
|
2274
|
+
/* optional int64 gte = 5; */
|
|
2275
|
+
if (message.gte !== undefined)
|
|
2276
|
+
writer.tag(5, WireType.Varint).int64(message.gte);
|
|
2277
|
+
/* repeated int64 in = 6; */
|
|
2278
|
+
for (let i = 0; i < message.in.length; i++)
|
|
2279
|
+
writer.tag(6, WireType.Varint).int64(message.in[i]);
|
|
2280
|
+
/* repeated int64 not_in = 7; */
|
|
2281
|
+
for (let i = 0; i < message.notIn.length; i++)
|
|
2282
|
+
writer.tag(7, WireType.Varint).int64(message.notIn[i]);
|
|
2283
|
+
/* optional bool ignore_empty = 8; */
|
|
2284
|
+
if (message.ignoreEmpty !== undefined)
|
|
2285
|
+
writer.tag(8, WireType.Varint).bool(message.ignoreEmpty);
|
|
2286
|
+
let u = options.writeUnknownFields;
|
|
2287
|
+
if (u !== false)
|
|
2288
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2289
|
+
return writer;
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
/**
|
|
2293
|
+
* @generated MessageType for protobuf message validate.Int64Rules
|
|
2294
|
+
*/
|
|
2295
|
+
export const Int64Rules = new Int64Rules$Type();
|
|
2296
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2297
|
+
class UInt32Rules$Type extends MessageType<UInt32Rules> {
|
|
2298
|
+
constructor() {
|
|
2299
|
+
super("validate.UInt32Rules", [
|
|
2300
|
+
{ no: 1, name: "const", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
|
|
2301
|
+
{ no: 2, name: "lt", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
|
|
2302
|
+
{ no: 3, name: "lte", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
|
|
2303
|
+
{ no: 4, name: "gt", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
|
|
2304
|
+
{ no: 5, name: "gte", kind: "scalar", opt: true, T: 13 /*ScalarType.UINT32*/ },
|
|
2305
|
+
{ no: 6, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 13 /*ScalarType.UINT32*/ },
|
|
2306
|
+
{ no: 7, name: "not_in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 13 /*ScalarType.UINT32*/ },
|
|
2307
|
+
{ no: 8, name: "ignore_empty", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
2308
|
+
]);
|
|
2309
|
+
}
|
|
2310
|
+
create(value?: PartialMessage<UInt32Rules>): UInt32Rules {
|
|
2311
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2312
|
+
message.in = [];
|
|
2313
|
+
message.notIn = [];
|
|
2314
|
+
if (value !== undefined)
|
|
2315
|
+
reflectionMergePartial<UInt32Rules>(this, message, value);
|
|
2316
|
+
return message;
|
|
2317
|
+
}
|
|
2318
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UInt32Rules): UInt32Rules {
|
|
2319
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2320
|
+
while (reader.pos < end) {
|
|
2321
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2322
|
+
switch (fieldNo) {
|
|
2323
|
+
case /* optional uint32 const */ 1:
|
|
2324
|
+
message.const = reader.uint32();
|
|
2325
|
+
break;
|
|
2326
|
+
case /* optional uint32 lt */ 2:
|
|
2327
|
+
message.lt = reader.uint32();
|
|
2328
|
+
break;
|
|
2329
|
+
case /* optional uint32 lte */ 3:
|
|
2330
|
+
message.lte = reader.uint32();
|
|
2331
|
+
break;
|
|
2332
|
+
case /* optional uint32 gt */ 4:
|
|
2333
|
+
message.gt = reader.uint32();
|
|
2334
|
+
break;
|
|
2335
|
+
case /* optional uint32 gte */ 5:
|
|
2336
|
+
message.gte = reader.uint32();
|
|
2337
|
+
break;
|
|
2338
|
+
case /* repeated uint32 in */ 6:
|
|
2339
|
+
if (wireType === WireType.LengthDelimited)
|
|
2340
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
2341
|
+
message.in.push(reader.uint32());
|
|
2342
|
+
else
|
|
2343
|
+
message.in.push(reader.uint32());
|
|
2344
|
+
break;
|
|
2345
|
+
case /* repeated uint32 not_in */ 7:
|
|
2346
|
+
if (wireType === WireType.LengthDelimited)
|
|
2347
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
2348
|
+
message.notIn.push(reader.uint32());
|
|
2349
|
+
else
|
|
2350
|
+
message.notIn.push(reader.uint32());
|
|
2351
|
+
break;
|
|
2352
|
+
case /* optional bool ignore_empty */ 8:
|
|
2353
|
+
message.ignoreEmpty = reader.bool();
|
|
2354
|
+
break;
|
|
2355
|
+
default:
|
|
2356
|
+
let u = options.readUnknownField;
|
|
2357
|
+
if (u === "throw")
|
|
2358
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2359
|
+
let d = reader.skip(wireType);
|
|
2360
|
+
if (u !== false)
|
|
2361
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2364
|
+
return message;
|
|
2365
|
+
}
|
|
2366
|
+
internalBinaryWrite(message: UInt32Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2367
|
+
/* optional uint32 const = 1; */
|
|
2368
|
+
if (message.const !== undefined)
|
|
2369
|
+
writer.tag(1, WireType.Varint).uint32(message.const);
|
|
2370
|
+
/* optional uint32 lt = 2; */
|
|
2371
|
+
if (message.lt !== undefined)
|
|
2372
|
+
writer.tag(2, WireType.Varint).uint32(message.lt);
|
|
2373
|
+
/* optional uint32 lte = 3; */
|
|
2374
|
+
if (message.lte !== undefined)
|
|
2375
|
+
writer.tag(3, WireType.Varint).uint32(message.lte);
|
|
2376
|
+
/* optional uint32 gt = 4; */
|
|
2377
|
+
if (message.gt !== undefined)
|
|
2378
|
+
writer.tag(4, WireType.Varint).uint32(message.gt);
|
|
2379
|
+
/* optional uint32 gte = 5; */
|
|
2380
|
+
if (message.gte !== undefined)
|
|
2381
|
+
writer.tag(5, WireType.Varint).uint32(message.gte);
|
|
2382
|
+
/* repeated uint32 in = 6; */
|
|
2383
|
+
for (let i = 0; i < message.in.length; i++)
|
|
2384
|
+
writer.tag(6, WireType.Varint).uint32(message.in[i]);
|
|
2385
|
+
/* repeated uint32 not_in = 7; */
|
|
2386
|
+
for (let i = 0; i < message.notIn.length; i++)
|
|
2387
|
+
writer.tag(7, WireType.Varint).uint32(message.notIn[i]);
|
|
2388
|
+
/* optional bool ignore_empty = 8; */
|
|
2389
|
+
if (message.ignoreEmpty !== undefined)
|
|
2390
|
+
writer.tag(8, WireType.Varint).bool(message.ignoreEmpty);
|
|
2391
|
+
let u = options.writeUnknownFields;
|
|
2392
|
+
if (u !== false)
|
|
2393
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2394
|
+
return writer;
|
|
2395
|
+
}
|
|
2396
|
+
}
|
|
2397
|
+
/**
|
|
2398
|
+
* @generated MessageType for protobuf message validate.UInt32Rules
|
|
2399
|
+
*/
|
|
2400
|
+
export const UInt32Rules = new UInt32Rules$Type();
|
|
2401
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2402
|
+
class UInt64Rules$Type extends MessageType<UInt64Rules> {
|
|
2403
|
+
constructor() {
|
|
2404
|
+
super("validate.UInt64Rules", [
|
|
2405
|
+
{ no: 1, name: "const", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2406
|
+
{ no: 2, name: "lt", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2407
|
+
{ no: 3, name: "lte", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2408
|
+
{ no: 4, name: "gt", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2409
|
+
{ no: 5, name: "gte", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2410
|
+
{ no: 6, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2411
|
+
{ no: 7, name: "not_in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2412
|
+
{ no: 8, name: "ignore_empty", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
2413
|
+
]);
|
|
2414
|
+
}
|
|
2415
|
+
create(value?: PartialMessage<UInt64Rules>): UInt64Rules {
|
|
2416
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2417
|
+
message.in = [];
|
|
2418
|
+
message.notIn = [];
|
|
2419
|
+
if (value !== undefined)
|
|
2420
|
+
reflectionMergePartial<UInt64Rules>(this, message, value);
|
|
2421
|
+
return message;
|
|
2422
|
+
}
|
|
2423
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UInt64Rules): UInt64Rules {
|
|
2424
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2425
|
+
while (reader.pos < end) {
|
|
2426
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2427
|
+
switch (fieldNo) {
|
|
2428
|
+
case /* optional uint64 const */ 1:
|
|
2429
|
+
message.const = reader.uint64().toBigInt();
|
|
2430
|
+
break;
|
|
2431
|
+
case /* optional uint64 lt */ 2:
|
|
2432
|
+
message.lt = reader.uint64().toBigInt();
|
|
2433
|
+
break;
|
|
2434
|
+
case /* optional uint64 lte */ 3:
|
|
2435
|
+
message.lte = reader.uint64().toBigInt();
|
|
2436
|
+
break;
|
|
2437
|
+
case /* optional uint64 gt */ 4:
|
|
2438
|
+
message.gt = reader.uint64().toBigInt();
|
|
2439
|
+
break;
|
|
2440
|
+
case /* optional uint64 gte */ 5:
|
|
2441
|
+
message.gte = reader.uint64().toBigInt();
|
|
2442
|
+
break;
|
|
2443
|
+
case /* repeated uint64 in */ 6:
|
|
2444
|
+
if (wireType === WireType.LengthDelimited)
|
|
2445
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
2446
|
+
message.in.push(reader.uint64().toBigInt());
|
|
2447
|
+
else
|
|
2448
|
+
message.in.push(reader.uint64().toBigInt());
|
|
2449
|
+
break;
|
|
2450
|
+
case /* repeated uint64 not_in */ 7:
|
|
2451
|
+
if (wireType === WireType.LengthDelimited)
|
|
2452
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
2453
|
+
message.notIn.push(reader.uint64().toBigInt());
|
|
2454
|
+
else
|
|
2455
|
+
message.notIn.push(reader.uint64().toBigInt());
|
|
2456
|
+
break;
|
|
2457
|
+
case /* optional bool ignore_empty */ 8:
|
|
2458
|
+
message.ignoreEmpty = reader.bool();
|
|
2459
|
+
break;
|
|
2460
|
+
default:
|
|
2461
|
+
let u = options.readUnknownField;
|
|
2462
|
+
if (u === "throw")
|
|
2463
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2464
|
+
let d = reader.skip(wireType);
|
|
2465
|
+
if (u !== false)
|
|
2466
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2467
|
+
}
|
|
2468
|
+
}
|
|
2469
|
+
return message;
|
|
2470
|
+
}
|
|
2471
|
+
internalBinaryWrite(message: UInt64Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2472
|
+
/* optional uint64 const = 1; */
|
|
2473
|
+
if (message.const !== undefined)
|
|
2474
|
+
writer.tag(1, WireType.Varint).uint64(message.const);
|
|
2475
|
+
/* optional uint64 lt = 2; */
|
|
2476
|
+
if (message.lt !== undefined)
|
|
2477
|
+
writer.tag(2, WireType.Varint).uint64(message.lt);
|
|
2478
|
+
/* optional uint64 lte = 3; */
|
|
2479
|
+
if (message.lte !== undefined)
|
|
2480
|
+
writer.tag(3, WireType.Varint).uint64(message.lte);
|
|
2481
|
+
/* optional uint64 gt = 4; */
|
|
2482
|
+
if (message.gt !== undefined)
|
|
2483
|
+
writer.tag(4, WireType.Varint).uint64(message.gt);
|
|
2484
|
+
/* optional uint64 gte = 5; */
|
|
2485
|
+
if (message.gte !== undefined)
|
|
2486
|
+
writer.tag(5, WireType.Varint).uint64(message.gte);
|
|
2487
|
+
/* repeated uint64 in = 6; */
|
|
2488
|
+
for (let i = 0; i < message.in.length; i++)
|
|
2489
|
+
writer.tag(6, WireType.Varint).uint64(message.in[i]);
|
|
2490
|
+
/* repeated uint64 not_in = 7; */
|
|
2491
|
+
for (let i = 0; i < message.notIn.length; i++)
|
|
2492
|
+
writer.tag(7, WireType.Varint).uint64(message.notIn[i]);
|
|
2493
|
+
/* optional bool ignore_empty = 8; */
|
|
2494
|
+
if (message.ignoreEmpty !== undefined)
|
|
2495
|
+
writer.tag(8, WireType.Varint).bool(message.ignoreEmpty);
|
|
2496
|
+
let u = options.writeUnknownFields;
|
|
2497
|
+
if (u !== false)
|
|
2498
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2499
|
+
return writer;
|
|
2500
|
+
}
|
|
2501
|
+
}
|
|
2502
|
+
/**
|
|
2503
|
+
* @generated MessageType for protobuf message validate.UInt64Rules
|
|
2504
|
+
*/
|
|
2505
|
+
export const UInt64Rules = new UInt64Rules$Type();
|
|
2506
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2507
|
+
class SInt32Rules$Type extends MessageType<SInt32Rules> {
|
|
2508
|
+
constructor() {
|
|
2509
|
+
super("validate.SInt32Rules", [
|
|
2510
|
+
{ no: 1, name: "const", kind: "scalar", opt: true, T: 17 /*ScalarType.SINT32*/ },
|
|
2511
|
+
{ no: 2, name: "lt", kind: "scalar", opt: true, T: 17 /*ScalarType.SINT32*/ },
|
|
2512
|
+
{ no: 3, name: "lte", kind: "scalar", opt: true, T: 17 /*ScalarType.SINT32*/ },
|
|
2513
|
+
{ no: 4, name: "gt", kind: "scalar", opt: true, T: 17 /*ScalarType.SINT32*/ },
|
|
2514
|
+
{ no: 5, name: "gte", kind: "scalar", opt: true, T: 17 /*ScalarType.SINT32*/ },
|
|
2515
|
+
{ no: 6, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 17 /*ScalarType.SINT32*/ },
|
|
2516
|
+
{ no: 7, name: "not_in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 17 /*ScalarType.SINT32*/ },
|
|
2517
|
+
{ no: 8, name: "ignore_empty", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
2518
|
+
]);
|
|
2519
|
+
}
|
|
2520
|
+
create(value?: PartialMessage<SInt32Rules>): SInt32Rules {
|
|
2521
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2522
|
+
message.in = [];
|
|
2523
|
+
message.notIn = [];
|
|
2524
|
+
if (value !== undefined)
|
|
2525
|
+
reflectionMergePartial<SInt32Rules>(this, message, value);
|
|
2526
|
+
return message;
|
|
2527
|
+
}
|
|
2528
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SInt32Rules): SInt32Rules {
|
|
2529
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2530
|
+
while (reader.pos < end) {
|
|
2531
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2532
|
+
switch (fieldNo) {
|
|
2533
|
+
case /* optional sint32 const */ 1:
|
|
2534
|
+
message.const = reader.sint32();
|
|
2535
|
+
break;
|
|
2536
|
+
case /* optional sint32 lt */ 2:
|
|
2537
|
+
message.lt = reader.sint32();
|
|
2538
|
+
break;
|
|
2539
|
+
case /* optional sint32 lte */ 3:
|
|
2540
|
+
message.lte = reader.sint32();
|
|
2541
|
+
break;
|
|
2542
|
+
case /* optional sint32 gt */ 4:
|
|
2543
|
+
message.gt = reader.sint32();
|
|
2544
|
+
break;
|
|
2545
|
+
case /* optional sint32 gte */ 5:
|
|
2546
|
+
message.gte = reader.sint32();
|
|
2547
|
+
break;
|
|
2548
|
+
case /* repeated sint32 in */ 6:
|
|
2549
|
+
if (wireType === WireType.LengthDelimited)
|
|
2550
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
2551
|
+
message.in.push(reader.sint32());
|
|
2552
|
+
else
|
|
2553
|
+
message.in.push(reader.sint32());
|
|
2554
|
+
break;
|
|
2555
|
+
case /* repeated sint32 not_in */ 7:
|
|
2556
|
+
if (wireType === WireType.LengthDelimited)
|
|
2557
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
2558
|
+
message.notIn.push(reader.sint32());
|
|
2559
|
+
else
|
|
2560
|
+
message.notIn.push(reader.sint32());
|
|
2561
|
+
break;
|
|
2562
|
+
case /* optional bool ignore_empty */ 8:
|
|
2563
|
+
message.ignoreEmpty = reader.bool();
|
|
2564
|
+
break;
|
|
2565
|
+
default:
|
|
2566
|
+
let u = options.readUnknownField;
|
|
2567
|
+
if (u === "throw")
|
|
2568
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2569
|
+
let d = reader.skip(wireType);
|
|
2570
|
+
if (u !== false)
|
|
2571
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2572
|
+
}
|
|
2573
|
+
}
|
|
2574
|
+
return message;
|
|
2575
|
+
}
|
|
2576
|
+
internalBinaryWrite(message: SInt32Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2577
|
+
/* optional sint32 const = 1; */
|
|
2578
|
+
if (message.const !== undefined)
|
|
2579
|
+
writer.tag(1, WireType.Varint).sint32(message.const);
|
|
2580
|
+
/* optional sint32 lt = 2; */
|
|
2581
|
+
if (message.lt !== undefined)
|
|
2582
|
+
writer.tag(2, WireType.Varint).sint32(message.lt);
|
|
2583
|
+
/* optional sint32 lte = 3; */
|
|
2584
|
+
if (message.lte !== undefined)
|
|
2585
|
+
writer.tag(3, WireType.Varint).sint32(message.lte);
|
|
2586
|
+
/* optional sint32 gt = 4; */
|
|
2587
|
+
if (message.gt !== undefined)
|
|
2588
|
+
writer.tag(4, WireType.Varint).sint32(message.gt);
|
|
2589
|
+
/* optional sint32 gte = 5; */
|
|
2590
|
+
if (message.gte !== undefined)
|
|
2591
|
+
writer.tag(5, WireType.Varint).sint32(message.gte);
|
|
2592
|
+
/* repeated sint32 in = 6; */
|
|
2593
|
+
for (let i = 0; i < message.in.length; i++)
|
|
2594
|
+
writer.tag(6, WireType.Varint).sint32(message.in[i]);
|
|
2595
|
+
/* repeated sint32 not_in = 7; */
|
|
2596
|
+
for (let i = 0; i < message.notIn.length; i++)
|
|
2597
|
+
writer.tag(7, WireType.Varint).sint32(message.notIn[i]);
|
|
2598
|
+
/* optional bool ignore_empty = 8; */
|
|
2599
|
+
if (message.ignoreEmpty !== undefined)
|
|
2600
|
+
writer.tag(8, WireType.Varint).bool(message.ignoreEmpty);
|
|
2601
|
+
let u = options.writeUnknownFields;
|
|
2602
|
+
if (u !== false)
|
|
2603
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2604
|
+
return writer;
|
|
2605
|
+
}
|
|
2606
|
+
}
|
|
2607
|
+
/**
|
|
2608
|
+
* @generated MessageType for protobuf message validate.SInt32Rules
|
|
2609
|
+
*/
|
|
2610
|
+
export const SInt32Rules = new SInt32Rules$Type();
|
|
2611
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2612
|
+
class SInt64Rules$Type extends MessageType<SInt64Rules> {
|
|
2613
|
+
constructor() {
|
|
2614
|
+
super("validate.SInt64Rules", [
|
|
2615
|
+
{ no: 1, name: "const", kind: "scalar", opt: true, T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2616
|
+
{ no: 2, name: "lt", kind: "scalar", opt: true, T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2617
|
+
{ no: 3, name: "lte", kind: "scalar", opt: true, T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2618
|
+
{ no: 4, name: "gt", kind: "scalar", opt: true, T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2619
|
+
{ no: 5, name: "gte", kind: "scalar", opt: true, T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2620
|
+
{ no: 6, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2621
|
+
{ no: 7, name: "not_in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2622
|
+
{ no: 8, name: "ignore_empty", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
2623
|
+
]);
|
|
2624
|
+
}
|
|
2625
|
+
create(value?: PartialMessage<SInt64Rules>): SInt64Rules {
|
|
2626
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2627
|
+
message.in = [];
|
|
2628
|
+
message.notIn = [];
|
|
2629
|
+
if (value !== undefined)
|
|
2630
|
+
reflectionMergePartial<SInt64Rules>(this, message, value);
|
|
2631
|
+
return message;
|
|
2632
|
+
}
|
|
2633
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SInt64Rules): SInt64Rules {
|
|
2634
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2635
|
+
while (reader.pos < end) {
|
|
2636
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2637
|
+
switch (fieldNo) {
|
|
2638
|
+
case /* optional sint64 const */ 1:
|
|
2639
|
+
message.const = reader.sint64().toBigInt();
|
|
2640
|
+
break;
|
|
2641
|
+
case /* optional sint64 lt */ 2:
|
|
2642
|
+
message.lt = reader.sint64().toBigInt();
|
|
2643
|
+
break;
|
|
2644
|
+
case /* optional sint64 lte */ 3:
|
|
2645
|
+
message.lte = reader.sint64().toBigInt();
|
|
2646
|
+
break;
|
|
2647
|
+
case /* optional sint64 gt */ 4:
|
|
2648
|
+
message.gt = reader.sint64().toBigInt();
|
|
2649
|
+
break;
|
|
2650
|
+
case /* optional sint64 gte */ 5:
|
|
2651
|
+
message.gte = reader.sint64().toBigInt();
|
|
2652
|
+
break;
|
|
2653
|
+
case /* repeated sint64 in */ 6:
|
|
2654
|
+
if (wireType === WireType.LengthDelimited)
|
|
2655
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
2656
|
+
message.in.push(reader.sint64().toBigInt());
|
|
2657
|
+
else
|
|
2658
|
+
message.in.push(reader.sint64().toBigInt());
|
|
2659
|
+
break;
|
|
2660
|
+
case /* repeated sint64 not_in */ 7:
|
|
2661
|
+
if (wireType === WireType.LengthDelimited)
|
|
2662
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
2663
|
+
message.notIn.push(reader.sint64().toBigInt());
|
|
2664
|
+
else
|
|
2665
|
+
message.notIn.push(reader.sint64().toBigInt());
|
|
2666
|
+
break;
|
|
2667
|
+
case /* optional bool ignore_empty */ 8:
|
|
2668
|
+
message.ignoreEmpty = reader.bool();
|
|
2669
|
+
break;
|
|
2670
|
+
default:
|
|
2671
|
+
let u = options.readUnknownField;
|
|
2672
|
+
if (u === "throw")
|
|
2673
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2674
|
+
let d = reader.skip(wireType);
|
|
2675
|
+
if (u !== false)
|
|
2676
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2677
|
+
}
|
|
2678
|
+
}
|
|
2679
|
+
return message;
|
|
2680
|
+
}
|
|
2681
|
+
internalBinaryWrite(message: SInt64Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2682
|
+
/* optional sint64 const = 1; */
|
|
2683
|
+
if (message.const !== undefined)
|
|
2684
|
+
writer.tag(1, WireType.Varint).sint64(message.const);
|
|
2685
|
+
/* optional sint64 lt = 2; */
|
|
2686
|
+
if (message.lt !== undefined)
|
|
2687
|
+
writer.tag(2, WireType.Varint).sint64(message.lt);
|
|
2688
|
+
/* optional sint64 lte = 3; */
|
|
2689
|
+
if (message.lte !== undefined)
|
|
2690
|
+
writer.tag(3, WireType.Varint).sint64(message.lte);
|
|
2691
|
+
/* optional sint64 gt = 4; */
|
|
2692
|
+
if (message.gt !== undefined)
|
|
2693
|
+
writer.tag(4, WireType.Varint).sint64(message.gt);
|
|
2694
|
+
/* optional sint64 gte = 5; */
|
|
2695
|
+
if (message.gte !== undefined)
|
|
2696
|
+
writer.tag(5, WireType.Varint).sint64(message.gte);
|
|
2697
|
+
/* repeated sint64 in = 6; */
|
|
2698
|
+
for (let i = 0; i < message.in.length; i++)
|
|
2699
|
+
writer.tag(6, WireType.Varint).sint64(message.in[i]);
|
|
2700
|
+
/* repeated sint64 not_in = 7; */
|
|
2701
|
+
for (let i = 0; i < message.notIn.length; i++)
|
|
2702
|
+
writer.tag(7, WireType.Varint).sint64(message.notIn[i]);
|
|
2703
|
+
/* optional bool ignore_empty = 8; */
|
|
2704
|
+
if (message.ignoreEmpty !== undefined)
|
|
2705
|
+
writer.tag(8, WireType.Varint).bool(message.ignoreEmpty);
|
|
2706
|
+
let u = options.writeUnknownFields;
|
|
2707
|
+
if (u !== false)
|
|
2708
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2709
|
+
return writer;
|
|
2710
|
+
}
|
|
2711
|
+
}
|
|
2712
|
+
/**
|
|
2713
|
+
* @generated MessageType for protobuf message validate.SInt64Rules
|
|
2714
|
+
*/
|
|
2715
|
+
export const SInt64Rules = new SInt64Rules$Type();
|
|
2716
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2717
|
+
class Fixed32Rules$Type extends MessageType<Fixed32Rules> {
|
|
2718
|
+
constructor() {
|
|
2719
|
+
super("validate.Fixed32Rules", [
|
|
2720
|
+
{ no: 1, name: "const", kind: "scalar", opt: true, T: 7 /*ScalarType.FIXED32*/ },
|
|
2721
|
+
{ no: 2, name: "lt", kind: "scalar", opt: true, T: 7 /*ScalarType.FIXED32*/ },
|
|
2722
|
+
{ no: 3, name: "lte", kind: "scalar", opt: true, T: 7 /*ScalarType.FIXED32*/ },
|
|
2723
|
+
{ no: 4, name: "gt", kind: "scalar", opt: true, T: 7 /*ScalarType.FIXED32*/ },
|
|
2724
|
+
{ no: 5, name: "gte", kind: "scalar", opt: true, T: 7 /*ScalarType.FIXED32*/ },
|
|
2725
|
+
{ no: 6, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 7 /*ScalarType.FIXED32*/ },
|
|
2726
|
+
{ no: 7, name: "not_in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 7 /*ScalarType.FIXED32*/ },
|
|
2727
|
+
{ no: 8, name: "ignore_empty", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
2728
|
+
]);
|
|
2729
|
+
}
|
|
2730
|
+
create(value?: PartialMessage<Fixed32Rules>): Fixed32Rules {
|
|
2731
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2732
|
+
message.in = [];
|
|
2733
|
+
message.notIn = [];
|
|
2734
|
+
if (value !== undefined)
|
|
2735
|
+
reflectionMergePartial<Fixed32Rules>(this, message, value);
|
|
2736
|
+
return message;
|
|
2737
|
+
}
|
|
2738
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Fixed32Rules): Fixed32Rules {
|
|
2739
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2740
|
+
while (reader.pos < end) {
|
|
2741
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2742
|
+
switch (fieldNo) {
|
|
2743
|
+
case /* optional fixed32 const */ 1:
|
|
2744
|
+
message.const = reader.fixed32();
|
|
2745
|
+
break;
|
|
2746
|
+
case /* optional fixed32 lt */ 2:
|
|
2747
|
+
message.lt = reader.fixed32();
|
|
2748
|
+
break;
|
|
2749
|
+
case /* optional fixed32 lte */ 3:
|
|
2750
|
+
message.lte = reader.fixed32();
|
|
2751
|
+
break;
|
|
2752
|
+
case /* optional fixed32 gt */ 4:
|
|
2753
|
+
message.gt = reader.fixed32();
|
|
2754
|
+
break;
|
|
2755
|
+
case /* optional fixed32 gte */ 5:
|
|
2756
|
+
message.gte = reader.fixed32();
|
|
2757
|
+
break;
|
|
2758
|
+
case /* repeated fixed32 in */ 6:
|
|
2759
|
+
if (wireType === WireType.LengthDelimited)
|
|
2760
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
2761
|
+
message.in.push(reader.fixed32());
|
|
2762
|
+
else
|
|
2763
|
+
message.in.push(reader.fixed32());
|
|
2764
|
+
break;
|
|
2765
|
+
case /* repeated fixed32 not_in */ 7:
|
|
2766
|
+
if (wireType === WireType.LengthDelimited)
|
|
2767
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
2768
|
+
message.notIn.push(reader.fixed32());
|
|
2769
|
+
else
|
|
2770
|
+
message.notIn.push(reader.fixed32());
|
|
2771
|
+
break;
|
|
2772
|
+
case /* optional bool ignore_empty */ 8:
|
|
2773
|
+
message.ignoreEmpty = reader.bool();
|
|
2774
|
+
break;
|
|
2775
|
+
default:
|
|
2776
|
+
let u = options.readUnknownField;
|
|
2777
|
+
if (u === "throw")
|
|
2778
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2779
|
+
let d = reader.skip(wireType);
|
|
2780
|
+
if (u !== false)
|
|
2781
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2782
|
+
}
|
|
2783
|
+
}
|
|
2784
|
+
return message;
|
|
2785
|
+
}
|
|
2786
|
+
internalBinaryWrite(message: Fixed32Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2787
|
+
/* optional fixed32 const = 1; */
|
|
2788
|
+
if (message.const !== undefined)
|
|
2789
|
+
writer.tag(1, WireType.Bit32).fixed32(message.const);
|
|
2790
|
+
/* optional fixed32 lt = 2; */
|
|
2791
|
+
if (message.lt !== undefined)
|
|
2792
|
+
writer.tag(2, WireType.Bit32).fixed32(message.lt);
|
|
2793
|
+
/* optional fixed32 lte = 3; */
|
|
2794
|
+
if (message.lte !== undefined)
|
|
2795
|
+
writer.tag(3, WireType.Bit32).fixed32(message.lte);
|
|
2796
|
+
/* optional fixed32 gt = 4; */
|
|
2797
|
+
if (message.gt !== undefined)
|
|
2798
|
+
writer.tag(4, WireType.Bit32).fixed32(message.gt);
|
|
2799
|
+
/* optional fixed32 gte = 5; */
|
|
2800
|
+
if (message.gte !== undefined)
|
|
2801
|
+
writer.tag(5, WireType.Bit32).fixed32(message.gte);
|
|
2802
|
+
/* repeated fixed32 in = 6; */
|
|
2803
|
+
for (let i = 0; i < message.in.length; i++)
|
|
2804
|
+
writer.tag(6, WireType.Bit32).fixed32(message.in[i]);
|
|
2805
|
+
/* repeated fixed32 not_in = 7; */
|
|
2806
|
+
for (let i = 0; i < message.notIn.length; i++)
|
|
2807
|
+
writer.tag(7, WireType.Bit32).fixed32(message.notIn[i]);
|
|
2808
|
+
/* optional bool ignore_empty = 8; */
|
|
2809
|
+
if (message.ignoreEmpty !== undefined)
|
|
2810
|
+
writer.tag(8, WireType.Varint).bool(message.ignoreEmpty);
|
|
2811
|
+
let u = options.writeUnknownFields;
|
|
2812
|
+
if (u !== false)
|
|
2813
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2814
|
+
return writer;
|
|
2815
|
+
}
|
|
2816
|
+
}
|
|
2817
|
+
/**
|
|
2818
|
+
* @generated MessageType for protobuf message validate.Fixed32Rules
|
|
2819
|
+
*/
|
|
2820
|
+
export const Fixed32Rules = new Fixed32Rules$Type();
|
|
2821
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2822
|
+
class Fixed64Rules$Type extends MessageType<Fixed64Rules> {
|
|
2823
|
+
constructor() {
|
|
2824
|
+
super("validate.Fixed64Rules", [
|
|
2825
|
+
{ no: 1, name: "const", kind: "scalar", opt: true, T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2826
|
+
{ no: 2, name: "lt", kind: "scalar", opt: true, T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2827
|
+
{ no: 3, name: "lte", kind: "scalar", opt: true, T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2828
|
+
{ no: 4, name: "gt", kind: "scalar", opt: true, T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2829
|
+
{ no: 5, name: "gte", kind: "scalar", opt: true, T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2830
|
+
{ no: 6, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2831
|
+
{ no: 7, name: "not_in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2832
|
+
{ no: 8, name: "ignore_empty", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
2833
|
+
]);
|
|
2834
|
+
}
|
|
2835
|
+
create(value?: PartialMessage<Fixed64Rules>): Fixed64Rules {
|
|
2836
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2837
|
+
message.in = [];
|
|
2838
|
+
message.notIn = [];
|
|
2839
|
+
if (value !== undefined)
|
|
2840
|
+
reflectionMergePartial<Fixed64Rules>(this, message, value);
|
|
2841
|
+
return message;
|
|
2842
|
+
}
|
|
2843
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Fixed64Rules): Fixed64Rules {
|
|
2844
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2845
|
+
while (reader.pos < end) {
|
|
2846
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2847
|
+
switch (fieldNo) {
|
|
2848
|
+
case /* optional fixed64 const */ 1:
|
|
2849
|
+
message.const = reader.fixed64().toBigInt();
|
|
2850
|
+
break;
|
|
2851
|
+
case /* optional fixed64 lt */ 2:
|
|
2852
|
+
message.lt = reader.fixed64().toBigInt();
|
|
2853
|
+
break;
|
|
2854
|
+
case /* optional fixed64 lte */ 3:
|
|
2855
|
+
message.lte = reader.fixed64().toBigInt();
|
|
2856
|
+
break;
|
|
2857
|
+
case /* optional fixed64 gt */ 4:
|
|
2858
|
+
message.gt = reader.fixed64().toBigInt();
|
|
2859
|
+
break;
|
|
2860
|
+
case /* optional fixed64 gte */ 5:
|
|
2861
|
+
message.gte = reader.fixed64().toBigInt();
|
|
2862
|
+
break;
|
|
2863
|
+
case /* repeated fixed64 in */ 6:
|
|
2864
|
+
if (wireType === WireType.LengthDelimited)
|
|
2865
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
2866
|
+
message.in.push(reader.fixed64().toBigInt());
|
|
2867
|
+
else
|
|
2868
|
+
message.in.push(reader.fixed64().toBigInt());
|
|
2869
|
+
break;
|
|
2870
|
+
case /* repeated fixed64 not_in */ 7:
|
|
2871
|
+
if (wireType === WireType.LengthDelimited)
|
|
2872
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
2873
|
+
message.notIn.push(reader.fixed64().toBigInt());
|
|
2874
|
+
else
|
|
2875
|
+
message.notIn.push(reader.fixed64().toBigInt());
|
|
2876
|
+
break;
|
|
2877
|
+
case /* optional bool ignore_empty */ 8:
|
|
2878
|
+
message.ignoreEmpty = reader.bool();
|
|
2879
|
+
break;
|
|
2880
|
+
default:
|
|
2881
|
+
let u = options.readUnknownField;
|
|
2882
|
+
if (u === "throw")
|
|
2883
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2884
|
+
let d = reader.skip(wireType);
|
|
2885
|
+
if (u !== false)
|
|
2886
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2887
|
+
}
|
|
2888
|
+
}
|
|
2889
|
+
return message;
|
|
2890
|
+
}
|
|
2891
|
+
internalBinaryWrite(message: Fixed64Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2892
|
+
/* optional fixed64 const = 1; */
|
|
2893
|
+
if (message.const !== undefined)
|
|
2894
|
+
writer.tag(1, WireType.Bit64).fixed64(message.const);
|
|
2895
|
+
/* optional fixed64 lt = 2; */
|
|
2896
|
+
if (message.lt !== undefined)
|
|
2897
|
+
writer.tag(2, WireType.Bit64).fixed64(message.lt);
|
|
2898
|
+
/* optional fixed64 lte = 3; */
|
|
2899
|
+
if (message.lte !== undefined)
|
|
2900
|
+
writer.tag(3, WireType.Bit64).fixed64(message.lte);
|
|
2901
|
+
/* optional fixed64 gt = 4; */
|
|
2902
|
+
if (message.gt !== undefined)
|
|
2903
|
+
writer.tag(4, WireType.Bit64).fixed64(message.gt);
|
|
2904
|
+
/* optional fixed64 gte = 5; */
|
|
2905
|
+
if (message.gte !== undefined)
|
|
2906
|
+
writer.tag(5, WireType.Bit64).fixed64(message.gte);
|
|
2907
|
+
/* repeated fixed64 in = 6; */
|
|
2908
|
+
for (let i = 0; i < message.in.length; i++)
|
|
2909
|
+
writer.tag(6, WireType.Bit64).fixed64(message.in[i]);
|
|
2910
|
+
/* repeated fixed64 not_in = 7; */
|
|
2911
|
+
for (let i = 0; i < message.notIn.length; i++)
|
|
2912
|
+
writer.tag(7, WireType.Bit64).fixed64(message.notIn[i]);
|
|
2913
|
+
/* optional bool ignore_empty = 8; */
|
|
2914
|
+
if (message.ignoreEmpty !== undefined)
|
|
2915
|
+
writer.tag(8, WireType.Varint).bool(message.ignoreEmpty);
|
|
2916
|
+
let u = options.writeUnknownFields;
|
|
2917
|
+
if (u !== false)
|
|
2918
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2919
|
+
return writer;
|
|
2920
|
+
}
|
|
2921
|
+
}
|
|
2922
|
+
/**
|
|
2923
|
+
* @generated MessageType for protobuf message validate.Fixed64Rules
|
|
2924
|
+
*/
|
|
2925
|
+
export const Fixed64Rules = new Fixed64Rules$Type();
|
|
2926
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2927
|
+
class SFixed32Rules$Type extends MessageType<SFixed32Rules> {
|
|
2928
|
+
constructor() {
|
|
2929
|
+
super("validate.SFixed32Rules", [
|
|
2930
|
+
{ no: 1, name: "const", kind: "scalar", opt: true, T: 15 /*ScalarType.SFIXED32*/ },
|
|
2931
|
+
{ no: 2, name: "lt", kind: "scalar", opt: true, T: 15 /*ScalarType.SFIXED32*/ },
|
|
2932
|
+
{ no: 3, name: "lte", kind: "scalar", opt: true, T: 15 /*ScalarType.SFIXED32*/ },
|
|
2933
|
+
{ no: 4, name: "gt", kind: "scalar", opt: true, T: 15 /*ScalarType.SFIXED32*/ },
|
|
2934
|
+
{ no: 5, name: "gte", kind: "scalar", opt: true, T: 15 /*ScalarType.SFIXED32*/ },
|
|
2935
|
+
{ no: 6, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 15 /*ScalarType.SFIXED32*/ },
|
|
2936
|
+
{ no: 7, name: "not_in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 15 /*ScalarType.SFIXED32*/ },
|
|
2937
|
+
{ no: 8, name: "ignore_empty", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
2938
|
+
]);
|
|
2939
|
+
}
|
|
2940
|
+
create(value?: PartialMessage<SFixed32Rules>): SFixed32Rules {
|
|
2941
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2942
|
+
message.in = [];
|
|
2943
|
+
message.notIn = [];
|
|
2944
|
+
if (value !== undefined)
|
|
2945
|
+
reflectionMergePartial<SFixed32Rules>(this, message, value);
|
|
2946
|
+
return message;
|
|
2947
|
+
}
|
|
2948
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SFixed32Rules): SFixed32Rules {
|
|
2949
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2950
|
+
while (reader.pos < end) {
|
|
2951
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2952
|
+
switch (fieldNo) {
|
|
2953
|
+
case /* optional sfixed32 const */ 1:
|
|
2954
|
+
message.const = reader.sfixed32();
|
|
2955
|
+
break;
|
|
2956
|
+
case /* optional sfixed32 lt */ 2:
|
|
2957
|
+
message.lt = reader.sfixed32();
|
|
2958
|
+
break;
|
|
2959
|
+
case /* optional sfixed32 lte */ 3:
|
|
2960
|
+
message.lte = reader.sfixed32();
|
|
2961
|
+
break;
|
|
2962
|
+
case /* optional sfixed32 gt */ 4:
|
|
2963
|
+
message.gt = reader.sfixed32();
|
|
2964
|
+
break;
|
|
2965
|
+
case /* optional sfixed32 gte */ 5:
|
|
2966
|
+
message.gte = reader.sfixed32();
|
|
2967
|
+
break;
|
|
2968
|
+
case /* repeated sfixed32 in */ 6:
|
|
2969
|
+
if (wireType === WireType.LengthDelimited)
|
|
2970
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
2971
|
+
message.in.push(reader.sfixed32());
|
|
2972
|
+
else
|
|
2973
|
+
message.in.push(reader.sfixed32());
|
|
2974
|
+
break;
|
|
2975
|
+
case /* repeated sfixed32 not_in */ 7:
|
|
2976
|
+
if (wireType === WireType.LengthDelimited)
|
|
2977
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
2978
|
+
message.notIn.push(reader.sfixed32());
|
|
2979
|
+
else
|
|
2980
|
+
message.notIn.push(reader.sfixed32());
|
|
2981
|
+
break;
|
|
2982
|
+
case /* optional bool ignore_empty */ 8:
|
|
2983
|
+
message.ignoreEmpty = reader.bool();
|
|
2984
|
+
break;
|
|
2985
|
+
default:
|
|
2986
|
+
let u = options.readUnknownField;
|
|
2987
|
+
if (u === "throw")
|
|
2988
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2989
|
+
let d = reader.skip(wireType);
|
|
2990
|
+
if (u !== false)
|
|
2991
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2992
|
+
}
|
|
2993
|
+
}
|
|
2994
|
+
return message;
|
|
2995
|
+
}
|
|
2996
|
+
internalBinaryWrite(message: SFixed32Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2997
|
+
/* optional sfixed32 const = 1; */
|
|
2998
|
+
if (message.const !== undefined)
|
|
2999
|
+
writer.tag(1, WireType.Bit32).sfixed32(message.const);
|
|
3000
|
+
/* optional sfixed32 lt = 2; */
|
|
3001
|
+
if (message.lt !== undefined)
|
|
3002
|
+
writer.tag(2, WireType.Bit32).sfixed32(message.lt);
|
|
3003
|
+
/* optional sfixed32 lte = 3; */
|
|
3004
|
+
if (message.lte !== undefined)
|
|
3005
|
+
writer.tag(3, WireType.Bit32).sfixed32(message.lte);
|
|
3006
|
+
/* optional sfixed32 gt = 4; */
|
|
3007
|
+
if (message.gt !== undefined)
|
|
3008
|
+
writer.tag(4, WireType.Bit32).sfixed32(message.gt);
|
|
3009
|
+
/* optional sfixed32 gte = 5; */
|
|
3010
|
+
if (message.gte !== undefined)
|
|
3011
|
+
writer.tag(5, WireType.Bit32).sfixed32(message.gte);
|
|
3012
|
+
/* repeated sfixed32 in = 6; */
|
|
3013
|
+
for (let i = 0; i < message.in.length; i++)
|
|
3014
|
+
writer.tag(6, WireType.Bit32).sfixed32(message.in[i]);
|
|
3015
|
+
/* repeated sfixed32 not_in = 7; */
|
|
3016
|
+
for (let i = 0; i < message.notIn.length; i++)
|
|
3017
|
+
writer.tag(7, WireType.Bit32).sfixed32(message.notIn[i]);
|
|
3018
|
+
/* optional bool ignore_empty = 8; */
|
|
3019
|
+
if (message.ignoreEmpty !== undefined)
|
|
3020
|
+
writer.tag(8, WireType.Varint).bool(message.ignoreEmpty);
|
|
3021
|
+
let u = options.writeUnknownFields;
|
|
3022
|
+
if (u !== false)
|
|
3023
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3024
|
+
return writer;
|
|
3025
|
+
}
|
|
3026
|
+
}
|
|
3027
|
+
/**
|
|
3028
|
+
* @generated MessageType for protobuf message validate.SFixed32Rules
|
|
3029
|
+
*/
|
|
3030
|
+
export const SFixed32Rules = new SFixed32Rules$Type();
|
|
3031
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3032
|
+
class SFixed64Rules$Type extends MessageType<SFixed64Rules> {
|
|
3033
|
+
constructor() {
|
|
3034
|
+
super("validate.SFixed64Rules", [
|
|
3035
|
+
{ no: 1, name: "const", kind: "scalar", opt: true, T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3036
|
+
{ no: 2, name: "lt", kind: "scalar", opt: true, T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3037
|
+
{ no: 3, name: "lte", kind: "scalar", opt: true, T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3038
|
+
{ no: 4, name: "gt", kind: "scalar", opt: true, T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3039
|
+
{ no: 5, name: "gte", kind: "scalar", opt: true, T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3040
|
+
{ no: 6, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3041
|
+
{ no: 7, name: "not_in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 16 /*ScalarType.SFIXED64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3042
|
+
{ no: 8, name: "ignore_empty", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
3043
|
+
]);
|
|
3044
|
+
}
|
|
3045
|
+
create(value?: PartialMessage<SFixed64Rules>): SFixed64Rules {
|
|
3046
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3047
|
+
message.in = [];
|
|
3048
|
+
message.notIn = [];
|
|
3049
|
+
if (value !== undefined)
|
|
3050
|
+
reflectionMergePartial<SFixed64Rules>(this, message, value);
|
|
3051
|
+
return message;
|
|
3052
|
+
}
|
|
3053
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SFixed64Rules): SFixed64Rules {
|
|
3054
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3055
|
+
while (reader.pos < end) {
|
|
3056
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3057
|
+
switch (fieldNo) {
|
|
3058
|
+
case /* optional sfixed64 const */ 1:
|
|
3059
|
+
message.const = reader.sfixed64().toBigInt();
|
|
3060
|
+
break;
|
|
3061
|
+
case /* optional sfixed64 lt */ 2:
|
|
3062
|
+
message.lt = reader.sfixed64().toBigInt();
|
|
3063
|
+
break;
|
|
3064
|
+
case /* optional sfixed64 lte */ 3:
|
|
3065
|
+
message.lte = reader.sfixed64().toBigInt();
|
|
3066
|
+
break;
|
|
3067
|
+
case /* optional sfixed64 gt */ 4:
|
|
3068
|
+
message.gt = reader.sfixed64().toBigInt();
|
|
3069
|
+
break;
|
|
3070
|
+
case /* optional sfixed64 gte */ 5:
|
|
3071
|
+
message.gte = reader.sfixed64().toBigInt();
|
|
3072
|
+
break;
|
|
3073
|
+
case /* repeated sfixed64 in */ 6:
|
|
3074
|
+
if (wireType === WireType.LengthDelimited)
|
|
3075
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
3076
|
+
message.in.push(reader.sfixed64().toBigInt());
|
|
3077
|
+
else
|
|
3078
|
+
message.in.push(reader.sfixed64().toBigInt());
|
|
3079
|
+
break;
|
|
3080
|
+
case /* repeated sfixed64 not_in */ 7:
|
|
3081
|
+
if (wireType === WireType.LengthDelimited)
|
|
3082
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
3083
|
+
message.notIn.push(reader.sfixed64().toBigInt());
|
|
3084
|
+
else
|
|
3085
|
+
message.notIn.push(reader.sfixed64().toBigInt());
|
|
3086
|
+
break;
|
|
3087
|
+
case /* optional bool ignore_empty */ 8:
|
|
3088
|
+
message.ignoreEmpty = reader.bool();
|
|
3089
|
+
break;
|
|
3090
|
+
default:
|
|
3091
|
+
let u = options.readUnknownField;
|
|
3092
|
+
if (u === "throw")
|
|
3093
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3094
|
+
let d = reader.skip(wireType);
|
|
3095
|
+
if (u !== false)
|
|
3096
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3097
|
+
}
|
|
3098
|
+
}
|
|
3099
|
+
return message;
|
|
3100
|
+
}
|
|
3101
|
+
internalBinaryWrite(message: SFixed64Rules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3102
|
+
/* optional sfixed64 const = 1; */
|
|
3103
|
+
if (message.const !== undefined)
|
|
3104
|
+
writer.tag(1, WireType.Bit64).sfixed64(message.const);
|
|
3105
|
+
/* optional sfixed64 lt = 2; */
|
|
3106
|
+
if (message.lt !== undefined)
|
|
3107
|
+
writer.tag(2, WireType.Bit64).sfixed64(message.lt);
|
|
3108
|
+
/* optional sfixed64 lte = 3; */
|
|
3109
|
+
if (message.lte !== undefined)
|
|
3110
|
+
writer.tag(3, WireType.Bit64).sfixed64(message.lte);
|
|
3111
|
+
/* optional sfixed64 gt = 4; */
|
|
3112
|
+
if (message.gt !== undefined)
|
|
3113
|
+
writer.tag(4, WireType.Bit64).sfixed64(message.gt);
|
|
3114
|
+
/* optional sfixed64 gte = 5; */
|
|
3115
|
+
if (message.gte !== undefined)
|
|
3116
|
+
writer.tag(5, WireType.Bit64).sfixed64(message.gte);
|
|
3117
|
+
/* repeated sfixed64 in = 6; */
|
|
3118
|
+
for (let i = 0; i < message.in.length; i++)
|
|
3119
|
+
writer.tag(6, WireType.Bit64).sfixed64(message.in[i]);
|
|
3120
|
+
/* repeated sfixed64 not_in = 7; */
|
|
3121
|
+
for (let i = 0; i < message.notIn.length; i++)
|
|
3122
|
+
writer.tag(7, WireType.Bit64).sfixed64(message.notIn[i]);
|
|
3123
|
+
/* optional bool ignore_empty = 8; */
|
|
3124
|
+
if (message.ignoreEmpty !== undefined)
|
|
3125
|
+
writer.tag(8, WireType.Varint).bool(message.ignoreEmpty);
|
|
3126
|
+
let u = options.writeUnknownFields;
|
|
3127
|
+
if (u !== false)
|
|
3128
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3129
|
+
return writer;
|
|
3130
|
+
}
|
|
3131
|
+
}
|
|
3132
|
+
/**
|
|
3133
|
+
* @generated MessageType for protobuf message validate.SFixed64Rules
|
|
3134
|
+
*/
|
|
3135
|
+
export const SFixed64Rules = new SFixed64Rules$Type();
|
|
3136
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3137
|
+
class BoolRules$Type extends MessageType<BoolRules> {
|
|
3138
|
+
constructor() {
|
|
3139
|
+
super("validate.BoolRules", [
|
|
3140
|
+
{ no: 1, name: "const", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
3141
|
+
]);
|
|
3142
|
+
}
|
|
3143
|
+
create(value?: PartialMessage<BoolRules>): BoolRules {
|
|
3144
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3145
|
+
if (value !== undefined)
|
|
3146
|
+
reflectionMergePartial<BoolRules>(this, message, value);
|
|
3147
|
+
return message;
|
|
3148
|
+
}
|
|
3149
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BoolRules): BoolRules {
|
|
3150
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3151
|
+
while (reader.pos < end) {
|
|
3152
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3153
|
+
switch (fieldNo) {
|
|
3154
|
+
case /* optional bool const */ 1:
|
|
3155
|
+
message.const = reader.bool();
|
|
3156
|
+
break;
|
|
3157
|
+
default:
|
|
3158
|
+
let u = options.readUnknownField;
|
|
3159
|
+
if (u === "throw")
|
|
3160
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3161
|
+
let d = reader.skip(wireType);
|
|
3162
|
+
if (u !== false)
|
|
3163
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3164
|
+
}
|
|
3165
|
+
}
|
|
3166
|
+
return message;
|
|
3167
|
+
}
|
|
3168
|
+
internalBinaryWrite(message: BoolRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3169
|
+
/* optional bool const = 1; */
|
|
3170
|
+
if (message.const !== undefined)
|
|
3171
|
+
writer.tag(1, WireType.Varint).bool(message.const);
|
|
3172
|
+
let u = options.writeUnknownFields;
|
|
3173
|
+
if (u !== false)
|
|
3174
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3175
|
+
return writer;
|
|
3176
|
+
}
|
|
3177
|
+
}
|
|
3178
|
+
/**
|
|
3179
|
+
* @generated MessageType for protobuf message validate.BoolRules
|
|
3180
|
+
*/
|
|
3181
|
+
export const BoolRules = new BoolRules$Type();
|
|
3182
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3183
|
+
class StringRules$Type extends MessageType<StringRules> {
|
|
3184
|
+
constructor() {
|
|
3185
|
+
super("validate.StringRules", [
|
|
3186
|
+
{ no: 1, name: "const", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3187
|
+
{ no: 19, name: "len", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3188
|
+
{ no: 2, name: "min_len", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3189
|
+
{ no: 3, name: "max_len", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3190
|
+
{ no: 20, name: "len_bytes", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3191
|
+
{ no: 4, name: "min_bytes", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3192
|
+
{ no: 5, name: "max_bytes", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3193
|
+
{ no: 6, name: "pattern", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3194
|
+
{ no: 7, name: "prefix", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3195
|
+
{ no: 8, name: "suffix", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3196
|
+
{ no: 9, name: "contains", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3197
|
+
{ no: 23, name: "not_contains", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3198
|
+
{ no: 10, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
3199
|
+
{ no: 11, name: "not_in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
3200
|
+
{ no: 12, name: "email", kind: "scalar", oneof: "wellKnown", T: 8 /*ScalarType.BOOL*/ },
|
|
3201
|
+
{ no: 13, name: "hostname", kind: "scalar", oneof: "wellKnown", T: 8 /*ScalarType.BOOL*/ },
|
|
3202
|
+
{ no: 14, name: "ip", kind: "scalar", oneof: "wellKnown", T: 8 /*ScalarType.BOOL*/ },
|
|
3203
|
+
{ no: 15, name: "ipv4", kind: "scalar", oneof: "wellKnown", T: 8 /*ScalarType.BOOL*/ },
|
|
3204
|
+
{ no: 16, name: "ipv6", kind: "scalar", oneof: "wellKnown", T: 8 /*ScalarType.BOOL*/ },
|
|
3205
|
+
{ no: 17, name: "uri", kind: "scalar", oneof: "wellKnown", T: 8 /*ScalarType.BOOL*/ },
|
|
3206
|
+
{ no: 18, name: "uri_ref", kind: "scalar", oneof: "wellKnown", T: 8 /*ScalarType.BOOL*/ },
|
|
3207
|
+
{ no: 21, name: "address", kind: "scalar", oneof: "wellKnown", T: 8 /*ScalarType.BOOL*/ },
|
|
3208
|
+
{ no: 22, name: "uuid", kind: "scalar", oneof: "wellKnown", T: 8 /*ScalarType.BOOL*/ },
|
|
3209
|
+
{ no: 24, name: "well_known_regex", kind: "enum", oneof: "wellKnown", T: () => ["validate.KnownRegex", KnownRegex] },
|
|
3210
|
+
{ no: 25, name: "strict", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
3211
|
+
{ no: 26, name: "ignore_empty", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
3212
|
+
]);
|
|
3213
|
+
}
|
|
3214
|
+
create(value?: PartialMessage<StringRules>): StringRules {
|
|
3215
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3216
|
+
message.in = [];
|
|
3217
|
+
message.notIn = [];
|
|
3218
|
+
message.wellKnown = { oneofKind: undefined };
|
|
3219
|
+
if (value !== undefined)
|
|
3220
|
+
reflectionMergePartial<StringRules>(this, message, value);
|
|
3221
|
+
return message;
|
|
3222
|
+
}
|
|
3223
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StringRules): StringRules {
|
|
3224
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3225
|
+
while (reader.pos < end) {
|
|
3226
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3227
|
+
switch (fieldNo) {
|
|
3228
|
+
case /* optional string const */ 1:
|
|
3229
|
+
message.const = reader.string();
|
|
3230
|
+
break;
|
|
3231
|
+
case /* optional uint64 len */ 19:
|
|
3232
|
+
message.len = reader.uint64().toBigInt();
|
|
3233
|
+
break;
|
|
3234
|
+
case /* optional uint64 min_len */ 2:
|
|
3235
|
+
message.minLen = reader.uint64().toBigInt();
|
|
3236
|
+
break;
|
|
3237
|
+
case /* optional uint64 max_len */ 3:
|
|
3238
|
+
message.maxLen = reader.uint64().toBigInt();
|
|
3239
|
+
break;
|
|
3240
|
+
case /* optional uint64 len_bytes */ 20:
|
|
3241
|
+
message.lenBytes = reader.uint64().toBigInt();
|
|
3242
|
+
break;
|
|
3243
|
+
case /* optional uint64 min_bytes */ 4:
|
|
3244
|
+
message.minBytes = reader.uint64().toBigInt();
|
|
3245
|
+
break;
|
|
3246
|
+
case /* optional uint64 max_bytes */ 5:
|
|
3247
|
+
message.maxBytes = reader.uint64().toBigInt();
|
|
3248
|
+
break;
|
|
3249
|
+
case /* optional string pattern */ 6:
|
|
3250
|
+
message.pattern = reader.string();
|
|
3251
|
+
break;
|
|
3252
|
+
case /* optional string prefix */ 7:
|
|
3253
|
+
message.prefix = reader.string();
|
|
3254
|
+
break;
|
|
3255
|
+
case /* optional string suffix */ 8:
|
|
3256
|
+
message.suffix = reader.string();
|
|
3257
|
+
break;
|
|
3258
|
+
case /* optional string contains */ 9:
|
|
3259
|
+
message.contains = reader.string();
|
|
3260
|
+
break;
|
|
3261
|
+
case /* optional string not_contains */ 23:
|
|
3262
|
+
message.notContains = reader.string();
|
|
3263
|
+
break;
|
|
3264
|
+
case /* repeated string in */ 10:
|
|
3265
|
+
message.in.push(reader.string());
|
|
3266
|
+
break;
|
|
3267
|
+
case /* repeated string not_in */ 11:
|
|
3268
|
+
message.notIn.push(reader.string());
|
|
3269
|
+
break;
|
|
3270
|
+
case /* bool email */ 12:
|
|
3271
|
+
message.wellKnown = {
|
|
3272
|
+
oneofKind: "email",
|
|
3273
|
+
email: reader.bool()
|
|
3274
|
+
};
|
|
3275
|
+
break;
|
|
3276
|
+
case /* bool hostname */ 13:
|
|
3277
|
+
message.wellKnown = {
|
|
3278
|
+
oneofKind: "hostname",
|
|
3279
|
+
hostname: reader.bool()
|
|
3280
|
+
};
|
|
3281
|
+
break;
|
|
3282
|
+
case /* bool ip */ 14:
|
|
3283
|
+
message.wellKnown = {
|
|
3284
|
+
oneofKind: "ip",
|
|
3285
|
+
ip: reader.bool()
|
|
3286
|
+
};
|
|
3287
|
+
break;
|
|
3288
|
+
case /* bool ipv4 */ 15:
|
|
3289
|
+
message.wellKnown = {
|
|
3290
|
+
oneofKind: "ipv4",
|
|
3291
|
+
ipv4: reader.bool()
|
|
3292
|
+
};
|
|
3293
|
+
break;
|
|
3294
|
+
case /* bool ipv6 */ 16:
|
|
3295
|
+
message.wellKnown = {
|
|
3296
|
+
oneofKind: "ipv6",
|
|
3297
|
+
ipv6: reader.bool()
|
|
3298
|
+
};
|
|
3299
|
+
break;
|
|
3300
|
+
case /* bool uri */ 17:
|
|
3301
|
+
message.wellKnown = {
|
|
3302
|
+
oneofKind: "uri",
|
|
3303
|
+
uri: reader.bool()
|
|
3304
|
+
};
|
|
3305
|
+
break;
|
|
3306
|
+
case /* bool uri_ref */ 18:
|
|
3307
|
+
message.wellKnown = {
|
|
3308
|
+
oneofKind: "uriRef",
|
|
3309
|
+
uriRef: reader.bool()
|
|
3310
|
+
};
|
|
3311
|
+
break;
|
|
3312
|
+
case /* bool address */ 21:
|
|
3313
|
+
message.wellKnown = {
|
|
3314
|
+
oneofKind: "address",
|
|
3315
|
+
address: reader.bool()
|
|
3316
|
+
};
|
|
3317
|
+
break;
|
|
3318
|
+
case /* bool uuid */ 22:
|
|
3319
|
+
message.wellKnown = {
|
|
3320
|
+
oneofKind: "uuid",
|
|
3321
|
+
uuid: reader.bool()
|
|
3322
|
+
};
|
|
3323
|
+
break;
|
|
3324
|
+
case /* validate.KnownRegex well_known_regex */ 24:
|
|
3325
|
+
message.wellKnown = {
|
|
3326
|
+
oneofKind: "wellKnownRegex",
|
|
3327
|
+
wellKnownRegex: reader.int32()
|
|
3328
|
+
};
|
|
3329
|
+
break;
|
|
3330
|
+
case /* optional bool strict = 25 [default = true] */ 25:
|
|
3331
|
+
message.strict = reader.bool();
|
|
3332
|
+
break;
|
|
3333
|
+
case /* optional bool ignore_empty */ 26:
|
|
3334
|
+
message.ignoreEmpty = reader.bool();
|
|
3335
|
+
break;
|
|
3336
|
+
default:
|
|
3337
|
+
let u = options.readUnknownField;
|
|
3338
|
+
if (u === "throw")
|
|
3339
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3340
|
+
let d = reader.skip(wireType);
|
|
3341
|
+
if (u !== false)
|
|
3342
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3343
|
+
}
|
|
3344
|
+
}
|
|
3345
|
+
return message;
|
|
3346
|
+
}
|
|
3347
|
+
internalBinaryWrite(message: StringRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3348
|
+
/* optional string const = 1; */
|
|
3349
|
+
if (message.const !== undefined)
|
|
3350
|
+
writer.tag(1, WireType.LengthDelimited).string(message.const);
|
|
3351
|
+
/* optional uint64 min_len = 2; */
|
|
3352
|
+
if (message.minLen !== undefined)
|
|
3353
|
+
writer.tag(2, WireType.Varint).uint64(message.minLen);
|
|
3354
|
+
/* optional uint64 max_len = 3; */
|
|
3355
|
+
if (message.maxLen !== undefined)
|
|
3356
|
+
writer.tag(3, WireType.Varint).uint64(message.maxLen);
|
|
3357
|
+
/* optional uint64 min_bytes = 4; */
|
|
3358
|
+
if (message.minBytes !== undefined)
|
|
3359
|
+
writer.tag(4, WireType.Varint).uint64(message.minBytes);
|
|
3360
|
+
/* optional uint64 max_bytes = 5; */
|
|
3361
|
+
if (message.maxBytes !== undefined)
|
|
3362
|
+
writer.tag(5, WireType.Varint).uint64(message.maxBytes);
|
|
3363
|
+
/* optional string pattern = 6; */
|
|
3364
|
+
if (message.pattern !== undefined)
|
|
3365
|
+
writer.tag(6, WireType.LengthDelimited).string(message.pattern);
|
|
3366
|
+
/* optional string prefix = 7; */
|
|
3367
|
+
if (message.prefix !== undefined)
|
|
3368
|
+
writer.tag(7, WireType.LengthDelimited).string(message.prefix);
|
|
3369
|
+
/* optional string suffix = 8; */
|
|
3370
|
+
if (message.suffix !== undefined)
|
|
3371
|
+
writer.tag(8, WireType.LengthDelimited).string(message.suffix);
|
|
3372
|
+
/* optional string contains = 9; */
|
|
3373
|
+
if (message.contains !== undefined)
|
|
3374
|
+
writer.tag(9, WireType.LengthDelimited).string(message.contains);
|
|
3375
|
+
/* repeated string in = 10; */
|
|
3376
|
+
for (let i = 0; i < message.in.length; i++)
|
|
3377
|
+
writer.tag(10, WireType.LengthDelimited).string(message.in[i]);
|
|
3378
|
+
/* repeated string not_in = 11; */
|
|
3379
|
+
for (let i = 0; i < message.notIn.length; i++)
|
|
3380
|
+
writer.tag(11, WireType.LengthDelimited).string(message.notIn[i]);
|
|
3381
|
+
/* bool email = 12; */
|
|
3382
|
+
if (message.wellKnown.oneofKind === "email")
|
|
3383
|
+
writer.tag(12, WireType.Varint).bool(message.wellKnown.email);
|
|
3384
|
+
/* bool hostname = 13; */
|
|
3385
|
+
if (message.wellKnown.oneofKind === "hostname")
|
|
3386
|
+
writer.tag(13, WireType.Varint).bool(message.wellKnown.hostname);
|
|
3387
|
+
/* bool ip = 14; */
|
|
3388
|
+
if (message.wellKnown.oneofKind === "ip")
|
|
3389
|
+
writer.tag(14, WireType.Varint).bool(message.wellKnown.ip);
|
|
3390
|
+
/* bool ipv4 = 15; */
|
|
3391
|
+
if (message.wellKnown.oneofKind === "ipv4")
|
|
3392
|
+
writer.tag(15, WireType.Varint).bool(message.wellKnown.ipv4);
|
|
3393
|
+
/* bool ipv6 = 16; */
|
|
3394
|
+
if (message.wellKnown.oneofKind === "ipv6")
|
|
3395
|
+
writer.tag(16, WireType.Varint).bool(message.wellKnown.ipv6);
|
|
3396
|
+
/* bool uri = 17; */
|
|
3397
|
+
if (message.wellKnown.oneofKind === "uri")
|
|
3398
|
+
writer.tag(17, WireType.Varint).bool(message.wellKnown.uri);
|
|
3399
|
+
/* bool uri_ref = 18; */
|
|
3400
|
+
if (message.wellKnown.oneofKind === "uriRef")
|
|
3401
|
+
writer.tag(18, WireType.Varint).bool(message.wellKnown.uriRef);
|
|
3402
|
+
/* optional uint64 len = 19; */
|
|
3403
|
+
if (message.len !== undefined)
|
|
3404
|
+
writer.tag(19, WireType.Varint).uint64(message.len);
|
|
3405
|
+
/* optional uint64 len_bytes = 20; */
|
|
3406
|
+
if (message.lenBytes !== undefined)
|
|
3407
|
+
writer.tag(20, WireType.Varint).uint64(message.lenBytes);
|
|
3408
|
+
/* bool address = 21; */
|
|
3409
|
+
if (message.wellKnown.oneofKind === "address")
|
|
3410
|
+
writer.tag(21, WireType.Varint).bool(message.wellKnown.address);
|
|
3411
|
+
/* bool uuid = 22; */
|
|
3412
|
+
if (message.wellKnown.oneofKind === "uuid")
|
|
3413
|
+
writer.tag(22, WireType.Varint).bool(message.wellKnown.uuid);
|
|
3414
|
+
/* optional string not_contains = 23; */
|
|
3415
|
+
if (message.notContains !== undefined)
|
|
3416
|
+
writer.tag(23, WireType.LengthDelimited).string(message.notContains);
|
|
3417
|
+
/* validate.KnownRegex well_known_regex = 24; */
|
|
3418
|
+
if (message.wellKnown.oneofKind === "wellKnownRegex")
|
|
3419
|
+
writer.tag(24, WireType.Varint).int32(message.wellKnown.wellKnownRegex);
|
|
3420
|
+
/* optional bool strict = 25 [default = true]; */
|
|
3421
|
+
if (message.strict !== undefined)
|
|
3422
|
+
writer.tag(25, WireType.Varint).bool(message.strict);
|
|
3423
|
+
/* optional bool ignore_empty = 26; */
|
|
3424
|
+
if (message.ignoreEmpty !== undefined)
|
|
3425
|
+
writer.tag(26, WireType.Varint).bool(message.ignoreEmpty);
|
|
3426
|
+
let u = options.writeUnknownFields;
|
|
3427
|
+
if (u !== false)
|
|
3428
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3429
|
+
return writer;
|
|
3430
|
+
}
|
|
3431
|
+
}
|
|
3432
|
+
/**
|
|
3433
|
+
* @generated MessageType for protobuf message validate.StringRules
|
|
3434
|
+
*/
|
|
3435
|
+
export const StringRules = new StringRules$Type();
|
|
3436
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3437
|
+
class BytesRules$Type extends MessageType<BytesRules> {
|
|
3438
|
+
constructor() {
|
|
3439
|
+
super("validate.BytesRules", [
|
|
3440
|
+
{ no: 1, name: "const", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
|
|
3441
|
+
{ no: 13, name: "len", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3442
|
+
{ no: 2, name: "min_len", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3443
|
+
{ no: 3, name: "max_len", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3444
|
+
{ no: 4, name: "pattern", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3445
|
+
{ no: 5, name: "prefix", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
|
|
3446
|
+
{ no: 6, name: "suffix", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
|
|
3447
|
+
{ no: 7, name: "contains", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
|
|
3448
|
+
{ no: 8, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/ },
|
|
3449
|
+
{ no: 9, name: "not_in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/ },
|
|
3450
|
+
{ no: 10, name: "ip", kind: "scalar", oneof: "wellKnown", T: 8 /*ScalarType.BOOL*/ },
|
|
3451
|
+
{ no: 11, name: "ipv4", kind: "scalar", oneof: "wellKnown", T: 8 /*ScalarType.BOOL*/ },
|
|
3452
|
+
{ no: 12, name: "ipv6", kind: "scalar", oneof: "wellKnown", T: 8 /*ScalarType.BOOL*/ },
|
|
3453
|
+
{ no: 14, name: "ignore_empty", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
3454
|
+
]);
|
|
3455
|
+
}
|
|
3456
|
+
create(value?: PartialMessage<BytesRules>): BytesRules {
|
|
3457
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3458
|
+
message.in = [];
|
|
3459
|
+
message.notIn = [];
|
|
3460
|
+
message.wellKnown = { oneofKind: undefined };
|
|
3461
|
+
if (value !== undefined)
|
|
3462
|
+
reflectionMergePartial<BytesRules>(this, message, value);
|
|
3463
|
+
return message;
|
|
3464
|
+
}
|
|
3465
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BytesRules): BytesRules {
|
|
3466
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3467
|
+
while (reader.pos < end) {
|
|
3468
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3469
|
+
switch (fieldNo) {
|
|
3470
|
+
case /* optional bytes const */ 1:
|
|
3471
|
+
message.const = reader.bytes();
|
|
3472
|
+
break;
|
|
3473
|
+
case /* optional uint64 len */ 13:
|
|
3474
|
+
message.len = reader.uint64().toBigInt();
|
|
3475
|
+
break;
|
|
3476
|
+
case /* optional uint64 min_len */ 2:
|
|
3477
|
+
message.minLen = reader.uint64().toBigInt();
|
|
3478
|
+
break;
|
|
3479
|
+
case /* optional uint64 max_len */ 3:
|
|
3480
|
+
message.maxLen = reader.uint64().toBigInt();
|
|
3481
|
+
break;
|
|
3482
|
+
case /* optional string pattern */ 4:
|
|
3483
|
+
message.pattern = reader.string();
|
|
3484
|
+
break;
|
|
3485
|
+
case /* optional bytes prefix */ 5:
|
|
3486
|
+
message.prefix = reader.bytes();
|
|
3487
|
+
break;
|
|
3488
|
+
case /* optional bytes suffix */ 6:
|
|
3489
|
+
message.suffix = reader.bytes();
|
|
3490
|
+
break;
|
|
3491
|
+
case /* optional bytes contains */ 7:
|
|
3492
|
+
message.contains = reader.bytes();
|
|
3493
|
+
break;
|
|
3494
|
+
case /* repeated bytes in */ 8:
|
|
3495
|
+
message.in.push(reader.bytes());
|
|
3496
|
+
break;
|
|
3497
|
+
case /* repeated bytes not_in */ 9:
|
|
3498
|
+
message.notIn.push(reader.bytes());
|
|
3499
|
+
break;
|
|
3500
|
+
case /* bool ip */ 10:
|
|
3501
|
+
message.wellKnown = {
|
|
3502
|
+
oneofKind: "ip",
|
|
3503
|
+
ip: reader.bool()
|
|
3504
|
+
};
|
|
3505
|
+
break;
|
|
3506
|
+
case /* bool ipv4 */ 11:
|
|
3507
|
+
message.wellKnown = {
|
|
3508
|
+
oneofKind: "ipv4",
|
|
3509
|
+
ipv4: reader.bool()
|
|
3510
|
+
};
|
|
3511
|
+
break;
|
|
3512
|
+
case /* bool ipv6 */ 12:
|
|
3513
|
+
message.wellKnown = {
|
|
3514
|
+
oneofKind: "ipv6",
|
|
3515
|
+
ipv6: reader.bool()
|
|
3516
|
+
};
|
|
3517
|
+
break;
|
|
3518
|
+
case /* optional bool ignore_empty */ 14:
|
|
3519
|
+
message.ignoreEmpty = reader.bool();
|
|
3520
|
+
break;
|
|
3521
|
+
default:
|
|
3522
|
+
let u = options.readUnknownField;
|
|
3523
|
+
if (u === "throw")
|
|
3524
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3525
|
+
let d = reader.skip(wireType);
|
|
3526
|
+
if (u !== false)
|
|
3527
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3528
|
+
}
|
|
3529
|
+
}
|
|
3530
|
+
return message;
|
|
3531
|
+
}
|
|
3532
|
+
internalBinaryWrite(message: BytesRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3533
|
+
/* optional bytes const = 1; */
|
|
3534
|
+
if (message.const !== undefined)
|
|
3535
|
+
writer.tag(1, WireType.LengthDelimited).bytes(message.const);
|
|
3536
|
+
/* optional uint64 min_len = 2; */
|
|
3537
|
+
if (message.minLen !== undefined)
|
|
3538
|
+
writer.tag(2, WireType.Varint).uint64(message.minLen);
|
|
3539
|
+
/* optional uint64 max_len = 3; */
|
|
3540
|
+
if (message.maxLen !== undefined)
|
|
3541
|
+
writer.tag(3, WireType.Varint).uint64(message.maxLen);
|
|
3542
|
+
/* optional string pattern = 4; */
|
|
3543
|
+
if (message.pattern !== undefined)
|
|
3544
|
+
writer.tag(4, WireType.LengthDelimited).string(message.pattern);
|
|
3545
|
+
/* optional bytes prefix = 5; */
|
|
3546
|
+
if (message.prefix !== undefined)
|
|
3547
|
+
writer.tag(5, WireType.LengthDelimited).bytes(message.prefix);
|
|
3548
|
+
/* optional bytes suffix = 6; */
|
|
3549
|
+
if (message.suffix !== undefined)
|
|
3550
|
+
writer.tag(6, WireType.LengthDelimited).bytes(message.suffix);
|
|
3551
|
+
/* optional bytes contains = 7; */
|
|
3552
|
+
if (message.contains !== undefined)
|
|
3553
|
+
writer.tag(7, WireType.LengthDelimited).bytes(message.contains);
|
|
3554
|
+
/* repeated bytes in = 8; */
|
|
3555
|
+
for (let i = 0; i < message.in.length; i++)
|
|
3556
|
+
writer.tag(8, WireType.LengthDelimited).bytes(message.in[i]);
|
|
3557
|
+
/* repeated bytes not_in = 9; */
|
|
3558
|
+
for (let i = 0; i < message.notIn.length; i++)
|
|
3559
|
+
writer.tag(9, WireType.LengthDelimited).bytes(message.notIn[i]);
|
|
3560
|
+
/* bool ip = 10; */
|
|
3561
|
+
if (message.wellKnown.oneofKind === "ip")
|
|
3562
|
+
writer.tag(10, WireType.Varint).bool(message.wellKnown.ip);
|
|
3563
|
+
/* bool ipv4 = 11; */
|
|
3564
|
+
if (message.wellKnown.oneofKind === "ipv4")
|
|
3565
|
+
writer.tag(11, WireType.Varint).bool(message.wellKnown.ipv4);
|
|
3566
|
+
/* bool ipv6 = 12; */
|
|
3567
|
+
if (message.wellKnown.oneofKind === "ipv6")
|
|
3568
|
+
writer.tag(12, WireType.Varint).bool(message.wellKnown.ipv6);
|
|
3569
|
+
/* optional uint64 len = 13; */
|
|
3570
|
+
if (message.len !== undefined)
|
|
3571
|
+
writer.tag(13, WireType.Varint).uint64(message.len);
|
|
3572
|
+
/* optional bool ignore_empty = 14; */
|
|
3573
|
+
if (message.ignoreEmpty !== undefined)
|
|
3574
|
+
writer.tag(14, WireType.Varint).bool(message.ignoreEmpty);
|
|
3575
|
+
let u = options.writeUnknownFields;
|
|
3576
|
+
if (u !== false)
|
|
3577
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3578
|
+
return writer;
|
|
3579
|
+
}
|
|
3580
|
+
}
|
|
3581
|
+
/**
|
|
3582
|
+
* @generated MessageType for protobuf message validate.BytesRules
|
|
3583
|
+
*/
|
|
3584
|
+
export const BytesRules = new BytesRules$Type();
|
|
3585
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3586
|
+
class EnumRules$Type extends MessageType<EnumRules> {
|
|
3587
|
+
constructor() {
|
|
3588
|
+
super("validate.EnumRules", [
|
|
3589
|
+
{ no: 1, name: "const", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
3590
|
+
{ no: 2, name: "defined_only", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
3591
|
+
{ no: 3, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 5 /*ScalarType.INT32*/ },
|
|
3592
|
+
{ no: 4, name: "not_in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 5 /*ScalarType.INT32*/ }
|
|
3593
|
+
]);
|
|
3594
|
+
}
|
|
3595
|
+
create(value?: PartialMessage<EnumRules>): EnumRules {
|
|
3596
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3597
|
+
message.in = [];
|
|
3598
|
+
message.notIn = [];
|
|
3599
|
+
if (value !== undefined)
|
|
3600
|
+
reflectionMergePartial<EnumRules>(this, message, value);
|
|
3601
|
+
return message;
|
|
3602
|
+
}
|
|
3603
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EnumRules): EnumRules {
|
|
3604
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3605
|
+
while (reader.pos < end) {
|
|
3606
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3607
|
+
switch (fieldNo) {
|
|
3608
|
+
case /* optional int32 const */ 1:
|
|
3609
|
+
message.const = reader.int32();
|
|
3610
|
+
break;
|
|
3611
|
+
case /* optional bool defined_only */ 2:
|
|
3612
|
+
message.definedOnly = reader.bool();
|
|
3613
|
+
break;
|
|
3614
|
+
case /* repeated int32 in */ 3:
|
|
3615
|
+
if (wireType === WireType.LengthDelimited)
|
|
3616
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
3617
|
+
message.in.push(reader.int32());
|
|
3618
|
+
else
|
|
3619
|
+
message.in.push(reader.int32());
|
|
3620
|
+
break;
|
|
3621
|
+
case /* repeated int32 not_in */ 4:
|
|
3622
|
+
if (wireType === WireType.LengthDelimited)
|
|
3623
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
3624
|
+
message.notIn.push(reader.int32());
|
|
3625
|
+
else
|
|
3626
|
+
message.notIn.push(reader.int32());
|
|
3627
|
+
break;
|
|
3628
|
+
default:
|
|
3629
|
+
let u = options.readUnknownField;
|
|
3630
|
+
if (u === "throw")
|
|
3631
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3632
|
+
let d = reader.skip(wireType);
|
|
3633
|
+
if (u !== false)
|
|
3634
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3635
|
+
}
|
|
3636
|
+
}
|
|
3637
|
+
return message;
|
|
3638
|
+
}
|
|
3639
|
+
internalBinaryWrite(message: EnumRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3640
|
+
/* optional int32 const = 1; */
|
|
3641
|
+
if (message.const !== undefined)
|
|
3642
|
+
writer.tag(1, WireType.Varint).int32(message.const);
|
|
3643
|
+
/* optional bool defined_only = 2; */
|
|
3644
|
+
if (message.definedOnly !== undefined)
|
|
3645
|
+
writer.tag(2, WireType.Varint).bool(message.definedOnly);
|
|
3646
|
+
/* repeated int32 in = 3; */
|
|
3647
|
+
for (let i = 0; i < message.in.length; i++)
|
|
3648
|
+
writer.tag(3, WireType.Varint).int32(message.in[i]);
|
|
3649
|
+
/* repeated int32 not_in = 4; */
|
|
3650
|
+
for (let i = 0; i < message.notIn.length; i++)
|
|
3651
|
+
writer.tag(4, WireType.Varint).int32(message.notIn[i]);
|
|
3652
|
+
let u = options.writeUnknownFields;
|
|
3653
|
+
if (u !== false)
|
|
3654
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3655
|
+
return writer;
|
|
3656
|
+
}
|
|
3657
|
+
}
|
|
3658
|
+
/**
|
|
3659
|
+
* @generated MessageType for protobuf message validate.EnumRules
|
|
3660
|
+
*/
|
|
3661
|
+
export const EnumRules = new EnumRules$Type();
|
|
3662
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3663
|
+
class MessageRules$Type extends MessageType<MessageRules> {
|
|
3664
|
+
constructor() {
|
|
3665
|
+
super("validate.MessageRules", [
|
|
3666
|
+
{ no: 1, name: "skip", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
3667
|
+
{ no: 2, name: "required", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
3668
|
+
]);
|
|
3669
|
+
}
|
|
3670
|
+
create(value?: PartialMessage<MessageRules>): MessageRules {
|
|
3671
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3672
|
+
if (value !== undefined)
|
|
3673
|
+
reflectionMergePartial<MessageRules>(this, message, value);
|
|
3674
|
+
return message;
|
|
3675
|
+
}
|
|
3676
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MessageRules): MessageRules {
|
|
3677
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3678
|
+
while (reader.pos < end) {
|
|
3679
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3680
|
+
switch (fieldNo) {
|
|
3681
|
+
case /* optional bool skip */ 1:
|
|
3682
|
+
message.skip = reader.bool();
|
|
3683
|
+
break;
|
|
3684
|
+
case /* optional bool required */ 2:
|
|
3685
|
+
message.required = reader.bool();
|
|
3686
|
+
break;
|
|
3687
|
+
default:
|
|
3688
|
+
let u = options.readUnknownField;
|
|
3689
|
+
if (u === "throw")
|
|
3690
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3691
|
+
let d = reader.skip(wireType);
|
|
3692
|
+
if (u !== false)
|
|
3693
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3694
|
+
}
|
|
3695
|
+
}
|
|
3696
|
+
return message;
|
|
3697
|
+
}
|
|
3698
|
+
internalBinaryWrite(message: MessageRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3699
|
+
/* optional bool skip = 1; */
|
|
3700
|
+
if (message.skip !== undefined)
|
|
3701
|
+
writer.tag(1, WireType.Varint).bool(message.skip);
|
|
3702
|
+
/* optional bool required = 2; */
|
|
3703
|
+
if (message.required !== undefined)
|
|
3704
|
+
writer.tag(2, WireType.Varint).bool(message.required);
|
|
3705
|
+
let u = options.writeUnknownFields;
|
|
3706
|
+
if (u !== false)
|
|
3707
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3708
|
+
return writer;
|
|
3709
|
+
}
|
|
3710
|
+
}
|
|
3711
|
+
/**
|
|
3712
|
+
* @generated MessageType for protobuf message validate.MessageRules
|
|
3713
|
+
*/
|
|
3714
|
+
export const MessageRules = new MessageRules$Type();
|
|
3715
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3716
|
+
class RepeatedRules$Type extends MessageType<RepeatedRules> {
|
|
3717
|
+
constructor() {
|
|
3718
|
+
super("validate.RepeatedRules", [
|
|
3719
|
+
{ no: 1, name: "min_items", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3720
|
+
{ no: 2, name: "max_items", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3721
|
+
{ no: 3, name: "unique", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
3722
|
+
{ no: 4, name: "items", kind: "message", T: () => FieldRules },
|
|
3723
|
+
{ no: 5, name: "ignore_empty", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
3724
|
+
]);
|
|
3725
|
+
}
|
|
3726
|
+
create(value?: PartialMessage<RepeatedRules>): RepeatedRules {
|
|
3727
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3728
|
+
if (value !== undefined)
|
|
3729
|
+
reflectionMergePartial<RepeatedRules>(this, message, value);
|
|
3730
|
+
return message;
|
|
3731
|
+
}
|
|
3732
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RepeatedRules): RepeatedRules {
|
|
3733
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3734
|
+
while (reader.pos < end) {
|
|
3735
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3736
|
+
switch (fieldNo) {
|
|
3737
|
+
case /* optional uint64 min_items */ 1:
|
|
3738
|
+
message.minItems = reader.uint64().toBigInt();
|
|
3739
|
+
break;
|
|
3740
|
+
case /* optional uint64 max_items */ 2:
|
|
3741
|
+
message.maxItems = reader.uint64().toBigInt();
|
|
3742
|
+
break;
|
|
3743
|
+
case /* optional bool unique */ 3:
|
|
3744
|
+
message.unique = reader.bool();
|
|
3745
|
+
break;
|
|
3746
|
+
case /* optional validate.FieldRules items */ 4:
|
|
3747
|
+
message.items = FieldRules.internalBinaryRead(reader, reader.uint32(), options, message.items);
|
|
3748
|
+
break;
|
|
3749
|
+
case /* optional bool ignore_empty */ 5:
|
|
3750
|
+
message.ignoreEmpty = reader.bool();
|
|
3751
|
+
break;
|
|
3752
|
+
default:
|
|
3753
|
+
let u = options.readUnknownField;
|
|
3754
|
+
if (u === "throw")
|
|
3755
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3756
|
+
let d = reader.skip(wireType);
|
|
3757
|
+
if (u !== false)
|
|
3758
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3759
|
+
}
|
|
3760
|
+
}
|
|
3761
|
+
return message;
|
|
3762
|
+
}
|
|
3763
|
+
internalBinaryWrite(message: RepeatedRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3764
|
+
/* optional uint64 min_items = 1; */
|
|
3765
|
+
if (message.minItems !== undefined)
|
|
3766
|
+
writer.tag(1, WireType.Varint).uint64(message.minItems);
|
|
3767
|
+
/* optional uint64 max_items = 2; */
|
|
3768
|
+
if (message.maxItems !== undefined)
|
|
3769
|
+
writer.tag(2, WireType.Varint).uint64(message.maxItems);
|
|
3770
|
+
/* optional bool unique = 3; */
|
|
3771
|
+
if (message.unique !== undefined)
|
|
3772
|
+
writer.tag(3, WireType.Varint).bool(message.unique);
|
|
3773
|
+
/* optional validate.FieldRules items = 4; */
|
|
3774
|
+
if (message.items)
|
|
3775
|
+
FieldRules.internalBinaryWrite(message.items, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
3776
|
+
/* optional bool ignore_empty = 5; */
|
|
3777
|
+
if (message.ignoreEmpty !== undefined)
|
|
3778
|
+
writer.tag(5, WireType.Varint).bool(message.ignoreEmpty);
|
|
3779
|
+
let u = options.writeUnknownFields;
|
|
3780
|
+
if (u !== false)
|
|
3781
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3782
|
+
return writer;
|
|
3783
|
+
}
|
|
3784
|
+
}
|
|
3785
|
+
/**
|
|
3786
|
+
* @generated MessageType for protobuf message validate.RepeatedRules
|
|
3787
|
+
*/
|
|
3788
|
+
export const RepeatedRules = new RepeatedRules$Type();
|
|
3789
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3790
|
+
class MapRules$Type extends MessageType<MapRules> {
|
|
3791
|
+
constructor() {
|
|
3792
|
+
super("validate.MapRules", [
|
|
3793
|
+
{ no: 1, name: "min_pairs", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3794
|
+
{ no: 2, name: "max_pairs", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3795
|
+
{ no: 3, name: "no_sparse", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
3796
|
+
{ no: 4, name: "keys", kind: "message", T: () => FieldRules },
|
|
3797
|
+
{ no: 5, name: "values", kind: "message", T: () => FieldRules },
|
|
3798
|
+
{ no: 6, name: "ignore_empty", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
3799
|
+
]);
|
|
3800
|
+
}
|
|
3801
|
+
create(value?: PartialMessage<MapRules>): MapRules {
|
|
3802
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3803
|
+
if (value !== undefined)
|
|
3804
|
+
reflectionMergePartial<MapRules>(this, message, value);
|
|
3805
|
+
return message;
|
|
3806
|
+
}
|
|
3807
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MapRules): MapRules {
|
|
3808
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3809
|
+
while (reader.pos < end) {
|
|
3810
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3811
|
+
switch (fieldNo) {
|
|
3812
|
+
case /* optional uint64 min_pairs */ 1:
|
|
3813
|
+
message.minPairs = reader.uint64().toBigInt();
|
|
3814
|
+
break;
|
|
3815
|
+
case /* optional uint64 max_pairs */ 2:
|
|
3816
|
+
message.maxPairs = reader.uint64().toBigInt();
|
|
3817
|
+
break;
|
|
3818
|
+
case /* optional bool no_sparse */ 3:
|
|
3819
|
+
message.noSparse = reader.bool();
|
|
3820
|
+
break;
|
|
3821
|
+
case /* optional validate.FieldRules keys */ 4:
|
|
3822
|
+
message.keys = FieldRules.internalBinaryRead(reader, reader.uint32(), options, message.keys);
|
|
3823
|
+
break;
|
|
3824
|
+
case /* optional validate.FieldRules values */ 5:
|
|
3825
|
+
message.values = FieldRules.internalBinaryRead(reader, reader.uint32(), options, message.values);
|
|
3826
|
+
break;
|
|
3827
|
+
case /* optional bool ignore_empty */ 6:
|
|
3828
|
+
message.ignoreEmpty = reader.bool();
|
|
3829
|
+
break;
|
|
3830
|
+
default:
|
|
3831
|
+
let u = options.readUnknownField;
|
|
3832
|
+
if (u === "throw")
|
|
3833
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3834
|
+
let d = reader.skip(wireType);
|
|
3835
|
+
if (u !== false)
|
|
3836
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3837
|
+
}
|
|
3838
|
+
}
|
|
3839
|
+
return message;
|
|
3840
|
+
}
|
|
3841
|
+
internalBinaryWrite(message: MapRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3842
|
+
/* optional uint64 min_pairs = 1; */
|
|
3843
|
+
if (message.minPairs !== undefined)
|
|
3844
|
+
writer.tag(1, WireType.Varint).uint64(message.minPairs);
|
|
3845
|
+
/* optional uint64 max_pairs = 2; */
|
|
3846
|
+
if (message.maxPairs !== undefined)
|
|
3847
|
+
writer.tag(2, WireType.Varint).uint64(message.maxPairs);
|
|
3848
|
+
/* optional bool no_sparse = 3; */
|
|
3849
|
+
if (message.noSparse !== undefined)
|
|
3850
|
+
writer.tag(3, WireType.Varint).bool(message.noSparse);
|
|
3851
|
+
/* optional validate.FieldRules keys = 4; */
|
|
3852
|
+
if (message.keys)
|
|
3853
|
+
FieldRules.internalBinaryWrite(message.keys, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
3854
|
+
/* optional validate.FieldRules values = 5; */
|
|
3855
|
+
if (message.values)
|
|
3856
|
+
FieldRules.internalBinaryWrite(message.values, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
3857
|
+
/* optional bool ignore_empty = 6; */
|
|
3858
|
+
if (message.ignoreEmpty !== undefined)
|
|
3859
|
+
writer.tag(6, WireType.Varint).bool(message.ignoreEmpty);
|
|
3860
|
+
let u = options.writeUnknownFields;
|
|
3861
|
+
if (u !== false)
|
|
3862
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3863
|
+
return writer;
|
|
3864
|
+
}
|
|
3865
|
+
}
|
|
3866
|
+
/**
|
|
3867
|
+
* @generated MessageType for protobuf message validate.MapRules
|
|
3868
|
+
*/
|
|
3869
|
+
export const MapRules = new MapRules$Type();
|
|
3870
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3871
|
+
class AnyRules$Type extends MessageType<AnyRules> {
|
|
3872
|
+
constructor() {
|
|
3873
|
+
super("validate.AnyRules", [
|
|
3874
|
+
{ no: 1, name: "required", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
3875
|
+
{ no: 2, name: "in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
3876
|
+
{ no: 3, name: "not_in", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
3877
|
+
]);
|
|
3878
|
+
}
|
|
3879
|
+
create(value?: PartialMessage<AnyRules>): AnyRules {
|
|
3880
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3881
|
+
message.in = [];
|
|
3882
|
+
message.notIn = [];
|
|
3883
|
+
if (value !== undefined)
|
|
3884
|
+
reflectionMergePartial<AnyRules>(this, message, value);
|
|
3885
|
+
return message;
|
|
3886
|
+
}
|
|
3887
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AnyRules): AnyRules {
|
|
3888
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3889
|
+
while (reader.pos < end) {
|
|
3890
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3891
|
+
switch (fieldNo) {
|
|
3892
|
+
case /* optional bool required */ 1:
|
|
3893
|
+
message.required = reader.bool();
|
|
3894
|
+
break;
|
|
3895
|
+
case /* repeated string in */ 2:
|
|
3896
|
+
message.in.push(reader.string());
|
|
3897
|
+
break;
|
|
3898
|
+
case /* repeated string not_in */ 3:
|
|
3899
|
+
message.notIn.push(reader.string());
|
|
3900
|
+
break;
|
|
3901
|
+
default:
|
|
3902
|
+
let u = options.readUnknownField;
|
|
3903
|
+
if (u === "throw")
|
|
3904
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3905
|
+
let d = reader.skip(wireType);
|
|
3906
|
+
if (u !== false)
|
|
3907
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3908
|
+
}
|
|
3909
|
+
}
|
|
3910
|
+
return message;
|
|
3911
|
+
}
|
|
3912
|
+
internalBinaryWrite(message: AnyRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3913
|
+
/* optional bool required = 1; */
|
|
3914
|
+
if (message.required !== undefined)
|
|
3915
|
+
writer.tag(1, WireType.Varint).bool(message.required);
|
|
3916
|
+
/* repeated string in = 2; */
|
|
3917
|
+
for (let i = 0; i < message.in.length; i++)
|
|
3918
|
+
writer.tag(2, WireType.LengthDelimited).string(message.in[i]);
|
|
3919
|
+
/* repeated string not_in = 3; */
|
|
3920
|
+
for (let i = 0; i < message.notIn.length; i++)
|
|
3921
|
+
writer.tag(3, WireType.LengthDelimited).string(message.notIn[i]);
|
|
3922
|
+
let u = options.writeUnknownFields;
|
|
3923
|
+
if (u !== false)
|
|
3924
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3925
|
+
return writer;
|
|
3926
|
+
}
|
|
3927
|
+
}
|
|
3928
|
+
/**
|
|
3929
|
+
* @generated MessageType for protobuf message validate.AnyRules
|
|
3930
|
+
*/
|
|
3931
|
+
export const AnyRules = new AnyRules$Type();
|
|
3932
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3933
|
+
class DurationRules$Type extends MessageType<DurationRules> {
|
|
3934
|
+
constructor() {
|
|
3935
|
+
super("validate.DurationRules", [
|
|
3936
|
+
{ no: 1, name: "required", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
3937
|
+
{ no: 2, name: "const", kind: "message", T: () => Duration },
|
|
3938
|
+
{ no: 3, name: "lt", kind: "message", T: () => Duration },
|
|
3939
|
+
{ no: 4, name: "lte", kind: "message", T: () => Duration },
|
|
3940
|
+
{ no: 5, name: "gt", kind: "message", T: () => Duration },
|
|
3941
|
+
{ no: 6, name: "gte", kind: "message", T: () => Duration },
|
|
3942
|
+
{ no: 7, name: "in", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Duration },
|
|
3943
|
+
{ no: 8, name: "not_in", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Duration }
|
|
3944
|
+
]);
|
|
3945
|
+
}
|
|
3946
|
+
create(value?: PartialMessage<DurationRules>): DurationRules {
|
|
3947
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3948
|
+
message.in = [];
|
|
3949
|
+
message.notIn = [];
|
|
3950
|
+
if (value !== undefined)
|
|
3951
|
+
reflectionMergePartial<DurationRules>(this, message, value);
|
|
3952
|
+
return message;
|
|
3953
|
+
}
|
|
3954
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DurationRules): DurationRules {
|
|
3955
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3956
|
+
while (reader.pos < end) {
|
|
3957
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3958
|
+
switch (fieldNo) {
|
|
3959
|
+
case /* optional bool required */ 1:
|
|
3960
|
+
message.required = reader.bool();
|
|
3961
|
+
break;
|
|
3962
|
+
case /* optional google.protobuf.Duration const */ 2:
|
|
3963
|
+
message.const = Duration.internalBinaryRead(reader, reader.uint32(), options, message.const);
|
|
3964
|
+
break;
|
|
3965
|
+
case /* optional google.protobuf.Duration lt */ 3:
|
|
3966
|
+
message.lt = Duration.internalBinaryRead(reader, reader.uint32(), options, message.lt);
|
|
3967
|
+
break;
|
|
3968
|
+
case /* optional google.protobuf.Duration lte */ 4:
|
|
3969
|
+
message.lte = Duration.internalBinaryRead(reader, reader.uint32(), options, message.lte);
|
|
3970
|
+
break;
|
|
3971
|
+
case /* optional google.protobuf.Duration gt */ 5:
|
|
3972
|
+
message.gt = Duration.internalBinaryRead(reader, reader.uint32(), options, message.gt);
|
|
3973
|
+
break;
|
|
3974
|
+
case /* optional google.protobuf.Duration gte */ 6:
|
|
3975
|
+
message.gte = Duration.internalBinaryRead(reader, reader.uint32(), options, message.gte);
|
|
3976
|
+
break;
|
|
3977
|
+
case /* repeated google.protobuf.Duration in */ 7:
|
|
3978
|
+
message.in.push(Duration.internalBinaryRead(reader, reader.uint32(), options));
|
|
3979
|
+
break;
|
|
3980
|
+
case /* repeated google.protobuf.Duration not_in */ 8:
|
|
3981
|
+
message.notIn.push(Duration.internalBinaryRead(reader, reader.uint32(), options));
|
|
3982
|
+
break;
|
|
3983
|
+
default:
|
|
3984
|
+
let u = options.readUnknownField;
|
|
3985
|
+
if (u === "throw")
|
|
3986
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3987
|
+
let d = reader.skip(wireType);
|
|
3988
|
+
if (u !== false)
|
|
3989
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3990
|
+
}
|
|
3991
|
+
}
|
|
3992
|
+
return message;
|
|
3993
|
+
}
|
|
3994
|
+
internalBinaryWrite(message: DurationRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3995
|
+
/* optional bool required = 1; */
|
|
3996
|
+
if (message.required !== undefined)
|
|
3997
|
+
writer.tag(1, WireType.Varint).bool(message.required);
|
|
3998
|
+
/* optional google.protobuf.Duration const = 2; */
|
|
3999
|
+
if (message.const)
|
|
4000
|
+
Duration.internalBinaryWrite(message.const, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
4001
|
+
/* optional google.protobuf.Duration lt = 3; */
|
|
4002
|
+
if (message.lt)
|
|
4003
|
+
Duration.internalBinaryWrite(message.lt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
4004
|
+
/* optional google.protobuf.Duration lte = 4; */
|
|
4005
|
+
if (message.lte)
|
|
4006
|
+
Duration.internalBinaryWrite(message.lte, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
4007
|
+
/* optional google.protobuf.Duration gt = 5; */
|
|
4008
|
+
if (message.gt)
|
|
4009
|
+
Duration.internalBinaryWrite(message.gt, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
4010
|
+
/* optional google.protobuf.Duration gte = 6; */
|
|
4011
|
+
if (message.gte)
|
|
4012
|
+
Duration.internalBinaryWrite(message.gte, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
4013
|
+
/* repeated google.protobuf.Duration in = 7; */
|
|
4014
|
+
for (let i = 0; i < message.in.length; i++)
|
|
4015
|
+
Duration.internalBinaryWrite(message.in[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
4016
|
+
/* repeated google.protobuf.Duration not_in = 8; */
|
|
4017
|
+
for (let i = 0; i < message.notIn.length; i++)
|
|
4018
|
+
Duration.internalBinaryWrite(message.notIn[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
4019
|
+
let u = options.writeUnknownFields;
|
|
4020
|
+
if (u !== false)
|
|
4021
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4022
|
+
return writer;
|
|
4023
|
+
}
|
|
4024
|
+
}
|
|
4025
|
+
/**
|
|
4026
|
+
* @generated MessageType for protobuf message validate.DurationRules
|
|
4027
|
+
*/
|
|
4028
|
+
export const DurationRules = new DurationRules$Type();
|
|
4029
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
4030
|
+
class TimestampRules$Type extends MessageType<TimestampRules> {
|
|
4031
|
+
constructor() {
|
|
4032
|
+
super("validate.TimestampRules", [
|
|
4033
|
+
{ no: 1, name: "required", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
4034
|
+
{ no: 2, name: "const", kind: "message", T: () => Timestamp },
|
|
4035
|
+
{ no: 3, name: "lt", kind: "message", T: () => Timestamp },
|
|
4036
|
+
{ no: 4, name: "lte", kind: "message", T: () => Timestamp },
|
|
4037
|
+
{ no: 5, name: "gt", kind: "message", T: () => Timestamp },
|
|
4038
|
+
{ no: 6, name: "gte", kind: "message", T: () => Timestamp },
|
|
4039
|
+
{ no: 7, name: "lt_now", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
4040
|
+
{ no: 8, name: "gt_now", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
4041
|
+
{ no: 9, name: "within", kind: "message", T: () => Duration }
|
|
4042
|
+
]);
|
|
4043
|
+
}
|
|
4044
|
+
create(value?: PartialMessage<TimestampRules>): TimestampRules {
|
|
4045
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
4046
|
+
if (value !== undefined)
|
|
4047
|
+
reflectionMergePartial<TimestampRules>(this, message, value);
|
|
4048
|
+
return message;
|
|
4049
|
+
}
|
|
4050
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TimestampRules): TimestampRules {
|
|
4051
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
4052
|
+
while (reader.pos < end) {
|
|
4053
|
+
let [fieldNo, wireType] = reader.tag();
|
|
4054
|
+
switch (fieldNo) {
|
|
4055
|
+
case /* optional bool required */ 1:
|
|
4056
|
+
message.required = reader.bool();
|
|
4057
|
+
break;
|
|
4058
|
+
case /* optional google.protobuf.Timestamp const */ 2:
|
|
4059
|
+
message.const = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.const);
|
|
4060
|
+
break;
|
|
4061
|
+
case /* optional google.protobuf.Timestamp lt */ 3:
|
|
4062
|
+
message.lt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lt);
|
|
4063
|
+
break;
|
|
4064
|
+
case /* optional google.protobuf.Timestamp lte */ 4:
|
|
4065
|
+
message.lte = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lte);
|
|
4066
|
+
break;
|
|
4067
|
+
case /* optional google.protobuf.Timestamp gt */ 5:
|
|
4068
|
+
message.gt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.gt);
|
|
4069
|
+
break;
|
|
4070
|
+
case /* optional google.protobuf.Timestamp gte */ 6:
|
|
4071
|
+
message.gte = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.gte);
|
|
4072
|
+
break;
|
|
4073
|
+
case /* optional bool lt_now */ 7:
|
|
4074
|
+
message.ltNow = reader.bool();
|
|
4075
|
+
break;
|
|
4076
|
+
case /* optional bool gt_now */ 8:
|
|
4077
|
+
message.gtNow = reader.bool();
|
|
4078
|
+
break;
|
|
4079
|
+
case /* optional google.protobuf.Duration within */ 9:
|
|
4080
|
+
message.within = Duration.internalBinaryRead(reader, reader.uint32(), options, message.within);
|
|
4081
|
+
break;
|
|
4082
|
+
default:
|
|
4083
|
+
let u = options.readUnknownField;
|
|
4084
|
+
if (u === "throw")
|
|
4085
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4086
|
+
let d = reader.skip(wireType);
|
|
4087
|
+
if (u !== false)
|
|
4088
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4089
|
+
}
|
|
4090
|
+
}
|
|
4091
|
+
return message;
|
|
4092
|
+
}
|
|
4093
|
+
internalBinaryWrite(message: TimestampRules, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
4094
|
+
/* optional bool required = 1; */
|
|
4095
|
+
if (message.required !== undefined)
|
|
4096
|
+
writer.tag(1, WireType.Varint).bool(message.required);
|
|
4097
|
+
/* optional google.protobuf.Timestamp const = 2; */
|
|
4098
|
+
if (message.const)
|
|
4099
|
+
Timestamp.internalBinaryWrite(message.const, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
4100
|
+
/* optional google.protobuf.Timestamp lt = 3; */
|
|
4101
|
+
if (message.lt)
|
|
4102
|
+
Timestamp.internalBinaryWrite(message.lt, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
4103
|
+
/* optional google.protobuf.Timestamp lte = 4; */
|
|
4104
|
+
if (message.lte)
|
|
4105
|
+
Timestamp.internalBinaryWrite(message.lte, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
4106
|
+
/* optional google.protobuf.Timestamp gt = 5; */
|
|
4107
|
+
if (message.gt)
|
|
4108
|
+
Timestamp.internalBinaryWrite(message.gt, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
4109
|
+
/* optional google.protobuf.Timestamp gte = 6; */
|
|
4110
|
+
if (message.gte)
|
|
4111
|
+
Timestamp.internalBinaryWrite(message.gte, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
4112
|
+
/* optional bool lt_now = 7; */
|
|
4113
|
+
if (message.ltNow !== undefined)
|
|
4114
|
+
writer.tag(7, WireType.Varint).bool(message.ltNow);
|
|
4115
|
+
/* optional bool gt_now = 8; */
|
|
4116
|
+
if (message.gtNow !== undefined)
|
|
4117
|
+
writer.tag(8, WireType.Varint).bool(message.gtNow);
|
|
4118
|
+
/* optional google.protobuf.Duration within = 9; */
|
|
4119
|
+
if (message.within)
|
|
4120
|
+
Duration.internalBinaryWrite(message.within, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
4121
|
+
let u = options.writeUnknownFields;
|
|
4122
|
+
if (u !== false)
|
|
4123
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4124
|
+
return writer;
|
|
4125
|
+
}
|
|
4126
|
+
}
|
|
4127
|
+
/**
|
|
4128
|
+
* @generated MessageType for protobuf message validate.TimestampRules
|
|
4129
|
+
*/
|
|
4130
|
+
export const TimestampRules = new TimestampRules$Type();
|