target.apidocs.com.google.api.services.compute.model.Expr.html Maven / Gradle / Ivy
Expr (Compute Engine API v1-rev20200104-1.30.8)
com.google.api.services.compute.model
Class Expr
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.compute.model.Expr
-
public final class Expr
extends GenericJson
Represents an expression text. Example:
title: "User account presence" description: "Determines whether the request has a user account"
expression: "size(request.user) > 0"
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Expr()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Expr
clone()
String
getDescription()
An optional description of the expression.
String
getExpression()
Textual representation of an expression in Common Expression Language syntax.
String
getLocation()
An optional string indicating the location of the expression for error reporting, e.g.
String
getTitle()
An optional title for the expression, i.e.
Expr
set(String fieldName,
Object value)
Expr
setDescription(String description)
An optional description of the expression.
Expr
setExpression(String expression)
Textual representation of an expression in Common Expression Language syntax.
Expr
setLocation(String location)
An optional string indicating the location of the expression for error reporting, e.g.
Expr
setTitle(String title)
An optional title for the expression, i.e.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getDescription
public String getDescription()
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:
- value or
null for none
-
setDescription
public Expr setDescription(String description)
An optional description of the expression. This is a longer text which describes the
expression, e.g. when hovered over it in a UI.
- Parameters:
description - description or null for none
-
getExpression
public String getExpression()
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:
- value or
null for none
-
setExpression
public Expr setExpression(String expression)
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.
- Parameters:
expression - expression or null for none
-
getLocation
public String getLocation()
An optional string indicating the location of the expression for error reporting, e.g. a file
name and a position in the file.
- Returns:
- value or
null for none
-
setLocation
public Expr setLocation(String location)
An optional string indicating the location of the expression for error reporting, e.g. a file
name and a position in the file.
- Parameters:
location - location or null for none
-
getTitle
public String getTitle()
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:
- value or
null for none
-
setTitle
public Expr setTitle(String title)
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.
- Parameters:
title - title or null for none
-
set
public Expr set(String fieldName,
Object value)
- Overrides:
set in class GenericJson
-
clone
public Expr clone()
- Overrides:
clone in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy