public final class Expr extends com.google.protobuf.GeneratedMessageV3 implements ExprOrBuilder
An abstract representation of a common expression.
Expressions are abstractly represented as a collection of identifiers,
select statements, function calls, literals, and comprehensions. All
operators with the exception of the '.' operator are modelled as function
calls. This makes it easy to represent new operators into the existing AST.
All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at
type-check for an expression to be valid. A reference may either be a bare
identifier `name` or a qualified identifier `google.api.name`. References
may either refer to a value or a function declaration.
For example, the expression `google.api.name.startsWith('expr')` references
the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and
the function declaration `startsWith`.
Protobuf type google.api.expr.v1alpha1.Expr| Modifier and Type | Class and Description |
|---|---|
static class |
Expr.Builder
An abstract representation of a common expression.
|
static class |
Expr.Call
A call expression, including calls to predefined functions and operators.
|
static interface |
Expr.CallOrBuilder |
static class |
Expr.Comprehension
A comprehension expression applied to a list or map.
|
static interface |
Expr.ComprehensionOrBuilder |
static class |
Expr.CreateList
A list creation expression.
|
static interface |
Expr.CreateListOrBuilder |
static class |
Expr.CreateStruct
A map or message creation expression.
|
static interface |
Expr.CreateStructOrBuilder |
static class |
Expr.ExprKindCase |
static class |
Expr.Ident
An identifier expression. e.g.
|
static interface |
Expr.IdentOrBuilder |
static class |
Expr.Select
A field selection expression. e.g.
|
static interface |
Expr.SelectOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CALL_EXPR_FIELD_NUMBER |
static int |
COMPREHENSION_EXPR_FIELD_NUMBER |
static int |
CONST_EXPR_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
IDENT_EXPR_FIELD_NUMBER |
static int |
LIST_EXPR_FIELD_NUMBER |
static int |
SELECT_EXPR_FIELD_NUMBER |
static int |
STRUCT_EXPR_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Expr.Call |
getCallExpr()
A call expression, including calls to predefined functions and operators.
|
Expr.CallOrBuilder |
getCallExprOrBuilder()
A call expression, including calls to predefined functions and operators.
|
Expr.Comprehension |
getComprehensionExpr()
A comprehension expression.
|
Expr.ComprehensionOrBuilder |
getComprehensionExprOrBuilder()
A comprehension expression.
|
Constant |
getConstExpr()
A literal expression.
|
ConstantOrBuilder |
getConstExprOrBuilder()
A literal expression.
|
static Expr |
getDefaultInstance() |
Expr |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Expr.ExprKindCase |
getExprKindCase() |
long |
getId()
Required.
|
Expr.Ident |
getIdentExpr()
An identifier expression.
|
Expr.IdentOrBuilder |
getIdentExprOrBuilder()
An identifier expression.
|
Expr.CreateList |
getListExpr()
A list creation expression.
|
Expr.CreateListOrBuilder |
getListExprOrBuilder()
A list creation expression.
|
com.google.protobuf.Parser<Expr> |
getParserForType() |
Expr.Select |
getSelectExpr()
A field selection expression, e.g.
|
Expr.SelectOrBuilder |
getSelectExprOrBuilder()
A field selection expression, e.g.
|
int |
getSerializedSize() |
Expr.CreateStruct |
getStructExpr()
A map or message creation expression.
|
Expr.CreateStructOrBuilder |
getStructExprOrBuilder()
A map or message creation expression.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasCallExpr()
A call expression, including calls to predefined functions and operators.
|
boolean |
hasComprehensionExpr()
A comprehension expression.
|
boolean |
hasConstExpr()
A literal expression.
|
int |
hashCode() |
boolean |
hasIdentExpr()
An identifier expression.
|
boolean |
hasListExpr()
A list creation expression.
|
boolean |
hasSelectExpr()
A field selection expression, e.g.
|
boolean |
hasStructExpr()
A map or message creation expression.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Expr.Builder |
newBuilder() |
static Expr.Builder |
newBuilder(Expr prototype) |
Expr.Builder |
newBuilderForType() |
protected Expr.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Expr |
parseDelimitedFrom(InputStream input) |
static Expr |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Expr |
parseFrom(byte[] data) |
static Expr |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Expr |
parseFrom(ByteBuffer data) |
static Expr |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Expr |
parseFrom(com.google.protobuf.ByteString data) |
static Expr |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Expr |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Expr |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Expr |
parseFrom(InputStream input) |
static Expr |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Expr> |
parser() |
Expr.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ID_FIELD_NUMBER
public static final int CONST_EXPR_FIELD_NUMBER
public static final int IDENT_EXPR_FIELD_NUMBER
public static final int SELECT_EXPR_FIELD_NUMBER
public static final int CALL_EXPR_FIELD_NUMBER
public static final int LIST_EXPR_FIELD_NUMBER
public static final int STRUCT_EXPR_FIELD_NUMBER
public static final int COMPREHENSION_EXPR_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public Expr.ExprKindCase getExprKindCase()
getExprKindCase in interface ExprOrBuilderpublic long getId()
Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to a node in the parse tree.
int64 id = 2;getId in interface ExprOrBuilderpublic boolean hasConstExpr()
A literal expression.
.google.api.expr.v1alpha1.Constant const_expr = 3;hasConstExpr in interface ExprOrBuilderpublic Constant getConstExpr()
A literal expression.
.google.api.expr.v1alpha1.Constant const_expr = 3;getConstExpr in interface ExprOrBuilderpublic ConstantOrBuilder getConstExprOrBuilder()
A literal expression.
.google.api.expr.v1alpha1.Constant const_expr = 3;getConstExprOrBuilder in interface ExprOrBuilderpublic boolean hasIdentExpr()
An identifier expression.
.google.api.expr.v1alpha1.Expr.Ident ident_expr = 4;hasIdentExpr in interface ExprOrBuilderpublic Expr.Ident getIdentExpr()
An identifier expression.
.google.api.expr.v1alpha1.Expr.Ident ident_expr = 4;getIdentExpr in interface ExprOrBuilderpublic Expr.IdentOrBuilder getIdentExprOrBuilder()
An identifier expression.
.google.api.expr.v1alpha1.Expr.Ident ident_expr = 4;getIdentExprOrBuilder in interface ExprOrBuilderpublic boolean hasSelectExpr()
A field selection expression, e.g. `request.auth`.
.google.api.expr.v1alpha1.Expr.Select select_expr = 5;hasSelectExpr in interface ExprOrBuilderpublic Expr.Select getSelectExpr()
A field selection expression, e.g. `request.auth`.
.google.api.expr.v1alpha1.Expr.Select select_expr = 5;getSelectExpr in interface ExprOrBuilderpublic Expr.SelectOrBuilder getSelectExprOrBuilder()
A field selection expression, e.g. `request.auth`.
.google.api.expr.v1alpha1.Expr.Select select_expr = 5;getSelectExprOrBuilder in interface ExprOrBuilderpublic boolean hasCallExpr()
A call expression, including calls to predefined functions and operators.
.google.api.expr.v1alpha1.Expr.Call call_expr = 6;hasCallExpr in interface ExprOrBuilderpublic Expr.Call getCallExpr()
A call expression, including calls to predefined functions and operators.
.google.api.expr.v1alpha1.Expr.Call call_expr = 6;getCallExpr in interface ExprOrBuilderpublic Expr.CallOrBuilder getCallExprOrBuilder()
A call expression, including calls to predefined functions and operators.
.google.api.expr.v1alpha1.Expr.Call call_expr = 6;getCallExprOrBuilder in interface ExprOrBuilderpublic boolean hasListExpr()
A list creation expression.
.google.api.expr.v1alpha1.Expr.CreateList list_expr = 7;hasListExpr in interface ExprOrBuilderpublic Expr.CreateList getListExpr()
A list creation expression.
.google.api.expr.v1alpha1.Expr.CreateList list_expr = 7;getListExpr in interface ExprOrBuilderpublic Expr.CreateListOrBuilder getListExprOrBuilder()
A list creation expression.
.google.api.expr.v1alpha1.Expr.CreateList list_expr = 7;getListExprOrBuilder in interface ExprOrBuilderpublic boolean hasStructExpr()
A map or message creation expression.
.google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8;hasStructExpr in interface ExprOrBuilderpublic Expr.CreateStruct getStructExpr()
A map or message creation expression.
.google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8;getStructExpr in interface ExprOrBuilderpublic Expr.CreateStructOrBuilder getStructExprOrBuilder()
A map or message creation expression.
.google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8;getStructExprOrBuilder in interface ExprOrBuilderpublic boolean hasComprehensionExpr()
A comprehension expression.
.google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9;hasComprehensionExpr in interface ExprOrBuilderpublic Expr.Comprehension getComprehensionExpr()
A comprehension expression.
.google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9;getComprehensionExpr in interface ExprOrBuilderpublic Expr.ComprehensionOrBuilder getComprehensionExprOrBuilder()
A comprehension expression.
.google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9;getComprehensionExprOrBuilder in interface ExprOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Expr parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Expr parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Expr parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Expr parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Expr parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Expr parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Expr parseFrom(InputStream input) throws IOException
IOExceptionpublic static Expr parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Expr parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Expr parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Expr parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Expr parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Expr.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Expr.Builder newBuilder()
public static Expr.Builder newBuilder(Expr prototype)
public Expr.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Expr.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Expr getDefaultInstance()
public static com.google.protobuf.Parser<Expr> parser()
public com.google.protobuf.Parser<Expr> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Expr getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.