Package com.google.api.expr.v1alpha1
Class CheckedExpr.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<CheckedExpr,CheckedExpr.Builder>
com.google.api.expr.v1alpha1.CheckedExpr.Builder
- All Implemented Interfaces:
CheckedExprOrBuilder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Cloneable
- Enclosing class:
- CheckedExpr
public static final class CheckedExpr.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<CheckedExpr,CheckedExpr.Builder>
implements CheckedExprOrBuilder
A CEL expression which has been successfully type checked.Protobuf type
google.api.expr.v1alpha1.CheckedExpr-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionThe checked expression.The expr version indicates the major / minor version number of the `expr` representation.The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.booleancontainsReferenceMap(long key) A map from expression ids to resolved references.booleancontainsTypeMap(long key) A map from expression ids to types.getExpr()The checked expression.The expr version indicates the major / minor version number of the `expr` representation.com.google.protobuf.ByteStringThe expr version indicates the major / minor version number of the `expr` representation.Deprecated.intA map from expression ids to resolved references.A map from expression ids to resolved references.getReferenceMapOrDefault(long key, Reference defaultValue) A map from expression ids to resolved references.getReferenceMapOrThrow(long key) A map from expression ids to resolved references.The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.Deprecated.intA map from expression ids to types.A map from expression ids to types.getTypeMapOrDefault(long key, Type defaultValue) A map from expression ids to types.getTypeMapOrThrow(long key) A map from expression ids to types.booleanhasExpr()The checked expression.booleanThe source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.The checked expression.mergeSourceInfo(SourceInfo value) The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.putAllReferenceMap(Map<Long, Reference> values) A map from expression ids to resolved references.putAllTypeMap(Map<Long, Type> values) A map from expression ids to types.putReferenceMap(long key, Reference value) A map from expression ids to resolved references.putTypeMap(long key, Type value) A map from expression ids to types.removeReferenceMap(long key) A map from expression ids to resolved references.removeTypeMap(long key) A map from expression ids to types.The checked expression.setExpr(Expr.Builder builderForValue) The checked expression.setExprVersion(String value) The expr version indicates the major / minor version number of the `expr` representation.setExprVersionBytes(com.google.protobuf.ByteString value) The expr version indicates the major / minor version number of the `expr` representation.setSourceInfo(SourceInfo value) The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.setSourceInfo(SourceInfo.Builder builderForValue) The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getReferenceMapCount
public int getReferenceMapCount()Description copied from interface:CheckedExprOrBuilderA map from expression ids to resolved references. The following entries are in this table: - An Ident or Select expression is represented here if it resolves to a declaration. For instance, if `a.b.c` is represented by `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, while `c` is a field selection, then the reference is attached to the nested select expression (but not to the id or or the outer select). In turn, if `a` resolves to a declaration and `b.c` are field selections, the reference is attached to the ident expression. - Every Call expression has an entry here, identifying the function being called. - Every CreateStruct expression for a message has an entry, identifying the message.
map<int64, .google.api.expr.v1alpha1.Reference> reference_map = 2 [json_name = "referenceMap"];- Specified by:
getReferenceMapCountin interfaceCheckedExprOrBuilder
-
containsReferenceMap
public boolean containsReferenceMap(long key) A map from expression ids to resolved references. The following entries are in this table: - An Ident or Select expression is represented here if it resolves to a declaration. For instance, if `a.b.c` is represented by `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, while `c` is a field selection, then the reference is attached to the nested select expression (but not to the id or or the outer select). In turn, if `a` resolves to a declaration and `b.c` are field selections, the reference is attached to the ident expression. - Every Call expression has an entry here, identifying the function being called. - Every CreateStruct expression for a message has an entry, identifying the message.
map<int64, .google.api.expr.v1alpha1.Reference> reference_map = 2 [json_name = "referenceMap"];- Specified by:
containsReferenceMapin interfaceCheckedExprOrBuilder
-
clearReferenceMap
-
removeReferenceMap
A map from expression ids to resolved references. The following entries are in this table: - An Ident or Select expression is represented here if it resolves to a declaration. For instance, if `a.b.c` is represented by `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, while `c` is a field selection, then the reference is attached to the nested select expression (but not to the id or or the outer select). In turn, if `a` resolves to a declaration and `b.c` are field selections, the reference is attached to the ident expression. - Every Call expression has an entry here, identifying the function being called. - Every CreateStruct expression for a message has an entry, identifying the message.
map<int64, .google.api.expr.v1alpha1.Reference> reference_map = 2 [json_name = "referenceMap"]; -
getReferenceMap
Deprecated.UsegetReferenceMapMap()instead.- Specified by:
getReferenceMapin interfaceCheckedExprOrBuilder
-
getReferenceMapMap
A map from expression ids to resolved references. The following entries are in this table: - An Ident or Select expression is represented here if it resolves to a declaration. For instance, if `a.b.c` is represented by `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, while `c` is a field selection, then the reference is attached to the nested select expression (but not to the id or or the outer select). In turn, if `a` resolves to a declaration and `b.c` are field selections, the reference is attached to the ident expression. - Every Call expression has an entry here, identifying the function being called. - Every CreateStruct expression for a message has an entry, identifying the message.
map<int64, .google.api.expr.v1alpha1.Reference> reference_map = 2 [json_name = "referenceMap"];- Specified by:
getReferenceMapMapin interfaceCheckedExprOrBuilder
-
getReferenceMapOrDefault
A map from expression ids to resolved references. The following entries are in this table: - An Ident or Select expression is represented here if it resolves to a declaration. For instance, if `a.b.c` is represented by `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, while `c` is a field selection, then the reference is attached to the nested select expression (but not to the id or or the outer select). In turn, if `a` resolves to a declaration and `b.c` are field selections, the reference is attached to the ident expression. - Every Call expression has an entry here, identifying the function being called. - Every CreateStruct expression for a message has an entry, identifying the message.
map<int64, .google.api.expr.v1alpha1.Reference> reference_map = 2 [json_name = "referenceMap"];- Specified by:
getReferenceMapOrDefaultin interfaceCheckedExprOrBuilder
-
getReferenceMapOrThrow
A map from expression ids to resolved references. The following entries are in this table: - An Ident or Select expression is represented here if it resolves to a declaration. For instance, if `a.b.c` is represented by `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, while `c` is a field selection, then the reference is attached to the nested select expression (but not to the id or or the outer select). In turn, if `a` resolves to a declaration and `b.c` are field selections, the reference is attached to the ident expression. - Every Call expression has an entry here, identifying the function being called. - Every CreateStruct expression for a message has an entry, identifying the message.
map<int64, .google.api.expr.v1alpha1.Reference> reference_map = 2 [json_name = "referenceMap"];- Specified by:
getReferenceMapOrThrowin interfaceCheckedExprOrBuilder
-
putReferenceMap
A map from expression ids to resolved references. The following entries are in this table: - An Ident or Select expression is represented here if it resolves to a declaration. For instance, if `a.b.c` is represented by `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, while `c` is a field selection, then the reference is attached to the nested select expression (but not to the id or or the outer select). In turn, if `a` resolves to a declaration and `b.c` are field selections, the reference is attached to the ident expression. - Every Call expression has an entry here, identifying the function being called. - Every CreateStruct expression for a message has an entry, identifying the message.
map<int64, .google.api.expr.v1alpha1.Reference> reference_map = 2 [json_name = "referenceMap"]; -
putAllReferenceMap
A map from expression ids to resolved references. The following entries are in this table: - An Ident or Select expression is represented here if it resolves to a declaration. For instance, if `a.b.c` is represented by `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, while `c` is a field selection, then the reference is attached to the nested select expression (but not to the id or or the outer select). In turn, if `a` resolves to a declaration and `b.c` are field selections, the reference is attached to the ident expression. - Every Call expression has an entry here, identifying the function being called. - Every CreateStruct expression for a message has an entry, identifying the message.
map<int64, .google.api.expr.v1alpha1.Reference> reference_map = 2 [json_name = "referenceMap"]; -
getTypeMapCount
public int getTypeMapCount()Description copied from interface:CheckedExprOrBuilderA map from expression ids to types. Every expression node which has a type different than DYN has a mapping here. If an expression has type DYN, it is omitted from this map to save space.
map<int64, .google.api.expr.v1alpha1.Type> type_map = 3 [json_name = "typeMap"];- Specified by:
getTypeMapCountin interfaceCheckedExprOrBuilder
-
containsTypeMap
public boolean containsTypeMap(long key) A map from expression ids to types. Every expression node which has a type different than DYN has a mapping here. If an expression has type DYN, it is omitted from this map to save space.
map<int64, .google.api.expr.v1alpha1.Type> type_map = 3 [json_name = "typeMap"];- Specified by:
containsTypeMapin interfaceCheckedExprOrBuilder
-
clearTypeMap
-
removeTypeMap
A map from expression ids to types. Every expression node which has a type different than DYN has a mapping here. If an expression has type DYN, it is omitted from this map to save space.
map<int64, .google.api.expr.v1alpha1.Type> type_map = 3 [json_name = "typeMap"]; -
getTypeMap
Deprecated.UsegetTypeMapMap()instead.- Specified by:
getTypeMapin interfaceCheckedExprOrBuilder
-
getTypeMapMap
A map from expression ids to types. Every expression node which has a type different than DYN has a mapping here. If an expression has type DYN, it is omitted from this map to save space.
map<int64, .google.api.expr.v1alpha1.Type> type_map = 3 [json_name = "typeMap"];- Specified by:
getTypeMapMapin interfaceCheckedExprOrBuilder
-
getTypeMapOrDefault
A map from expression ids to types. Every expression node which has a type different than DYN has a mapping here. If an expression has type DYN, it is omitted from this map to save space.
map<int64, .google.api.expr.v1alpha1.Type> type_map = 3 [json_name = "typeMap"];- Specified by:
getTypeMapOrDefaultin interfaceCheckedExprOrBuilder
-
getTypeMapOrThrow
A map from expression ids to types. Every expression node which has a type different than DYN has a mapping here. If an expression has type DYN, it is omitted from this map to save space.
map<int64, .google.api.expr.v1alpha1.Type> type_map = 3 [json_name = "typeMap"];- Specified by:
getTypeMapOrThrowin interfaceCheckedExprOrBuilder
-
putTypeMap
A map from expression ids to types. Every expression node which has a type different than DYN has a mapping here. If an expression has type DYN, it is omitted from this map to save space.
map<int64, .google.api.expr.v1alpha1.Type> type_map = 3 [json_name = "typeMap"]; -
putAllTypeMap
A map from expression ids to types. Every expression node which has a type different than DYN has a mapping here. If an expression has type DYN, it is omitted from this map to save space.
map<int64, .google.api.expr.v1alpha1.Type> type_map = 3 [json_name = "typeMap"]; -
hasSourceInfo
public boolean hasSourceInfo()The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.
.google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"];- Specified by:
hasSourceInfoin interfaceCheckedExprOrBuilder- Returns:
- Whether the sourceInfo field is set.
-
getSourceInfo
The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.
.google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"];- Specified by:
getSourceInfoin interfaceCheckedExprOrBuilder- Returns:
- The sourceInfo.
-
setSourceInfo
The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.
.google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"]; -
setSourceInfo
The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.
.google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"]; -
mergeSourceInfo
The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.
.google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"]; -
clearSourceInfo
The source info derived from input that generated the parsed `expr` and any optimizations made during the type-checking pass.
.google.api.expr.v1alpha1.SourceInfo source_info = 5 [json_name = "sourceInfo"]; -
getExprVersion
The expr version indicates the major / minor version number of the `expr` representation. The most common reason for a version change will be to indicate to the CEL runtimes that transformations have been performed on the expr during static analysis. In some cases, this will save the runtime the work of applying the same or similar transformations prior to evaluation.
string expr_version = 6 [json_name = "exprVersion"];- Specified by:
getExprVersionin interfaceCheckedExprOrBuilder- Returns:
- The exprVersion.
-
getExprVersionBytes
public com.google.protobuf.ByteString getExprVersionBytes()The expr version indicates the major / minor version number of the `expr` representation. The most common reason for a version change will be to indicate to the CEL runtimes that transformations have been performed on the expr during static analysis. In some cases, this will save the runtime the work of applying the same or similar transformations prior to evaluation.
string expr_version = 6 [json_name = "exprVersion"];- Specified by:
getExprVersionBytesin interfaceCheckedExprOrBuilder- Returns:
- The bytes for exprVersion.
-
setExprVersion
The expr version indicates the major / minor version number of the `expr` representation. The most common reason for a version change will be to indicate to the CEL runtimes that transformations have been performed on the expr during static analysis. In some cases, this will save the runtime the work of applying the same or similar transformations prior to evaluation.
string expr_version = 6 [json_name = "exprVersion"];- Parameters:
value- The exprVersion to set.- Returns:
- This builder for chaining.
-
clearExprVersion
The expr version indicates the major / minor version number of the `expr` representation. The most common reason for a version change will be to indicate to the CEL runtimes that transformations have been performed on the expr during static analysis. In some cases, this will save the runtime the work of applying the same or similar transformations prior to evaluation.
string expr_version = 6 [json_name = "exprVersion"];- Returns:
- This builder for chaining.
-
setExprVersionBytes
The expr version indicates the major / minor version number of the `expr` representation. The most common reason for a version change will be to indicate to the CEL runtimes that transformations have been performed on the expr during static analysis. In some cases, this will save the runtime the work of applying the same or similar transformations prior to evaluation.
string expr_version = 6 [json_name = "exprVersion"];- Parameters:
value- The bytes for exprVersion to set.- Returns:
- This builder for chaining.
-
hasExpr
public boolean hasExpr()The checked expression. Semantically equivalent to the parsed `expr`, but may have structural differences.
.google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"];- Specified by:
hasExprin interfaceCheckedExprOrBuilder- Returns:
- Whether the expr field is set.
-
getExpr
The checked expression. Semantically equivalent to the parsed `expr`, but may have structural differences.
.google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"];- Specified by:
getExprin interfaceCheckedExprOrBuilder- Returns:
- The expr.
-
setExpr
The checked expression. Semantically equivalent to the parsed `expr`, but may have structural differences.
.google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"]; -
setExpr
The checked expression. Semantically equivalent to the parsed `expr`, but may have structural differences.
.google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"]; -
mergeExpr
The checked expression. Semantically equivalent to the parsed `expr`, but may have structural differences.
.google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"]; -
clearExpr
The checked expression. Semantically equivalent to the parsed `expr`, but may have structural differences.
.google.api.expr.v1alpha1.Expr expr = 4 [json_name = "expr"];
-