Class DescriptorMappings
java.lang.Object
build.buf.protovalidate.internal.constraints.DescriptorMappings
DescriptorMappings provides mappings between protocol buffer descriptors and CEL declarations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.protobuf.Descriptors.FieldDescriptorReturns theFieldConstraintsfield that is expected for the given protocol buffer field kind.static com.google.api.expr.v1alpha1.TypeprotoKindToCELType(com.google.protobuf.Descriptors.FieldDescriptor.Type kind) Maps aDescriptors.FieldDescriptor.Typeto a compatibleType.
-
Constructor Details
-
DescriptorMappings
public DescriptorMappings()
-
-
Method Details
-
expectedWrapperConstraints
@Nullable public static com.google.protobuf.Descriptors.FieldDescriptor expectedWrapperConstraints(String fqn) Returns theFieldConstraintsfield that is expected for the given protocol buffer field kind. -
protoKindToCELType
public static com.google.api.expr.v1alpha1.Type protoKindToCELType(com.google.protobuf.Descriptors.FieldDescriptor.Type kind) Maps aDescriptors.FieldDescriptor.Typeto a compatibleType.
-