public final class Expr extends GeneratedMessageV3 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
Static Fields
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
EXPRESSION_FIELD_NUMBER
public static final int EXPRESSION_FIELD_NUMBER
Field Value
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER
Field Value
TITLE_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Expr getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Expr.Builder newBuilder()
Returns
newBuilder(Expr prototype)
public static Expr.Builder newBuilder(Expr prototype)
Parameter
Name | Description |
prototype | Expr
|
Returns
public static Expr parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Expr parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Expr parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Expr parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Expr parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Expr parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Expr parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Expr parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Expr parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Expr parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Expr parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Expr parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Expr> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Expr getDefaultInstanceForType()
Returns
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;
Returns
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;
Returns
Type | Description |
ByteString | The bytes for description.
|
getExpression()
public String getExpression()
Textual representation of an expression in Common Expression Language syntax.
optional string expression = 352031384;
Returns
Type | Description |
String | The expression.
|
getExpressionBytes()
public ByteString getExpressionBytes()
Textual representation of an expression in Common Expression Language syntax.
optional string expression = 352031384;
Returns
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;
Returns
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;
Returns
getParserForType()
public Parser<Expr> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
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;
Returns
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;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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;
Returns
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;
Returns
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;
Returns
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;
Returns
Type | Description |
boolean | Whether the title field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Expr.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Expr.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Expr.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions