Documentation ¶
Index ¶
- Constants
- Variables
- type AnyRule
- func (*AnyRule) Descriptor() ([]byte, []int)deprecated
- func (x *AnyRule) GetError() *Error
- func (x *AnyRule) GetIn() []string
- func (x *AnyRule) GetNotIn() []string
- func (x *AnyRule) GetRequired() bool
- func (*AnyRule) ProtoMessage()
- func (x *AnyRule) ProtoReflect() protoreflect.Message
- func (x *AnyRule) Reset()
- func (x *AnyRule) String() string
- type AnyRules
- type BoolRules
- type BytesRule
- func (*BytesRule) Descriptor() ([]byte, []int)deprecated
- func (x *BytesRule) GetConst() []byte
- func (x *BytesRule) GetContains() []byte
- func (x *BytesRule) GetError() *Error
- func (x *BytesRule) GetIgnoreEmpty() bool
- func (x *BytesRule) GetIn() [][]byte
- func (x *BytesRule) GetIp() bool
- func (x *BytesRule) GetIpv4() bool
- func (x *BytesRule) GetIpv6() bool
- func (x *BytesRule) GetLen() uint64
- func (x *BytesRule) GetMaxLen() uint64
- func (x *BytesRule) GetMinLen() uint64
- func (x *BytesRule) GetNotIn() [][]byte
- func (x *BytesRule) GetPattern() string
- func (x *BytesRule) GetPrefix() []byte
- func (x *BytesRule) GetSuffix() []byte
- func (m *BytesRule) GetWellKnown() isBytesRule_WellKnown
- func (*BytesRule) ProtoMessage()
- func (x *BytesRule) ProtoReflect() protoreflect.Message
- func (x *BytesRule) Reset()
- func (x *BytesRule) String() string
- type BytesRule_Ip
- type BytesRule_Ipv4
- type BytesRule_Ipv6
- type BytesRules
- type DoubleRule
- func (*DoubleRule) Descriptor() ([]byte, []int)deprecated
- func (x *DoubleRule) GetConst() float64
- func (x *DoubleRule) GetError() *Error
- func (x *DoubleRule) GetGt() float64
- func (x *DoubleRule) GetGte() float64
- func (x *DoubleRule) GetIgnoreEmpty() bool
- func (x *DoubleRule) GetIn() []float64
- func (x *DoubleRule) GetLt() float64
- func (x *DoubleRule) GetLte() float64
- func (x *DoubleRule) GetNotIn() []float64
- func (*DoubleRule) ProtoMessage()
- func (x *DoubleRule) ProtoReflect() protoreflect.Message
- func (x *DoubleRule) Reset()
- func (x *DoubleRule) String() string
- type DoubleRules
- type DurationRule
- func (*DurationRule) Descriptor() ([]byte, []int)deprecated
- func (x *DurationRule) GetConst() *durationpb.Duration
- func (x *DurationRule) GetError() *Error
- func (x *DurationRule) GetGt() *durationpb.Duration
- func (x *DurationRule) GetGte() *durationpb.Duration
- func (x *DurationRule) GetIn() []*durationpb.Duration
- func (x *DurationRule) GetLt() *durationpb.Duration
- func (x *DurationRule) GetLte() *durationpb.Duration
- func (x *DurationRule) GetNotIn() []*durationpb.Duration
- func (x *DurationRule) GetRequired() bool
- func (*DurationRule) ProtoMessage()
- func (x *DurationRule) ProtoReflect() protoreflect.Message
- func (x *DurationRule) Reset()
- func (x *DurationRule) String() string
- type DurationRules
- type EnumRules
- func (*EnumRules) Descriptor() ([]byte, []int)deprecated
- func (x *EnumRules) GetConst() int32
- func (x *EnumRules) GetDefinedOnly() bool
- func (x *EnumRules) GetError() *Error
- func (x *EnumRules) GetIn() []int32
- func (x *EnumRules) GetNotIn() []int32
- func (*EnumRules) ProtoMessage()
- func (x *EnumRules) ProtoReflect() protoreflect.Message
- func (x *EnumRules) Reset()
- func (x *EnumRules) String() string
- type Error
- func (*Error) Descriptor() ([]byte, []int)deprecated
- func (x *Error) GetClass() string
- func (x *Error) GetMethod() string
- func (x *Error) GetParams() []string
- func (x *Error) GetPkg() string
- func (*Error) ProtoMessage()
- func (x *Error) ProtoReflect() protoreflect.Message
- func (x *Error) Reset()
- func (x *Error) String() string
- type ErrorBase
- type FieldRules
- func (*FieldRules) Descriptor() ([]byte, []int)deprecated
- func (x *FieldRules) GetAny() *AnyRules
- func (x *FieldRules) GetBool() *BoolRules
- func (x *FieldRules) GetBytes() *BytesRules
- func (x *FieldRules) GetDouble() *DoubleRules
- func (x *FieldRules) GetDuration() *DurationRules
- func (x *FieldRules) GetEnum() *EnumRules
- func (x *FieldRules) GetFixed32() *Fixed32Rules
- func (x *FieldRules) GetFixed64() *Fixed64Rules
- func (x *FieldRules) GetFloat() *FloatRules
- func (x *FieldRules) GetInt32() *Int32Rules
- func (x *FieldRules) GetInt64() *Int64Rules
- func (x *FieldRules) GetMap() *MapRules
- func (x *FieldRules) GetMessage() *MessageRules
- func (x *FieldRules) GetRepeated() *RepeatedRules
- func (x *FieldRules) GetSfixed32() *SFixed32Rules
- func (x *FieldRules) GetSfixed64() *SFixed64Rules
- func (x *FieldRules) GetSint32() *SInt32Rules
- func (x *FieldRules) GetSint64() *SInt64Rules
- func (x *FieldRules) GetString_() *StringRules
- func (x *FieldRules) GetTimestamp() *TimestampRules
- func (m *FieldRules) GetType() isFieldRules_Type
- func (x *FieldRules) GetUint32() *UInt32Rules
- func (x *FieldRules) GetUint64() *UInt64Rules
- func (*FieldRules) ProtoMessage()
- func (x *FieldRules) ProtoReflect() protoreflect.Message
- func (x *FieldRules) Reset()
- func (x *FieldRules) String() string
- type FieldRules_Any
- type FieldRules_Bool
- type FieldRules_Bytes
- type FieldRules_Double
- type FieldRules_Duration
- type FieldRules_Enum
- type FieldRules_Fixed32
- type FieldRules_Fixed64
- type FieldRules_Float
- type FieldRules_Int32
- type FieldRules_Int64
- type FieldRules_Map
- type FieldRules_Repeated
- type FieldRules_Sfixed32
- type FieldRules_Sfixed64
- type FieldRules_Sint32
- type FieldRules_Sint64
- type FieldRules_String_
- type FieldRules_Timestamp
- type FieldRules_Uint32
- type FieldRules_Uint64
- type Fixed32Rule
- func (*Fixed32Rule) Descriptor() ([]byte, []int)deprecated
- func (x *Fixed32Rule) GetConst() uint32
- func (x *Fixed32Rule) GetError() *Error
- func (x *Fixed32Rule) GetGt() uint32
- func (x *Fixed32Rule) GetGte() uint32
- func (x *Fixed32Rule) GetIgnoreEmpty() bool
- func (x *Fixed32Rule) GetIn() []uint32
- func (x *Fixed32Rule) GetLt() uint32
- func (x *Fixed32Rule) GetLte() uint32
- func (x *Fixed32Rule) GetNotIn() []uint32
- func (*Fixed32Rule) ProtoMessage()
- func (x *Fixed32Rule) ProtoReflect() protoreflect.Message
- func (x *Fixed32Rule) Reset()
- func (x *Fixed32Rule) String() string
- type Fixed32Rules
- type Fixed64Rule
- func (*Fixed64Rule) Descriptor() ([]byte, []int)deprecated
- func (x *Fixed64Rule) GetConst() uint64
- func (x *Fixed64Rule) GetError() *Error
- func (x *Fixed64Rule) GetGt() uint64
- func (x *Fixed64Rule) GetGte() uint64
- func (x *Fixed64Rule) GetIgnoreEmpty() bool
- func (x *Fixed64Rule) GetIn() []uint64
- func (x *Fixed64Rule) GetLt() uint64
- func (x *Fixed64Rule) GetLte() uint64
- func (x *Fixed64Rule) GetNotIn() []uint64
- func (*Fixed64Rule) ProtoMessage()
- func (x *Fixed64Rule) ProtoReflect() protoreflect.Message
- func (x *Fixed64Rule) Reset()
- func (x *Fixed64Rule) String() string
- type Fixed64Rules
- type FloatRule
- func (*FloatRule) Descriptor() ([]byte, []int)deprecated
- func (x *FloatRule) GetConst() float32
- func (x *FloatRule) GetError() *Error
- func (x *FloatRule) GetGt() float32
- func (x *FloatRule) GetGte() float32
- func (x *FloatRule) GetIgnoreEmpty() bool
- func (x *FloatRule) GetIn() []float32
- func (x *FloatRule) GetLt() float32
- func (x *FloatRule) GetLte() float32
- func (x *FloatRule) GetNotIn() []float32
- func (*FloatRule) ProtoMessage()
- func (x *FloatRule) ProtoReflect() protoreflect.Message
- func (x *FloatRule) Reset()
- func (x *FloatRule) String() string
- type FloatRules
- type Int32Rule
- func (*Int32Rule) Descriptor() ([]byte, []int)deprecated
- func (x *Int32Rule) GetConst() int32
- func (x *Int32Rule) GetError() *Error
- func (x *Int32Rule) GetGt() int32
- func (x *Int32Rule) GetGte() int32
- func (x *Int32Rule) GetIgnoreEmpty() bool
- func (x *Int32Rule) GetIn() []int32
- func (x *Int32Rule) GetLt() int32
- func (x *Int32Rule) GetLte() int32
- func (x *Int32Rule) GetNotIn() []int32
- func (*Int32Rule) ProtoMessage()
- func (x *Int32Rule) ProtoReflect() protoreflect.Message
- func (x *Int32Rule) Reset()
- func (x *Int32Rule) String() string
- type Int32Rules
- type Int64Rule
- func (*Int64Rule) Descriptor() ([]byte, []int)deprecated
- func (x *Int64Rule) GetConst() int64
- func (x *Int64Rule) GetError() *Error
- func (x *Int64Rule) GetGt() int64
- func (x *Int64Rule) GetGte() int64
- func (x *Int64Rule) GetIgnoreEmpty() bool
- func (x *Int64Rule) GetIn() []int64
- func (x *Int64Rule) GetLt() int64
- func (x *Int64Rule) GetLte() int64
- func (x *Int64Rule) GetNotIn() []int64
- func (*Int64Rule) ProtoMessage()
- func (x *Int64Rule) ProtoReflect() protoreflect.Message
- func (x *Int64Rule) Reset()
- func (x *Int64Rule) String() string
- type Int64Rules
- type KnownRegex
- func (KnownRegex) Descriptor() protoreflect.EnumDescriptor
- func (x KnownRegex) Enum() *KnownRegex
- func (KnownRegex) EnumDescriptor() ([]byte, []int)deprecated
- func (x KnownRegex) Number() protoreflect.EnumNumber
- func (x KnownRegex) String() string
- func (KnownRegex) Type() protoreflect.EnumType
- func (x *KnownRegex) UnmarshalJSON(b []byte) errordeprecated
- type MapRule
- func (*MapRule) Descriptor() ([]byte, []int)deprecated
- func (x *MapRule) GetError() *Error
- func (x *MapRule) GetIgnoreEmpty() bool
- func (x *MapRule) GetKeys() *FieldRules
- func (x *MapRule) GetMaxPairs() uint64
- func (x *MapRule) GetMinPairs() uint64
- func (x *MapRule) GetNoSparse() bool
- func (x *MapRule) GetValues() *FieldRules
- func (*MapRule) ProtoMessage()
- func (x *MapRule) ProtoReflect() protoreflect.Message
- func (x *MapRule) Reset()
- func (x *MapRule) String() string
- type MapRules
- type MessageRules
- func (*MessageRules) Descriptor() ([]byte, []int)deprecated
- func (x *MessageRules) GetError() *Error
- func (x *MessageRules) GetRequired() bool
- func (x *MessageRules) GetSkip() bool
- func (*MessageRules) ProtoMessage()
- func (x *MessageRules) ProtoReflect() protoreflect.Message
- func (x *MessageRules) Reset()
- func (x *MessageRules) String() string
- type OneOf
- type RepeatedRule
- func (*RepeatedRule) Descriptor() ([]byte, []int)deprecated
- func (x *RepeatedRule) GetError() *Error
- func (x *RepeatedRule) GetIgnoreEmpty() bool
- func (x *RepeatedRule) GetItems() *FieldRules
- func (x *RepeatedRule) GetMaxItems() uint64
- func (x *RepeatedRule) GetMinItems() uint64
- func (x *RepeatedRule) GetUnique() bool
- func (*RepeatedRule) ProtoMessage()
- func (x *RepeatedRule) ProtoReflect() protoreflect.Message
- func (x *RepeatedRule) Reset()
- func (x *RepeatedRule) String() string
- type RepeatedRules
- type SFixed32Rule
- func (*SFixed32Rule) Descriptor() ([]byte, []int)deprecated
- func (x *SFixed32Rule) GetConst() int32
- func (x *SFixed32Rule) GetError() *Error
- func (x *SFixed32Rule) GetGt() int32
- func (x *SFixed32Rule) GetGte() int32
- func (x *SFixed32Rule) GetIgnoreEmpty() bool
- func (x *SFixed32Rule) GetIn() []int32
- func (x *SFixed32Rule) GetLt() int32
- func (x *SFixed32Rule) GetLte() int32
- func (x *SFixed32Rule) GetNotIn() []int32
- func (*SFixed32Rule) ProtoMessage()
- func (x *SFixed32Rule) ProtoReflect() protoreflect.Message
- func (x *SFixed32Rule) Reset()
- func (x *SFixed32Rule) String() string
- type SFixed32Rules
- type SFixed64Rule
- func (*SFixed64Rule) Descriptor() ([]byte, []int)deprecated
- func (x *SFixed64Rule) GetConst() int64
- func (x *SFixed64Rule) GetError() *Error
- func (x *SFixed64Rule) GetGt() int64
- func (x *SFixed64Rule) GetGte() int64
- func (x *SFixed64Rule) GetIgnoreEmpty() bool
- func (x *SFixed64Rule) GetIn() []int64
- func (x *SFixed64Rule) GetLt() int64
- func (x *SFixed64Rule) GetLte() int64
- func (x *SFixed64Rule) GetNotIn() []int64
- func (*SFixed64Rule) ProtoMessage()
- func (x *SFixed64Rule) ProtoReflect() protoreflect.Message
- func (x *SFixed64Rule) Reset()
- func (x *SFixed64Rule) String() string
- type SFixed64Rules
- type SInt32Rule
- func (*SInt32Rule) Descriptor() ([]byte, []int)deprecated
- func (x *SInt32Rule) GetConst() int32
- func (x *SInt32Rule) GetError() *Error
- func (x *SInt32Rule) GetGt() int32
- func (x *SInt32Rule) GetGte() int32
- func (x *SInt32Rule) GetIgnoreEmpty() bool
- func (x *SInt32Rule) GetIn() []int32
- func (x *SInt32Rule) GetLt() int32
- func (x *SInt32Rule) GetLte() int32
- func (x *SInt32Rule) GetNotIn() []int32
- func (*SInt32Rule) ProtoMessage()
- func (x *SInt32Rule) ProtoReflect() protoreflect.Message
- func (x *SInt32Rule) Reset()
- func (x *SInt32Rule) String() string
- type SInt32Rules
- type SInt64Rule
- func (*SInt64Rule) Descriptor() ([]byte, []int)deprecated
- func (x *SInt64Rule) GetConst() int64
- func (x *SInt64Rule) GetError() *Error
- func (x *SInt64Rule) GetGt() int64
- func (x *SInt64Rule) GetGte() int64
- func (x *SInt64Rule) GetIgnoreEmpty() bool
- func (x *SInt64Rule) GetIn() []int64
- func (x *SInt64Rule) GetLt() int64
- func (x *SInt64Rule) GetLte() int64
- func (x *SInt64Rule) GetNotIn() []int64
- func (*SInt64Rule) ProtoMessage()
- func (x *SInt64Rule) ProtoReflect() protoreflect.Message
- func (x *SInt64Rule) Reset()
- func (x *SInt64Rule) String() string
- type SInt64Rules
- type StringRule
- func (*StringRule) Descriptor() ([]byte, []int)deprecated
- func (x *StringRule) GetAddress() bool
- func (x *StringRule) GetConst() string
- func (x *StringRule) GetContains() string
- func (x *StringRule) GetEmail() bool
- func (x *StringRule) GetError() *Error
- func (x *StringRule) GetHostname() bool
- func (x *StringRule) GetIgnoreEmpty() bool
- func (x *StringRule) GetIn() []string
- func (x *StringRule) GetIp() bool
- func (x *StringRule) GetIpv4() bool
- func (x *StringRule) GetIpv6() bool
- func (x *StringRule) GetLen() uint64
- func (x *StringRule) GetLenBytes() uint64
- func (x *StringRule) GetMaxBytes() uint64
- func (x *StringRule) GetMaxLen() uint64
- func (x *StringRule) GetMinBytes() uint64
- func (x *StringRule) GetMinLen() uint64
- func (x *StringRule) GetNotContains() string
- func (x *StringRule) GetNotIn() []string
- func (x *StringRule) GetPattern() string
- func (x *StringRule) GetPrefix() string
- func (x *StringRule) GetStrict() bool
- func (x *StringRule) GetSuffix() string
- func (x *StringRule) GetUri() bool
- func (x *StringRule) GetUriRef() bool
- func (x *StringRule) GetUuid() bool
- func (m *StringRule) GetWellKnown() isStringRule_WellKnown
- func (x *StringRule) GetWellKnownRegex() KnownRegex
- func (*StringRule) ProtoMessage()
- func (x *StringRule) ProtoReflect() protoreflect.Message
- func (x *StringRule) Reset()
- func (x *StringRule) String() string
- type StringRule_Address
- type StringRule_Email
- type StringRule_Hostname
- type StringRule_Ip
- type StringRule_Ipv4
- type StringRule_Ipv6
- type StringRule_Uri
- type StringRule_UriRef
- type StringRule_Uuid
- type StringRule_WellKnownRegex
- type StringRules
- type TimestampRule
- func (*TimestampRule) Descriptor() ([]byte, []int)deprecated
- func (x *TimestampRule) GetConst() *timestamppb.Timestamp
- func (x *TimestampRule) GetError() *Error
- func (x *TimestampRule) GetGt() *timestamppb.Timestamp
- func (x *TimestampRule) GetGtNow() bool
- func (x *TimestampRule) GetGte() *timestamppb.Timestamp
- func (x *TimestampRule) GetLt() *timestamppb.Timestamp
- func (x *TimestampRule) GetLtNow() bool
- func (x *TimestampRule) GetLte() *timestamppb.Timestamp
- func (x *TimestampRule) GetRequired() bool
- func (x *TimestampRule) GetWithin() *durationpb.Duration
- func (*TimestampRule) ProtoMessage()
- func (x *TimestampRule) ProtoReflect() protoreflect.Message
- func (x *TimestampRule) Reset()
- func (x *TimestampRule) String() string
- type TimestampRules
- type UInt32Rule
- func (*UInt32Rule) Descriptor() ([]byte, []int)deprecated
- func (x *UInt32Rule) GetConst() uint32
- func (x *UInt32Rule) GetError() *Error
- func (x *UInt32Rule) GetGt() uint32
- func (x *UInt32Rule) GetGte() uint32
- func (x *UInt32Rule) GetIgnoreEmpty() bool
- func (x *UInt32Rule) GetIn() []uint32
- func (x *UInt32Rule) GetLt() uint32
- func (x *UInt32Rule) GetLte() uint32
- func (x *UInt32Rule) GetNotIn() []uint32
- func (*UInt32Rule) ProtoMessage()
- func (x *UInt32Rule) ProtoReflect() protoreflect.Message
- func (x *UInt32Rule) Reset()
- func (x *UInt32Rule) String() string
- type UInt32Rules
- type UInt64Rule
- func (*UInt64Rule) Descriptor() ([]byte, []int)deprecated
- func (x *UInt64Rule) GetConst() uint64
- func (x *UInt64Rule) GetError() *Error
- func (x *UInt64Rule) GetGt() uint64
- func (x *UInt64Rule) GetGte() uint64
- func (x *UInt64Rule) GetIgnoreEmpty() bool
- func (x *UInt64Rule) GetIn() []uint64
- func (x *UInt64Rule) GetLt() uint64
- func (x *UInt64Rule) GetLte() uint64
- func (x *UInt64Rule) GetNotIn() []uint64
- func (*UInt64Rule) ProtoMessage()
- func (x *UInt64Rule) ProtoReflect() protoreflect.Message
- func (x *UInt64Rule) Reset()
- func (x *UInt64Rule) String() string
- type UInt64Rules
Constants ¶
const (
Default_StringRule_Strict = bool(true)
)
Default values for StringRule fields.
Variables ¶
var ( KnownRegex_name = map[int32]string{ 0: "UNKNOWN", 1: "HTTP_HEADER_NAME", 2: "HTTP_HEADER_VALUE", } KnownRegex_value = map[string]int32{ "UNKNOWN": 0, "HTTP_HEADER_NAME": 1, "HTTP_HEADER_VALUE": 2, } )
Enum value maps for KnownRegex.
var ( // Disabled nullifies any validation rules for this message, including any // message fields associated with it that do support validation. // // optional bool disabled = 1071; E_Disabled = &file_validate_validate_proto_extTypes[0] // Ignore skips generation of validation methods for this message. // // optional bool ignored = 1072; E_Ignored = &file_validate_validate_proto_extTypes[1] // error pkg and class info for all field in this message. // // optional validate.ErrorBase error_base = 1073; E_ErrorBase = &file_validate_validate_proto_extTypes[2] )
Extension fields to descriptorpb.MessageOptions.
var ( // Required ensures that exactly one the field options in a oneof is set; // validation fails if no fields in the oneof are set. // // optional validate.OneOf oneof = 1071; E_Oneof = &file_validate_validate_proto_extTypes[3] )
Extension fields to descriptorpb.OneofOptions.
var ( // Rules specify the validations to be performed on this field. By default, // no validation is performed against a field. // // optional validate.FieldRules rules = 1071; E_Rules = &file_validate_validate_proto_extTypes[4] )
Extension fields to descriptorpb.FieldOptions.
var File_validate_validate_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AnyRule ¶
type AnyRule struct { // Required specifies that this field must be set Required *bool `protobuf:"varint,1,opt,name=required" json:"required,omitempty"` // In specifies that this field's `type_url` must be equal to one of the // specified values. In []string `protobuf:"bytes,2,rep,name=in" json:"in,omitempty"` // NotIn specifies that this field's `type_url` must not be equal to any of // the specified values. NotIn []string `protobuf:"bytes,3,rep,name=not_in,json=notIn" json:"not_in,omitempty"` // Error descriptor Error *Error `protobuf:"bytes,4,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
AnyRule describe constraints applied exclusively to the `google.protobuf.Any` well-known type
func (*AnyRule) Descriptor
deprecated
func (*AnyRule) GetRequired ¶
func (*AnyRule) ProtoMessage ¶
func (*AnyRule) ProtoMessage()
func (*AnyRule) ProtoReflect ¶
func (x *AnyRule) ProtoReflect() protoreflect.Message
type AnyRules ¶
type AnyRules struct { Rules []*AnyRule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"` // contains filtered or unexported fields }
AnyRules describes multi rules on `google.protobuf.Any` field
func (*AnyRules) Descriptor
deprecated
func (*AnyRules) ProtoMessage ¶
func (*AnyRules) ProtoMessage()
func (*AnyRules) ProtoReflect ¶
func (x *AnyRules) ProtoReflect() protoreflect.Message
type BoolRules ¶
type BoolRules struct { // Const specifies that this field must be exactly the specified value Const *bool `protobuf:"varint,1,opt,name=const" json:"const,omitempty"` // Error descriptor Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
BoolRules describes the constraints applied to `bool` values
func (*BoolRules) Descriptor
deprecated
func (*BoolRules) ProtoMessage ¶
func (*BoolRules) ProtoMessage()
func (*BoolRules) ProtoReflect ¶
func (x *BoolRules) ProtoReflect() protoreflect.Message
type BytesRule ¶
type BytesRule struct { // Const specifies that this field must be exactly the specified value Const []byte `protobuf:"bytes,1,opt,name=const" json:"const,omitempty"` // Len specifies that this field must be the specified number of bytes Len *uint64 `protobuf:"varint,13,opt,name=len" json:"len,omitempty"` // MinLen specifies that this field must be the specified number of bytes // at a minimum MinLen *uint64 `protobuf:"varint,2,opt,name=min_len,json=minLen" json:"min_len,omitempty"` // MaxLen specifies that this field must be the specified number of bytes // at a maximum MaxLen *uint64 `protobuf:"varint,3,opt,name=max_len,json=maxLen" json:"max_len,omitempty"` // Pattern specifes that this field must match against the specified // regular expression (RE2 syntax). The included expression should elide // any delimiters. Pattern *string `protobuf:"bytes,4,opt,name=pattern" json:"pattern,omitempty"` // Prefix specifies that this field must have the specified bytes at the // beginning of the string. Prefix []byte `protobuf:"bytes,5,opt,name=prefix" json:"prefix,omitempty"` // Suffix specifies that this field must have the specified bytes at the // end of the string. Suffix []byte `protobuf:"bytes,6,opt,name=suffix" json:"suffix,omitempty"` // Contains specifies that this field must have the specified bytes // anywhere in the string. Contains []byte `protobuf:"bytes,7,opt,name=contains" json:"contains,omitempty"` // In specifies that this field must be equal to one of the specified // values In [][]byte `protobuf:"bytes,8,rep,name=in" json:"in,omitempty"` // NotIn specifies that this field cannot be equal to one of the specified // values NotIn [][]byte `protobuf:"bytes,9,rep,name=not_in,json=notIn" json:"not_in,omitempty"` // WellKnown rules provide advanced constraints against common byte // patterns // // Types that are assignable to WellKnown: // *BytesRule_Ip // *BytesRule_Ipv4 // *BytesRule_Ipv6 WellKnown isBytesRule_WellKnown `protobuf_oneof:"well_known"` // IgnoreEmpty specifies that the validation rules of this field should be // evaluated only if the field is not empty IgnoreEmpty *bool `protobuf:"varint,14,opt,name=ignore_empty,json=ignoreEmpty" json:"ignore_empty,omitempty"` // Error descriptor Error *Error `protobuf:"bytes,15,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
BytesRule describe the constraints applied to `bytes` values
func (*BytesRule) Descriptor
deprecated
func (*BytesRule) GetContains ¶
func (*BytesRule) GetIgnoreEmpty ¶
func (*BytesRule) GetPattern ¶
func (*BytesRule) GetWellKnown ¶
func (m *BytesRule) GetWellKnown() isBytesRule_WellKnown
func (*BytesRule) ProtoMessage ¶
func (*BytesRule) ProtoMessage()
func (*BytesRule) ProtoReflect ¶
func (x *BytesRule) ProtoReflect() protoreflect.Message
type BytesRule_Ip ¶
type BytesRule_Ip struct { // Ip specifies that the field must be a valid IP (v4 or v6) address in // byte format Ip bool `protobuf:"varint,10,opt,name=ip,oneof"` }
type BytesRule_Ipv4 ¶
type BytesRule_Ipv4 struct { // Ipv4 specifies that the field must be a valid IPv4 address in byte // format Ipv4 bool `protobuf:"varint,11,opt,name=ipv4,oneof"` }
type BytesRule_Ipv6 ¶
type BytesRule_Ipv6 struct { // Ipv6 specifies that the field must be a valid IPv6 address in byte // format Ipv6 bool `protobuf:"varint,12,opt,name=ipv6,oneof"` }
type BytesRules ¶
type BytesRules struct { Rules []*BytesRule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"` // contains filtered or unexported fields }
BytesRules describes multi rules on `bytes` field
func (*BytesRules) Descriptor
deprecated
func (*BytesRules) Descriptor() ([]byte, []int)
Deprecated: Use BytesRules.ProtoReflect.Descriptor instead.
func (*BytesRules) GetRules ¶
func (x *BytesRules) GetRules() []*BytesRule
func (*BytesRules) ProtoMessage ¶
func (*BytesRules) ProtoMessage()
func (*BytesRules) ProtoReflect ¶
func (x *BytesRules) ProtoReflect() protoreflect.Message
func (*BytesRules) Reset ¶
func (x *BytesRules) Reset()
func (*BytesRules) String ¶
func (x *BytesRules) String() string
type DoubleRule ¶
type DoubleRule struct { // Const specifies that this field must be exactly the specified value Const *float64 `protobuf:"fixed64,1,opt,name=const" json:"const,omitempty"` // Lt specifies that this field must be less than the specified value, // exclusive Lt *float64 `protobuf:"fixed64,2,opt,name=lt" json:"lt,omitempty"` // Lte specifies that this field must be less than or equal to the // specified value, inclusive Lte *float64 `protobuf:"fixed64,3,opt,name=lte" json:"lte,omitempty"` // 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. Gt *float64 `protobuf:"fixed64,4,opt,name=gt" json:"gt,omitempty"` // 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. Gte *float64 `protobuf:"fixed64,5,opt,name=gte" json:"gte,omitempty"` // In specifies that this field must be equal to one of the specified // values In []float64 `protobuf:"fixed64,6,rep,name=in" json:"in,omitempty"` // NotIn specifies that this field cannot be equal to one of the specified // values NotIn []float64 `protobuf:"fixed64,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` // IgnoreEmpty specifies that the validation rules of this field should be // evaluated only if the field is not empty IgnoreEmpty *bool `protobuf:"varint,8,opt,name=ignore_empty,json=ignoreEmpty" json:"ignore_empty,omitempty"` // Error descriptor Error *Error `protobuf:"bytes,9,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
DoubleRule describes the constraints applied to `double` values
func (*DoubleRule) Descriptor
deprecated
func (*DoubleRule) Descriptor() ([]byte, []int)
Deprecated: Use DoubleRule.ProtoReflect.Descriptor instead.
func (*DoubleRule) GetConst ¶
func (x *DoubleRule) GetConst() float64
func (*DoubleRule) GetError ¶
func (x *DoubleRule) GetError() *Error
func (*DoubleRule) GetGt ¶
func (x *DoubleRule) GetGt() float64
func (*DoubleRule) GetGte ¶
func (x *DoubleRule) GetGte() float64
func (*DoubleRule) GetIgnoreEmpty ¶
func (x *DoubleRule) GetIgnoreEmpty() bool
func (*DoubleRule) GetIn ¶
func (x *DoubleRule) GetIn() []float64
func (*DoubleRule) GetLt ¶
func (x *DoubleRule) GetLt() float64
func (*DoubleRule) GetLte ¶
func (x *DoubleRule) GetLte() float64
func (*DoubleRule) GetNotIn ¶
func (x *DoubleRule) GetNotIn() []float64
func (*DoubleRule) ProtoMessage ¶
func (*DoubleRule) ProtoMessage()
func (*DoubleRule) ProtoReflect ¶
func (x *DoubleRule) ProtoReflect() protoreflect.Message
func (*DoubleRule) Reset ¶
func (x *DoubleRule) Reset()
func (*DoubleRule) String ¶
func (x *DoubleRule) String() string
type DoubleRules ¶
type DoubleRules struct { Rules []*DoubleRule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"` // contains filtered or unexported fields }
DoubleRules describes multi rules on `double` field
func (*DoubleRules) Descriptor
deprecated
func (*DoubleRules) Descriptor() ([]byte, []int)
Deprecated: Use DoubleRules.ProtoReflect.Descriptor instead.
func (*DoubleRules) GetRules ¶
func (x *DoubleRules) GetRules() []*DoubleRule
func (*DoubleRules) ProtoMessage ¶
func (*DoubleRules) ProtoMessage()
func (*DoubleRules) ProtoReflect ¶
func (x *DoubleRules) ProtoReflect() protoreflect.Message
func (*DoubleRules) Reset ¶
func (x *DoubleRules) Reset()
func (*DoubleRules) String ¶
func (x *DoubleRules) String() string
type DurationRule ¶
type DurationRule struct { // Required specifies that this field must be set Required *bool `protobuf:"varint,1,opt,name=required" json:"required,omitempty"` // Const specifies that this field must be exactly the specified value Const *durationpb.Duration `protobuf:"bytes,2,opt,name=const" json:"const,omitempty"` // Lt specifies that this field must be less than the specified value, // exclusive Lt *durationpb.Duration `protobuf:"bytes,3,opt,name=lt" json:"lt,omitempty"` // Lt specifies that this field must be less than the specified value, // inclusive Lte *durationpb.Duration `protobuf:"bytes,4,opt,name=lte" json:"lte,omitempty"` // Gt specifies that this field must be greater than the specified value, // exclusive Gt *durationpb.Duration `protobuf:"bytes,5,opt,name=gt" json:"gt,omitempty"` // Gte specifies that this field must be greater than the specified value, // inclusive Gte *durationpb.Duration `protobuf:"bytes,6,opt,name=gte" json:"gte,omitempty"` // In specifies that this field must be equal to one of the specified // values In []*durationpb.Duration `protobuf:"bytes,7,rep,name=in" json:"in,omitempty"` // NotIn specifies that this field cannot be equal to one of the specified // values NotIn []*durationpb.Duration `protobuf:"bytes,8,rep,name=not_in,json=notIn" json:"not_in,omitempty"` // Error descriptor Error *Error `protobuf:"bytes,9,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
DurationRule describe the constraints applied exclusively to the `google.protobuf.Duration` well-known type
func (*DurationRule) Descriptor
deprecated
func (*DurationRule) Descriptor() ([]byte, []int)
Deprecated: Use DurationRule.ProtoReflect.Descriptor instead.
func (*DurationRule) GetConst ¶
func (x *DurationRule) GetConst() *durationpb.Duration
func (*DurationRule) GetError ¶
func (x *DurationRule) GetError() *Error
func (*DurationRule) GetGt ¶
func (x *DurationRule) GetGt() *durationpb.Duration
func (*DurationRule) GetGte ¶
func (x *DurationRule) GetGte() *durationpb.Duration
func (*DurationRule) GetIn ¶
func (x *DurationRule) GetIn() []*durationpb.Duration
func (*DurationRule) GetLt ¶
func (x *DurationRule) GetLt() *durationpb.Duration
func (*DurationRule) GetLte ¶
func (x *DurationRule) GetLte() *durationpb.Duration
func (*DurationRule) GetNotIn ¶
func (x *DurationRule) GetNotIn() []*durationpb.Duration
func (*DurationRule) GetRequired ¶
func (x *DurationRule) GetRequired() bool
func (*DurationRule) ProtoMessage ¶
func (*DurationRule) ProtoMessage()
func (*DurationRule) ProtoReflect ¶
func (x *DurationRule) ProtoReflect() protoreflect.Message
func (*DurationRule) Reset ¶
func (x *DurationRule) Reset()
func (*DurationRule) String ¶
func (x *DurationRule) String() string
type DurationRules ¶
type DurationRules struct { Rules []*DurationRule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"` // contains filtered or unexported fields }
AnyRules describes multi rules on `google.protobuf.Duration` field
func (*DurationRules) Descriptor
deprecated
func (*DurationRules) Descriptor() ([]byte, []int)
Deprecated: Use DurationRules.ProtoReflect.Descriptor instead.
func (*DurationRules) GetRules ¶
func (x *DurationRules) GetRules() []*DurationRule
func (*DurationRules) ProtoMessage ¶
func (*DurationRules) ProtoMessage()
func (*DurationRules) ProtoReflect ¶
func (x *DurationRules) ProtoReflect() protoreflect.Message
func (*DurationRules) Reset ¶
func (x *DurationRules) Reset()
func (*DurationRules) String ¶
func (x *DurationRules) String() string
type EnumRules ¶
type EnumRules struct { // Const specifies that this field must be exactly the specified value Const *int32 `protobuf:"varint,1,opt,name=const" json:"const,omitempty"` // DefinedOnly specifies that this field must be only one of the defined // values for this enum, failing on any undefined value. DefinedOnly *bool `protobuf:"varint,2,opt,name=defined_only,json=definedOnly" json:"defined_only,omitempty"` // In specifies that this field must be equal to one of the specified // values In []int32 `protobuf:"varint,3,rep,name=in" json:"in,omitempty"` // NotIn specifies that this field cannot be equal to one of the specified // values NotIn []int32 `protobuf:"varint,4,rep,name=not_in,json=notIn" json:"not_in,omitempty"` // Error descriptor Error *Error `protobuf:"bytes,5,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
EnumRules describe the constraints applied to enum values
func (*EnumRules) Descriptor
deprecated
func (*EnumRules) GetDefinedOnly ¶
func (*EnumRules) ProtoMessage ¶
func (*EnumRules) ProtoMessage()
func (*EnumRules) ProtoReflect ¶
func (x *EnumRules) ProtoReflect() protoreflect.Message
type Error ¶
type Error struct { Pkg *string `protobuf:"bytes,1,opt,name=pkg" json:"pkg,omitempty"` Class *string `protobuf:"bytes,2,opt,name=class" json:"class,omitempty"` Method *string `protobuf:"bytes,3,req,name=method" json:"method,omitempty"` Params []string `protobuf:"bytes,4,rep,name=params" json:"params,omitempty"` // contains filtered or unexported fields }
Error define an error info.
func (*Error) Descriptor
deprecated
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type ErrorBase ¶
type ErrorBase struct { Pkg *string `protobuf:"bytes,1,req,name=pkg" json:"pkg,omitempty"` Class *string `protobuf:"bytes,2,req,name=class" json:"class,omitempty"` // contains filtered or unexported fields }
error base info, include pkg, class
func (*ErrorBase) Descriptor
deprecated
func (*ErrorBase) ProtoMessage ¶
func (*ErrorBase) ProtoMessage()
func (*ErrorBase) ProtoReflect ¶
func (x *ErrorBase) ProtoReflect() protoreflect.Message
type FieldRules ¶
type FieldRules struct { Message *MessageRules `protobuf:"bytes,17,opt,name=message" json:"message,omitempty"` // Types that are assignable to Type: // *FieldRules_Float // *FieldRules_Double // *FieldRules_Int32 // *FieldRules_Int64 // *FieldRules_Uint32 // *FieldRules_Uint64 // *FieldRules_Sint32 // *FieldRules_Sint64 // *FieldRules_Fixed32 // *FieldRules_Fixed64 // *FieldRules_Sfixed32 // *FieldRules_Sfixed64 // *FieldRules_Bool // *FieldRules_String_ // *FieldRules_Bytes // *FieldRules_Enum // *FieldRules_Repeated // *FieldRules_Map // *FieldRules_Any // *FieldRules_Duration // *FieldRules_Timestamp Type isFieldRules_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
FieldRules encapsulates the rules for each type of field. Depending on the field, the correct set should be used to ensure proper validations.
func (*FieldRules) Descriptor
deprecated
func (*FieldRules) Descriptor() ([]byte, []int)
Deprecated: Use FieldRules.ProtoReflect.Descriptor instead.
func (*FieldRules) GetAny ¶
func (x *FieldRules) GetAny() *AnyRules
func (*FieldRules) GetBool ¶
func (x *FieldRules) GetBool() *BoolRules
func (*FieldRules) GetBytes ¶
func (x *FieldRules) GetBytes() *BytesRules
func (*FieldRules) GetDouble ¶
func (x *FieldRules) GetDouble() *DoubleRules
func (*FieldRules) GetDuration ¶
func (x *FieldRules) GetDuration() *DurationRules
func (*FieldRules) GetEnum ¶
func (x *FieldRules) GetEnum() *EnumRules
func (*FieldRules) GetFixed32 ¶
func (x *FieldRules) GetFixed32() *Fixed32Rules
func (*FieldRules) GetFixed64 ¶
func (x *FieldRules) GetFixed64() *Fixed64Rules
func (*FieldRules) GetFloat ¶
func (x *FieldRules) GetFloat() *FloatRules
func (*FieldRules) GetInt32 ¶
func (x *FieldRules) GetInt32() *Int32Rules
func (*FieldRules) GetInt64 ¶
func (x *FieldRules) GetInt64() *Int64Rules
func (*FieldRules) GetMap ¶
func (x *FieldRules) GetMap() *MapRules
func (*FieldRules) GetMessage ¶
func (x *FieldRules) GetMessage() *MessageRules
func (*FieldRules) GetRepeated ¶
func (x *FieldRules) GetRepeated() *RepeatedRules
func (*FieldRules) GetSfixed32 ¶
func (x *FieldRules) GetSfixed32() *SFixed32Rules
func (*FieldRules) GetSfixed64 ¶
func (x *FieldRules) GetSfixed64() *SFixed64Rules
func (*FieldRules) GetSint32 ¶
func (x *FieldRules) GetSint32() *SInt32Rules
func (*FieldRules) GetSint64 ¶
func (x *FieldRules) GetSint64() *SInt64Rules
func (*FieldRules) GetString_ ¶
func (x *FieldRules) GetString_() *StringRules
func (*FieldRules) GetTimestamp ¶
func (x *FieldRules) GetTimestamp() *TimestampRules
func (*FieldRules) GetType ¶
func (m *FieldRules) GetType() isFieldRules_Type
func (*FieldRules) GetUint32 ¶
func (x *FieldRules) GetUint32() *UInt32Rules
func (*FieldRules) GetUint64 ¶
func (x *FieldRules) GetUint64() *UInt64Rules
func (*FieldRules) ProtoMessage ¶
func (*FieldRules) ProtoMessage()
func (*FieldRules) ProtoReflect ¶
func (x *FieldRules) ProtoReflect() protoreflect.Message
func (*FieldRules) Reset ¶
func (x *FieldRules) Reset()
func (*FieldRules) String ¶
func (x *FieldRules) String() string
type FieldRules_Any ¶
type FieldRules_Any struct { // Well-Known Field Types Any *AnyRules `protobuf:"bytes,20,opt,name=any,oneof"` }
type FieldRules_Bool ¶
type FieldRules_Bool struct {
Bool *BoolRules `protobuf:"bytes,13,opt,name=bool,oneof"`
}
type FieldRules_Bytes ¶
type FieldRules_Bytes struct {
Bytes *BytesRules `protobuf:"bytes,15,opt,name=bytes,oneof"`
}
type FieldRules_Double ¶
type FieldRules_Double struct {
Double *DoubleRules `protobuf:"bytes,2,opt,name=double,oneof"`
}
type FieldRules_Duration ¶
type FieldRules_Duration struct {
Duration *DurationRules `protobuf:"bytes,21,opt,name=duration,oneof"`
}
type FieldRules_Enum ¶
type FieldRules_Enum struct { // Complex Field Types Enum *EnumRules `protobuf:"bytes,16,opt,name=enum,oneof"` }
type FieldRules_Fixed32 ¶
type FieldRules_Fixed32 struct {
Fixed32 *Fixed32Rules `protobuf:"bytes,9,opt,name=fixed32,oneof"`
}
type FieldRules_Fixed64 ¶
type FieldRules_Fixed64 struct {
Fixed64 *Fixed64Rules `protobuf:"bytes,10,opt,name=fixed64,oneof"`
}
type FieldRules_Float ¶
type FieldRules_Float struct { // Scalar Field Types Float *FloatRules `protobuf:"bytes,1,opt,name=float,oneof"` }
type FieldRules_Int32 ¶
type FieldRules_Int32 struct {
Int32 *Int32Rules `protobuf:"bytes,3,opt,name=int32,oneof"`
}
type FieldRules_Int64 ¶
type FieldRules_Int64 struct {
Int64 *Int64Rules `protobuf:"bytes,4,opt,name=int64,oneof"`
}
type FieldRules_Map ¶
type FieldRules_Map struct {
Map *MapRules `protobuf:"bytes,19,opt,name=map,oneof"`
}
type FieldRules_Repeated ¶
type FieldRules_Repeated struct {
Repeated *RepeatedRules `protobuf:"bytes,18,opt,name=repeated,oneof"`
}
type FieldRules_Sfixed32 ¶
type FieldRules_Sfixed32 struct {
Sfixed32 *SFixed32Rules `protobuf:"bytes,11,opt,name=sfixed32,oneof"`
}
type FieldRules_Sfixed64 ¶
type FieldRules_Sfixed64 struct {
Sfixed64 *SFixed64Rules `protobuf:"bytes,12,opt,name=sfixed64,oneof"`
}
type FieldRules_Sint32 ¶
type FieldRules_Sint32 struct {
Sint32 *SInt32Rules `protobuf:"bytes,7,opt,name=sint32,oneof"`
}
type FieldRules_Sint64 ¶
type FieldRules_Sint64 struct {
Sint64 *SInt64Rules `protobuf:"bytes,8,opt,name=sint64,oneof"`
}
type FieldRules_String_ ¶
type FieldRules_String_ struct {
String_ *StringRules `protobuf:"bytes,14,opt,name=string,oneof"`
}
type FieldRules_Timestamp ¶
type FieldRules_Timestamp struct {
Timestamp *TimestampRules `protobuf:"bytes,22,opt,name=timestamp,oneof"`
}
type FieldRules_Uint32 ¶
type FieldRules_Uint32 struct {
Uint32 *UInt32Rules `protobuf:"bytes,5,opt,name=uint32,oneof"`
}
type FieldRules_Uint64 ¶
type FieldRules_Uint64 struct {
Uint64 *UInt64Rules `protobuf:"bytes,6,opt,name=uint64,oneof"`
}
type Fixed32Rule ¶
type Fixed32Rule struct { // Const specifies that this field must be exactly the specified value Const *uint32 `protobuf:"fixed32,1,opt,name=const" json:"const,omitempty"` // Lt specifies that this field must be less than the specified value, // exclusive Lt *uint32 `protobuf:"fixed32,2,opt,name=lt" json:"lt,omitempty"` // Lte specifies that this field must be less than or equal to the // specified value, inclusive Lte *uint32 `protobuf:"fixed32,3,opt,name=lte" json:"lte,omitempty"` // 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. Gt *uint32 `protobuf:"fixed32,4,opt,name=gt" json:"gt,omitempty"` // 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. Gte *uint32 `protobuf:"fixed32,5,opt,name=gte" json:"gte,omitempty"` // In specifies that this field must be equal to one of the specified // values In []uint32 `protobuf:"fixed32,6,rep,name=in" json:"in,omitempty"` // NotIn specifies that this field cannot be equal to one of the specified // values NotIn []uint32 `protobuf:"fixed32,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` // IgnoreEmpty specifies that the validation rules of this field should be // evaluated only if the field is not empty IgnoreEmpty *bool `protobuf:"varint,8,opt,name=ignore_empty,json=ignoreEmpty" json:"ignore_empty,omitempty"` // Error descriptor Error *Error `protobuf:"bytes,9,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
Fixed32Rule describes the constraints applied to `fixed32` values
func (*Fixed32Rule) Descriptor
deprecated
func (*Fixed32Rule) Descriptor() ([]byte, []int)
Deprecated: Use Fixed32Rule.ProtoReflect.Descriptor instead.
func (*Fixed32Rule) GetConst ¶
func (x *Fixed32Rule) GetConst() uint32
func (*Fixed32Rule) GetError ¶
func (x *Fixed32Rule) GetError() *Error
func (*Fixed32Rule) GetGt ¶
func (x *Fixed32Rule) GetGt() uint32
func (*Fixed32Rule) GetGte ¶
func (x *Fixed32Rule) GetGte() uint32
func (*Fixed32Rule) GetIgnoreEmpty ¶
func (x *Fixed32Rule) GetIgnoreEmpty() bool
func (*Fixed32Rule) GetIn ¶
func (x *Fixed32Rule) GetIn() []uint32
func (*Fixed32Rule) GetLt ¶
func (x *Fixed32Rule) GetLt() uint32
func (*Fixed32Rule) GetLte ¶
func (x *Fixed32Rule) GetLte() uint32
func (*Fixed32Rule) GetNotIn ¶
func (x *Fixed32Rule) GetNotIn() []uint32
func (*Fixed32Rule) ProtoMessage ¶
func (*Fixed32Rule) ProtoMessage()
func (*Fixed32Rule) ProtoReflect ¶
func (x *Fixed32Rule) ProtoReflect() protoreflect.Message
func (*Fixed32Rule) Reset ¶
func (x *Fixed32Rule) Reset()
func (*Fixed32Rule) String ¶
func (x *Fixed32Rule) String() string
type Fixed32Rules ¶
type Fixed32Rules struct { Rules []*Fixed32Rule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"` // contains filtered or unexported fields }
Fixed32Rules describes multi rules on `fixed32` field
func (*Fixed32Rules) Descriptor
deprecated
func (*Fixed32Rules) Descriptor() ([]byte, []int)
Deprecated: Use Fixed32Rules.ProtoReflect.Descriptor instead.
func (*Fixed32Rules) GetRules ¶
func (x *Fixed32Rules) GetRules() []*Fixed32Rule
func (*Fixed32Rules) ProtoMessage ¶
func (*Fixed32Rules) ProtoMessage()
func (*Fixed32Rules) ProtoReflect ¶
func (x *Fixed32Rules) ProtoReflect() protoreflect.Message
func (*Fixed32Rules) Reset ¶
func (x *Fixed32Rules) Reset()
func (*Fixed32Rules) String ¶
func (x *Fixed32Rules) String() string
type Fixed64Rule ¶
type Fixed64Rule struct { // Const specifies that this field must be exactly the specified value Const *uint64 `protobuf:"fixed64,1,opt,name=const" json:"const,omitempty"` // Lt specifies that this field must be less than the specified value, // exclusive Lt *uint64 `protobuf:"fixed64,2,opt,name=lt" json:"lt,omitempty"` // Lte specifies that this field must be less than or equal to the // specified value, inclusive Lte *uint64 `protobuf:"fixed64,3,opt,name=lte" json:"lte,omitempty"` // 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. Gt *uint64 `protobuf:"fixed64,4,opt,name=gt" json:"gt,omitempty"` // 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. Gte *uint64 `protobuf:"fixed64,5,opt,name=gte" json:"gte,omitempty"` // In specifies that this field must be equal to one of the specified // values In []uint64 `protobuf:"fixed64,6,rep,name=in" json:"in,omitempty"` // NotIn specifies that this field cannot be equal to one of the specified // values NotIn []uint64 `protobuf:"fixed64,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` // IgnoreEmpty specifies that the validation rules of this field should be // evaluated only if the field is not empty IgnoreEmpty *bool `protobuf:"varint,8,opt,name=ignore_empty,json=ignoreEmpty" json:"ignore_empty,omitempty"` // Error descriptor Error *Error `protobuf:"bytes,9,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
Fixed64Rule describes the constraints applied to `fixed64` values
func (*Fixed64Rule) Descriptor
deprecated
func (*Fixed64Rule) Descriptor() ([]byte, []int)
Deprecated: Use Fixed64Rule.ProtoReflect.Descriptor instead.
func (*Fixed64Rule) GetConst ¶
func (x *Fixed64Rule) GetConst() uint64
func (*Fixed64Rule) GetError ¶
func (x *Fixed64Rule) GetError() *Error
func (*Fixed64Rule) GetGt ¶
func (x *Fixed64Rule) GetGt() uint64
func (*Fixed64Rule) GetGte ¶
func (x *Fixed64Rule) GetGte() uint64
func (*Fixed64Rule) GetIgnoreEmpty ¶
func (x *Fixed64Rule) GetIgnoreEmpty() bool
func (*Fixed64Rule) GetIn ¶
func (x *Fixed64Rule) GetIn() []uint64
func (*Fixed64Rule) GetLt ¶
func (x *Fixed64Rule) GetLt() uint64
func (*Fixed64Rule) GetLte ¶
func (x *Fixed64Rule) GetLte() uint64
func (*Fixed64Rule) GetNotIn ¶
func (x *Fixed64Rule) GetNotIn() []uint64
func (*Fixed64Rule) ProtoMessage ¶
func (*Fixed64Rule) ProtoMessage()
func (*Fixed64Rule) ProtoReflect ¶
func (x *Fixed64Rule) ProtoReflect() protoreflect.Message
func (*Fixed64Rule) Reset ¶
func (x *Fixed64Rule) Reset()
func (*Fixed64Rule) String ¶
func (x *Fixed64Rule) String() string
type Fixed64Rules ¶
type Fixed64Rules struct { Rules []*Fixed64Rule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"` // contains filtered or unexported fields }
Fixed64Rules describes multi rules on `fixed64` field
func (*Fixed64Rules) Descriptor
deprecated
func (*Fixed64Rules) Descriptor() ([]byte, []int)
Deprecated: Use Fixed64Rules.ProtoReflect.Descriptor instead.
func (*Fixed64Rules) GetRules ¶
func (x *Fixed64Rules) GetRules() []*Fixed64Rule
func (*Fixed64Rules) ProtoMessage ¶
func (*Fixed64Rules) ProtoMessage()
func (*Fixed64Rules) ProtoReflect ¶
func (x *Fixed64Rules) ProtoReflect() protoreflect.Message
func (*Fixed64Rules) Reset ¶
func (x *Fixed64Rules) Reset()
func (*Fixed64Rules) String ¶
func (x *Fixed64Rules) String() string
type FloatRule ¶
type FloatRule struct { // Const specifies that this field must be exactly the specified value Const *float32 `protobuf:"fixed32,1,opt,name=const" json:"const,omitempty"` // Lt specifies that this field must be less than the specified value, // exclusive Lt *float32 `protobuf:"fixed32,2,opt,name=lt" json:"lt,omitempty"` // Lte specifies that this field must be less than or equal to the // specified value, inclusive Lte *float32 `protobuf:"fixed32,3,opt,name=lte" json:"lte,omitempty"` // 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. Gt *float32 `protobuf:"fixed32,4,opt,name=gt" json:"gt,omitempty"` // 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. Gte *float32 `protobuf:"fixed32,5,opt,name=gte" json:"gte,omitempty"` // In specifies that this field must be equal to one of the specified // values In []float32 `protobuf:"fixed32,6,rep,name=in" json:"in,omitempty"` // NotIn specifies that this field cannot be equal to one of the specified // values NotIn []float32 `protobuf:"fixed32,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` // IgnoreEmpty specifies that the validation rules of this field should be // evaluated only if the field is not empty IgnoreEmpty *bool `protobuf:"varint,8,opt,name=ignore_empty,json=ignoreEmpty" json:"ignore_empty,omitempty"` // Error descriptor Error *Error `protobuf:"bytes,9,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
FloatRule describes the constraints applied to `float` values
func (*FloatRule) Descriptor
deprecated
func (*FloatRule) GetIgnoreEmpty ¶
func (*FloatRule) ProtoMessage ¶
func (*FloatRule) ProtoMessage()
func (*FloatRule) ProtoReflect ¶
func (x *FloatRule) ProtoReflect() protoreflect.Message
type FloatRules ¶
type FloatRules struct { Rules []*FloatRule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"` // contains filtered or unexported fields }
FloatRules describes multi rules on `float` field
func (*FloatRules) Descriptor
deprecated
func (*FloatRules) Descriptor() ([]byte, []int)
Deprecated: Use FloatRules.ProtoReflect.Descriptor instead.
func (*FloatRules) GetRules ¶
func (x *FloatRules) GetRules() []*FloatRule
func (*FloatRules) ProtoMessage ¶
func (*FloatRules) ProtoMessage()
func (*FloatRules) ProtoReflect ¶
func (x *FloatRules) ProtoReflect() protoreflect.Message
func (*FloatRules) Reset ¶
func (x *FloatRules) Reset()
func (*FloatRules) String ¶
func (x *FloatRules) String() string
type Int32Rule ¶
type Int32Rule struct { // Const specifies that this field must be exactly the specified value Const *int32 `protobuf:"varint,1,opt,name=const" json:"const,omitempty"` // Lt specifies that this field must be less than the specified value, // exclusive Lt *int32 `protobuf:"varint,2,opt,name=lt" json:"lt,omitempty"` // Lte specifies that this field must be less than or equal to the // specified value, inclusive Lte *int32 `protobuf:"varint,3,opt,name=lte" json:"lte,omitempty"` // 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. Gt *int32 `protobuf:"varint,4,opt,name=gt" json:"gt,omitempty"` // 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. Gte *int32 `protobuf:"varint,5,opt,name=gte" json:"gte,omitempty"` // In specifies that this field must be equal to one of the specified // values In []int32 `protobuf:"varint,6,rep,name=in" json:"in,omitempty"` // NotIn specifies that this field cannot be equal to one of the specified // values NotIn []int32 `protobuf:"varint,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` // IgnoreEmpty specifies that the validation rules of this field should be // evaluated only if the field is not empty IgnoreEmpty *bool `protobuf:"varint,8,opt,name=ignore_empty,json=ignoreEmpty" json:"ignore_empty,omitempty"` // Error descriptor Error *Error `protobuf:"bytes,9,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
Int32Rule describes the constraints applied to `int32` values
func (*Int32Rule) Descriptor
deprecated
func (*Int32Rule) GetIgnoreEmpty ¶
func (*Int32Rule) ProtoMessage ¶
func (*Int32Rule) ProtoMessage()
func (*Int32Rule) ProtoReflect ¶
func (x *Int32Rule) ProtoReflect() protoreflect.Message
type Int32Rules ¶
type Int32Rules struct { Rules []*Int32Rule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"` // contains filtered or unexported fields }
Int32Rules describes multi rules on `int32` field
func (*Int32Rules) Descriptor
deprecated
func (*Int32Rules) Descriptor() ([]byte, []int)
Deprecated: Use Int32Rules.ProtoReflect.Descriptor instead.
func (*Int32Rules) GetRules ¶
func (x *Int32Rules) GetRules() []*Int32Rule
func (*Int32Rules) ProtoMessage ¶
func (*Int32Rules) ProtoMessage()
func (*Int32Rules) ProtoReflect ¶
func (x *Int32Rules) ProtoReflect() protoreflect.Message
func (*Int32Rules) Reset ¶
func (x *Int32Rules) Reset()
func (*Int32Rules) String ¶
func (x *Int32Rules) String() string
type Int64Rule ¶
type Int64Rule struct { // Const specifies that this field must be exactly the specified value Const *int64 `protobuf:"varint,1,opt,name=const" json:"const,omitempty"` // Lt specifies that this field must be less than the specified value, // exclusive Lt *int64 `protobuf:"varint,2,opt,name=lt" json:"lt,omitempty"` // Lte specifies that this field must be less than or equal to the // specified value, inclusive Lte *int64 `protobuf:"varint,3,opt,name=lte" json:"lte,omitempty"` // 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. Gt *int64 `protobuf:"varint,4,opt,name=gt" json:"gt,omitempty"` // 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. Gte *int64 `protobuf:"varint,5,opt,name=gte" json:"gte,omitempty"` // In specifies that this field must be equal to one of the specified // values In []int64 `protobuf:"varint,6,rep,name=in" json:"in,omitempty"` // NotIn specifies that this field cannot be equal to one of the specified // values NotIn []int64 `protobuf:"varint,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` // IgnoreEmpty specifies that the validation rules of this field should be // evaluated only if the field is not empty IgnoreEmpty *bool `protobuf:"varint,8,opt,name=ignore_empty,json=ignoreEmpty" json:"ignore_empty,omitempty"` // Error descriptor Error *Error `protobuf:"bytes,9,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
Int64Rule describes the constraints applied to `int64` values
func (*Int64Rule) Descriptor
deprecated
func (*Int64Rule) GetIgnoreEmpty ¶
func (*Int64Rule) ProtoMessage ¶
func (*Int64Rule) ProtoMessage()
func (*Int64Rule) ProtoReflect ¶
func (x *Int64Rule) ProtoReflect() protoreflect.Message
type Int64Rules ¶
type Int64Rules struct { Rules []*Int64Rule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"` // contains filtered or unexported fields }
Int64Rules describes multi rules on `int64` field
func (*Int64Rules) Descriptor
deprecated
func (*Int64Rules) Descriptor() ([]byte, []int)
Deprecated: Use Int64Rules.ProtoReflect.Descriptor instead.
func (*Int64Rules) GetRules ¶
func (x *Int64Rules) GetRules() []*Int64Rule
func (*Int64Rules) ProtoMessage ¶
func (*Int64Rules) ProtoMessage()
func (*Int64Rules) ProtoReflect ¶
func (x *Int64Rules) ProtoReflect() protoreflect.Message
func (*Int64Rules) Reset ¶
func (x *Int64Rules) Reset()
func (*Int64Rules) String ¶
func (x *Int64Rules) String() string
type KnownRegex ¶
type KnownRegex int32
WellKnownRegex contain some well-known patterns.
const ( KnownRegex_UNKNOWN KnownRegex = 0 // HTTP header name as defined by RFC 7230. KnownRegex_HTTP_HEADER_NAME KnownRegex = 1 // HTTP header value as defined by RFC 7230. KnownRegex_HTTP_HEADER_VALUE KnownRegex = 2 )
func (KnownRegex) Descriptor ¶
func (KnownRegex) Descriptor() protoreflect.EnumDescriptor
func (KnownRegex) Enum ¶
func (x KnownRegex) Enum() *KnownRegex
func (KnownRegex) EnumDescriptor
deprecated
func (KnownRegex) EnumDescriptor() ([]byte, []int)
Deprecated: Use KnownRegex.Descriptor instead.
func (KnownRegex) Number ¶
func (x KnownRegex) Number() protoreflect.EnumNumber
func (KnownRegex) String ¶
func (x KnownRegex) String() string
func (KnownRegex) Type ¶
func (KnownRegex) Type() protoreflect.EnumType
func (*KnownRegex) UnmarshalJSON
deprecated
func (x *KnownRegex) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type MapRule ¶
type MapRule struct { // MinPairs specifies that this field must have the specified number of // KVs at a minimum MinPairs *uint64 `protobuf:"varint,1,opt,name=min_pairs,json=minPairs" json:"min_pairs,omitempty"` // MaxPairs specifies that this field must have the specified number of // KVs at a maximum MaxPairs *uint64 `protobuf:"varint,2,opt,name=max_pairs,json=maxPairs" json:"max_pairs,omitempty"` // NoSparse specifies values in this field cannot be unset. This only // applies to map's with message value types. NoSparse *bool `protobuf:"varint,3,opt,name=no_sparse,json=noSparse" json:"no_sparse,omitempty"` // Keys specifies the constraints to be applied to each key in the field. Keys *FieldRules `protobuf:"bytes,4,opt,name=keys" json:"keys,omitempty"` // 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. Values *FieldRules `protobuf:"bytes,5,opt,name=values" json:"values,omitempty"` // IgnoreEmpty specifies that the validation rules of this field should be // evaluated only if the field is not empty IgnoreEmpty *bool `protobuf:"varint,6,opt,name=ignore_empty,json=ignoreEmpty" json:"ignore_empty,omitempty"` // Error descriptor Error *Error `protobuf:"bytes,7,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
MapRules describe the constraints applied to `map` values
func (*MapRule) Descriptor
deprecated
func (*MapRule) GetIgnoreEmpty ¶
func (*MapRule) GetKeys ¶
func (x *MapRule) GetKeys() *FieldRules
func (*MapRule) GetMaxPairs ¶
func (*MapRule) GetMinPairs ¶
func (*MapRule) GetNoSparse ¶
func (*MapRule) GetValues ¶
func (x *MapRule) GetValues() *FieldRules
func (*MapRule) ProtoMessage ¶
func (*MapRule) ProtoMessage()
func (*MapRule) ProtoReflect ¶
func (x *MapRule) ProtoReflect() protoreflect.Message
type MapRules ¶
type MapRules struct { Rules []*MapRule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"` // contains filtered or unexported fields }
MapRules describes multi rules on `map` field
func (*MapRules) Descriptor
deprecated
func (*MapRules) ProtoMessage ¶
func (*MapRules) ProtoMessage()
func (*MapRules) ProtoReflect ¶
func (x *MapRules) ProtoReflect() protoreflect.Message
type MessageRules ¶
type MessageRules struct { // Skip specifies that the validation rules of this field should not be // evaluated Skip *bool `protobuf:"varint,1,opt,name=skip" json:"skip,omitempty"` // Required specifies that this field must be set Required *bool `protobuf:"varint,2,opt,name=required" json:"required,omitempty"` // Error descriptor Error *Error `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
MessageRules describe the constraints applied to embedded message values. For message-type fields, validation is performed recursively.
func (*MessageRules) Descriptor
deprecated
func (*MessageRules) Descriptor() ([]byte, []int)
Deprecated: Use MessageRules.ProtoReflect.Descriptor instead.
func (*MessageRules) GetError ¶
func (x *MessageRules) GetError() *Error
func (*MessageRules) GetRequired ¶
func (x *MessageRules) GetRequired() bool
func (*MessageRules) GetSkip ¶
func (x *MessageRules) GetSkip() bool
func (*MessageRules) ProtoMessage ¶
func (*MessageRules) ProtoMessage()
func (*MessageRules) ProtoReflect ¶
func (x *MessageRules) ProtoReflect() protoreflect.Message
func (*MessageRules) Reset ¶
func (x *MessageRules) Reset()
func (*MessageRules) String ¶
func (x *MessageRules) String() string
type OneOf ¶
type OneOf struct { Required *bool `protobuf:"varint,1,opt,name=required" json:"required,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
func (*OneOf) Descriptor
deprecated
func (*OneOf) GetRequired ¶
func (*OneOf) ProtoMessage ¶
func (*OneOf) ProtoMessage()
func (*OneOf) ProtoReflect ¶
func (x *OneOf) ProtoReflect() protoreflect.Message
type RepeatedRule ¶
type RepeatedRule struct { // MinItems specifies that this field must have the specified number of // items at a minimum MinItems *uint64 `protobuf:"varint,1,opt,name=min_items,json=minItems" json:"min_items,omitempty"` // MaxItems specifies that this field must have the specified number of // items at a maximum MaxItems *uint64 `protobuf:"varint,2,opt,name=max_items,json=maxItems" json:"max_items,omitempty"` // 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). Unique *bool `protobuf:"varint,3,opt,name=unique" json:"unique,omitempty"` // 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. Items *FieldRules `protobuf:"bytes,4,opt,name=items" json:"items,omitempty"` // IgnoreEmpty specifies that the validation rules of this field should be // evaluated only if the field is not empty IgnoreEmpty *bool `protobuf:"varint,5,opt,name=ignore_empty,json=ignoreEmpty" json:"ignore_empty,omitempty"` // Error descriptor Error *Error `protobuf:"bytes,6,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
RepeatedRules describe the constraints applied to `repeated` values
func (*RepeatedRule) Descriptor
deprecated
func (*RepeatedRule) Descriptor() ([]byte, []int)
Deprecated: Use RepeatedRule.ProtoReflect.Descriptor instead.
func (*RepeatedRule) GetError ¶
func (x *RepeatedRule) GetError() *Error
func (*RepeatedRule) GetIgnoreEmpty ¶
func (x *RepeatedRule) GetIgnoreEmpty() bool
func (*RepeatedRule) GetItems ¶
func (x *RepeatedRule) GetItems() *FieldRules
func (*RepeatedRule) GetMaxItems ¶
func (x *RepeatedRule) GetMaxItems() uint64
func (*RepeatedRule) GetMinItems ¶
func (x *RepeatedRule) GetMinItems() uint64
func (*RepeatedRule) GetUnique ¶
func (x *RepeatedRule) GetUnique() bool
func (*RepeatedRule) ProtoMessage ¶
func (*RepeatedRule) ProtoMessage()
func (*RepeatedRule) ProtoReflect ¶
func (x *RepeatedRule) ProtoReflect() protoreflect.Message
func (*RepeatedRule) Reset ¶
func (x *RepeatedRule) Reset()
func (*RepeatedRule) String ¶
func (x *RepeatedRule) String() string
type RepeatedRules ¶
type RepeatedRules struct { Rules []*RepeatedRule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"` // contains filtered or unexported fields }
RepeatedRules describes multi rules on `repeated` field
func (*RepeatedRules) Descriptor
deprecated
func (*RepeatedRules) Descriptor() ([]byte, []int)
Deprecated: Use RepeatedRules.ProtoReflect.Descriptor instead.
func (*RepeatedRules) GetRules ¶
func (x *RepeatedRules) GetRules() []*RepeatedRule
func (*RepeatedRules) ProtoMessage ¶
func (*RepeatedRules) ProtoMessage()
func (*RepeatedRules) ProtoReflect ¶
func (x *RepeatedRules) ProtoReflect() protoreflect.Message
func (*RepeatedRules) Reset ¶
func (x *RepeatedRules) Reset()
func (*RepeatedRules) String ¶
func (x *RepeatedRules) String() string
type SFixed32Rule ¶
type SFixed32Rule struct { // Const specifies that this field must be exactly the specified value Const *int32 `protobuf:"fixed32,1,opt,name=const" json:"const,omitempty"` // Lt specifies that this field must be less than the specified value, // exclusive Lt *int32 `protobuf:"fixed32,2,opt,name=lt" json:"lt,omitempty"` // Lte specifies that this field must be less than or equal to the // specified value, inclusive Lte *int32 `protobuf:"fixed32,3,opt,name=lte" json:"lte,omitempty"` // 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. Gt *int32 `protobuf:"fixed32,4,opt,name=gt" json:"gt,omitempty"` // 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. Gte *int32 `protobuf:"fixed32,5,opt,name=gte" json:"gte,omitempty"` // In specifies that this field must be equal to one of the specified // values In []int32 `protobuf:"fixed32,6,rep,name=in" json:"in,omitempty"` // NotIn specifies that this field cannot be equal to one of the specified // values NotIn []int32 `protobuf:"fixed32,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` // IgnoreEmpty specifies that the validation rules of this field should be // evaluated only if the field is not empty IgnoreEmpty *bool `protobuf:"varint,8,opt,name=ignore_empty,json=ignoreEmpty" json:"ignore_empty,omitempty"` // Error descriptor Error *Error `protobuf:"bytes,9,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
SFixed32Rule describes the constraints applied to `sfixed32` values
func (*SFixed32Rule) Descriptor
deprecated
func (*SFixed32Rule) Descriptor() ([]byte, []int)
Deprecated: Use SFixed32Rule.ProtoReflect.Descriptor instead.
func (*SFixed32Rule) GetConst ¶
func (x *SFixed32Rule) GetConst() int32
func (*SFixed32Rule) GetError ¶
func (x *SFixed32Rule) GetError() *Error
func (*SFixed32Rule) GetGt ¶
func (x *SFixed32Rule) GetGt() int32
func (*SFixed32Rule) GetGte ¶
func (x *SFixed32Rule) GetGte() int32
func (*SFixed32Rule) GetIgnoreEmpty ¶
func (x *SFixed32Rule) GetIgnoreEmpty() bool
func (*SFixed32Rule) GetIn ¶
func (x *SFixed32Rule) GetIn() []int32
func (*SFixed32Rule) GetLt ¶
func (x *SFixed32Rule) GetLt() int32
func (*SFixed32Rule) GetLte ¶
func (x *SFixed32Rule) GetLte() int32
func (*SFixed32Rule) GetNotIn ¶
func (x *SFixed32Rule) GetNotIn() []int32
func (*SFixed32Rule) ProtoMessage ¶
func (*SFixed32Rule) ProtoMessage()
func (*SFixed32Rule) ProtoReflect ¶
func (x *SFixed32Rule) ProtoReflect() protoreflect.Message
func (*SFixed32Rule) Reset ¶
func (x *SFixed32Rule) Reset()
func (*SFixed32Rule) String ¶
func (x *SFixed32Rule) String() string
type SFixed32Rules ¶
type SFixed32Rules struct { Rules []*SFixed32Rule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"` // contains filtered or unexported fields }
SFixed32Rules describes multi rules on `sfixed32` field
func (*SFixed32Rules) Descriptor
deprecated
func (*SFixed32Rules) Descriptor() ([]byte, []int)
Deprecated: Use SFixed32Rules.ProtoReflect.Descriptor instead.
func (*SFixed32Rules) GetRules ¶
func (x *SFixed32Rules) GetRules() []*SFixed32Rule
func (*SFixed32Rules) ProtoMessage ¶
func (*SFixed32Rules) ProtoMessage()
func (*SFixed32Rules) ProtoReflect ¶
func (x *SFixed32Rules) ProtoReflect() protoreflect.Message
func (*SFixed32Rules) Reset ¶
func (x *SFixed32Rules) Reset()
func (*SFixed32Rules) String ¶
func (x *SFixed32Rules) String() string
type SFixed64Rule ¶
type SFixed64Rule struct { // Const specifies that this field must be exactly the specified value Const *int64 `protobuf:"fixed64,1,opt,name=const" json:"const,omitempty"` // Lt specifies that this field must be less than the specified value, // exclusive Lt *int64 `protobuf:"fixed64,2,opt,name=lt" json:"lt,omitempty"` // Lte specifies that this field must be less than or equal to the // specified value, inclusive Lte *int64 `protobuf:"fixed64,3,opt,name=lte" json:"lte,omitempty"` // 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. Gt *int64 `protobuf:"fixed64,4,opt,name=gt" json:"gt,omitempty"` // 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. Gte *int64 `protobuf:"fixed64,5,opt,name=gte" json:"gte,omitempty"` // In specifies that this field must be equal to one of the specified // values In []int64 `protobuf:"fixed64,6,rep,name=in" json:"in,omitempty"` // NotIn specifies that this field cannot be equal to one of the specified // values NotIn []int64 `protobuf:"fixed64,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` // IgnoreEmpty specifies that the validation rules of this field should be // evaluated only if the field is not empty IgnoreEmpty *bool `protobuf:"varint,8,opt,name=ignore_empty,json=ignoreEmpty" json:"ignore_empty,omitempty"` // Error descriptor Error *Error `protobuf:"bytes,9,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
SFixed64Rule describes the constraints applied to `sfixed64` values
func (*SFixed64Rule) Descriptor
deprecated
func (*SFixed64Rule) Descriptor() ([]byte, []int)
Deprecated: Use SFixed64Rule.ProtoReflect.Descriptor instead.
func (*SFixed64Rule) GetConst ¶
func (x *SFixed64Rule) GetConst() int64
func (*SFixed64Rule) GetError ¶
func (x *SFixed64Rule) GetError() *Error
func (*SFixed64Rule) GetGt ¶
func (x *SFixed64Rule) GetGt() int64
func (*SFixed64Rule) GetGte ¶
func (x *SFixed64Rule) GetGte() int64
func (*SFixed64Rule) GetIgnoreEmpty ¶
func (x *SFixed64Rule) GetIgnoreEmpty() bool
func (*SFixed64Rule) GetIn ¶
func (x *SFixed64Rule) GetIn() []int64
func (*SFixed64Rule) GetLt ¶
func (x *SFixed64Rule) GetLt() int64
func (*SFixed64Rule) GetLte ¶
func (x *SFixed64Rule) GetLte() int64
func (*SFixed64Rule) GetNotIn ¶
func (x *SFixed64Rule) GetNotIn() []int64
func (*SFixed64Rule) ProtoMessage ¶
func (*SFixed64Rule) ProtoMessage()
func (*SFixed64Rule) ProtoReflect ¶
func (x *SFixed64Rule) ProtoReflect() protoreflect.Message
func (*SFixed64Rule) Reset ¶
func (x *SFixed64Rule) Reset()
func (*SFixed64Rule) String ¶
func (x *SFixed64Rule) String() string
type SFixed64Rules ¶
type SFixed64Rules struct { Rules []*SFixed64Rule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"` // contains filtered or unexported fields }
SFixed64Rules describes multi rules on `sfixed64` field
func (*SFixed64Rules) Descriptor
deprecated
func (*SFixed64Rules) Descriptor() ([]byte, []int)
Deprecated: Use SFixed64Rules.ProtoReflect.Descriptor instead.
func (*SFixed64Rules) GetRules ¶
func (x *SFixed64Rules) GetRules() []*SFixed64Rule
func (*SFixed64Rules) ProtoMessage ¶
func (*SFixed64Rules) ProtoMessage()
func (*SFixed64Rules) ProtoReflect ¶
func (x *SFixed64Rules) ProtoReflect() protoreflect.Message
func (*SFixed64Rules) Reset ¶
func (x *SFixed64Rules) Reset()
func (*SFixed64Rules) String ¶
func (x *SFixed64Rules) String() string
type SInt32Rule ¶
type SInt32Rule struct { // Const specifies that this field must be exactly the specified value Const *int32 `protobuf:"zigzag32,1,opt,name=const" json:"const,omitempty"` // Lt specifies that this field must be less than the specified value, // exclusive Lt *int32 `protobuf:"zigzag32,2,opt,name=lt" json:"lt,omitempty"` // Lte specifies that this field must be less than or equal to the // specified value, inclusive Lte *int32 `protobuf:"zigzag32,3,opt,name=lte" json:"lte,omitempty"` // 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. Gt *int32 `protobuf:"zigzag32,4,opt,name=gt" json:"gt,omitempty"` // 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. Gte *int32 `protobuf:"zigzag32,5,opt,name=gte" json:"gte,omitempty"` // In specifies that this field must be equal to one of the specified // values In []int32 `protobuf:"zigzag32,6,rep,name=in" json:"in,omitempty"` // NotIn specifies that this field cannot be equal to one of the specified // values NotIn []int32 `protobuf:"zigzag32,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` // IgnoreEmpty specifies that the validation rules of this field should be // evaluated only if the field is not empty IgnoreEmpty *bool `protobuf:"varint,8,opt,name=ignore_empty,json=ignoreEmpty" json:"ignore_empty,omitempty"` // Error descriptor Error *Error `protobuf:"bytes,9,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
SInt32Rule describes the constraints applied to `sint32` values
func (*SInt32Rule) Descriptor
deprecated
func (*SInt32Rule) Descriptor() ([]byte, []int)
Deprecated: Use SInt32Rule.ProtoReflect.Descriptor instead.
func (*SInt32Rule) GetConst ¶
func (x *SInt32Rule) GetConst() int32
func (*SInt32Rule) GetError ¶
func (x *SInt32Rule) GetError() *Error
func (*SInt32Rule) GetGt ¶
func (x *SInt32Rule) GetGt() int32
func (*SInt32Rule) GetGte ¶
func (x *SInt32Rule) GetGte() int32
func (*SInt32Rule) GetIgnoreEmpty ¶
func (x *SInt32Rule) GetIgnoreEmpty() bool
func (*SInt32Rule) GetIn ¶
func (x *SInt32Rule) GetIn() []int32
func (*SInt32Rule) GetLt ¶
func (x *SInt32Rule) GetLt() int32
func (*SInt32Rule) GetLte ¶
func (x *SInt32Rule) GetLte() int32
func (*SInt32Rule) GetNotIn ¶
func (x *SInt32Rule) GetNotIn() []int32
func (*SInt32Rule) ProtoMessage ¶
func (*SInt32Rule) ProtoMessage()
func (*SInt32Rule) ProtoReflect ¶
func (x *SInt32Rule) ProtoReflect() protoreflect.Message
func (*SInt32Rule) Reset ¶
func (x *SInt32Rule) Reset()
func (*SInt32Rule) String ¶
func (x *SInt32Rule) String() string
type SInt32Rules ¶
type SInt32Rules struct { Rules []*SInt32Rule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"` // contains filtered or unexported fields }
SInt32Rules describes multi rules on `sint32` field
func (*SInt32Rules) Descriptor
deprecated
func (*SInt32Rules) Descriptor() ([]byte, []int)
Deprecated: Use SInt32Rules.ProtoReflect.Descriptor instead.
func (*SInt32Rules) GetRules ¶
func (x *SInt32Rules) GetRules() []*SInt32Rule
func (*SInt32Rules) ProtoMessage ¶
func (*SInt32Rules) ProtoMessage()
func (*SInt32Rules) ProtoReflect ¶
func (x *SInt32Rules) ProtoReflect() protoreflect.Message
func (*SInt32Rules) Reset ¶
func (x *SInt32Rules) Reset()
func (*SInt32Rules) String ¶
func (x *SInt32Rules) String() string
type SInt64Rule ¶
type SInt64Rule struct { // Const specifies that this field must be exactly the specified value Const *int64 `protobuf:"zigzag64,1,opt,name=const" json:"const,omitempty"` // Lt specifies that this field must be less than the specified value, // exclusive Lt *int64 `protobuf:"zigzag64,2,opt,name=lt" json:"lt,omitempty"` // Lte specifies that this field must be less than or equal to the // specified value, inclusive Lte *int64 `protobuf:"zigzag64,3,opt,name=lte" json:"lte,omitempty"` // 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. Gt *int64 `protobuf:"zigzag64,4,opt,name=gt" json:"gt,omitempty"` // 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. Gte *int64 `protobuf:"zigzag64,5,opt,name=gte" json:"gte,omitempty"` // In specifies that this field must be equal to one of the specified // values In []int64 `protobuf:"zigzag64,6,rep,name=in" json:"in,omitempty"` // NotIn specifies that this field cannot be equal to one of the specified // values NotIn []int64 `protobuf:"zigzag64,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` // IgnoreEmpty specifies that the validation rules of this field should be // evaluated only if the field is not empty IgnoreEmpty *bool `protobuf:"varint,8,opt,name=ignore_empty,json=ignoreEmpty" json:"ignore_empty,omitempty"` // Error descriptor Error *Error `protobuf:"bytes,9,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
SInt64Rule describes the constraints applied to `sint64` values
func (*SInt64Rule) Descriptor
deprecated
func (*SInt64Rule) Descriptor() ([]byte, []int)
Deprecated: Use SInt64Rule.ProtoReflect.Descriptor instead.
func (*SInt64Rule) GetConst ¶
func (x *SInt64Rule) GetConst() int64
func (*SInt64Rule) GetError ¶
func (x *SInt64Rule) GetError() *Error
func (*SInt64Rule) GetGt ¶
func (x *SInt64Rule) GetGt() int64
func (*SInt64Rule) GetGte ¶
func (x *SInt64Rule) GetGte() int64
func (*SInt64Rule) GetIgnoreEmpty ¶
func (x *SInt64Rule) GetIgnoreEmpty() bool
func (*SInt64Rule) GetIn ¶
func (x *SInt64Rule) GetIn() []int64
func (*SInt64Rule) GetLt ¶
func (x *SInt64Rule) GetLt() int64
func (*SInt64Rule) GetLte ¶
func (x *SInt64Rule) GetLte() int64
func (*SInt64Rule) GetNotIn ¶
func (x *SInt64Rule) GetNotIn() []int64
func (*SInt64Rule) ProtoMessage ¶
func (*SInt64Rule) ProtoMessage()
func (*SInt64Rule) ProtoReflect ¶
func (x *SInt64Rule) ProtoReflect() protoreflect.Message
func (*SInt64Rule) Reset ¶
func (x *SInt64Rule) Reset()
func (*SInt64Rule) String ¶
func (x *SInt64Rule) String() string
type SInt64Rules ¶
type SInt64Rules struct { Rules []*SInt64Rule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"` // contains filtered or unexported fields }
SInt64Rules describes multi rules on `sint64` field
func (*SInt64Rules) Descriptor
deprecated
func (*SInt64Rules) Descriptor() ([]byte, []int)
Deprecated: Use SInt64Rules.ProtoReflect.Descriptor instead.
func (*SInt64Rules) GetRules ¶
func (x *SInt64Rules) GetRules() []*SInt64Rule
func (*SInt64Rules) ProtoMessage ¶
func (*SInt64Rules) ProtoMessage()
func (*SInt64Rules) ProtoReflect ¶
func (x *SInt64Rules) ProtoReflect() protoreflect.Message
func (*SInt64Rules) Reset ¶
func (x *SInt64Rules) Reset()
func (*SInt64Rules) String ¶
func (x *SInt64Rules) String() string
type StringRule ¶
type StringRule struct { // Const specifies that this field must be exactly the specified value Const *string `protobuf:"bytes,1,opt,name=const" json:"const,omitempty"` // 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. Len *uint64 `protobuf:"varint,19,opt,name=len" json:"len,omitempty"` // 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. MinLen *uint64 `protobuf:"varint,2,opt,name=min_len,json=minLen" json:"min_len,omitempty"` // 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. MaxLen *uint64 `protobuf:"varint,3,opt,name=max_len,json=maxLen" json:"max_len,omitempty"` // LenBytes specifies that this field must be the specified number of bytes LenBytes *uint64 `protobuf:"varint,20,opt,name=len_bytes,json=lenBytes" json:"len_bytes,omitempty"` // MinBytes specifies that this field must be the specified number of bytes // at a minimum MinBytes *uint64 `protobuf:"varint,4,opt,name=min_bytes,json=minBytes" json:"min_bytes,omitempty"` // MaxBytes specifies that this field must be the specified number of bytes // at a maximum MaxBytes *uint64 `protobuf:"varint,5,opt,name=max_bytes,json=maxBytes" json:"max_bytes,omitempty"` // Pattern specifes that this field must match against the specified // regular expression (RE2 syntax). The included expression should elide // any delimiters. Pattern *string `protobuf:"bytes,6,opt,name=pattern" json:"pattern,omitempty"` // Prefix specifies that this field must have the specified substring at // the beginning of the string. Prefix *string `protobuf:"bytes,7,opt,name=prefix" json:"prefix,omitempty"` // Suffix specifies that this field must have the specified substring at // the end of the string. Suffix *string `protobuf:"bytes,8,opt,name=suffix" json:"suffix,omitempty"` // Contains specifies that this field must have the specified substring // anywhere in the string. Contains *string `protobuf:"bytes,9,opt,name=contains" json:"contains,omitempty"` // NotContains specifies that this field cannot have the specified substring // anywhere in the string. NotContains *string `protobuf:"bytes,23,opt,name=not_contains,json=notContains" json:"not_contains,omitempty"` // In specifies that this field must be equal to one of the specified // values In []string `protobuf:"bytes,10,rep,name=in" json:"in,omitempty"` // NotIn specifies that this field cannot be equal to one of the specified // values NotIn []string `protobuf:"bytes,11,rep,name=not_in,json=notIn" json:"not_in,omitempty"` // WellKnown rules provide advanced constraints against common string // patterns // // Types that are assignable to WellKnown: // *StringRule_Email // *StringRule_Hostname // *StringRule_Ip // *StringRule_Ipv4 // *StringRule_Ipv6 // *StringRule_Uri // *StringRule_UriRef // *StringRule_Address // *StringRule_Uuid // *StringRule_WellKnownRegex WellKnown isStringRule_WellKnown `protobuf_oneof:"well_known"` // 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. Strict *bool `protobuf:"varint,25,opt,name=strict,def=1" json:"strict,omitempty"` // IgnoreEmpty specifies that the validation rules of this field should be // evaluated only if the field is not empty IgnoreEmpty *bool `protobuf:"varint,26,opt,name=ignore_empty,json=ignoreEmpty" json:"ignore_empty,omitempty"` // Error descriptor Error *Error `protobuf:"bytes,27,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
StringRule describe the constraints applied to `string` values
func (*StringRule) Descriptor
deprecated
func (*StringRule) Descriptor() ([]byte, []int)
Deprecated: Use StringRule.ProtoReflect.Descriptor instead.
func (*StringRule) GetAddress ¶
func (x *StringRule) GetAddress() bool
func (*StringRule) GetConst ¶
func (x *StringRule) GetConst() string
func (*StringRule) GetContains ¶
func (x *StringRule) GetContains() string
func (*StringRule) GetEmail ¶
func (x *StringRule) GetEmail() bool
func (*StringRule) GetError ¶
func (x *StringRule) GetError() *Error
func (*StringRule) GetHostname ¶
func (x *StringRule) GetHostname() bool
func (*StringRule) GetIgnoreEmpty ¶
func (x *StringRule) GetIgnoreEmpty() bool
func (*StringRule) GetIn ¶
func (x *StringRule) GetIn() []string
func (*StringRule) GetIp ¶
func (x *StringRule) GetIp() bool
func (*StringRule) GetIpv4 ¶
func (x *StringRule) GetIpv4() bool
func (*StringRule) GetIpv6 ¶
func (x *StringRule) GetIpv6() bool
func (*StringRule) GetLen ¶
func (x *StringRule) GetLen() uint64
func (*StringRule) GetLenBytes ¶
func (x *StringRule) GetLenBytes() uint64
func (*StringRule) GetMaxBytes ¶
func (x *StringRule) GetMaxBytes() uint64
func (*StringRule) GetMaxLen ¶
func (x *StringRule) GetMaxLen() uint64
func (*StringRule) GetMinBytes ¶
func (x *StringRule) GetMinBytes() uint64
func (*StringRule) GetMinLen ¶
func (x *StringRule) GetMinLen() uint64
func (*StringRule) GetNotContains ¶
func (x *StringRule) GetNotContains() string
func (*StringRule) GetNotIn ¶
func (x *StringRule) GetNotIn() []string
func (*StringRule) GetPattern ¶
func (x *StringRule) GetPattern() string
func (*StringRule) GetPrefix ¶
func (x *StringRule) GetPrefix() string
func (*StringRule) GetStrict ¶
func (x *StringRule) GetStrict() bool
func (*StringRule) GetSuffix ¶
func (x *StringRule) GetSuffix() string
func (*StringRule) GetUri ¶
func (x *StringRule) GetUri() bool
func (*StringRule) GetUriRef ¶
func (x *StringRule) GetUriRef() bool
func (*StringRule) GetUuid ¶
func (x *StringRule) GetUuid() bool
func (*StringRule) GetWellKnown ¶
func (m *StringRule) GetWellKnown() isStringRule_WellKnown
func (*StringRule) GetWellKnownRegex ¶
func (x *StringRule) GetWellKnownRegex() KnownRegex
func (*StringRule) ProtoMessage ¶
func (*StringRule) ProtoMessage()
func (*StringRule) ProtoReflect ¶
func (x *StringRule) ProtoReflect() protoreflect.Message
func (*StringRule) Reset ¶
func (x *StringRule) Reset()
func (*StringRule) String ¶
func (x *StringRule) String() string
type StringRule_Address ¶
type StringRule_Email ¶
type StringRule_Hostname ¶
type StringRule_Ip ¶
type StringRule_Ip struct { // Ip specifies that the field must be a valid IP (v4 or v6) address. // Valid IPv6 addresses should not include surrounding square brackets. Ip bool `protobuf:"varint,14,opt,name=ip,oneof"` }
type StringRule_Ipv4 ¶
type StringRule_Ipv4 struct { // Ipv4 specifies that the field must be a valid IPv4 address. Ipv4 bool `protobuf:"varint,15,opt,name=ipv4,oneof"` }
type StringRule_Ipv6 ¶
type StringRule_Ipv6 struct { // Ipv6 specifies that the field must be a valid IPv6 address. Valid // IPv6 addresses should not include surrounding square brackets. Ipv6 bool `protobuf:"varint,16,opt,name=ipv6,oneof"` }
type StringRule_Uri ¶
type StringRule_UriRef ¶
type StringRule_UriRef struct { // UriRef specifies that the field must be a valid URI as defined by RFC // 3986 and may be relative or absolute. UriRef bool `protobuf:"varint,18,opt,name=uri_ref,json=uriRef,oneof"` }
type StringRule_Uuid ¶
type StringRule_WellKnownRegex ¶
type StringRule_WellKnownRegex struct { // WellKnownRegex specifies a common well known pattern defined as a regex. WellKnownRegex KnownRegex `protobuf:"varint,24,opt,name=well_known_regex,json=wellKnownRegex,enum=validate.KnownRegex,oneof"` }
type StringRules ¶
type StringRules struct { Rules []*StringRule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"` // contains filtered or unexported fields }
StringRules describes multi rules on `string` field
func (*StringRules) Descriptor
deprecated
func (*StringRules) Descriptor() ([]byte, []int)
Deprecated: Use StringRules.ProtoReflect.Descriptor instead.
func (*StringRules) GetRules ¶
func (x *StringRules) GetRules() []*StringRule
func (*StringRules) ProtoMessage ¶
func (*StringRules) ProtoMessage()
func (*StringRules) ProtoReflect ¶
func (x *StringRules) ProtoReflect() protoreflect.Message
func (*StringRules) Reset ¶
func (x *StringRules) Reset()
func (*StringRules) String ¶
func (x *StringRules) String() string
type TimestampRule ¶
type TimestampRule struct { // Required specifies that this field must be set Required *bool `protobuf:"varint,1,opt,name=required" json:"required,omitempty"` // Const specifies that this field must be exactly the specified value Const *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=const" json:"const,omitempty"` // Lt specifies that this field must be less than the specified value, // exclusive Lt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=lt" json:"lt,omitempty"` // Lte specifies that this field must be less than the specified value, // inclusive Lte *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=lte" json:"lte,omitempty"` // Gt specifies that this field must be greater than the specified value, // exclusive Gt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=gt" json:"gt,omitempty"` // Gte specifies that this field must be greater than the specified value, // inclusive Gte *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=gte" json:"gte,omitempty"` // LtNow specifies that this must be less than the current time. LtNow // can only be used with the Within rule. LtNow *bool `protobuf:"varint,7,opt,name=lt_now,json=ltNow" json:"lt_now,omitempty"` // GtNow specifies that this must be greater than the current time. GtNow // can only be used with the Within rule. GtNow *bool `protobuf:"varint,8,opt,name=gt_now,json=gtNow" json:"gt_now,omitempty"` // 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. Within *durationpb.Duration `protobuf:"bytes,9,opt,name=within" json:"within,omitempty"` // Error descriptor Error *Error `protobuf:"bytes,10,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
TimestampRules describe the constraints applied exclusively to the `google.protobuf.Timestamp` well-known type
func (*TimestampRule) Descriptor
deprecated
func (*TimestampRule) Descriptor() ([]byte, []int)
Deprecated: Use TimestampRule.ProtoReflect.Descriptor instead.
func (*TimestampRule) GetConst ¶
func (x *TimestampRule) GetConst() *timestamppb.Timestamp
func (*TimestampRule) GetError ¶
func (x *TimestampRule) GetError() *Error
func (*TimestampRule) GetGt ¶
func (x *TimestampRule) GetGt() *timestamppb.Timestamp
func (*TimestampRule) GetGtNow ¶
func (x *TimestampRule) GetGtNow() bool
func (*TimestampRule) GetGte ¶
func (x *TimestampRule) GetGte() *timestamppb.Timestamp
func (*TimestampRule) GetLt ¶
func (x *TimestampRule) GetLt() *timestamppb.Timestamp
func (*TimestampRule) GetLtNow ¶
func (x *TimestampRule) GetLtNow() bool
func (*TimestampRule) GetLte ¶
func (x *TimestampRule) GetLte() *timestamppb.Timestamp
func (*TimestampRule) GetRequired ¶
func (x *TimestampRule) GetRequired() bool
func (*TimestampRule) GetWithin ¶
func (x *TimestampRule) GetWithin() *durationpb.Duration
func (*TimestampRule) ProtoMessage ¶
func (*TimestampRule) ProtoMessage()
func (*TimestampRule) ProtoReflect ¶
func (x *TimestampRule) ProtoReflect() protoreflect.Message
func (*TimestampRule) Reset ¶
func (x *TimestampRule) Reset()
func (*TimestampRule) String ¶
func (x *TimestampRule) String() string
type TimestampRules ¶
type TimestampRules struct { Rules []*TimestampRule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"` // contains filtered or unexported fields }
TimestampRules describes multi rules on `google.protobuf.Timestamp` field
func (*TimestampRules) Descriptor
deprecated
func (*TimestampRules) Descriptor() ([]byte, []int)
Deprecated: Use TimestampRules.ProtoReflect.Descriptor instead.
func (*TimestampRules) GetRules ¶
func (x *TimestampRules) GetRules() []*TimestampRule
func (*TimestampRules) ProtoMessage ¶
func (*TimestampRules) ProtoMessage()
func (*TimestampRules) ProtoReflect ¶
func (x *TimestampRules) ProtoReflect() protoreflect.Message
func (*TimestampRules) Reset ¶
func (x *TimestampRules) Reset()
func (*TimestampRules) String ¶
func (x *TimestampRules) String() string
type UInt32Rule ¶
type UInt32Rule struct { // Const specifies that this field must be exactly the specified value Const *uint32 `protobuf:"varint,1,opt,name=const" json:"const,omitempty"` // Lt specifies that this field must be less than the specified value, // exclusive Lt *uint32 `protobuf:"varint,2,opt,name=lt" json:"lt,omitempty"` // Lte specifies that this field must be less than or equal to the // specified value, inclusive Lte *uint32 `protobuf:"varint,3,opt,name=lte" json:"lte,omitempty"` // 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. Gt *uint32 `protobuf:"varint,4,opt,name=gt" json:"gt,omitempty"` // 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. Gte *uint32 `protobuf:"varint,5,opt,name=gte" json:"gte,omitempty"` // In specifies that this field must be equal to one of the specified // values In []uint32 `protobuf:"varint,6,rep,name=in" json:"in,omitempty"` // NotIn specifies that this field cannot be equal to one of the specified // values NotIn []uint32 `protobuf:"varint,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` // IgnoreEmpty specifies that the validation rules of this field should be // evaluated only if the field is not empty IgnoreEmpty *bool `protobuf:"varint,8,opt,name=ignore_empty,json=ignoreEmpty" json:"ignore_empty,omitempty"` // Error descriptor Error *Error `protobuf:"bytes,9,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
UInt32Rule describes the constraints applied to `uint32` values
func (*UInt32Rule) Descriptor
deprecated
func (*UInt32Rule) Descriptor() ([]byte, []int)
Deprecated: Use UInt32Rule.ProtoReflect.Descriptor instead.
func (*UInt32Rule) GetConst ¶
func (x *UInt32Rule) GetConst() uint32
func (*UInt32Rule) GetError ¶
func (x *UInt32Rule) GetError() *Error
func (*UInt32Rule) GetGt ¶
func (x *UInt32Rule) GetGt() uint32
func (*UInt32Rule) GetGte ¶
func (x *UInt32Rule) GetGte() uint32
func (*UInt32Rule) GetIgnoreEmpty ¶
func (x *UInt32Rule) GetIgnoreEmpty() bool
func (*UInt32Rule) GetIn ¶
func (x *UInt32Rule) GetIn() []uint32
func (*UInt32Rule) GetLt ¶
func (x *UInt32Rule) GetLt() uint32
func (*UInt32Rule) GetLte ¶
func (x *UInt32Rule) GetLte() uint32
func (*UInt32Rule) GetNotIn ¶
func (x *UInt32Rule) GetNotIn() []uint32
func (*UInt32Rule) ProtoMessage ¶
func (*UInt32Rule) ProtoMessage()
func (*UInt32Rule) ProtoReflect ¶
func (x *UInt32Rule) ProtoReflect() protoreflect.Message
func (*UInt32Rule) Reset ¶
func (x *UInt32Rule) Reset()
func (*UInt32Rule) String ¶
func (x *UInt32Rule) String() string
type UInt32Rules ¶
type UInt32Rules struct { Rules []*UInt32Rule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"` // contains filtered or unexported fields }
UInt32Rules describes multi rules on `uint32` field
func (*UInt32Rules) Descriptor
deprecated
func (*UInt32Rules) Descriptor() ([]byte, []int)
Deprecated: Use UInt32Rules.ProtoReflect.Descriptor instead.
func (*UInt32Rules) GetRules ¶
func (x *UInt32Rules) GetRules() []*UInt32Rule
func (*UInt32Rules) ProtoMessage ¶
func (*UInt32Rules) ProtoMessage()
func (*UInt32Rules) ProtoReflect ¶
func (x *UInt32Rules) ProtoReflect() protoreflect.Message
func (*UInt32Rules) Reset ¶
func (x *UInt32Rules) Reset()
func (*UInt32Rules) String ¶
func (x *UInt32Rules) String() string
type UInt64Rule ¶
type UInt64Rule struct { // Const specifies that this field must be exactly the specified value Const *uint64 `protobuf:"varint,1,opt,name=const" json:"const,omitempty"` // Lt specifies that this field must be less than the specified value, // exclusive Lt *uint64 `protobuf:"varint,2,opt,name=lt" json:"lt,omitempty"` // Lte specifies that this field must be less than or equal to the // specified value, inclusive Lte *uint64 `protobuf:"varint,3,opt,name=lte" json:"lte,omitempty"` // 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. Gt *uint64 `protobuf:"varint,4,opt,name=gt" json:"gt,omitempty"` // 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. Gte *uint64 `protobuf:"varint,5,opt,name=gte" json:"gte,omitempty"` // In specifies that this field must be equal to one of the specified // values In []uint64 `protobuf:"varint,6,rep,name=in" json:"in,omitempty"` // NotIn specifies that this field cannot be equal to one of the specified // values NotIn []uint64 `protobuf:"varint,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` // IgnoreEmpty specifies that the validation rules of this field should be // evaluated only if the field is not empty IgnoreEmpty *bool `protobuf:"varint,8,opt,name=ignore_empty,json=ignoreEmpty" json:"ignore_empty,omitempty"` // Error descriptor Error *Error `protobuf:"bytes,9,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
UInt64Rule describes the constraints applied to `uint64` values
func (*UInt64Rule) Descriptor
deprecated
func (*UInt64Rule) Descriptor() ([]byte, []int)
Deprecated: Use UInt64Rule.ProtoReflect.Descriptor instead.
func (*UInt64Rule) GetConst ¶
func (x *UInt64Rule) GetConst() uint64
func (*UInt64Rule) GetError ¶
func (x *UInt64Rule) GetError() *Error
func (*UInt64Rule) GetGt ¶
func (x *UInt64Rule) GetGt() uint64
func (*UInt64Rule) GetGte ¶
func (x *UInt64Rule) GetGte() uint64
func (*UInt64Rule) GetIgnoreEmpty ¶
func (x *UInt64Rule) GetIgnoreEmpty() bool
func (*UInt64Rule) GetIn ¶
func (x *UInt64Rule) GetIn() []uint64
func (*UInt64Rule) GetLt ¶
func (x *UInt64Rule) GetLt() uint64
func (*UInt64Rule) GetLte ¶
func (x *UInt64Rule) GetLte() uint64
func (*UInt64Rule) GetNotIn ¶
func (x *UInt64Rule) GetNotIn() []uint64
func (*UInt64Rule) ProtoMessage ¶
func (*UInt64Rule) ProtoMessage()
func (*UInt64Rule) ProtoReflect ¶
func (x *UInt64Rule) ProtoReflect() protoreflect.Message
func (*UInt64Rule) Reset ¶
func (x *UInt64Rule) Reset()
func (*UInt64Rule) String ¶
func (x *UInt64Rule) String() string
type UInt64Rules ¶
type UInt64Rules struct { Rules []*UInt64Rule `protobuf:"bytes,1,rep,name=rules" json:"rules,omitempty"` // contains filtered or unexported fields }
UInt64Rule describes multi rules on `uint64` field
func (*UInt64Rules) Descriptor
deprecated
func (*UInt64Rules) Descriptor() ([]byte, []int)
Deprecated: Use UInt64Rules.ProtoReflect.Descriptor instead.
func (*UInt64Rules) GetRules ¶
func (x *UInt64Rules) GetRules() []*UInt64Rule
func (*UInt64Rules) ProtoMessage ¶
func (*UInt64Rules) ProtoMessage()
func (*UInt64Rules) ProtoReflect ¶
func (x *UInt64Rules) ProtoReflect() protoreflect.Message
func (*UInt64Rules) Reset ¶
func (x *UInt64Rules) Reset()
func (*UInt64Rules) String ¶
func (x *UInt64Rules) String() string