public final class SourceInfo extends com.google.protobuf.GeneratedMessageV3 implements SourceInfoOrBuilder
Source information collected at parse time.Protobuf type
google.api.expr.v1alpha1.SourceInfo| Modifier and Type | Class and Description |
|---|---|
static class |
SourceInfo.Builder
Source information collected at parse time.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
LINE_OFFSETS_FIELD_NUMBER |
static int |
LOCATION_FIELD_NUMBER |
static int |
MACRO_CALLS_FIELD_NUMBER |
static int |
POSITIONS_FIELD_NUMBER |
static int |
SYNTAX_VERSION_FIELD_NUMBER |
| 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.
|
boolean |
equals(Object obj) |
static SourceInfo |
getDefaultInstance() |
SourceInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
com.google.protobuf.Parser<SourceInfo> |
getParserForType() |
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.
|
int |
getSerializedSize() |
String |
getSyntaxVersion()
The syntax version of the source, e.g.
|
com.google.protobuf.ByteString |
getSyntaxVersionBytes()
The syntax version of the source, e.g.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static SourceInfo.Builder |
newBuilder() |
static SourceInfo.Builder |
newBuilder(SourceInfo prototype) |
SourceInfo.Builder |
newBuilderForType() |
protected SourceInfo.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SourceInfo |
parseDelimitedFrom(InputStream input) |
static SourceInfo |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SourceInfo |
parseFrom(byte[] data) |
static SourceInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SourceInfo |
parseFrom(ByteBuffer data) |
static SourceInfo |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SourceInfo |
parseFrom(com.google.protobuf.ByteString data) |
static SourceInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SourceInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SourceInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SourceInfo |
parseFrom(InputStream input) |
static SourceInfo |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SourceInfo> |
parser() |
SourceInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int SYNTAX_VERSION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER
public static final int LINE_OFFSETS_FIELD_NUMBER
public static final int POSITIONS_FIELD_NUMBER
public static final int MACRO_CALLS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getSyntaxVersion()
The syntax version of the source, e.g. `cel1`.
string syntax_version = 1;getSyntaxVersion in interface SourceInfoOrBuilderpublic com.google.protobuf.ByteString getSyntaxVersionBytes()
The syntax version of the source, e.g. `cel1`.
string syntax_version = 1;getSyntaxVersionBytes in interface SourceInfoOrBuilderpublic 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;getLocation in interface SourceInfoOrBuilderpublic 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;getLocationBytes in interface SourceInfoOrBuilderpublic 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;getLineOffsetsList in interface SourceInfoOrBuilderpublic 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;getLineOffsetsCount in interface SourceInfoOrBuilderpublic 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;getLineOffsets in interface SourceInfoOrBuilderpublic int getPositionsCount()
SourceInfoOrBuilderA map from the parse node id (e.g. `Expr.id`) to the character offset within source.
map<int64, int32> positions = 4;getPositionsCount in interface SourceInfoOrBuilderpublic 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;containsPositions in interface SourceInfoOrBuilder@Deprecated public Map<Long,Integer> getPositions()
getPositionsMap() instead.getPositions in interface SourceInfoOrBuilderpublic 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;getPositionsMap in interface SourceInfoOrBuilderpublic 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;getPositionsOrDefault in interface SourceInfoOrBuilderpublic 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;getPositionsOrThrow in interface SourceInfoOrBuilderpublic int getMacroCallsCount()
SourceInfoOrBuilderA 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;getMacroCallsCount in interface SourceInfoOrBuilderpublic 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;containsMacroCalls in interface SourceInfoOrBuilder@Deprecated public Map<Long,Expr> getMacroCalls()
getMacroCallsMap() instead.getMacroCalls in interface SourceInfoOrBuilderpublic 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;getMacroCallsMap in interface SourceInfoOrBuilderpublic 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;getMacroCallsOrDefault in interface SourceInfoOrBuilderpublic 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;getMacroCallsOrThrow in interface SourceInfoOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SourceInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SourceInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SourceInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SourceInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SourceInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SourceInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SourceInfo parseFrom(InputStream input) throws IOException
IOExceptionpublic static SourceInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SourceInfo parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SourceInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SourceInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SourceInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SourceInfo.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SourceInfo.Builder newBuilder()
public static SourceInfo.Builder newBuilder(SourceInfo prototype)
public SourceInfo.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SourceInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SourceInfo getDefaultInstance()
public static com.google.protobuf.Parser<SourceInfo> parser()
public com.google.protobuf.Parser<SourceInfo> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SourceInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.