Class DescriptorMappings

java.lang.Object
build.buf.protovalidate.internal.constraints.DescriptorMappings

public class DescriptorMappings extends Object
DescriptorMappings provides mappings between protocol buffer descriptors and CEL declarations.
  • Constructor Details

    • DescriptorMappings

      public DescriptorMappings()
  • Method Details

    • expectedWrapperConstraints

      @Nullable public static com.google.protobuf.Descriptors.FieldDescriptor expectedWrapperConstraints(String fqn)
      Returns the FieldConstraints field 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 a Descriptors.FieldDescriptor.Type to a compatible Type.