deploymentmanager
v2
|
#include <expr.h>
Public Member Functions | |
Expr (const Json::Value &storage) | |
Expr (Json::Value *storage) | |
virtual | ~Expr () |
const StringPiece | GetTypeName () const |
bool | has_description () const |
void | clear_description () |
const StringPiece | get_description () const |
void | set_description (const StringPiece &value) |
bool | has_expression () const |
void | clear_expression () |
const StringPiece | get_expression () const |
void | set_expression (const StringPiece &value) |
bool | has_location () const |
void | clear_location () |
const StringPiece | get_location () const |
void | set_location (const StringPiece &value) |
bool | has_title () const |
void | clear_title () |
const StringPiece | get_title () const |
void | set_title (const StringPiece &value) |
Static Public Member Functions | |
static Expr * | New () |
Represents an expression text. Example:
title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0".
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'description
' attribute.
|
inline |
Clears the 'expression
' attribute.
|
inline |
Clears the 'location
' attribute.
|
inline |
Clears the 'title
' attribute.
|
inline |
Get the value of the 'description
' attribute.
|
inline |
Get the value of the 'expression
' attribute.
|
inline |
Get the value of the 'location
' attribute.
|
inline |
Get the value of the 'title
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'description
' attribute was set.
description
' attribute was set.
|
inline |
Determine if the 'expression
' attribute was set.
expression
' attribute was set.
|
inline |
Determine if the 'location
' attribute was set.
location
' attribute was set.
|
inline |
Determine if the 'title
' attribute was set.
title
' attribute was set.
|
static |
Creates a new default instance.
|
inline |
Change the 'description
' attribute.
An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
[in] | value | The new value. |
|
inline |
Change the 'expression
' attribute.
Textual representation of an expression in Common Expression Language syntax.
The application context of the containing message determines which well- known feature set of CEL is supported.
[in] | value | The new value. |
|
inline |
Change the 'location
' attribute.
An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
[in] | value | The new value. |
|
inline |
Change the 'title
' attribute.
An optional title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
[in] | value | The new value. |