Interface SourceInfoOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
SourceInfo, SourceInfo.Builder

public interface SourceInfoOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion.
    boolean
    A map from the parse node id (e.g.
    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.
    A map from the parse node id where a macro replacement was made to the call `Expr` that resulted in a macro expansion.
    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
    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.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getSyntaxVersion

      String getSyntaxVersion()
       The syntax version of the source, e.g. `cel1`.
       
      string syntax_version = 1;
      Returns:
      The syntaxVersion.
    • getSyntaxVersionBytes

      com.google.protobuf.ByteString getSyntaxVersionBytes()
       The syntax version of the source, e.g. `cel1`.
       
      string syntax_version = 1;
      Returns:
      The bytes for syntaxVersion.
    • getLocation

      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;
      Returns:
      The location.
    • getLocationBytes

      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;
      Returns:
      The bytes for location.
    • getLineOffsetsList

      List<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 derivd from `id_positions[id] - line_offsets[i]`.
       
      repeated int32 line_offsets = 3;
      Returns:
      A list containing the lineOffsets.
    • getLineOffsetsCount

      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 derivd from `id_positions[id] - line_offsets[i]`.
       
      repeated int32 line_offsets = 3;
      Returns:
      The count of lineOffsets.
    • getLineOffsets

      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 derivd from `id_positions[id] - line_offsets[i]`.
       
      repeated int32 line_offsets = 3;
      Parameters:
      index - The index of the element to return.
      Returns:
      The lineOffsets at the given index.
    • getPositionsCount

      int getPositionsCount()
       A map from the parse node id (e.g. `Expr.id`) to the code point offset
       within the source.
       
      map<int64, int32> positions = 4;
    • containsPositions

      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;
    • getPositions

      @Deprecated Map<Long,Integer> getPositions()
      Deprecated.
      Use getPositionsMap() instead.
    • getPositionsMap

      Map<Long,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;
    • getPositionsOrDefault

      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;
    • getPositionsOrThrow

      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;
    • getMacroCallsCount

      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;
    • containsMacroCalls

      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;
    • getMacroCalls

      @Deprecated Map<Long,Expr> getMacroCalls()
      Deprecated.
      Use getMacroCallsMap() instead.
    • getMacroCallsMap

      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;
    • getMacroCallsOrDefault

      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;
    • getMacroCallsOrThrow

      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;