@accrescent/console-client-sdk-angular 0.7.0 → 0.9.0

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.
Files changed (21) hide show
  1. package/LICENSE +201 -0
  2. package/fesm2022/accrescent-console-client-sdk-angular-accrescent-console-v1alpha1.mjs +1880 -0
  3. package/fesm2022/accrescent-console-client-sdk-angular-accrescent-console-v1alpha1.mjs.map +1 -0
  4. package/fesm2022/accrescent-console-client-sdk-angular-buf-validate.mjs +364 -0
  5. package/fesm2022/accrescent-console-client-sdk-angular-buf-validate.mjs.map +1 -0
  6. package/fesm2022/accrescent-console-client-sdk-angular-google-api.mjs +584 -0
  7. package/fesm2022/accrescent-console-client-sdk-angular-google-api.mjs.map +1 -0
  8. package/fesm2022/accrescent-console-client-sdk-angular-google-longrunning.mjs +94 -0
  9. package/fesm2022/accrescent-console-client-sdk-angular-google-longrunning.mjs.map +1 -0
  10. package/fesm2022/accrescent-console-client-sdk-angular-google-rpc.mjs +32 -0
  11. package/fesm2022/accrescent-console-client-sdk-angular-google-rpc.mjs.map +1 -0
  12. package/fesm2022/accrescent-console-client-sdk-angular.mjs +3 -2282
  13. package/fesm2022/accrescent-console-client-sdk-angular.mjs.map +1 -1
  14. package/package.json +28 -10
  15. package/types/accrescent-console-client-sdk-angular-accrescent-console-v1alpha1.d.ts +3021 -0
  16. package/types/accrescent-console-client-sdk-angular-buf-validate.d.ts +4770 -0
  17. package/types/accrescent-console-client-sdk-angular-google-api.d.ts +1489 -0
  18. package/types/accrescent-console-client-sdk-angular-google-longrunning.d.ts +401 -0
  19. package/types/accrescent-console-client-sdk-angular-google-rpc.d.ts +52 -0
  20. package/types/accrescent-console-client-sdk-angular.d.ts +1 -1985
  21. package/README.md +0 -185
@@ -0,0 +1,4770 @@
1
+ import { GenMessage, GenEnum, GenExtension, GenFile } from '@bufbuild/protobuf/codegenv2';
2
+ import { Duration, FieldMask, FieldDescriptorProto_Type, Timestamp, FieldOptions, MessageOptions, OneofOptions } from '@bufbuild/protobuf/wkt';
3
+ import { Message } from '@bufbuild/protobuf';
4
+
5
+ /**
6
+ * Describes the file buf/validate/validate.proto.
7
+ */
8
+ declare const file_buf_validate_validate: GenFile;
9
+ /**
10
+ * `Rule` represents a validation rule written in the Common Expression
11
+ * Language (CEL) syntax. Each Rule includes a unique identifier, an
12
+ * optional error message, and the CEL expression to evaluate. For more
13
+ * information, [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/).
14
+ *
15
+ * ```proto
16
+ * message Foo {
17
+ * option (buf.validate.message).cel = {
18
+ * id: "foo.bar"
19
+ * message: "bar must be greater than 0"
20
+ * expression: "this.bar > 0"
21
+ * };
22
+ * int32 bar = 1;
23
+ * }
24
+ * ```
25
+ *
26
+ * @generated from message buf.validate.Rule
27
+ */
28
+ type Rule = Message<"buf.validate.Rule"> & {
29
+ /**
30
+ * `id` is a string that serves as a machine-readable name for this Rule.
31
+ * It should be unique within its scope, which could be either a message or a field.
32
+ *
33
+ * @generated from field: optional string id = 1;
34
+ */
35
+ id: string;
36
+ /**
37
+ * `message` is an optional field that provides a human-readable error message
38
+ * for this Rule when the CEL expression evaluates to false. If a
39
+ * non-empty message is provided, any strings resulting from the CEL
40
+ * expression evaluation are ignored.
41
+ *
42
+ * @generated from field: optional string message = 2;
43
+ */
44
+ message: string;
45
+ /**
46
+ * `expression` is the actual CEL expression that will be evaluated for
47
+ * validation. This string must resolve to either a boolean or a string
48
+ * value. If the expression evaluates to false or a non-empty string, the
49
+ * validation is considered failed, and the message is rejected.
50
+ *
51
+ * @generated from field: optional string expression = 3;
52
+ */
53
+ expression: string;
54
+ };
55
+ /**
56
+ * Describes the message buf.validate.Rule.
57
+ * Use `create(RuleSchema)` to create a new message.
58
+ */
59
+ declare const RuleSchema: GenMessage<Rule>;
60
+ /**
61
+ * MessageRules represents validation rules that are applied to the entire message.
62
+ * It includes disabling options and a list of Rule messages representing Common Expression Language (CEL) validation rules.
63
+ *
64
+ * @generated from message buf.validate.MessageRules
65
+ */
66
+ type MessageRules = Message<"buf.validate.MessageRules"> & {
67
+ /**
68
+ * `cel_expression` is a repeated field CEL expressions. Each expression specifies a validation
69
+ * rule to be applied to this message. These rules are written in Common Expression Language (CEL) syntax.
70
+ *
71
+ * This is a simplified form of the `cel` Rule field, where only `expression` is set. This allows for
72
+ * simpler syntax when defining CEL Rules where `id` and `message` derived from the `expression`. `id` will
73
+ * be same as the `expression`.
74
+ *
75
+ * For more information, [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/).
76
+ *
77
+ * ```proto
78
+ * message MyMessage {
79
+ * // The field `foo` must be greater than 42.
80
+ * option (buf.validate.message).cel_expression = "this.foo > 42";
81
+ * // The field `foo` must be less than 84.
82
+ * option (buf.validate.message).cel_expression = "this.foo < 84";
83
+ * optional int32 foo = 1;
84
+ * }
85
+ * ```
86
+ *
87
+ * @generated from field: repeated string cel_expression = 5;
88
+ */
89
+ celExpression: string[];
90
+ /**
91
+ * `cel` is a repeated field of type Rule. Each Rule specifies a validation rule to be applied to this message.
92
+ * These rules are written in Common Expression Language (CEL) syntax. For more information,
93
+ * [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/).
94
+ *
95
+ *
96
+ * ```proto
97
+ * message MyMessage {
98
+ * // The field `foo` must be greater than 42.
99
+ * option (buf.validate.message).cel = {
100
+ * id: "my_message.value",
101
+ * message: "value must be greater than 42",
102
+ * expression: "this.foo > 42",
103
+ * };
104
+ * optional int32 foo = 1;
105
+ * }
106
+ * ```
107
+ *
108
+ * @generated from field: repeated buf.validate.Rule cel = 3;
109
+ */
110
+ cel: Rule[];
111
+ /**
112
+ * `oneof` is a repeated field of type MessageOneofRule that specifies a list of fields
113
+ * of which at most one can be present. If `required` is also specified, then exactly one
114
+ * of the specified fields _must_ be present.
115
+ *
116
+ * This will enforce oneof-like constraints with a few features not provided by
117
+ * actual Protobuf oneof declarations:
118
+ * 1. Repeated and map fields are allowed in this validation. In a Protobuf oneof,
119
+ * only scalar fields are allowed.
120
+ * 2. Fields with implicit presence are allowed. In a Protobuf oneof, all member
121
+ * fields have explicit presence. This means that, for the purpose of determining
122
+ * how many fields are set, explicitly setting such a field to its zero value is
123
+ * effectively the same as not setting it at all.
124
+ * 3. This will always generate validation errors for a message unmarshalled from
125
+ * serialized data that sets more than one field. With a Protobuf oneof, when
126
+ * multiple fields are present in the serialized form, earlier values are usually
127
+ * silently ignored when unmarshalling, with only the last field being set when
128
+ * unmarshalling completes.
129
+ *
130
+ * Note that adding a field to a `oneof` will also set the IGNORE_IF_ZERO_VALUE on the fields. This means
131
+ * only the field that is set will be validated and the unset fields are not validated according to the field rules.
132
+ * This behavior can be overridden by setting `ignore` against a field.
133
+ *
134
+ * ```proto
135
+ * message MyMessage {
136
+ * // Only one of `field1` or `field2` _can_ be present in this message.
137
+ * option (buf.validate.message).oneof = { fields: ["field1", "field2"] };
138
+ * // Exactly one of `field3` or `field4` _must_ be present in this message.
139
+ * option (buf.validate.message).oneof = { fields: ["field3", "field4"], required: true };
140
+ * string field1 = 1;
141
+ * bytes field2 = 2;
142
+ * bool field3 = 3;
143
+ * int32 field4 = 4;
144
+ * }
145
+ * ```
146
+ *
147
+ * @generated from field: repeated buf.validate.MessageOneofRule oneof = 4;
148
+ */
149
+ oneof: MessageOneofRule[];
150
+ };
151
+ /**
152
+ * Describes the message buf.validate.MessageRules.
153
+ * Use `create(MessageRulesSchema)` to create a new message.
154
+ */
155
+ declare const MessageRulesSchema: GenMessage<MessageRules>;
156
+ /**
157
+ * @generated from message buf.validate.MessageOneofRule
158
+ */
159
+ type MessageOneofRule = Message<"buf.validate.MessageOneofRule"> & {
160
+ /**
161
+ * A list of field names to include in the oneof. All field names must be
162
+ * defined in the message. At least one field must be specified, and
163
+ * duplicates are not permitted.
164
+ *
165
+ * @generated from field: repeated string fields = 1;
166
+ */
167
+ fields: string[];
168
+ /**
169
+ * If true, one of the fields specified _must_ be set.
170
+ *
171
+ * @generated from field: optional bool required = 2;
172
+ */
173
+ required: boolean;
174
+ };
175
+ /**
176
+ * Describes the message buf.validate.MessageOneofRule.
177
+ * Use `create(MessageOneofRuleSchema)` to create a new message.
178
+ */
179
+ declare const MessageOneofRuleSchema: GenMessage<MessageOneofRule>;
180
+ /**
181
+ * The `OneofRules` message type enables you to manage rules for
182
+ * oneof fields in your protobuf messages.
183
+ *
184
+ * @generated from message buf.validate.OneofRules
185
+ */
186
+ type OneofRules = Message<"buf.validate.OneofRules"> & {
187
+ /**
188
+ * If `required` is true, exactly one field of the oneof must be set. A
189
+ * validation error is returned if no fields in the oneof are set. Further rules
190
+ * should be placed on the fields themselves to ensure they are valid values,
191
+ * such as `min_len` or `gt`.
192
+ *
193
+ * ```proto
194
+ * message MyMessage {
195
+ * oneof value {
196
+ * // Either `a` or `b` must be set. If `a` is set, it must also be
197
+ * // non-empty; whereas if `b` is set, it can still be an empty string.
198
+ * option (buf.validate.oneof).required = true;
199
+ * string a = 1 [(buf.validate.field).string.min_len = 1];
200
+ * string b = 2;
201
+ * }
202
+ * }
203
+ * ```
204
+ *
205
+ * @generated from field: optional bool required = 1;
206
+ */
207
+ required: boolean;
208
+ };
209
+ /**
210
+ * Describes the message buf.validate.OneofRules.
211
+ * Use `create(OneofRulesSchema)` to create a new message.
212
+ */
213
+ declare const OneofRulesSchema: GenMessage<OneofRules>;
214
+ /**
215
+ * FieldRules encapsulates the rules for each type of field. Depending on
216
+ * the field, the correct set should be used to ensure proper validations.
217
+ *
218
+ * @generated from message buf.validate.FieldRules
219
+ */
220
+ type FieldRules = Message<"buf.validate.FieldRules"> & {
221
+ /**
222
+ * `cel_expression` is a repeated field CEL expressions. Each expression specifies a validation
223
+ * rule to be applied to this message. These rules are written in Common Expression Language (CEL) syntax.
224
+ *
225
+ * This is a simplified form of the `cel` Rule field, where only `expression` is set. This allows for
226
+ * simpler syntax when defining CEL Rules where `id` and `message` derived from the `expression`. `id` will
227
+ * be same as the `expression`.
228
+ *
229
+ * For more information, [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/).
230
+ *
231
+ * ```proto
232
+ * message MyMessage {
233
+ * // The field `value` must be greater than 42.
234
+ * optional int32 value = 1 [(buf.validate.field).cel_expression = "this > 42"];
235
+ * }
236
+ * ```
237
+ *
238
+ * @generated from field: repeated string cel_expression = 29;
239
+ */
240
+ celExpression: string[];
241
+ /**
242
+ * `cel` is a repeated field used to represent a textual expression
243
+ * in the Common Expression Language (CEL) syntax. For more information,
244
+ * [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/).
245
+ *
246
+ * ```proto
247
+ * message MyMessage {
248
+ * // The field `value` must be greater than 42.
249
+ * optional int32 value = 1 [(buf.validate.field).cel = {
250
+ * id: "my_message.value",
251
+ * message: "value must be greater than 42",
252
+ * expression: "this > 42",
253
+ * }];
254
+ * }
255
+ * ```
256
+ *
257
+ * @generated from field: repeated buf.validate.Rule cel = 23;
258
+ */
259
+ cel: Rule[];
260
+ /**
261
+ * If `required` is true, the field must be set. A validation error is returned
262
+ * if the field is not set.
263
+ *
264
+ * ```proto
265
+ * syntax="proto3";
266
+ *
267
+ * message FieldsWithPresence {
268
+ * // Requires any string to be set, including the empty string.
269
+ * optional string link = 1 [
270
+ * (buf.validate.field).required = true
271
+ * ];
272
+ * // Requires true or false to be set.
273
+ * optional bool disabled = 2 [
274
+ * (buf.validate.field).required = true
275
+ * ];
276
+ * // Requires a message to be set, including the empty message.
277
+ * SomeMessage msg = 4 [
278
+ * (buf.validate.field).required = true
279
+ * ];
280
+ * }
281
+ * ```
282
+ *
283
+ * All fields in the example above track presence. By default, Protovalidate
284
+ * ignores rules on those fields if no value is set. `required` ensures that
285
+ * the fields are set and valid.
286
+ *
287
+ * Fields that don't track presence are always validated by Protovalidate,
288
+ * whether they are set or not. It is not necessary to add `required`. It
289
+ * can be added to indicate that the field cannot be the zero value.
290
+ *
291
+ * ```proto
292
+ * syntax="proto3";
293
+ *
294
+ * message FieldsWithoutPresence {
295
+ * // `string.email` always applies, even to an empty string.
296
+ * string link = 1 [
297
+ * (buf.validate.field).string.email = true
298
+ * ];
299
+ * // `repeated.min_items` always applies, even to an empty list.
300
+ * repeated string labels = 2 [
301
+ * (buf.validate.field).repeated.min_items = 1
302
+ * ];
303
+ * // `required`, for fields that don't track presence, indicates
304
+ * // the value of the field can't be the zero value.
305
+ * int32 zero_value_not_allowed = 3 [
306
+ * (buf.validate.field).required = true
307
+ * ];
308
+ * }
309
+ * ```
310
+ *
311
+ * To learn which fields track presence, see the
312
+ * [Field Presence cheat sheet](https://protobuf.dev/programming-guides/field_presence/#cheat).
313
+ *
314
+ * Note: While field rules can be applied to repeated items, map keys, and map
315
+ * values, the elements are always considered to be set. Consequently,
316
+ * specifying `repeated.items.required` is redundant.
317
+ *
318
+ * @generated from field: optional bool required = 25;
319
+ */
320
+ required: boolean;
321
+ /**
322
+ * Ignore validation rules on the field if its value matches the specified
323
+ * criteria. See the `Ignore` enum for details.
324
+ *
325
+ * ```proto
326
+ * message UpdateRequest {
327
+ * // The uri rule only applies if the field is not an empty string.
328
+ * string url = 1 [
329
+ * (buf.validate.field).ignore = IGNORE_IF_ZERO_VALUE,
330
+ * (buf.validate.field).string.uri = true
331
+ * ];
332
+ * }
333
+ * ```
334
+ *
335
+ * @generated from field: optional buf.validate.Ignore ignore = 27;
336
+ */
337
+ ignore: Ignore;
338
+ /**
339
+ * @generated from oneof buf.validate.FieldRules.type
340
+ */
341
+ type: {
342
+ /**
343
+ * Scalar Field Types
344
+ *
345
+ * @generated from field: buf.validate.FloatRules float = 1;
346
+ */
347
+ value: FloatRules;
348
+ case: "float";
349
+ } | {
350
+ /**
351
+ * @generated from field: buf.validate.DoubleRules double = 2;
352
+ */
353
+ value: DoubleRules;
354
+ case: "double";
355
+ } | {
356
+ /**
357
+ * @generated from field: buf.validate.Int32Rules int32 = 3;
358
+ */
359
+ value: Int32Rules;
360
+ case: "int32";
361
+ } | {
362
+ /**
363
+ * @generated from field: buf.validate.Int64Rules int64 = 4;
364
+ */
365
+ value: Int64Rules;
366
+ case: "int64";
367
+ } | {
368
+ /**
369
+ * @generated from field: buf.validate.UInt32Rules uint32 = 5;
370
+ */
371
+ value: UInt32Rules;
372
+ case: "uint32";
373
+ } | {
374
+ /**
375
+ * @generated from field: buf.validate.UInt64Rules uint64 = 6;
376
+ */
377
+ value: UInt64Rules;
378
+ case: "uint64";
379
+ } | {
380
+ /**
381
+ * @generated from field: buf.validate.SInt32Rules sint32 = 7;
382
+ */
383
+ value: SInt32Rules;
384
+ case: "sint32";
385
+ } | {
386
+ /**
387
+ * @generated from field: buf.validate.SInt64Rules sint64 = 8;
388
+ */
389
+ value: SInt64Rules;
390
+ case: "sint64";
391
+ } | {
392
+ /**
393
+ * @generated from field: buf.validate.Fixed32Rules fixed32 = 9;
394
+ */
395
+ value: Fixed32Rules;
396
+ case: "fixed32";
397
+ } | {
398
+ /**
399
+ * @generated from field: buf.validate.Fixed64Rules fixed64 = 10;
400
+ */
401
+ value: Fixed64Rules;
402
+ case: "fixed64";
403
+ } | {
404
+ /**
405
+ * @generated from field: buf.validate.SFixed32Rules sfixed32 = 11;
406
+ */
407
+ value: SFixed32Rules;
408
+ case: "sfixed32";
409
+ } | {
410
+ /**
411
+ * @generated from field: buf.validate.SFixed64Rules sfixed64 = 12;
412
+ */
413
+ value: SFixed64Rules;
414
+ case: "sfixed64";
415
+ } | {
416
+ /**
417
+ * @generated from field: buf.validate.BoolRules bool = 13;
418
+ */
419
+ value: BoolRules;
420
+ case: "bool";
421
+ } | {
422
+ /**
423
+ * @generated from field: buf.validate.StringRules string = 14;
424
+ */
425
+ value: StringRules;
426
+ case: "string";
427
+ } | {
428
+ /**
429
+ * @generated from field: buf.validate.BytesRules bytes = 15;
430
+ */
431
+ value: BytesRules;
432
+ case: "bytes";
433
+ } | {
434
+ /**
435
+ * Complex Field Types
436
+ *
437
+ * @generated from field: buf.validate.EnumRules enum = 16;
438
+ */
439
+ value: EnumRules;
440
+ case: "enum";
441
+ } | {
442
+ /**
443
+ * @generated from field: buf.validate.RepeatedRules repeated = 18;
444
+ */
445
+ value: RepeatedRules;
446
+ case: "repeated";
447
+ } | {
448
+ /**
449
+ * @generated from field: buf.validate.MapRules map = 19;
450
+ */
451
+ value: MapRules;
452
+ case: "map";
453
+ } | {
454
+ /**
455
+ * Well-Known Field Types
456
+ *
457
+ * @generated from field: buf.validate.AnyRules any = 20;
458
+ */
459
+ value: AnyRules;
460
+ case: "any";
461
+ } | {
462
+ /**
463
+ * @generated from field: buf.validate.DurationRules duration = 21;
464
+ */
465
+ value: DurationRules;
466
+ case: "duration";
467
+ } | {
468
+ /**
469
+ * @generated from field: buf.validate.FieldMaskRules field_mask = 28;
470
+ */
471
+ value: FieldMaskRules;
472
+ case: "fieldMask";
473
+ } | {
474
+ /**
475
+ * @generated from field: buf.validate.TimestampRules timestamp = 22;
476
+ */
477
+ value: TimestampRules;
478
+ case: "timestamp";
479
+ } | {
480
+ case: undefined;
481
+ value?: undefined;
482
+ };
483
+ };
484
+ /**
485
+ * Describes the message buf.validate.FieldRules.
486
+ * Use `create(FieldRulesSchema)` to create a new message.
487
+ */
488
+ declare const FieldRulesSchema: GenMessage<FieldRules>;
489
+ /**
490
+ * PredefinedRules are custom rules that can be re-used with
491
+ * multiple fields.
492
+ *
493
+ * @generated from message buf.validate.PredefinedRules
494
+ */
495
+ type PredefinedRules = Message<"buf.validate.PredefinedRules"> & {
496
+ /**
497
+ * `cel` is a repeated field used to represent a textual expression
498
+ * in the Common Expression Language (CEL) syntax. For more information,
499
+ * [see our documentation](https://buf.build/docs/protovalidate/schemas/predefined-rules/).
500
+ *
501
+ * ```proto
502
+ * message MyMessage {
503
+ * // The field `value` must be greater than 42.
504
+ * optional int32 value = 1 [(buf.validate.predefined).cel = {
505
+ * id: "my_message.value",
506
+ * message: "value must be greater than 42",
507
+ * expression: "this > 42",
508
+ * }];
509
+ * }
510
+ * ```
511
+ *
512
+ * @generated from field: repeated buf.validate.Rule cel = 1;
513
+ */
514
+ cel: Rule[];
515
+ };
516
+ /**
517
+ * Describes the message buf.validate.PredefinedRules.
518
+ * Use `create(PredefinedRulesSchema)` to create a new message.
519
+ */
520
+ declare const PredefinedRulesSchema: GenMessage<PredefinedRules>;
521
+ /**
522
+ * FloatRules describes the rules applied to `float` values. These
523
+ * rules may also be applied to the `google.protobuf.FloatValue` Well-Known-Type.
524
+ *
525
+ * @generated from message buf.validate.FloatRules
526
+ */
527
+ type FloatRules = Message<"buf.validate.FloatRules"> & {
528
+ /**
529
+ * `const` requires the field value to exactly match the specified value. If
530
+ * the field value doesn't match, an error message is generated.
531
+ *
532
+ * ```proto
533
+ * message MyFloat {
534
+ * // value must equal 42.0
535
+ * float value = 1 [(buf.validate.field).float.const = 42.0];
536
+ * }
537
+ * ```
538
+ *
539
+ * @generated from field: optional float const = 1;
540
+ */
541
+ const: number;
542
+ /**
543
+ * @generated from oneof buf.validate.FloatRules.less_than
544
+ */
545
+ lessThan: {
546
+ /**
547
+ * `lt` requires the field value to be less than the specified value (field <
548
+ * value). If the field value is equal to or greater than the specified value,
549
+ * an error message is generated.
550
+ *
551
+ * ```proto
552
+ * message MyFloat {
553
+ * // value must be less than 10.0
554
+ * float value = 1 [(buf.validate.field).float.lt = 10.0];
555
+ * }
556
+ * ```
557
+ *
558
+ * @generated from field: float lt = 2;
559
+ */
560
+ value: number;
561
+ case: "lt";
562
+ } | {
563
+ /**
564
+ * `lte` requires the field value to be less than or equal to the specified
565
+ * value (field <= value). If the field value is greater than the specified
566
+ * value, an error message is generated.
567
+ *
568
+ * ```proto
569
+ * message MyFloat {
570
+ * // value must be less than or equal to 10.0
571
+ * float value = 1 [(buf.validate.field).float.lte = 10.0];
572
+ * }
573
+ * ```
574
+ *
575
+ * @generated from field: float lte = 3;
576
+ */
577
+ value: number;
578
+ case: "lte";
579
+ } | {
580
+ case: undefined;
581
+ value?: undefined;
582
+ };
583
+ /**
584
+ * @generated from oneof buf.validate.FloatRules.greater_than
585
+ */
586
+ greaterThan: {
587
+ /**
588
+ * `gt` requires the field value to be greater than the specified value
589
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or
590
+ * `lte`, the range is reversed, and the field value must be outside the
591
+ * specified range. If the field value doesn't meet the required conditions,
592
+ * an error message is generated.
593
+ *
594
+ * ```proto
595
+ * message MyFloat {
596
+ * // value must be greater than 5.0 [float.gt]
597
+ * float value = 1 [(buf.validate.field).float.gt = 5.0];
598
+ *
599
+ * // value must be greater than 5 and less than 10.0 [float.gt_lt]
600
+ * float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }];
601
+ *
602
+ * // value must be greater than 10 or less than 5.0 [float.gt_lt_exclusive]
603
+ * float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }];
604
+ * }
605
+ * ```
606
+ *
607
+ * @generated from field: float gt = 4;
608
+ */
609
+ value: number;
610
+ case: "gt";
611
+ } | {
612
+ /**
613
+ * `gte` requires the field value to be greater than or equal to the specified
614
+ * value (exclusive). If the value of `gte` is larger than a specified `lt`
615
+ * or `lte`, the range is reversed, and the field value must be outside the
616
+ * specified range. If the field value doesn't meet the required conditions,
617
+ * an error message is generated.
618
+ *
619
+ * ```proto
620
+ * message MyFloat {
621
+ * // value must be greater than or equal to 5.0 [float.gte]
622
+ * float value = 1 [(buf.validate.field).float.gte = 5.0];
623
+ *
624
+ * // value must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt]
625
+ * float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }];
626
+ *
627
+ * // value must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive]
628
+ * float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }];
629
+ * }
630
+ * ```
631
+ *
632
+ * @generated from field: float gte = 5;
633
+ */
634
+ value: number;
635
+ case: "gte";
636
+ } | {
637
+ case: undefined;
638
+ value?: undefined;
639
+ };
640
+ /**
641
+ * `in` requires the field value to be equal to one of the specified values.
642
+ * If the field value isn't one of the specified values, an error message
643
+ * is generated.
644
+ *
645
+ * ```proto
646
+ * message MyFloat {
647
+ * // value must be in list [1.0, 2.0, 3.0]
648
+ * float value = 1 [(buf.validate.field).float = { in: [1.0, 2.0, 3.0] }];
649
+ * }
650
+ * ```
651
+ *
652
+ * @generated from field: repeated float in = 6;
653
+ */
654
+ in: number[];
655
+ /**
656
+ * `in` requires the field value to not be equal to any of the specified
657
+ * values. If the field value is one of the specified values, an error
658
+ * message is generated.
659
+ *
660
+ * ```proto
661
+ * message MyFloat {
662
+ * // value must not be in list [1.0, 2.0, 3.0]
663
+ * float value = 1 [(buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }];
664
+ * }
665
+ * ```
666
+ *
667
+ * @generated from field: repeated float not_in = 7;
668
+ */
669
+ notIn: number[];
670
+ /**
671
+ * `finite` requires the field value to be finite. If the field value is
672
+ * infinite or NaN, an error message is generated.
673
+ *
674
+ * @generated from field: optional bool finite = 8;
675
+ */
676
+ finite: boolean;
677
+ /**
678
+ * `example` specifies values that the field may have. These values SHOULD
679
+ * conform to other rules. `example` values will not impact validation
680
+ * but may be used as helpful guidance on how to populate the given field.
681
+ *
682
+ * ```proto
683
+ * message MyFloat {
684
+ * float value = 1 [
685
+ * (buf.validate.field).float.example = 1.0,
686
+ * (buf.validate.field).float.example = inf
687
+ * ];
688
+ * }
689
+ * ```
690
+ *
691
+ * @generated from field: repeated float example = 9;
692
+ */
693
+ example: number[];
694
+ };
695
+ /**
696
+ * Describes the message buf.validate.FloatRules.
697
+ * Use `create(FloatRulesSchema)` to create a new message.
698
+ */
699
+ declare const FloatRulesSchema: GenMessage<FloatRules>;
700
+ /**
701
+ * DoubleRules describes the rules applied to `double` values. These
702
+ * rules may also be applied to the `google.protobuf.DoubleValue` Well-Known-Type.
703
+ *
704
+ * @generated from message buf.validate.DoubleRules
705
+ */
706
+ type DoubleRules = Message<"buf.validate.DoubleRules"> & {
707
+ /**
708
+ * `const` requires the field value to exactly match the specified value. If
709
+ * the field value doesn't match, an error message is generated.
710
+ *
711
+ * ```proto
712
+ * message MyDouble {
713
+ * // value must equal 42.0
714
+ * double value = 1 [(buf.validate.field).double.const = 42.0];
715
+ * }
716
+ * ```
717
+ *
718
+ * @generated from field: optional double const = 1;
719
+ */
720
+ const: number;
721
+ /**
722
+ * @generated from oneof buf.validate.DoubleRules.less_than
723
+ */
724
+ lessThan: {
725
+ /**
726
+ * `lt` requires the field value to be less than the specified value (field <
727
+ * value). If the field value is equal to or greater than the specified
728
+ * value, an error message is generated.
729
+ *
730
+ * ```proto
731
+ * message MyDouble {
732
+ * // value must be less than 10.0
733
+ * double value = 1 [(buf.validate.field).double.lt = 10.0];
734
+ * }
735
+ * ```
736
+ *
737
+ * @generated from field: double lt = 2;
738
+ */
739
+ value: number;
740
+ case: "lt";
741
+ } | {
742
+ /**
743
+ * `lte` requires the field value to be less than or equal to the specified value
744
+ * (field <= value). If the field value is greater than the specified value,
745
+ * an error message is generated.
746
+ *
747
+ * ```proto
748
+ * message MyDouble {
749
+ * // value must be less than or equal to 10.0
750
+ * double value = 1 [(buf.validate.field).double.lte = 10.0];
751
+ * }
752
+ * ```
753
+ *
754
+ * @generated from field: double lte = 3;
755
+ */
756
+ value: number;
757
+ case: "lte";
758
+ } | {
759
+ case: undefined;
760
+ value?: undefined;
761
+ };
762
+ /**
763
+ * @generated from oneof buf.validate.DoubleRules.greater_than
764
+ */
765
+ greaterThan: {
766
+ /**
767
+ * `gt` requires the field value to be greater than the specified value
768
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or `lte`,
769
+ * the range is reversed, and the field value must be outside the specified
770
+ * range. If the field value doesn't meet the required conditions, an error
771
+ * message is generated.
772
+ *
773
+ * ```proto
774
+ * message MyDouble {
775
+ * // value must be greater than 5.0 [double.gt]
776
+ * double value = 1 [(buf.validate.field).double.gt = 5.0];
777
+ *
778
+ * // value must be greater than 5 and less than 10.0 [double.gt_lt]
779
+ * double other_value = 2 [(buf.validate.field).double = { gt: 5.0, lt: 10.0 }];
780
+ *
781
+ * // value must be greater than 10 or less than 5.0 [double.gt_lt_exclusive]
782
+ * double another_value = 3 [(buf.validate.field).double = { gt: 10.0, lt: 5.0 }];
783
+ * }
784
+ * ```
785
+ *
786
+ * @generated from field: double gt = 4;
787
+ */
788
+ value: number;
789
+ case: "gt";
790
+ } | {
791
+ /**
792
+ * `gte` requires the field value to be greater than or equal to the specified
793
+ * value (exclusive). If the value of `gte` is larger than a specified `lt` or
794
+ * `lte`, the range is reversed, and the field value must be outside the
795
+ * specified range. If the field value doesn't meet the required conditions,
796
+ * an error message is generated.
797
+ *
798
+ * ```proto
799
+ * message MyDouble {
800
+ * // value must be greater than or equal to 5.0 [double.gte]
801
+ * double value = 1 [(buf.validate.field).double.gte = 5.0];
802
+ *
803
+ * // value must be greater than or equal to 5.0 and less than 10.0 [double.gte_lt]
804
+ * double other_value = 2 [(buf.validate.field).double = { gte: 5.0, lt: 10.0 }];
805
+ *
806
+ * // value must be greater than or equal to 10.0 or less than 5.0 [double.gte_lt_exclusive]
807
+ * double another_value = 3 [(buf.validate.field).double = { gte: 10.0, lt: 5.0 }];
808
+ * }
809
+ * ```
810
+ *
811
+ * @generated from field: double gte = 5;
812
+ */
813
+ value: number;
814
+ case: "gte";
815
+ } | {
816
+ case: undefined;
817
+ value?: undefined;
818
+ };
819
+ /**
820
+ * `in` requires the field value to be equal to one of the specified values.
821
+ * If the field value isn't one of the specified values, an error message is
822
+ * generated.
823
+ *
824
+ * ```proto
825
+ * message MyDouble {
826
+ * // value must be in list [1.0, 2.0, 3.0]
827
+ * double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }];
828
+ * }
829
+ * ```
830
+ *
831
+ * @generated from field: repeated double in = 6;
832
+ */
833
+ in: number[];
834
+ /**
835
+ * `not_in` requires the field value to not be equal to any of the specified
836
+ * values. If the field value is one of the specified values, an error
837
+ * message is generated.
838
+ *
839
+ * ```proto
840
+ * message MyDouble {
841
+ * // value must not be in list [1.0, 2.0, 3.0]
842
+ * double value = 1 [(buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }];
843
+ * }
844
+ * ```
845
+ *
846
+ * @generated from field: repeated double not_in = 7;
847
+ */
848
+ notIn: number[];
849
+ /**
850
+ * `finite` requires the field value to be finite. If the field value is
851
+ * infinite or NaN, an error message is generated.
852
+ *
853
+ * @generated from field: optional bool finite = 8;
854
+ */
855
+ finite: boolean;
856
+ /**
857
+ * `example` specifies values that the field may have. These values SHOULD
858
+ * conform to other rules. `example` values will not impact validation
859
+ * but may be used as helpful guidance on how to populate the given field.
860
+ *
861
+ * ```proto
862
+ * message MyDouble {
863
+ * double value = 1 [
864
+ * (buf.validate.field).double.example = 1.0,
865
+ * (buf.validate.field).double.example = inf
866
+ * ];
867
+ * }
868
+ * ```
869
+ *
870
+ * @generated from field: repeated double example = 9;
871
+ */
872
+ example: number[];
873
+ };
874
+ /**
875
+ * Describes the message buf.validate.DoubleRules.
876
+ * Use `create(DoubleRulesSchema)` to create a new message.
877
+ */
878
+ declare const DoubleRulesSchema: GenMessage<DoubleRules>;
879
+ /**
880
+ * Int32Rules describes the rules applied to `int32` values. These
881
+ * rules may also be applied to the `google.protobuf.Int32Value` Well-Known-Type.
882
+ *
883
+ * @generated from message buf.validate.Int32Rules
884
+ */
885
+ type Int32Rules = Message<"buf.validate.Int32Rules"> & {
886
+ /**
887
+ * `const` requires the field value to exactly match the specified value. If
888
+ * the field value doesn't match, an error message is generated.
889
+ *
890
+ * ```proto
891
+ * message MyInt32 {
892
+ * // value must equal 42
893
+ * int32 value = 1 [(buf.validate.field).int32.const = 42];
894
+ * }
895
+ * ```
896
+ *
897
+ * @generated from field: optional int32 const = 1;
898
+ */
899
+ const: number;
900
+ /**
901
+ * @generated from oneof buf.validate.Int32Rules.less_than
902
+ */
903
+ lessThan: {
904
+ /**
905
+ * `lt` requires the field value to be less than the specified value (field
906
+ * < value). If the field value is equal to or greater than the specified
907
+ * value, an error message is generated.
908
+ *
909
+ * ```proto
910
+ * message MyInt32 {
911
+ * // value must be less than 10
912
+ * int32 value = 1 [(buf.validate.field).int32.lt = 10];
913
+ * }
914
+ * ```
915
+ *
916
+ * @generated from field: int32 lt = 2;
917
+ */
918
+ value: number;
919
+ case: "lt";
920
+ } | {
921
+ /**
922
+ * `lte` requires the field value to be less than or equal to the specified
923
+ * value (field <= value). If the field value is greater than the specified
924
+ * value, an error message is generated.
925
+ *
926
+ * ```proto
927
+ * message MyInt32 {
928
+ * // value must be less than or equal to 10
929
+ * int32 value = 1 [(buf.validate.field).int32.lte = 10];
930
+ * }
931
+ * ```
932
+ *
933
+ * @generated from field: int32 lte = 3;
934
+ */
935
+ value: number;
936
+ case: "lte";
937
+ } | {
938
+ case: undefined;
939
+ value?: undefined;
940
+ };
941
+ /**
942
+ * @generated from oneof buf.validate.Int32Rules.greater_than
943
+ */
944
+ greaterThan: {
945
+ /**
946
+ * `gt` requires the field value to be greater than the specified value
947
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or
948
+ * `lte`, the range is reversed, and the field value must be outside the
949
+ * specified range. If the field value doesn't meet the required conditions,
950
+ * an error message is generated.
951
+ *
952
+ * ```proto
953
+ * message MyInt32 {
954
+ * // value must be greater than 5 [int32.gt]
955
+ * int32 value = 1 [(buf.validate.field).int32.gt = 5];
956
+ *
957
+ * // value must be greater than 5 and less than 10 [int32.gt_lt]
958
+ * int32 other_value = 2 [(buf.validate.field).int32 = { gt: 5, lt: 10 }];
959
+ *
960
+ * // value must be greater than 10 or less than 5 [int32.gt_lt_exclusive]
961
+ * int32 another_value = 3 [(buf.validate.field).int32 = { gt: 10, lt: 5 }];
962
+ * }
963
+ * ```
964
+ *
965
+ * @generated from field: int32 gt = 4;
966
+ */
967
+ value: number;
968
+ case: "gt";
969
+ } | {
970
+ /**
971
+ * `gte` requires the field value to be greater than or equal to the specified value
972
+ * (exclusive). If the value of `gte` is larger than a specified `lt` or
973
+ * `lte`, the range is reversed, and the field value must be outside the
974
+ * specified range. If the field value doesn't meet the required conditions,
975
+ * an error message is generated.
976
+ *
977
+ * ```proto
978
+ * message MyInt32 {
979
+ * // value must be greater than or equal to 5 [int32.gte]
980
+ * int32 value = 1 [(buf.validate.field).int32.gte = 5];
981
+ *
982
+ * // value must be greater than or equal to 5 and less than 10 [int32.gte_lt]
983
+ * int32 other_value = 2 [(buf.validate.field).int32 = { gte: 5, lt: 10 }];
984
+ *
985
+ * // value must be greater than or equal to 10 or less than 5 [int32.gte_lt_exclusive]
986
+ * int32 another_value = 3 [(buf.validate.field).int32 = { gte: 10, lt: 5 }];
987
+ * }
988
+ * ```
989
+ *
990
+ * @generated from field: int32 gte = 5;
991
+ */
992
+ value: number;
993
+ case: "gte";
994
+ } | {
995
+ case: undefined;
996
+ value?: undefined;
997
+ };
998
+ /**
999
+ * `in` requires the field value to be equal to one of the specified values.
1000
+ * If the field value isn't one of the specified values, an error message is
1001
+ * generated.
1002
+ *
1003
+ * ```proto
1004
+ * message MyInt32 {
1005
+ * // value must be in list [1, 2, 3]
1006
+ * int32 value = 1 [(buf.validate.field).int32 = { in: [1, 2, 3] }];
1007
+ * }
1008
+ * ```
1009
+ *
1010
+ * @generated from field: repeated int32 in = 6;
1011
+ */
1012
+ in: number[];
1013
+ /**
1014
+ * `not_in` requires the field value to not be equal to any of the specified
1015
+ * values. If the field value is one of the specified values, an error message
1016
+ * is generated.
1017
+ *
1018
+ * ```proto
1019
+ * message MyInt32 {
1020
+ * // value must not be in list [1, 2, 3]
1021
+ * int32 value = 1 [(buf.validate.field).int32 = { not_in: [1, 2, 3] }];
1022
+ * }
1023
+ * ```
1024
+ *
1025
+ * @generated from field: repeated int32 not_in = 7;
1026
+ */
1027
+ notIn: number[];
1028
+ /**
1029
+ * `example` specifies values that the field may have. These values SHOULD
1030
+ * conform to other rules. `example` values will not impact validation
1031
+ * but may be used as helpful guidance on how to populate the given field.
1032
+ *
1033
+ * ```proto
1034
+ * message MyInt32 {
1035
+ * int32 value = 1 [
1036
+ * (buf.validate.field).int32.example = 1,
1037
+ * (buf.validate.field).int32.example = -10
1038
+ * ];
1039
+ * }
1040
+ * ```
1041
+ *
1042
+ * @generated from field: repeated int32 example = 8;
1043
+ */
1044
+ example: number[];
1045
+ };
1046
+ /**
1047
+ * Describes the message buf.validate.Int32Rules.
1048
+ * Use `create(Int32RulesSchema)` to create a new message.
1049
+ */
1050
+ declare const Int32RulesSchema: GenMessage<Int32Rules>;
1051
+ /**
1052
+ * Int64Rules describes the rules applied to `int64` values. These
1053
+ * rules may also be applied to the `google.protobuf.Int64Value` Well-Known-Type.
1054
+ *
1055
+ * @generated from message buf.validate.Int64Rules
1056
+ */
1057
+ type Int64Rules = Message<"buf.validate.Int64Rules"> & {
1058
+ /**
1059
+ * `const` requires the field value to exactly match the specified value. If
1060
+ * the field value doesn't match, an error message is generated.
1061
+ *
1062
+ * ```proto
1063
+ * message MyInt64 {
1064
+ * // value must equal 42
1065
+ * int64 value = 1 [(buf.validate.field).int64.const = 42];
1066
+ * }
1067
+ * ```
1068
+ *
1069
+ * @generated from field: optional int64 const = 1;
1070
+ */
1071
+ const: bigint;
1072
+ /**
1073
+ * @generated from oneof buf.validate.Int64Rules.less_than
1074
+ */
1075
+ lessThan: {
1076
+ /**
1077
+ * `lt` requires the field value to be less than the specified value (field <
1078
+ * value). If the field value is equal to or greater than the specified value,
1079
+ * an error message is generated.
1080
+ *
1081
+ * ```proto
1082
+ * message MyInt64 {
1083
+ * // value must be less than 10
1084
+ * int64 value = 1 [(buf.validate.field).int64.lt = 10];
1085
+ * }
1086
+ * ```
1087
+ *
1088
+ * @generated from field: int64 lt = 2;
1089
+ */
1090
+ value: bigint;
1091
+ case: "lt";
1092
+ } | {
1093
+ /**
1094
+ * `lte` requires the field value to be less than or equal to the specified
1095
+ * value (field <= value). If the field value is greater than the specified
1096
+ * value, an error message is generated.
1097
+ *
1098
+ * ```proto
1099
+ * message MyInt64 {
1100
+ * // value must be less than or equal to 10
1101
+ * int64 value = 1 [(buf.validate.field).int64.lte = 10];
1102
+ * }
1103
+ * ```
1104
+ *
1105
+ * @generated from field: int64 lte = 3;
1106
+ */
1107
+ value: bigint;
1108
+ case: "lte";
1109
+ } | {
1110
+ case: undefined;
1111
+ value?: undefined;
1112
+ };
1113
+ /**
1114
+ * @generated from oneof buf.validate.Int64Rules.greater_than
1115
+ */
1116
+ greaterThan: {
1117
+ /**
1118
+ * `gt` requires the field value to be greater than the specified value
1119
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or
1120
+ * `lte`, the range is reversed, and the field value must be outside the
1121
+ * specified range. If the field value doesn't meet the required conditions,
1122
+ * an error message is generated.
1123
+ *
1124
+ * ```proto
1125
+ * message MyInt64 {
1126
+ * // value must be greater than 5 [int64.gt]
1127
+ * int64 value = 1 [(buf.validate.field).int64.gt = 5];
1128
+ *
1129
+ * // value must be greater than 5 and less than 10 [int64.gt_lt]
1130
+ * int64 other_value = 2 [(buf.validate.field).int64 = { gt: 5, lt: 10 }];
1131
+ *
1132
+ * // value must be greater than 10 or less than 5 [int64.gt_lt_exclusive]
1133
+ * int64 another_value = 3 [(buf.validate.field).int64 = { gt: 10, lt: 5 }];
1134
+ * }
1135
+ * ```
1136
+ *
1137
+ * @generated from field: int64 gt = 4;
1138
+ */
1139
+ value: bigint;
1140
+ case: "gt";
1141
+ } | {
1142
+ /**
1143
+ * `gte` requires the field value to be greater than or equal to the specified
1144
+ * value (exclusive). If the value of `gte` is larger than a specified `lt`
1145
+ * or `lte`, the range is reversed, and the field value must be outside the
1146
+ * specified range. If the field value doesn't meet the required conditions,
1147
+ * an error message is generated.
1148
+ *
1149
+ * ```proto
1150
+ * message MyInt64 {
1151
+ * // value must be greater than or equal to 5 [int64.gte]
1152
+ * int64 value = 1 [(buf.validate.field).int64.gte = 5];
1153
+ *
1154
+ * // value must be greater than or equal to 5 and less than 10 [int64.gte_lt]
1155
+ * int64 other_value = 2 [(buf.validate.field).int64 = { gte: 5, lt: 10 }];
1156
+ *
1157
+ * // value must be greater than or equal to 10 or less than 5 [int64.gte_lt_exclusive]
1158
+ * int64 another_value = 3 [(buf.validate.field).int64 = { gte: 10, lt: 5 }];
1159
+ * }
1160
+ * ```
1161
+ *
1162
+ * @generated from field: int64 gte = 5;
1163
+ */
1164
+ value: bigint;
1165
+ case: "gte";
1166
+ } | {
1167
+ case: undefined;
1168
+ value?: undefined;
1169
+ };
1170
+ /**
1171
+ * `in` requires the field value to be equal to one of the specified values.
1172
+ * If the field value isn't one of the specified values, an error message is
1173
+ * generated.
1174
+ *
1175
+ * ```proto
1176
+ * message MyInt64 {
1177
+ * // value must be in list [1, 2, 3]
1178
+ * int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }];
1179
+ * }
1180
+ * ```
1181
+ *
1182
+ * @generated from field: repeated int64 in = 6;
1183
+ */
1184
+ in: bigint[];
1185
+ /**
1186
+ * `not_in` requires the field value to not be equal to any of the specified
1187
+ * values. If the field value is one of the specified values, an error
1188
+ * message is generated.
1189
+ *
1190
+ * ```proto
1191
+ * message MyInt64 {
1192
+ * // value must not be in list [1, 2, 3]
1193
+ * int64 value = 1 [(buf.validate.field).int64 = { not_in: [1, 2, 3] }];
1194
+ * }
1195
+ * ```
1196
+ *
1197
+ * @generated from field: repeated int64 not_in = 7;
1198
+ */
1199
+ notIn: bigint[];
1200
+ /**
1201
+ * `example` specifies values that the field may have. These values SHOULD
1202
+ * conform to other rules. `example` values will not impact validation
1203
+ * but may be used as helpful guidance on how to populate the given field.
1204
+ *
1205
+ * ```proto
1206
+ * message MyInt64 {
1207
+ * int64 value = 1 [
1208
+ * (buf.validate.field).int64.example = 1,
1209
+ * (buf.validate.field).int64.example = -10
1210
+ * ];
1211
+ * }
1212
+ * ```
1213
+ *
1214
+ * @generated from field: repeated int64 example = 9;
1215
+ */
1216
+ example: bigint[];
1217
+ };
1218
+ /**
1219
+ * Describes the message buf.validate.Int64Rules.
1220
+ * Use `create(Int64RulesSchema)` to create a new message.
1221
+ */
1222
+ declare const Int64RulesSchema: GenMessage<Int64Rules>;
1223
+ /**
1224
+ * UInt32Rules describes the rules applied to `uint32` values. These
1225
+ * rules may also be applied to the `google.protobuf.UInt32Value` Well-Known-Type.
1226
+ *
1227
+ * @generated from message buf.validate.UInt32Rules
1228
+ */
1229
+ type UInt32Rules = Message<"buf.validate.UInt32Rules"> & {
1230
+ /**
1231
+ * `const` requires the field value to exactly match the specified value. If
1232
+ * the field value doesn't match, an error message is generated.
1233
+ *
1234
+ * ```proto
1235
+ * message MyUInt32 {
1236
+ * // value must equal 42
1237
+ * uint32 value = 1 [(buf.validate.field).uint32.const = 42];
1238
+ * }
1239
+ * ```
1240
+ *
1241
+ * @generated from field: optional uint32 const = 1;
1242
+ */
1243
+ const: number;
1244
+ /**
1245
+ * @generated from oneof buf.validate.UInt32Rules.less_than
1246
+ */
1247
+ lessThan: {
1248
+ /**
1249
+ * `lt` requires the field value to be less than the specified value (field <
1250
+ * value). If the field value is equal to or greater than the specified value,
1251
+ * an error message is generated.
1252
+ *
1253
+ * ```proto
1254
+ * message MyUInt32 {
1255
+ * // value must be less than 10
1256
+ * uint32 value = 1 [(buf.validate.field).uint32.lt = 10];
1257
+ * }
1258
+ * ```
1259
+ *
1260
+ * @generated from field: uint32 lt = 2;
1261
+ */
1262
+ value: number;
1263
+ case: "lt";
1264
+ } | {
1265
+ /**
1266
+ * `lte` requires the field value to be less than or equal to the specified
1267
+ * value (field <= value). If the field value is greater than the specified
1268
+ * value, an error message is generated.
1269
+ *
1270
+ * ```proto
1271
+ * message MyUInt32 {
1272
+ * // value must be less than or equal to 10
1273
+ * uint32 value = 1 [(buf.validate.field).uint32.lte = 10];
1274
+ * }
1275
+ * ```
1276
+ *
1277
+ * @generated from field: uint32 lte = 3;
1278
+ */
1279
+ value: number;
1280
+ case: "lte";
1281
+ } | {
1282
+ case: undefined;
1283
+ value?: undefined;
1284
+ };
1285
+ /**
1286
+ * @generated from oneof buf.validate.UInt32Rules.greater_than
1287
+ */
1288
+ greaterThan: {
1289
+ /**
1290
+ * `gt` requires the field value to be greater than the specified value
1291
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or
1292
+ * `lte`, the range is reversed, and the field value must be outside the
1293
+ * specified range. If the field value doesn't meet the required conditions,
1294
+ * an error message is generated.
1295
+ *
1296
+ * ```proto
1297
+ * message MyUInt32 {
1298
+ * // value must be greater than 5 [uint32.gt]
1299
+ * uint32 value = 1 [(buf.validate.field).uint32.gt = 5];
1300
+ *
1301
+ * // value must be greater than 5 and less than 10 [uint32.gt_lt]
1302
+ * uint32 other_value = 2 [(buf.validate.field).uint32 = { gt: 5, lt: 10 }];
1303
+ *
1304
+ * // value must be greater than 10 or less than 5 [uint32.gt_lt_exclusive]
1305
+ * uint32 another_value = 3 [(buf.validate.field).uint32 = { gt: 10, lt: 5 }];
1306
+ * }
1307
+ * ```
1308
+ *
1309
+ * @generated from field: uint32 gt = 4;
1310
+ */
1311
+ value: number;
1312
+ case: "gt";
1313
+ } | {
1314
+ /**
1315
+ * `gte` requires the field value to be greater than or equal to the specified
1316
+ * value (exclusive). If the value of `gte` is larger than a specified `lt`
1317
+ * or `lte`, the range is reversed, and the field value must be outside the
1318
+ * specified range. If the field value doesn't meet the required conditions,
1319
+ * an error message is generated.
1320
+ *
1321
+ * ```proto
1322
+ * message MyUInt32 {
1323
+ * // value must be greater than or equal to 5 [uint32.gte]
1324
+ * uint32 value = 1 [(buf.validate.field).uint32.gte = 5];
1325
+ *
1326
+ * // value must be greater than or equal to 5 and less than 10 [uint32.gte_lt]
1327
+ * uint32 other_value = 2 [(buf.validate.field).uint32 = { gte: 5, lt: 10 }];
1328
+ *
1329
+ * // value must be greater than or equal to 10 or less than 5 [uint32.gte_lt_exclusive]
1330
+ * uint32 another_value = 3 [(buf.validate.field).uint32 = { gte: 10, lt: 5 }];
1331
+ * }
1332
+ * ```
1333
+ *
1334
+ * @generated from field: uint32 gte = 5;
1335
+ */
1336
+ value: number;
1337
+ case: "gte";
1338
+ } | {
1339
+ case: undefined;
1340
+ value?: undefined;
1341
+ };
1342
+ /**
1343
+ * `in` requires the field value to be equal to one of the specified values.
1344
+ * If the field value isn't one of the specified values, an error message is
1345
+ * generated.
1346
+ *
1347
+ * ```proto
1348
+ * message MyUInt32 {
1349
+ * // value must be in list [1, 2, 3]
1350
+ * uint32 value = 1 [(buf.validate.field).uint32 = { in: [1, 2, 3] }];
1351
+ * }
1352
+ * ```
1353
+ *
1354
+ * @generated from field: repeated uint32 in = 6;
1355
+ */
1356
+ in: number[];
1357
+ /**
1358
+ * `not_in` requires the field value to not be equal to any of the specified
1359
+ * values. If the field value is one of the specified values, an error
1360
+ * message is generated.
1361
+ *
1362
+ * ```proto
1363
+ * message MyUInt32 {
1364
+ * // value must not be in list [1, 2, 3]
1365
+ * uint32 value = 1 [(buf.validate.field).uint32 = { not_in: [1, 2, 3] }];
1366
+ * }
1367
+ * ```
1368
+ *
1369
+ * @generated from field: repeated uint32 not_in = 7;
1370
+ */
1371
+ notIn: number[];
1372
+ /**
1373
+ * `example` specifies values that the field may have. These values SHOULD
1374
+ * conform to other rules. `example` values will not impact validation
1375
+ * but may be used as helpful guidance on how to populate the given field.
1376
+ *
1377
+ * ```proto
1378
+ * message MyUInt32 {
1379
+ * uint32 value = 1 [
1380
+ * (buf.validate.field).uint32.example = 1,
1381
+ * (buf.validate.field).uint32.example = 10
1382
+ * ];
1383
+ * }
1384
+ * ```
1385
+ *
1386
+ * @generated from field: repeated uint32 example = 8;
1387
+ */
1388
+ example: number[];
1389
+ };
1390
+ /**
1391
+ * Describes the message buf.validate.UInt32Rules.
1392
+ * Use `create(UInt32RulesSchema)` to create a new message.
1393
+ */
1394
+ declare const UInt32RulesSchema: GenMessage<UInt32Rules>;
1395
+ /**
1396
+ * UInt64Rules describes the rules applied to `uint64` values. These
1397
+ * rules may also be applied to the `google.protobuf.UInt64Value` Well-Known-Type.
1398
+ *
1399
+ * @generated from message buf.validate.UInt64Rules
1400
+ */
1401
+ type UInt64Rules = Message<"buf.validate.UInt64Rules"> & {
1402
+ /**
1403
+ * `const` requires the field value to exactly match the specified value. If
1404
+ * the field value doesn't match, an error message is generated.
1405
+ *
1406
+ * ```proto
1407
+ * message MyUInt64 {
1408
+ * // value must equal 42
1409
+ * uint64 value = 1 [(buf.validate.field).uint64.const = 42];
1410
+ * }
1411
+ * ```
1412
+ *
1413
+ * @generated from field: optional uint64 const = 1;
1414
+ */
1415
+ const: bigint;
1416
+ /**
1417
+ * @generated from oneof buf.validate.UInt64Rules.less_than
1418
+ */
1419
+ lessThan: {
1420
+ /**
1421
+ * `lt` requires the field value to be less than the specified value (field <
1422
+ * value). If the field value is equal to or greater than the specified value,
1423
+ * an error message is generated.
1424
+ *
1425
+ * ```proto
1426
+ * message MyUInt64 {
1427
+ * // value must be less than 10
1428
+ * uint64 value = 1 [(buf.validate.field).uint64.lt = 10];
1429
+ * }
1430
+ * ```
1431
+ *
1432
+ * @generated from field: uint64 lt = 2;
1433
+ */
1434
+ value: bigint;
1435
+ case: "lt";
1436
+ } | {
1437
+ /**
1438
+ * `lte` requires the field value to be less than or equal to the specified
1439
+ * value (field <= value). If the field value is greater than the specified
1440
+ * value, an error message is generated.
1441
+ *
1442
+ * ```proto
1443
+ * message MyUInt64 {
1444
+ * // value must be less than or equal to 10
1445
+ * uint64 value = 1 [(buf.validate.field).uint64.lte = 10];
1446
+ * }
1447
+ * ```
1448
+ *
1449
+ * @generated from field: uint64 lte = 3;
1450
+ */
1451
+ value: bigint;
1452
+ case: "lte";
1453
+ } | {
1454
+ case: undefined;
1455
+ value?: undefined;
1456
+ };
1457
+ /**
1458
+ * @generated from oneof buf.validate.UInt64Rules.greater_than
1459
+ */
1460
+ greaterThan: {
1461
+ /**
1462
+ * `gt` requires the field value to be greater than the specified value
1463
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or
1464
+ * `lte`, the range is reversed, and the field value must be outside the
1465
+ * specified range. If the field value doesn't meet the required conditions,
1466
+ * an error message is generated.
1467
+ *
1468
+ * ```proto
1469
+ * message MyUInt64 {
1470
+ * // value must be greater than 5 [uint64.gt]
1471
+ * uint64 value = 1 [(buf.validate.field).uint64.gt = 5];
1472
+ *
1473
+ * // value must be greater than 5 and less than 10 [uint64.gt_lt]
1474
+ * uint64 other_value = 2 [(buf.validate.field).uint64 = { gt: 5, lt: 10 }];
1475
+ *
1476
+ * // value must be greater than 10 or less than 5 [uint64.gt_lt_exclusive]
1477
+ * uint64 another_value = 3 [(buf.validate.field).uint64 = { gt: 10, lt: 5 }];
1478
+ * }
1479
+ * ```
1480
+ *
1481
+ * @generated from field: uint64 gt = 4;
1482
+ */
1483
+ value: bigint;
1484
+ case: "gt";
1485
+ } | {
1486
+ /**
1487
+ * `gte` requires the field value to be greater than or equal to the specified
1488
+ * value (exclusive). If the value of `gte` is larger than a specified `lt`
1489
+ * or `lte`, the range is reversed, and the field value must be outside the
1490
+ * specified range. If the field value doesn't meet the required conditions,
1491
+ * an error message is generated.
1492
+ *
1493
+ * ```proto
1494
+ * message MyUInt64 {
1495
+ * // value must be greater than or equal to 5 [uint64.gte]
1496
+ * uint64 value = 1 [(buf.validate.field).uint64.gte = 5];
1497
+ *
1498
+ * // value must be greater than or equal to 5 and less than 10 [uint64.gte_lt]
1499
+ * uint64 other_value = 2 [(buf.validate.field).uint64 = { gte: 5, lt: 10 }];
1500
+ *
1501
+ * // value must be greater than or equal to 10 or less than 5 [uint64.gte_lt_exclusive]
1502
+ * uint64 another_value = 3 [(buf.validate.field).uint64 = { gte: 10, lt: 5 }];
1503
+ * }
1504
+ * ```
1505
+ *
1506
+ * @generated from field: uint64 gte = 5;
1507
+ */
1508
+ value: bigint;
1509
+ case: "gte";
1510
+ } | {
1511
+ case: undefined;
1512
+ value?: undefined;
1513
+ };
1514
+ /**
1515
+ * `in` requires the field value to be equal to one of the specified values.
1516
+ * If the field value isn't one of the specified values, an error message is
1517
+ * generated.
1518
+ *
1519
+ * ```proto
1520
+ * message MyUInt64 {
1521
+ * // value must be in list [1, 2, 3]
1522
+ * uint64 value = 1 [(buf.validate.field).uint64 = { in: [1, 2, 3] }];
1523
+ * }
1524
+ * ```
1525
+ *
1526
+ * @generated from field: repeated uint64 in = 6;
1527
+ */
1528
+ in: bigint[];
1529
+ /**
1530
+ * `not_in` requires the field value to not be equal to any of the specified
1531
+ * values. If the field value is one of the specified values, an error
1532
+ * message is generated.
1533
+ *
1534
+ * ```proto
1535
+ * message MyUInt64 {
1536
+ * // value must not be in list [1, 2, 3]
1537
+ * uint64 value = 1 [(buf.validate.field).uint64 = { not_in: [1, 2, 3] }];
1538
+ * }
1539
+ * ```
1540
+ *
1541
+ * @generated from field: repeated uint64 not_in = 7;
1542
+ */
1543
+ notIn: bigint[];
1544
+ /**
1545
+ * `example` specifies values that the field may have. These values SHOULD
1546
+ * conform to other rules. `example` values will not impact validation
1547
+ * but may be used as helpful guidance on how to populate the given field.
1548
+ *
1549
+ * ```proto
1550
+ * message MyUInt64 {
1551
+ * uint64 value = 1 [
1552
+ * (buf.validate.field).uint64.example = 1,
1553
+ * (buf.validate.field).uint64.example = -10
1554
+ * ];
1555
+ * }
1556
+ * ```
1557
+ *
1558
+ * @generated from field: repeated uint64 example = 8;
1559
+ */
1560
+ example: bigint[];
1561
+ };
1562
+ /**
1563
+ * Describes the message buf.validate.UInt64Rules.
1564
+ * Use `create(UInt64RulesSchema)` to create a new message.
1565
+ */
1566
+ declare const UInt64RulesSchema: GenMessage<UInt64Rules>;
1567
+ /**
1568
+ * SInt32Rules describes the rules applied to `sint32` values.
1569
+ *
1570
+ * @generated from message buf.validate.SInt32Rules
1571
+ */
1572
+ type SInt32Rules = Message<"buf.validate.SInt32Rules"> & {
1573
+ /**
1574
+ * `const` requires the field value to exactly match the specified value. If
1575
+ * the field value doesn't match, an error message is generated.
1576
+ *
1577
+ * ```proto
1578
+ * message MySInt32 {
1579
+ * // value must equal 42
1580
+ * sint32 value = 1 [(buf.validate.field).sint32.const = 42];
1581
+ * }
1582
+ * ```
1583
+ *
1584
+ * @generated from field: optional sint32 const = 1;
1585
+ */
1586
+ const: number;
1587
+ /**
1588
+ * @generated from oneof buf.validate.SInt32Rules.less_than
1589
+ */
1590
+ lessThan: {
1591
+ /**
1592
+ * `lt` requires the field value to be less than the specified value (field
1593
+ * < value). If the field value is equal to or greater than the specified
1594
+ * value, an error message is generated.
1595
+ *
1596
+ * ```proto
1597
+ * message MySInt32 {
1598
+ * // value must be less than 10
1599
+ * sint32 value = 1 [(buf.validate.field).sint32.lt = 10];
1600
+ * }
1601
+ * ```
1602
+ *
1603
+ * @generated from field: sint32 lt = 2;
1604
+ */
1605
+ value: number;
1606
+ case: "lt";
1607
+ } | {
1608
+ /**
1609
+ * `lte` requires the field value to be less than or equal to the specified
1610
+ * value (field <= value). If the field value is greater than the specified
1611
+ * value, an error message is generated.
1612
+ *
1613
+ * ```proto
1614
+ * message MySInt32 {
1615
+ * // value must be less than or equal to 10
1616
+ * sint32 value = 1 [(buf.validate.field).sint32.lte = 10];
1617
+ * }
1618
+ * ```
1619
+ *
1620
+ * @generated from field: sint32 lte = 3;
1621
+ */
1622
+ value: number;
1623
+ case: "lte";
1624
+ } | {
1625
+ case: undefined;
1626
+ value?: undefined;
1627
+ };
1628
+ /**
1629
+ * @generated from oneof buf.validate.SInt32Rules.greater_than
1630
+ */
1631
+ greaterThan: {
1632
+ /**
1633
+ * `gt` requires the field value to be greater than the specified value
1634
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or
1635
+ * `lte`, the range is reversed, and the field value must be outside the
1636
+ * specified range. If the field value doesn't meet the required conditions,
1637
+ * an error message is generated.
1638
+ *
1639
+ * ```proto
1640
+ * message MySInt32 {
1641
+ * // value must be greater than 5 [sint32.gt]
1642
+ * sint32 value = 1 [(buf.validate.field).sint32.gt = 5];
1643
+ *
1644
+ * // value must be greater than 5 and less than 10 [sint32.gt_lt]
1645
+ * sint32 other_value = 2 [(buf.validate.field).sint32 = { gt: 5, lt: 10 }];
1646
+ *
1647
+ * // value must be greater than 10 or less than 5 [sint32.gt_lt_exclusive]
1648
+ * sint32 another_value = 3 [(buf.validate.field).sint32 = { gt: 10, lt: 5 }];
1649
+ * }
1650
+ * ```
1651
+ *
1652
+ * @generated from field: sint32 gt = 4;
1653
+ */
1654
+ value: number;
1655
+ case: "gt";
1656
+ } | {
1657
+ /**
1658
+ * `gte` requires the field value to be greater than or equal to the specified
1659
+ * value (exclusive). If the value of `gte` is larger than a specified `lt`
1660
+ * or `lte`, the range is reversed, and the field value must be outside the
1661
+ * specified range. If the field value doesn't meet the required conditions,
1662
+ * an error message is generated.
1663
+ *
1664
+ * ```proto
1665
+ * message MySInt32 {
1666
+ * // value must be greater than or equal to 5 [sint32.gte]
1667
+ * sint32 value = 1 [(buf.validate.field).sint32.gte = 5];
1668
+ *
1669
+ * // value must be greater than or equal to 5 and less than 10 [sint32.gte_lt]
1670
+ * sint32 other_value = 2 [(buf.validate.field).sint32 = { gte: 5, lt: 10 }];
1671
+ *
1672
+ * // value must be greater than or equal to 10 or less than 5 [sint32.gte_lt_exclusive]
1673
+ * sint32 another_value = 3 [(buf.validate.field).sint32 = { gte: 10, lt: 5 }];
1674
+ * }
1675
+ * ```
1676
+ *
1677
+ * @generated from field: sint32 gte = 5;
1678
+ */
1679
+ value: number;
1680
+ case: "gte";
1681
+ } | {
1682
+ case: undefined;
1683
+ value?: undefined;
1684
+ };
1685
+ /**
1686
+ * `in` requires the field value to be equal to one of the specified values.
1687
+ * If the field value isn't one of the specified values, an error message is
1688
+ * generated.
1689
+ *
1690
+ * ```proto
1691
+ * message MySInt32 {
1692
+ * // value must be in list [1, 2, 3]
1693
+ * sint32 value = 1 [(buf.validate.field).sint32 = { in: [1, 2, 3] }];
1694
+ * }
1695
+ * ```
1696
+ *
1697
+ * @generated from field: repeated sint32 in = 6;
1698
+ */
1699
+ in: number[];
1700
+ /**
1701
+ * `not_in` requires the field value to not be equal to any of the specified
1702
+ * values. If the field value is one of the specified values, an error
1703
+ * message is generated.
1704
+ *
1705
+ * ```proto
1706
+ * message MySInt32 {
1707
+ * // value must not be in list [1, 2, 3]
1708
+ * sint32 value = 1 [(buf.validate.field).sint32 = { not_in: [1, 2, 3] }];
1709
+ * }
1710
+ * ```
1711
+ *
1712
+ * @generated from field: repeated sint32 not_in = 7;
1713
+ */
1714
+ notIn: number[];
1715
+ /**
1716
+ * `example` specifies values that the field may have. These values SHOULD
1717
+ * conform to other rules. `example` values will not impact validation
1718
+ * but may be used as helpful guidance on how to populate the given field.
1719
+ *
1720
+ * ```proto
1721
+ * message MySInt32 {
1722
+ * sint32 value = 1 [
1723
+ * (buf.validate.field).sint32.example = 1,
1724
+ * (buf.validate.field).sint32.example = -10
1725
+ * ];
1726
+ * }
1727
+ * ```
1728
+ *
1729
+ * @generated from field: repeated sint32 example = 8;
1730
+ */
1731
+ example: number[];
1732
+ };
1733
+ /**
1734
+ * Describes the message buf.validate.SInt32Rules.
1735
+ * Use `create(SInt32RulesSchema)` to create a new message.
1736
+ */
1737
+ declare const SInt32RulesSchema: GenMessage<SInt32Rules>;
1738
+ /**
1739
+ * SInt64Rules describes the rules applied to `sint64` values.
1740
+ *
1741
+ * @generated from message buf.validate.SInt64Rules
1742
+ */
1743
+ type SInt64Rules = Message<"buf.validate.SInt64Rules"> & {
1744
+ /**
1745
+ * `const` requires the field value to exactly match the specified value. If
1746
+ * the field value doesn't match, an error message is generated.
1747
+ *
1748
+ * ```proto
1749
+ * message MySInt64 {
1750
+ * // value must equal 42
1751
+ * sint64 value = 1 [(buf.validate.field).sint64.const = 42];
1752
+ * }
1753
+ * ```
1754
+ *
1755
+ * @generated from field: optional sint64 const = 1;
1756
+ */
1757
+ const: bigint;
1758
+ /**
1759
+ * @generated from oneof buf.validate.SInt64Rules.less_than
1760
+ */
1761
+ lessThan: {
1762
+ /**
1763
+ * `lt` requires the field value to be less than the specified value (field
1764
+ * < value). If the field value is equal to or greater than the specified
1765
+ * value, an error message is generated.
1766
+ *
1767
+ * ```proto
1768
+ * message MySInt64 {
1769
+ * // value must be less than 10
1770
+ * sint64 value = 1 [(buf.validate.field).sint64.lt = 10];
1771
+ * }
1772
+ * ```
1773
+ *
1774
+ * @generated from field: sint64 lt = 2;
1775
+ */
1776
+ value: bigint;
1777
+ case: "lt";
1778
+ } | {
1779
+ /**
1780
+ * `lte` requires the field value to be less than or equal to the specified
1781
+ * value (field <= value). If the field value is greater than the specified
1782
+ * value, an error message is generated.
1783
+ *
1784
+ * ```proto
1785
+ * message MySInt64 {
1786
+ * // value must be less than or equal to 10
1787
+ * sint64 value = 1 [(buf.validate.field).sint64.lte = 10];
1788
+ * }
1789
+ * ```
1790
+ *
1791
+ * @generated from field: sint64 lte = 3;
1792
+ */
1793
+ value: bigint;
1794
+ case: "lte";
1795
+ } | {
1796
+ case: undefined;
1797
+ value?: undefined;
1798
+ };
1799
+ /**
1800
+ * @generated from oneof buf.validate.SInt64Rules.greater_than
1801
+ */
1802
+ greaterThan: {
1803
+ /**
1804
+ * `gt` requires the field value to be greater than the specified value
1805
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or
1806
+ * `lte`, the range is reversed, and the field value must be outside the
1807
+ * specified range. If the field value doesn't meet the required conditions,
1808
+ * an error message is generated.
1809
+ *
1810
+ * ```proto
1811
+ * message MySInt64 {
1812
+ * // value must be greater than 5 [sint64.gt]
1813
+ * sint64 value = 1 [(buf.validate.field).sint64.gt = 5];
1814
+ *
1815
+ * // value must be greater than 5 and less than 10 [sint64.gt_lt]
1816
+ * sint64 other_value = 2 [(buf.validate.field).sint64 = { gt: 5, lt: 10 }];
1817
+ *
1818
+ * // value must be greater than 10 or less than 5 [sint64.gt_lt_exclusive]
1819
+ * sint64 another_value = 3 [(buf.validate.field).sint64 = { gt: 10, lt: 5 }];
1820
+ * }
1821
+ * ```
1822
+ *
1823
+ * @generated from field: sint64 gt = 4;
1824
+ */
1825
+ value: bigint;
1826
+ case: "gt";
1827
+ } | {
1828
+ /**
1829
+ * `gte` requires the field value to be greater than or equal to the specified
1830
+ * value (exclusive). If the value of `gte` is larger than a specified `lt`
1831
+ * or `lte`, the range is reversed, and the field value must be outside the
1832
+ * specified range. If the field value doesn't meet the required conditions,
1833
+ * an error message is generated.
1834
+ *
1835
+ * ```proto
1836
+ * message MySInt64 {
1837
+ * // value must be greater than or equal to 5 [sint64.gte]
1838
+ * sint64 value = 1 [(buf.validate.field).sint64.gte = 5];
1839
+ *
1840
+ * // value must be greater than or equal to 5 and less than 10 [sint64.gte_lt]
1841
+ * sint64 other_value = 2 [(buf.validate.field).sint64 = { gte: 5, lt: 10 }];
1842
+ *
1843
+ * // value must be greater than or equal to 10 or less than 5 [sint64.gte_lt_exclusive]
1844
+ * sint64 another_value = 3 [(buf.validate.field).sint64 = { gte: 10, lt: 5 }];
1845
+ * }
1846
+ * ```
1847
+ *
1848
+ * @generated from field: sint64 gte = 5;
1849
+ */
1850
+ value: bigint;
1851
+ case: "gte";
1852
+ } | {
1853
+ case: undefined;
1854
+ value?: undefined;
1855
+ };
1856
+ /**
1857
+ * `in` requires the field value to be equal to one of the specified values.
1858
+ * If the field value isn't one of the specified values, an error message
1859
+ * is generated.
1860
+ *
1861
+ * ```proto
1862
+ * message MySInt64 {
1863
+ * // value must be in list [1, 2, 3]
1864
+ * sint64 value = 1 [(buf.validate.field).sint64 = { in: [1, 2, 3] }];
1865
+ * }
1866
+ * ```
1867
+ *
1868
+ * @generated from field: repeated sint64 in = 6;
1869
+ */
1870
+ in: bigint[];
1871
+ /**
1872
+ * `not_in` requires the field value to not be equal to any of the specified
1873
+ * values. If the field value is one of the specified values, an error
1874
+ * message is generated.
1875
+ *
1876
+ * ```proto
1877
+ * message MySInt64 {
1878
+ * // value must not be in list [1, 2, 3]
1879
+ * sint64 value = 1 [(buf.validate.field).sint64 = { not_in: [1, 2, 3] }];
1880
+ * }
1881
+ * ```
1882
+ *
1883
+ * @generated from field: repeated sint64 not_in = 7;
1884
+ */
1885
+ notIn: bigint[];
1886
+ /**
1887
+ * `example` specifies values that the field may have. These values SHOULD
1888
+ * conform to other rules. `example` values will not impact validation
1889
+ * but may be used as helpful guidance on how to populate the given field.
1890
+ *
1891
+ * ```proto
1892
+ * message MySInt64 {
1893
+ * sint64 value = 1 [
1894
+ * (buf.validate.field).sint64.example = 1,
1895
+ * (buf.validate.field).sint64.example = -10
1896
+ * ];
1897
+ * }
1898
+ * ```
1899
+ *
1900
+ * @generated from field: repeated sint64 example = 8;
1901
+ */
1902
+ example: bigint[];
1903
+ };
1904
+ /**
1905
+ * Describes the message buf.validate.SInt64Rules.
1906
+ * Use `create(SInt64RulesSchema)` to create a new message.
1907
+ */
1908
+ declare const SInt64RulesSchema: GenMessage<SInt64Rules>;
1909
+ /**
1910
+ * Fixed32Rules describes the rules applied to `fixed32` values.
1911
+ *
1912
+ * @generated from message buf.validate.Fixed32Rules
1913
+ */
1914
+ type Fixed32Rules = Message<"buf.validate.Fixed32Rules"> & {
1915
+ /**
1916
+ * `const` requires the field value to exactly match the specified value.
1917
+ * If the field value doesn't match, an error message is generated.
1918
+ *
1919
+ * ```proto
1920
+ * message MyFixed32 {
1921
+ * // value must equal 42
1922
+ * fixed32 value = 1 [(buf.validate.field).fixed32.const = 42];
1923
+ * }
1924
+ * ```
1925
+ *
1926
+ * @generated from field: optional fixed32 const = 1;
1927
+ */
1928
+ const: number;
1929
+ /**
1930
+ * @generated from oneof buf.validate.Fixed32Rules.less_than
1931
+ */
1932
+ lessThan: {
1933
+ /**
1934
+ * `lt` requires the field value to be less than the specified value (field <
1935
+ * value). If the field value is equal to or greater than the specified value,
1936
+ * an error message is generated.
1937
+ *
1938
+ * ```proto
1939
+ * message MyFixed32 {
1940
+ * // value must be less than 10
1941
+ * fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10];
1942
+ * }
1943
+ * ```
1944
+ *
1945
+ * @generated from field: fixed32 lt = 2;
1946
+ */
1947
+ value: number;
1948
+ case: "lt";
1949
+ } | {
1950
+ /**
1951
+ * `lte` requires the field value to be less than or equal to the specified
1952
+ * value (field <= value). If the field value is greater than the specified
1953
+ * value, an error message is generated.
1954
+ *
1955
+ * ```proto
1956
+ * message MyFixed32 {
1957
+ * // value must be less than or equal to 10
1958
+ * fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10];
1959
+ * }
1960
+ * ```
1961
+ *
1962
+ * @generated from field: fixed32 lte = 3;
1963
+ */
1964
+ value: number;
1965
+ case: "lte";
1966
+ } | {
1967
+ case: undefined;
1968
+ value?: undefined;
1969
+ };
1970
+ /**
1971
+ * @generated from oneof buf.validate.Fixed32Rules.greater_than
1972
+ */
1973
+ greaterThan: {
1974
+ /**
1975
+ * `gt` requires the field value to be greater than the specified value
1976
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or
1977
+ * `lte`, the range is reversed, and the field value must be outside the
1978
+ * specified range. If the field value doesn't meet the required conditions,
1979
+ * an error message is generated.
1980
+ *
1981
+ * ```proto
1982
+ * message MyFixed32 {
1983
+ * // value must be greater than 5 [fixed32.gt]
1984
+ * fixed32 value = 1 [(buf.validate.field).fixed32.gt = 5];
1985
+ *
1986
+ * // value must be greater than 5 and less than 10 [fixed32.gt_lt]
1987
+ * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gt: 5, lt: 10 }];
1988
+ *
1989
+ * // value must be greater than 10 or less than 5 [fixed32.gt_lt_exclusive]
1990
+ * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gt: 10, lt: 5 }];
1991
+ * }
1992
+ * ```
1993
+ *
1994
+ * @generated from field: fixed32 gt = 4;
1995
+ */
1996
+ value: number;
1997
+ case: "gt";
1998
+ } | {
1999
+ /**
2000
+ * `gte` requires the field value to be greater than or equal to the specified
2001
+ * value (exclusive). If the value of `gte` is larger than a specified `lt`
2002
+ * or `lte`, the range is reversed, and the field value must be outside the
2003
+ * specified range. If the field value doesn't meet the required conditions,
2004
+ * an error message is generated.
2005
+ *
2006
+ * ```proto
2007
+ * message MyFixed32 {
2008
+ * // value must be greater than or equal to 5 [fixed32.gte]
2009
+ * fixed32 value = 1 [(buf.validate.field).fixed32.gte = 5];
2010
+ *
2011
+ * // value must be greater than or equal to 5 and less than 10 [fixed32.gte_lt]
2012
+ * fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gte: 5, lt: 10 }];
2013
+ *
2014
+ * // value must be greater than or equal to 10 or less than 5 [fixed32.gte_lt_exclusive]
2015
+ * fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gte: 10, lt: 5 }];
2016
+ * }
2017
+ * ```
2018
+ *
2019
+ * @generated from field: fixed32 gte = 5;
2020
+ */
2021
+ value: number;
2022
+ case: "gte";
2023
+ } | {
2024
+ case: undefined;
2025
+ value?: undefined;
2026
+ };
2027
+ /**
2028
+ * `in` requires the field value to be equal to one of the specified values.
2029
+ * If the field value isn't one of the specified values, an error message
2030
+ * is generated.
2031
+ *
2032
+ * ```proto
2033
+ * message MyFixed32 {
2034
+ * // value must be in list [1, 2, 3]
2035
+ * fixed32 value = 1 [(buf.validate.field).fixed32 = { in: [1, 2, 3] }];
2036
+ * }
2037
+ * ```
2038
+ *
2039
+ * @generated from field: repeated fixed32 in = 6;
2040
+ */
2041
+ in: number[];
2042
+ /**
2043
+ * `not_in` requires the field value to not be equal to any of the specified
2044
+ * values. If the field value is one of the specified values, an error
2045
+ * message is generated.
2046
+ *
2047
+ * ```proto
2048
+ * message MyFixed32 {
2049
+ * // value must not be in list [1, 2, 3]
2050
+ * fixed32 value = 1 [(buf.validate.field).fixed32 = { not_in: [1, 2, 3] }];
2051
+ * }
2052
+ * ```
2053
+ *
2054
+ * @generated from field: repeated fixed32 not_in = 7;
2055
+ */
2056
+ notIn: number[];
2057
+ /**
2058
+ * `example` specifies values that the field may have. These values SHOULD
2059
+ * conform to other rules. `example` values will not impact validation
2060
+ * but may be used as helpful guidance on how to populate the given field.
2061
+ *
2062
+ * ```proto
2063
+ * message MyFixed32 {
2064
+ * fixed32 value = 1 [
2065
+ * (buf.validate.field).fixed32.example = 1,
2066
+ * (buf.validate.field).fixed32.example = 2
2067
+ * ];
2068
+ * }
2069
+ * ```
2070
+ *
2071
+ * @generated from field: repeated fixed32 example = 8;
2072
+ */
2073
+ example: number[];
2074
+ };
2075
+ /**
2076
+ * Describes the message buf.validate.Fixed32Rules.
2077
+ * Use `create(Fixed32RulesSchema)` to create a new message.
2078
+ */
2079
+ declare const Fixed32RulesSchema: GenMessage<Fixed32Rules>;
2080
+ /**
2081
+ * Fixed64Rules describes the rules applied to `fixed64` values.
2082
+ *
2083
+ * @generated from message buf.validate.Fixed64Rules
2084
+ */
2085
+ type Fixed64Rules = Message<"buf.validate.Fixed64Rules"> & {
2086
+ /**
2087
+ * `const` requires the field value to exactly match the specified value. If
2088
+ * the field value doesn't match, an error message is generated.
2089
+ *
2090
+ * ```proto
2091
+ * message MyFixed64 {
2092
+ * // value must equal 42
2093
+ * fixed64 value = 1 [(buf.validate.field).fixed64.const = 42];
2094
+ * }
2095
+ * ```
2096
+ *
2097
+ * @generated from field: optional fixed64 const = 1;
2098
+ */
2099
+ const: bigint;
2100
+ /**
2101
+ * @generated from oneof buf.validate.Fixed64Rules.less_than
2102
+ */
2103
+ lessThan: {
2104
+ /**
2105
+ * `lt` requires the field value to be less than the specified value (field <
2106
+ * value). If the field value is equal to or greater than the specified value,
2107
+ * an error message is generated.
2108
+ *
2109
+ * ```proto
2110
+ * message MyFixed64 {
2111
+ * // value must be less than 10
2112
+ * fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10];
2113
+ * }
2114
+ * ```
2115
+ *
2116
+ * @generated from field: fixed64 lt = 2;
2117
+ */
2118
+ value: bigint;
2119
+ case: "lt";
2120
+ } | {
2121
+ /**
2122
+ * `lte` requires the field value to be less than or equal to the specified
2123
+ * value (field <= value). If the field value is greater than the specified
2124
+ * value, an error message is generated.
2125
+ *
2126
+ * ```proto
2127
+ * message MyFixed64 {
2128
+ * // value must be less than or equal to 10
2129
+ * fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10];
2130
+ * }
2131
+ * ```
2132
+ *
2133
+ * @generated from field: fixed64 lte = 3;
2134
+ */
2135
+ value: bigint;
2136
+ case: "lte";
2137
+ } | {
2138
+ case: undefined;
2139
+ value?: undefined;
2140
+ };
2141
+ /**
2142
+ * @generated from oneof buf.validate.Fixed64Rules.greater_than
2143
+ */
2144
+ greaterThan: {
2145
+ /**
2146
+ * `gt` requires the field value to be greater than the specified value
2147
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or
2148
+ * `lte`, the range is reversed, and the field value must be outside the
2149
+ * specified range. If the field value doesn't meet the required conditions,
2150
+ * an error message is generated.
2151
+ *
2152
+ * ```proto
2153
+ * message MyFixed64 {
2154
+ * // value must be greater than 5 [fixed64.gt]
2155
+ * fixed64 value = 1 [(buf.validate.field).fixed64.gt = 5];
2156
+ *
2157
+ * // value must be greater than 5 and less than 10 [fixed64.gt_lt]
2158
+ * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gt: 5, lt: 10 }];
2159
+ *
2160
+ * // value must be greater than 10 or less than 5 [fixed64.gt_lt_exclusive]
2161
+ * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gt: 10, lt: 5 }];
2162
+ * }
2163
+ * ```
2164
+ *
2165
+ * @generated from field: fixed64 gt = 4;
2166
+ */
2167
+ value: bigint;
2168
+ case: "gt";
2169
+ } | {
2170
+ /**
2171
+ * `gte` requires the field value to be greater than or equal to the specified
2172
+ * value (exclusive). If the value of `gte` is larger than a specified `lt`
2173
+ * or `lte`, the range is reversed, and the field value must be outside the
2174
+ * specified range. If the field value doesn't meet the required conditions,
2175
+ * an error message is generated.
2176
+ *
2177
+ * ```proto
2178
+ * message MyFixed64 {
2179
+ * // value must be greater than or equal to 5 [fixed64.gte]
2180
+ * fixed64 value = 1 [(buf.validate.field).fixed64.gte = 5];
2181
+ *
2182
+ * // value must be greater than or equal to 5 and less than 10 [fixed64.gte_lt]
2183
+ * fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gte: 5, lt: 10 }];
2184
+ *
2185
+ * // value must be greater than or equal to 10 or less than 5 [fixed64.gte_lt_exclusive]
2186
+ * fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gte: 10, lt: 5 }];
2187
+ * }
2188
+ * ```
2189
+ *
2190
+ * @generated from field: fixed64 gte = 5;
2191
+ */
2192
+ value: bigint;
2193
+ case: "gte";
2194
+ } | {
2195
+ case: undefined;
2196
+ value?: undefined;
2197
+ };
2198
+ /**
2199
+ * `in` requires the field value to be equal to one of the specified values.
2200
+ * If the field value isn't one of the specified values, an error message is
2201
+ * generated.
2202
+ *
2203
+ * ```proto
2204
+ * message MyFixed64 {
2205
+ * // value must be in list [1, 2, 3]
2206
+ * fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }];
2207
+ * }
2208
+ * ```
2209
+ *
2210
+ * @generated from field: repeated fixed64 in = 6;
2211
+ */
2212
+ in: bigint[];
2213
+ /**
2214
+ * `not_in` requires the field value to not be equal to any of the specified
2215
+ * values. If the field value is one of the specified values, an error
2216
+ * message is generated.
2217
+ *
2218
+ * ```proto
2219
+ * message MyFixed64 {
2220
+ * // value must not be in list [1, 2, 3]
2221
+ * fixed64 value = 1 [(buf.validate.field).fixed64 = { not_in: [1, 2, 3] }];
2222
+ * }
2223
+ * ```
2224
+ *
2225
+ * @generated from field: repeated fixed64 not_in = 7;
2226
+ */
2227
+ notIn: bigint[];
2228
+ /**
2229
+ * `example` specifies values that the field may have. These values SHOULD
2230
+ * conform to other rules. `example` values will not impact validation
2231
+ * but may be used as helpful guidance on how to populate the given field.
2232
+ *
2233
+ * ```proto
2234
+ * message MyFixed64 {
2235
+ * fixed64 value = 1 [
2236
+ * (buf.validate.field).fixed64.example = 1,
2237
+ * (buf.validate.field).fixed64.example = 2
2238
+ * ];
2239
+ * }
2240
+ * ```
2241
+ *
2242
+ * @generated from field: repeated fixed64 example = 8;
2243
+ */
2244
+ example: bigint[];
2245
+ };
2246
+ /**
2247
+ * Describes the message buf.validate.Fixed64Rules.
2248
+ * Use `create(Fixed64RulesSchema)` to create a new message.
2249
+ */
2250
+ declare const Fixed64RulesSchema: GenMessage<Fixed64Rules>;
2251
+ /**
2252
+ * SFixed32Rules describes the rules applied to `fixed32` values.
2253
+ *
2254
+ * @generated from message buf.validate.SFixed32Rules
2255
+ */
2256
+ type SFixed32Rules = Message<"buf.validate.SFixed32Rules"> & {
2257
+ /**
2258
+ * `const` requires the field value to exactly match the specified value. If
2259
+ * the field value doesn't match, an error message is generated.
2260
+ *
2261
+ * ```proto
2262
+ * message MySFixed32 {
2263
+ * // value must equal 42
2264
+ * sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42];
2265
+ * }
2266
+ * ```
2267
+ *
2268
+ * @generated from field: optional sfixed32 const = 1;
2269
+ */
2270
+ const: number;
2271
+ /**
2272
+ * @generated from oneof buf.validate.SFixed32Rules.less_than
2273
+ */
2274
+ lessThan: {
2275
+ /**
2276
+ * `lt` requires the field value to be less than the specified value (field <
2277
+ * value). If the field value is equal to or greater than the specified value,
2278
+ * an error message is generated.
2279
+ *
2280
+ * ```proto
2281
+ * message MySFixed32 {
2282
+ * // value must be less than 10
2283
+ * sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10];
2284
+ * }
2285
+ * ```
2286
+ *
2287
+ * @generated from field: sfixed32 lt = 2;
2288
+ */
2289
+ value: number;
2290
+ case: "lt";
2291
+ } | {
2292
+ /**
2293
+ * `lte` requires the field value to be less than or equal to the specified
2294
+ * value (field <= value). If the field value is greater than the specified
2295
+ * value, an error message is generated.
2296
+ *
2297
+ * ```proto
2298
+ * message MySFixed32 {
2299
+ * // value must be less than or equal to 10
2300
+ * sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10];
2301
+ * }
2302
+ * ```
2303
+ *
2304
+ * @generated from field: sfixed32 lte = 3;
2305
+ */
2306
+ value: number;
2307
+ case: "lte";
2308
+ } | {
2309
+ case: undefined;
2310
+ value?: undefined;
2311
+ };
2312
+ /**
2313
+ * @generated from oneof buf.validate.SFixed32Rules.greater_than
2314
+ */
2315
+ greaterThan: {
2316
+ /**
2317
+ * `gt` requires the field value to be greater than the specified value
2318
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or
2319
+ * `lte`, the range is reversed, and the field value must be outside the
2320
+ * specified range. If the field value doesn't meet the required conditions,
2321
+ * an error message is generated.
2322
+ *
2323
+ * ```proto
2324
+ * message MySFixed32 {
2325
+ * // value must be greater than 5 [sfixed32.gt]
2326
+ * sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5];
2327
+ *
2328
+ * // value must be greater than 5 and less than 10 [sfixed32.gt_lt]
2329
+ * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }];
2330
+ *
2331
+ * // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]
2332
+ * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }];
2333
+ * }
2334
+ * ```
2335
+ *
2336
+ * @generated from field: sfixed32 gt = 4;
2337
+ */
2338
+ value: number;
2339
+ case: "gt";
2340
+ } | {
2341
+ /**
2342
+ * `gte` requires the field value to be greater than or equal to the specified
2343
+ * value (exclusive). If the value of `gte` is larger than a specified `lt`
2344
+ * or `lte`, the range is reversed, and the field value must be outside the
2345
+ * specified range. If the field value doesn't meet the required conditions,
2346
+ * an error message is generated.
2347
+ *
2348
+ * ```proto
2349
+ * message MySFixed32 {
2350
+ * // value must be greater than or equal to 5 [sfixed32.gte]
2351
+ * sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5];
2352
+ *
2353
+ * // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]
2354
+ * sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }];
2355
+ *
2356
+ * // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]
2357
+ * sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }];
2358
+ * }
2359
+ * ```
2360
+ *
2361
+ * @generated from field: sfixed32 gte = 5;
2362
+ */
2363
+ value: number;
2364
+ case: "gte";
2365
+ } | {
2366
+ case: undefined;
2367
+ value?: undefined;
2368
+ };
2369
+ /**
2370
+ * `in` requires the field value to be equal to one of the specified values.
2371
+ * If the field value isn't one of the specified values, an error message is
2372
+ * generated.
2373
+ *
2374
+ * ```proto
2375
+ * message MySFixed32 {
2376
+ * // value must be in list [1, 2, 3]
2377
+ * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { in: [1, 2, 3] }];
2378
+ * }
2379
+ * ```
2380
+ *
2381
+ * @generated from field: repeated sfixed32 in = 6;
2382
+ */
2383
+ in: number[];
2384
+ /**
2385
+ * `not_in` requires the field value to not be equal to any of the specified
2386
+ * values. If the field value is one of the specified values, an error
2387
+ * message is generated.
2388
+ *
2389
+ * ```proto
2390
+ * message MySFixed32 {
2391
+ * // value must not be in list [1, 2, 3]
2392
+ * sfixed32 value = 1 [(buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }];
2393
+ * }
2394
+ * ```
2395
+ *
2396
+ * @generated from field: repeated sfixed32 not_in = 7;
2397
+ */
2398
+ notIn: number[];
2399
+ /**
2400
+ * `example` specifies values that the field may have. These values SHOULD
2401
+ * conform to other rules. `example` values will not impact validation
2402
+ * but may be used as helpful guidance on how to populate the given field.
2403
+ *
2404
+ * ```proto
2405
+ * message MySFixed32 {
2406
+ * sfixed32 value = 1 [
2407
+ * (buf.validate.field).sfixed32.example = 1,
2408
+ * (buf.validate.field).sfixed32.example = 2
2409
+ * ];
2410
+ * }
2411
+ * ```
2412
+ *
2413
+ * @generated from field: repeated sfixed32 example = 8;
2414
+ */
2415
+ example: number[];
2416
+ };
2417
+ /**
2418
+ * Describes the message buf.validate.SFixed32Rules.
2419
+ * Use `create(SFixed32RulesSchema)` to create a new message.
2420
+ */
2421
+ declare const SFixed32RulesSchema: GenMessage<SFixed32Rules>;
2422
+ /**
2423
+ * SFixed64Rules describes the rules applied to `fixed64` values.
2424
+ *
2425
+ * @generated from message buf.validate.SFixed64Rules
2426
+ */
2427
+ type SFixed64Rules = Message<"buf.validate.SFixed64Rules"> & {
2428
+ /**
2429
+ * `const` requires the field value to exactly match the specified value. If
2430
+ * the field value doesn't match, an error message is generated.
2431
+ *
2432
+ * ```proto
2433
+ * message MySFixed64 {
2434
+ * // value must equal 42
2435
+ * sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42];
2436
+ * }
2437
+ * ```
2438
+ *
2439
+ * @generated from field: optional sfixed64 const = 1;
2440
+ */
2441
+ const: bigint;
2442
+ /**
2443
+ * @generated from oneof buf.validate.SFixed64Rules.less_than
2444
+ */
2445
+ lessThan: {
2446
+ /**
2447
+ * `lt` requires the field value to be less than the specified value (field <
2448
+ * value). If the field value is equal to or greater than the specified value,
2449
+ * an error message is generated.
2450
+ *
2451
+ * ```proto
2452
+ * message MySFixed64 {
2453
+ * // value must be less than 10
2454
+ * sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10];
2455
+ * }
2456
+ * ```
2457
+ *
2458
+ * @generated from field: sfixed64 lt = 2;
2459
+ */
2460
+ value: bigint;
2461
+ case: "lt";
2462
+ } | {
2463
+ /**
2464
+ * `lte` requires the field value to be less than or equal to the specified
2465
+ * value (field <= value). If the field value is greater than the specified
2466
+ * value, an error message is generated.
2467
+ *
2468
+ * ```proto
2469
+ * message MySFixed64 {
2470
+ * // value must be less than or equal to 10
2471
+ * sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10];
2472
+ * }
2473
+ * ```
2474
+ *
2475
+ * @generated from field: sfixed64 lte = 3;
2476
+ */
2477
+ value: bigint;
2478
+ case: "lte";
2479
+ } | {
2480
+ case: undefined;
2481
+ value?: undefined;
2482
+ };
2483
+ /**
2484
+ * @generated from oneof buf.validate.SFixed64Rules.greater_than
2485
+ */
2486
+ greaterThan: {
2487
+ /**
2488
+ * `gt` requires the field value to be greater than the specified value
2489
+ * (exclusive). If the value of `gt` is larger than a specified `lt` or
2490
+ * `lte`, the range is reversed, and the field value must be outside the
2491
+ * specified range. If the field value doesn't meet the required conditions,
2492
+ * an error message is generated.
2493
+ *
2494
+ * ```proto
2495
+ * message MySFixed64 {
2496
+ * // value must be greater than 5 [sfixed64.gt]
2497
+ * sfixed64 value = 1 [(buf.validate.field).sfixed64.gt = 5];
2498
+ *
2499
+ * // value must be greater than 5 and less than 10 [sfixed64.gt_lt]
2500
+ * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gt: 5, lt: 10 }];
2501
+ *
2502
+ * // value must be greater than 10 or less than 5 [sfixed64.gt_lt_exclusive]
2503
+ * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gt: 10, lt: 5 }];
2504
+ * }
2505
+ * ```
2506
+ *
2507
+ * @generated from field: sfixed64 gt = 4;
2508
+ */
2509
+ value: bigint;
2510
+ case: "gt";
2511
+ } | {
2512
+ /**
2513
+ * `gte` requires the field value to be greater than or equal to the specified
2514
+ * value (exclusive). If the value of `gte` is larger than a specified `lt`
2515
+ * or `lte`, the range is reversed, and the field value must be outside the
2516
+ * specified range. If the field value doesn't meet the required conditions,
2517
+ * an error message is generated.
2518
+ *
2519
+ * ```proto
2520
+ * message MySFixed64 {
2521
+ * // value must be greater than or equal to 5 [sfixed64.gte]
2522
+ * sfixed64 value = 1 [(buf.validate.field).sfixed64.gte = 5];
2523
+ *
2524
+ * // value must be greater than or equal to 5 and less than 10 [sfixed64.gte_lt]
2525
+ * sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gte: 5, lt: 10 }];
2526
+ *
2527
+ * // value must be greater than or equal to 10 or less than 5 [sfixed64.gte_lt_exclusive]
2528
+ * sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gte: 10, lt: 5 }];
2529
+ * }
2530
+ * ```
2531
+ *
2532
+ * @generated from field: sfixed64 gte = 5;
2533
+ */
2534
+ value: bigint;
2535
+ case: "gte";
2536
+ } | {
2537
+ case: undefined;
2538
+ value?: undefined;
2539
+ };
2540
+ /**
2541
+ * `in` requires the field value to be equal to one of the specified values.
2542
+ * If the field value isn't one of the specified values, an error message is
2543
+ * generated.
2544
+ *
2545
+ * ```proto
2546
+ * message MySFixed64 {
2547
+ * // value must be in list [1, 2, 3]
2548
+ * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { in: [1, 2, 3] }];
2549
+ * }
2550
+ * ```
2551
+ *
2552
+ * @generated from field: repeated sfixed64 in = 6;
2553
+ */
2554
+ in: bigint[];
2555
+ /**
2556
+ * `not_in` requires the field value to not be equal to any of the specified
2557
+ * values. If the field value is one of the specified values, an error
2558
+ * message is generated.
2559
+ *
2560
+ * ```proto
2561
+ * message MySFixed64 {
2562
+ * // value must not be in list [1, 2, 3]
2563
+ * sfixed64 value = 1 [(buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }];
2564
+ * }
2565
+ * ```
2566
+ *
2567
+ * @generated from field: repeated sfixed64 not_in = 7;
2568
+ */
2569
+ notIn: bigint[];
2570
+ /**
2571
+ * `example` specifies values that the field may have. These values SHOULD
2572
+ * conform to other rules. `example` values will not impact validation
2573
+ * but may be used as helpful guidance on how to populate the given field.
2574
+ *
2575
+ * ```proto
2576
+ * message MySFixed64 {
2577
+ * sfixed64 value = 1 [
2578
+ * (buf.validate.field).sfixed64.example = 1,
2579
+ * (buf.validate.field).sfixed64.example = 2
2580
+ * ];
2581
+ * }
2582
+ * ```
2583
+ *
2584
+ * @generated from field: repeated sfixed64 example = 8;
2585
+ */
2586
+ example: bigint[];
2587
+ };
2588
+ /**
2589
+ * Describes the message buf.validate.SFixed64Rules.
2590
+ * Use `create(SFixed64RulesSchema)` to create a new message.
2591
+ */
2592
+ declare const SFixed64RulesSchema: GenMessage<SFixed64Rules>;
2593
+ /**
2594
+ * BoolRules describes the rules applied to `bool` values. These rules
2595
+ * may also be applied to the `google.protobuf.BoolValue` Well-Known-Type.
2596
+ *
2597
+ * @generated from message buf.validate.BoolRules
2598
+ */
2599
+ type BoolRules = Message<"buf.validate.BoolRules"> & {
2600
+ /**
2601
+ * `const` requires the field value to exactly match the specified boolean value.
2602
+ * If the field value doesn't match, an error message is generated.
2603
+ *
2604
+ * ```proto
2605
+ * message MyBool {
2606
+ * // value must equal true
2607
+ * bool value = 1 [(buf.validate.field).bool.const = true];
2608
+ * }
2609
+ * ```
2610
+ *
2611
+ * @generated from field: optional bool const = 1;
2612
+ */
2613
+ const: boolean;
2614
+ /**
2615
+ * `example` specifies values that the field may have. These values SHOULD
2616
+ * conform to other rules. `example` values will not impact validation
2617
+ * but may be used as helpful guidance on how to populate the given field.
2618
+ *
2619
+ * ```proto
2620
+ * message MyBool {
2621
+ * bool value = 1 [
2622
+ * (buf.validate.field).bool.example = 1,
2623
+ * (buf.validate.field).bool.example = 2
2624
+ * ];
2625
+ * }
2626
+ * ```
2627
+ *
2628
+ * @generated from field: repeated bool example = 2;
2629
+ */
2630
+ example: boolean[];
2631
+ };
2632
+ /**
2633
+ * Describes the message buf.validate.BoolRules.
2634
+ * Use `create(BoolRulesSchema)` to create a new message.
2635
+ */
2636
+ declare const BoolRulesSchema: GenMessage<BoolRules>;
2637
+ /**
2638
+ * StringRules describes the rules applied to `string` values These
2639
+ * rules may also be applied to the `google.protobuf.StringValue` Well-Known-Type.
2640
+ *
2641
+ * @generated from message buf.validate.StringRules
2642
+ */
2643
+ type StringRules = Message<"buf.validate.StringRules"> & {
2644
+ /**
2645
+ * `const` requires the field value to exactly match the specified value. If
2646
+ * the field value doesn't match, an error message is generated.
2647
+ *
2648
+ * ```proto
2649
+ * message MyString {
2650
+ * // value must equal `hello`
2651
+ * string value = 1 [(buf.validate.field).string.const = "hello"];
2652
+ * }
2653
+ * ```
2654
+ *
2655
+ * @generated from field: optional string const = 1;
2656
+ */
2657
+ const: string;
2658
+ /**
2659
+ * `len` dictates that the field value must have the specified
2660
+ * number of characters (Unicode code points), which may differ from the number
2661
+ * of bytes in the string. If the field value does not meet the specified
2662
+ * length, an error message will be generated.
2663
+ *
2664
+ * ```proto
2665
+ * message MyString {
2666
+ * // value length must be 5 characters
2667
+ * string value = 1 [(buf.validate.field).string.len = 5];
2668
+ * }
2669
+ * ```
2670
+ *
2671
+ * @generated from field: optional uint64 len = 19;
2672
+ */
2673
+ len: bigint;
2674
+ /**
2675
+ * `min_len` specifies that the field value must have at least the specified
2676
+ * number of characters (Unicode code points), which may differ from the number
2677
+ * of bytes in the string. If the field value contains fewer characters, an error
2678
+ * message will be generated.
2679
+ *
2680
+ * ```proto
2681
+ * message MyString {
2682
+ * // value length must be at least 3 characters
2683
+ * string value = 1 [(buf.validate.field).string.min_len = 3];
2684
+ * }
2685
+ * ```
2686
+ *
2687
+ * @generated from field: optional uint64 min_len = 2;
2688
+ */
2689
+ minLen: bigint;
2690
+ /**
2691
+ * `max_len` specifies that the field value must have no more than the specified
2692
+ * number of characters (Unicode code points), which may differ from the
2693
+ * number of bytes in the string. If the field value contains more characters,
2694
+ * an error message will be generated.
2695
+ *
2696
+ * ```proto
2697
+ * message MyString {
2698
+ * // value length must be at most 10 characters
2699
+ * string value = 1 [(buf.validate.field).string.max_len = 10];
2700
+ * }
2701
+ * ```
2702
+ *
2703
+ * @generated from field: optional uint64 max_len = 3;
2704
+ */
2705
+ maxLen: bigint;
2706
+ /**
2707
+ * `len_bytes` dictates that the field value must have the specified number of
2708
+ * bytes. If the field value does not match the specified length in bytes,
2709
+ * an error message will be generated.
2710
+ *
2711
+ * ```proto
2712
+ * message MyString {
2713
+ * // value length must be 6 bytes
2714
+ * string value = 1 [(buf.validate.field).string.len_bytes = 6];
2715
+ * }
2716
+ * ```
2717
+ *
2718
+ * @generated from field: optional uint64 len_bytes = 20;
2719
+ */
2720
+ lenBytes: bigint;
2721
+ /**
2722
+ * `min_bytes` specifies that the field value must have at least the specified
2723
+ * number of bytes. If the field value contains fewer bytes, an error message
2724
+ * will be generated.
2725
+ *
2726
+ * ```proto
2727
+ * message MyString {
2728
+ * // value length must be at least 4 bytes
2729
+ * string value = 1 [(buf.validate.field).string.min_bytes = 4];
2730
+ * }
2731
+ *
2732
+ * ```
2733
+ *
2734
+ * @generated from field: optional uint64 min_bytes = 4;
2735
+ */
2736
+ minBytes: bigint;
2737
+ /**
2738
+ * `max_bytes` specifies that the field value must have no more than the
2739
+ * specified number of bytes. If the field value contains more bytes, an
2740
+ * error message will be generated.
2741
+ *
2742
+ * ```proto
2743
+ * message MyString {
2744
+ * // value length must be at most 8 bytes
2745
+ * string value = 1 [(buf.validate.field).string.max_bytes = 8];
2746
+ * }
2747
+ * ```
2748
+ *
2749
+ * @generated from field: optional uint64 max_bytes = 5;
2750
+ */
2751
+ maxBytes: bigint;
2752
+ /**
2753
+ * `pattern` specifies that the field value must match the specified
2754
+ * regular expression (RE2 syntax), with the expression provided without any
2755
+ * delimiters. If the field value doesn't match the regular expression, an
2756
+ * error message will be generated.
2757
+ *
2758
+ * ```proto
2759
+ * message MyString {
2760
+ * // value does not match regex pattern `^[a-zA-Z]//$`
2761
+ * string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"];
2762
+ * }
2763
+ * ```
2764
+ *
2765
+ * @generated from field: optional string pattern = 6;
2766
+ */
2767
+ pattern: string;
2768
+ /**
2769
+ * `prefix` specifies that the field value must have the
2770
+ * specified substring at the beginning of the string. If the field value
2771
+ * doesn't start with the specified prefix, an error message will be
2772
+ * generated.
2773
+ *
2774
+ * ```proto
2775
+ * message MyString {
2776
+ * // value does not have prefix `pre`
2777
+ * string value = 1 [(buf.validate.field).string.prefix = "pre"];
2778
+ * }
2779
+ * ```
2780
+ *
2781
+ * @generated from field: optional string prefix = 7;
2782
+ */
2783
+ prefix: string;
2784
+ /**
2785
+ * `suffix` specifies that the field value must have the
2786
+ * specified substring at the end of the string. If the field value doesn't
2787
+ * end with the specified suffix, an error message will be generated.
2788
+ *
2789
+ * ```proto
2790
+ * message MyString {
2791
+ * // value does not have suffix `post`
2792
+ * string value = 1 [(buf.validate.field).string.suffix = "post"];
2793
+ * }
2794
+ * ```
2795
+ *
2796
+ * @generated from field: optional string suffix = 8;
2797
+ */
2798
+ suffix: string;
2799
+ /**
2800
+ * `contains` specifies that the field value must have the
2801
+ * specified substring anywhere in the string. If the field value doesn't
2802
+ * contain the specified substring, an error message will be generated.
2803
+ *
2804
+ * ```proto
2805
+ * message MyString {
2806
+ * // value does not contain substring `inside`.
2807
+ * string value = 1 [(buf.validate.field).string.contains = "inside"];
2808
+ * }
2809
+ * ```
2810
+ *
2811
+ * @generated from field: optional string contains = 9;
2812
+ */
2813
+ contains: string;
2814
+ /**
2815
+ * `not_contains` specifies that the field value must not have the
2816
+ * specified substring anywhere in the string. If the field value contains
2817
+ * the specified substring, an error message will be generated.
2818
+ *
2819
+ * ```proto
2820
+ * message MyString {
2821
+ * // value contains substring `inside`.
2822
+ * string value = 1 [(buf.validate.field).string.not_contains = "inside"];
2823
+ * }
2824
+ * ```
2825
+ *
2826
+ * @generated from field: optional string not_contains = 23;
2827
+ */
2828
+ notContains: string;
2829
+ /**
2830
+ * `in` specifies that the field value must be equal to one of the specified
2831
+ * values. If the field value isn't one of the specified values, an error
2832
+ * message will be generated.
2833
+ *
2834
+ * ```proto
2835
+ * message MyString {
2836
+ * // value must be in list ["apple", "banana"]
2837
+ * string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
2838
+ * }
2839
+ * ```
2840
+ *
2841
+ * @generated from field: repeated string in = 10;
2842
+ */
2843
+ in: string[];
2844
+ /**
2845
+ * `not_in` specifies that the field value cannot be equal to any
2846
+ * of the specified values. If the field value is one of the specified values,
2847
+ * an error message will be generated.
2848
+ * ```proto
2849
+ * message MyString {
2850
+ * // value must not be in list ["orange", "grape"]
2851
+ * string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
2852
+ * }
2853
+ * ```
2854
+ *
2855
+ * @generated from field: repeated string not_in = 11;
2856
+ */
2857
+ notIn: string[];
2858
+ /**
2859
+ * `WellKnown` rules provide advanced rules against common string
2860
+ * patterns.
2861
+ *
2862
+ * @generated from oneof buf.validate.StringRules.well_known
2863
+ */
2864
+ wellKnown: {
2865
+ /**
2866
+ * `email` specifies that the field value must be a valid email address, for
2867
+ * example "foo@example.com".
2868
+ *
2869
+ * Conforms to the definition for a valid email address from the [HTML standard](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address).
2870
+ * Note that this standard willfully deviates from [RFC 5322](https://datatracker.ietf.org/doc/html/rfc5322),
2871
+ * which allows many unexpected forms of email addresses and will easily match
2872
+ * a typographical error.
2873
+ *
2874
+ * If the field value isn't a valid email address, an error message will be generated.
2875
+ *
2876
+ * ```proto
2877
+ * message MyString {
2878
+ * // value must be a valid email address
2879
+ * string value = 1 [(buf.validate.field).string.email = true];
2880
+ * }
2881
+ * ```
2882
+ *
2883
+ * @generated from field: bool email = 12;
2884
+ */
2885
+ value: boolean;
2886
+ case: "email";
2887
+ } | {
2888
+ /**
2889
+ * `hostname` specifies that the field value must be a valid hostname, for
2890
+ * example "foo.example.com".
2891
+ *
2892
+ * A valid hostname follows the rules below:
2893
+ * - The name consists of one or more labels, separated by a dot (".").
2894
+ * - Each label can be 1 to 63 alphanumeric characters.
2895
+ * - A label can contain hyphens ("-"), but must not start or end with a hyphen.
2896
+ * - The right-most label must not be digits only.
2897
+ * - The name can have a trailing dot—for example, "foo.example.com.".
2898
+ * - The name can be 253 characters at most, excluding the optional trailing dot.
2899
+ *
2900
+ * If the field value isn't a valid hostname, an error message will be generated.
2901
+ *
2902
+ * ```proto
2903
+ * message MyString {
2904
+ * // value must be a valid hostname
2905
+ * string value = 1 [(buf.validate.field).string.hostname = true];
2906
+ * }
2907
+ * ```
2908
+ *
2909
+ * @generated from field: bool hostname = 13;
2910
+ */
2911
+ value: boolean;
2912
+ case: "hostname";
2913
+ } | {
2914
+ /**
2915
+ * `ip` specifies that the field value must be a valid IP (v4 or v6) address.
2916
+ *
2917
+ * IPv4 addresses are expected in the dotted decimal format—for example, "192.168.5.21".
2918
+ * IPv6 addresses are expected in their text representation—for example, "::1",
2919
+ * or "2001:0DB8:ABCD:0012::0".
2920
+ *
2921
+ * Both formats are well-defined in the internet standard [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986).
2922
+ * Zone identifiers for IPv6 addresses (for example, "fe80::a%en1") are supported.
2923
+ *
2924
+ * If the field value isn't a valid IP address, an error message will be
2925
+ * generated.
2926
+ *
2927
+ * ```proto
2928
+ * message MyString {
2929
+ * // value must be a valid IP address
2930
+ * string value = 1 [(buf.validate.field).string.ip = true];
2931
+ * }
2932
+ * ```
2933
+ *
2934
+ * @generated from field: bool ip = 14;
2935
+ */
2936
+ value: boolean;
2937
+ case: "ip";
2938
+ } | {
2939
+ /**
2940
+ * `ipv4` specifies that the field value must be a valid IPv4 address—for
2941
+ * example "192.168.5.21". If the field value isn't a valid IPv4 address, an
2942
+ * error message will be generated.
2943
+ *
2944
+ * ```proto
2945
+ * message MyString {
2946
+ * // value must be a valid IPv4 address
2947
+ * string value = 1 [(buf.validate.field).string.ipv4 = true];
2948
+ * }
2949
+ * ```
2950
+ *
2951
+ * @generated from field: bool ipv4 = 15;
2952
+ */
2953
+ value: boolean;
2954
+ case: "ipv4";
2955
+ } | {
2956
+ /**
2957
+ * `ipv6` specifies that the field value must be a valid IPv6 address—for
2958
+ * example "::1", or "d7a:115c:a1e0:ab12:4843:cd96:626b:430b". If the field
2959
+ * value is not a valid IPv6 address, an error message will be generated.
2960
+ *
2961
+ * ```proto
2962
+ * message MyString {
2963
+ * // value must be a valid IPv6 address
2964
+ * string value = 1 [(buf.validate.field).string.ipv6 = true];
2965
+ * }
2966
+ * ```
2967
+ *
2968
+ * @generated from field: bool ipv6 = 16;
2969
+ */
2970
+ value: boolean;
2971
+ case: "ipv6";
2972
+ } | {
2973
+ /**
2974
+ * `uri` specifies that the field value must be a valid URI, for example
2975
+ * "https://example.com/foo/bar?baz=quux#frag".
2976
+ *
2977
+ * URI is defined in the internet standard [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986).
2978
+ * Zone Identifiers in IPv6 address literals are supported ([RFC 6874](https://datatracker.ietf.org/doc/html/rfc6874)).
2979
+ *
2980
+ * If the field value isn't a valid URI, an error message will be generated.
2981
+ *
2982
+ * ```proto
2983
+ * message MyString {
2984
+ * // value must be a valid URI
2985
+ * string value = 1 [(buf.validate.field).string.uri = true];
2986
+ * }
2987
+ * ```
2988
+ *
2989
+ * @generated from field: bool uri = 17;
2990
+ */
2991
+ value: boolean;
2992
+ case: "uri";
2993
+ } | {
2994
+ /**
2995
+ * `uri_ref` specifies that the field value must be a valid URI Reference—either
2996
+ * a URI such as "https://example.com/foo/bar?baz=quux#frag", or a Relative
2997
+ * Reference such as "./foo/bar?query".
2998
+ *
2999
+ * URI, URI Reference, and Relative Reference are defined in the internet
3000
+ * standard [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986). Zone
3001
+ * Identifiers in IPv6 address literals are supported ([RFC 6874](https://datatracker.ietf.org/doc/html/rfc6874)).
3002
+ *
3003
+ * If the field value isn't a valid URI Reference, an error message will be
3004
+ * generated.
3005
+ *
3006
+ * ```proto
3007
+ * message MyString {
3008
+ * // value must be a valid URI Reference
3009
+ * string value = 1 [(buf.validate.field).string.uri_ref = true];
3010
+ * }
3011
+ * ```
3012
+ *
3013
+ * @generated from field: bool uri_ref = 18;
3014
+ */
3015
+ value: boolean;
3016
+ case: "uriRef";
3017
+ } | {
3018
+ /**
3019
+ * `address` specifies that the field value must be either a valid hostname
3020
+ * (for example, "example.com"), or a valid IP (v4 or v6) address (for example,
3021
+ * "192.168.0.1", or "::1"). If the field value isn't a valid hostname or IP,
3022
+ * an error message will be generated.
3023
+ *
3024
+ * ```proto
3025
+ * message MyString {
3026
+ * // value must be a valid hostname, or ip address
3027
+ * string value = 1 [(buf.validate.field).string.address = true];
3028
+ * }
3029
+ * ```
3030
+ *
3031
+ * @generated from field: bool address = 21;
3032
+ */
3033
+ value: boolean;
3034
+ case: "address";
3035
+ } | {
3036
+ /**
3037
+ * `uuid` specifies that the field value must be a valid UUID as defined by
3038
+ * [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2). If the
3039
+ * field value isn't a valid UUID, an error message will be generated.
3040
+ *
3041
+ * ```proto
3042
+ * message MyString {
3043
+ * // value must be a valid UUID
3044
+ * string value = 1 [(buf.validate.field).string.uuid = true];
3045
+ * }
3046
+ * ```
3047
+ *
3048
+ * @generated from field: bool uuid = 22;
3049
+ */
3050
+ value: boolean;
3051
+ case: "uuid";
3052
+ } | {
3053
+ /**
3054
+ * `tuuid` (trimmed UUID) specifies that the field value must be a valid UUID as
3055
+ * defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2) with all dashes
3056
+ * omitted. If the field value isn't a valid UUID without dashes, an error message
3057
+ * will be generated.
3058
+ *
3059
+ * ```proto
3060
+ * message MyString {
3061
+ * // value must be a valid trimmed UUID
3062
+ * string value = 1 [(buf.validate.field).string.tuuid = true];
3063
+ * }
3064
+ * ```
3065
+ *
3066
+ * @generated from field: bool tuuid = 33;
3067
+ */
3068
+ value: boolean;
3069
+ case: "tuuid";
3070
+ } | {
3071
+ /**
3072
+ * `ip_with_prefixlen` specifies that the field value must be a valid IP
3073
+ * (v4 or v6) address with prefix length—for example, "192.168.5.21/16" or
3074
+ * "2001:0DB8:ABCD:0012::F1/64". If the field value isn't a valid IP with
3075
+ * prefix length, an error message will be generated.
3076
+ *
3077
+ * ```proto
3078
+ * message MyString {
3079
+ * // value must be a valid IP with prefix length
3080
+ * string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true];
3081
+ * }
3082
+ * ```
3083
+ *
3084
+ * @generated from field: bool ip_with_prefixlen = 26;
3085
+ */
3086
+ value: boolean;
3087
+ case: "ipWithPrefixlen";
3088
+ } | {
3089
+ /**
3090
+ * `ipv4_with_prefixlen` specifies that the field value must be a valid
3091
+ * IPv4 address with prefix length—for example, "192.168.5.21/16". If the
3092
+ * field value isn't a valid IPv4 address with prefix length, an error
3093
+ * message will be generated.
3094
+ *
3095
+ * ```proto
3096
+ * message MyString {
3097
+ * // value must be a valid IPv4 address with prefix length
3098
+ * string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true];
3099
+ * }
3100
+ * ```
3101
+ *
3102
+ * @generated from field: bool ipv4_with_prefixlen = 27;
3103
+ */
3104
+ value: boolean;
3105
+ case: "ipv4WithPrefixlen";
3106
+ } | {
3107
+ /**
3108
+ * `ipv6_with_prefixlen` specifies that the field value must be a valid
3109
+ * IPv6 address with prefix length—for example, "2001:0DB8:ABCD:0012::F1/64".
3110
+ * If the field value is not a valid IPv6 address with prefix length,
3111
+ * an error message will be generated.
3112
+ *
3113
+ * ```proto
3114
+ * message MyString {
3115
+ * // value must be a valid IPv6 address prefix length
3116
+ * string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true];
3117
+ * }
3118
+ * ```
3119
+ *
3120
+ * @generated from field: bool ipv6_with_prefixlen = 28;
3121
+ */
3122
+ value: boolean;
3123
+ case: "ipv6WithPrefixlen";
3124
+ } | {
3125
+ /**
3126
+ * `ip_prefix` specifies that the field value must be a valid IP (v4 or v6)
3127
+ * prefix—for example, "192.168.0.0/16" or "2001:0DB8:ABCD:0012::0/64".
3128
+ *
3129
+ * The prefix must have all zeros for the unmasked bits. For example,
3130
+ * "2001:0DB8:ABCD:0012::0/64" designates the left-most 64 bits for the
3131
+ * prefix, and the remaining 64 bits must be zero.
3132
+ *
3133
+ * If the field value isn't a valid IP prefix, an error message will be
3134
+ * generated.
3135
+ *
3136
+ * ```proto
3137
+ * message MyString {
3138
+ * // value must be a valid IP prefix
3139
+ * string value = 1 [(buf.validate.field).string.ip_prefix = true];
3140
+ * }
3141
+ * ```
3142
+ *
3143
+ * @generated from field: bool ip_prefix = 29;
3144
+ */
3145
+ value: boolean;
3146
+ case: "ipPrefix";
3147
+ } | {
3148
+ /**
3149
+ * `ipv4_prefix` specifies that the field value must be a valid IPv4
3150
+ * prefix, for example "192.168.0.0/16".
3151
+ *
3152
+ * The prefix must have all zeros for the unmasked bits. For example,
3153
+ * "192.168.0.0/16" designates the left-most 16 bits for the prefix,
3154
+ * and the remaining 16 bits must be zero.
3155
+ *
3156
+ * If the field value isn't a valid IPv4 prefix, an error message
3157
+ * will be generated.
3158
+ *
3159
+ * ```proto
3160
+ * message MyString {
3161
+ * // value must be a valid IPv4 prefix
3162
+ * string value = 1 [(buf.validate.field).string.ipv4_prefix = true];
3163
+ * }
3164
+ * ```
3165
+ *
3166
+ * @generated from field: bool ipv4_prefix = 30;
3167
+ */
3168
+ value: boolean;
3169
+ case: "ipv4Prefix";
3170
+ } | {
3171
+ /**
3172
+ * `ipv6_prefix` specifies that the field value must be a valid IPv6 prefix—for
3173
+ * example, "2001:0DB8:ABCD:0012::0/64".
3174
+ *
3175
+ * The prefix must have all zeros for the unmasked bits. For example,
3176
+ * "2001:0DB8:ABCD:0012::0/64" designates the left-most 64 bits for the
3177
+ * prefix, and the remaining 64 bits must be zero.
3178
+ *
3179
+ * If the field value is not a valid IPv6 prefix, an error message will be
3180
+ * generated.
3181
+ *
3182
+ * ```proto
3183
+ * message MyString {
3184
+ * // value must be a valid IPv6 prefix
3185
+ * string value = 1 [(buf.validate.field).string.ipv6_prefix = true];
3186
+ * }
3187
+ * ```
3188
+ *
3189
+ * @generated from field: bool ipv6_prefix = 31;
3190
+ */
3191
+ value: boolean;
3192
+ case: "ipv6Prefix";
3193
+ } | {
3194
+ /**
3195
+ * `host_and_port` specifies that the field value must be valid host/port
3196
+ * pair—for example, "example.com:8080".
3197
+ *
3198
+ * The host can be one of:
3199
+ * - An IPv4 address in dotted decimal format—for example, "192.168.5.21".
3200
+ * - An IPv6 address enclosed in square brackets—for example, "[2001:0DB8:ABCD:0012::F1]".
3201
+ * - A hostname—for example, "example.com".
3202
+ *
3203
+ * The port is separated by a colon. It must be non-empty, with a decimal number
3204
+ * in the range of 0-65535, inclusive.
3205
+ *
3206
+ * @generated from field: bool host_and_port = 32;
3207
+ */
3208
+ value: boolean;
3209
+ case: "hostAndPort";
3210
+ } | {
3211
+ /**
3212
+ * `ulid` specifies that the field value must be a valid ULID (Universally Unique
3213
+ * Lexicographically Sortable Identifier) as defined by the [ULID specification](https://github.com/ulid/spec).
3214
+ * If the field value isn't a valid ULID, an error message will be generated.
3215
+ *
3216
+ * ```proto
3217
+ * message MyString {
3218
+ * // value must be a valid ULID
3219
+ * string value = 1 [(buf.validate.field).string.ulid = true];
3220
+ * }
3221
+ * ```
3222
+ *
3223
+ * @generated from field: bool ulid = 35;
3224
+ */
3225
+ value: boolean;
3226
+ case: "ulid";
3227
+ } | {
3228
+ /**
3229
+ * `well_known_regex` specifies a common well-known pattern
3230
+ * defined as a regex. If the field value doesn't match the well-known
3231
+ * regex, an error message will be generated.
3232
+ *
3233
+ * ```proto
3234
+ * message MyString {
3235
+ * // value must be a valid HTTP header value
3236
+ * string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE];
3237
+ * }
3238
+ * ```
3239
+ *
3240
+ * #### KnownRegex
3241
+ *
3242
+ * `well_known_regex` contains some well-known patterns.
3243
+ *
3244
+ * | Name | Number | Description |
3245
+ * |-------------------------------|--------|-------------------------------------------|
3246
+ * | KNOWN_REGEX_UNSPECIFIED | 0 | |
3247
+ * | KNOWN_REGEX_HTTP_HEADER_NAME | 1 | HTTP header name as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2) |
3248
+ * | KNOWN_REGEX_HTTP_HEADER_VALUE | 2 | HTTP header value as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4) |
3249
+ *
3250
+ * @generated from field: buf.validate.KnownRegex well_known_regex = 24;
3251
+ */
3252
+ value: KnownRegex;
3253
+ case: "wellKnownRegex";
3254
+ } | {
3255
+ case: undefined;
3256
+ value?: undefined;
3257
+ };
3258
+ /**
3259
+ * This applies to regexes `HTTP_HEADER_NAME` and `HTTP_HEADER_VALUE` to
3260
+ * enable strict header validation. By default, this is true, and HTTP header
3261
+ * validations are [RFC-compliant](https://datatracker.ietf.org/doc/html/rfc7230#section-3). Setting to false will enable looser
3262
+ * validations that only disallow `\r\n\0` characters, which can be used to
3263
+ * bypass header matching rules.
3264
+ *
3265
+ * ```proto
3266
+ * message MyString {
3267
+ * // The field `value` must have be a valid HTTP headers, but not enforced with strict rules.
3268
+ * string value = 1 [(buf.validate.field).string.strict = false];
3269
+ * }
3270
+ * ```
3271
+ *
3272
+ * @generated from field: optional bool strict = 25;
3273
+ */
3274
+ strict: boolean;
3275
+ /**
3276
+ * `example` specifies values that the field may have. These values SHOULD
3277
+ * conform to other rules. `example` values will not impact validation
3278
+ * but may be used as helpful guidance on how to populate the given field.
3279
+ *
3280
+ * ```proto
3281
+ * message MyString {
3282
+ * string value = 1 [
3283
+ * (buf.validate.field).string.example = "hello",
3284
+ * (buf.validate.field).string.example = "world"
3285
+ * ];
3286
+ * }
3287
+ * ```
3288
+ *
3289
+ * @generated from field: repeated string example = 34;
3290
+ */
3291
+ example: string[];
3292
+ };
3293
+ /**
3294
+ * Describes the message buf.validate.StringRules.
3295
+ * Use `create(StringRulesSchema)` to create a new message.
3296
+ */
3297
+ declare const StringRulesSchema: GenMessage<StringRules>;
3298
+ /**
3299
+ * BytesRules describe the rules applied to `bytes` values. These rules
3300
+ * may also be applied to the `google.protobuf.BytesValue` Well-Known-Type.
3301
+ *
3302
+ * @generated from message buf.validate.BytesRules
3303
+ */
3304
+ type BytesRules = Message<"buf.validate.BytesRules"> & {
3305
+ /**
3306
+ * `const` requires the field value to exactly match the specified bytes
3307
+ * value. If the field value doesn't match, an error message is generated.
3308
+ *
3309
+ * ```proto
3310
+ * message MyBytes {
3311
+ * // value must be "\x01\x02\x03\x04"
3312
+ * bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"];
3313
+ * }
3314
+ * ```
3315
+ *
3316
+ * @generated from field: optional bytes const = 1;
3317
+ */
3318
+ const: Uint8Array;
3319
+ /**
3320
+ * `len` requires the field value to have the specified length in bytes.
3321
+ * If the field value doesn't match, an error message is generated.
3322
+ *
3323
+ * ```proto
3324
+ * message MyBytes {
3325
+ * // value length must be 4 bytes.
3326
+ * optional bytes value = 1 [(buf.validate.field).bytes.len = 4];
3327
+ * }
3328
+ * ```
3329
+ *
3330
+ * @generated from field: optional uint64 len = 13;
3331
+ */
3332
+ len: bigint;
3333
+ /**
3334
+ * `min_len` requires the field value to have at least the specified minimum
3335
+ * length in bytes.
3336
+ * If the field value doesn't meet the requirement, an error message is generated.
3337
+ *
3338
+ * ```proto
3339
+ * message MyBytes {
3340
+ * // value length must be at least 2 bytes.
3341
+ * optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2];
3342
+ * }
3343
+ * ```
3344
+ *
3345
+ * @generated from field: optional uint64 min_len = 2;
3346
+ */
3347
+ minLen: bigint;
3348
+ /**
3349
+ * `max_len` requires the field value to have at most the specified maximum
3350
+ * length in bytes.
3351
+ * If the field value exceeds the requirement, an error message is generated.
3352
+ *
3353
+ * ```proto
3354
+ * message MyBytes {
3355
+ * // value must be at most 6 bytes.
3356
+ * optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6];
3357
+ * }
3358
+ * ```
3359
+ *
3360
+ * @generated from field: optional uint64 max_len = 3;
3361
+ */
3362
+ maxLen: bigint;
3363
+ /**
3364
+ * `pattern` requires the field value to match the specified regular
3365
+ * expression ([RE2 syntax](https://github.com/google/re2/wiki/Syntax)).
3366
+ * The value of the field must be valid UTF-8 or validation will fail with a
3367
+ * runtime error.
3368
+ * If the field value doesn't match the pattern, an error message is generated.
3369
+ *
3370
+ * ```proto
3371
+ * message MyBytes {
3372
+ * // value must match regex pattern "^[a-zA-Z0-9]+$".
3373
+ * optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"];
3374
+ * }
3375
+ * ```
3376
+ *
3377
+ * @generated from field: optional string pattern = 4;
3378
+ */
3379
+ pattern: string;
3380
+ /**
3381
+ * `prefix` requires the field value to have the specified bytes at the
3382
+ * beginning of the string.
3383
+ * If the field value doesn't meet the requirement, an error message is generated.
3384
+ *
3385
+ * ```proto
3386
+ * message MyBytes {
3387
+ * // value does not have prefix \x01\x02
3388
+ * optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"];
3389
+ * }
3390
+ * ```
3391
+ *
3392
+ * @generated from field: optional bytes prefix = 5;
3393
+ */
3394
+ prefix: Uint8Array;
3395
+ /**
3396
+ * `suffix` requires the field value to have the specified bytes at the end
3397
+ * of the string.
3398
+ * If the field value doesn't meet the requirement, an error message is generated.
3399
+ *
3400
+ * ```proto
3401
+ * message MyBytes {
3402
+ * // value does not have suffix \x03\x04
3403
+ * optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"];
3404
+ * }
3405
+ * ```
3406
+ *
3407
+ * @generated from field: optional bytes suffix = 6;
3408
+ */
3409
+ suffix: Uint8Array;
3410
+ /**
3411
+ * `contains` requires the field value to have the specified bytes anywhere in
3412
+ * the string.
3413
+ * If the field value doesn't meet the requirement, an error message is generated.
3414
+ *
3415
+ * ```proto
3416
+ * message MyBytes {
3417
+ * // value does not contain \x02\x03
3418
+ * optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"];
3419
+ * }
3420
+ * ```
3421
+ *
3422
+ * @generated from field: optional bytes contains = 7;
3423
+ */
3424
+ contains: Uint8Array;
3425
+ /**
3426
+ * `in` requires the field value to be equal to one of the specified
3427
+ * values. If the field value doesn't match any of the specified values, an
3428
+ * error message is generated.
3429
+ *
3430
+ * ```proto
3431
+ * message MyBytes {
3432
+ * // value must in ["\x01\x02", "\x02\x03", "\x03\x04"]
3433
+ * optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
3434
+ * }
3435
+ * ```
3436
+ *
3437
+ * @generated from field: repeated bytes in = 8;
3438
+ */
3439
+ in: Uint8Array[];
3440
+ /**
3441
+ * `not_in` requires the field value to be not equal to any of the specified
3442
+ * values.
3443
+ * If the field value matches any of the specified values, an error message is
3444
+ * generated.
3445
+ *
3446
+ * ```proto
3447
+ * message MyBytes {
3448
+ * // value must not in ["\x01\x02", "\x02\x03", "\x03\x04"]
3449
+ * optional bytes value = 1 [(buf.validate.field).bytes.not_in = {"\x01\x02", "\x02\x03", "\x03\x04"}];
3450
+ * }
3451
+ * ```
3452
+ *
3453
+ * @generated from field: repeated bytes not_in = 9;
3454
+ */
3455
+ notIn: Uint8Array[];
3456
+ /**
3457
+ * WellKnown rules provide advanced rules against common byte
3458
+ * patterns
3459
+ *
3460
+ * @generated from oneof buf.validate.BytesRules.well_known
3461
+ */
3462
+ wellKnown: {
3463
+ /**
3464
+ * `ip` ensures that the field `value` is a valid IP address (v4 or v6) in byte format.
3465
+ * If the field value doesn't meet this rule, an error message is generated.
3466
+ *
3467
+ * ```proto
3468
+ * message MyBytes {
3469
+ * // value must be a valid IP address
3470
+ * optional bytes value = 1 [(buf.validate.field).bytes.ip = true];
3471
+ * }
3472
+ * ```
3473
+ *
3474
+ * @generated from field: bool ip = 10;
3475
+ */
3476
+ value: boolean;
3477
+ case: "ip";
3478
+ } | {
3479
+ /**
3480
+ * `ipv4` ensures that the field `value` is a valid IPv4 address in byte format.
3481
+ * If the field value doesn't meet this rule, an error message is generated.
3482
+ *
3483
+ * ```proto
3484
+ * message MyBytes {
3485
+ * // value must be a valid IPv4 address
3486
+ * optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true];
3487
+ * }
3488
+ * ```
3489
+ *
3490
+ * @generated from field: bool ipv4 = 11;
3491
+ */
3492
+ value: boolean;
3493
+ case: "ipv4";
3494
+ } | {
3495
+ /**
3496
+ * `ipv6` ensures that the field `value` is a valid IPv6 address in byte format.
3497
+ * If the field value doesn't meet this rule, an error message is generated.
3498
+ * ```proto
3499
+ * message MyBytes {
3500
+ * // value must be a valid IPv6 address
3501
+ * optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true];
3502
+ * }
3503
+ * ```
3504
+ *
3505
+ * @generated from field: bool ipv6 = 12;
3506
+ */
3507
+ value: boolean;
3508
+ case: "ipv6";
3509
+ } | {
3510
+ /**
3511
+ * `uuid` ensures that the field `value` encodes the 128-bit UUID data as
3512
+ * defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2).
3513
+ * The field must contain exactly 16 bytes
3514
+ * representing the UUID. If the field value isn't a valid UUID, an error
3515
+ * message will be generated.
3516
+ *
3517
+ * ```proto
3518
+ * message MyBytes {
3519
+ * // value must be a valid UUID
3520
+ * optional bytes value = 1 [(buf.validate.field).bytes.uuid = true];
3521
+ * }
3522
+ * ```
3523
+ *
3524
+ * @generated from field: bool uuid = 15;
3525
+ */
3526
+ value: boolean;
3527
+ case: "uuid";
3528
+ } | {
3529
+ case: undefined;
3530
+ value?: undefined;
3531
+ };
3532
+ /**
3533
+ * `example` specifies values that the field may have. These values SHOULD
3534
+ * conform to other rules. `example` values will not impact validation
3535
+ * but may be used as helpful guidance on how to populate the given field.
3536
+ *
3537
+ * ```proto
3538
+ * message MyBytes {
3539
+ * bytes value = 1 [
3540
+ * (buf.validate.field).bytes.example = "\x01\x02",
3541
+ * (buf.validate.field).bytes.example = "\x02\x03"
3542
+ * ];
3543
+ * }
3544
+ * ```
3545
+ *
3546
+ * @generated from field: repeated bytes example = 14;
3547
+ */
3548
+ example: Uint8Array[];
3549
+ };
3550
+ /**
3551
+ * Describes the message buf.validate.BytesRules.
3552
+ * Use `create(BytesRulesSchema)` to create a new message.
3553
+ */
3554
+ declare const BytesRulesSchema: GenMessage<BytesRules>;
3555
+ /**
3556
+ * EnumRules describe the rules applied to `enum` values.
3557
+ *
3558
+ * @generated from message buf.validate.EnumRules
3559
+ */
3560
+ type EnumRules = Message<"buf.validate.EnumRules"> & {
3561
+ /**
3562
+ * `const` requires the field value to exactly match the specified enum value.
3563
+ * If the field value doesn't match, an error message is generated.
3564
+ *
3565
+ * ```proto
3566
+ * enum MyEnum {
3567
+ * MY_ENUM_UNSPECIFIED = 0;
3568
+ * MY_ENUM_VALUE1 = 1;
3569
+ * MY_ENUM_VALUE2 = 2;
3570
+ * }
3571
+ *
3572
+ * message MyMessage {
3573
+ * // The field `value` must be exactly MY_ENUM_VALUE1.
3574
+ * MyEnum value = 1 [(buf.validate.field).enum.const = 1];
3575
+ * }
3576
+ * ```
3577
+ *
3578
+ * @generated from field: optional int32 const = 1;
3579
+ */
3580
+ const: number;
3581
+ /**
3582
+ * `defined_only` requires the field value to be one of the defined values for
3583
+ * this enum, failing on any undefined value.
3584
+ *
3585
+ * ```proto
3586
+ * enum MyEnum {
3587
+ * MY_ENUM_UNSPECIFIED = 0;
3588
+ * MY_ENUM_VALUE1 = 1;
3589
+ * MY_ENUM_VALUE2 = 2;
3590
+ * }
3591
+ *
3592
+ * message MyMessage {
3593
+ * // The field `value` must be a defined value of MyEnum.
3594
+ * MyEnum value = 1 [(buf.validate.field).enum.defined_only = true];
3595
+ * }
3596
+ * ```
3597
+ *
3598
+ * @generated from field: optional bool defined_only = 2;
3599
+ */
3600
+ definedOnly: boolean;
3601
+ /**
3602
+ * `in` requires the field value to be equal to one of the
3603
+ * specified enum values. If the field value doesn't match any of the
3604
+ * specified values, an error message is generated.
3605
+ *
3606
+ * ```proto
3607
+ * enum MyEnum {
3608
+ * MY_ENUM_UNSPECIFIED = 0;
3609
+ * MY_ENUM_VALUE1 = 1;
3610
+ * MY_ENUM_VALUE2 = 2;
3611
+ * }
3612
+ *
3613
+ * message MyMessage {
3614
+ * // The field `value` must be equal to one of the specified values.
3615
+ * MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];
3616
+ * }
3617
+ * ```
3618
+ *
3619
+ * @generated from field: repeated int32 in = 3;
3620
+ */
3621
+ in: number[];
3622
+ /**
3623
+ * `not_in` requires the field value to be not equal to any of the
3624
+ * specified enum values. If the field value matches one of the specified
3625
+ * values, an error message is generated.
3626
+ *
3627
+ * ```proto
3628
+ * enum MyEnum {
3629
+ * MY_ENUM_UNSPECIFIED = 0;
3630
+ * MY_ENUM_VALUE1 = 1;
3631
+ * MY_ENUM_VALUE2 = 2;
3632
+ * }
3633
+ *
3634
+ * message MyMessage {
3635
+ * // The field `value` must not be equal to any of the specified values.
3636
+ * MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];
3637
+ * }
3638
+ * ```
3639
+ *
3640
+ * @generated from field: repeated int32 not_in = 4;
3641
+ */
3642
+ notIn: number[];
3643
+ /**
3644
+ * `example` specifies values that the field may have. These values SHOULD
3645
+ * conform to other rules. `example` values will not impact validation
3646
+ * but may be used as helpful guidance on how to populate the given field.
3647
+ *
3648
+ * ```proto
3649
+ * enum MyEnum {
3650
+ * MY_ENUM_UNSPECIFIED = 0;
3651
+ * MY_ENUM_VALUE1 = 1;
3652
+ * MY_ENUM_VALUE2 = 2;
3653
+ * }
3654
+ *
3655
+ * message MyMessage {
3656
+ * (buf.validate.field).enum.example = 1,
3657
+ * (buf.validate.field).enum.example = 2
3658
+ * }
3659
+ * ```
3660
+ *
3661
+ * @generated from field: repeated int32 example = 5;
3662
+ */
3663
+ example: number[];
3664
+ };
3665
+ /**
3666
+ * Describes the message buf.validate.EnumRules.
3667
+ * Use `create(EnumRulesSchema)` to create a new message.
3668
+ */
3669
+ declare const EnumRulesSchema: GenMessage<EnumRules>;
3670
+ /**
3671
+ * RepeatedRules describe the rules applied to `repeated` values.
3672
+ *
3673
+ * @generated from message buf.validate.RepeatedRules
3674
+ */
3675
+ type RepeatedRules = Message<"buf.validate.RepeatedRules"> & {
3676
+ /**
3677
+ * `min_items` requires that this field must contain at least the specified
3678
+ * minimum number of items.
3679
+ *
3680
+ * Note that `min_items = 1` is equivalent to setting a field as `required`.
3681
+ *
3682
+ * ```proto
3683
+ * message MyRepeated {
3684
+ * // value must contain at least 2 items
3685
+ * repeated string value = 1 [(buf.validate.field).repeated.min_items = 2];
3686
+ * }
3687
+ * ```
3688
+ *
3689
+ * @generated from field: optional uint64 min_items = 1;
3690
+ */
3691
+ minItems: bigint;
3692
+ /**
3693
+ * `max_items` denotes that this field must not exceed a
3694
+ * certain number of items as the upper limit. If the field contains more
3695
+ * items than specified, an error message will be generated, requiring the
3696
+ * field to maintain no more than the specified number of items.
3697
+ *
3698
+ * ```proto
3699
+ * message MyRepeated {
3700
+ * // value must contain no more than 3 item(s)
3701
+ * repeated string value = 1 [(buf.validate.field).repeated.max_items = 3];
3702
+ * }
3703
+ * ```
3704
+ *
3705
+ * @generated from field: optional uint64 max_items = 2;
3706
+ */
3707
+ maxItems: bigint;
3708
+ /**
3709
+ * `unique` indicates that all elements in this field must
3710
+ * be unique. This rule is strictly applicable to scalar and enum
3711
+ * types, with message types not being supported.
3712
+ *
3713
+ * ```proto
3714
+ * message MyRepeated {
3715
+ * // repeated value must contain unique items
3716
+ * repeated string value = 1 [(buf.validate.field).repeated.unique = true];
3717
+ * }
3718
+ * ```
3719
+ *
3720
+ * @generated from field: optional bool unique = 3;
3721
+ */
3722
+ unique: boolean;
3723
+ /**
3724
+ * `items` details the rules to be applied to each item
3725
+ * in the field. Even for repeated message fields, validation is executed
3726
+ * against each item unless `ignore` is specified.
3727
+ *
3728
+ * ```proto
3729
+ * message MyRepeated {
3730
+ * // The items in the field `value` must follow the specified rules.
3731
+ * repeated string value = 1 [(buf.validate.field).repeated.items = {
3732
+ * string: {
3733
+ * min_len: 3
3734
+ * max_len: 10
3735
+ * }
3736
+ * }];
3737
+ * }
3738
+ * ```
3739
+ *
3740
+ * Note that the `required` rule does not apply. Repeated items
3741
+ * cannot be unset.
3742
+ *
3743
+ * @generated from field: optional buf.validate.FieldRules items = 4;
3744
+ */
3745
+ items?: FieldRules;
3746
+ };
3747
+ /**
3748
+ * Describes the message buf.validate.RepeatedRules.
3749
+ * Use `create(RepeatedRulesSchema)` to create a new message.
3750
+ */
3751
+ declare const RepeatedRulesSchema: GenMessage<RepeatedRules>;
3752
+ /**
3753
+ * MapRules describe the rules applied to `map` values.
3754
+ *
3755
+ * @generated from message buf.validate.MapRules
3756
+ */
3757
+ type MapRules = Message<"buf.validate.MapRules"> & {
3758
+ /**
3759
+ * Specifies the minimum number of key-value pairs allowed. If the field has
3760
+ * fewer key-value pairs than specified, an error message is generated.
3761
+ *
3762
+ * ```proto
3763
+ * message MyMap {
3764
+ * // The field `value` must have at least 2 key-value pairs.
3765
+ * map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];
3766
+ * }
3767
+ * ```
3768
+ *
3769
+ * @generated from field: optional uint64 min_pairs = 1;
3770
+ */
3771
+ minPairs: bigint;
3772
+ /**
3773
+ * Specifies the maximum number of key-value pairs allowed. If the field has
3774
+ * more key-value pairs than specified, an error message is generated.
3775
+ *
3776
+ * ```proto
3777
+ * message MyMap {
3778
+ * // The field `value` must have at most 3 key-value pairs.
3779
+ * map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];
3780
+ * }
3781
+ * ```
3782
+ *
3783
+ * @generated from field: optional uint64 max_pairs = 2;
3784
+ */
3785
+ maxPairs: bigint;
3786
+ /**
3787
+ * Specifies the rules to be applied to each key in the field.
3788
+ *
3789
+ * ```proto
3790
+ * message MyMap {
3791
+ * // The keys in the field `value` must follow the specified rules.
3792
+ * map<string, string> value = 1 [(buf.validate.field).map.keys = {
3793
+ * string: {
3794
+ * min_len: 3
3795
+ * max_len: 10
3796
+ * }
3797
+ * }];
3798
+ * }
3799
+ * ```
3800
+ *
3801
+ * Note that the `required` rule does not apply. Map keys cannot be unset.
3802
+ *
3803
+ * @generated from field: optional buf.validate.FieldRules keys = 4;
3804
+ */
3805
+ keys?: FieldRules;
3806
+ /**
3807
+ * Specifies the rules to be applied to the value of each key in the
3808
+ * field. Message values will still have their validations evaluated unless
3809
+ * `ignore` is specified.
3810
+ *
3811
+ * ```proto
3812
+ * message MyMap {
3813
+ * // The values in the field `value` must follow the specified rules.
3814
+ * map<string, string> value = 1 [(buf.validate.field).map.values = {
3815
+ * string: {
3816
+ * min_len: 5
3817
+ * max_len: 20
3818
+ * }
3819
+ * }];
3820
+ * }
3821
+ * ```
3822
+ * Note that the `required` rule does not apply. Map values cannot be unset.
3823
+ *
3824
+ * @generated from field: optional buf.validate.FieldRules values = 5;
3825
+ */
3826
+ values?: FieldRules;
3827
+ };
3828
+ /**
3829
+ * Describes the message buf.validate.MapRules.
3830
+ * Use `create(MapRulesSchema)` to create a new message.
3831
+ */
3832
+ declare const MapRulesSchema: GenMessage<MapRules>;
3833
+ /**
3834
+ * AnyRules describe rules applied exclusively to the `google.protobuf.Any` well-known type.
3835
+ *
3836
+ * @generated from message buf.validate.AnyRules
3837
+ */
3838
+ type AnyRules = Message<"buf.validate.AnyRules"> & {
3839
+ /**
3840
+ * `in` requires the field's `type_url` to be equal to one of the
3841
+ * specified values. If it doesn't match any of the specified values, an error
3842
+ * message is generated.
3843
+ *
3844
+ * ```proto
3845
+ * message MyAny {
3846
+ * // The `value` field must have a `type_url` equal to one of the specified values.
3847
+ * google.protobuf.Any value = 1 [(buf.validate.field).any = {
3848
+ * in: ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"]
3849
+ * }];
3850
+ * }
3851
+ * ```
3852
+ *
3853
+ * @generated from field: repeated string in = 2;
3854
+ */
3855
+ in: string[];
3856
+ /**
3857
+ * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.
3858
+ *
3859
+ * ```proto
3860
+ * message MyAny {
3861
+ * // The `value` field must not have a `type_url` equal to any of the specified values.
3862
+ * google.protobuf.Any value = 1 [(buf.validate.field).any = {
3863
+ * not_in: ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"]
3864
+ * }];
3865
+ * }
3866
+ * ```
3867
+ *
3868
+ * @generated from field: repeated string not_in = 3;
3869
+ */
3870
+ notIn: string[];
3871
+ };
3872
+ /**
3873
+ * Describes the message buf.validate.AnyRules.
3874
+ * Use `create(AnyRulesSchema)` to create a new message.
3875
+ */
3876
+ declare const AnyRulesSchema: GenMessage<AnyRules>;
3877
+ /**
3878
+ * DurationRules describe the rules applied exclusively to the `google.protobuf.Duration` well-known type.
3879
+ *
3880
+ * @generated from message buf.validate.DurationRules
3881
+ */
3882
+ type DurationRules = Message<"buf.validate.DurationRules"> & {
3883
+ /**
3884
+ * `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.
3885
+ * If the field's value deviates from the specified value, an error message
3886
+ * will be generated.
3887
+ *
3888
+ * ```proto
3889
+ * message MyDuration {
3890
+ * // value must equal 5s
3891
+ * google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"];
3892
+ * }
3893
+ * ```
3894
+ *
3895
+ * @generated from field: optional google.protobuf.Duration const = 2;
3896
+ */
3897
+ const?: Duration;
3898
+ /**
3899
+ * @generated from oneof buf.validate.DurationRules.less_than
3900
+ */
3901
+ lessThan: {
3902
+ /**
3903
+ * `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type,
3904
+ * exclusive. If the field's value is greater than or equal to the specified
3905
+ * value, an error message will be generated.
3906
+ *
3907
+ * ```proto
3908
+ * message MyDuration {
3909
+ * // value must be less than 5s
3910
+ * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"];
3911
+ * }
3912
+ * ```
3913
+ *
3914
+ * @generated from field: google.protobuf.Duration lt = 3;
3915
+ */
3916
+ value: Duration;
3917
+ case: "lt";
3918
+ } | {
3919
+ /**
3920
+ * `lte` indicates that the field must be less than or equal to the specified
3921
+ * value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value,
3922
+ * an error message will be generated.
3923
+ *
3924
+ * ```proto
3925
+ * message MyDuration {
3926
+ * // value must be less than or equal to 10s
3927
+ * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"];
3928
+ * }
3929
+ * ```
3930
+ *
3931
+ * @generated from field: google.protobuf.Duration lte = 4;
3932
+ */
3933
+ value: Duration;
3934
+ case: "lte";
3935
+ } | {
3936
+ case: undefined;
3937
+ value?: undefined;
3938
+ };
3939
+ /**
3940
+ * @generated from oneof buf.validate.DurationRules.greater_than
3941
+ */
3942
+ greaterThan: {
3943
+ /**
3944
+ * `gt` requires the duration field value to be greater than the specified
3945
+ * value (exclusive). If the value of `gt` is larger than a specified `lt`
3946
+ * or `lte`, the range is reversed, and the field value must be outside the
3947
+ * specified range. If the field value doesn't meet the required conditions,
3948
+ * an error message is generated.
3949
+ *
3950
+ * ```proto
3951
+ * message MyDuration {
3952
+ * // duration must be greater than 5s [duration.gt]
3953
+ * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }];
3954
+ *
3955
+ * // duration must be greater than 5s and less than 10s [duration.gt_lt]
3956
+ * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }];
3957
+ *
3958
+ * // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive]
3959
+ * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }];
3960
+ * }
3961
+ * ```
3962
+ *
3963
+ * @generated from field: google.protobuf.Duration gt = 5;
3964
+ */
3965
+ value: Duration;
3966
+ case: "gt";
3967
+ } | {
3968
+ /**
3969
+ * `gte` requires the duration field value to be greater than or equal to the
3970
+ * specified value (exclusive). If the value of `gte` is larger than a
3971
+ * specified `lt` or `lte`, the range is reversed, and the field value must
3972
+ * be outside the specified range. If the field value doesn't meet the
3973
+ * required conditions, an error message is generated.
3974
+ *
3975
+ * ```proto
3976
+ * message MyDuration {
3977
+ * // duration must be greater than or equal to 5s [duration.gte]
3978
+ * google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }];
3979
+ *
3980
+ * // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt]
3981
+ * google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }];
3982
+ *
3983
+ * // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive]
3984
+ * google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }];
3985
+ * }
3986
+ * ```
3987
+ *
3988
+ * @generated from field: google.protobuf.Duration gte = 6;
3989
+ */
3990
+ value: Duration;
3991
+ case: "gte";
3992
+ } | {
3993
+ case: undefined;
3994
+ value?: undefined;
3995
+ };
3996
+ /**
3997
+ * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.
3998
+ * If the field's value doesn't correspond to any of the specified values,
3999
+ * an error message will be generated.
4000
+ *
4001
+ * ```proto
4002
+ * message MyDuration {
4003
+ * // value must be in list [1s, 2s, 3s]
4004
+ * google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]];
4005
+ * }
4006
+ * ```
4007
+ *
4008
+ * @generated from field: repeated google.protobuf.Duration in = 7;
4009
+ */
4010
+ in: Duration[];
4011
+ /**
4012
+ * `not_in` denotes that the field must not be equal to
4013
+ * any of the specified values of the `google.protobuf.Duration` type.
4014
+ * If the field's value matches any of these values, an error message will be
4015
+ * generated.
4016
+ *
4017
+ * ```proto
4018
+ * message MyDuration {
4019
+ * // value must not be in list [1s, 2s, 3s]
4020
+ * google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]];
4021
+ * }
4022
+ * ```
4023
+ *
4024
+ * @generated from field: repeated google.protobuf.Duration not_in = 8;
4025
+ */
4026
+ notIn: Duration[];
4027
+ /**
4028
+ * `example` specifies values that the field may have. These values SHOULD
4029
+ * conform to other rules. `example` values will not impact validation
4030
+ * but may be used as helpful guidance on how to populate the given field.
4031
+ *
4032
+ * ```proto
4033
+ * message MyDuration {
4034
+ * google.protobuf.Duration value = 1 [
4035
+ * (buf.validate.field).duration.example = { seconds: 1 },
4036
+ * (buf.validate.field).duration.example = { seconds: 2 },
4037
+ * ];
4038
+ * }
4039
+ * ```
4040
+ *
4041
+ * @generated from field: repeated google.protobuf.Duration example = 9;
4042
+ */
4043
+ example: Duration[];
4044
+ };
4045
+ /**
4046
+ * Describes the message buf.validate.DurationRules.
4047
+ * Use `create(DurationRulesSchema)` to create a new message.
4048
+ */
4049
+ declare const DurationRulesSchema: GenMessage<DurationRules>;
4050
+ /**
4051
+ * FieldMaskRules describe rules applied exclusively to the `google.protobuf.FieldMask` well-known type.
4052
+ *
4053
+ * @generated from message buf.validate.FieldMaskRules
4054
+ */
4055
+ type FieldMaskRules = Message<"buf.validate.FieldMaskRules"> & {
4056
+ /**
4057
+ * `const` dictates that the field must match the specified value of the `google.protobuf.FieldMask` type exactly.
4058
+ * If the field's value deviates from the specified value, an error message
4059
+ * will be generated.
4060
+ *
4061
+ * ```proto
4062
+ * message MyFieldMask {
4063
+ * // value must equal ["a"]
4064
+ * google.protobuf.FieldMask value = 1 [(buf.validate.field).field_mask.const = {
4065
+ * paths: ["a"]
4066
+ * }];
4067
+ * }
4068
+ * ```
4069
+ *
4070
+ * @generated from field: optional google.protobuf.FieldMask const = 1;
4071
+ */
4072
+ const?: FieldMask;
4073
+ /**
4074
+ * `in` requires the field value to only contain paths matching specified
4075
+ * values or their subpaths.
4076
+ * If any of the field value's paths doesn't match the rule,
4077
+ * an error message is generated.
4078
+ * See: https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask
4079
+ *
4080
+ * ```proto
4081
+ * message MyFieldMask {
4082
+ * // The `value` FieldMask must only contain paths listed in `in`.
4083
+ * google.protobuf.FieldMask value = 1 [(buf.validate.field).field_mask = {
4084
+ * in: ["a", "b", "c.a"]
4085
+ * }];
4086
+ * }
4087
+ * ```
4088
+ *
4089
+ * @generated from field: repeated string in = 2;
4090
+ */
4091
+ in: string[];
4092
+ /**
4093
+ * `not_in` requires the field value to not contain paths matching specified
4094
+ * values or their subpaths.
4095
+ * If any of the field value's paths matches the rule,
4096
+ * an error message is generated.
4097
+ * See: https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask
4098
+ *
4099
+ * ```proto
4100
+ * message MyFieldMask {
4101
+ * // The `value` FieldMask shall not contain paths listed in `not_in`.
4102
+ * google.protobuf.FieldMask value = 1 [(buf.validate.field).field_mask = {
4103
+ * not_in: ["forbidden", "immutable", "c.a"]
4104
+ * }];
4105
+ * }
4106
+ * ```
4107
+ *
4108
+ * @generated from field: repeated string not_in = 3;
4109
+ */
4110
+ notIn: string[];
4111
+ /**
4112
+ * `example` specifies values that the field may have. These values SHOULD
4113
+ * conform to other rules. `example` values will not impact validation
4114
+ * but may be used as helpful guidance on how to populate the given field.
4115
+ *
4116
+ * ```proto
4117
+ * message MyFieldMask {
4118
+ * google.protobuf.FieldMask value = 1 [
4119
+ * (buf.validate.field).field_mask.example = { paths: ["a", "b"] },
4120
+ * (buf.validate.field).field_mask.example = { paths: ["c.a", "d"] },
4121
+ * ];
4122
+ * }
4123
+ * ```
4124
+ *
4125
+ * @generated from field: repeated google.protobuf.FieldMask example = 4;
4126
+ */
4127
+ example: FieldMask[];
4128
+ };
4129
+ /**
4130
+ * Describes the message buf.validate.FieldMaskRules.
4131
+ * Use `create(FieldMaskRulesSchema)` to create a new message.
4132
+ */
4133
+ declare const FieldMaskRulesSchema: GenMessage<FieldMaskRules>;
4134
+ /**
4135
+ * TimestampRules describe the rules applied exclusively to the `google.protobuf.Timestamp` well-known type.
4136
+ *
4137
+ * @generated from message buf.validate.TimestampRules
4138
+ */
4139
+ type TimestampRules = Message<"buf.validate.TimestampRules"> & {
4140
+ /**
4141
+ * `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.
4142
+ *
4143
+ * ```proto
4144
+ * message MyTimestamp {
4145
+ * // value must equal 2023-05-03T10:00:00Z
4146
+ * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];
4147
+ * }
4148
+ * ```
4149
+ *
4150
+ * @generated from field: optional google.protobuf.Timestamp const = 2;
4151
+ */
4152
+ const?: Timestamp;
4153
+ /**
4154
+ * @generated from oneof buf.validate.TimestampRules.less_than
4155
+ */
4156
+ lessThan: {
4157
+ /**
4158
+ * requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
4159
+ *
4160
+ * ```proto
4161
+ * message MyDuration {
4162
+ * // duration must be less than 'P3D' [duration.lt]
4163
+ * google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];
4164
+ * }
4165
+ * ```
4166
+ *
4167
+ * @generated from field: google.protobuf.Timestamp lt = 3;
4168
+ */
4169
+ value: Timestamp;
4170
+ case: "lt";
4171
+ } | {
4172
+ /**
4173
+ * requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.
4174
+ *
4175
+ * ```proto
4176
+ * message MyTimestamp {
4177
+ * // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte]
4178
+ * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }];
4179
+ * }
4180
+ * ```
4181
+ *
4182
+ * @generated from field: google.protobuf.Timestamp lte = 4;
4183
+ */
4184
+ value: Timestamp;
4185
+ case: "lte";
4186
+ } | {
4187
+ /**
4188
+ * `lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time. `lt_now` can only be used with the `within` rule.
4189
+ *
4190
+ * ```proto
4191
+ * message MyTimestamp {
4192
+ * // value must be less than now
4193
+ * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true];
4194
+ * }
4195
+ * ```
4196
+ *
4197
+ * @generated from field: bool lt_now = 7;
4198
+ */
4199
+ value: boolean;
4200
+ case: "ltNow";
4201
+ } | {
4202
+ case: undefined;
4203
+ value?: undefined;
4204
+ };
4205
+ /**
4206
+ * @generated from oneof buf.validate.TimestampRules.greater_than
4207
+ */
4208
+ greaterThan: {
4209
+ /**
4210
+ * `gt` requires the timestamp field value to be greater than the specified
4211
+ * value (exclusive). If the value of `gt` is larger than a specified `lt`
4212
+ * or `lte`, the range is reversed, and the field value must be outside the
4213
+ * specified range. If the field value doesn't meet the required conditions,
4214
+ * an error message is generated.
4215
+ *
4216
+ * ```proto
4217
+ * message MyTimestamp {
4218
+ * // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt]
4219
+ * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }];
4220
+ *
4221
+ * // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt]
4222
+ * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
4223
+ *
4224
+ * // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive]
4225
+ * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
4226
+ * }
4227
+ * ```
4228
+ *
4229
+ * @generated from field: google.protobuf.Timestamp gt = 5;
4230
+ */
4231
+ value: Timestamp;
4232
+ case: "gt";
4233
+ } | {
4234
+ /**
4235
+ * `gte` requires the timestamp field value to be greater than or equal to the
4236
+ * specified value (exclusive). If the value of `gte` is larger than a
4237
+ * specified `lt` or `lte`, the range is reversed, and the field value
4238
+ * must be outside the specified range. If the field value doesn't meet
4239
+ * the required conditions, an error message is generated.
4240
+ *
4241
+ * ```proto
4242
+ * message MyTimestamp {
4243
+ * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte]
4244
+ * google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }];
4245
+ *
4246
+ * // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt]
4247
+ * google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];
4248
+ *
4249
+ * // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive]
4250
+ * google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];
4251
+ * }
4252
+ * ```
4253
+ *
4254
+ * @generated from field: google.protobuf.Timestamp gte = 6;
4255
+ */
4256
+ value: Timestamp;
4257
+ case: "gte";
4258
+ } | {
4259
+ /**
4260
+ * `gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time. `gt_now` can only be used with the `within` rule.
4261
+ *
4262
+ * ```proto
4263
+ * message MyTimestamp {
4264
+ * // value must be greater than now
4265
+ * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true];
4266
+ * }
4267
+ * ```
4268
+ *
4269
+ * @generated from field: bool gt_now = 8;
4270
+ */
4271
+ value: boolean;
4272
+ case: "gtNow";
4273
+ } | {
4274
+ case: undefined;
4275
+ value?: undefined;
4276
+ };
4277
+ /**
4278
+ * `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.
4279
+ *
4280
+ * ```proto
4281
+ * message MyTimestamp {
4282
+ * // value must be within 1 hour of now
4283
+ * google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];
4284
+ * }
4285
+ * ```
4286
+ *
4287
+ * @generated from field: optional google.protobuf.Duration within = 9;
4288
+ */
4289
+ within?: Duration;
4290
+ /**
4291
+ * `example` specifies values that the field may have. These values SHOULD
4292
+ * conform to other rules. `example` values will not impact validation
4293
+ * but may be used as helpful guidance on how to populate the given field.
4294
+ *
4295
+ * ```proto
4296
+ * message MyTimestamp {
4297
+ * google.protobuf.Timestamp value = 1 [
4298
+ * (buf.validate.field).timestamp.example = { seconds: 1672444800 },
4299
+ * (buf.validate.field).timestamp.example = { seconds: 1672531200 },
4300
+ * ];
4301
+ * }
4302
+ * ```
4303
+ *
4304
+ * @generated from field: repeated google.protobuf.Timestamp example = 10;
4305
+ */
4306
+ example: Timestamp[];
4307
+ };
4308
+ /**
4309
+ * Describes the message buf.validate.TimestampRules.
4310
+ * Use `create(TimestampRulesSchema)` to create a new message.
4311
+ */
4312
+ declare const TimestampRulesSchema: GenMessage<TimestampRules>;
4313
+ /**
4314
+ * `Violations` is a collection of `Violation` messages. This message type is returned by
4315
+ * Protovalidate when a proto message fails to meet the requirements set by the `Rule` validation rules.
4316
+ * Each individual violation is represented by a `Violation` message.
4317
+ *
4318
+ * @generated from message buf.validate.Violations
4319
+ */
4320
+ type Violations = Message<"buf.validate.Violations"> & {
4321
+ /**
4322
+ * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.
4323
+ *
4324
+ * @generated from field: repeated buf.validate.Violation violations = 1;
4325
+ */
4326
+ violations: Violation[];
4327
+ };
4328
+ /**
4329
+ * Describes the message buf.validate.Violations.
4330
+ * Use `create(ViolationsSchema)` to create a new message.
4331
+ */
4332
+ declare const ViolationsSchema: GenMessage<Violations>;
4333
+ /**
4334
+ * `Violation` represents a single instance where a validation rule, expressed
4335
+ * as a `Rule`, was not met. It provides information about the field that
4336
+ * caused the violation, the specific rule that wasn't fulfilled, and a
4337
+ * human-readable error message.
4338
+ *
4339
+ * For example, consider the following message:
4340
+ *
4341
+ * ```proto
4342
+ * message User {
4343
+ * int32 age = 1 [(buf.validate.field).cel = {
4344
+ * id: "user.age",
4345
+ * expression: "this < 18 ? 'User must be at least 18 years old' : ''",
4346
+ * }];
4347
+ * }
4348
+ * ```
4349
+ *
4350
+ * It could produce the following violation:
4351
+ *
4352
+ * ```json
4353
+ * {
4354
+ * "ruleId": "user.age",
4355
+ * "message": "User must be at least 18 years old",
4356
+ * "field": {
4357
+ * "elements": [
4358
+ * {
4359
+ * "fieldNumber": 1,
4360
+ * "fieldName": "age",
4361
+ * "fieldType": "TYPE_INT32"
4362
+ * }
4363
+ * ]
4364
+ * },
4365
+ * "rule": {
4366
+ * "elements": [
4367
+ * {
4368
+ * "fieldNumber": 23,
4369
+ * "fieldName": "cel",
4370
+ * "fieldType": "TYPE_MESSAGE",
4371
+ * "index": "0"
4372
+ * }
4373
+ * ]
4374
+ * }
4375
+ * }
4376
+ * ```
4377
+ *
4378
+ * @generated from message buf.validate.Violation
4379
+ */
4380
+ type Violation = Message<"buf.validate.Violation"> & {
4381
+ /**
4382
+ * `field` is a machine-readable path to the field that failed validation.
4383
+ * This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation.
4384
+ *
4385
+ * For example, consider the following message:
4386
+ *
4387
+ * ```proto
4388
+ * message Message {
4389
+ * bool a = 1 [(buf.validate.field).required = true];
4390
+ * }
4391
+ * ```
4392
+ *
4393
+ * It could produce the following violation:
4394
+ *
4395
+ * ```textproto
4396
+ * violation {
4397
+ * field { element { field_number: 1, field_name: "a", field_type: 8 } }
4398
+ * ...
4399
+ * }
4400
+ * ```
4401
+ *
4402
+ * @generated from field: optional buf.validate.FieldPath field = 5;
4403
+ */
4404
+ field?: FieldPath;
4405
+ /**
4406
+ * `rule` is a machine-readable path that points to the specific rule that failed validation.
4407
+ * This will be a nested field starting from the FieldRules of the field that failed validation.
4408
+ * For custom rules, this will provide the path of the rule, e.g. `cel[0]`.
4409
+ *
4410
+ * For example, consider the following message:
4411
+ *
4412
+ * ```proto
4413
+ * message Message {
4414
+ * bool a = 1 [(buf.validate.field).required = true];
4415
+ * bool b = 2 [(buf.validate.field).cel = {
4416
+ * id: "custom_rule",
4417
+ * expression: "!this ? 'b must be true': ''"
4418
+ * }]
4419
+ * }
4420
+ * ```
4421
+ *
4422
+ * It could produce the following violations:
4423
+ *
4424
+ * ```textproto
4425
+ * violation {
4426
+ * rule { element { field_number: 25, field_name: "required", field_type: 8 } }
4427
+ * ...
4428
+ * }
4429
+ * violation {
4430
+ * rule { element { field_number: 23, field_name: "cel", field_type: 11, index: 0 } }
4431
+ * ...
4432
+ * }
4433
+ * ```
4434
+ *
4435
+ * @generated from field: optional buf.validate.FieldPath rule = 6;
4436
+ */
4437
+ rule?: FieldPath;
4438
+ /**
4439
+ * `rule_id` is the unique identifier of the `Rule` that was not fulfilled.
4440
+ * This is the same `id` that was specified in the `Rule` message, allowing easy tracing of which rule was violated.
4441
+ *
4442
+ * @generated from field: optional string rule_id = 2;
4443
+ */
4444
+ ruleId: string;
4445
+ /**
4446
+ * `message` is a human-readable error message that describes the nature of the violation.
4447
+ * This can be the default error message from the violated `Rule`, or it can be a custom message that gives more context about the violation.
4448
+ *
4449
+ * @generated from field: optional string message = 3;
4450
+ */
4451
+ message: string;
4452
+ /**
4453
+ * `for_key` indicates whether the violation was caused by a map key, rather than a value.
4454
+ *
4455
+ * @generated from field: optional bool for_key = 4;
4456
+ */
4457
+ forKey: boolean;
4458
+ };
4459
+ /**
4460
+ * Describes the message buf.validate.Violation.
4461
+ * Use `create(ViolationSchema)` to create a new message.
4462
+ */
4463
+ declare const ViolationSchema: GenMessage<Violation>;
4464
+ /**
4465
+ * `FieldPath` provides a path to a nested protobuf field.
4466
+ *
4467
+ * This message provides enough information to render a dotted field path even without protobuf descriptors.
4468
+ * It also provides enough information to resolve a nested field through unknown wire data.
4469
+ *
4470
+ * @generated from message buf.validate.FieldPath
4471
+ */
4472
+ type FieldPath = Message<"buf.validate.FieldPath"> & {
4473
+ /**
4474
+ * `elements` contains each element of the path, starting from the root and recursing downward.
4475
+ *
4476
+ * @generated from field: repeated buf.validate.FieldPathElement elements = 1;
4477
+ */
4478
+ elements: FieldPathElement[];
4479
+ };
4480
+ /**
4481
+ * Describes the message buf.validate.FieldPath.
4482
+ * Use `create(FieldPathSchema)` to create a new message.
4483
+ */
4484
+ declare const FieldPathSchema: GenMessage<FieldPath>;
4485
+ /**
4486
+ * `FieldPathElement` provides enough information to nest through a single protobuf field.
4487
+ *
4488
+ * If the selected field is a map or repeated field, the `subscript` value selects a specific element from it.
4489
+ * A path that refers to a value nested under a map key or repeated field index will have a `subscript` value.
4490
+ * The `field_type` field allows unambiguous resolution of a field even if descriptors are not available.
4491
+ *
4492
+ * @generated from message buf.validate.FieldPathElement
4493
+ */
4494
+ type FieldPathElement = Message<"buf.validate.FieldPathElement"> & {
4495
+ /**
4496
+ * `field_number` is the field number this path element refers to.
4497
+ *
4498
+ * @generated from field: optional int32 field_number = 1;
4499
+ */
4500
+ fieldNumber: number;
4501
+ /**
4502
+ * `field_name` contains the field name this path element refers to.
4503
+ * This can be used to display a human-readable path even if the field number is unknown.
4504
+ *
4505
+ * @generated from field: optional string field_name = 2;
4506
+ */
4507
+ fieldName: string;
4508
+ /**
4509
+ * `field_type` specifies the type of this field. When using reflection, this value is not needed.
4510
+ *
4511
+ * This value is provided to make it possible to traverse unknown fields through wire data.
4512
+ * When traversing wire data, be mindful of both packed[1] and delimited[2] encoding schemes.
4513
+ *
4514
+ * [1]: https://protobuf.dev/programming-guides/encoding/#packed
4515
+ * [2]: https://protobuf.dev/programming-guides/encoding/#groups
4516
+ *
4517
+ * N.B.: Although groups are deprecated, the corresponding delimited encoding scheme is not, and
4518
+ * can be explicitly used in Protocol Buffers 2023 Edition.
4519
+ *
4520
+ * @generated from field: optional google.protobuf.FieldDescriptorProto.Type field_type = 3;
4521
+ */
4522
+ fieldType: FieldDescriptorProto_Type;
4523
+ /**
4524
+ * `key_type` specifies the map key type of this field. This value is useful when traversing
4525
+ * unknown fields through wire data: specifically, it allows handling the differences between
4526
+ * different integer encodings.
4527
+ *
4528
+ * @generated from field: optional google.protobuf.FieldDescriptorProto.Type key_type = 4;
4529
+ */
4530
+ keyType: FieldDescriptorProto_Type;
4531
+ /**
4532
+ * `value_type` specifies map value type of this field. This is useful if you want to display a
4533
+ * value inside unknown fields through wire data.
4534
+ *
4535
+ * @generated from field: optional google.protobuf.FieldDescriptorProto.Type value_type = 5;
4536
+ */
4537
+ valueType: FieldDescriptorProto_Type;
4538
+ /**
4539
+ * `subscript` contains a repeated index or map key, if this path element nests into a repeated or map field.
4540
+ *
4541
+ * @generated from oneof buf.validate.FieldPathElement.subscript
4542
+ */
4543
+ subscript: {
4544
+ /**
4545
+ * `index` specifies a 0-based index into a repeated field.
4546
+ *
4547
+ * @generated from field: uint64 index = 6;
4548
+ */
4549
+ value: bigint;
4550
+ case: "index";
4551
+ } | {
4552
+ /**
4553
+ * `bool_key` specifies a map key of type bool.
4554
+ *
4555
+ * @generated from field: bool bool_key = 7;
4556
+ */
4557
+ value: boolean;
4558
+ case: "boolKey";
4559
+ } | {
4560
+ /**
4561
+ * `int_key` specifies a map key of type int32, int64, sint32, sint64, sfixed32 or sfixed64.
4562
+ *
4563
+ * @generated from field: int64 int_key = 8;
4564
+ */
4565
+ value: bigint;
4566
+ case: "intKey";
4567
+ } | {
4568
+ /**
4569
+ * `uint_key` specifies a map key of type uint32, uint64, fixed32 or fixed64.
4570
+ *
4571
+ * @generated from field: uint64 uint_key = 9;
4572
+ */
4573
+ value: bigint;
4574
+ case: "uintKey";
4575
+ } | {
4576
+ /**
4577
+ * `string_key` specifies a map key of type string.
4578
+ *
4579
+ * @generated from field: string string_key = 10;
4580
+ */
4581
+ value: string;
4582
+ case: "stringKey";
4583
+ } | {
4584
+ case: undefined;
4585
+ value?: undefined;
4586
+ };
4587
+ };
4588
+ /**
4589
+ * Describes the message buf.validate.FieldPathElement.
4590
+ * Use `create(FieldPathElementSchema)` to create a new message.
4591
+ */
4592
+ declare const FieldPathElementSchema: GenMessage<FieldPathElement>;
4593
+ /**
4594
+ * Specifies how `FieldRules.ignore` behaves, depending on the field's value, and
4595
+ * whether the field tracks presence.
4596
+ *
4597
+ * @generated from enum buf.validate.Ignore
4598
+ */
4599
+ declare enum Ignore {
4600
+ /**
4601
+ * Ignore rules if the field tracks presence and is unset. This is the default
4602
+ * behavior.
4603
+ *
4604
+ * In proto3, only message fields, members of a Protobuf `oneof`, and fields
4605
+ * with the `optional` label track presence. Consequently, the following fields
4606
+ * are always validated, whether a value is set or not:
4607
+ *
4608
+ * ```proto
4609
+ * syntax="proto3";
4610
+ *
4611
+ * message RulesApply {
4612
+ * string email = 1 [
4613
+ * (buf.validate.field).string.email = true
4614
+ * ];
4615
+ * int32 age = 2 [
4616
+ * (buf.validate.field).int32.gt = 0
4617
+ * ];
4618
+ * repeated string labels = 3 [
4619
+ * (buf.validate.field).repeated.min_items = 1
4620
+ * ];
4621
+ * }
4622
+ * ```
4623
+ *
4624
+ * In contrast, the following fields track presence, and are only validated if
4625
+ * a value is set:
4626
+ *
4627
+ * ```proto
4628
+ * syntax="proto3";
4629
+ *
4630
+ * message RulesApplyIfSet {
4631
+ * optional string email = 1 [
4632
+ * (buf.validate.field).string.email = true
4633
+ * ];
4634
+ * oneof ref {
4635
+ * string reference = 2 [
4636
+ * (buf.validate.field).string.uuid = true
4637
+ * ];
4638
+ * string name = 3 [
4639
+ * (buf.validate.field).string.min_len = 4
4640
+ * ];
4641
+ * }
4642
+ * SomeMessage msg = 4 [
4643
+ * (buf.validate.field).cel = {/* ... *\/}
4644
+ * ];
4645
+ * }
4646
+ * ```
4647
+ *
4648
+ * To ensure that such a field is set, add the `required` rule.
4649
+ *
4650
+ * To learn which fields track presence, see the
4651
+ * [Field Presence cheat sheet](https://protobuf.dev/programming-guides/field_presence/#cheat).
4652
+ *
4653
+ * @generated from enum value: IGNORE_UNSPECIFIED = 0;
4654
+ */
4655
+ UNSPECIFIED = 0,
4656
+ /**
4657
+ * Ignore rules if the field is unset, or set to the zero value.
4658
+ *
4659
+ * The zero value depends on the field type:
4660
+ * - For strings, the zero value is the empty string.
4661
+ * - For bytes, the zero value is empty bytes.
4662
+ * - For bool, the zero value is false.
4663
+ * - For numeric types, the zero value is zero.
4664
+ * - For enums, the zero value is the first defined enum value.
4665
+ * - For repeated fields, the zero is an empty list.
4666
+ * - For map fields, the zero is an empty map.
4667
+ * - For message fields, absence of the message (typically a null-value) is considered zero value.
4668
+ *
4669
+ * For fields that track presence (e.g. adding the `optional` label in proto3),
4670
+ * this a no-op and behavior is the same as the default `IGNORE_UNSPECIFIED`.
4671
+ *
4672
+ * @generated from enum value: IGNORE_IF_ZERO_VALUE = 1;
4673
+ */
4674
+ IF_ZERO_VALUE = 1,
4675
+ /**
4676
+ * Always ignore rules, including the `required` rule.
4677
+ *
4678
+ * This is useful for ignoring the rules of a referenced message, or to
4679
+ * temporarily ignore rules during development.
4680
+ *
4681
+ * ```proto
4682
+ * message MyMessage {
4683
+ * // The field's rules will always be ignored, including any validations
4684
+ * // on value's fields.
4685
+ * MyOtherMessage value = 1 [
4686
+ * (buf.validate.field).ignore = IGNORE_ALWAYS
4687
+ * ];
4688
+ * }
4689
+ * ```
4690
+ *
4691
+ * @generated from enum value: IGNORE_ALWAYS = 3;
4692
+ */
4693
+ ALWAYS = 3
4694
+ }
4695
+ /**
4696
+ * Describes the enum buf.validate.Ignore.
4697
+ */
4698
+ declare const IgnoreSchema: GenEnum<Ignore>;
4699
+ /**
4700
+ * KnownRegex contains some well-known patterns.
4701
+ *
4702
+ * @generated from enum buf.validate.KnownRegex
4703
+ */
4704
+ declare enum KnownRegex {
4705
+ /**
4706
+ * @generated from enum value: KNOWN_REGEX_UNSPECIFIED = 0;
4707
+ */
4708
+ UNSPECIFIED = 0,
4709
+ /**
4710
+ * HTTP header name as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2).
4711
+ *
4712
+ * @generated from enum value: KNOWN_REGEX_HTTP_HEADER_NAME = 1;
4713
+ */
4714
+ HTTP_HEADER_NAME = 1,
4715
+ /**
4716
+ * HTTP header value as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4).
4717
+ *
4718
+ * @generated from enum value: KNOWN_REGEX_HTTP_HEADER_VALUE = 2;
4719
+ */
4720
+ HTTP_HEADER_VALUE = 2
4721
+ }
4722
+ /**
4723
+ * Describes the enum buf.validate.KnownRegex.
4724
+ */
4725
+ declare const KnownRegexSchema: GenEnum<KnownRegex>;
4726
+ /**
4727
+ * Rules specify the validations to be performed on this message. By default,
4728
+ * no validation is performed against a message.
4729
+ *
4730
+ * @generated from extension: optional buf.validate.MessageRules message = 1159;
4731
+ */
4732
+ declare const message: GenExtension<MessageOptions, MessageRules>;
4733
+ /**
4734
+ * Rules specify the validations to be performed on this oneof. By default,
4735
+ * no validation is performed against a oneof.
4736
+ *
4737
+ * @generated from extension: optional buf.validate.OneofRules oneof = 1159;
4738
+ */
4739
+ declare const oneof: GenExtension<OneofOptions, OneofRules>;
4740
+ /**
4741
+ * Rules specify the validations to be performed on this field. By default,
4742
+ * no validation is performed against a field.
4743
+ *
4744
+ * @generated from extension: optional buf.validate.FieldRules field = 1159;
4745
+ */
4746
+ declare const field: GenExtension<FieldOptions, FieldRules>;
4747
+ /**
4748
+ * Specifies predefined rules. When extending a standard rule message,
4749
+ * this adds additional CEL expressions that apply when the extension is used.
4750
+ *
4751
+ * ```proto
4752
+ * extend buf.validate.Int32Rules {
4753
+ * bool is_zero [(buf.validate.predefined).cel = {
4754
+ * id: "int32.is_zero",
4755
+ * message: "value must be zero",
4756
+ * expression: "!rule || this == 0",
4757
+ * }];
4758
+ * }
4759
+ *
4760
+ * message Foo {
4761
+ * int32 reserved = 1 [(buf.validate.field).int32.(is_zero) = true];
4762
+ * }
4763
+ * ```
4764
+ *
4765
+ * @generated from extension: optional buf.validate.PredefinedRules predefined = 1160;
4766
+ */
4767
+ declare const predefined: GenExtension<FieldOptions, PredefinedRules>;
4768
+
4769
+ export { AnyRulesSchema, BoolRulesSchema, BytesRulesSchema, DoubleRulesSchema, DurationRulesSchema, EnumRulesSchema, FieldMaskRulesSchema, FieldPathElementSchema, FieldPathSchema, FieldRulesSchema, Fixed32RulesSchema, Fixed64RulesSchema, FloatRulesSchema, Ignore, IgnoreSchema, Int32RulesSchema, Int64RulesSchema, KnownRegex, KnownRegexSchema, MapRulesSchema, MessageOneofRuleSchema, MessageRulesSchema, OneofRulesSchema, PredefinedRulesSchema, RepeatedRulesSchema, RuleSchema, SFixed32RulesSchema, SFixed64RulesSchema, SInt32RulesSchema, SInt64RulesSchema, StringRulesSchema, TimestampRulesSchema, UInt32RulesSchema, UInt64RulesSchema, ViolationSchema, ViolationsSchema, field, file_buf_validate_validate, message, oneof, predefined };
4770
+ export type { AnyRules, BoolRules, BytesRules, DoubleRules, DurationRules, EnumRules, FieldMaskRules, FieldPath, FieldPathElement, FieldRules, Fixed32Rules, Fixed64Rules, FloatRules, Int32Rules, Int64Rules, MapRules, MessageOneofRule, MessageRules, OneofRules, PredefinedRules, RepeatedRules, Rule, SFixed32Rules, SFixed64Rules, SInt32Rules, SInt64Rules, StringRules, TimestampRules, UInt32Rules, UInt64Rules, Violation, Violations };