Documentation
¶
Index ¶
- Variables
- type FieldRefinement
- func (*FieldRefinement) Descriptor() ([]byte, []int)deprecated
- func (x *FieldRefinement) GetExpr() string
- func (x *FieldRefinement) GetMapKeyExpr() string
- func (x *FieldRefinement) GetMapValueExpr() string
- func (x *FieldRefinement) GetRecurse() bool
- func (*FieldRefinement) ProtoMessage()
- func (x *FieldRefinement) ProtoReflect() protoreflect.Message
- func (x *FieldRefinement) Reset()
- func (x *FieldRefinement) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 51234 is retained from the research implementation. Changing it would // silently reinterpret existing descriptors, so it is part of the wire // contract. // // optional candace.liquid.v1.FieldRefinement field = 51234; E_Field = &file_liquidproto_v1_refinement_proto_extTypes[0] )
Extension fields to descriptorpb.FieldOptions.
View Source
var File_liquidproto_v1_refinement_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type FieldRefinement ¶
type FieldRefinement struct {
// Boolean expression over `this`, using comparisons, &&, ||, !, len(), and
// matches().
Expr string `protobuf:"bytes,1,opt,name=expr,proto3" json:"expr,omitempty"`
// Boolean expression applied to every key in a string-keyed scalar map.
MapKeyExpr string `protobuf:"bytes,2,opt,name=map_key_expr,json=mapKeyExpr,proto3" json:"map_key_expr,omitempty"`
// Boolean expression applied to every value in a string-keyed scalar map.
MapValueExpr string `protobuf:"bytes,3,opt,name=map_value_expr,json=mapValueExpr,proto3" json:"map_value_expr,omitempty"`
// Calls the target message's generated validator when this singular message
// field is present. It cannot be combined with expr or map predicates.
Recurse bool `protobuf:"varint,4,opt,name=recurse,proto3" json:"recurse,omitempty"`
// contains filtered or unexported fields
}
FieldRefinement attaches predicates to a singular protobuf scalar or enum, independently to the keys and values of a string-keyed scalar map, or an explicit nested-message validation call.
func (*FieldRefinement) Descriptor
deprecated
func (*FieldRefinement) Descriptor() ([]byte, []int)
Deprecated: Use FieldRefinement.ProtoReflect.Descriptor instead.
func (*FieldRefinement) GetExpr ¶
func (x *FieldRefinement) GetExpr() string
func (*FieldRefinement) GetMapKeyExpr ¶
func (x *FieldRefinement) GetMapKeyExpr() string
func (*FieldRefinement) GetMapValueExpr ¶
func (x *FieldRefinement) GetMapValueExpr() string
func (*FieldRefinement) GetRecurse ¶
func (x *FieldRefinement) GetRecurse() bool
func (*FieldRefinement) ProtoMessage ¶
func (*FieldRefinement) ProtoMessage()
func (*FieldRefinement) ProtoReflect ¶
func (x *FieldRefinement) ProtoReflect() protoreflect.Message
func (*FieldRefinement) Reset ¶
func (x *FieldRefinement) Reset()
func (*FieldRefinement) String ¶
func (x *FieldRefinement) String() string
Click to show internal directories.
Click to hide internal directories.