Class ResourceSpans.Builder

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

    public static final class ResourceSpans.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ResourceSpans.Builder>
    implements ResourceSpansOrBuilder
     A collection of ScopeSpans from a Resource.
     
    Protobuf type opentelemetry.proto.trace.v1.ResourceSpans
    • 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<ResourceSpans.Builder>
      • clear

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

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

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

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

        public ResourceSpans.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceSpans.Builder>
      • setField

        public ResourceSpans.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceSpans.Builder>
      • clearField

        public ResourceSpans.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceSpans.Builder>
      • clearOneof

        public ResourceSpans.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceSpans.Builder>
      • setRepeatedField

        public ResourceSpans.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      int index,
                                                      Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceSpans.Builder>
      • addRepeatedField

        public ResourceSpans.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceSpans.Builder>
      • mergeFrom

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

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

        public ResourceSpans.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<ResourceSpans.Builder>
        Throws:
        IOException
      • hasResource

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

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

        public ResourceSpans.Builder setResource​(Resource value)
         The resource for the spans in this message.
         If this field is not set then no resource info is known.
         
        .opentelemetry.proto.resource.v1.Resource resource = 1;
      • setResource

        public ResourceSpans.Builder setResource​(Resource.Builder builderForValue)
         The resource for the spans in this message.
         If this field is not set then no resource info is known.
         
        .opentelemetry.proto.resource.v1.Resource resource = 1;
      • mergeResource

        public ResourceSpans.Builder mergeResource​(Resource value)
         The resource for the spans in this message.
         If this field is not set then no resource info is known.
         
        .opentelemetry.proto.resource.v1.Resource resource = 1;
      • clearResource

        public ResourceSpans.Builder clearResource()
         The resource for the spans in this message.
         If this field is not set then no resource info is known.
         
        .opentelemetry.proto.resource.v1.Resource resource = 1;
      • getResourceBuilder

        public Resource.Builder getResourceBuilder()
         The resource for the spans in this message.
         If this field is not set then no resource info is known.
         
        .opentelemetry.proto.resource.v1.Resource resource = 1;
      • getResourceOrBuilder

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

        public int getScopeSpansCount()
         A list of ScopeSpans that originate from a resource.
         
        repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
        Specified by:
        getScopeSpansCount in interface ResourceSpansOrBuilder
      • getScopeSpans

        public ScopeSpans getScopeSpans​(int index)
         A list of ScopeSpans that originate from a resource.
         
        repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
        Specified by:
        getScopeSpans in interface ResourceSpansOrBuilder
      • setScopeSpans

        public ResourceSpans.Builder setScopeSpans​(int index,
                                                   ScopeSpans value)
         A list of ScopeSpans that originate from a resource.
         
        repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
      • setScopeSpans

        public ResourceSpans.Builder setScopeSpans​(int index,
                                                   ScopeSpans.Builder builderForValue)
         A list of ScopeSpans that originate from a resource.
         
        repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
      • addScopeSpans

        public ResourceSpans.Builder addScopeSpans​(ScopeSpans value)
         A list of ScopeSpans that originate from a resource.
         
        repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
      • addScopeSpans

        public ResourceSpans.Builder addScopeSpans​(int index,
                                                   ScopeSpans value)
         A list of ScopeSpans that originate from a resource.
         
        repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
      • addScopeSpans

        public ResourceSpans.Builder addScopeSpans​(ScopeSpans.Builder builderForValue)
         A list of ScopeSpans that originate from a resource.
         
        repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
      • addScopeSpans

        public ResourceSpans.Builder addScopeSpans​(int index,
                                                   ScopeSpans.Builder builderForValue)
         A list of ScopeSpans that originate from a resource.
         
        repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
      • addAllScopeSpans

        public ResourceSpans.Builder addAllScopeSpans​(Iterable<? extends ScopeSpans> values)
         A list of ScopeSpans that originate from a resource.
         
        repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
      • clearScopeSpans

        public ResourceSpans.Builder clearScopeSpans()
         A list of ScopeSpans that originate from a resource.
         
        repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
      • removeScopeSpans

        public ResourceSpans.Builder removeScopeSpans​(int index)
         A list of ScopeSpans that originate from a resource.
         
        repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
      • getScopeSpansBuilder

        public ScopeSpans.Builder getScopeSpansBuilder​(int index)
         A list of ScopeSpans that originate from a resource.
         
        repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
      • addScopeSpansBuilder

        public ScopeSpans.Builder addScopeSpansBuilder()
         A list of ScopeSpans that originate from a resource.
         
        repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
      • addScopeSpansBuilder

        public ScopeSpans.Builder addScopeSpansBuilder​(int index)
         A list of ScopeSpans that originate from a resource.
         
        repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
      • getScopeSpansBuilderList

        public List<ScopeSpans.Builder> getScopeSpansBuilderList()
         A list of ScopeSpans that originate from a resource.
         
        repeated .opentelemetry.proto.trace.v1.ScopeSpans scope_spans = 2;
      • getInstrumentationLibrarySpansList

        @Deprecated
        public List<InstrumentationLibrarySpans> getInstrumentationLibrarySpansList()
        Deprecated.
         A list of InstrumentationLibrarySpans that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead
         scope_spans SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set
         and scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_spans field MAY also set
         scope_spans to carry the same spans, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_spans and
         SHOULD NOT set instrumentation_library_spans.
         JSON receivers SHOULD check if instrumentation_library_spans is set and
         scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
         
        repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
        Specified by:
        getInstrumentationLibrarySpansList in interface ResourceSpansOrBuilder
      • getInstrumentationLibrarySpansCount

        @Deprecated
        public int getInstrumentationLibrarySpansCount()
        Deprecated.
         A list of InstrumentationLibrarySpans that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead
         scope_spans SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set
         and scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_spans field MAY also set
         scope_spans to carry the same spans, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_spans and
         SHOULD NOT set instrumentation_library_spans.
         JSON receivers SHOULD check if instrumentation_library_spans is set and
         scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
         
        repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
        Specified by:
        getInstrumentationLibrarySpansCount in interface ResourceSpansOrBuilder
      • getInstrumentationLibrarySpans

        @Deprecated
        public InstrumentationLibrarySpans getInstrumentationLibrarySpans​(int index)
        Deprecated.
         A list of InstrumentationLibrarySpans that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead
         scope_spans SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set
         and scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_spans field MAY also set
         scope_spans to carry the same spans, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_spans and
         SHOULD NOT set instrumentation_library_spans.
         JSON receivers SHOULD check if instrumentation_library_spans is set and
         scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
         
        repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
        Specified by:
        getInstrumentationLibrarySpans in interface ResourceSpansOrBuilder
      • setInstrumentationLibrarySpans

        @Deprecated
        public ResourceSpans.Builder setInstrumentationLibrarySpans​(int index,
                                                                    InstrumentationLibrarySpans value)
        Deprecated.
         A list of InstrumentationLibrarySpans that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead
         scope_spans SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set
         and scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_spans field MAY also set
         scope_spans to carry the same spans, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_spans and
         SHOULD NOT set instrumentation_library_spans.
         JSON receivers SHOULD check if instrumentation_library_spans is set and
         scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
         
        repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
      • setInstrumentationLibrarySpans

        @Deprecated
        public ResourceSpans.Builder setInstrumentationLibrarySpans​(int index,
                                                                    InstrumentationLibrarySpans.Builder builderForValue)
        Deprecated.
         A list of InstrumentationLibrarySpans that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead
         scope_spans SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set
         and scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_spans field MAY also set
         scope_spans to carry the same spans, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_spans and
         SHOULD NOT set instrumentation_library_spans.
         JSON receivers SHOULD check if instrumentation_library_spans is set and
         scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
         
        repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
      • addInstrumentationLibrarySpans

        @Deprecated
        public ResourceSpans.Builder addInstrumentationLibrarySpans​(InstrumentationLibrarySpans value)
        Deprecated.
         A list of InstrumentationLibrarySpans that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead
         scope_spans SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set
         and scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_spans field MAY also set
         scope_spans to carry the same spans, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_spans and
         SHOULD NOT set instrumentation_library_spans.
         JSON receivers SHOULD check if instrumentation_library_spans is set and
         scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
         
        repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
      • addInstrumentationLibrarySpans

        @Deprecated
        public ResourceSpans.Builder addInstrumentationLibrarySpans​(int index,
                                                                    InstrumentationLibrarySpans value)
        Deprecated.
         A list of InstrumentationLibrarySpans that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead
         scope_spans SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set
         and scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_spans field MAY also set
         scope_spans to carry the same spans, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_spans and
         SHOULD NOT set instrumentation_library_spans.
         JSON receivers SHOULD check if instrumentation_library_spans is set and
         scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
         
        repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
      • addInstrumentationLibrarySpans

        @Deprecated
        public ResourceSpans.Builder addInstrumentationLibrarySpans​(InstrumentationLibrarySpans.Builder builderForValue)
        Deprecated.
         A list of InstrumentationLibrarySpans that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead
         scope_spans SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set
         and scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_spans field MAY also set
         scope_spans to carry the same spans, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_spans and
         SHOULD NOT set instrumentation_library_spans.
         JSON receivers SHOULD check if instrumentation_library_spans is set and
         scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
         
        repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
      • addInstrumentationLibrarySpans

        @Deprecated
        public ResourceSpans.Builder addInstrumentationLibrarySpans​(int index,
                                                                    InstrumentationLibrarySpans.Builder builderForValue)
        Deprecated.
         A list of InstrumentationLibrarySpans that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead
         scope_spans SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set
         and scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_spans field MAY also set
         scope_spans to carry the same spans, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_spans and
         SHOULD NOT set instrumentation_library_spans.
         JSON receivers SHOULD check if instrumentation_library_spans is set and
         scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
         
        repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
      • addAllInstrumentationLibrarySpans

        @Deprecated
        public ResourceSpans.Builder addAllInstrumentationLibrarySpans​(Iterable<? extends InstrumentationLibrarySpans> values)
        Deprecated.
         A list of InstrumentationLibrarySpans that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead
         scope_spans SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set
         and scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_spans field MAY also set
         scope_spans to carry the same spans, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_spans and
         SHOULD NOT set instrumentation_library_spans.
         JSON receivers SHOULD check if instrumentation_library_spans is set and
         scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
         
        repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
      • clearInstrumentationLibrarySpans

        @Deprecated
        public ResourceSpans.Builder clearInstrumentationLibrarySpans()
        Deprecated.
         A list of InstrumentationLibrarySpans that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead
         scope_spans SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set
         and scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_spans field MAY also set
         scope_spans to carry the same spans, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_spans and
         SHOULD NOT set instrumentation_library_spans.
         JSON receivers SHOULD check if instrumentation_library_spans is set and
         scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
         
        repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
      • removeInstrumentationLibrarySpans

        @Deprecated
        public ResourceSpans.Builder removeInstrumentationLibrarySpans​(int index)
        Deprecated.
         A list of InstrumentationLibrarySpans that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead
         scope_spans SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set
         and scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_spans field MAY also set
         scope_spans to carry the same spans, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_spans and
         SHOULD NOT set instrumentation_library_spans.
         JSON receivers SHOULD check if instrumentation_library_spans is set and
         scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
         
        repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
      • getInstrumentationLibrarySpansBuilder

        @Deprecated
        public InstrumentationLibrarySpans.Builder getInstrumentationLibrarySpansBuilder​(int index)
        Deprecated.
         A list of InstrumentationLibrarySpans that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead
         scope_spans SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set
         and scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_spans field MAY also set
         scope_spans to carry the same spans, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_spans and
         SHOULD NOT set instrumentation_library_spans.
         JSON receivers SHOULD check if instrumentation_library_spans is set and
         scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
         
        repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
      • getInstrumentationLibrarySpansOrBuilder

        @Deprecated
        public InstrumentationLibrarySpansOrBuilder getInstrumentationLibrarySpansOrBuilder​(int index)
        Deprecated.
         A list of InstrumentationLibrarySpans that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead
         scope_spans SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set
         and scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_spans field MAY also set
         scope_spans to carry the same spans, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_spans and
         SHOULD NOT set instrumentation_library_spans.
         JSON receivers SHOULD check if instrumentation_library_spans is set and
         scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
         
        repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
        Specified by:
        getInstrumentationLibrarySpansOrBuilder in interface ResourceSpansOrBuilder
      • getInstrumentationLibrarySpansOrBuilderList

        @Deprecated
        public List<? extends InstrumentationLibrarySpansOrBuilder> getInstrumentationLibrarySpansOrBuilderList()
        Deprecated.
         A list of InstrumentationLibrarySpans that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead
         scope_spans SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set
         and scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_spans field MAY also set
         scope_spans to carry the same spans, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_spans and
         SHOULD NOT set instrumentation_library_spans.
         JSON receivers SHOULD check if instrumentation_library_spans is set and
         scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
         
        repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
        Specified by:
        getInstrumentationLibrarySpansOrBuilderList in interface ResourceSpansOrBuilder
      • addInstrumentationLibrarySpansBuilder

        @Deprecated
        public InstrumentationLibrarySpans.Builder addInstrumentationLibrarySpansBuilder()
        Deprecated.
         A list of InstrumentationLibrarySpans that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead
         scope_spans SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set
         and scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_spans field MAY also set
         scope_spans to carry the same spans, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_spans and
         SHOULD NOT set instrumentation_library_spans.
         JSON receivers SHOULD check if instrumentation_library_spans is set and
         scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
         
        repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
      • addInstrumentationLibrarySpansBuilder

        @Deprecated
        public InstrumentationLibrarySpans.Builder addInstrumentationLibrarySpansBuilder​(int index)
        Deprecated.
         A list of InstrumentationLibrarySpans that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead
         scope_spans SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set
         and scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_spans field MAY also set
         scope_spans to carry the same spans, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_spans and
         SHOULD NOT set instrumentation_library_spans.
         JSON receivers SHOULD check if instrumentation_library_spans is set and
         scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
         
        repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
      • getInstrumentationLibrarySpansBuilderList

        @Deprecated
        public List<InstrumentationLibrarySpans.Builder> getInstrumentationLibrarySpansBuilderList()
        Deprecated.
         A list of InstrumentationLibrarySpans that originate from a resource.
         This field is deprecated and will be removed after grace period expires on June 15, 2022.
         During the grace period the following rules SHOULD be followed:
         For Binary Protobufs
         ====================
         Binary Protobuf senders SHOULD NOT set instrumentation_library_spans. Instead
         scope_spans SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_spans is set
         and scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_spans field MAY also set
         scope_spans to carry the same spans, essentially double-publishing the same data.
         Such double-publishing MAY be controlled by a user-settable option.
         If double-publishing is not used then the senders SHOULD set scope_spans and
         SHOULD NOT set instrumentation_library_spans.
         JSON receivers SHOULD check if instrumentation_library_spans is set and
         scope_spans is not set then the value in instrumentation_library_spans
         SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
         If scope_spans is set then instrumentation_library_spans field SHOULD be ignored.
         
        repeated .opentelemetry.proto.trace.v1.InstrumentationLibrarySpans instrumentation_library_spans = 1000 [deprecated = true];
      • getSchemaUrl

        public String getSchemaUrl()
         This schema_url applies to the data in the "resource" field. It does not apply
         to the data in the "scope_spans" field which have their own schema_url field.
         
        string schema_url = 3;
        Specified by:
        getSchemaUrl in interface ResourceSpansOrBuilder
        Returns:
        The schemaUrl.
      • getSchemaUrlBytes

        public com.google.protobuf.ByteString getSchemaUrlBytes()
         This schema_url applies to the data in the "resource" field. It does not apply
         to the data in the "scope_spans" field which have their own schema_url field.
         
        string schema_url = 3;
        Specified by:
        getSchemaUrlBytes in interface ResourceSpansOrBuilder
        Returns:
        The bytes for schemaUrl.
      • setSchemaUrl

        public ResourceSpans.Builder setSchemaUrl​(String value)
         This schema_url applies to the data in the "resource" field. It does not apply
         to the data in the "scope_spans" field which have their own schema_url field.
         
        string schema_url = 3;
        Parameters:
        value - The schemaUrl to set.
        Returns:
        This builder for chaining.
      • clearSchemaUrl

        public ResourceSpans.Builder clearSchemaUrl()
         This schema_url applies to the data in the "resource" field. It does not apply
         to the data in the "scope_spans" field which have their own schema_url field.
         
        string schema_url = 3;
        Returns:
        This builder for chaining.
      • setSchemaUrlBytes

        public ResourceSpans.Builder setSchemaUrlBytes​(com.google.protobuf.ByteString value)
         This schema_url applies to the data in the "resource" field. It does not apply
         to the data in the "scope_spans" field which have their own schema_url field.
         
        string schema_url = 3;
        Parameters:
        value - The bytes for schemaUrl to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ResourceSpans.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<ResourceSpans.Builder>
      • mergeUnknownFields

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