Class TracesData.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TracesDataOrBuilder, java.lang.Cloneable
    Enclosing class:
    TracesData

    public static final class TracesData.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<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
    • Method Detail

      • 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.Builder<TracesData.Builder>
      • clear

        public TracesData.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.GeneratedMessageV3.Builder<TracesData.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.GeneratedMessageV3.Builder<TracesData.Builder>
      • getDefaultInstanceForType

        public TracesData getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public TracesData build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public TracesData buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • mergeFrom

        public TracesData.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<TracesData.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TracesData.Builder>
      • mergeFrom

        public TracesData.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.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<TracesData.Builder>
        Throws:
        java.io.IOException
      • getResourceSpansList

        public java.util.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;
        Specified by:
        getResourceSpansList in interface TracesDataOrBuilder
      • 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;
        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;
        Specified by:
        getResourceSpans in interface TracesDataOrBuilder
      • setResourceSpans

        public TracesData.Builder setResourceSpans​(int index,
                                                   ResourceSpans value)
         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;
      • setResourceSpans

        public TracesData.Builder setResourceSpans​(int index,
                                                   ResourceSpans.Builder builderForValue)
         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;
      • addResourceSpans

        public TracesData.Builder addResourceSpans​(ResourceSpans value)
         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;
      • addResourceSpans

        public TracesData.Builder addResourceSpans​(int index,
                                                   ResourceSpans value)
         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;
      • addResourceSpans

        public TracesData.Builder addResourceSpans​(ResourceSpans.Builder builderForValue)
         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;
      • addResourceSpans

        public TracesData.Builder addResourceSpans​(int index,
                                                   ResourceSpans.Builder builderForValue)
         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;
      • addAllResourceSpans

        public TracesData.Builder addAllResourceSpans​(java.lang.Iterable<? extends ResourceSpans> values)
         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;
      • clearResourceSpans

        public TracesData.Builder clearResourceSpans()
         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;
      • removeResourceSpans

        public TracesData.Builder removeResourceSpans​(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;
      • getResourceSpansBuilder

        public ResourceSpans.Builder getResourceSpansBuilder​(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;
      • 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;
        Specified by:
        getResourceSpansOrBuilder in interface TracesDataOrBuilder
      • getResourceSpansOrBuilderList

        public java.util.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;
        Specified by:
        getResourceSpansOrBuilderList in interface TracesDataOrBuilder
      • addResourceSpansBuilder

        public ResourceSpans.Builder addResourceSpansBuilder()
         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;
      • addResourceSpansBuilder

        public ResourceSpans.Builder addResourceSpansBuilder​(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;
      • getResourceSpansBuilderList

        public java.util.List<ResourceSpans.Builder> getResourceSpansBuilderList()
         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;
      • setUnknownFields

        public final TracesData.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TracesData.Builder>
      • mergeUnknownFields

        public final TracesData.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TracesData.Builder>