java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.opentelemetry.proto.profiles.v1experimental.Sample
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SampleOrBuilder, Serializable

public final class Sample extends com.google.protobuf.GeneratedMessageV3 implements SampleOrBuilder
 Each Sample records values encountered in some program
 context. The program context is typically a stack trace, perhaps
 augmented with auxiliary information like the thread-id, some
 indicator of a higher level request being handled etc.
 
Protobuf type opentelemetry.proto.profiles.v1experimental.Sample
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Each Sample records values encountered in some program context.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    long
    getAttributes(int index)
    References to attributes in Profile.attribute_table.
    int
    References to attributes in Profile.attribute_table.
    References to attributes in Profile.attribute_table.
    static Sample
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    getLabel(int index)
    label includes additional context for this sample.
    int
    label includes additional context for this sample.
    label includes additional context for this sample.
    getLabelOrBuilder(int index)
    label includes additional context for this sample.
    List<? extends LabelOrBuilder>
    label includes additional context for this sample.
    long
    Reference to link in Profile.link_table.
    long
    getLocationIndex(int index)
    The indices recorded here correspond to locations in Profile.location.
    int
    The indices recorded here correspond to locations in Profile.location.
    The indices recorded here correspond to locations in Profile.location.
    long
    locations_length along with locations_start_index refers to a slice of locations in Profile.location.
    long
    locations_start_index along with locations_length refers to to a slice of locations in Profile.location.
    com.google.protobuf.Parser<Sample>
     
    int
     
    int
    A 128bit id that uniquely identifies this stacktrace, globally.
    long
    Timestamps associated with Sample represented in nanoseconds.
    int
    Timestamps associated with Sample represented in nanoseconds.
    Timestamps associated with Sample represented in nanoseconds.
    long
    getValue(int index)
    The type and unit of each value is defined by the corresponding entry in Profile.sample_type.
    int
    The type and unit of each value is defined by the corresponding entry in Profile.sample_type.
    The type and unit of each value is defined by the corresponding entry in Profile.sample_type.
    int
     
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(Sample prototype)
     
     
    protected Sample.Builder
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
    static Sample
     
    static Sample
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Sample
    parseFrom(byte[] data)
     
    static Sample
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Sample
    parseFrom(com.google.protobuf.ByteString data)
     
    static Sample
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Sample
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static Sample
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Sample
     
    static Sample
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Sample
     
    static Sample
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Sample>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • LOCATION_INDEX_FIELD_NUMBER

      public static final int LOCATION_INDEX_FIELD_NUMBER
      See Also:
    • LOCATIONS_START_INDEX_FIELD_NUMBER

      public static final int LOCATIONS_START_INDEX_FIELD_NUMBER
      See Also:
    • LOCATIONS_LENGTH_FIELD_NUMBER

      public static final int LOCATIONS_LENGTH_FIELD_NUMBER
      See Also:
    • STACKTRACE_ID_INDEX_FIELD_NUMBER

      public static final int STACKTRACE_ID_INDEX_FIELD_NUMBER
      See Also:
    • VALUE_FIELD_NUMBER

      public static final int VALUE_FIELD_NUMBER
      See Also:
    • LABEL_FIELD_NUMBER

      public static final int LABEL_FIELD_NUMBER
      See Also:
    • ATTRIBUTES_FIELD_NUMBER

      public static final int ATTRIBUTES_FIELD_NUMBER
      See Also:
    • TIMESTAMPS_UNIX_NANO_FIELD_NUMBER

      public static final int TIMESTAMPS_UNIX_NANO_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getLocationIndexList

      public List<Long> getLocationIndexList()
       The indices recorded here correspond to locations in Profile.location.
       The leaf is at location_index[0]. [deprecated, superseded by locations_start_index / locations_length]
       
      repeated uint64 location_index = 1;
      Specified by:
      getLocationIndexList in interface SampleOrBuilder
      Returns:
      A list containing the locationIndex.
    • getLocationIndexCount

      public int getLocationIndexCount()
       The indices recorded here correspond to locations in Profile.location.
       The leaf is at location_index[0]. [deprecated, superseded by locations_start_index / locations_length]
       
      repeated uint64 location_index = 1;
      Specified by:
      getLocationIndexCount in interface SampleOrBuilder
      Returns:
      The count of locationIndex.
    • getLocationIndex

      public long getLocationIndex(int index)
       The indices recorded here correspond to locations in Profile.location.
       The leaf is at location_index[0]. [deprecated, superseded by locations_start_index / locations_length]
       
      repeated uint64 location_index = 1;
      Specified by:
      getLocationIndex in interface SampleOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The locationIndex at the given index.
    • getLocationsStartIndex

      public long getLocationsStartIndex()
       locations_start_index along with locations_length refers to to a slice of locations in Profile.location.
       Supersedes location_index.
       
      uint64 locations_start_index = 7;
      Specified by:
      getLocationsStartIndex in interface SampleOrBuilder
      Returns:
      The locationsStartIndex.
    • getLocationsLength

      public long getLocationsLength()
       locations_length along with locations_start_index refers to a slice of locations in Profile.location.
       Supersedes location_index.
       
      uint64 locations_length = 8;
      Specified by:
      getLocationsLength in interface SampleOrBuilder
      Returns:
      The locationsLength.
    • getStacktraceIdIndex

      public int getStacktraceIdIndex()
       A 128bit id that uniquely identifies this stacktrace, globally. Index into string table. [optional]
       
      uint32 stacktrace_id_index = 9;
      Specified by:
      getStacktraceIdIndex in interface SampleOrBuilder
      Returns:
      The stacktraceIdIndex.
    • getValueList

      public List<Long> getValueList()
       The type and unit of each value is defined by the corresponding
       entry in Profile.sample_type. All samples must have the same
       number of values, the same as the length of Profile.sample_type.
       When aggregating multiple samples into a single sample, the
       result has a list of values that is the element-wise sum of the
       lists of the originals.
       
      repeated int64 value = 2;
      Specified by:
      getValueList in interface SampleOrBuilder
      Returns:
      A list containing the value.
    • getValueCount

      public int getValueCount()
       The type and unit of each value is defined by the corresponding
       entry in Profile.sample_type. All samples must have the same
       number of values, the same as the length of Profile.sample_type.
       When aggregating multiple samples into a single sample, the
       result has a list of values that is the element-wise sum of the
       lists of the originals.
       
      repeated int64 value = 2;
      Specified by:
      getValueCount in interface SampleOrBuilder
      Returns:
      The count of value.
    • getValue

      public long getValue(int index)
       The type and unit of each value is defined by the corresponding
       entry in Profile.sample_type. All samples must have the same
       number of values, the same as the length of Profile.sample_type.
       When aggregating multiple samples into a single sample, the
       result has a list of values that is the element-wise sum of the
       lists of the originals.
       
      repeated int64 value = 2;
      Specified by:
      getValue in interface SampleOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The value at the given index.
    • getLabelList

      public List<Label> getLabelList()
       label includes additional context for this sample. It can include
       things like a thread id, allocation size, etc.
      
       NOTE: While possible, having multiple values for the same label key is
       strongly discouraged and should never be used. Most tools (e.g. pprof) do
       not have good (or any) support for multi-value labels. And an even more
       discouraged case is having a string label and a numeric label of the same
       name on a sample.  Again, possible to express, but should not be used.
       [deprecated, superseded by attributes]
       
      repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3;
      Specified by:
      getLabelList in interface SampleOrBuilder
    • getLabelOrBuilderList

      public List<? extends LabelOrBuilder> getLabelOrBuilderList()
       label includes additional context for this sample. It can include
       things like a thread id, allocation size, etc.
      
       NOTE: While possible, having multiple values for the same label key is
       strongly discouraged and should never be used. Most tools (e.g. pprof) do
       not have good (or any) support for multi-value labels. And an even more
       discouraged case is having a string label and a numeric label of the same
       name on a sample.  Again, possible to express, but should not be used.
       [deprecated, superseded by attributes]
       
      repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3;
      Specified by:
      getLabelOrBuilderList in interface SampleOrBuilder
    • getLabelCount

      public int getLabelCount()
       label includes additional context for this sample. It can include
       things like a thread id, allocation size, etc.
      
       NOTE: While possible, having multiple values for the same label key is
       strongly discouraged and should never be used. Most tools (e.g. pprof) do
       not have good (or any) support for multi-value labels. And an even more
       discouraged case is having a string label and a numeric label of the same
       name on a sample.  Again, possible to express, but should not be used.
       [deprecated, superseded by attributes]
       
      repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3;
      Specified by:
      getLabelCount in interface SampleOrBuilder
    • getLabel

      public Label getLabel(int index)
       label includes additional context for this sample. It can include
       things like a thread id, allocation size, etc.
      
       NOTE: While possible, having multiple values for the same label key is
       strongly discouraged and should never be used. Most tools (e.g. pprof) do
       not have good (or any) support for multi-value labels. And an even more
       discouraged case is having a string label and a numeric label of the same
       name on a sample.  Again, possible to express, but should not be used.
       [deprecated, superseded by attributes]
       
      repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3;
      Specified by:
      getLabel in interface SampleOrBuilder
    • getLabelOrBuilder

      public LabelOrBuilder getLabelOrBuilder(int index)
       label includes additional context for this sample. It can include
       things like a thread id, allocation size, etc.
      
       NOTE: While possible, having multiple values for the same label key is
       strongly discouraged and should never be used. Most tools (e.g. pprof) do
       not have good (or any) support for multi-value labels. And an even more
       discouraged case is having a string label and a numeric label of the same
       name on a sample.  Again, possible to express, but should not be used.
       [deprecated, superseded by attributes]
       
      repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3;
      Specified by:
      getLabelOrBuilder in interface SampleOrBuilder
    • getAttributesList

      public List<Long> getAttributesList()
       References to attributes in Profile.attribute_table. [optional]
       
      repeated uint64 attributes = 10;
      Specified by:
      getAttributesList in interface SampleOrBuilder
      Returns:
      A list containing the attributes.
    • getAttributesCount

      public int getAttributesCount()
       References to attributes in Profile.attribute_table. [optional]
       
      repeated uint64 attributes = 10;
      Specified by:
      getAttributesCount in interface SampleOrBuilder
      Returns:
      The count of attributes.
    • getAttributes

      public long getAttributes(int index)
       References to attributes in Profile.attribute_table. [optional]
       
      repeated uint64 attributes = 10;
      Specified by:
      getAttributes in interface SampleOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The attributes at the given index.
    • getLink

      public long getLink()
       Reference to link in Profile.link_table. [optional]
       
      uint64 link = 12;
      Specified by:
      getLink in interface SampleOrBuilder
      Returns:
      The link.
    • getTimestampsUnixNanoList

      public List<Long> getTimestampsUnixNanoList()
       Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
       to fall within the Profile's time range. [optional]
       
      repeated uint64 timestamps_unix_nano = 13;
      Specified by:
      getTimestampsUnixNanoList in interface SampleOrBuilder
      Returns:
      A list containing the timestampsUnixNano.
    • getTimestampsUnixNanoCount

      public int getTimestampsUnixNanoCount()
       Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
       to fall within the Profile's time range. [optional]
       
      repeated uint64 timestamps_unix_nano = 13;
      Specified by:
      getTimestampsUnixNanoCount in interface SampleOrBuilder
      Returns:
      The count of timestampsUnixNano.
    • getTimestampsUnixNano

      public long getTimestampsUnixNano(int index)
       Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
       to fall within the Profile's time range. [optional]
       
      repeated uint64 timestamps_unix_nano = 13;
      Specified by:
      getTimestampsUnixNano in interface SampleOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The timestampsUnixNano at the given index.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Sample parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Sample parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Sample parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Sample parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Sample parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Sample parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Sample parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Sample parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Sample parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Sample parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Sample parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Sample parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Sample.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Sample.Builder newBuilder()
    • newBuilder

      public static Sample.Builder newBuilder(Sample prototype)
    • toBuilder

      public Sample.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Sample.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Sample getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Sample> parser()
    • getParserForType

      public com.google.protobuf.Parser<Sample> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Sample getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder