Class ProtoMessageValue

  • All Implemented Interfaces:
    dev.cel.common.values.SelectableValue<java.lang.String>

    @Immutable
    public abstract class ProtoMessageValue
    extends dev.cel.common.values.StructValue<java.lang.String,​com.google.protobuf.Message>
    ProtoMessageValue is a struct value with protobuf support.
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract dev.cel.common.types.CelType celType()  
      static ProtoMessageValue create​(com.google.protobuf.Message value, dev.cel.common.internal.CelDescriptorPool celDescriptorPool, ProtoCelValueConverter protoCelValueConverter, boolean enableJsonFieldNames)  
      java.util.Optional<java.lang.Object> find​(java.lang.String field)  
      boolean isZeroValue()  
      java.lang.Object select​(java.lang.String field)  
      abstract com.google.protobuf.Message value()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProtoMessageValue

        public ProtoMessageValue()
    • Method Detail

      • value

        public abstract com.google.protobuf.Message value()
        Specified by:
        value in class dev.cel.common.values.StructValue<java.lang.String,​com.google.protobuf.Message>
      • celType

        public abstract dev.cel.common.types.CelType celType()
        Specified by:
        celType in class dev.cel.common.values.CelValue
      • isZeroValue

        public boolean isZeroValue()
        Specified by:
        isZeroValue in class dev.cel.common.values.CelValue
      • select

        public java.lang.Object select​(java.lang.String field)
      • find

        public java.util.Optional<java.lang.Object> find​(java.lang.String field)
      • create

        public static ProtoMessageValue create​(com.google.protobuf.Message value,
                                               dev.cel.common.internal.CelDescriptorPool celDescriptorPool,
                                               ProtoCelValueConverter protoCelValueConverter,
                                               boolean enableJsonFieldNames)