Documentation
¶
Index ¶
- Variables
- type BoolTags
- type BytesTags
- func (*BytesTags) Descriptor() ([]byte, []int)deprecated
- func (x *BytesTags) GetLenEq() int64
- func (x *BytesTags) GetLenGt() int64
- func (x *BytesTags) GetLenGte() int64
- func (x *BytesTags) GetLenLt() int64
- func (x *BytesTags) GetLenLte() int64
- func (x *BytesTags) GetLenNe() int64
- func (*BytesTags) ProtoMessage()
- func (x *BytesTags) ProtoReflect() protoreflect.Message
- func (x *BytesTags) Reset()
- func (x *BytesTags) String() string
- type CheckIf
- type EnumTags
- func (*EnumTags) Descriptor() ([]byte, []int)deprecated
- func (x *EnumTags) GetEq() int32
- func (x *EnumTags) GetGt() int32
- func (x *EnumTags) GetGte() int32
- func (x *EnumTags) GetIn() []int32
- func (x *EnumTags) GetInEnums() bool
- func (x *EnumTags) GetLt() int32
- func (x *EnumTags) GetLte() int32
- func (x *EnumTags) GetNe() int32
- func (x *EnumTags) GetNotIn() []int32
- func (*EnumTags) ProtoMessage()
- func (x *EnumTags) ProtoReflect() protoreflect.Message
- func (x *EnumTags) Reset()
- func (x *EnumTags) String() string
- type FloatTags
- func (*FloatTags) Descriptor() ([]byte, []int)deprecated
- func (x *FloatTags) GetEq() float64
- func (x *FloatTags) GetGt() float64
- func (x *FloatTags) GetGte() float64
- func (x *FloatTags) GetIn() []float64
- func (x *FloatTags) GetLt() float64
- func (x *FloatTags) GetLte() float64
- func (x *FloatTags) GetNe() float64
- func (x *FloatTags) GetNotIn() []float64
- func (*FloatTags) ProtoMessage()
- func (x *FloatTags) ProtoReflect() protoreflect.Message
- func (x *FloatTags) Reset()
- func (x *FloatTags) String() string
- type IntTags
- func (*IntTags) Descriptor() ([]byte, []int)deprecated
- func (x *IntTags) GetEq() int64
- func (x *IntTags) GetGt() int64
- func (x *IntTags) GetGte() int64
- func (x *IntTags) GetIn() []int64
- func (x *IntTags) GetLt() int64
- func (x *IntTags) GetLte() int64
- func (x *IntTags) GetNe() int64
- func (x *IntTags) GetNotIn() []int64
- func (*IntTags) ProtoMessage()
- func (x *IntTags) ProtoReflect() protoreflect.Message
- func (x *IntTags) Reset()
- func (x *IntTags) String() string
- type MapTags
- func (*MapTags) Descriptor() ([]byte, []int)deprecated
- func (x *MapTags) GetKey() *TagOptions
- func (x *MapTags) GetLenEq() int64
- func (x *MapTags) GetLenGt() int64
- func (x *MapTags) GetLenGte() int64
- func (x *MapTags) GetLenLt() int64
- func (x *MapTags) GetLenLte() int64
- func (x *MapTags) GetLenNe() int64
- func (x *MapTags) GetNotNull() bool
- func (x *MapTags) GetValue() *TagOptions
- func (*MapTags) ProtoMessage()
- func (x *MapTags) ProtoReflect() protoreflect.Message
- func (x *MapTags) Reset()
- func (x *MapTags) String() string
- type MessageTags
- type OneOfTags
- type RepeatedTags
- func (*RepeatedTags) Descriptor() ([]byte, []int)deprecated
- func (x *RepeatedTags) GetItem() *TagOptions
- func (x *RepeatedTags) GetLenEq() int64
- func (x *RepeatedTags) GetLenGt() int64
- func (x *RepeatedTags) GetLenGte() int64
- func (x *RepeatedTags) GetLenLt() int64
- func (x *RepeatedTags) GetLenLte() int64
- func (x *RepeatedTags) GetLenNe() int64
- func (x *RepeatedTags) GetNotNull() bool
- func (x *RepeatedTags) GetUnique() bool
- func (*RepeatedTags) ProtoMessage()
- func (x *RepeatedTags) ProtoReflect() protoreflect.Message
- func (x *RepeatedTags) Reset()
- func (x *RepeatedTags) String() string
- type StringTags
- func (*StringTags) Descriptor() ([]byte, []int)deprecated
- func (x *StringTags) GetAlpha() bool
- func (x *StringTags) GetAlphaNumber() bool
- func (x *StringTags) GetAscii() bool
- func (x *StringTags) GetBase64() bool
- func (x *StringTags) GetBase64Url() bool
- func (x *StringTags) GetBoolean() bool
- func (x *StringTags) GetByteLenEq() int64
- func (x *StringTags) GetByteLenGt() int64
- func (x *StringTags) GetByteLenGte() int64
- func (x *StringTags) GetByteLenLt() int64
- func (x *StringTags) GetByteLenLte() int64
- func (x *StringTags) GetByteLenNe() int64
- func (x *StringTags) GetCharLenEq() int64
- func (x *StringTags) GetCharLenGt() int64
- func (x *StringTags) GetCharLenGte() int64
- func (x *StringTags) GetCharLenLt() int64
- func (x *StringTags) GetCharLenLte() int64
- func (x *StringTags) GetCharLenNe() int64
- func (x *StringTags) GetCidr() bool
- func (x *StringTags) GetCidrv4() bool
- func (x *StringTags) GetCidrv6() bool
- func (x *StringTags) GetContains() string
- func (x *StringTags) GetContainsAny() string
- func (x *StringTags) GetDataUri() bool
- func (x *StringTags) GetDatetime() string
- func (x *StringTags) GetEmail() bool
- func (x *StringTags) GetEq() string
- func (x *StringTags) GetFqdn() bool
- func (x *StringTags) GetGt() string
- func (x *StringTags) GetGte() string
- func (x *StringTags) GetHexadecimal() bool
- func (x *StringTags) GetHostname() bool
- func (x *StringTags) GetHostnamePort() bool
- func (x *StringTags) GetHostnameRfc1123() bool
- func (x *StringTags) GetHtml() bool
- func (x *StringTags) GetHtmlEncoded() bool
- func (x *StringTags) GetIn() []string
- func (x *StringTags) GetIp() bool
- func (x *StringTags) GetIp4Addr() bool
- func (x *StringTags) GetIp6Addr() bool
- func (x *StringTags) GetIpAddr() bool
- func (x *StringTags) GetIpv4() bool
- func (x *StringTags) GetIpv6() bool
- func (x *StringTags) GetJson() bool
- func (x *StringTags) GetJwt() bool
- func (x *StringTags) GetLowercase() bool
- func (x *StringTags) GetLt() string
- func (x *StringTags) GetLte() string
- func (x *StringTags) GetMac() bool
- func (x *StringTags) GetNe() string
- func (x *StringTags) GetNoPrefix() string
- func (x *StringTags) GetNoSuffix() string
- func (x *StringTags) GetNotContains() string
- func (x *StringTags) GetNotContainsAny() string
- func (x *StringTags) GetNotIn() []string
- func (x *StringTags) GetNumber() bool
- func (x *StringTags) GetPrefix() string
- func (x *StringTags) GetPrintAscii() bool
- func (x *StringTags) GetRegex() string
- func (x *StringTags) GetSuffix() string
- func (x *StringTags) GetTcp4Addr() bool
- func (x *StringTags) GetTcp6Addr() bool
- func (x *StringTags) GetTcpAddr() bool
- func (x *StringTags) GetTimezone() bool
- func (x *StringTags) GetUdp4Addr() bool
- func (x *StringTags) GetUdp6Addr() bool
- func (x *StringTags) GetUdpAddr() bool
- func (x *StringTags) GetUnixAddr() bool
- func (x *StringTags) GetUnixCron() bool
- func (x *StringTags) GetUppercase() bool
- func (x *StringTags) GetUri() bool
- func (x *StringTags) GetUrl() bool
- func (x *StringTags) GetUrlEncoded() bool
- func (x *StringTags) GetUtf8() bool
- func (x *StringTags) GetUuid() bool
- func (x *StringTags) GetUuid1() bool
- func (x *StringTags) GetUuid3() bool
- func (x *StringTags) GetUuid4() bool
- func (x *StringTags) GetUuid5() bool
- func (*StringTags) ProtoMessage()
- func (x *StringTags) ProtoReflect() protoreflect.Message
- func (x *StringTags) Reset()
- func (x *StringTags) String() string
- type TagOptions
- func (*TagOptions) Descriptor() ([]byte, []int)deprecated
- func (x *TagOptions) GetBool() *BoolTags
- func (x *TagOptions) GetBytes() *BytesTags
- func (x *TagOptions) GetEnum() *EnumTags
- func (x *TagOptions) GetFloat() *FloatTags
- func (x *TagOptions) GetInt() *IntTags
- func (m *TagOptions) GetKind() isTagOptions_Kind
- func (x *TagOptions) GetMap() *MapTags
- func (x *TagOptions) GetMessage() *MessageTags
- func (x *TagOptions) GetOneof() *OneOfTags
- func (x *TagOptions) GetRepeated() *RepeatedTags
- func (x *TagOptions) GetString_() *StringTags
- func (x *TagOptions) GetUint() *UintTags
- func (*TagOptions) ProtoMessage()
- func (x *TagOptions) ProtoReflect() protoreflect.Message
- func (x *TagOptions) Reset()
- func (x *TagOptions) String() string
- type TagOptions_Bool
- type TagOptions_Bytes
- type TagOptions_Enum
- type TagOptions_Float
- type TagOptions_Int
- type TagOptions_Map
- type TagOptions_Message
- type TagOptions_Oneof
- type TagOptions_Repeated
- type TagOptions_String_
- type TagOptions_Uint
- type UintTags
- func (*UintTags) Descriptor() ([]byte, []int)deprecated
- func (x *UintTags) GetEq() uint64
- func (x *UintTags) GetGt() uint64
- func (x *UintTags) GetGte() uint64
- func (x *UintTags) GetIn() []uint64
- func (x *UintTags) GetLt() uint64
- func (x *UintTags) GetLte() uint64
- func (x *UintTags) GetNe() uint64
- func (x *UintTags) GetNotIn() []uint64
- func (*UintTags) ProtoMessage()
- func (x *UintTags) ProtoReflect() protoreflect.Message
- func (x *UintTags) Reset()
- func (x *UintTags) String() string
- type ValidOptions
- func (*ValidOptions) Descriptor() ([]byte, []int)deprecated
- func (x *ValidOptions) GetCheckIf() *CheckIf
- func (x *ValidOptions) GetTags() *TagOptions
- func (*ValidOptions) ProtoMessage()
- func (x *ValidOptions) ProtoReflect() protoreflect.Message
- func (x *ValidOptions) Reset()
- func (x *ValidOptions) String() string
Constants ¶
This section is empty.
Variables ¶
var (
// optional validator.ValidOptions field = 65020;
E_Field = &file_validator_proto_extTypes[0]
)
Extension fields to descriptorpb.FieldOptions.
var (
// optional validator.ValidOptions oneof = 65031;
E_Oneof = &file_validator_proto_extTypes[1]
)
Extension fields to descriptorpb.OneofOptions.
var File_validator_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BoolTags ¶
type BoolTags struct { // eq specifies that this field must be exactly the specified value Eq *bool `protobuf:"varint,3,opt,name=eq,proto3,oneof" json:"eq,omitempty"` // contains filtered or unexported fields }
func (*BoolTags) Descriptor
deprecated
func (*BoolTags) ProtoMessage ¶
func (*BoolTags) ProtoMessage()
func (*BoolTags) ProtoReflect ¶
func (x *BoolTags) ProtoReflect() protoreflect.Message
type BytesTags ¶
type BytesTags struct { // len_eq specifies that this field must be equal to the specified number of LenEq *int64 `protobuf:"varint,3,opt,name=len_eq,json=lenEq,proto3,oneof" json:"len_eq,omitempty"` // len_ne specifies that this field must not be equal to the specified number of LenNe *int64 `protobuf:"varint,4,opt,name=len_ne,json=lenNe,proto3,oneof" json:"len_ne,omitempty"` // len_lt specifies that this field must be less than the specified number of LenLt *int64 `protobuf:"varint,5,opt,name=len_lt,json=lenLt,proto3,oneof" json:"len_lt,omitempty"` // len_gt specifies that this field must be greater than the specified number of LenGt *int64 `protobuf:"varint,6,opt,name=len_gt,json=lenGt,proto3,oneof" json:"len_gt,omitempty"` // len_lte specifies that this field must be less than or equal to the specified number of LenLte *int64 `protobuf:"varint,7,opt,name=len_lte,json=lenLte,proto3,oneof" json:"len_lte,omitempty"` // len_gte specifies that this field must be greater than or equal to the specified number of LenGte *int64 `protobuf:"varint,8,opt,name=len_gte,json=lenGte,proto3,oneof" json:"len_gte,omitempty"` // contains filtered or unexported fields }
BytesRules describe the constraints applied to `bytes` values
func (*BytesTags) Descriptor
deprecated
func (*BytesTags) ProtoMessage ¶
func (*BytesTags) ProtoMessage()
func (*BytesTags) ProtoReflect ¶
func (x *BytesTags) ProtoReflect() protoreflect.Message
type CheckIf ¶
type CheckIf struct { Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` // the name of field. Tags *TagOptions `protobuf:"bytes,2,opt,name=tags,proto3" json:"tags,omitempty"` // contains filtered or unexported fields }
func (*CheckIf) Descriptor
deprecated
func (*CheckIf) GetTags ¶
func (x *CheckIf) GetTags() *TagOptions
func (*CheckIf) ProtoMessage ¶
func (*CheckIf) ProtoMessage()
func (*CheckIf) ProtoReflect ¶
func (x *CheckIf) ProtoReflect() protoreflect.Message
type EnumTags ¶
type EnumTags struct { // eq specifies that this field must be equal to the specified value. Eq *int32 `protobuf:"varint,3,opt,name=eq,proto3,oneof" json:"eq,omitempty"` // ne specifies that this field must be not equal to the specified value. Ne *int32 `protobuf:"varint,4,opt,name=ne,proto3,oneof" json:"ne,omitempty"` // lt specifies that this field must be less than the specified value. Lt *int32 `protobuf:"varint,5,opt,name=lt,proto3,oneof" json:"lt,omitempty"` // gt specifies that this field must be greater than the specified value. Gt *int32 `protobuf:"varint,6,opt,name=gt,proto3,oneof" json:"gt,omitempty"` // lte specifies that this field must be less than or equal to the specified value. Lte *int32 `protobuf:"varint,7,opt,name=lte,proto3,oneof" json:"lte,omitempty"` // gte specifies that this field must be greater than or equal to the specified value. Gte *int32 `protobuf:"varint,8,opt,name=gte,proto3,oneof" json:"gte,omitempty"` // in specifies that this field must be in the specified value lists. In []int32 `protobuf:"varint,9,rep,packed,name=in,proto3" json:"in,omitempty"` // not_in specifies that this field must not be in the specified value lists. NotIn []int32 `protobuf:"varint,10,rep,packed,name=not_in,json=notIn,proto3" json:"not_in,omitempty"` // in_enums specifies that this field must be a valid enum number. InEnums *bool `protobuf:"varint,11,opt,name=in_enums,json=inEnums,proto3,oneof" json:"in_enums,omitempty"` // contains filtered or unexported fields }
func (*EnumTags) Descriptor
deprecated
func (*EnumTags) GetInEnums ¶
func (*EnumTags) ProtoMessage ¶
func (*EnumTags) ProtoMessage()
func (*EnumTags) ProtoReflect ¶
func (x *EnumTags) ProtoReflect() protoreflect.Message
type FloatTags ¶
type FloatTags struct { Eq *float64 `protobuf:"fixed64,3,opt,name=eq,proto3,oneof" json:"eq,omitempty"` Ne *float64 `protobuf:"fixed64,4,opt,name=ne,proto3,oneof" json:"ne,omitempty"` Lt *float64 `protobuf:"fixed64,5,opt,name=lt,proto3,oneof" json:"lt,omitempty"` Gt *float64 `protobuf:"fixed64,6,opt,name=gt,proto3,oneof" json:"gt,omitempty"` Lte *float64 `protobuf:"fixed64,7,opt,name=lte,proto3,oneof" json:"lte,omitempty"` Gte *float64 `protobuf:"fixed64,8,opt,name=gte,proto3,oneof" json:"gte,omitempty"` In []float64 `protobuf:"fixed64,9,rep,packed,name=in,proto3" json:"in,omitempty"` NotIn []float64 `protobuf:"fixed64,10,rep,packed,name=not_in,json=notIn,proto3" json:"not_in,omitempty"` // contains filtered or unexported fields }
FloatOptions describe the constraints applied to the values type of `float` and `double`.
func (*FloatTags) Descriptor
deprecated
func (*FloatTags) ProtoMessage ¶
func (*FloatTags) ProtoMessage()
func (*FloatTags) ProtoReflect ¶
func (x *FloatTags) ProtoReflect() protoreflect.Message
type IntTags ¶
type IntTags struct { // eq specifies that this field must be equal to the specified value. Eq *int64 `protobuf:"varint,3,opt,name=eq,proto3,oneof" json:"eq,omitempty"` // ne specifies that this field must be not equal to the specified value. Ne *int64 `protobuf:"varint,4,opt,name=ne,proto3,oneof" json:"ne,omitempty"` // lt specifies that this field must be less than the specified value. Lt *int64 `protobuf:"varint,5,opt,name=lt,proto3,oneof" json:"lt,omitempty"` // gt specifies that this field must be greater than the specified value. Gt *int64 `protobuf:"varint,6,opt,name=gt,proto3,oneof" json:"gt,omitempty"` // lte specifies that this field must be less than or equal to the specified value. Lte *int64 `protobuf:"varint,7,opt,name=lte,proto3,oneof" json:"lte,omitempty"` // gte specifies that this field must be greater than or equal to the specified value. Gte *int64 `protobuf:"varint,8,opt,name=gte,proto3,oneof" json:"gte,omitempty"` // in specifies that this field must be in the specified value lists. In []int64 `protobuf:"varint,9,rep,packed,name=in,proto3" json:"in,omitempty"` // not_in specifies that this field must not be in the specified value lists. NotIn []int64 `protobuf:"varint,10,rep,packed,name=not_in,json=notIn,proto3" json:"not_in,omitempty"` // contains filtered or unexported fields }
IntOptions describe the constraints applied to the values type of `int32`, `int64`, `sint32`, `sint64`, `sfixed32`, `sfixed64`.
func (*IntTags) Descriptor
deprecated
func (*IntTags) ProtoMessage ¶
func (*IntTags) ProtoMessage()
func (*IntTags) ProtoReflect ¶
func (x *IntTags) ProtoReflect() protoreflect.Message
type MapTags ¶
type MapTags struct { // not_null specifies that this field must be set NotNull *bool `protobuf:"varint,2,opt,name=not_null,json=notNull,proto3,oneof" json:"not_null,omitempty"` // len_eq specifies that this field must be equal to the specified number of LenEq *int64 `protobuf:"varint,3,opt,name=len_eq,json=lenEq,proto3,oneof" json:"len_eq,omitempty"` // len_ne specifies that this field must not be equal to the specified number of LenNe *int64 `protobuf:"varint,4,opt,name=len_ne,json=lenNe,proto3,oneof" json:"len_ne,omitempty"` // len_lt specifies that this field must be less than the specified number of LenLt *int64 `protobuf:"varint,5,opt,name=len_lt,json=lenLt,proto3,oneof" json:"len_lt,omitempty"` // len_gt specifies that this field must be greater than the specified number of LenGt *int64 `protobuf:"varint,6,opt,name=len_gt,json=lenGt,proto3,oneof" json:"len_gt,omitempty"` // len_lte specifies that this field must be less than or equal to the specified number of LenLte *int64 `protobuf:"varint,7,opt,name=len_lte,json=lenLte,proto3,oneof" json:"len_lte,omitempty"` // len_gte specifies that this field must be greater than or equal to the specified number of LenGte *int64 `protobuf:"varint,8,opt,name=len_gte,json=lenGte,proto3,oneof" json:"len_gte,omitempty"` // key specifies the constraints to be applied to each key in the field. Key *TagOptions `protobuf:"bytes,11,opt,name=key,proto3" json:"key,omitempty"` // value 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. Value *TagOptions `protobuf:"bytes,12,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*MapTags) Descriptor
deprecated
func (*MapTags) GetKey ¶
func (x *MapTags) GetKey() *TagOptions
func (*MapTags) GetNotNull ¶
func (*MapTags) GetValue ¶
func (x *MapTags) GetValue() *TagOptions
func (*MapTags) ProtoMessage ¶
func (*MapTags) ProtoMessage()
func (*MapTags) ProtoReflect ¶
func (x *MapTags) ProtoReflect() protoreflect.Message
type MessageTags ¶
type MessageTags struct { // not_null specifies that this field must be set NotNull *bool `protobuf:"varint,2,opt,name=not_null,json=notNull,proto3,oneof" json:"not_null,omitempty"` // skip specifies that the validation option of this field should not be evaluated Skip *bool `protobuf:"varint,3,opt,name=skip,proto3,oneof" json:"skip,omitempty"` // contains filtered or unexported fields }
func (*MessageTags) Descriptor
deprecated
func (*MessageTags) Descriptor() ([]byte, []int)
Deprecated: Use MessageTags.ProtoReflect.Descriptor instead.
func (*MessageTags) GetNotNull ¶
func (x *MessageTags) GetNotNull() bool
func (*MessageTags) GetSkip ¶
func (x *MessageTags) GetSkip() bool
func (*MessageTags) ProtoMessage ¶
func (*MessageTags) ProtoMessage()
func (*MessageTags) ProtoReflect ¶
func (x *MessageTags) ProtoReflect() protoreflect.Message
func (*MessageTags) Reset ¶
func (x *MessageTags) Reset()
func (*MessageTags) String ¶
func (x *MessageTags) String() string
type OneOfTags ¶
type OneOfTags struct { // not_null ensures that exactly one the field options in a oneof is set; // validation fails if no fields in the oneof are set. NotNull *bool `protobuf:"varint,1,opt,name=not_null,json=notNull,proto3,oneof" json:"not_null,omitempty"` // contains filtered or unexported fields }
OneOfOptions describe the constraints applied to the values type of oneof.
func (*OneOfTags) Descriptor
deprecated
func (*OneOfTags) GetNotNull ¶
func (*OneOfTags) ProtoMessage ¶
func (*OneOfTags) ProtoMessage()
func (*OneOfTags) ProtoReflect ¶
func (x *OneOfTags) ProtoReflect() protoreflect.Message
type RepeatedTags ¶
type RepeatedTags struct { // not_null specifies that this field must be set NotNull *bool `protobuf:"varint,2,opt,name=not_null,json=notNull,proto3,oneof" json:"not_null,omitempty"` // len_eq specifies that this field must be equal to the specified number of LenEq *int64 `protobuf:"varint,3,opt,name=len_eq,json=lenEq,proto3,oneof" json:"len_eq,omitempty"` // len_ne specifies that this field must not be equal to the specified number of LenNe *int64 `protobuf:"varint,4,opt,name=len_ne,json=lenNe,proto3,oneof" json:"len_ne,omitempty"` // len_lt specifies that this field must be less than the specified number of LenLt *int64 `protobuf:"varint,5,opt,name=len_lt,json=lenLt,proto3,oneof" json:"len_lt,omitempty"` // len_gt specifies that this field must be greater than the specified number of LenGt *int64 `protobuf:"varint,6,opt,name=len_gt,json=lenGt,proto3,oneof" json:"len_gt,omitempty"` // len_lte specifies that this field must be less than or equal to the specified number of LenLte *int64 `protobuf:"varint,7,opt,name=len_lte,json=lenLte,proto3,oneof" json:"len_lte,omitempty"` // len_gte specifies that this field must be greater than or equal to the specified number of LenGte *int64 `protobuf:"varint,8,opt,name=len_gte,json=lenGte,proto3,oneof" json:"len_gte,omitempty"` // Unique specifies that all elements in this field must be unique. // For message types, only check the pointer address is unique(not its fields). Unique *bool `protobuf:"varint,10,opt,name=unique,proto3,oneof" 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. Item *TagOptions `protobuf:"bytes,11,opt,name=item,proto3" json:"item,omitempty"` // contains filtered or unexported fields }
func (*RepeatedTags) Descriptor
deprecated
func (*RepeatedTags) Descriptor() ([]byte, []int)
Deprecated: Use RepeatedTags.ProtoReflect.Descriptor instead.
func (*RepeatedTags) GetItem ¶
func (x *RepeatedTags) GetItem() *TagOptions
func (*RepeatedTags) GetLenEq ¶
func (x *RepeatedTags) GetLenEq() int64
func (*RepeatedTags) GetLenGt ¶
func (x *RepeatedTags) GetLenGt() int64
func (*RepeatedTags) GetLenGte ¶
func (x *RepeatedTags) GetLenGte() int64
func (*RepeatedTags) GetLenLt ¶
func (x *RepeatedTags) GetLenLt() int64
func (*RepeatedTags) GetLenLte ¶
func (x *RepeatedTags) GetLenLte() int64
func (*RepeatedTags) GetLenNe ¶
func (x *RepeatedTags) GetLenNe() int64
func (*RepeatedTags) GetNotNull ¶
func (x *RepeatedTags) GetNotNull() bool
func (*RepeatedTags) GetUnique ¶
func (x *RepeatedTags) GetUnique() bool
func (*RepeatedTags) ProtoMessage ¶
func (*RepeatedTags) ProtoMessage()
func (*RepeatedTags) ProtoReflect ¶
func (x *RepeatedTags) ProtoReflect() protoreflect.Message
func (*RepeatedTags) Reset ¶
func (x *RepeatedTags) Reset()
func (*RepeatedTags) String ¶
func (x *RepeatedTags) String() string
type StringTags ¶
type StringTags struct { // eq specifies that this field must be equal to the specified value. Eq *string `protobuf:"bytes,3,opt,name=eq,proto3,oneof" json:"eq,omitempty"` // ne specifies that this field must be not equal to the specified value. Ne *string `protobuf:"bytes,4,opt,name=ne,proto3,oneof" json:"ne,omitempty"` // lt specifies that this field must be less than the specified value. Lt *string `protobuf:"bytes,5,opt,name=lt,proto3,oneof" json:"lt,omitempty"` // gt specifies that this field must be greater than the specified value. Gt *string `protobuf:"bytes,6,opt,name=gt,proto3,oneof" json:"gt,omitempty"` // lte specifies that this field must be less than or equal to the specified value. Lte *string `protobuf:"bytes,7,opt,name=lte,proto3,oneof" json:"lte,omitempty"` // gte specifies that this field must be greater than or equal to the specified value. Gte *string `protobuf:"bytes,8,opt,name=gte,proto3,oneof" json:"gte,omitempty"` // in specifies that this field must be in the specified value lists. In []string `protobuf:"bytes,9,rep,name=in,proto3" json:"in,omitempty"` // not_in specifies that this field must not be in the specified value lists. NotIn []string `protobuf:"bytes,10,rep,name=not_in,json=notIn,proto3" json:"not_in,omitempty"` // char_len_eq specifies that this field must be equal to the specified number of // characters (Unicode code points). Note that the number of // characters may differ from the number of bytes in the string. CharLenEq *int64 `protobuf:"varint,20,opt,name=char_len_eq,json=charLenEq,proto3,oneof" json:"char_len_eq,omitempty"` // char_len_ne specifies that this field must not be equal to the specified number of // characters (Unicode code points). Note that the number of // characters may differ from the number of bytes in the string. CharLenNe *int64 `protobuf:"varint,21,opt,name=char_len_ne,json=charLenNe,proto3,oneof" json:"char_len_ne,omitempty"` // char_len_gt specifies that this field must be greater than the specified number of // characters (Unicode code points). Note that the number of // characters may differ from the number of bytes in the string. CharLenGt *int64 `protobuf:"varint,22,opt,name=char_len_gt,json=charLenGt,proto3,oneof" json:"char_len_gt,omitempty"` // char_len_lt specifies that this field must be less than the specified number of // characters (Unicode code points). Note that the number of // characters may differ from the number of bytes in the string. CharLenLt *int64 `protobuf:"varint,23,opt,name=char_len_lt,json=charLenLt,proto3,oneof" json:"char_len_lt,omitempty"` // char_len_gte specifies that this field must be greater than or equal to the specified number of // characters (Unicode code points). Note that the number of // characters may differ from the number of bytes in the string. CharLenGte *int64 `protobuf:"varint,24,opt,name=char_len_gte,json=charLenGte,proto3,oneof" json:"char_len_gte,omitempty"` // char_len_lte specifies that this field must be less than or equal to the specified number of // characters (Unicode code points). Note that the number of // characters may differ from the number of bytes in the string. CharLenLte *int64 `protobuf:"varint,25,opt,name=char_len_lte,json=charLenLte,proto3,oneof" json:"char_len_lte,omitempty"` // byte_len_eq specifies that this field must be equal to the specified number of bytes. ByteLenEq *int64 `protobuf:"varint,30,opt,name=byte_len_eq,json=byteLenEq,proto3,oneof" json:"byte_len_eq,omitempty"` // byte_len_ne specifies that this field must not be equal to the specified number of bytes. ByteLenNe *int64 `protobuf:"varint,31,opt,name=byte_len_ne,json=byteLenNe,proto3,oneof" json:"byte_len_ne,omitempty"` // byte_len_gt specifies that this field must be greater than the specified number of bytes. ByteLenGt *int64 `protobuf:"varint,32,opt,name=byte_len_gt,json=byteLenGt,proto3,oneof" json:"byte_len_gt,omitempty"` // byte_len_lt specifies that this field must be less than the specified number of bytes. ByteLenLt *int64 `protobuf:"varint,33,opt,name=byte_len_lt,json=byteLenLt,proto3,oneof" json:"byte_len_lt,omitempty"` // byte_len_gte specifies that this field must be greater than or equal to the specified number of bytes. ByteLenGte *int64 `protobuf:"varint,34,opt,name=byte_len_gte,json=byteLenGte,proto3,oneof" json:"byte_len_gte,omitempty"` // byte_len_lte specifies that this field must be less than or equal to the specified number of bytes. ByteLenLte *int64 `protobuf:"varint,35,opt,name=byte_len_lte,json=byteLenLte,proto3,oneof" json:"byte_len_lte,omitempty"` // regex specifies that this field must be math a RE2-syntax regex. Regex *string `protobuf:"bytes,40,opt,name=regex,proto3,oneof" json:"regex,omitempty"` // prefix specifies that this field must be start with the specified prefix. Prefix *string `protobuf:"bytes,41,opt,name=prefix,proto3,oneof" json:"prefix,omitempty"` // no_prefix specifies that this field must not be start with the specified prefix. NoPrefix *string `protobuf:"bytes,42,opt,name=no_prefix,json=noPrefix,proto3,oneof" json:"no_prefix,omitempty"` // prefix specifies that this field must be end with the specified suffix. Suffix *string `protobuf:"bytes,43,opt,name=suffix,proto3,oneof" json:"suffix,omitempty"` // prefix specifies that this field must not be end with the specified suffix. NoSuffix *string `protobuf:"bytes,44,opt,name=no_suffix,json=noSuffix,proto3,oneof" json:"no_suffix,omitempty"` // prefix specifies that this field must be contains the specified value. Contains *string `protobuf:"bytes,45,opt,name=contains,proto3,oneof" json:"contains,omitempty"` // prefix specifies that this field must not be contains the specified value. NotContains *string `protobuf:"bytes,46,opt,name=not_contains,json=notContains,proto3,oneof" json:"not_contains,omitempty"` // prefix specifies that this field must be contains the specified any value. ContainsAny *string `protobuf:"bytes,47,opt,name=contains_any,json=containsAny,proto3,oneof" json:"contains_any,omitempty"` // prefix specifies that this field must not be contains the specified any value. NotContainsAny *string `protobuf:"bytes,48,opt,name=not_contains_any,json=notContainsAny,proto3,oneof" json:"not_contains_any,omitempty"` // utf8 specifies that the field must be utf8 codec string. Utf8 *bool `protobuf:"varint,81,opt,name=utf8,proto3,oneof" json:"utf8,omitempty"` // ascii specifies that the field must be a ASCII characters string. Ascii *bool `protobuf:"varint,71,opt,name=ascii,proto3,oneof" json:"ascii,omitempty"` // print_ascii specifies that the field must be a printable ASCII string. PrintAscii *bool `protobuf:"varint,72,opt,name=print_ascii,json=printAscii,proto3,oneof" json:"print_ascii,omitempty"` // boolean specifies that the field must be a boolean string. Boolean *bool `protobuf:"varint,73,opt,name=boolean,proto3,oneof" json:"boolean,omitempty"` // lowercase specifies that the field must be a lowercase string. Lowercase *bool `protobuf:"varint,74,opt,name=lowercase,proto3,oneof" json:"lowercase,omitempty"` // uppercase specifies that the field must be a uppercase string. Uppercase *bool `protobuf:"varint,75,opt,name=uppercase,proto3,oneof" json:"uppercase,omitempty"` // alpha specifies that the field must be a alpha characters string. Alpha *bool `protobuf:"varint,76,opt,name=alpha,proto3,oneof" json:"alpha,omitempty"` // a ~ z and A ~ Z // number specifies that the field must be a number characters string. Number *bool `protobuf:"varint,77,opt,name=number,proto3,oneof" json:"number,omitempty"` // 0 ~ 9 // alpha_number specifies that the field must be a alphanumeric characters string. AlphaNumber *bool `protobuf:"varint,78,opt,name=alpha_number,json=alphaNumber,proto3,oneof" json:"alpha_number,omitempty"` // 0 ~ 9, a ~ z and A ~ Z // ip specifies that the field must be a valid IP (v4 or v6) address. Ip *bool `protobuf:"varint,101,opt,name=ip,proto3,oneof" json:"ip,omitempty"` // ipv4 specifies that the field must be a valid IPv4 address. Ipv4 *bool `protobuf:"varint,102,opt,name=ipv4,proto3,oneof" json:"ipv4,omitempty"` // ipv6 specifies that the field must be a valid IPv6 address. Ipv6 *bool `protobuf:"varint,103,opt,name=ipv6,proto3,oneof" json:"ipv6,omitempty"` // ip_addr specifies that the field must be a resolvable IP address. IpAddr *bool `protobuf:"varint,104,opt,name=ip_addr,json=ipAddr,proto3,oneof" json:"ip_addr,omitempty"` // ip4_addr specifies that the field must be a resolvable Ipv4 address. Ip4Addr *bool `protobuf:"varint,105,opt,name=ip4_addr,json=ip4Addr,proto3,oneof" json:"ip4_addr,omitempty"` // ip6_addr specifies that the field must be a resolvable Ipv6 address. Ip6Addr *bool `protobuf:"varint,106,opt,name=ip6_addr,json=ip6Addr,proto3,oneof" json:"ip6_addr,omitempty"` // cidr specifies that the field must be a valid CIDR notation. Cidr *bool `protobuf:"varint,107,opt,name=cidr,proto3,oneof" json:"cidr,omitempty"` // cidrv4 specifies that the field must be a valid CIDR notation for an IPv4 address. Cidrv4 *bool `protobuf:"varint,108,opt,name=cidrv4,proto3,oneof" json:"cidrv4,omitempty"` // cidrv6 specifies that the field must be a valid CIDR notation for an IPv6 address. Cidrv6 *bool `protobuf:"varint,109,opt,name=cidrv6,proto3,oneof" json:"cidrv6,omitempty"` // tcp_addr specifies that the field must be a valid TCP address. TcpAddr *bool `protobuf:"varint,111,opt,name=tcp_addr,json=tcpAddr,proto3,oneof" json:"tcp_addr,omitempty"` // tcp4_addr specifies that the field must be a valid IPv4 TCP address. Tcp4Addr *bool `protobuf:"varint,112,opt,name=tcp4_addr,json=tcp4Addr,proto3,oneof" json:"tcp4_addr,omitempty"` // tcp6_addr specifies that the field must be a valid IPv6 TCP address. Tcp6Addr *bool `protobuf:"varint,113,opt,name=tcp6_addr,json=tcp6Addr,proto3,oneof" json:"tcp6_addr,omitempty"` // udp_addr specifies that the field must be a valid UDP address. UdpAddr *bool `protobuf:"varint,114,opt,name=udp_addr,json=udpAddr,proto3,oneof" json:"udp_addr,omitempty"` // udp4_addr specifies that the field must be a valid UDP v4 address. Udp4Addr *bool `protobuf:"varint,115,opt,name=udp4_addr,json=udp4Addr,proto3,oneof" json:"udp4_addr,omitempty"` // udp6_addr specifies that the field must be a valid UDP v6 address. Udp6Addr *bool `protobuf:"varint,116,opt,name=udp6_addr,json=udp6Addr,proto3,oneof" json:"udp6_addr,omitempty"` // mac specifies that the field must be a valid MAC address. Mac *bool `protobuf:"varint,110,opt,name=mac,proto3,oneof" json:"mac,omitempty"` // unix_addr specifies that the field must be a valid UNIX address. UnixAddr *bool `protobuf:"varint,117,opt,name=unix_addr,json=unixAddr,proto3,oneof" json:"unix_addr,omitempty"` // hostname specified that the field must be valid hostname as defined by RFC 952. Hostname *bool `protobuf:"varint,118,opt,name=hostname,proto3,oneof" json:"hostname,omitempty"` // hostname specified that the field must be valid hostname as defined by RFC 1123. HostnameRfc1123 *bool `protobuf:"varint,119,opt,name=hostname_rfc1123,json=hostnameRfc1123,proto3,oneof" json:"hostname_rfc1123,omitempty"` // hostname_port specifies that the field must be a string format with hostname and port. HostnamePort *bool `protobuf:"varint,120,opt,name=hostname_port,json=hostnamePort,proto3,oneof" json:"hostname_port,omitempty"` // data_uri specifies that the field must be a string in DATA URI format. DataUri *bool `protobuf:"varint,121,opt,name=data_uri,json=dataUri,proto3,oneof" json:"data_uri,omitempty"` // fqdn specifies that the field must be a string in FQDN format. Fqdn *bool `protobuf:"varint,122,opt,name=fqdn,proto3,oneof" json:"fqdn,omitempty"` // uri specifies that the field must be a string in URI format. Uri *bool `protobuf:"varint,123,opt,name=uri,proto3,oneof" json:"uri,omitempty"` // url specifies that the field must be a string in URL format. Url *bool `protobuf:"varint,124,opt,name=url,proto3,oneof" json:"url,omitempty"` // url_encoded specifies that the field must be a string in URL encoded format. UrlEncoded *bool `protobuf:"varint,125,opt,name=url_encoded,json=urlEncoded,proto3,oneof" json:"url_encoded,omitempty"` // unix_cron specifies the field must be a valid standard UNIX-Style crontab expression. UnixCron *bool `protobuf:"varint,80,opt,name=unix_cron,json=unixCron,proto3,oneof" json:"unix_cron,omitempty"` // email specifies that the field must be a valid email address as defined by RFC 5322. Email *bool `protobuf:"varint,140,opt,name=email,proto3,oneof" json:"email,omitempty"` // json specifies that the field must be a string in JSON format. Json *bool `protobuf:"varint,141,opt,name=json,proto3,oneof" json:"json,omitempty"` // jwt specifies that the field must be a string in JWT format. Jwt *bool `protobuf:"varint,142,opt,name=jwt,proto3,oneof" json:"jwt,omitempty"` // html specifies that the field must be a string in HTML format. Html *bool `protobuf:"varint,143,opt,name=html,proto3,oneof" json:"html,omitempty"` // html_encoded specifies that the field must be a string in HTML encoded format. HtmlEncoded *bool `protobuf:"varint,144,opt,name=html_encoded,json=htmlEncoded,proto3,oneof" json:"html_encoded,omitempty"` // base64 specifies that the field must be a string in BASE64 format. Base64 *bool `protobuf:"varint,145,opt,name=base64,proto3,oneof" json:"base64,omitempty"` // base64_url specifies that the field must be a string in BASE64 URL format. Base64Url *bool `protobuf:"varint,146,opt,name=base64_url,json=base64Url,proto3,oneof" json:"base64_url,omitempty"` // hexadecimal specifies that the field must be a string in hexadecimal format. Hexadecimal *bool `protobuf:"varint,147,opt,name=hexadecimal,proto3,oneof" json:"hexadecimal,omitempty"` // datetime specifies that the field must be format with specified datetime layout. Datetime *string `protobuf:"bytes,148,opt,name=datetime,proto3,oneof" json:"datetime,omitempty"` // timezone specifies that the field must be a valid timezone. Timezone *bool `protobuf:"varint,149,opt,name=timezone,proto3,oneof" json:"timezone,omitempty"` // uuid specifies that the field must be a valid UUID. Uuid *bool `protobuf:"varint,150,opt,name=uuid,proto3,oneof" json:"uuid,omitempty"` // RFC4122 // uuid1 specifies that the field must be a valid version 1 UUID. Uuid1 *bool `protobuf:"varint,151,opt,name=uuid1,proto3,oneof" json:"uuid1,omitempty"` // RFC4122 // uuid3 specifies that the field must be a valid version 3 UUID. Uuid3 *bool `protobuf:"varint,152,opt,name=uuid3,proto3,oneof" json:"uuid3,omitempty"` // RFC4122 // uuid4 specifies that the field must be a valid version 4 UUID. Uuid4 *bool `protobuf:"varint,153,opt,name=uuid4,proto3,oneof" json:"uuid4,omitempty"` // RFC4122 // uuid5 specifies that the field must be a valid version 5 UUID. Uuid5 *bool `protobuf:"varint,154,opt,name=uuid5,proto3,oneof" json:"uuid5,omitempty"` // RFC4122 // contains filtered or unexported fields }
StringOptions describe the constraints applied to the values type of `string`.
func (*StringTags) Descriptor
deprecated
func (*StringTags) Descriptor() ([]byte, []int)
Deprecated: Use StringTags.ProtoReflect.Descriptor instead.
func (*StringTags) GetAlpha ¶
func (x *StringTags) GetAlpha() bool
func (*StringTags) GetAlphaNumber ¶
func (x *StringTags) GetAlphaNumber() bool
func (*StringTags) GetAscii ¶
func (x *StringTags) GetAscii() bool
func (*StringTags) GetBase64 ¶
func (x *StringTags) GetBase64() bool
func (*StringTags) GetBase64Url ¶
func (x *StringTags) GetBase64Url() bool
func (*StringTags) GetBoolean ¶
func (x *StringTags) GetBoolean() bool
func (*StringTags) GetByteLenEq ¶
func (x *StringTags) GetByteLenEq() int64
func (*StringTags) GetByteLenGt ¶
func (x *StringTags) GetByteLenGt() int64
func (*StringTags) GetByteLenGte ¶
func (x *StringTags) GetByteLenGte() int64
func (*StringTags) GetByteLenLt ¶
func (x *StringTags) GetByteLenLt() int64
func (*StringTags) GetByteLenLte ¶
func (x *StringTags) GetByteLenLte() int64
func (*StringTags) GetByteLenNe ¶
func (x *StringTags) GetByteLenNe() int64
func (*StringTags) GetCharLenEq ¶
func (x *StringTags) GetCharLenEq() int64
func (*StringTags) GetCharLenGt ¶
func (x *StringTags) GetCharLenGt() int64
func (*StringTags) GetCharLenGte ¶
func (x *StringTags) GetCharLenGte() int64
func (*StringTags) GetCharLenLt ¶
func (x *StringTags) GetCharLenLt() int64
func (*StringTags) GetCharLenLte ¶
func (x *StringTags) GetCharLenLte() int64
func (*StringTags) GetCharLenNe ¶
func (x *StringTags) GetCharLenNe() int64
func (*StringTags) GetCidr ¶
func (x *StringTags) GetCidr() bool
func (*StringTags) GetCidrv4 ¶
func (x *StringTags) GetCidrv4() bool
func (*StringTags) GetCidrv6 ¶
func (x *StringTags) GetCidrv6() bool
func (*StringTags) GetContains ¶
func (x *StringTags) GetContains() string
func (*StringTags) GetContainsAny ¶
func (x *StringTags) GetContainsAny() string
func (*StringTags) GetDataUri ¶
func (x *StringTags) GetDataUri() bool
func (*StringTags) GetDatetime ¶
func (x *StringTags) GetDatetime() string
func (*StringTags) GetEmail ¶
func (x *StringTags) GetEmail() bool
func (*StringTags) GetEq ¶
func (x *StringTags) GetEq() string
func (*StringTags) GetFqdn ¶
func (x *StringTags) GetFqdn() bool
func (*StringTags) GetGt ¶
func (x *StringTags) GetGt() string
func (*StringTags) GetGte ¶
func (x *StringTags) GetGte() string
func (*StringTags) GetHexadecimal ¶
func (x *StringTags) GetHexadecimal() bool
func (*StringTags) GetHostname ¶
func (x *StringTags) GetHostname() bool
func (*StringTags) GetHostnamePort ¶
func (x *StringTags) GetHostnamePort() bool
func (*StringTags) GetHostnameRfc1123 ¶
func (x *StringTags) GetHostnameRfc1123() bool
func (*StringTags) GetHtml ¶
func (x *StringTags) GetHtml() bool
func (*StringTags) GetHtmlEncoded ¶
func (x *StringTags) GetHtmlEncoded() bool
func (*StringTags) GetIn ¶
func (x *StringTags) GetIn() []string
func (*StringTags) GetIp ¶
func (x *StringTags) GetIp() bool
func (*StringTags) GetIp4Addr ¶
func (x *StringTags) GetIp4Addr() bool
func (*StringTags) GetIp6Addr ¶
func (x *StringTags) GetIp6Addr() bool
func (*StringTags) GetIpAddr ¶
func (x *StringTags) GetIpAddr() bool
func (*StringTags) GetIpv4 ¶
func (x *StringTags) GetIpv4() bool
func (*StringTags) GetIpv6 ¶
func (x *StringTags) GetIpv6() bool
func (*StringTags) GetJson ¶
func (x *StringTags) GetJson() bool
func (*StringTags) GetJwt ¶
func (x *StringTags) GetJwt() bool
func (*StringTags) GetLowercase ¶
func (x *StringTags) GetLowercase() bool
func (*StringTags) GetLt ¶
func (x *StringTags) GetLt() string
func (*StringTags) GetLte ¶
func (x *StringTags) GetLte() string
func (*StringTags) GetMac ¶
func (x *StringTags) GetMac() bool
func (*StringTags) GetNe ¶
func (x *StringTags) GetNe() string
func (*StringTags) GetNoPrefix ¶
func (x *StringTags) GetNoPrefix() string
func (*StringTags) GetNoSuffix ¶
func (x *StringTags) GetNoSuffix() string
func (*StringTags) GetNotContains ¶
func (x *StringTags) GetNotContains() string
func (*StringTags) GetNotContainsAny ¶
func (x *StringTags) GetNotContainsAny() string
func (*StringTags) GetNotIn ¶
func (x *StringTags) GetNotIn() []string
func (*StringTags) GetNumber ¶
func (x *StringTags) GetNumber() bool
func (*StringTags) GetPrefix ¶
func (x *StringTags) GetPrefix() string
func (*StringTags) GetPrintAscii ¶
func (x *StringTags) GetPrintAscii() bool
func (*StringTags) GetRegex ¶
func (x *StringTags) GetRegex() string
func (*StringTags) GetSuffix ¶
func (x *StringTags) GetSuffix() string
func (*StringTags) GetTcp4Addr ¶
func (x *StringTags) GetTcp4Addr() bool
func (*StringTags) GetTcp6Addr ¶
func (x *StringTags) GetTcp6Addr() bool
func (*StringTags) GetTcpAddr ¶
func (x *StringTags) GetTcpAddr() bool
func (*StringTags) GetTimezone ¶
func (x *StringTags) GetTimezone() bool
func (*StringTags) GetUdp4Addr ¶
func (x *StringTags) GetUdp4Addr() bool
func (*StringTags) GetUdp6Addr ¶
func (x *StringTags) GetUdp6Addr() bool
func (*StringTags) GetUdpAddr ¶
func (x *StringTags) GetUdpAddr() bool
func (*StringTags) GetUnixAddr ¶
func (x *StringTags) GetUnixAddr() bool
func (*StringTags) GetUnixCron ¶
func (x *StringTags) GetUnixCron() bool
func (*StringTags) GetUppercase ¶
func (x *StringTags) GetUppercase() bool
func (*StringTags) GetUri ¶
func (x *StringTags) GetUri() bool
func (*StringTags) GetUrl ¶
func (x *StringTags) GetUrl() bool
func (*StringTags) GetUrlEncoded ¶
func (x *StringTags) GetUrlEncoded() bool
func (*StringTags) GetUtf8 ¶
func (x *StringTags) GetUtf8() bool
func (*StringTags) GetUuid ¶
func (x *StringTags) GetUuid() bool
func (*StringTags) GetUuid1 ¶
func (x *StringTags) GetUuid1() bool
func (*StringTags) GetUuid3 ¶
func (x *StringTags) GetUuid3() bool
func (*StringTags) GetUuid4 ¶
func (x *StringTags) GetUuid4() bool
func (*StringTags) GetUuid5 ¶
func (x *StringTags) GetUuid5() bool
func (*StringTags) ProtoMessage ¶
func (*StringTags) ProtoMessage()
func (*StringTags) ProtoReflect ¶
func (x *StringTags) ProtoReflect() protoreflect.Message
func (*StringTags) Reset ¶
func (x *StringTags) Reset()
func (*StringTags) String ¶
func (x *StringTags) String() string
type TagOptions ¶
type TagOptions struct { // Types that are assignable to Kind: // *TagOptions_Oneof // *TagOptions_Float // *TagOptions_Int // *TagOptions_Uint // *TagOptions_String_ // *TagOptions_Bytes // *TagOptions_Bool // *TagOptions_Enum // *TagOptions_Message // *TagOptions_Repeated // *TagOptions_Map Kind isTagOptions_Kind `protobuf_oneof:"kind"` // contains filtered or unexported fields }
TagOptions encapsulates the options for each type of field. Depending on the field, the correct set should be used to ensure proper validations.
func (*TagOptions) Descriptor
deprecated
func (*TagOptions) Descriptor() ([]byte, []int)
Deprecated: Use TagOptions.ProtoReflect.Descriptor instead.
func (*TagOptions) GetBool ¶
func (x *TagOptions) GetBool() *BoolTags
func (*TagOptions) GetBytes ¶
func (x *TagOptions) GetBytes() *BytesTags
func (*TagOptions) GetEnum ¶
func (x *TagOptions) GetEnum() *EnumTags
func (*TagOptions) GetFloat ¶
func (x *TagOptions) GetFloat() *FloatTags
func (*TagOptions) GetInt ¶
func (x *TagOptions) GetInt() *IntTags
func (*TagOptions) GetKind ¶
func (m *TagOptions) GetKind() isTagOptions_Kind
func (*TagOptions) GetMap ¶
func (x *TagOptions) GetMap() *MapTags
func (*TagOptions) GetMessage ¶
func (x *TagOptions) GetMessage() *MessageTags
func (*TagOptions) GetOneof ¶
func (x *TagOptions) GetOneof() *OneOfTags
func (*TagOptions) GetRepeated ¶
func (x *TagOptions) GetRepeated() *RepeatedTags
func (*TagOptions) GetString_ ¶
func (x *TagOptions) GetString_() *StringTags
func (*TagOptions) GetUint ¶
func (x *TagOptions) GetUint() *UintTags
func (*TagOptions) ProtoMessage ¶
func (*TagOptions) ProtoMessage()
func (*TagOptions) ProtoReflect ¶
func (x *TagOptions) ProtoReflect() protoreflect.Message
func (*TagOptions) Reset ¶
func (x *TagOptions) Reset()
func (*TagOptions) String ¶
func (x *TagOptions) String() string
type TagOptions_Bool ¶
type TagOptions_Bool struct {
Bool *BoolTags `protobuf:"bytes,26,opt,name=bool,proto3,oneof"`
}
type TagOptions_Bytes ¶
type TagOptions_Bytes struct {
Bytes *BytesTags `protobuf:"bytes,25,opt,name=bytes,proto3,oneof"`
}
type TagOptions_Enum ¶
type TagOptions_Enum struct {
Enum *EnumTags `protobuf:"bytes,27,opt,name=enum,proto3,oneof"`
}
type TagOptions_Float ¶
type TagOptions_Float struct { // Basic Field Types Float *FloatTags `protobuf:"bytes,21,opt,name=float,proto3,oneof"` }
type TagOptions_Int ¶
type TagOptions_Int struct {
Int *IntTags `protobuf:"bytes,22,opt,name=int,proto3,oneof"`
}
type TagOptions_Map ¶
type TagOptions_Map struct {
Map *MapTags `protobuf:"bytes,30,opt,name=map,proto3,oneof"`
}
type TagOptions_Message ¶
type TagOptions_Message struct { // Complex Field Types Message *MessageTags `protobuf:"bytes,28,opt,name=message,proto3,oneof"` }
type TagOptions_Oneof ¶
type TagOptions_Oneof struct { // OneOf Field types Oneof *OneOfTags `protobuf:"bytes,20,opt,name=oneof,proto3,oneof"` }
type TagOptions_Repeated ¶
type TagOptions_Repeated struct {
Repeated *RepeatedTags `protobuf:"bytes,29,opt,name=repeated,proto3,oneof"`
}
type TagOptions_String_ ¶
type TagOptions_String_ struct {
String_ *StringTags `protobuf:"bytes,24,opt,name=string,proto3,oneof"`
}
type TagOptions_Uint ¶
type TagOptions_Uint struct {
Uint *UintTags `protobuf:"bytes,23,opt,name=uint,proto3,oneof"`
}
type UintTags ¶
type UintTags struct { // eq specifies that this field must be equal to the specified value. Eq *uint64 `protobuf:"varint,3,opt,name=eq,proto3,oneof" json:"eq,omitempty"` // ne specifies that this field must be not equal to the specified value. Ne *uint64 `protobuf:"varint,4,opt,name=ne,proto3,oneof" json:"ne,omitempty"` // lt specifies that this field must be less than the specified value. Lt *uint64 `protobuf:"varint,5,opt,name=lt,proto3,oneof" json:"lt,omitempty"` // gt specifies that this field must be greater than the specified value. Gt *uint64 `protobuf:"varint,6,opt,name=gt,proto3,oneof" json:"gt,omitempty"` // lte specifies that this field must be less than or equal to the specified value. Lte *uint64 `protobuf:"varint,7,opt,name=lte,proto3,oneof" json:"lte,omitempty"` // gte specifies that this field must be greater than or equal to the specified value. Gte *uint64 `protobuf:"varint,8,opt,name=gte,proto3,oneof" json:"gte,omitempty"` // in specifies that this field must be in the specified value lists. In []uint64 `protobuf:"varint,9,rep,packed,name=in,proto3" json:"in,omitempty"` // not_in specifies that this field must not be in the specified value lists. NotIn []uint64 `protobuf:"varint,10,rep,packed,name=not_in,json=notIn,proto3" json:"not_in,omitempty"` // contains filtered or unexported fields }
UintOptions describe the constraints applied to the values type of `uint32`, `uint64`, `fixed32`, `fixed64`.
func (*UintTags) Descriptor
deprecated
func (*UintTags) ProtoMessage ¶
func (*UintTags) ProtoMessage()
func (*UintTags) ProtoReflect ¶
func (x *UintTags) ProtoReflect() protoreflect.Message
type ValidOptions ¶
type ValidOptions struct { CheckIf *CheckIf `protobuf:"bytes,1,opt,name=check_if,json=checkIf,proto3" json:"check_if,omitempty"` Tags *TagOptions `protobuf:"bytes,2,opt,name=tags,proto3" json:"tags,omitempty"` // contains filtered or unexported fields }
func (*ValidOptions) Descriptor
deprecated
func (*ValidOptions) Descriptor() ([]byte, []int)
Deprecated: Use ValidOptions.ProtoReflect.Descriptor instead.
func (*ValidOptions) GetCheckIf ¶
func (x *ValidOptions) GetCheckIf() *CheckIf
func (*ValidOptions) GetTags ¶
func (x *ValidOptions) GetTags() *TagOptions
func (*ValidOptions) ProtoMessage ¶
func (*ValidOptions) ProtoMessage()
func (*ValidOptions) ProtoReflect ¶
func (x *ValidOptions) ProtoReflect() protoreflect.Message
func (*ValidOptions) Reset ¶
func (x *ValidOptions) Reset()
func (*ValidOptions) String ¶
func (x *ValidOptions) String() string