Class CheckedExpr

java.lang.Object
co.permify.sdk.model.CheckedExpr

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.14.0") public class CheckedExpr extends Object
A CEL expression which has been successfully type checked.
  • Field Details

  • Constructor Details

    • CheckedExpr

      public CheckedExpr()
  • Method Details

    • referenceMap

      public CheckedExpr referenceMap(@Nullable Map<String,V1alpha1Reference> referenceMap)
    • putReferenceMapItem

      public CheckedExpr putReferenceMapItem(String key, V1alpha1Reference referenceMapItem)
    • getReferenceMap

      @Nullable public Map<String,V1alpha1Reference> getReferenceMap()
      A map from expression ids to resolved references. The following entries are in this table: - An Ident or Select expression is represented here if it resolves to a declaration. For instance, if `a.b.c` is represented by `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, while `c` is a field selection, then the reference is attached to the nested select expression (but not to the id or or the outer select). In turn, if `a` resolves to a declaration and `b.c` are field selections, the reference is attached to the ident expression. - Every Call expression has an entry here, identifying the function being called. - Every CreateStruct expression for a message has an entry, identifying the message.
      Returns:
      referenceMap
    • setReferenceMap

      public void setReferenceMap(@Nullable Map<String,V1alpha1Reference> referenceMap)
    • typeMap

      public CheckedExpr typeMap(@Nullable Map<String,V1alpha1Type> typeMap)
    • putTypeMapItem

      public CheckedExpr putTypeMapItem(String key, V1alpha1Type typeMapItem)
    • getTypeMap

      @Nullable public Map<String,V1alpha1Type> getTypeMap()
      A map from expression ids to types. Every expression node which has a type different than DYN has a mapping here. If an expression has type DYN, it is omitted from this map to save space.
      Returns:
      typeMap
    • setTypeMap

      public void setTypeMap(@Nullable Map<String,V1alpha1Type> typeMap)
    • sourceInfo

      public CheckedExpr sourceInfo(@Nullable SourceInfo sourceInfo)
    • getSourceInfo

      @Nullable public SourceInfo getSourceInfo()
      Get sourceInfo
      Returns:
      sourceInfo
    • setSourceInfo

      public void setSourceInfo(@Nullable SourceInfo sourceInfo)
    • exprVersion

      public CheckedExpr exprVersion(@Nullable String exprVersion)
    • getExprVersion

      @Nullable public String getExprVersion()
      The expr version indicates the major / minor version number of the `expr` representation. The most common reason for a version change will be to indicate to the CEL runtimes that transformations have been performed on the expr during static analysis. In some cases, this will save the runtime the work of applying the same or similar transformations prior to evaluation.
      Returns:
      exprVersion
    • setExprVersion

      public void setExprVersion(@Nullable String exprVersion)
    • expr

      public CheckedExpr expr(@Nullable Object expr)
    • getExpr

      @Nullable public Object getExpr()
      An abstract representation of a common expression. Expressions are abstractly represented as a collection of identifiers, select statements, function calls, literals, and comprehensions. All operators with the exception of the '.' operator are modelled as function calls. This makes it easy to represent new operators into the existing AST. All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an expression to be valid. A reference may either be a bare identifier `name` or a qualified identifier `google.api.name`. References may either refer to a value or a function declaration. For example, the expression `google.api.name.startsWith('expr')` references the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the function declaration `startsWith`.
      Returns:
      expr
    • setExpr

      public void setExpr(@Nullable Object expr)
    • equals

      public boolean equals(Object o)
      Return true if this CheckedExpr object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string