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

@Generated public final class ProcessContext extends com.google.protobuf.GeneratedMessage implements ProcessContextOrBuilder
 ProcessContext represents the payload for the process context sharing mechanism.

 This message is designed to be published by OpenTelemetry SDKs via a memory-mapped
 region, allowing external readers (such as the OpenTelemetry eBPF Profiler) to
 discover and read resource attributes from instrumented processes without requiring
 direct integration or process activity. It is not part of OTLP and is not
 exchanged via the OpenTelemetry Collector.

 See OTEP 4719 (https://github.com/open-telemetry/opentelemetry-specification/blob/main/oteps/profiles/4719-process-ctx.md)
 for details of this mechanism.

 Status: [Development]
 
Protobuf type opentelemetry.proto.processcontext.v1development.ProcessContext
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    ProcessContext represents the payload for the process context sharing mechanism.

    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
     

    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
     
    getAttributes(int index)
    Additional attributes to share with external readers that are not part of the standard Resource.
    int
    Additional attributes to share with external readers that are not part of the standard Resource.
    Additional attributes to share with external readers that are not part of the standard Resource.
    Additional attributes to share with external readers that are not part of the standard Resource.
    Additional attributes to share with external readers that are not part of the standard Resource.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Parser<ProcessContext>
     
    The resource for this process.
    The resource for this process.
    int
     
    int
     
    boolean
    The resource for this process.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<ProcessContext>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • Method Details

    • getDescriptor

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

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasResource

      public boolean hasResource()
       The resource for this process.
       If this field is not set then no resource info is known.
       
      .opentelemetry.proto.resource.v1.Resource resource = 1;
      Specified by:
      hasResource in interface ProcessContextOrBuilder
      Returns:
      Whether the resource field is set.
    • getResource

      public Resource getResource()
       The resource for this process.
       If this field is not set then no resource info is known.
       
      .opentelemetry.proto.resource.v1.Resource resource = 1;
      Specified by:
      getResource in interface ProcessContextOrBuilder
      Returns:
      The resource.
    • getResourceOrBuilder

      public ResourceOrBuilder getResourceOrBuilder()
       The resource for this process.
       If this field is not set then no resource info is known.
       
      .opentelemetry.proto.resource.v1.Resource resource = 1;
      Specified by:
      getResourceOrBuilder in interface ProcessContextOrBuilder
    • getAttributesList

      public List<KeyValue> getAttributesList()
       Additional attributes to share with external readers that are not part of
       the standard Resource. [Optional]
      
       This field allows publishers to include supplementary key-value pairs that
       may be useful for external readers but are not part of the SDK's configured
       Resource.
      
       Consider adding any keys here to the profiles semantic conventions in
       https://opentelemetry.io/docs/specs/semconv/general/profiles/
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 2;
      Specified by:
      getAttributesList in interface ProcessContextOrBuilder
    • getAttributesOrBuilderList

      public List<? extends KeyValueOrBuilder> getAttributesOrBuilderList()
       Additional attributes to share with external readers that are not part of
       the standard Resource. [Optional]
      
       This field allows publishers to include supplementary key-value pairs that
       may be useful for external readers but are not part of the SDK's configured
       Resource.
      
       Consider adding any keys here to the profiles semantic conventions in
       https://opentelemetry.io/docs/specs/semconv/general/profiles/
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 2;
      Specified by:
      getAttributesOrBuilderList in interface ProcessContextOrBuilder
    • getAttributesCount

      public int getAttributesCount()
       Additional attributes to share with external readers that are not part of
       the standard Resource. [Optional]
      
       This field allows publishers to include supplementary key-value pairs that
       may be useful for external readers but are not part of the SDK's configured
       Resource.
      
       Consider adding any keys here to the profiles semantic conventions in
       https://opentelemetry.io/docs/specs/semconv/general/profiles/
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 2;
      Specified by:
      getAttributesCount in interface ProcessContextOrBuilder
    • getAttributes

      public KeyValue getAttributes(int index)
       Additional attributes to share with external readers that are not part of
       the standard Resource. [Optional]
      
       This field allows publishers to include supplementary key-value pairs that
       may be useful for external readers but are not part of the SDK's configured
       Resource.
      
       Consider adding any keys here to the profiles semantic conventions in
       https://opentelemetry.io/docs/specs/semconv/general/profiles/
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 2;
      Specified by:
      getAttributes in interface ProcessContextOrBuilder
    • getAttributesOrBuilder

      public KeyValueOrBuilder getAttributesOrBuilder(int index)
       Additional attributes to share with external readers that are not part of
       the standard Resource. [Optional]
      
       This field allows publishers to include supplementary key-value pairs that
       may be useful for external readers but are not part of the SDK's configured
       Resource.
      
       Consider adding any keys here to the profiles semantic conventions in
       https://opentelemetry.io/docs/specs/semconv/general/profiles/
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 2;
      Specified by:
      getAttributesOrBuilder in interface ProcessContextOrBuilder
    • 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 ProcessContext parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static ProcessContext.Builder newBuilder()
    • newBuilder

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

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

      protected ProcessContext.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ProcessContext getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<ProcessContext> 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 ProcessContext getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder