Documentation
¶
Index ¶
- func FieldConstraints(desc protoreflect.FieldDescriptor) *validate.FieldConstraints
- func MessageConstraints(desc protoreflect.MessageDescriptor) *validate.MessageConstraints
- func OneofConstraints(desc protoreflect.OneofDescriptor) *validate.OneofConstraints
- func PredefinedConstraints(desc protoreflect.FieldDescriptor) *validate.PredefinedConstraints
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FieldConstraints ¶
func FieldConstraints(desc protoreflect.FieldDescriptor) *validate.FieldConstraints
FieldConstraints returns the FieldConstraints option set for the FieldDescriptor.
func MessageConstraints ¶
func MessageConstraints(desc protoreflect.MessageDescriptor) *validate.MessageConstraints
MessageConstraints returns the MessageConstraints option set for the MessageDescriptor.
func OneofConstraints ¶
func OneofConstraints(desc protoreflect.OneofDescriptor) *validate.OneofConstraints
OneofConstraints returns the OneofConstraints option set for the OneofDescriptor.
func PredefinedConstraints ¶
func PredefinedConstraints(desc protoreflect.FieldDescriptor) *validate.PredefinedConstraints
PredefinedConstraints returns the PredefinedConstraints 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.