cloudbilling  v1
Public Member Functions | Static Public Member Functions | List of all members
google_cloudbilling_api::Expr Class Reference

#include <expr.h>

Inheritance diagram for google_cloudbilling_api::Expr:

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 ExprNew ()
 

Detailed Description

C
like expression language. The syntax and semantics of CEL.
https://github.com/google/cel
spec.
title
"Summary size limit".
description
"Determines if a summary is less than 100 chars".
expression
"document.summary.size() < 100".

Example (Equality):

title
"Requestor is owner".
description
"Determines if requestor is the document owner".
expression
"document.owner == request.auth.claims.email".

Example (Logic):

title
"Public documents".
description
"Determine whether the document should be publicly visible".
expression
"document.type != 'private' && document.type != 'internal'".

Example (Data Manipulation):

title
"Notification string".
description
"Create a notification string with a timestamp.".
expression
"'New message received at ' + string(document.create_time)".

The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.

Constructor & Destructor Documentation

◆ Expr() [1/2]

google_cloudbilling_api::Expr::Expr ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ Expr() [2/2]

google_cloudbilling_api::Expr::Expr ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~Expr()

google_cloudbilling_api::Expr::~Expr ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_description()

void google_cloudbilling_api::Expr::clear_description ( )
inline

Clears the 'description' attribute.

◆ clear_expression()

void google_cloudbilling_api::Expr::clear_expression ( )
inline

Clears the 'expression' attribute.

◆ clear_location()

void google_cloudbilling_api::Expr::clear_location ( )
inline

Clears the 'location' attribute.

◆ clear_title()

void google_cloudbilling_api::Expr::clear_title ( )
inline

Clears the 'title' attribute.

◆ get_description()

const StringPiece google_cloudbilling_api::Expr::get_description ( ) const
inline

Get the value of the 'description' attribute.

◆ get_expression()

const StringPiece google_cloudbilling_api::Expr::get_expression ( ) const
inline

Get the value of the 'expression' attribute.

◆ get_location()

const StringPiece google_cloudbilling_api::Expr::get_location ( ) const
inline

Get the value of the 'location' attribute.

◆ get_title()

const StringPiece google_cloudbilling_api::Expr::get_title ( ) const
inline

Get the value of the 'title' attribute.

◆ GetTypeName()

const StringPiece google_cloudbilling_api::Expr::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_cloudbilling_api::Expr

◆ has_description()

bool google_cloudbilling_api::Expr::has_description ( ) const
inline

Determine if the 'description' attribute was set.

Returns
true if the 'description' attribute was set.

◆ has_expression()

bool google_cloudbilling_api::Expr::has_expression ( ) const
inline

Determine if the 'expression' attribute was set.

Returns
true if the 'expression' attribute was set.

◆ has_location()

bool google_cloudbilling_api::Expr::has_location ( ) const
inline

Determine if the 'location' attribute was set.

Returns
true if the 'location' attribute was set.

◆ has_title()

bool google_cloudbilling_api::Expr::has_title ( ) const
inline

Determine if the 'title' attribute was set.

Returns
true if the 'title' attribute was set.

◆ New()

Expr * google_cloudbilling_api::Expr::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_description()

void google_cloudbilling_api::Expr::set_description ( const StringPiece &  value)
inline

Change the 'description' attribute.

Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

Parameters
[in]valueThe new value.

◆ set_expression()

void google_cloudbilling_api::Expr::set_expression ( const StringPiece &  value)
inline

Change the 'expression' attribute.

Textual representation of an expression in Common Expression Language syntax.

Parameters
[in]valueThe new value.

◆ set_location()

void google_cloudbilling_api::Expr::set_location ( const StringPiece &  value)
inline

Change the 'location' attribute.

Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

Parameters
[in]valueThe new value.

◆ set_title()

void google_cloudbilling_api::Expr::set_title ( const StringPiece &  value)
inline

Change the 'title' attribute.

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.

Parameters
[in]valueThe new value.

The documentation for this class was generated from the following files: