Class TracesData

java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<TracesData,TracesData.Builder>
io.opentelemetry.proto.trace.v1.TracesData
All Implemented Interfaces:
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, TracesDataOrBuilder

public final class TracesData extends com.google.protobuf.GeneratedMessageLite<TracesData,TracesData.Builder> implements TracesDataOrBuilder
 TracesData represents the traces data that can be stored in a persistent storage,
 OR can be embedded by other protocols that transfer OTLP traces data but do
 not implement the OTLP protocol.

 The main difference between this message and collector protocol is that
 in this message there will not be any "control" or "metadata" specific to
 OTLP protocol.

 When new fields are added into this message, the OTLP request MUST be updated
 as well.
 
Protobuf type opentelemetry.proto.trace.v1.TracesData
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    TracesData represents the traces data that can be stored in a persistent storage, OR can be embedded by other protocols that transfer OTLP traces data but do not implement the OTLP protocol.

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

    com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm

    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
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
    static TracesData
     
    getResourceSpans(int index)
    An array of ResourceSpans.
    int
    An array of ResourceSpans.
    An array of ResourceSpans.
    An array of ResourceSpans.
    An array of ResourceSpans.
     
     
    static TracesData
     
    static TracesData
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static TracesData
    parseFrom(byte[] data)
     
    static TracesData
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static TracesData
    parseFrom(com.google.protobuf.ByteString data)
     
    static TracesData
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static TracesData
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static TracesData
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static TracesData
     
    static TracesData
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static TracesData
     
    static TracesData
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<TracesData>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo

    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.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

    • RESOURCE_SPANS_FIELD_NUMBER

      public static final int RESOURCE_SPANS_FIELD_NUMBER
      See Also:
  • Method Details

    • getResourceSpansList

      public List<ResourceSpans> getResourceSpansList()
       An array of ResourceSpans.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.trace.v1.ResourceSpans resource_spans = 1 [json_name = "resourceSpans"];
      Specified by:
      getResourceSpansList in interface TracesDataOrBuilder
    • getResourceSpansOrBuilderList

      public List<? extends ResourceSpansOrBuilder> getResourceSpansOrBuilderList()
       An array of ResourceSpans.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.trace.v1.ResourceSpans resource_spans = 1 [json_name = "resourceSpans"];
    • getResourceSpansCount

      public int getResourceSpansCount()
       An array of ResourceSpans.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.trace.v1.ResourceSpans resource_spans = 1 [json_name = "resourceSpans"];
      Specified by:
      getResourceSpansCount in interface TracesDataOrBuilder
    • getResourceSpans

      public ResourceSpans getResourceSpans(int index)
       An array of ResourceSpans.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.trace.v1.ResourceSpans resource_spans = 1 [json_name = "resourceSpans"];
      Specified by:
      getResourceSpans in interface TracesDataOrBuilder
    • getResourceSpansOrBuilder

      public ResourceSpansOrBuilder getResourceSpansOrBuilder(int index)
       An array of ResourceSpans.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.trace.v1.ResourceSpans resource_spans = 1 [json_name = "resourceSpans"];
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static TracesData.Builder newBuilder()
    • newBuilder

      public static TracesData.Builder newBuilder(TracesData prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<TracesData,TracesData.Builder>
    • getDefaultInstance

      public static TracesData getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<TracesData> parser()