Package dev.cel.expr
Class SourceInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.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
,java.lang.Cloneable
- Enclosing class:
- SourceInfo
public static final class SourceInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder> implements SourceInfoOrBuilder
Source information collected at parse time.
Protobuf typecel.expr.SourceInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SourceInfo.Builder
addAllExtensions(java.lang.Iterable<? extends SourceInfo.Extension> values)
A list of tags for extensions that were used while parsing or type checking the source expression.SourceInfo.Builder
addAllLineOffsets(java.lang.Iterable<? extends java.lang.Integer> values)
Monotonically increasing list of code point offsets where newlines `\n` appear.SourceInfo.Builder
addExtensions(int index, SourceInfo.Extension value)
A list of tags for extensions that were used while parsing or type checking the source expression.SourceInfo.Builder
addExtensions(int index, SourceInfo.Extension.Builder builderForValue)
A list of tags for extensions that were used while parsing or type checking the source expression.SourceInfo.Builder
addExtensions(SourceInfo.Extension value)
A list of tags for extensions that were used while parsing or type checking the source expression.SourceInfo.Builder
addExtensions(SourceInfo.Extension.Builder builderForValue)
A list of tags for extensions that were used while parsing or type checking the source expression.SourceInfo.Extension.Builder
addExtensionsBuilder()
A list of tags for extensions that were used while parsing or type checking the source expression.SourceInfo.Extension.Builder
addExtensionsBuilder(int index)
A list of tags for extensions that were used while parsing or type checking the source expression.SourceInfo.Builder
addLineOffsets(int value)
Monotonically increasing list of code point offsets where newlines `\n` appear.SourceInfo.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
SourceInfo
build()
SourceInfo
buildPartial()
SourceInfo.Builder
clear()
SourceInfo.Builder
clearExtensions()
A list of tags for extensions that were used while parsing or type checking the source expression.SourceInfo.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SourceInfo.Builder
clearLineOffsets()
Monotonically increasing list of code point offsets where newlines `\n` appear.SourceInfo.Builder
clearLocation()
The location name.SourceInfo.Builder
clearMacroCalls()
SourceInfo.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SourceInfo.Builder
clearPositions()
SourceInfo.Builder
clearSyntaxVersion()
The syntax version of the source, e.g.SourceInfo.Builder
clone()
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.SourceInfo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
SourceInfo.Extension
getExtensions(int index)
A list of tags for extensions that were used while parsing or type checking the source expression.SourceInfo.Extension.Builder
getExtensionsBuilder(int index)
A list of tags for extensions that were used while parsing or type checking the source expression.java.util.List<SourceInfo.Extension.Builder>
getExtensionsBuilderList()
A list of tags for extensions that were used while parsing or type checking the source expression.int
getExtensionsCount()
A list of tags for extensions that were used while parsing or type checking the source expression.java.util.List<SourceInfo.Extension>
getExtensionsList()
A list of tags for extensions that were used while parsing or type checking the source expression.SourceInfo.ExtensionOrBuilder
getExtensionsOrBuilder(int index)
A list of tags for extensions that were used while parsing or type checking the source expression.java.util.List<? extends SourceInfo.ExtensionOrBuilder>
getExtensionsOrBuilderList()
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
getLineOffsetsCount()
Monotonically increasing list of code point offsets where newlines `\n` appear.java.util.List<java.lang.Integer>
getLineOffsetsList()
Monotonically increasing list of code point offsets where newlines `\n` appear.java.lang.String
getLocation()
The location name.com.google.protobuf.ByteString
getLocationBytes()
The location name.java.util.Map<java.lang.Long,Expr>
getMacroCalls()
Deprecated.int
getMacroCallsCount()
A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion.java.util.Map<java.lang.Long,Expr>
getMacroCallsMap()
A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion.Expr
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.Expr
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.java.util.Map<java.lang.Long,Expr>
getMutableMacroCalls()
Deprecated.java.util.Map<java.lang.Long,java.lang.Integer>
getMutablePositions()
Deprecated.java.util.Map<java.lang.Long,java.lang.Integer>
getPositions()
Deprecated.int
getPositionsCount()
A map from the parse node id (e.g.java.util.Map<java.lang.Long,java.lang.Integer>
getPositionsMap()
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.java.lang.String
getSyntaxVersion()
The syntax version of the source, e.g.com.google.protobuf.ByteString
getSyntaxVersionBytes()
The syntax version of the source, e.g.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
SourceInfo.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SourceInfo.Builder
mergeFrom(com.google.protobuf.Message other)
SourceInfo.Builder
mergeFrom(SourceInfo other)
SourceInfo.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SourceInfo.Builder
putAllMacroCalls(java.util.Map<java.lang.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.SourceInfo.Builder
putAllPositions(java.util.Map<java.lang.Long,java.lang.Integer> values)
A map from the parse node id (e.g.SourceInfo.Builder
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.SourceInfo.Builder
putPositions(long key, int value)
A map from the parse node id (e.g.SourceInfo.Builder
removeExtensions(int index)
A list of tags for extensions that were used while parsing or type checking the source expression.SourceInfo.Builder
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.SourceInfo.Builder
removePositions(long key)
A map from the parse node id (e.g.SourceInfo.Builder
setExtensions(int index, SourceInfo.Extension value)
A list of tags for extensions that were used while parsing or type checking the source expression.SourceInfo.Builder
setExtensions(int index, SourceInfo.Extension.Builder builderForValue)
A list of tags for extensions that were used while parsing or type checking the source expression.SourceInfo.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
SourceInfo.Builder
setLineOffsets(int index, int value)
Monotonically increasing list of code point offsets where newlines `\n` appear.SourceInfo.Builder
setLocation(java.lang.String value)
The location name.SourceInfo.Builder
setLocationBytes(com.google.protobuf.ByteString value)
The location name.SourceInfo.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
SourceInfo.Builder
setSyntaxVersion(java.lang.String value)
The syntax version of the source, e.g.SourceInfo.Builder
setSyntaxVersionBytes(com.google.protobuf.ByteString value)
The syntax version of the source, e.g.SourceInfo.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<SourceInfo.Builder>
-
getDefaultInstanceForType
public SourceInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SourceInfo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SourceInfo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SourceInfo.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>
-
setField
public SourceInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>
-
clearField
public SourceInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>
-
clearOneof
public SourceInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>
-
setRepeatedField
public SourceInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>
-
addRepeatedField
public SourceInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>
-
mergeFrom
public SourceInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SourceInfo.Builder>
-
mergeFrom
public SourceInfo.Builder mergeFrom(SourceInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>
-
mergeFrom
public SourceInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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:
java.io.IOException
-
getSyntaxVersion
public java.lang.String 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
public SourceInfo.Builder setSyntaxVersion(java.lang.String value)
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
public SourceInfo.Builder clearSyntaxVersion()
The syntax version of the source, e.g. `cel1`.
string syntax_version = 1;
- Returns:
- This builder for chaining.
-
setSyntaxVersionBytes
public SourceInfo.Builder setSyntaxVersionBytes(com.google.protobuf.ByteString value)
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
public java.lang.String 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
public SourceInfo.Builder setLocation(java.lang.String value)
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
public SourceInfo.Builder 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
public SourceInfo.Builder setLocationBytes(com.google.protobuf.ByteString value)
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.
-
getLineOffsetsList
public java.util.List<java.lang.Integer> 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
public SourceInfo.Builder setLineOffsets(int index, int value)
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
public SourceInfo.Builder addLineOffsets(int value)
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
public SourceInfo.Builder addAllLineOffsets(java.lang.Iterable<? extends java.lang.Integer> values)
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
public SourceInfo.Builder 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.
-
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 public java.util.Map<java.lang.Long,java.lang.Integer> getPositions()
Deprecated.UsegetPositionsMap()
instead.- Specified by:
getPositions
in interfaceSourceInfoOrBuilder
-
getPositionsMap
public java.util.Map<java.lang.Long,java.lang.Integer> 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
public SourceInfo.Builder clearPositions()
-
removePositions
public SourceInfo.Builder removePositions(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;
-
getMutablePositions
@Deprecated public java.util.Map<java.lang.Long,java.lang.Integer> getMutablePositions()
Deprecated.Use alternate mutation accessors instead.
-
putPositions
public SourceInfo.Builder putPositions(long key, int value)
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
public SourceInfo.Builder putAllPositions(java.util.Map<java.lang.Long,java.lang.Integer> values)
A map from the parse node id (e.g. `Expr.id`) to the code point offset within the source.
map<int64, int32> positions = 4;
-
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 public java.util.Map<java.lang.Long,Expr> getMacroCalls()
Deprecated.UsegetMacroCallsMap()
instead.- Specified by:
getMacroCalls
in interfaceSourceInfoOrBuilder
-
getMacroCallsMap
public java.util.Map<java.lang.Long,Expr> 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
public Expr 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. 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
public Expr 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. 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
public SourceInfo.Builder clearMacroCalls()
-
removeMacroCalls
public SourceInfo.Builder 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. 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 public java.util.Map<java.lang.Long,Expr> getMutableMacroCalls()
Deprecated.Use alternate mutation accessors instead.
-
putMacroCalls
public SourceInfo.Builder 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. 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
public SourceInfo.Builder putAllMacroCalls(java.util.Map<java.lang.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. 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;
-
getExtensionsList
public java.util.List<SourceInfo.Extension> 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
public SourceInfo.Extension getExtensions(int index)
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
public SourceInfo.Builder setExtensions(int index, SourceInfo.Extension value)
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
public SourceInfo.Builder setExtensions(int index, SourceInfo.Extension.Builder builderForValue)
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
public SourceInfo.Builder addExtensions(SourceInfo.Extension value)
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
public SourceInfo.Builder addExtensions(int index, SourceInfo.Extension value)
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
public SourceInfo.Builder addExtensions(SourceInfo.Extension.Builder builderForValue)
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
public SourceInfo.Builder addExtensions(int index, SourceInfo.Extension.Builder builderForValue)
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
public SourceInfo.Builder addAllExtensions(java.lang.Iterable<? extends SourceInfo.Extension> values)
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
public SourceInfo.Builder 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
public SourceInfo.Builder removeExtensions(int index)
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
public SourceInfo.Extension.Builder getExtensionsBuilder(int index)
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
public SourceInfo.ExtensionOrBuilder getExtensionsOrBuilder(int index)
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
public java.util.List<? extends SourceInfo.ExtensionOrBuilder> 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
public SourceInfo.Extension.Builder 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
public SourceInfo.Extension.Builder addExtensionsBuilder(int index)
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
public java.util.List<SourceInfo.Extension.Builder> 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;
-
setUnknownFields
public final SourceInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>
-
mergeUnknownFields
public final SourceInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>
-
-