Class ProtoMessageValue

    • Constructor Detail

      • ProtoMessageValue

        public ProtoMessageValue()
    • Method Detail

      • value

        public abstract Message value()
        Description copied from class: CelValue
        The underlying value. This is typically the Java native value or a derived instance of CelValue (ex: an element in lists or key/value pair in maps).
        Specified by:
        value in class CelValue
      • celType

        public abstract CelType celType()
        Description copied from class: CelValue
        The CelType that represents this value.
        Specified by:
        celType in class CelValue
      • select

        public CelValue select​(StringValue field)
        Description copied from interface: SelectableValue
        Performs field selection. The behavior depends on the concrete implementation of the value being selected. For structs and maps, this must throw an exception if the field does not exist. For optional values, this will return an optional.none().
      • find

        public java.util.Optional<CelValue> find​(StringValue field)
        Description copied from interface: SelectableValue
        Finds the field. This will return an Optional.empty() if the field does not exist. This can be used for presence testing.