- 1.65.0 (latest)
- 1.64.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class Expr.Builder extends GeneratedMessageV3.Builder<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.cloud.compute.v1.Expr
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Expr.BuilderImplements
ExprOrBuilderMethods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Expr.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Expr.Builder |
build()
public Expr build()
Type | Description |
Expr |
buildPartial()
public Expr buildPartial()
Type | Description |
Expr |
clear()
public Expr.Builder clear()
Type | Description |
Expr.Builder |
clearDescription()
public Expr.Builder clearDescription()
Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
optional string description = 422937596;
Type | Description |
Expr.Builder | This builder for chaining. |
clearExpression()
public Expr.Builder clearExpression()
Textual representation of an expression in Common Expression Language syntax.
optional string expression = 352031384;
Type | Description |
Expr.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Expr.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Expr.Builder |
clearLocation()
public Expr.Builder clearLocation()
Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
optional string location = 290430901;
Type | Description |
Expr.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Expr.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Expr.Builder |
clearTitle()
public Expr.Builder 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.
optional string title = 110371416;
Type | Description |
Expr.Builder | This builder for chaining. |
clone()
public Expr.Builder clone()
Type | Description |
Expr.Builder |
getDefaultInstanceForType()
public Expr getDefaultInstanceForType()
Type | Description |
Expr |
getDescription()
public String getDescription()
Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
optional string description = 422937596;
Type | Description |
String | The description. |
getDescriptionBytes()
public 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.
optional string description = 422937596;
Type | Description |
ByteString | The bytes for description. |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getExpression()
public String getExpression()
Textual representation of an expression in Common Expression Language syntax.
optional string expression = 352031384;
Type | Description |
String | The expression. |
getExpressionBytes()
public ByteString getExpressionBytes()
Textual representation of an expression in Common Expression Language syntax.
optional string expression = 352031384;
Type | Description |
ByteString | The bytes for expression. |
getLocation()
public String getLocation()
Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
optional string location = 290430901;
Type | Description |
String | The location. |
getLocationBytes()
public ByteString getLocationBytes()
Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
optional string location = 290430901;
Type | Description |
ByteString | The bytes for location. |
getTitle()
public String 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.
optional string title = 110371416;
Type | Description |
String | The title. |
getTitleBytes()
public 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.
optional string title = 110371416;
Type | Description |
ByteString | The bytes for title. |
hasDescription()
public boolean hasDescription()
Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
optional string description = 422937596;
Type | Description |
boolean | Whether the description field is set. |
hasExpression()
public boolean hasExpression()
Textual representation of an expression in Common Expression Language syntax.
optional string expression = 352031384;
Type | Description |
boolean | Whether the expression field is set. |
hasLocation()
public boolean hasLocation()
Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
optional string location = 290430901;
Type | Description |
boolean | Whether the location field is set. |
hasTitle()
public boolean hasTitle()
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.
optional string title = 110371416;
Type | Description |
boolean | Whether the title field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Expr other)
public Expr.Builder mergeFrom(Expr other)
Name | Description |
other | Expr |
Type | Description |
Expr.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Expr.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Expr.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Expr.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Expr.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Expr.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Expr.Builder |
setDescription(String value)
public Expr.Builder setDescription(String value)
Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
optional string description = 422937596;
Name | Description |
value | String The description to set. |
Type | Description |
Expr.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public Expr.Builder setDescriptionBytes(ByteString value)
Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
optional string description = 422937596;
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
Expr.Builder | This builder for chaining. |
setExpression(String value)
public Expr.Builder setExpression(String value)
Textual representation of an expression in Common Expression Language syntax.
optional string expression = 352031384;
Name | Description |
value | String The expression to set. |
Type | Description |
Expr.Builder | This builder for chaining. |
setExpressionBytes(ByteString value)
public Expr.Builder setExpressionBytes(ByteString value)
Textual representation of an expression in Common Expression Language syntax.
optional string expression = 352031384;
Name | Description |
value | ByteString The bytes for expression to set. |
Type | Description |
Expr.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Expr.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Expr.Builder |
setLocation(String value)
public Expr.Builder setLocation(String value)
Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
optional string location = 290430901;
Name | Description |
value | String The location to set. |
Type | Description |
Expr.Builder | This builder for chaining. |
setLocationBytes(ByteString value)
public Expr.Builder setLocationBytes(ByteString value)
Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
optional string location = 290430901;
Name | Description |
value | ByteString The bytes for location to set. |
Type | Description |
Expr.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Expr.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Expr.Builder |
setTitle(String value)
public Expr.Builder setTitle(String value)
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.
optional string title = 110371416;
Name | Description |
value | String The title to set. |
Type | Description |
Expr.Builder | This builder for chaining. |
setTitleBytes(ByteString value)
public Expr.Builder setTitleBytes(ByteString value)
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.
optional string title = 110371416;
Name | Description |
value | ByteString The bytes for title to set. |
Type | Description |
Expr.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Expr.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Expr.Builder |