Class: Google::Type::Expr

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/tasks/v2/doc/google/type/expr.rb,
lib/google/cloud/tasks/v2beta2/doc/google/type/expr.rb,
lib/google/cloud/tasks/v2beta3/doc/google/type/expr.rb

Overview

Represents an expression text. Example:

title: "User account presence"
description: "Determines whether the request has a user account"
expression: "size(request.user) > 0"

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionString

Returns An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.

Returns:

  • (String)

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



43
# File 'lib/google/cloud/tasks/v2/doc/google/type/expr.rb', line 43

class Expr; end

#expressionString

Returns 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.

Returns:

  • (String)

    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.



43
# File 'lib/google/cloud/tasks/v2/doc/google/type/expr.rb', line 43

class Expr; end

#locationString

Returns An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

Returns:

  • (String)

    An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.



43
# File 'lib/google/cloud/tasks/v2/doc/google/type/expr.rb', line 43

class Expr; end

#titleString

Returns 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.

Returns:

  • (String)

    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.



43
# File 'lib/google/cloud/tasks/v2/doc/google/type/expr.rb', line 43

class Expr; end