Class Mapping.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Mapping.Builder>
io.opentelemetry.proto.profiles.v1development.Mapping.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, MappingOrBuilder, Cloneable
Enclosing class:
Mapping

public static final class Mapping.Builder extends com.google.protobuf.GeneratedMessage.Builder<Mapping.Builder> implements MappingOrBuilder
 Describes the mapping of a binary in memory, including its address range,
 file offset, and metadata like build ID
 
Protobuf type opentelemetry.proto.profiles.v1development.Mapping
  • 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<Mapping.Builder>
    • clear

      public Mapping.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<Mapping.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<Mapping.Builder>
    • getDefaultInstanceForType

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

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

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

      public Mapping.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<Mapping.Builder>
    • mergeFrom

      public Mapping.Builder mergeFrom(Mapping other)
    • isInitialized

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

      public Mapping.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<Mapping.Builder>
      Throws:
      IOException
    • getMemoryStart

      public long getMemoryStart()
       Address at which the binary (or DLL) is loaded into memory.
       
      uint64 memory_start = 1;
      Specified by:
      getMemoryStart in interface MappingOrBuilder
      Returns:
      The memoryStart.
    • setMemoryStart

      public Mapping.Builder setMemoryStart(long value)
       Address at which the binary (or DLL) is loaded into memory.
       
      uint64 memory_start = 1;
      Parameters:
      value - The memoryStart to set.
      Returns:
      This builder for chaining.
    • clearMemoryStart

      public Mapping.Builder clearMemoryStart()
       Address at which the binary (or DLL) is loaded into memory.
       
      uint64 memory_start = 1;
      Returns:
      This builder for chaining.
    • getMemoryLimit

      public long getMemoryLimit()
       The limit of the address range occupied by this mapping.
       
      uint64 memory_limit = 2;
      Specified by:
      getMemoryLimit in interface MappingOrBuilder
      Returns:
      The memoryLimit.
    • setMemoryLimit

      public Mapping.Builder setMemoryLimit(long value)
       The limit of the address range occupied by this mapping.
       
      uint64 memory_limit = 2;
      Parameters:
      value - The memoryLimit to set.
      Returns:
      This builder for chaining.
    • clearMemoryLimit

      public Mapping.Builder clearMemoryLimit()
       The limit of the address range occupied by this mapping.
       
      uint64 memory_limit = 2;
      Returns:
      This builder for chaining.
    • getFileOffset

      public long getFileOffset()
       Offset in the binary that corresponds to the first mapped address.
       
      uint64 file_offset = 3;
      Specified by:
      getFileOffset in interface MappingOrBuilder
      Returns:
      The fileOffset.
    • setFileOffset

      public Mapping.Builder setFileOffset(long value)
       Offset in the binary that corresponds to the first mapped address.
       
      uint64 file_offset = 3;
      Parameters:
      value - The fileOffset to set.
      Returns:
      This builder for chaining.
    • clearFileOffset

      public Mapping.Builder clearFileOffset()
       Offset in the binary that corresponds to the first mapped address.
       
      uint64 file_offset = 3;
      Returns:
      This builder for chaining.
    • getFilenameStrindex

      public int getFilenameStrindex()
       The object this entry is loaded from.  This can be a filename on
       disk for the main binary and shared libraries, or virtual
       abstractions like "[vdso]".
       
      int32 filename_strindex = 4;
      Specified by:
      getFilenameStrindex in interface MappingOrBuilder
      Returns:
      The filenameStrindex.
    • setFilenameStrindex

      public Mapping.Builder setFilenameStrindex(int value)
       The object this entry is loaded from.  This can be a filename on
       disk for the main binary and shared libraries, or virtual
       abstractions like "[vdso]".
       
      int32 filename_strindex = 4;
      Parameters:
      value - The filenameStrindex to set.
      Returns:
      This builder for chaining.
    • clearFilenameStrindex

      public Mapping.Builder clearFilenameStrindex()
       The object this entry is loaded from.  This can be a filename on
       disk for the main binary and shared libraries, or virtual
       abstractions like "[vdso]".
       
      int32 filename_strindex = 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 MappingOrBuilder
      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 MappingOrBuilder
      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 MappingOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The attributeIndices at the given index.
    • setAttributeIndices

      public Mapping.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 Mapping.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 Mapping.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 Mapping.Builder clearAttributeIndices()
       References to attributes in Profile.attribute_table. [optional]
       
      repeated int32 attribute_indices = 5;
      Returns:
      This builder for chaining.
    • getHasFunctions

      public boolean getHasFunctions()
       The following fields indicate the resolution of symbolic info.
       
      bool has_functions = 6;
      Specified by:
      getHasFunctions in interface MappingOrBuilder
      Returns:
      The hasFunctions.
    • setHasFunctions

      public Mapping.Builder setHasFunctions(boolean value)
       The following fields indicate the resolution of symbolic info.
       
      bool has_functions = 6;
      Parameters:
      value - The hasFunctions to set.
      Returns:
      This builder for chaining.
    • clearHasFunctions

      public Mapping.Builder clearHasFunctions()
       The following fields indicate the resolution of symbolic info.
       
      bool has_functions = 6;
      Returns:
      This builder for chaining.
    • getHasFilenames

      public boolean getHasFilenames()
      bool has_filenames = 7;
      Specified by:
      getHasFilenames in interface MappingOrBuilder
      Returns:
      The hasFilenames.
    • setHasFilenames

      public Mapping.Builder setHasFilenames(boolean value)
      bool has_filenames = 7;
      Parameters:
      value - The hasFilenames to set.
      Returns:
      This builder for chaining.
    • clearHasFilenames

      public Mapping.Builder clearHasFilenames()
      bool has_filenames = 7;
      Returns:
      This builder for chaining.
    • getHasLineNumbers

      public boolean getHasLineNumbers()
      bool has_line_numbers = 8;
      Specified by:
      getHasLineNumbers in interface MappingOrBuilder
      Returns:
      The hasLineNumbers.
    • setHasLineNumbers

      public Mapping.Builder setHasLineNumbers(boolean value)
      bool has_line_numbers = 8;
      Parameters:
      value - The hasLineNumbers to set.
      Returns:
      This builder for chaining.
    • clearHasLineNumbers

      public Mapping.Builder clearHasLineNumbers()
      bool has_line_numbers = 8;
      Returns:
      This builder for chaining.
    • getHasInlineFrames

      public boolean getHasInlineFrames()
      bool has_inline_frames = 9;
      Specified by:
      getHasInlineFrames in interface MappingOrBuilder
      Returns:
      The hasInlineFrames.
    • setHasInlineFrames

      public Mapping.Builder setHasInlineFrames(boolean value)
      bool has_inline_frames = 9;
      Parameters:
      value - The hasInlineFrames to set.
      Returns:
      This builder for chaining.
    • clearHasInlineFrames

      public Mapping.Builder clearHasInlineFrames()
      bool has_inline_frames = 9;
      Returns:
      This builder for chaining.