liquidv1

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL