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

@Generated public final class Sample extends com.google.protobuf.GeneratedMessage 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.

 A Sample MUST have have at least one values or timestamps_unix_nano entry. If
 both fields are populated, they MUST contain the same number of elements, and
 the elements at the same index MUST refer to the same event.

 Examples of different ways of representing a sample with the total value of 10:

 Report of a stacktrace at 10 timestamps (consumers must assume the value is 1 for each point):
 values: []
 timestamps_unix_nano: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

 Report of a stacktrace with an aggregated value without timestamps:
 values: [10]
 timestamps_unix_nano: []

 Report of a stacktrace at 4 timestamps where each point records a specific value:
 values: [2, 2, 3, 3]
 timestamps_unix_nano: [1, 2, 3, 4]
 
Protobuf type opentelemetry.proto.profiles.v1development.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.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

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

    com.google.protobuf.AbstractMessage.BuilderParent

    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
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, 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
     
    int
    References to attributes in ProfilesDictionary.attribute_table.
    int
    References to attributes in ProfilesDictionary.attribute_table.
    References to attributes in ProfilesDictionary.attribute_table.
    static Sample
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    int
    Reference to link in ProfilesDictionary.link_table.
    com.google.protobuf.Parser<Sample>
     
    int
     
    int
    Reference to stack in ProfilesDictionary.stack_table.
    long
    Timestamps associated with Sample represented in nanoseconds.
    int
    Timestamps associated with Sample represented in nanoseconds.
    Timestamps associated with Sample represented in nanoseconds.
    long
    getValues(int index)
    The type and unit of each value is defined by Profile.sample_type.
    int
    The type and unit of each value is defined by Profile.sample_type.
    The type and unit of each value is defined by Profile.sample_type.
    int
     
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(Sample prototype)
     
     
    protected Sample.Builder
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    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.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, 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, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    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

    • STACK_INDEX_FIELD_NUMBER

      public static final int STACK_INDEX_FIELD_NUMBER
      See Also:
    • VALUES_FIELD_NUMBER

      public static final int VALUES_FIELD_NUMBER
      See Also:
    • ATTRIBUTE_INDICES_FIELD_NUMBER

      public static final int ATTRIBUTE_INDICES_FIELD_NUMBER
      See Also:
    • TIMESTAMPS_UNIX_NANO_FIELD_NUMBER

      public static final int TIMESTAMPS_UNIX_NANO_FIELD_NUMBER
      See Also:
  • 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
    • getStackIndex

      public int getStackIndex()
       Reference to stack in ProfilesDictionary.stack_table.
       
      int32 stack_index = 1;
      Specified by:
      getStackIndex in interface SampleOrBuilder
      Returns:
      The stackIndex.
    • getValuesList

      public List<Long> getValuesList()
       The type and unit of each value is defined by Profile.sample_type.
       
      repeated int64 values = 2;
      Specified by:
      getValuesList in interface SampleOrBuilder
      Returns:
      A list containing the values.
    • getValuesCount

      public int getValuesCount()
       The type and unit of each value is defined by Profile.sample_type.
       
      repeated int64 values = 2;
      Specified by:
      getValuesCount in interface SampleOrBuilder
      Returns:
      The count of values.
    • getValues

      public long getValues(int index)
       The type and unit of each value is defined by Profile.sample_type.
       
      repeated int64 values = 2;
      Specified by:
      getValues in interface SampleOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The values at the given index.
    • getAttributeIndicesList

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

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

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

      public int getLinkIndex()
       Reference to link in ProfilesDictionary.link_table. [optional]
       It can be unset / set to 0 if no link exists, as link_table[0] is always a 'null' default value.
       
      int32 link_index = 4;
      Specified by:
      getLinkIndex in interface SampleOrBuilder
      Returns:
      The linkIndex.
    • getTimestampsUnixNanoList

      public List<Long> getTimestampsUnixNanoList()
       Timestamps associated with Sample represented in nanoseconds. These
       timestamps should fall within the Profile's time range.
       
      repeated fixed64 timestamps_unix_nano = 5;
      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 should fall within the Profile's time range.
       
      repeated fixed64 timestamps_unix_nano = 5;
      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 should fall within the Profile's time range.
       
      repeated fixed64 timestamps_unix_nano = 5;
      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.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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