|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.dataform.v1beta1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like |
| 21 | + * expression language. The syntax and semantics of CEL are documented at |
| 22 | + * https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" |
| 23 | + * description: "Determines if a summary is less than 100 chars" expression: |
| 24 | + * "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: |
| 25 | + * "Determines if requestor is the document owner" expression: "document.owner == |
| 26 | + * request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine |
| 27 | + * whether the document should be publicly visible" expression: "document.type != 'private' && |
| 28 | + * document.type != 'internal'" Example (Data Manipulation): title: "Notification string" |
| 29 | + * description: "Create a notification string with a timestamp." expression: "'New message received |
| 30 | + * at ' + string(document.create_time)" The exact variables and functions that may be referenced |
| 31 | + * within an expression are determined by the service that evaluates it. See the service |
| 32 | + * documentation for additional information. |
| 33 | + * |
| 34 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 35 | + * transmitted over HTTP when working with the Dataform API. For a detailed explanation see: |
| 36 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 37 | + * </p> |
| 38 | + * |
| 39 | + * @author Google, Inc. |
| 40 | + */ |
| 41 | +@SuppressWarnings("javadoc") |
| 42 | +public final class Expr extends com.google.api.client.json.GenericJson { |
| 43 | + |
| 44 | + /** |
| 45 | + * Optional. Description of the expression. This is a longer text which describes the expression, |
| 46 | + * e.g. when hovered over it in a UI. |
| 47 | + * The value may be {@code null}. |
| 48 | + */ |
| 49 | + @com.google.api.client.util.Key |
| 50 | + private java.lang.String description; |
| 51 | + |
| 52 | + /** |
| 53 | + * Textual representation of an expression in Common Expression Language syntax. |
| 54 | + * The value may be {@code null}. |
| 55 | + */ |
| 56 | + @com.google.api.client.util.Key |
| 57 | + private java.lang.String expression; |
| 58 | + |
| 59 | + /** |
| 60 | + * Optional. String indicating the location of the expression for error reporting, e.g. a file |
| 61 | + * name and a position in the file. |
| 62 | + * The value may be {@code null}. |
| 63 | + */ |
| 64 | + @com.google.api.client.util.Key |
| 65 | + private java.lang.String location; |
| 66 | + |
| 67 | + /** |
| 68 | + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be |
| 69 | + * used e.g. in UIs which allow to enter the expression. |
| 70 | + * The value may be {@code null}. |
| 71 | + */ |
| 72 | + @com.google.api.client.util.Key |
| 73 | + private java.lang.String title; |
| 74 | + |
| 75 | + /** |
| 76 | + * Optional. Description of the expression. This is a longer text which describes the expression, |
| 77 | + * e.g. when hovered over it in a UI. |
| 78 | + * @return value or {@code null} for none |
| 79 | + */ |
| 80 | + public java.lang.String getDescription() { |
| 81 | + return description; |
| 82 | + } |
| 83 | + |
| 84 | + /** |
| 85 | + * Optional. Description of the expression. This is a longer text which describes the expression, |
| 86 | + * e.g. when hovered over it in a UI. |
| 87 | + * @param description description or {@code null} for none |
| 88 | + */ |
| 89 | + public Expr setDescription(java.lang.String description) { |
| 90 | + this.description = description; |
| 91 | + return this; |
| 92 | + } |
| 93 | + |
| 94 | + /** |
| 95 | + * Textual representation of an expression in Common Expression Language syntax. |
| 96 | + * @return value or {@code null} for none |
| 97 | + */ |
| 98 | + public java.lang.String getExpression() { |
| 99 | + return expression; |
| 100 | + } |
| 101 | + |
| 102 | + /** |
| 103 | + * Textual representation of an expression in Common Expression Language syntax. |
| 104 | + * @param expression expression or {@code null} for none |
| 105 | + */ |
| 106 | + public Expr setExpression(java.lang.String expression) { |
| 107 | + this.expression = expression; |
| 108 | + return this; |
| 109 | + } |
| 110 | + |
| 111 | + /** |
| 112 | + * Optional. String indicating the location of the expression for error reporting, e.g. a file |
| 113 | + * name and a position in the file. |
| 114 | + * @return value or {@code null} for none |
| 115 | + */ |
| 116 | + public java.lang.String getLocation() { |
| 117 | + return location; |
| 118 | + } |
| 119 | + |
| 120 | + /** |
| 121 | + * Optional. String indicating the location of the expression for error reporting, e.g. a file |
| 122 | + * name and a position in the file. |
| 123 | + * @param location location or {@code null} for none |
| 124 | + */ |
| 125 | + public Expr setLocation(java.lang.String location) { |
| 126 | + this.location = location; |
| 127 | + return this; |
| 128 | + } |
| 129 | + |
| 130 | + /** |
| 131 | + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be |
| 132 | + * used e.g. in UIs which allow to enter the expression. |
| 133 | + * @return value or {@code null} for none |
| 134 | + */ |
| 135 | + public java.lang.String getTitle() { |
| 136 | + return title; |
| 137 | + } |
| 138 | + |
| 139 | + /** |
| 140 | + * Optional. Title for the expression, i.e. a short string describing its purpose. This can be |
| 141 | + * used e.g. in UIs which allow to enter the expression. |
| 142 | + * @param title title or {@code null} for none |
| 143 | + */ |
| 144 | + public Expr setTitle(java.lang.String title) { |
| 145 | + this.title = title; |
| 146 | + return this; |
| 147 | + } |
| 148 | + |
| 149 | + @Override |
| 150 | + public Expr set(String fieldName, Object value) { |
| 151 | + return (Expr) super.set(fieldName, value); |
| 152 | + } |
| 153 | + |
| 154 | + @Override |
| 155 | + public Expr clone() { |
| 156 | + return (Expr) super.clone(); |
| 157 | + } |
| 158 | + |
| 159 | +} |
0 commit comments