public static final class SourceInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder> implements SourceInfoOrBuilder
Source information collected at parse time.Protobuf type
google.api.expr.v1alpha1.SourceInfo| Modifier and Type | Method and Description |
|---|---|
SourceInfo.Builder |
addAllLineOffsets(Iterable<? extends Integer> values)
Monotonically increasing list of character offsets where newlines appear.
|
SourceInfo.Builder |
addLineOffsets(int value)
Monotonically increasing list of character offsets where newlines appear.
|
SourceInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SourceInfo |
build() |
SourceInfo |
buildPartial() |
SourceInfo.Builder |
clear() |
SourceInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SourceInfo.Builder |
clearLineOffsets()
Monotonically increasing list of character offsets where newlines 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() |
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,Expr> |
getMutableMacroCalls()
Deprecated.
|
Map<Long,Integer> |
getMutablePositions()
Deprecated.
|
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.
|
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(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.
|
SourceInfo.Builder |
putAllPositions(Map<Long,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 |
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 |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SourceInfo.Builder |
setLineOffsets(int index,
int value)
Monotonically increasing list of character offsets where newlines appear.
|
SourceInfo.Builder |
setLocation(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,
Object value) |
SourceInfo.Builder |
setSyntaxVersion(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) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>public SourceInfo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>public SourceInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SourceInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SourceInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SourceInfo.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>public SourceInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>public SourceInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>public SourceInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>public SourceInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>public SourceInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>public SourceInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SourceInfo.Builder>public SourceInfo.Builder mergeFrom(SourceInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>public SourceInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SourceInfo.Builder>IOExceptionpublic 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 SourceInfo.Builder setSyntaxVersion(String value)
The syntax version of the source, e.g. `cel1`.
string syntax_version = 1;public SourceInfo.Builder clearSyntaxVersion()
The syntax version of the source, e.g. `cel1`.
string syntax_version = 1;public SourceInfo.Builder setSyntaxVersionBytes(com.google.protobuf.ByteString value)
The syntax version of the source, e.g. `cel1`.
string syntax_version = 1;public 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 SourceInfo.Builder setLocation(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;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;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;public 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 SourceInfo.Builder setLineOffsets(int index, int value)
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;public SourceInfo.Builder addLineOffsets(int value)
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;public SourceInfo.Builder addAllLineOffsets(Iterable<? extends Integer> values)
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;public SourceInfo.Builder clearLineOffsets()
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;public 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 SourceInfo.Builder clearPositions()
public SourceInfo.Builder removePositions(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 public Map<Long,Integer> getMutablePositions()
public SourceInfo.Builder putPositions(long key, int value)
A map from the parse node id (e.g. `Expr.id`) to the character offset within source.
map<int64, int32> positions = 4;public SourceInfo.Builder putAllPositions(Map<Long,Integer> values)
A map from the parse node id (e.g. `Expr.id`) to the character offset within source.
map<int64, int32> positions = 4;public 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 SourceInfo.Builder clearMacroCalls()
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, .google.api.expr.v1alpha1.Expr> macro_calls = 5;@Deprecated public Map<Long,Expr> getMutableMacroCalls()
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, .google.api.expr.v1alpha1.Expr> macro_calls = 5;public SourceInfo.Builder 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. 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;public final SourceInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>public final SourceInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SourceInfo.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.