Documentation
¶
Index ¶
- func FieldRules(desc protoreflect.FieldDescriptor) *validate.FieldRules
- func MessageRules(desc protoreflect.MessageDescriptor) *validate.MessageRules
- func OneofRules(desc protoreflect.OneofDescriptor) *validate.OneofRules
- func PredefinedRules(desc protoreflect.FieldDescriptor) *validate.PredefinedRules
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FieldRules ¶ added in v0.10.0
func FieldRules(desc protoreflect.FieldDescriptor) *validate.FieldRules
FieldRules returns the FieldRules option set for the FieldDescriptor.
func MessageRules ¶ added in v0.10.0
func MessageRules(desc protoreflect.MessageDescriptor) *validate.MessageRules
MessageRules returns the MessageRules option set for the MessageDescriptor.
func OneofRules ¶ added in v0.10.0
func OneofRules(desc protoreflect.OneofDescriptor) *validate.OneofRules
OneofRules returns the OneofRules option set for the OneofDescriptor.
func PredefinedRules ¶ added in v0.10.0
func PredefinedRules(desc protoreflect.FieldDescriptor) *validate.PredefinedRules
PredefinedRules returns the PredefinedRules option set for the FieldDescriptor. Note that this value is only meaningful if it is set on a field or extension of a field rule message. This method is provided for convenience.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.