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 Summary

    Modifier and Type
    Method
    Description
    References to attributes in ProfilesDictionary.attribute_table.
    References to attributes in ProfilesDictionary.attribute_table.
     
     
     
    References to attributes in ProfilesDictionary.attribute_table.
    The object this entry is loaded from.
    Offset in the binary that corresponds to the first mapped address.
    The limit of the address range occupied by this mapping.
    Address at which the binary (or DLL) is loaded into memory.
    int
    References to attributes in ProfilesDictionary.attribute_table.
    int
    References to attributes in ProfilesDictionary.attribute_table.
    References to attributes in ProfilesDictionary.attribute_table.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    int
    The object this entry is loaded from.
    long
    Offset in the binary that corresponds to the first mapped address.
    long
    The limit of the address range occupied by this mapping.
    long
    Address at which the binary (or DLL) is loaded into memory.
    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)
     
     
    setAttributeIndices(int index, int value)
    References to attributes in ProfilesDictionary.attribute_table.
    The object this entry is loaded from.
    setFileOffset(long value)
    Offset in the binary that corresponds to the first mapped address.
    setMemoryLimit(long value)
    The limit of the address range occupied by this mapping.
    setMemoryStart(long value)
    Address at which the binary (or DLL) is loaded into memory.

    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<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 ProfilesDictionary.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 ProfilesDictionary.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 ProfilesDictionary.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 ProfilesDictionary.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 ProfilesDictionary.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 ProfilesDictionary.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 ProfilesDictionary.attribute_table. [optional]
       
      repeated int32 attribute_indices = 5;
      Returns:
      This builder for chaining.