// @generated by protoc-gen-es v2.2.0 with parameter "target=dts,json_types=true,import_extension=js" // @generated from file validate/validate.proto (package validate, syntax proto2) /* eslint-disable */ import type { GenEnum, GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; import type { Message } from "@bufbuild/protobuf"; import type { Duration, DurationJson, FieldOptions, MessageOptions, OneofOptions, Timestamp, TimestampJson } from "@bufbuild/protobuf/wkt"; /** * Describes the file validate/validate.proto. */ export declare const file_validate_validate: GenFile; /** * FieldRules encapsulates the rules for each type of field. Depending on the * field, the correct set should be used to ensure proper validations. * * @generated from message validate.FieldRules */ export declare type FieldRules = Message<"validate.FieldRules"> & { /** * @generated from field: optional validate.MessageRules message = 17; */ message?: MessageRules; /** * @generated from oneof validate.FieldRules.type */ type: { /** * Scalar Field Types * * @generated from field: validate.FloatRules float = 1; */ value: FloatRules; case: "float"; } | { /** * @generated from field: validate.DoubleRules double = 2; */ value: DoubleRules; case: "double"; } | { /** * @generated from field: validate.Int32Rules int32 = 3; */ value: Int32Rules; case: "int32"; } | { /** * @generated from field: validate.Int64Rules int64 = 4; */ value: Int64Rules; case: "int64"; } | { /** * @generated from field: validate.UInt32Rules uint32 = 5; */ value: UInt32Rules; case: "uint32"; } | { /** * @generated from field: validate.UInt64Rules uint64 = 6; */ value: UInt64Rules; case: "uint64"; } | { /** * @generated from field: validate.SInt32Rules sint32 = 7; */ value: SInt32Rules; case: "sint32"; } | { /** * @generated from field: validate.SInt64Rules sint64 = 8; */ value: SInt64Rules; case: "sint64"; } | { /** * @generated from field: validate.Fixed32Rules fixed32 = 9; */ value: Fixed32Rules; case: "fixed32"; } | { /** * @generated from field: validate.Fixed64Rules fixed64 = 10; */ value: Fixed64Rules; case: "fixed64"; } | { /** * @generated from field: validate.SFixed32Rules sfixed32 = 11; */ value: SFixed32Rules; case: "sfixed32"; } | { /** * @generated from field: validate.SFixed64Rules sfixed64 = 12; */ value: SFixed64Rules; case: "sfixed64"; } | { /** * @generated from field: validate.BoolRules bool = 13; */ value: BoolRules; case: "bool"; } | { /** * @generated from field: validate.StringRules string = 14; */ value: StringRules; case: "string"; } | { /** * @generated from field: validate.BytesRules bytes = 15; */ value: BytesRules; case: "bytes"; } | { /** * Complex Field Types * * @generated from field: validate.EnumRules enum = 16; */ value: EnumRules; case: "enum"; } | { /** * @generated from field: validate.RepeatedRules repeated = 18; */ value: RepeatedRules; case: "repeated"; } | { /** * @generated from field: validate.MapRules map = 19; */ value: MapRules; case: "map"; } | { /** * Well-Known Field Types * * @generated from field: validate.AnyRules any = 20; */ value: AnyRules; case: "any"; } | { /** * @generated from field: validate.DurationRules duration = 21; */ value: DurationRules; case: "duration"; } | { /** * @generated from field: validate.TimestampRules timestamp = 22; */ value: TimestampRules; case: "timestamp"; } | { case: undefined; value?: undefined }; }; /** * FieldRules encapsulates the rules for each type of field. Depending on the * field, the correct set should be used to ensure proper validations. * * @generated from message validate.FieldRules */ export declare type FieldRulesJson = { /** * @generated from field: optional validate.MessageRules message = 17; */ message?: MessageRulesJson; /** * Scalar Field Types * * @generated from field: validate.FloatRules float = 1; */ float?: FloatRulesJson; /** * @generated from field: validate.DoubleRules double = 2; */ double?: DoubleRulesJson; /** * @generated from field: validate.Int32Rules int32 = 3; */ int32?: Int32RulesJson; /** * @generated from field: validate.Int64Rules int64 = 4; */ int64?: Int64RulesJson; /** * @generated from field: validate.UInt32Rules uint32 = 5; */ uint32?: UInt32RulesJson; /** * @generated from field: validate.UInt64Rules uint64 = 6; */ uint64?: UInt64RulesJson; /** * @generated from field: validate.SInt32Rules sint32 = 7; */ sint32?: SInt32RulesJson; /** * @generated from field: validate.SInt64Rules sint64 = 8; */ sint64?: SInt64RulesJson; /** * @generated from field: validate.Fixed32Rules fixed32 = 9; */ fixed32?: Fixed32RulesJson; /** * @generated from field: validate.Fixed64Rules fixed64 = 10; */ fixed64?: Fixed64RulesJson; /** * @generated from field: validate.SFixed32Rules sfixed32 = 11; */ sfixed32?: SFixed32RulesJson; /** * @generated from field: validate.SFixed64Rules sfixed64 = 12; */ sfixed64?: SFixed64RulesJson; /** * @generated from field: validate.BoolRules bool = 13; */ bool?: BoolRulesJson; /** * @generated from field: validate.StringRules string = 14; */ string?: StringRulesJson; /** * @generated from field: validate.BytesRules bytes = 15; */ bytes?: BytesRulesJson; /** * Complex Field Types * * @generated from field: validate.EnumRules enum = 16; */ enum?: EnumRulesJson; /** * @generated from field: validate.RepeatedRules repeated = 18; */ repeated?: RepeatedRulesJson; /** * @generated from field: validate.MapRules map = 19; */ map?: MapRulesJson; /** * Well-Known Field Types * * @generated from field: validate.AnyRules any = 20; */ any?: AnyRulesJson; /** * @generated from field: validate.DurationRules duration = 21; */ duration?: DurationRulesJson; /** * @generated from field: validate.TimestampRules timestamp = 22; */ timestamp?: TimestampRulesJson; }; /** * Describes the message validate.FieldRules. * Use `create(FieldRulesSchema)` to create a new message. */ export declare const FieldRulesSchema: GenMessage; /** * FloatRules describes the constraints applied to `float` values * * @generated from message validate.FloatRules */ export declare type FloatRules = Message<"validate.FloatRules"> & { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional float const = 1; */ const: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional float lt = 2; */ lt: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional float lte = 3; */ lte: number; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional float gt = 4; */ gt: number; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional float gte = 5; */ gte: number; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated float in = 6; */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated float not_in = 7; */ notIn: number[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty: boolean; }; /** * FloatRules describes the constraints applied to `float` values * * @generated from message validate.FloatRules */ export declare type FloatRulesJson = { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional float const = 1; */ const?: number | "NaN" | "Infinity" | "-Infinity"; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional float lt = 2; */ lt?: number | "NaN" | "Infinity" | "-Infinity"; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional float lte = 3; */ lte?: number | "NaN" | "Infinity" | "-Infinity"; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional float gt = 4; */ gt?: number | "NaN" | "Infinity" | "-Infinity"; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional float gte = 5; */ gte?: number | "NaN" | "Infinity" | "-Infinity"; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated float in = 6; */ in?: (number | "NaN" | "Infinity" | "-Infinity")[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated float not_in = 7; */ notIn?: (number | "NaN" | "Infinity" | "-Infinity")[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty?: boolean; }; /** * Describes the message validate.FloatRules. * Use `create(FloatRulesSchema)` to create a new message. */ export declare const FloatRulesSchema: GenMessage; /** * DoubleRules describes the constraints applied to `double` values * * @generated from message validate.DoubleRules */ export declare type DoubleRules = Message<"validate.DoubleRules"> & { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional double const = 1; */ const: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional double lt = 2; */ lt: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional double lte = 3; */ lte: number; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional double gt = 4; */ gt: number; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional double gte = 5; */ gte: number; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated double in = 6; */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated double not_in = 7; */ notIn: number[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty: boolean; }; /** * DoubleRules describes the constraints applied to `double` values * * @generated from message validate.DoubleRules */ export declare type DoubleRulesJson = { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional double const = 1; */ const?: number | "NaN" | "Infinity" | "-Infinity"; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional double lt = 2; */ lt?: number | "NaN" | "Infinity" | "-Infinity"; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional double lte = 3; */ lte?: number | "NaN" | "Infinity" | "-Infinity"; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional double gt = 4; */ gt?: number | "NaN" | "Infinity" | "-Infinity"; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional double gte = 5; */ gte?: number | "NaN" | "Infinity" | "-Infinity"; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated double in = 6; */ in?: (number | "NaN" | "Infinity" | "-Infinity")[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated double not_in = 7; */ notIn?: (number | "NaN" | "Infinity" | "-Infinity")[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty?: boolean; }; /** * Describes the message validate.DoubleRules. * Use `create(DoubleRulesSchema)` to create a new message. */ export declare const DoubleRulesSchema: GenMessage; /** * Int32Rules describes the constraints applied to `int32` values * * @generated from message validate.Int32Rules */ export declare type Int32Rules = Message<"validate.Int32Rules"> & { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional int32 const = 1; */ const: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional int32 lt = 2; */ lt: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional int32 lte = 3; */ lte: number; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional int32 gt = 4; */ gt: number; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional int32 gte = 5; */ gte: number; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated int32 in = 6; */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated int32 not_in = 7; */ notIn: number[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty: boolean; }; /** * Int32Rules describes the constraints applied to `int32` values * * @generated from message validate.Int32Rules */ export declare type Int32RulesJson = { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional int32 const = 1; */ const?: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional int32 lt = 2; */ lt?: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional int32 lte = 3; */ lte?: number; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional int32 gt = 4; */ gt?: number; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional int32 gte = 5; */ gte?: number; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated int32 in = 6; */ in?: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated int32 not_in = 7; */ notIn?: number[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty?: boolean; }; /** * Describes the message validate.Int32Rules. * Use `create(Int32RulesSchema)` to create a new message. */ export declare const Int32RulesSchema: GenMessage; /** * Int64Rules describes the constraints applied to `int64` values * * @generated from message validate.Int64Rules */ export declare type Int64Rules = Message<"validate.Int64Rules"> & { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional int64 const = 1; */ const: bigint; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional int64 lt = 2; */ lt: bigint; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional int64 lte = 3; */ lte: bigint; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional int64 gt = 4; */ gt: bigint; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional int64 gte = 5; */ gte: bigint; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated int64 in = 6; */ in: bigint[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated int64 not_in = 7; */ notIn: bigint[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty: boolean; }; /** * Int64Rules describes the constraints applied to `int64` values * * @generated from message validate.Int64Rules */ export declare type Int64RulesJson = { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional int64 const = 1; */ const?: string; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional int64 lt = 2; */ lt?: string; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional int64 lte = 3; */ lte?: string; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional int64 gt = 4; */ gt?: string; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional int64 gte = 5; */ gte?: string; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated int64 in = 6; */ in?: string[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated int64 not_in = 7; */ notIn?: string[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty?: boolean; }; /** * Describes the message validate.Int64Rules. * Use `create(Int64RulesSchema)` to create a new message. */ export declare const Int64RulesSchema: GenMessage; /** * UInt32Rules describes the constraints applied to `uint32` values * * @generated from message validate.UInt32Rules */ export declare type UInt32Rules = Message<"validate.UInt32Rules"> & { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional uint32 const = 1; */ const: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional uint32 lt = 2; */ lt: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional uint32 lte = 3; */ lte: number; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional uint32 gt = 4; */ gt: number; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional uint32 gte = 5; */ gte: number; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated uint32 in = 6; */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated uint32 not_in = 7; */ notIn: number[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty: boolean; }; /** * UInt32Rules describes the constraints applied to `uint32` values * * @generated from message validate.UInt32Rules */ export declare type UInt32RulesJson = { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional uint32 const = 1; */ const?: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional uint32 lt = 2; */ lt?: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional uint32 lte = 3; */ lte?: number; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional uint32 gt = 4; */ gt?: number; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional uint32 gte = 5; */ gte?: number; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated uint32 in = 6; */ in?: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated uint32 not_in = 7; */ notIn?: number[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty?: boolean; }; /** * Describes the message validate.UInt32Rules. * Use `create(UInt32RulesSchema)` to create a new message. */ export declare const UInt32RulesSchema: GenMessage; /** * UInt64Rules describes the constraints applied to `uint64` values * * @generated from message validate.UInt64Rules */ export declare type UInt64Rules = Message<"validate.UInt64Rules"> & { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional uint64 const = 1; */ const: bigint; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional uint64 lt = 2; */ lt: bigint; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional uint64 lte = 3; */ lte: bigint; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional uint64 gt = 4; */ gt: bigint; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional uint64 gte = 5; */ gte: bigint; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated uint64 in = 6; */ in: bigint[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated uint64 not_in = 7; */ notIn: bigint[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty: boolean; }; /** * UInt64Rules describes the constraints applied to `uint64` values * * @generated from message validate.UInt64Rules */ export declare type UInt64RulesJson = { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional uint64 const = 1; */ const?: string; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional uint64 lt = 2; */ lt?: string; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional uint64 lte = 3; */ lte?: string; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional uint64 gt = 4; */ gt?: string; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional uint64 gte = 5; */ gte?: string; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated uint64 in = 6; */ in?: string[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated uint64 not_in = 7; */ notIn?: string[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty?: boolean; }; /** * Describes the message validate.UInt64Rules. * Use `create(UInt64RulesSchema)` to create a new message. */ export declare const UInt64RulesSchema: GenMessage; /** * SInt32Rules describes the constraints applied to `sint32` values * * @generated from message validate.SInt32Rules */ export declare type SInt32Rules = Message<"validate.SInt32Rules"> & { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional sint32 const = 1; */ const: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional sint32 lt = 2; */ lt: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional sint32 lte = 3; */ lte: number; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional sint32 gt = 4; */ gt: number; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional sint32 gte = 5; */ gte: number; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated sint32 in = 6; */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated sint32 not_in = 7; */ notIn: number[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty: boolean; }; /** * SInt32Rules describes the constraints applied to `sint32` values * * @generated from message validate.SInt32Rules */ export declare type SInt32RulesJson = { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional sint32 const = 1; */ const?: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional sint32 lt = 2; */ lt?: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional sint32 lte = 3; */ lte?: number; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional sint32 gt = 4; */ gt?: number; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional sint32 gte = 5; */ gte?: number; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated sint32 in = 6; */ in?: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated sint32 not_in = 7; */ notIn?: number[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty?: boolean; }; /** * Describes the message validate.SInt32Rules. * Use `create(SInt32RulesSchema)` to create a new message. */ export declare const SInt32RulesSchema: GenMessage; /** * SInt64Rules describes the constraints applied to `sint64` values * * @generated from message validate.SInt64Rules */ export declare type SInt64Rules = Message<"validate.SInt64Rules"> & { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional sint64 const = 1; */ const: bigint; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional sint64 lt = 2; */ lt: bigint; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional sint64 lte = 3; */ lte: bigint; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional sint64 gt = 4; */ gt: bigint; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional sint64 gte = 5; */ gte: bigint; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated sint64 in = 6; */ in: bigint[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated sint64 not_in = 7; */ notIn: bigint[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty: boolean; }; /** * SInt64Rules describes the constraints applied to `sint64` values * * @generated from message validate.SInt64Rules */ export declare type SInt64RulesJson = { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional sint64 const = 1; */ const?: string; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional sint64 lt = 2; */ lt?: string; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional sint64 lte = 3; */ lte?: string; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional sint64 gt = 4; */ gt?: string; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional sint64 gte = 5; */ gte?: string; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated sint64 in = 6; */ in?: string[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated sint64 not_in = 7; */ notIn?: string[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty?: boolean; }; /** * Describes the message validate.SInt64Rules. * Use `create(SInt64RulesSchema)` to create a new message. */ export declare const SInt64RulesSchema: GenMessage; /** * Fixed32Rules describes the constraints applied to `fixed32` values * * @generated from message validate.Fixed32Rules */ export declare type Fixed32Rules = Message<"validate.Fixed32Rules"> & { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional fixed32 const = 1; */ const: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional fixed32 lt = 2; */ lt: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional fixed32 lte = 3; */ lte: number; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional fixed32 gt = 4; */ gt: number; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional fixed32 gte = 5; */ gte: number; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated fixed32 in = 6; */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated fixed32 not_in = 7; */ notIn: number[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty: boolean; }; /** * Fixed32Rules describes the constraints applied to `fixed32` values * * @generated from message validate.Fixed32Rules */ export declare type Fixed32RulesJson = { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional fixed32 const = 1; */ const?: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional fixed32 lt = 2; */ lt?: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional fixed32 lte = 3; */ lte?: number; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional fixed32 gt = 4; */ gt?: number; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional fixed32 gte = 5; */ gte?: number; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated fixed32 in = 6; */ in?: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated fixed32 not_in = 7; */ notIn?: number[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty?: boolean; }; /** * Describes the message validate.Fixed32Rules. * Use `create(Fixed32RulesSchema)` to create a new message. */ export declare const Fixed32RulesSchema: GenMessage; /** * Fixed64Rules describes the constraints applied to `fixed64` values * * @generated from message validate.Fixed64Rules */ export declare type Fixed64Rules = Message<"validate.Fixed64Rules"> & { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional fixed64 const = 1; */ const: bigint; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional fixed64 lt = 2; */ lt: bigint; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional fixed64 lte = 3; */ lte: bigint; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional fixed64 gt = 4; */ gt: bigint; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional fixed64 gte = 5; */ gte: bigint; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated fixed64 in = 6; */ in: bigint[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated fixed64 not_in = 7; */ notIn: bigint[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty: boolean; }; /** * Fixed64Rules describes the constraints applied to `fixed64` values * * @generated from message validate.Fixed64Rules */ export declare type Fixed64RulesJson = { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional fixed64 const = 1; */ const?: string; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional fixed64 lt = 2; */ lt?: string; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional fixed64 lte = 3; */ lte?: string; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional fixed64 gt = 4; */ gt?: string; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional fixed64 gte = 5; */ gte?: string; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated fixed64 in = 6; */ in?: string[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated fixed64 not_in = 7; */ notIn?: string[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty?: boolean; }; /** * Describes the message validate.Fixed64Rules. * Use `create(Fixed64RulesSchema)` to create a new message. */ export declare const Fixed64RulesSchema: GenMessage; /** * SFixed32Rules describes the constraints applied to `sfixed32` values * * @generated from message validate.SFixed32Rules */ export declare type SFixed32Rules = Message<"validate.SFixed32Rules"> & { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional sfixed32 const = 1; */ const: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional sfixed32 lt = 2; */ lt: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional sfixed32 lte = 3; */ lte: number; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional sfixed32 gt = 4; */ gt: number; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional sfixed32 gte = 5; */ gte: number; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated sfixed32 in = 6; */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated sfixed32 not_in = 7; */ notIn: number[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty: boolean; }; /** * SFixed32Rules describes the constraints applied to `sfixed32` values * * @generated from message validate.SFixed32Rules */ export declare type SFixed32RulesJson = { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional sfixed32 const = 1; */ const?: number; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional sfixed32 lt = 2; */ lt?: number; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional sfixed32 lte = 3; */ lte?: number; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional sfixed32 gt = 4; */ gt?: number; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional sfixed32 gte = 5; */ gte?: number; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated sfixed32 in = 6; */ in?: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated sfixed32 not_in = 7; */ notIn?: number[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty?: boolean; }; /** * Describes the message validate.SFixed32Rules. * Use `create(SFixed32RulesSchema)` to create a new message. */ export declare const SFixed32RulesSchema: GenMessage; /** * SFixed64Rules describes the constraints applied to `sfixed64` values * * @generated from message validate.SFixed64Rules */ export declare type SFixed64Rules = Message<"validate.SFixed64Rules"> & { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional sfixed64 const = 1; */ const: bigint; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional sfixed64 lt = 2; */ lt: bigint; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional sfixed64 lte = 3; */ lte: bigint; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional sfixed64 gt = 4; */ gt: bigint; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional sfixed64 gte = 5; */ gte: bigint; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated sfixed64 in = 6; */ in: bigint[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated sfixed64 not_in = 7; */ notIn: bigint[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty: boolean; }; /** * SFixed64Rules describes the constraints applied to `sfixed64` values * * @generated from message validate.SFixed64Rules */ export declare type SFixed64RulesJson = { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional sfixed64 const = 1; */ const?: string; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional sfixed64 lt = 2; */ lt?: string; /** * Lte specifies that this field must be less than or equal to the * specified value, inclusive * * @generated from field: optional sfixed64 lte = 3; */ lte?: string; /** * Gt specifies that this field must be greater than the specified value, * exclusive. If the value of Gt is larger than a specified Lt or Lte, the * range is reversed. * * @generated from field: optional sfixed64 gt = 4; */ gt?: string; /** * Gte specifies that this field must be greater than or equal to the * specified value, inclusive. If the value of Gte is larger than a * specified Lt or Lte, the range is reversed. * * @generated from field: optional sfixed64 gte = 5; */ gte?: string; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated sfixed64 in = 6; */ in?: string[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated sfixed64 not_in = 7; */ notIn?: string[]; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 8; */ ignoreEmpty?: boolean; }; /** * Describes the message validate.SFixed64Rules. * Use `create(SFixed64RulesSchema)` to create a new message. */ export declare const SFixed64RulesSchema: GenMessage; /** * BoolRules describes the constraints applied to `bool` values * * @generated from message validate.BoolRules */ export declare type BoolRules = Message<"validate.BoolRules"> & { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional bool const = 1; */ const: boolean; }; /** * BoolRules describes the constraints applied to `bool` values * * @generated from message validate.BoolRules */ export declare type BoolRulesJson = { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional bool const = 1; */ const?: boolean; }; /** * Describes the message validate.BoolRules. * Use `create(BoolRulesSchema)` to create a new message. */ export declare const BoolRulesSchema: GenMessage; /** * StringRules describe the constraints applied to `string` values * * @generated from message validate.StringRules */ export declare type StringRules = Message<"validate.StringRules"> & { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional string const = 1; */ const: string; /** * Len specifies that this field must be the specified number of * characters (Unicode code points). Note that the number of * characters may differ from the number of bytes in the string. * * @generated from field: optional uint64 len = 19; */ len: bigint; /** * MinLen specifies that this field must be the specified number of * characters (Unicode code points) at a minimum. Note that the number of * characters may differ from the number of bytes in the string. * * @generated from field: optional uint64 min_len = 2; */ minLen: bigint; /** * MaxLen specifies that this field must be the specified number of * characters (Unicode code points) at a maximum. Note that the number of * characters may differ from the number of bytes in the string. * * @generated from field: optional uint64 max_len = 3; */ maxLen: bigint; /** * LenBytes specifies that this field must be the specified number of bytes * * @generated from field: optional uint64 len_bytes = 20; */ lenBytes: bigint; /** * MinBytes specifies that this field must be the specified number of bytes * at a minimum * * @generated from field: optional uint64 min_bytes = 4; */ minBytes: bigint; /** * MaxBytes specifies that this field must be the specified number of bytes * at a maximum * * @generated from field: optional uint64 max_bytes = 5; */ maxBytes: bigint; /** * Pattern specifes that this field must match against the specified * regular expression (RE2 syntax). The included expression should elide * any delimiters. * * @generated from field: optional string pattern = 6; */ pattern: string; /** * Prefix specifies that this field must have the specified substring at * the beginning of the string. * * @generated from field: optional string prefix = 7; */ prefix: string; /** * Suffix specifies that this field must have the specified substring at * the end of the string. * * @generated from field: optional string suffix = 8; */ suffix: string; /** * Contains specifies that this field must have the specified substring * anywhere in the string. * * @generated from field: optional string contains = 9; */ contains: string; /** * NotContains specifies that this field cannot have the specified substring * anywhere in the string. * * @generated from field: optional string not_contains = 23; */ notContains: string; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated string in = 10; */ in: string[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated string not_in = 11; */ notIn: string[]; /** * WellKnown rules provide advanced constraints against common string * patterns * * @generated from oneof validate.StringRules.well_known */ wellKnown: { /** * Email specifies that the field must be a valid email address as * defined by RFC 5322 * * @generated from field: bool email = 12; */ value: boolean; case: "email"; } | { /** * Hostname specifies that the field must be a valid hostname as * defined by RFC 1034. This constraint does not support * internationalized domain names (IDNs). * * @generated from field: bool hostname = 13; */ value: boolean; case: "hostname"; } | { /** * Ip specifies that the field must be a valid IP (v4 or v6) address. * Valid IPv6 addresses should not include surrounding square brackets. * * @generated from field: bool ip = 14; */ value: boolean; case: "ip"; } | { /** * Ipv4 specifies that the field must be a valid IPv4 address. * * @generated from field: bool ipv4 = 15; */ value: boolean; case: "ipv4"; } | { /** * Ipv6 specifies that the field must be a valid IPv6 address. Valid * IPv6 addresses should not include surrounding square brackets. * * @generated from field: bool ipv6 = 16; */ value: boolean; case: "ipv6"; } | { /** * Uri specifies that the field must be a valid, absolute URI as defined * by RFC 3986 * * @generated from field: bool uri = 17; */ value: boolean; case: "uri"; } | { /** * UriRef specifies that the field must be a valid URI as defined by RFC * 3986 and may be relative or absolute. * * @generated from field: bool uri_ref = 18; */ value: boolean; case: "uriRef"; } | { /** * Address specifies that the field must be either a valid hostname as * defined by RFC 1034 (which does not support internationalized domain * names or IDNs), or it can be a valid IP (v4 or v6). * * @generated from field: bool address = 21; */ value: boolean; case: "address"; } | { /** * Uuid specifies that the field must be a valid UUID as defined by * RFC 4122 * * @generated from field: bool uuid = 22; */ value: boolean; case: "uuid"; } | { /** * WellKnownRegex specifies a common well known pattern defined as a regex. * * @generated from field: validate.KnownRegex well_known_regex = 24; */ value: KnownRegex; case: "wellKnownRegex"; } | { case: undefined; value?: undefined }; /** * This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable * strict header validation. * By default, this is true, and HTTP header validations are RFC-compliant. * Setting to false will enable a looser validations that only disallows * \r\n\0 characters, which can be used to bypass header matching rules. * * @generated from field: optional bool strict = 25 [default = true]; */ strict: boolean; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 26; */ ignoreEmpty: boolean; }; /** * StringRules describe the constraints applied to `string` values * * @generated from message validate.StringRules */ export declare type StringRulesJson = { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional string const = 1; */ const?: string; /** * Len specifies that this field must be the specified number of * characters (Unicode code points). Note that the number of * characters may differ from the number of bytes in the string. * * @generated from field: optional uint64 len = 19; */ len?: string; /** * MinLen specifies that this field must be the specified number of * characters (Unicode code points) at a minimum. Note that the number of * characters may differ from the number of bytes in the string. * * @generated from field: optional uint64 min_len = 2; */ minLen?: string; /** * MaxLen specifies that this field must be the specified number of * characters (Unicode code points) at a maximum. Note that the number of * characters may differ from the number of bytes in the string. * * @generated from field: optional uint64 max_len = 3; */ maxLen?: string; /** * LenBytes specifies that this field must be the specified number of bytes * * @generated from field: optional uint64 len_bytes = 20; */ lenBytes?: string; /** * MinBytes specifies that this field must be the specified number of bytes * at a minimum * * @generated from field: optional uint64 min_bytes = 4; */ minBytes?: string; /** * MaxBytes specifies that this field must be the specified number of bytes * at a maximum * * @generated from field: optional uint64 max_bytes = 5; */ maxBytes?: string; /** * Pattern specifes that this field must match against the specified * regular expression (RE2 syntax). The included expression should elide * any delimiters. * * @generated from field: optional string pattern = 6; */ pattern?: string; /** * Prefix specifies that this field must have the specified substring at * the beginning of the string. * * @generated from field: optional string prefix = 7; */ prefix?: string; /** * Suffix specifies that this field must have the specified substring at * the end of the string. * * @generated from field: optional string suffix = 8; */ suffix?: string; /** * Contains specifies that this field must have the specified substring * anywhere in the string. * * @generated from field: optional string contains = 9; */ contains?: string; /** * NotContains specifies that this field cannot have the specified substring * anywhere in the string. * * @generated from field: optional string not_contains = 23; */ notContains?: string; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated string in = 10; */ in?: string[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated string not_in = 11; */ notIn?: string[]; /** * Email specifies that the field must be a valid email address as * defined by RFC 5322 * * @generated from field: bool email = 12; */ email?: boolean; /** * Hostname specifies that the field must be a valid hostname as * defined by RFC 1034. This constraint does not support * internationalized domain names (IDNs). * * @generated from field: bool hostname = 13; */ hostname?: boolean; /** * Ip specifies that the field must be a valid IP (v4 or v6) address. * Valid IPv6 addresses should not include surrounding square brackets. * * @generated from field: bool ip = 14; */ ip?: boolean; /** * Ipv4 specifies that the field must be a valid IPv4 address. * * @generated from field: bool ipv4 = 15; */ ipv4?: boolean; /** * Ipv6 specifies that the field must be a valid IPv6 address. Valid * IPv6 addresses should not include surrounding square brackets. * * @generated from field: bool ipv6 = 16; */ ipv6?: boolean; /** * Uri specifies that the field must be a valid, absolute URI as defined * by RFC 3986 * * @generated from field: bool uri = 17; */ uri?: boolean; /** * UriRef specifies that the field must be a valid URI as defined by RFC * 3986 and may be relative or absolute. * * @generated from field: bool uri_ref = 18; */ uriRef?: boolean; /** * Address specifies that the field must be either a valid hostname as * defined by RFC 1034 (which does not support internationalized domain * names or IDNs), or it can be a valid IP (v4 or v6). * * @generated from field: bool address = 21; */ address?: boolean; /** * Uuid specifies that the field must be a valid UUID as defined by * RFC 4122 * * @generated from field: bool uuid = 22; */ uuid?: boolean; /** * WellKnownRegex specifies a common well known pattern defined as a regex. * * @generated from field: validate.KnownRegex well_known_regex = 24; */ wellKnownRegex?: KnownRegexJson; /** * This applies to regexes HTTP_HEADER_NAME and HTTP_HEADER_VALUE to enable * strict header validation. * By default, this is true, and HTTP header validations are RFC-compliant. * Setting to false will enable a looser validations that only disallows * \r\n\0 characters, which can be used to bypass header matching rules. * * @generated from field: optional bool strict = 25 [default = true]; */ strict?: boolean; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 26; */ ignoreEmpty?: boolean; }; /** * Describes the message validate.StringRules. * Use `create(StringRulesSchema)` to create a new message. */ export declare const StringRulesSchema: GenMessage; /** * BytesRules describe the constraints applied to `bytes` values * * @generated from message validate.BytesRules */ export declare type BytesRules = Message<"validate.BytesRules"> & { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional bytes const = 1; */ const: Uint8Array; /** * Len specifies that this field must be the specified number of bytes * * @generated from field: optional uint64 len = 13; */ len: bigint; /** * MinLen specifies that this field must be the specified number of bytes * at a minimum * * @generated from field: optional uint64 min_len = 2; */ minLen: bigint; /** * MaxLen specifies that this field must be the specified number of bytes * at a maximum * * @generated from field: optional uint64 max_len = 3; */ maxLen: bigint; /** * Pattern specifes that this field must match against the specified * regular expression (RE2 syntax). The included expression should elide * any delimiters. * * @generated from field: optional string pattern = 4; */ pattern: string; /** * Prefix specifies that this field must have the specified bytes at the * beginning of the string. * * @generated from field: optional bytes prefix = 5; */ prefix: Uint8Array; /** * Suffix specifies that this field must have the specified bytes at the * end of the string. * * @generated from field: optional bytes suffix = 6; */ suffix: Uint8Array; /** * Contains specifies that this field must have the specified bytes * anywhere in the string. * * @generated from field: optional bytes contains = 7; */ contains: Uint8Array; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated bytes in = 8; */ in: Uint8Array[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated bytes not_in = 9; */ notIn: Uint8Array[]; /** * WellKnown rules provide advanced constraints against common byte * patterns * * @generated from oneof validate.BytesRules.well_known */ wellKnown: { /** * Ip specifies that the field must be a valid IP (v4 or v6) address in * byte format * * @generated from field: bool ip = 10; */ value: boolean; case: "ip"; } | { /** * Ipv4 specifies that the field must be a valid IPv4 address in byte * format * * @generated from field: bool ipv4 = 11; */ value: boolean; case: "ipv4"; } | { /** * Ipv6 specifies that the field must be a valid IPv6 address in byte * format * * @generated from field: bool ipv6 = 12; */ value: boolean; case: "ipv6"; } | { case: undefined; value?: undefined }; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 14; */ ignoreEmpty: boolean; }; /** * BytesRules describe the constraints applied to `bytes` values * * @generated from message validate.BytesRules */ export declare type BytesRulesJson = { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional bytes const = 1; */ const?: string; /** * Len specifies that this field must be the specified number of bytes * * @generated from field: optional uint64 len = 13; */ len?: string; /** * MinLen specifies that this field must be the specified number of bytes * at a minimum * * @generated from field: optional uint64 min_len = 2; */ minLen?: string; /** * MaxLen specifies that this field must be the specified number of bytes * at a maximum * * @generated from field: optional uint64 max_len = 3; */ maxLen?: string; /** * Pattern specifes that this field must match against the specified * regular expression (RE2 syntax). The included expression should elide * any delimiters. * * @generated from field: optional string pattern = 4; */ pattern?: string; /** * Prefix specifies that this field must have the specified bytes at the * beginning of the string. * * @generated from field: optional bytes prefix = 5; */ prefix?: string; /** * Suffix specifies that this field must have the specified bytes at the * end of the string. * * @generated from field: optional bytes suffix = 6; */ suffix?: string; /** * Contains specifies that this field must have the specified bytes * anywhere in the string. * * @generated from field: optional bytes contains = 7; */ contains?: string; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated bytes in = 8; */ in?: string[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated bytes not_in = 9; */ notIn?: string[]; /** * Ip specifies that the field must be a valid IP (v4 or v6) address in * byte format * * @generated from field: bool ip = 10; */ ip?: boolean; /** * Ipv4 specifies that the field must be a valid IPv4 address in byte * format * * @generated from field: bool ipv4 = 11; */ ipv4?: boolean; /** * Ipv6 specifies that the field must be a valid IPv6 address in byte * format * * @generated from field: bool ipv6 = 12; */ ipv6?: boolean; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 14; */ ignoreEmpty?: boolean; }; /** * Describes the message validate.BytesRules. * Use `create(BytesRulesSchema)` to create a new message. */ export declare const BytesRulesSchema: GenMessage; /** * EnumRules describe the constraints applied to enum values * * @generated from message validate.EnumRules */ export declare type EnumRules = Message<"validate.EnumRules"> & { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional int32 const = 1; */ const: number; /** * DefinedOnly specifies that this field must be only one of the defined * values for this enum, failing on any undefined value. * * @generated from field: optional bool defined_only = 2; */ definedOnly: boolean; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated int32 in = 3; */ in: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated int32 not_in = 4; */ notIn: number[]; }; /** * EnumRules describe the constraints applied to enum values * * @generated from message validate.EnumRules */ export declare type EnumRulesJson = { /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional int32 const = 1; */ const?: number; /** * DefinedOnly specifies that this field must be only one of the defined * values for this enum, failing on any undefined value. * * @generated from field: optional bool defined_only = 2; */ definedOnly?: boolean; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated int32 in = 3; */ in?: number[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated int32 not_in = 4; */ notIn?: number[]; }; /** * Describes the message validate.EnumRules. * Use `create(EnumRulesSchema)` to create a new message. */ export declare const EnumRulesSchema: GenMessage; /** * MessageRules describe the constraints applied to embedded message values. * For message-type fields, validation is performed recursively. * * @generated from message validate.MessageRules */ export declare type MessageRules = Message<"validate.MessageRules"> & { /** * Skip specifies that the validation rules of this field should not be * evaluated * * @generated from field: optional bool skip = 1; */ skip: boolean; /** * Required specifies that this field must be set * * @generated from field: optional bool required = 2; */ required: boolean; }; /** * MessageRules describe the constraints applied to embedded message values. * For message-type fields, validation is performed recursively. * * @generated from message validate.MessageRules */ export declare type MessageRulesJson = { /** * Skip specifies that the validation rules of this field should not be * evaluated * * @generated from field: optional bool skip = 1; */ skip?: boolean; /** * Required specifies that this field must be set * * @generated from field: optional bool required = 2; */ required?: boolean; }; /** * Describes the message validate.MessageRules. * Use `create(MessageRulesSchema)` to create a new message. */ export declare const MessageRulesSchema: GenMessage; /** * RepeatedRules describe the constraints applied to `repeated` values * * @generated from message validate.RepeatedRules */ export declare type RepeatedRules = Message<"validate.RepeatedRules"> & { /** * MinItems specifies that this field must have the specified number of * items at a minimum * * @generated from field: optional uint64 min_items = 1; */ minItems: bigint; /** * MaxItems specifies that this field must have the specified number of * items at a maximum * * @generated from field: optional uint64 max_items = 2; */ maxItems: bigint; /** * Unique specifies that all elements in this field must be unique. This * contraint is only applicable to scalar and enum types (messages are not * supported). * * @generated from field: optional bool unique = 3; */ unique: boolean; /** * Items specifies the contraints to be applied to each item in the field. * Repeated message fields will still execute validation against each item * unless skip is specified here. * * @generated from field: optional validate.FieldRules items = 4; */ items?: FieldRules; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 5; */ ignoreEmpty: boolean; }; /** * RepeatedRules describe the constraints applied to `repeated` values * * @generated from message validate.RepeatedRules */ export declare type RepeatedRulesJson = { /** * MinItems specifies that this field must have the specified number of * items at a minimum * * @generated from field: optional uint64 min_items = 1; */ minItems?: string; /** * MaxItems specifies that this field must have the specified number of * items at a maximum * * @generated from field: optional uint64 max_items = 2; */ maxItems?: string; /** * Unique specifies that all elements in this field must be unique. This * contraint is only applicable to scalar and enum types (messages are not * supported). * * @generated from field: optional bool unique = 3; */ unique?: boolean; /** * Items specifies the contraints to be applied to each item in the field. * Repeated message fields will still execute validation against each item * unless skip is specified here. * * @generated from field: optional validate.FieldRules items = 4; */ items?: FieldRulesJson; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 5; */ ignoreEmpty?: boolean; }; /** * Describes the message validate.RepeatedRules. * Use `create(RepeatedRulesSchema)` to create a new message. */ export declare const RepeatedRulesSchema: GenMessage; /** * MapRules describe the constraints applied to `map` values * * @generated from message validate.MapRules */ export declare type MapRules = Message<"validate.MapRules"> & { /** * MinPairs specifies that this field must have the specified number of * KVs at a minimum * * @generated from field: optional uint64 min_pairs = 1; */ minPairs: bigint; /** * MaxPairs specifies that this field must have the specified number of * KVs at a maximum * * @generated from field: optional uint64 max_pairs = 2; */ maxPairs: bigint; /** * NoSparse specifies values in this field cannot be unset. This only * applies to map's with message value types. * * @generated from field: optional bool no_sparse = 3; */ noSparse: boolean; /** * Keys specifies the constraints to be applied to each key in the field. * * @generated from field: optional validate.FieldRules keys = 4; */ keys?: FieldRules; /** * Values specifies the constraints to be applied to the value of each key * in the field. Message values will still have their validations evaluated * unless skip is specified here. * * @generated from field: optional validate.FieldRules values = 5; */ values?: FieldRules; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 6; */ ignoreEmpty: boolean; }; /** * MapRules describe the constraints applied to `map` values * * @generated from message validate.MapRules */ export declare type MapRulesJson = { /** * MinPairs specifies that this field must have the specified number of * KVs at a minimum * * @generated from field: optional uint64 min_pairs = 1; */ minPairs?: string; /** * MaxPairs specifies that this field must have the specified number of * KVs at a maximum * * @generated from field: optional uint64 max_pairs = 2; */ maxPairs?: string; /** * NoSparse specifies values in this field cannot be unset. This only * applies to map's with message value types. * * @generated from field: optional bool no_sparse = 3; */ noSparse?: boolean; /** * Keys specifies the constraints to be applied to each key in the field. * * @generated from field: optional validate.FieldRules keys = 4; */ keys?: FieldRulesJson; /** * Values specifies the constraints to be applied to the value of each key * in the field. Message values will still have their validations evaluated * unless skip is specified here. * * @generated from field: optional validate.FieldRules values = 5; */ values?: FieldRulesJson; /** * IgnoreEmpty specifies that the validation rules of this field should be * evaluated only if the field is not empty * * @generated from field: optional bool ignore_empty = 6; */ ignoreEmpty?: boolean; }; /** * Describes the message validate.MapRules. * Use `create(MapRulesSchema)` to create a new message. */ export declare const MapRulesSchema: GenMessage; /** * AnyRules describe constraints applied exclusively to the * `google.protobuf.Any` well-known type * * @generated from message validate.AnyRules */ export declare type AnyRules = Message<"validate.AnyRules"> & { /** * Required specifies that this field must be set * * @generated from field: optional bool required = 1; */ required: boolean; /** * In specifies that this field's `type_url` must be equal to one of the * specified values. * * @generated from field: repeated string in = 2; */ in: string[]; /** * NotIn specifies that this field's `type_url` must not be equal to any of * the specified values. * * @generated from field: repeated string not_in = 3; */ notIn: string[]; }; /** * AnyRules describe constraints applied exclusively to the * `google.protobuf.Any` well-known type * * @generated from message validate.AnyRules */ export declare type AnyRulesJson = { /** * Required specifies that this field must be set * * @generated from field: optional bool required = 1; */ required?: boolean; /** * In specifies that this field's `type_url` must be equal to one of the * specified values. * * @generated from field: repeated string in = 2; */ in?: string[]; /** * NotIn specifies that this field's `type_url` must not be equal to any of * the specified values. * * @generated from field: repeated string not_in = 3; */ notIn?: string[]; }; /** * Describes the message validate.AnyRules. * Use `create(AnyRulesSchema)` to create a new message. */ export declare const AnyRulesSchema: GenMessage; /** * DurationRules describe the constraints applied exclusively to the * `google.protobuf.Duration` well-known type * * @generated from message validate.DurationRules */ export declare type DurationRules = Message<"validate.DurationRules"> & { /** * Required specifies that this field must be set * * @generated from field: optional bool required = 1; */ required: boolean; /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional google.protobuf.Duration const = 2; */ const?: Duration; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional google.protobuf.Duration lt = 3; */ lt?: Duration; /** * Lt specifies that this field must be less than the specified value, * inclusive * * @generated from field: optional google.protobuf.Duration lte = 4; */ lte?: Duration; /** * Gt specifies that this field must be greater than the specified value, * exclusive * * @generated from field: optional google.protobuf.Duration gt = 5; */ gt?: Duration; /** * Gte specifies that this field must be greater than the specified value, * inclusive * * @generated from field: optional google.protobuf.Duration gte = 6; */ gte?: Duration; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated google.protobuf.Duration in = 7; */ in: Duration[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated google.protobuf.Duration not_in = 8; */ notIn: Duration[]; }; /** * DurationRules describe the constraints applied exclusively to the * `google.protobuf.Duration` well-known type * * @generated from message validate.DurationRules */ export declare type DurationRulesJson = { /** * Required specifies that this field must be set * * @generated from field: optional bool required = 1; */ required?: boolean; /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional google.protobuf.Duration const = 2; */ const?: DurationJson; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional google.protobuf.Duration lt = 3; */ lt?: DurationJson; /** * Lt specifies that this field must be less than the specified value, * inclusive * * @generated from field: optional google.protobuf.Duration lte = 4; */ lte?: DurationJson; /** * Gt specifies that this field must be greater than the specified value, * exclusive * * @generated from field: optional google.protobuf.Duration gt = 5; */ gt?: DurationJson; /** * Gte specifies that this field must be greater than the specified value, * inclusive * * @generated from field: optional google.protobuf.Duration gte = 6; */ gte?: DurationJson; /** * In specifies that this field must be equal to one of the specified * values * * @generated from field: repeated google.protobuf.Duration in = 7; */ in?: DurationJson[]; /** * NotIn specifies that this field cannot be equal to one of the specified * values * * @generated from field: repeated google.protobuf.Duration not_in = 8; */ notIn?: DurationJson[]; }; /** * Describes the message validate.DurationRules. * Use `create(DurationRulesSchema)` to create a new message. */ export declare const DurationRulesSchema: GenMessage; /** * TimestampRules describe the constraints applied exclusively to the * `google.protobuf.Timestamp` well-known type * * @generated from message validate.TimestampRules */ export declare type TimestampRules = Message<"validate.TimestampRules"> & { /** * Required specifies that this field must be set * * @generated from field: optional bool required = 1; */ required: boolean; /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional google.protobuf.Timestamp const = 2; */ const?: Timestamp; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional google.protobuf.Timestamp lt = 3; */ lt?: Timestamp; /** * Lte specifies that this field must be less than the specified value, * inclusive * * @generated from field: optional google.protobuf.Timestamp lte = 4; */ lte?: Timestamp; /** * Gt specifies that this field must be greater than the specified value, * exclusive * * @generated from field: optional google.protobuf.Timestamp gt = 5; */ gt?: Timestamp; /** * Gte specifies that this field must be greater than the specified value, * inclusive * * @generated from field: optional google.protobuf.Timestamp gte = 6; */ gte?: Timestamp; /** * LtNow specifies that this must be less than the current time. LtNow * can only be used with the Within rule. * * @generated from field: optional bool lt_now = 7; */ ltNow: boolean; /** * GtNow specifies that this must be greater than the current time. GtNow * can only be used with the Within rule. * * @generated from field: optional bool gt_now = 8; */ gtNow: boolean; /** * Within specifies that this field must be within this duration of the * current time. This constraint can be used alone or with the LtNow and * GtNow rules. * * @generated from field: optional google.protobuf.Duration within = 9; */ within?: Duration; }; /** * TimestampRules describe the constraints applied exclusively to the * `google.protobuf.Timestamp` well-known type * * @generated from message validate.TimestampRules */ export declare type TimestampRulesJson = { /** * Required specifies that this field must be set * * @generated from field: optional bool required = 1; */ required?: boolean; /** * Const specifies that this field must be exactly the specified value * * @generated from field: optional google.protobuf.Timestamp const = 2; */ const?: TimestampJson; /** * Lt specifies that this field must be less than the specified value, * exclusive * * @generated from field: optional google.protobuf.Timestamp lt = 3; */ lt?: TimestampJson; /** * Lte specifies that this field must be less than the specified value, * inclusive * * @generated from field: optional google.protobuf.Timestamp lte = 4; */ lte?: TimestampJson; /** * Gt specifies that this field must be greater than the specified value, * exclusive * * @generated from field: optional google.protobuf.Timestamp gt = 5; */ gt?: TimestampJson; /** * Gte specifies that this field must be greater than the specified value, * inclusive * * @generated from field: optional google.protobuf.Timestamp gte = 6; */ gte?: TimestampJson; /** * LtNow specifies that this must be less than the current time. LtNow * can only be used with the Within rule. * * @generated from field: optional bool lt_now = 7; */ ltNow?: boolean; /** * GtNow specifies that this must be greater than the current time. GtNow * can only be used with the Within rule. * * @generated from field: optional bool gt_now = 8; */ gtNow?: boolean; /** * Within specifies that this field must be within this duration of the * current time. This constraint can be used alone or with the LtNow and * GtNow rules. * * @generated from field: optional google.protobuf.Duration within = 9; */ within?: DurationJson; }; /** * Describes the message validate.TimestampRules. * Use `create(TimestampRulesSchema)` to create a new message. */ export declare const TimestampRulesSchema: GenMessage; /** * WellKnownRegex contain some well-known patterns. * * @generated from enum validate.KnownRegex */ export enum KnownRegex { /** * @generated from enum value: UNKNOWN = 0; */ UNKNOWN = 0, /** * HTTP header name as defined by RFC 7230. * * @generated from enum value: HTTP_HEADER_NAME = 1; */ HTTP_HEADER_NAME = 1, /** * HTTP header value as defined by RFC 7230. * * @generated from enum value: HTTP_HEADER_VALUE = 2; */ HTTP_HEADER_VALUE = 2, } /** * WellKnownRegex contain some well-known patterns. * * @generated from enum validate.KnownRegex */ export declare type KnownRegexJson = "UNKNOWN" | "HTTP_HEADER_NAME" | "HTTP_HEADER_VALUE"; /** * Describes the enum validate.KnownRegex. */ export declare const KnownRegexSchema: GenEnum; /** * Disabled nullifies any validation rules for this message, including any * message fields associated with it that do support validation. * * @generated from extension: optional bool disabled = 1071; */ export declare const disabled: GenExtension; /** * Ignore skips generation of validation methods for this message. * * @generated from extension: optional bool ignored = 1072; */ export declare const ignored: GenExtension; /** * Required ensures that exactly one the field options in a oneof is set; * validation fails if no fields in the oneof are set. * * @generated from extension: optional bool required = 1071; */ export declare const required: GenExtension; /** * Rules specify the validations to be performed on this field. By default, * no validation is performed against a field. * * @generated from extension: optional validate.FieldRules rules = 1071; */ export declare const rules: GenExtension;