public interface SourceInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
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.
|
int |
getLineOffsets(int index)
Monotonically increasing list of character offsets where newlines appear.
|
int |
getLineOffsetsCount()
Monotonically increasing list of character offsets where newlines appear.
|
List<Integer> |
getLineOffsetsList()
Monotonically increasing list of character offsets where newlines appear.
|
String |
getLocation()
The location name.
|
com.google.protobuf.ByteString |
getLocationBytes()
The location name.
|
Map<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.
|
Map<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.
|
Map<Long,Integer> |
getPositions()
Deprecated.
|
int |
getPositionsCount()
A map from the parse node id (e.g.
|
Map<Long,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.
|
String |
getSyntaxVersion()
The syntax version of the source, e.g.
|
com.google.protobuf.ByteString |
getSyntaxVersionBytes()
The syntax version of the source, e.g.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getSyntaxVersion()
The syntax version of the source, e.g. `cel1`.
string syntax_version = 1;com.google.protobuf.ByteString getSyntaxVersionBytes()
The syntax version of the source, e.g. `cel1`.
string syntax_version = 1;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;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;List<Integer> getLineOffsetsList()
Monotonically increasing list of character offsets where newlines 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 derivd from `id_positions[id] - line_offsets[i]`.
repeated int32 line_offsets = 3;int getLineOffsetsCount()
Monotonically increasing list of character offsets where newlines 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 derivd from `id_positions[id] - line_offsets[i]`.
repeated int32 line_offsets = 3;int getLineOffsets(int index)
Monotonically increasing list of character offsets where newlines 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 derivd from `id_positions[id] - line_offsets[i]`.
repeated int32 line_offsets = 3;int getPositionsCount()
A map from the parse node id (e.g. `Expr.id`) to the character offset within source.
map<int64, int32> positions = 4;boolean containsPositions(long key)
A map from the parse node id (e.g. `Expr.id`) to the character offset within source.
map<int64, int32> positions = 4;@Deprecated Map<Long,Integer> getPositions()
getPositionsMap() instead.Map<Long,Integer> getPositionsMap()
A map from the parse node id (e.g. `Expr.id`) to the character offset within source.
map<int64, int32> positions = 4;int getPositionsOrDefault(long key,
int defaultValue)
A map from the parse node id (e.g. `Expr.id`) to the character offset within source.
map<int64, int32> positions = 4;int getPositionsOrThrow(long key)
A map from the parse node id (e.g. `Expr.id`) to the character offset within source.
map<int64, int32> positions = 4;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. 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, .google.api.expr.v1alpha1.Expr> macro_calls = 5;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, .google.api.expr.v1alpha1.Expr> macro_calls = 5;@Deprecated Map<Long,Expr> getMacroCalls()
getMacroCallsMap() instead.Map<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, .google.api.expr.v1alpha1.Expr> macro_calls = 5;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, .google.api.expr.v1alpha1.Expr> macro_calls = 5;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, .google.api.expr.v1alpha1.Expr> macro_calls = 5;Copyright © 2018–2021 The Envoy Project. All rights reserved.