Class InstrumentationLibrarySpans.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, InstrumentationLibrarySpansOrBuilder, Cloneable
    Enclosing class:
    InstrumentationLibrarySpans

    public static final class InstrumentationLibrarySpans.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<InstrumentationLibrarySpans.Builder>
    implements InstrumentationLibrarySpansOrBuilder
     A collection of Spans produced by an InstrumentationLibrary.
     InstrumentationLibrarySpans is wire-compatible with ScopeSpans for binary
     Protobuf format.
     This message is deprecated and will be removed on June 15, 2022.
     
    Protobuf type opentelemetry.proto.trace.v1.InstrumentationLibrarySpans
    • 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<InstrumentationLibrarySpans.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<InstrumentationLibrarySpans.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

        public boolean hasInstrumentationLibrary()
         The instrumentation library information for the spans in this message.
         Semantically when InstrumentationLibrary isn't set, it is equivalent with
         an empty instrumentation library name (unknown).
         
        .opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
        Specified by:
        hasInstrumentationLibrary in interface InstrumentationLibrarySpansOrBuilder
        Returns:
        Whether the instrumentationLibrary field is set.
      • getInstrumentationLibrary

        public InstrumentationLibrary getInstrumentationLibrary()
         The instrumentation library information for the spans in this message.
         Semantically when InstrumentationLibrary isn't set, it is equivalent with
         an empty instrumentation library name (unknown).
         
        .opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
        Specified by:
        getInstrumentationLibrary in interface InstrumentationLibrarySpansOrBuilder
        Returns:
        The instrumentationLibrary.
      • setInstrumentationLibrary

        public InstrumentationLibrarySpans.Builder setInstrumentationLibrary​(InstrumentationLibrary value)
         The instrumentation library information for the spans in this message.
         Semantically when InstrumentationLibrary isn't set, it is equivalent with
         an empty instrumentation library name (unknown).
         
        .opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
      • setInstrumentationLibrary

        public InstrumentationLibrarySpans.Builder setInstrumentationLibrary​(InstrumentationLibrary.Builder builderForValue)
         The instrumentation library information for the spans in this message.
         Semantically when InstrumentationLibrary isn't set, it is equivalent with
         an empty instrumentation library name (unknown).
         
        .opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
      • mergeInstrumentationLibrary

        public InstrumentationLibrarySpans.Builder mergeInstrumentationLibrary​(InstrumentationLibrary value)
         The instrumentation library information for the spans in this message.
         Semantically when InstrumentationLibrary isn't set, it is equivalent with
         an empty instrumentation library name (unknown).
         
        .opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
      • clearInstrumentationLibrary

        public InstrumentationLibrarySpans.Builder clearInstrumentationLibrary()
         The instrumentation library information for the spans in this message.
         Semantically when InstrumentationLibrary isn't set, it is equivalent with
         an empty instrumentation library name (unknown).
         
        .opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
      • getInstrumentationLibraryBuilder

        public InstrumentationLibrary.Builder getInstrumentationLibraryBuilder()
         The instrumentation library information for the spans in this message.
         Semantically when InstrumentationLibrary isn't set, it is equivalent with
         an empty instrumentation library name (unknown).
         
        .opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
      • getSpans

        public Span getSpans​(int index)
         A list of Spans that originate from an instrumentation library.
         
        repeated .opentelemetry.proto.trace.v1.Span spans = 2;
        Specified by:
        getSpans in interface InstrumentationLibrarySpansOrBuilder
      • setSpans

        public InstrumentationLibrarySpans.Builder setSpans​(int index,
                                                            Span value)
         A list of Spans that originate from an instrumentation library.
         
        repeated .opentelemetry.proto.trace.v1.Span spans = 2;
      • addSpans

        public InstrumentationLibrarySpans.Builder addSpans​(Span value)
         A list of Spans that originate from an instrumentation library.
         
        repeated .opentelemetry.proto.trace.v1.Span spans = 2;
      • addSpans

        public InstrumentationLibrarySpans.Builder addSpans​(int index,
                                                            Span value)
         A list of Spans that originate from an instrumentation library.
         
        repeated .opentelemetry.proto.trace.v1.Span spans = 2;
      • clearSpans

        public InstrumentationLibrarySpans.Builder clearSpans()
         A list of Spans that originate from an instrumentation library.
         
        repeated .opentelemetry.proto.trace.v1.Span spans = 2;
      • removeSpans

        public InstrumentationLibrarySpans.Builder removeSpans​(int index)
         A list of Spans that originate from an instrumentation library.
         
        repeated .opentelemetry.proto.trace.v1.Span spans = 2;
      • getSpansBuilder

        public Span.Builder getSpansBuilder​(int index)
         A list of Spans that originate from an instrumentation library.
         
        repeated .opentelemetry.proto.trace.v1.Span spans = 2;
      • addSpansBuilder

        public Span.Builder addSpansBuilder()
         A list of Spans that originate from an instrumentation library.
         
        repeated .opentelemetry.proto.trace.v1.Span spans = 2;
      • addSpansBuilder

        public Span.Builder addSpansBuilder​(int index)
         A list of Spans that originate from an instrumentation library.
         
        repeated .opentelemetry.proto.trace.v1.Span spans = 2;
      • getSpansBuilderList

        public List<Span.Builder> getSpansBuilderList()
         A list of Spans that originate from an instrumentation library.
         
        repeated .opentelemetry.proto.trace.v1.Span spans = 2;
      • getSchemaUrlBytes

        public com.google.protobuf.ByteString getSchemaUrlBytes()
         This schema_url applies to all spans and span events in the "spans" field.
         
        string schema_url = 3;
        Specified by:
        getSchemaUrlBytes in interface InstrumentationLibrarySpansOrBuilder
        Returns:
        The bytes for schemaUrl.
      • setSchemaUrl

        public InstrumentationLibrarySpans.Builder setSchemaUrl​(String value)
         This schema_url applies to all spans and span events in the "spans" field.
         
        string schema_url = 3;
        Parameters:
        value - The schemaUrl to set.
        Returns:
        This builder for chaining.
      • clearSchemaUrl

        public InstrumentationLibrarySpans.Builder clearSchemaUrl()
         This schema_url applies to all spans and span events in the "spans" field.
         
        string schema_url = 3;
        Returns:
        This builder for chaining.
      • setSchemaUrlBytes

        public InstrumentationLibrarySpans.Builder setSchemaUrlBytes​(com.google.protobuf.ByteString value)
         This schema_url applies to all spans and span events in the "spans" field.
         
        string schema_url = 3;
        Parameters:
        value - The bytes for schemaUrl to set.
        Returns:
        This builder for chaining.
      • mergeUnknownFields

        public final InstrumentationLibrarySpans.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<InstrumentationLibrarySpans.Builder>