Interface TypeProvider

    • Method Detail

      • lookupType

        @Nullable Type lookupType​(java.lang.String typeName)
        Deprecated.
        Lookup the a Type given a qualified typeName. Returns null if not found.
      • lookupCelType

        default java.util.Optional<CelType> lookupCelType​(java.lang.String typeName)
        Deprecated.
        Lookup the a CelType given a qualified typeName. Returns null if not found.
      • lookupEnumValue

        @Nullable java.lang.Integer lookupEnumValue​(java.lang.String enumName)
        Deprecated.
        Lookup the Integer enum value given an enumName. Returns null if not found.
      • lookupFieldType

        @Nullable TypeProvider.FieldType lookupFieldType​(Type type,
                                                         java.lang.String fieldName)
        Deprecated.
        Lookup the FieldType for a fieldName within a type. Returns null if not found.

        The FieldType return value will indicate the type of the field and whether presence check is supported via the ('has') macro.

      • lookupFieldType

        default @Nullable TypeProvider.FieldType lookupFieldType​(CelType type,
                                                                 java.lang.String fieldName)
        Deprecated.
        Lookup the FieldType for a fieldName within a type. Returns null if not found.

        The FieldType return value will indicate the type of the field and whether presence check is supported via the ('has') macro.

      • lookupFieldNames

        default @Nullable com.google.common.collect.ImmutableSet<java.lang.String> lookupFieldNames​(Type type)
        Deprecated.
        Returns the field names associated with the given Type.

        If the type is not a message type, or the type is not found, the result is null.

      • lookupExtensionType

        default @Nullable TypeProvider.ExtensionFieldType lookupExtensionType​(java.lang.String extensionName)
        Deprecated.
        Lookup the FieldType of the named extension (specified using its full path). Returns null if not found.