Class Location.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
io.opentelemetry.proto.profiles.v1experimental.Location.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,LocationOrBuilder,Cloneable
- Enclosing class:
- Location
public static final class Location.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
implements LocationOrBuilder
Describes function and line table debug information.Protobuf type
opentelemetry.proto.profiles.v1experimental.Location-
Method Summary
Modifier and TypeMethodDescriptionaddAllAttributes(Iterable<? extends Long> values) References to attributes in Profile.attribute_table.addAllLine(Iterable<? extends Line> values) Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.addAttributes(long value) References to attributes in Profile.attribute_table.Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.addLine(int index, Line.Builder builderForValue) Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.addLine(Line.Builder builderForValue) Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.addLineBuilder(int index) Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The instruction address for this location, if available.References to attributes in Profile.attribute_table.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearId()Unique nonzero id for the location.Provides an indication that multiple symbols map to this location's address, for example due to identical code folding by the linker.Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.The index of the corresponding profile.Mapping for this location.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Type of frame (e.g. kernel, native, python, hotspot, php).clone()longThe instruction address for this location, if available.longgetAttributes(int index) References to attributes in Profile.attribute_table.intReferences to attributes in Profile.attribute_table.References to attributes in Profile.attribute_table.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlonggetId()Unique nonzero id for the location.booleanProvides an indication that multiple symbols map to this location's address, for example due to identical code folding by the linker.getLine(int index) Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.getLineBuilder(int index) Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.intMultiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.getLineOrBuilder(int index) Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.List<? extends LineOrBuilder>Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.longThe index of the corresponding profile.Mapping for this location.intType of frame (e.g. kernel, native, python, hotspot, php).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final Location.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeLine(int index) Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.setAddress(long value) The instruction address for this location, if available.setAttributes(int index, long value) References to attributes in Profile.attribute_table.setId(long value) Unique nonzero id for the location.setIsFolded(boolean value) Provides an indication that multiple symbols map to this location's address, for example due to identical code folding by the linker.Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.setLine(int index, Line.Builder builderForValue) Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.setMappingIndex(long value) The index of the corresponding profile.Mapping for this location.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTypeIndex(int value) Type of frame (e.g. kernel, native, python, hotspot, php).final Location.BuildersetUnknownFields(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, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
setField
public Location.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
setRepeatedField
public Location.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
addRepeatedField
public Location.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Location.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Location.Builder>- Throws:
IOException
-
getId
public long getId()Unique nonzero id for the location. A profile could use instruction addresses or any integer sequence as ids. [deprecated]
uint64 id = 1;- Specified by:
getIdin interfaceLocationOrBuilder- Returns:
- The id.
-
setId
Unique nonzero id for the location. A profile could use instruction addresses or any integer sequence as ids. [deprecated]
uint64 id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Unique nonzero id for the location. A profile could use instruction addresses or any integer sequence as ids. [deprecated]
uint64 id = 1;- Returns:
- This builder for chaining.
-
getMappingIndex
public long getMappingIndex()The index of the corresponding profile.Mapping for this location. It can be unset if the mapping is unknown or not applicable for this profile type.
uint64 mapping_index = 2;- Specified by:
getMappingIndexin interfaceLocationOrBuilder- Returns:
- The mappingIndex.
-
setMappingIndex
The index of the corresponding profile.Mapping for this location. It can be unset if the mapping is unknown or not applicable for this profile type.
uint64 mapping_index = 2;- Parameters:
value- The mappingIndex to set.- Returns:
- This builder for chaining.
-
clearMappingIndex
The index of the corresponding profile.Mapping for this location. It can be unset if the mapping is unknown or not applicable for this profile type.
uint64 mapping_index = 2;- Returns:
- This builder for chaining.
-
getAddress
public long getAddress()The instruction address for this location, if available. It should be within [Mapping.memory_start...Mapping.memory_limit] for the corresponding mapping. A non-leaf address may be in the middle of a call instruction. It is up to display tools to find the beginning of the instruction if necessary.
uint64 address = 3;- Specified by:
getAddressin interfaceLocationOrBuilder- Returns:
- The address.
-
setAddress
The instruction address for this location, if available. It should be within [Mapping.memory_start...Mapping.memory_limit] for the corresponding mapping. A non-leaf address may be in the middle of a call instruction. It is up to display tools to find the beginning of the instruction if necessary.
uint64 address = 3;- Parameters:
value- The address to set.- Returns:
- This builder for chaining.
-
clearAddress
The instruction address for this location, if available. It should be within [Mapping.memory_start...Mapping.memory_limit] for the corresponding mapping. A non-leaf address may be in the middle of a call instruction. It is up to display tools to find the beginning of the instruction if necessary.
uint64 address = 3;- Returns:
- This builder for chaining.
-
getLineList
Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined. E.g., if memcpy() is inlined into printf: line[0].function_name == "memcpy" line[1].function_name == "printf"repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;- Specified by:
getLineListin interfaceLocationOrBuilder
-
getLineCount
public int getLineCount()Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined. E.g., if memcpy() is inlined into printf: line[0].function_name == "memcpy" line[1].function_name == "printf"repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;- Specified by:
getLineCountin interfaceLocationOrBuilder
-
getLine
Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined. E.g., if memcpy() is inlined into printf: line[0].function_name == "memcpy" line[1].function_name == "printf"repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;- Specified by:
getLinein interfaceLocationOrBuilder
-
setLine
Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined. E.g., if memcpy() is inlined into printf: line[0].function_name == "memcpy" line[1].function_name == "printf"repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4; -
setLine
Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined. E.g., if memcpy() is inlined into printf: line[0].function_name == "memcpy" line[1].function_name == "printf"repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4; -
addLine
Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined. E.g., if memcpy() is inlined into printf: line[0].function_name == "memcpy" line[1].function_name == "printf"repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4; -
addLine
Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined. E.g., if memcpy() is inlined into printf: line[0].function_name == "memcpy" line[1].function_name == "printf"repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4; -
addLine
Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined. E.g., if memcpy() is inlined into printf: line[0].function_name == "memcpy" line[1].function_name == "printf"repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4; -
addLine
Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined. E.g., if memcpy() is inlined into printf: line[0].function_name == "memcpy" line[1].function_name == "printf"repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4; -
addAllLine
Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined. E.g., if memcpy() is inlined into printf: line[0].function_name == "memcpy" line[1].function_name == "printf"repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4; -
clearLine
Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined. E.g., if memcpy() is inlined into printf: line[0].function_name == "memcpy" line[1].function_name == "printf"repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4; -
removeLine
Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined. E.g., if memcpy() is inlined into printf: line[0].function_name == "memcpy" line[1].function_name == "printf"repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4; -
getLineBuilder
Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined. E.g., if memcpy() is inlined into printf: line[0].function_name == "memcpy" line[1].function_name == "printf"repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4; -
getLineOrBuilder
Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined. E.g., if memcpy() is inlined into printf: line[0].function_name == "memcpy" line[1].function_name == "printf"repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;- Specified by:
getLineOrBuilderin interfaceLocationOrBuilder
-
getLineOrBuilderList
Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined. E.g., if memcpy() is inlined into printf: line[0].function_name == "memcpy" line[1].function_name == "printf"repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;- Specified by:
getLineOrBuilderListin interfaceLocationOrBuilder
-
addLineBuilder
Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined. E.g., if memcpy() is inlined into printf: line[0].function_name == "memcpy" line[1].function_name == "printf"repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4; -
addLineBuilder
Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined. E.g., if memcpy() is inlined into printf: line[0].function_name == "memcpy" line[1].function_name == "printf"repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4; -
getLineBuilderList
Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined. E.g., if memcpy() is inlined into printf: line[0].function_name == "memcpy" line[1].function_name == "printf"repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4; -
getIsFolded
public boolean getIsFolded()Provides an indication that multiple symbols map to this location's address, for example due to identical code folding by the linker. In that case the line information above represents one of the multiple symbols. This field must be recomputed when the symbolization state of the profile changes.
bool is_folded = 5;- Specified by:
getIsFoldedin interfaceLocationOrBuilder- Returns:
- The isFolded.
-
setIsFolded
Provides an indication that multiple symbols map to this location's address, for example due to identical code folding by the linker. In that case the line information above represents one of the multiple symbols. This field must be recomputed when the symbolization state of the profile changes.
bool is_folded = 5;- Parameters:
value- The isFolded to set.- Returns:
- This builder for chaining.
-
clearIsFolded
Provides an indication that multiple symbols map to this location's address, for example due to identical code folding by the linker. In that case the line information above represents one of the multiple symbols. This field must be recomputed when the symbolization state of the profile changes.
bool is_folded = 5;- Returns:
- This builder for chaining.
-
getTypeIndex
public int getTypeIndex()Type of frame (e.g. kernel, native, python, hotspot, php). Index into string table.
uint32 type_index = 6;- Specified by:
getTypeIndexin interfaceLocationOrBuilder- Returns:
- The typeIndex.
-
setTypeIndex
Type of frame (e.g. kernel, native, python, hotspot, php). Index into string table.
uint32 type_index = 6;- Parameters:
value- The typeIndex to set.- Returns:
- This builder for chaining.
-
clearTypeIndex
Type of frame (e.g. kernel, native, python, hotspot, php). Index into string table.
uint32 type_index = 6;- Returns:
- This builder for chaining.
-
getAttributesList
References to attributes in Profile.attribute_table. [optional]
repeated uint64 attributes = 7;- Specified by:
getAttributesListin interfaceLocationOrBuilder- Returns:
- A list containing the attributes.
-
getAttributesCount
public int getAttributesCount()References to attributes in Profile.attribute_table. [optional]
repeated uint64 attributes = 7;- Specified by:
getAttributesCountin interfaceLocationOrBuilder- Returns:
- The count of attributes.
-
getAttributes
public long getAttributes(int index) References to attributes in Profile.attribute_table. [optional]
repeated uint64 attributes = 7;- Specified by:
getAttributesin interfaceLocationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The attributes at the given index.
-
setAttributes
References to attributes in Profile.attribute_table. [optional]
repeated uint64 attributes = 7;- Parameters:
index- The index to set the value at.value- The attributes to set.- Returns:
- This builder for chaining.
-
addAttributes
References to attributes in Profile.attribute_table. [optional]
repeated uint64 attributes = 7;- Parameters:
value- The attributes to add.- Returns:
- This builder for chaining.
-
addAllAttributes
References to attributes in Profile.attribute_table. [optional]
repeated uint64 attributes = 7;- Parameters:
values- The attributes to add.- Returns:
- This builder for chaining.
-
clearAttributes
References to attributes in Profile.attribute_table. [optional]
repeated uint64 attributes = 7;- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-