Package dev.cel.expr
Class SourceInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<SourceInfo.Builder>
com.google.protobuf.GeneratedMessage.Builder<SourceInfo.Builder>
dev.cel.expr.SourceInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,SourceInfoOrBuilder
,Cloneable
- Enclosing class:
SourceInfo
public static final class SourceInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SourceInfo.Builder>
implements SourceInfoOrBuilder
Source information collected at parse time.Protobuf type
cel.expr.SourceInfo
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private List
<SourceInfo.Extension> private com.google.protobuf.RepeatedFieldBuilder
<SourceInfo.Extension, SourceInfo.Extension.Builder, SourceInfo.ExtensionOrBuilder> private com.google.protobuf.Internal.IntList
private Object
private com.google.protobuf.MapFieldBuilder
<Long, ExprOrBuilder, Expr, Expr.Builder> private static final SourceInfo.Builder.MacroCallsConverter
private Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllExtensions
(Iterable<? extends SourceInfo.Extension> values) A list of tags for extensions that were used while parsing or type checking the source expression.addAllLineOffsets
(Iterable<? extends Integer> values) Monotonically increasing list of code point offsets where newlines `\n` appear.addExtensions
(int index, SourceInfo.Extension value) A list of tags for extensions that were used while parsing or type checking the source expression.addExtensions
(int index, SourceInfo.Extension.Builder builderForValue) A list of tags for extensions that were used while parsing or type checking the source expression.A list of tags for extensions that were used while parsing or type checking the source expression.addExtensions
(SourceInfo.Extension.Builder builderForValue) A list of tags for extensions that were used while parsing or type checking the source expression.A list of tags for extensions that were used while parsing or type checking the source expression.addExtensionsBuilder
(int index) A list of tags for extensions that were used while parsing or type checking the source expression.addLineOffsets
(int value) Monotonically increasing list of code point offsets where newlines `\n` appear.build()
private void
buildPartial0
(SourceInfo result) private void
buildPartialRepeatedFields
(SourceInfo result) clear()
A list of tags for extensions that were used while parsing or type checking the source expression.Monotonically increasing list of code point offsets where newlines `\n` appear.The location name.The syntax version of the source, e.g.boolean
containsMacroCalls
(long key) A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion.boolean
containsPositions
(long key) A map from the parse node id (e.g.private void
private void
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getExtensions
(int index) A list of tags for extensions that were used while parsing or type checking the source expression.getExtensionsBuilder
(int index) A list of tags for extensions that were used while parsing or type checking the source expression.A list of tags for extensions that were used while parsing or type checking the source expression.int
A list of tags for extensions that were used while parsing or type checking the source expression.private com.google.protobuf.RepeatedFieldBuilder
<SourceInfo.Extension, SourceInfo.Extension.Builder, SourceInfo.ExtensionOrBuilder> A list of tags for extensions that were used while parsing or type checking the source expression.getExtensionsOrBuilder
(int index) A list of tags for extensions that were used while parsing or type checking the source expression.List
<? extends SourceInfo.ExtensionOrBuilder> A list of tags for extensions that were used while parsing or type checking the source expression.int
getLineOffsets
(int index) Monotonically increasing list of code point offsets where newlines `\n` appear.int
Monotonically increasing list of code point offsets where newlines `\n` appear.Monotonically increasing list of code point offsets where newlines `\n` appear.The location name.com.google.protobuf.ByteString
The location name.Deprecated.int
A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion.A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion.getMacroCallsOrDefault
(long key, Expr defaultValue) A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion.getMacroCallsOrThrow
(long key) A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion.Deprecated.Deprecated.Deprecated.int
A map from the parse node id (e.g.A map from the parse node id (e.g.int
getPositionsOrDefault
(long key, int defaultValue) A map from the parse node id (e.g.int
getPositionsOrThrow
(long key) A map from the parse node id (e.g.The syntax version of the source, e.g.com.google.protobuf.ByteString
The syntax version of the source, e.g.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
private com.google.protobuf.MapFieldBuilder
<Long, ExprOrBuilder, Expr, Expr.Builder> protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMapFieldReflection
(int number) private com.google.protobuf.MapFieldBuilder
<Long, ExprOrBuilder, Expr, Expr.Builder> protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMutableMapFieldReflection
(int number) final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(SourceInfo other) putAllMacroCalls
(Map<Long, Expr> values) A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion.putAllPositions
(Map<Long, Integer> values) A map from the parse node id (e.g.putMacroCalls
(long key, Expr value) A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion.putMacroCallsBuilderIfAbsent
(long key) A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion.putPositions
(long key, int value) A map from the parse node id (e.g.removeExtensions
(int index) A list of tags for extensions that were used while parsing or type checking the source expression.removeMacroCalls
(long key) A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion.removePositions
(long key) A map from the parse node id (e.g.setExtensions
(int index, SourceInfo.Extension value) A list of tags for extensions that were used while parsing or type checking the source expression.setExtensions
(int index, SourceInfo.Extension.Builder builderForValue) A list of tags for extensions that were used while parsing or type checking the source expression.setLineOffsets
(int index, int value) Monotonically increasing list of code point offsets where newlines `\n` appear.setLocation
(String value) The location name.setLocationBytes
(com.google.protobuf.ByteString value) The location name.setSyntaxVersion
(String value) The syntax version of the source, e.g.setSyntaxVersionBytes
(com.google.protobuf.ByteString value) The syntax version of the source, e.g.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
syntaxVersion_
-
location_
-
lineOffsets_
private com.google.protobuf.Internal.IntList lineOffsets_ -
positions_
-
macroCallsConverter
-
macroCalls_
-
extensions_
-
extensionsBuilder_
private com.google.protobuf.RepeatedFieldBuilder<SourceInfo.Extension,SourceInfo.Extension.Builder, extensionsBuilder_SourceInfo.ExtensionOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflection
in classcom.google.protobuf.GeneratedMessage.Builder<SourceInfo.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflection
in classcom.google.protobuf.GeneratedMessage.Builder<SourceInfo.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<SourceInfo.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<SourceInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<SourceInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SourceInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<SourceInfo.Builder>
-
mergeFrom
public SourceInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SourceInfo.Builder>
- Throws:
IOException
-
getSyntaxVersion
The syntax version of the source, e.g. `cel1`.
string syntax_version = 1;
- Specified by:
getSyntaxVersion
in interfaceSourceInfoOrBuilder
- Returns:
- The syntaxVersion.
-
getSyntaxVersionBytes
public com.google.protobuf.ByteString getSyntaxVersionBytes()The syntax version of the source, e.g. `cel1`.
string syntax_version = 1;
- Specified by:
getSyntaxVersionBytes
in interfaceSourceInfoOrBuilder
- Returns:
- The bytes for syntaxVersion.
-
setSyntaxVersion
The syntax version of the source, e.g. `cel1`.
string syntax_version = 1;
- Parameters:
value
- The syntaxVersion to set.- Returns:
- This builder for chaining.
-
clearSyntaxVersion
The syntax version of the source, e.g. `cel1`.
string syntax_version = 1;
- Returns:
- This builder for chaining.
-
setSyntaxVersionBytes
The syntax version of the source, e.g. `cel1`.
string syntax_version = 1;
- Parameters:
value
- The bytes for syntaxVersion to set.- Returns:
- This builder for chaining.
-
getLocation
The location name. All position information attached to an expression is relative to this location. The location could be a file, UI element, or similar. For example, `acme/app/AnvilPolicy.cel`.
string location = 2;
- Specified by:
getLocation
in interfaceSourceInfoOrBuilder
- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()The location name. All position information attached to an expression is relative to this location. The location could be a file, UI element, or similar. For example, `acme/app/AnvilPolicy.cel`.
string location = 2;
- Specified by:
getLocationBytes
in interfaceSourceInfoOrBuilder
- Returns:
- The bytes for location.
-
setLocation
The location name. All position information attached to an expression is relative to this location. The location could be a file, UI element, or similar. For example, `acme/app/AnvilPolicy.cel`.
string location = 2;
- Parameters:
value
- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
The location name. All position information attached to an expression is relative to this location. The location could be a file, UI element, or similar. For example, `acme/app/AnvilPolicy.cel`.
string location = 2;
- Returns:
- This builder for chaining.
-
setLocationBytes
The location name. All position information attached to an expression is relative to this location. The location could be a file, UI element, or similar. For example, `acme/app/AnvilPolicy.cel`.
string location = 2;
- Parameters:
value
- The bytes for location to set.- Returns:
- This builder for chaining.
-
ensureLineOffsetsIsMutable
private void ensureLineOffsetsIsMutable() -
getLineOffsetsList
Monotonically increasing list of code point offsets where newlines `\n` appear. The line number of a given position is the index `i` where for a given `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The column may be derived from `id_positions[id] - line_offsets[i]`.
repeated int32 line_offsets = 3;
- Specified by:
getLineOffsetsList
in interfaceSourceInfoOrBuilder
- Returns:
- A list containing the lineOffsets.
-
getLineOffsetsCount
public int getLineOffsetsCount()Monotonically increasing list of code point offsets where newlines `\n` appear. The line number of a given position is the index `i` where for a given `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The column may be derived from `id_positions[id] - line_offsets[i]`.
repeated int32 line_offsets = 3;
- Specified by:
getLineOffsetsCount
in interfaceSourceInfoOrBuilder
- Returns:
- The count of lineOffsets.
-
getLineOffsets
public int getLineOffsets(int index) Monotonically increasing list of code point offsets where newlines `\n` appear. The line number of a given position is the index `i` where for a given `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The column may be derived from `id_positions[id] - line_offsets[i]`.
repeated int32 line_offsets = 3;
- Specified by:
getLineOffsets
in interfaceSourceInfoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The lineOffsets at the given index.
-
setLineOffsets
Monotonically increasing list of code point offsets where newlines `\n` appear. The line number of a given position is the index `i` where for a given `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The column may be derived from `id_positions[id] - line_offsets[i]`.
repeated int32 line_offsets = 3;
- Parameters:
index
- The index to set the value at.value
- The lineOffsets to set.- Returns:
- This builder for chaining.
-
addLineOffsets
Monotonically increasing list of code point offsets where newlines `\n` appear. The line number of a given position is the index `i` where for a given `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The column may be derived from `id_positions[id] - line_offsets[i]`.
repeated int32 line_offsets = 3;
- Parameters:
value
- The lineOffsets to add.- Returns:
- This builder for chaining.
-
addAllLineOffsets
Monotonically increasing list of code point offsets where newlines `\n` appear. The line number of a given position is the index `i` where for a given `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The column may be derived from `id_positions[id] - line_offsets[i]`.
repeated int32 line_offsets = 3;
- Parameters:
values
- The lineOffsets to add.- Returns:
- This builder for chaining.
-
clearLineOffsets
Monotonically increasing list of code point offsets where newlines `\n` appear. The line number of a given position is the index `i` where for a given `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The column may be derived from `id_positions[id] - line_offsets[i]`.
repeated int32 line_offsets = 3;
- Returns:
- This builder for chaining.
-
internalGetPositions
-
internalGetMutablePositions
-
getPositionsCount
public int getPositionsCount()Description copied from interface:SourceInfoOrBuilder
A map from the parse node id (e.g. `Expr.id`) to the code point offset within the source.
map<int64, int32> positions = 4;
- Specified by:
getPositionsCount
in interfaceSourceInfoOrBuilder
-
containsPositions
public boolean containsPositions(long key) A map from the parse node id (e.g. `Expr.id`) to the code point offset within the source.
map<int64, int32> positions = 4;
- Specified by:
containsPositions
in interfaceSourceInfoOrBuilder
-
getPositions
Deprecated.UsegetPositionsMap()
instead.- Specified by:
getPositions
in interfaceSourceInfoOrBuilder
-
getPositionsMap
A map from the parse node id (e.g. `Expr.id`) to the code point offset within the source.
map<int64, int32> positions = 4;
- Specified by:
getPositionsMap
in interfaceSourceInfoOrBuilder
-
getPositionsOrDefault
public int getPositionsOrDefault(long key, int defaultValue) A map from the parse node id (e.g. `Expr.id`) to the code point offset within the source.
map<int64, int32> positions = 4;
- Specified by:
getPositionsOrDefault
in interfaceSourceInfoOrBuilder
-
getPositionsOrThrow
public int getPositionsOrThrow(long key) A map from the parse node id (e.g. `Expr.id`) to the code point offset within the source.
map<int64, int32> positions = 4;
- Specified by:
getPositionsOrThrow
in interfaceSourceInfoOrBuilder
-
clearPositions
-
removePositions
A map from the parse node id (e.g. `Expr.id`) to the code point offset within the source.
map<int64, int32> positions = 4;
-
getMutablePositions
Deprecated.Use alternate mutation accessors instead. -
putPositions
A map from the parse node id (e.g. `Expr.id`) to the code point offset within the source.
map<int64, int32> positions = 4;
-
putAllPositions
A map from the parse node id (e.g. `Expr.id`) to the code point offset within the source.
map<int64, int32> positions = 4;
-
internalGetMacroCalls
private com.google.protobuf.MapFieldBuilder<Long,ExprOrBuilder, internalGetMacroCalls()Expr, Expr.Builder> -
internalGetMutableMacroCalls
private com.google.protobuf.MapFieldBuilder<Long,ExprOrBuilder, internalGetMutableMacroCalls()Expr, Expr.Builder> -
getMacroCallsCount
public int getMacroCallsCount()Description copied from interface:SourceInfoOrBuilder
A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion. For example, `has(value.field)` is a function call that is replaced by a `test_only` field selection in the AST. Likewise, the call `list.exists(e, e > 10)` translates to a comprehension expression. The key in the map corresponds to the expression id of the expanded macro, and the value is the call `Expr` that was replaced.
map<int64, .cel.expr.Expr> macro_calls = 5;
- Specified by:
getMacroCallsCount
in interfaceSourceInfoOrBuilder
-
containsMacroCalls
public boolean containsMacroCalls(long key) A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion. For example, `has(value.field)` is a function call that is replaced by a `test_only` field selection in the AST. Likewise, the call `list.exists(e, e > 10)` translates to a comprehension expression. The key in the map corresponds to the expression id of the expanded macro, and the value is the call `Expr` that was replaced.
map<int64, .cel.expr.Expr> macro_calls = 5;
- Specified by:
containsMacroCalls
in interfaceSourceInfoOrBuilder
-
getMacroCalls
Deprecated.UsegetMacroCallsMap()
instead.- Specified by:
getMacroCalls
in interfaceSourceInfoOrBuilder
-
getMacroCallsMap
A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion. For example, `has(value.field)` is a function call that is replaced by a `test_only` field selection in the AST. Likewise, the call `list.exists(e, e > 10)` translates to a comprehension expression. The key in the map corresponds to the expression id of the expanded macro, and the value is the call `Expr` that was replaced.
map<int64, .cel.expr.Expr> macro_calls = 5;
- Specified by:
getMacroCallsMap
in interfaceSourceInfoOrBuilder
-
getMacroCallsOrDefault
A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion. For example, `has(value.field)` is a function call that is replaced by a `test_only` field selection in the AST. Likewise, the call `list.exists(e, e > 10)` translates to a comprehension expression. The key in the map corresponds to the expression id of the expanded macro, and the value is the call `Expr` that was replaced.
map<int64, .cel.expr.Expr> macro_calls = 5;
- Specified by:
getMacroCallsOrDefault
in interfaceSourceInfoOrBuilder
-
getMacroCallsOrThrow
A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion. For example, `has(value.field)` is a function call that is replaced by a `test_only` field selection in the AST. Likewise, the call `list.exists(e, e > 10)` translates to a comprehension expression. The key in the map corresponds to the expression id of the expanded macro, and the value is the call `Expr` that was replaced.
map<int64, .cel.expr.Expr> macro_calls = 5;
- Specified by:
getMacroCallsOrThrow
in interfaceSourceInfoOrBuilder
-
clearMacroCalls
-
removeMacroCalls
A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion. For example, `has(value.field)` is a function call that is replaced by a `test_only` field selection in the AST. Likewise, the call `list.exists(e, e > 10)` translates to a comprehension expression. The key in the map corresponds to the expression id of the expanded macro, and the value is the call `Expr` that was replaced.
map<int64, .cel.expr.Expr> macro_calls = 5;
-
getMutableMacroCalls
Deprecated.Use alternate mutation accessors instead. -
putMacroCalls
A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion. For example, `has(value.field)` is a function call that is replaced by a `test_only` field selection in the AST. Likewise, the call `list.exists(e, e > 10)` translates to a comprehension expression. The key in the map corresponds to the expression id of the expanded macro, and the value is the call `Expr` that was replaced.
map<int64, .cel.expr.Expr> macro_calls = 5;
-
putAllMacroCalls
A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion. For example, `has(value.field)` is a function call that is replaced by a `test_only` field selection in the AST. Likewise, the call `list.exists(e, e > 10)` translates to a comprehension expression. The key in the map corresponds to the expression id of the expanded macro, and the value is the call `Expr` that was replaced.
map<int64, .cel.expr.Expr> macro_calls = 5;
-
putMacroCallsBuilderIfAbsent
A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion. For example, `has(value.field)` is a function call that is replaced by a `test_only` field selection in the AST. Likewise, the call `list.exists(e, e > 10)` translates to a comprehension expression. The key in the map corresponds to the expression id of the expanded macro, and the value is the call `Expr` that was replaced.
map<int64, .cel.expr.Expr> macro_calls = 5;
-
ensureExtensionsIsMutable
private void ensureExtensionsIsMutable() -
getExtensionsList
A list of tags for extensions that were used while parsing or type checking the source expression. For example, optimizations that require special runtime support may be specified. These are used to check feature support between components in separate implementations. This can be used to either skip redundant work or report an error if the extension is unsupported.
repeated .cel.expr.SourceInfo.Extension extensions = 6;
- Specified by:
getExtensionsList
in interfaceSourceInfoOrBuilder
-
getExtensionsCount
public int getExtensionsCount()A list of tags for extensions that were used while parsing or type checking the source expression. For example, optimizations that require special runtime support may be specified. These are used to check feature support between components in separate implementations. This can be used to either skip redundant work or report an error if the extension is unsupported.
repeated .cel.expr.SourceInfo.Extension extensions = 6;
- Specified by:
getExtensionsCount
in interfaceSourceInfoOrBuilder
-
getExtensions
A list of tags for extensions that were used while parsing or type checking the source expression. For example, optimizations that require special runtime support may be specified. These are used to check feature support between components in separate implementations. This can be used to either skip redundant work or report an error if the extension is unsupported.
repeated .cel.expr.SourceInfo.Extension extensions = 6;
- Specified by:
getExtensions
in interfaceSourceInfoOrBuilder
-
setExtensions
A list of tags for extensions that were used while parsing or type checking the source expression. For example, optimizations that require special runtime support may be specified. These are used to check feature support between components in separate implementations. This can be used to either skip redundant work or report an error if the extension is unsupported.
repeated .cel.expr.SourceInfo.Extension extensions = 6;
-
setExtensions
A list of tags for extensions that were used while parsing or type checking the source expression. For example, optimizations that require special runtime support may be specified. These are used to check feature support between components in separate implementations. This can be used to either skip redundant work or report an error if the extension is unsupported.
repeated .cel.expr.SourceInfo.Extension extensions = 6;
-
addExtensions
A list of tags for extensions that were used while parsing or type checking the source expression. For example, optimizations that require special runtime support may be specified. These are used to check feature support between components in separate implementations. This can be used to either skip redundant work or report an error if the extension is unsupported.
repeated .cel.expr.SourceInfo.Extension extensions = 6;
-
addExtensions
A list of tags for extensions that were used while parsing or type checking the source expression. For example, optimizations that require special runtime support may be specified. These are used to check feature support between components in separate implementations. This can be used to either skip redundant work or report an error if the extension is unsupported.
repeated .cel.expr.SourceInfo.Extension extensions = 6;
-
addExtensions
A list of tags for extensions that were used while parsing or type checking the source expression. For example, optimizations that require special runtime support may be specified. These are used to check feature support between components in separate implementations. This can be used to either skip redundant work or report an error if the extension is unsupported.
repeated .cel.expr.SourceInfo.Extension extensions = 6;
-
addExtensions
A list of tags for extensions that were used while parsing or type checking the source expression. For example, optimizations that require special runtime support may be specified. These are used to check feature support between components in separate implementations. This can be used to either skip redundant work or report an error if the extension is unsupported.
repeated .cel.expr.SourceInfo.Extension extensions = 6;
-
addAllExtensions
A list of tags for extensions that were used while parsing or type checking the source expression. For example, optimizations that require special runtime support may be specified. These are used to check feature support between components in separate implementations. This can be used to either skip redundant work or report an error if the extension is unsupported.
repeated .cel.expr.SourceInfo.Extension extensions = 6;
-
clearExtensions
A list of tags for extensions that were used while parsing or type checking the source expression. For example, optimizations that require special runtime support may be specified. These are used to check feature support between components in separate implementations. This can be used to either skip redundant work or report an error if the extension is unsupported.
repeated .cel.expr.SourceInfo.Extension extensions = 6;
-
removeExtensions
A list of tags for extensions that were used while parsing or type checking the source expression. For example, optimizations that require special runtime support may be specified. These are used to check feature support between components in separate implementations. This can be used to either skip redundant work or report an error if the extension is unsupported.
repeated .cel.expr.SourceInfo.Extension extensions = 6;
-
getExtensionsBuilder
A list of tags for extensions that were used while parsing or type checking the source expression. For example, optimizations that require special runtime support may be specified. These are used to check feature support between components in separate implementations. This can be used to either skip redundant work or report an error if the extension is unsupported.
repeated .cel.expr.SourceInfo.Extension extensions = 6;
-
getExtensionsOrBuilder
A list of tags for extensions that were used while parsing or type checking the source expression. For example, optimizations that require special runtime support may be specified. These are used to check feature support between components in separate implementations. This can be used to either skip redundant work or report an error if the extension is unsupported.
repeated .cel.expr.SourceInfo.Extension extensions = 6;
- Specified by:
getExtensionsOrBuilder
in interfaceSourceInfoOrBuilder
-
getExtensionsOrBuilderList
A list of tags for extensions that were used while parsing or type checking the source expression. For example, optimizations that require special runtime support may be specified. These are used to check feature support between components in separate implementations. This can be used to either skip redundant work or report an error if the extension is unsupported.
repeated .cel.expr.SourceInfo.Extension extensions = 6;
- Specified by:
getExtensionsOrBuilderList
in interfaceSourceInfoOrBuilder
-
addExtensionsBuilder
A list of tags for extensions that were used while parsing or type checking the source expression. For example, optimizations that require special runtime support may be specified. These are used to check feature support between components in separate implementations. This can be used to either skip redundant work or report an error if the extension is unsupported.
repeated .cel.expr.SourceInfo.Extension extensions = 6;
-
addExtensionsBuilder
A list of tags for extensions that were used while parsing or type checking the source expression. For example, optimizations that require special runtime support may be specified. These are used to check feature support between components in separate implementations. This can be used to either skip redundant work or report an error if the extension is unsupported.
repeated .cel.expr.SourceInfo.Extension extensions = 6;
-
getExtensionsBuilderList
A list of tags for extensions that were used while parsing or type checking the source expression. For example, optimizations that require special runtime support may be specified. These are used to check feature support between components in separate implementations. This can be used to either skip redundant work or report an error if the extension is unsupported.
repeated .cel.expr.SourceInfo.Extension extensions = 6;
-
getExtensionsFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<SourceInfo.Extension,SourceInfo.Extension.Builder, getExtensionsFieldBuilder()SourceInfo.ExtensionOrBuilder>
-