Package com.google.type
Class Expr.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Expr,Expr.Builder>
com.google.type.Expr.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,ExprOrBuilder
,Cloneable
- Enclosing class:
- Expr
public static final class Expr.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Expr,Expr.Builder>
implements ExprOrBuilder
Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): 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.Protobuf type
google.type.Expr
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionOptional.Textual representation of an expression in Common Expression Language syntax.Optional.Optional.Optional.com.google.protobuf.ByteString
Optional.Textual representation of an expression in Common Expression Language syntax.com.google.protobuf.ByteString
Textual representation of an expression in Common Expression Language syntax.Optional.com.google.protobuf.ByteString
Optional.getTitle()
Optional.com.google.protobuf.ByteString
Optional.setDescription
(String value) Optional.setDescriptionBytes
(com.google.protobuf.ByteString value) Optional.setExpression
(String value) Textual representation of an expression in Common Expression Language syntax.setExpressionBytes
(com.google.protobuf.ByteString value) Textual representation of an expression in Common Expression Language syntax.setLocation
(String value) Optional.setLocationBytes
(com.google.protobuf.ByteString value) Optional.Optional.setTitleBytes
(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getExpression
Textual representation of an expression in Common Expression Language syntax.
string expression = 1 [json_name = "expression"];
- Specified by:
getExpression
in interfaceExprOrBuilder
- Returns:
- The expression.
-
getExpressionBytes
public com.google.protobuf.ByteString getExpressionBytes()Textual representation of an expression in Common Expression Language syntax.
string expression = 1 [json_name = "expression"];
- Specified by:
getExpressionBytes
in interfaceExprOrBuilder
- Returns:
- The bytes for expression.
-
setExpression
Textual representation of an expression in Common Expression Language syntax.
string expression = 1 [json_name = "expression"];
- Parameters:
value
- The expression to set.- Returns:
- This builder for chaining.
-
clearExpression
Textual representation of an expression in Common Expression Language syntax.
string expression = 1 [json_name = "expression"];
- Returns:
- This builder for chaining.
-
setExpressionBytes
Textual representation of an expression in Common Expression Language syntax.
string expression = 1 [json_name = "expression"];
- Parameters:
value
- The bytes for expression to set.- Returns:
- This builder for chaining.
-
getTitle
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.
string title = 2 [json_name = "title"];
- Specified by:
getTitle
in interfaceExprOrBuilder
- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()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.
string title = 2 [json_name = "title"];
- Specified by:
getTitleBytes
in interfaceExprOrBuilder
- Returns:
- The bytes for title.
-
setTitle
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.
string title = 2 [json_name = "title"];
- Parameters:
value
- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
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.
string title = 2 [json_name = "title"];
- Returns:
- This builder for chaining.
-
setTitleBytes
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.
string title = 2 [json_name = "title"];
- Parameters:
value
- The bytes for title to set.- Returns:
- This builder for chaining.
-
getDescription
Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
string description = 3 [json_name = "description"];
- Specified by:
getDescription
in interfaceExprOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
string description = 3 [json_name = "description"];
- Specified by:
getDescriptionBytes
in interfaceExprOrBuilder
- Returns:
- The bytes for description.
-
setDescription
Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
string description = 3 [json_name = "description"];
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
string description = 3 [json_name = "description"];
- Returns:
- This builder for chaining.
-
setDescriptionBytes
Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
string description = 3 [json_name = "description"];
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
getLocation
Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
string location = 4 [json_name = "location"];
- Specified by:
getLocation
in interfaceExprOrBuilder
- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
string location = 4 [json_name = "location"];
- Specified by:
getLocationBytes
in interfaceExprOrBuilder
- Returns:
- The bytes for location.
-
setLocation
Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
string location = 4 [json_name = "location"];
- Parameters:
value
- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
string location = 4 [json_name = "location"];
- Returns:
- This builder for chaining.
-
setLocationBytes
Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
string location = 4 [json_name = "location"];
- Parameters:
value
- The bytes for location to set.- Returns:
- This builder for chaining.
-