Class Location.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Location.Builder>
io.opentelemetry.proto.profiles.v1development.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.GeneratedMessage.Builder<Location.Builder> implements LocationOrBuilder
 Describes function and line table debug information.
 
Protobuf type opentelemetry.proto.profiles.v1development.Location
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    References to attributes in Profile.attribute_table.
    addLine(int index, Line value)
    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.
    addLine(Line value)
    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.
     
     
     
    The instruction address for this location, if available.
    References to attributes in Profile.attribute_table.
    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.
    Reference to mapping in Profile.mapping_table.
    long
    The instruction address for this location, if available.
    int
    References to attributes in Profile.attribute_table.
    int
    References to attributes in Profile.attribute_table.
    References to attributes in Profile.attribute_table.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    boolean
    Provides 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.
    int
    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.
    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.
    int
    Reference to mapping in Profile.mapping_table.
    boolean
    Reference to mapping in Profile.mapping_table.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    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.
    setAttributeIndices(int index, int value)
    References to attributes in Profile.attribute_table.
    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.
    setLine(int index, Line value)
    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(int value)
    Reference to mapping in Profile.mapping_table.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Location.Builder>
    • clear

      public Location.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Location.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Location.Builder>
    • getDefaultInstanceForType

      public Location getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Location build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Location buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Location.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Location.Builder>
    • mergeFrom

      public Location.Builder mergeFrom(Location other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Location.Builder>
    • mergeFrom

      public Location.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Location.Builder>
      Throws:
      IOException
    • hasMappingIndex

      public boolean hasMappingIndex()
       Reference to mapping in Profile.mapping_table.
       It can be unset if the mapping is unknown or not applicable for
       this profile type.
       
      optional int32 mapping_index = 1;
      Specified by:
      hasMappingIndex in interface LocationOrBuilder
      Returns:
      Whether the mappingIndex field is set.
    • getMappingIndex

      public int getMappingIndex()
       Reference to mapping in Profile.mapping_table.
       It can be unset if the mapping is unknown or not applicable for
       this profile type.
       
      optional int32 mapping_index = 1;
      Specified by:
      getMappingIndex in interface LocationOrBuilder
      Returns:
      The mappingIndex.
    • setMappingIndex

      public Location.Builder setMappingIndex(int value)
       Reference to mapping in Profile.mapping_table.
       It can be unset if the mapping is unknown or not applicable for
       this profile type.
       
      optional int32 mapping_index = 1;
      Parameters:
      value - The mappingIndex to set.
      Returns:
      This builder for chaining.
    • clearMappingIndex

      public Location.Builder clearMappingIndex()
       Reference to mapping in Profile.mapping_table.
       It can be unset if the mapping is unknown or not applicable for
       this profile type.
       
      optional int32 mapping_index = 1;
      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 = 2;
      Specified by:
      getAddress in interface LocationOrBuilder
      Returns:
      The address.
    • setAddress

      public Location.Builder setAddress(long value)
       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 = 2;
      Parameters:
      value - The address to set.
      Returns:
      This builder for chaining.
    • clearAddress

      public Location.Builder 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 = 2;
      Returns:
      This builder for chaining.
    • getLineList

      public List<Line> 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.v1development.Line line = 3;
      Specified by:
      getLineList in interface LocationOrBuilder
    • 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.v1development.Line line = 3;
      Specified by:
      getLineCount in interface LocationOrBuilder
    • getLine

      public Line 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.
      
       E.g., if memcpy() is inlined into printf:
       line[0].function_name == "memcpy"
       line[1].function_name == "printf"
       
      repeated .opentelemetry.proto.profiles.v1development.Line line = 3;
      Specified by:
      getLine in interface LocationOrBuilder
    • setLine

      public Location.Builder setLine(int index, Line value)
       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.v1development.Line line = 3;
    • setLine

      public Location.Builder 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.
      
       E.g., if memcpy() is inlined into printf:
       line[0].function_name == "memcpy"
       line[1].function_name == "printf"
       
      repeated .opentelemetry.proto.profiles.v1development.Line line = 3;
    • addLine

      public Location.Builder addLine(Line value)
       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.v1development.Line line = 3;
    • addLine

      public Location.Builder addLine(int index, Line value)
       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.v1development.Line line = 3;
    • addLine

      public Location.Builder 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.
      
       E.g., if memcpy() is inlined into printf:
       line[0].function_name == "memcpy"
       line[1].function_name == "printf"
       
      repeated .opentelemetry.proto.profiles.v1development.Line line = 3;
    • addLine

      public Location.Builder 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.
      
       E.g., if memcpy() is inlined into printf:
       line[0].function_name == "memcpy"
       line[1].function_name == "printf"
       
      repeated .opentelemetry.proto.profiles.v1development.Line line = 3;
    • addAllLine

      public Location.Builder 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.
      
       E.g., if memcpy() is inlined into printf:
       line[0].function_name == "memcpy"
       line[1].function_name == "printf"
       
      repeated .opentelemetry.proto.profiles.v1development.Line line = 3;
    • clearLine

      public Location.Builder 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.v1development.Line line = 3;
    • removeLine

      public Location.Builder 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.
      
       E.g., if memcpy() is inlined into printf:
       line[0].function_name == "memcpy"
       line[1].function_name == "printf"
       
      repeated .opentelemetry.proto.profiles.v1development.Line line = 3;
    • getLineBuilder

      public Line.Builder 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.
      
       E.g., if memcpy() is inlined into printf:
       line[0].function_name == "memcpy"
       line[1].function_name == "printf"
       
      repeated .opentelemetry.proto.profiles.v1development.Line line = 3;
    • getLineOrBuilder

      public LineOrBuilder 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.
      
       E.g., if memcpy() is inlined into printf:
       line[0].function_name == "memcpy"
       line[1].function_name == "printf"
       
      repeated .opentelemetry.proto.profiles.v1development.Line line = 3;
      Specified by:
      getLineOrBuilder in interface LocationOrBuilder
    • getLineOrBuilderList

      public List<? extends LineOrBuilder> 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.v1development.Line line = 3;
      Specified by:
      getLineOrBuilderList in interface LocationOrBuilder
    • addLineBuilder

      public Line.Builder 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.v1development.Line line = 3;
    • addLineBuilder

      public Line.Builder 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.
      
       E.g., if memcpy() is inlined into printf:
       line[0].function_name == "memcpy"
       line[1].function_name == "printf"
       
      repeated .opentelemetry.proto.profiles.v1development.Line line = 3;
    • getLineBuilderList

      public List<Line.Builder> 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.v1development.Line line = 3;
    • 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 = 4;
      Specified by:
      getIsFolded in interface LocationOrBuilder
      Returns:
      The isFolded.
    • setIsFolded

      public Location.Builder 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. 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 = 4;
      Parameters:
      value - The isFolded to set.
      Returns:
      This builder for chaining.
    • clearIsFolded

      public Location.Builder 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 = 4;
      Returns:
      This builder for chaining.
    • getAttributeIndicesList

      public List<Integer> getAttributeIndicesList()
       References to attributes in Profile.attribute_table. [optional]
       
      repeated int32 attribute_indices = 5;
      Specified by:
      getAttributeIndicesList in interface LocationOrBuilder
      Returns:
      A list containing the attributeIndices.
    • getAttributeIndicesCount

      public int getAttributeIndicesCount()
       References to attributes in Profile.attribute_table. [optional]
       
      repeated int32 attribute_indices = 5;
      Specified by:
      getAttributeIndicesCount in interface LocationOrBuilder
      Returns:
      The count of attributeIndices.
    • getAttributeIndices

      public int getAttributeIndices(int index)
       References to attributes in Profile.attribute_table. [optional]
       
      repeated int32 attribute_indices = 5;
      Specified by:
      getAttributeIndices in interface LocationOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The attributeIndices at the given index.
    • setAttributeIndices

      public Location.Builder setAttributeIndices(int index, int value)
       References to attributes in Profile.attribute_table. [optional]
       
      repeated int32 attribute_indices = 5;
      Parameters:
      index - The index to set the value at.
      value - The attributeIndices to set.
      Returns:
      This builder for chaining.
    • addAttributeIndices

      public Location.Builder addAttributeIndices(int value)
       References to attributes in Profile.attribute_table. [optional]
       
      repeated int32 attribute_indices = 5;
      Parameters:
      value - The attributeIndices to add.
      Returns:
      This builder for chaining.
    • addAllAttributeIndices

      public Location.Builder addAllAttributeIndices(Iterable<? extends Integer> values)
       References to attributes in Profile.attribute_table. [optional]
       
      repeated int32 attribute_indices = 5;
      Parameters:
      values - The attributeIndices to add.
      Returns:
      This builder for chaining.
    • clearAttributeIndices

      public Location.Builder clearAttributeIndices()
       References to attributes in Profile.attribute_table. [optional]
       
      repeated int32 attribute_indices = 5;
      Returns:
      This builder for chaining.