Class ResourceLogs.Builder

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

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

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

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

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

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

        public ResourceLogs.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<ResourceLogs.Builder>
      • setField

        public ResourceLogs.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<ResourceLogs.Builder>
      • clearField

        public ResourceLogs.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<ResourceLogs.Builder>
      • clearOneof

        public ResourceLogs.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<ResourceLogs.Builder>
      • setRepeatedField

        public ResourceLogs.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<ResourceLogs.Builder>
      • addRepeatedField

        public ResourceLogs.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<ResourceLogs.Builder>
      • mergeFrom

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

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

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

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

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

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

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

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

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

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

        public ResourceOrBuilder getResourceOrBuilder()
         The resource for the logs in this message.
         If this field is not set then resource info is unknown.
         
        .opentelemetry.proto.resource.v1.Resource resource = 1;
        Specified by:
        getResourceOrBuilder in interface ResourceLogsOrBuilder
      • getScopeLogsCount

        public int getScopeLogsCount()
         A list of ScopeLogs that originate from a resource.
         
        repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
        Specified by:
        getScopeLogsCount in interface ResourceLogsOrBuilder
      • getScopeLogs

        public ScopeLogs getScopeLogs​(int index)
         A list of ScopeLogs that originate from a resource.
         
        repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
        Specified by:
        getScopeLogs in interface ResourceLogsOrBuilder
      • setScopeLogs

        public ResourceLogs.Builder setScopeLogs​(int index,
                                                 ScopeLogs value)
         A list of ScopeLogs that originate from a resource.
         
        repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
      • setScopeLogs

        public ResourceLogs.Builder setScopeLogs​(int index,
                                                 ScopeLogs.Builder builderForValue)
         A list of ScopeLogs that originate from a resource.
         
        repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
      • addScopeLogs

        public ResourceLogs.Builder addScopeLogs​(ScopeLogs value)
         A list of ScopeLogs that originate from a resource.
         
        repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
      • addScopeLogs

        public ResourceLogs.Builder addScopeLogs​(int index,
                                                 ScopeLogs value)
         A list of ScopeLogs that originate from a resource.
         
        repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
      • addScopeLogs

        public ResourceLogs.Builder addScopeLogs​(ScopeLogs.Builder builderForValue)
         A list of ScopeLogs that originate from a resource.
         
        repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
      • addScopeLogs

        public ResourceLogs.Builder addScopeLogs​(int index,
                                                 ScopeLogs.Builder builderForValue)
         A list of ScopeLogs that originate from a resource.
         
        repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
      • addAllScopeLogs

        public ResourceLogs.Builder addAllScopeLogs​(Iterable<? extends ScopeLogs> values)
         A list of ScopeLogs that originate from a resource.
         
        repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
      • clearScopeLogs

        public ResourceLogs.Builder clearScopeLogs()
         A list of ScopeLogs that originate from a resource.
         
        repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
      • removeScopeLogs

        public ResourceLogs.Builder removeScopeLogs​(int index)
         A list of ScopeLogs that originate from a resource.
         
        repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
      • getScopeLogsBuilder

        public ScopeLogs.Builder getScopeLogsBuilder​(int index)
         A list of ScopeLogs that originate from a resource.
         
        repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
      • addScopeLogsBuilder

        public ScopeLogs.Builder addScopeLogsBuilder()
         A list of ScopeLogs that originate from a resource.
         
        repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
      • addScopeLogsBuilder

        public ScopeLogs.Builder addScopeLogsBuilder​(int index)
         A list of ScopeLogs that originate from a resource.
         
        repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
      • getScopeLogsBuilderList

        public List<ScopeLogs.Builder> getScopeLogsBuilderList()
         A list of ScopeLogs that originate from a resource.
         
        repeated .opentelemetry.proto.logs.v1.ScopeLogs scope_logs = 2;
      • getInstrumentationLibraryLogsList

        @Deprecated
        public List<InstrumentationLibraryLogs> getInstrumentationLibraryLogsList()
        Deprecated.
         A list of InstrumentationLibraryLogs 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_logs. Instead
         scope_logs SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set
         and scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_logs field MAY also set
         scope_logs to carry the same logs, 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_logs and
         SHOULD NOT set instrumentation_library_logs.
         JSON receivers SHOULD check if instrumentation_library_logs is set and
         scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
         
        repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 1000 [deprecated = true];
        Specified by:
        getInstrumentationLibraryLogsList in interface ResourceLogsOrBuilder
      • getInstrumentationLibraryLogsCount

        @Deprecated
        public int getInstrumentationLibraryLogsCount()
        Deprecated.
         A list of InstrumentationLibraryLogs 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_logs. Instead
         scope_logs SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set
         and scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_logs field MAY also set
         scope_logs to carry the same logs, 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_logs and
         SHOULD NOT set instrumentation_library_logs.
         JSON receivers SHOULD check if instrumentation_library_logs is set and
         scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
         
        repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 1000 [deprecated = true];
        Specified by:
        getInstrumentationLibraryLogsCount in interface ResourceLogsOrBuilder
      • getInstrumentationLibraryLogs

        @Deprecated
        public InstrumentationLibraryLogs getInstrumentationLibraryLogs​(int index)
        Deprecated.
         A list of InstrumentationLibraryLogs 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_logs. Instead
         scope_logs SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set
         and scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_logs field MAY also set
         scope_logs to carry the same logs, 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_logs and
         SHOULD NOT set instrumentation_library_logs.
         JSON receivers SHOULD check if instrumentation_library_logs is set and
         scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
         
        repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 1000 [deprecated = true];
        Specified by:
        getInstrumentationLibraryLogs in interface ResourceLogsOrBuilder
      • setInstrumentationLibraryLogs

        @Deprecated
        public ResourceLogs.Builder setInstrumentationLibraryLogs​(int index,
                                                                  InstrumentationLibraryLogs value)
        Deprecated.
         A list of InstrumentationLibraryLogs 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_logs. Instead
         scope_logs SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set
         and scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_logs field MAY also set
         scope_logs to carry the same logs, 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_logs and
         SHOULD NOT set instrumentation_library_logs.
         JSON receivers SHOULD check if instrumentation_library_logs is set and
         scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
         
        repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 1000 [deprecated = true];
      • setInstrumentationLibraryLogs

        @Deprecated
        public ResourceLogs.Builder setInstrumentationLibraryLogs​(int index,
                                                                  InstrumentationLibraryLogs.Builder builderForValue)
        Deprecated.
         A list of InstrumentationLibraryLogs 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_logs. Instead
         scope_logs SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set
         and scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_logs field MAY also set
         scope_logs to carry the same logs, 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_logs and
         SHOULD NOT set instrumentation_library_logs.
         JSON receivers SHOULD check if instrumentation_library_logs is set and
         scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
         
        repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 1000 [deprecated = true];
      • addInstrumentationLibraryLogs

        @Deprecated
        public ResourceLogs.Builder addInstrumentationLibraryLogs​(InstrumentationLibraryLogs value)
        Deprecated.
         A list of InstrumentationLibraryLogs 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_logs. Instead
         scope_logs SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set
         and scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_logs field MAY also set
         scope_logs to carry the same logs, 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_logs and
         SHOULD NOT set instrumentation_library_logs.
         JSON receivers SHOULD check if instrumentation_library_logs is set and
         scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
         
        repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 1000 [deprecated = true];
      • addInstrumentationLibraryLogs

        @Deprecated
        public ResourceLogs.Builder addInstrumentationLibraryLogs​(int index,
                                                                  InstrumentationLibraryLogs value)
        Deprecated.
         A list of InstrumentationLibraryLogs 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_logs. Instead
         scope_logs SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set
         and scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_logs field MAY also set
         scope_logs to carry the same logs, 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_logs and
         SHOULD NOT set instrumentation_library_logs.
         JSON receivers SHOULD check if instrumentation_library_logs is set and
         scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
         
        repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 1000 [deprecated = true];
      • addInstrumentationLibraryLogs

        @Deprecated
        public ResourceLogs.Builder addInstrumentationLibraryLogs​(InstrumentationLibraryLogs.Builder builderForValue)
        Deprecated.
         A list of InstrumentationLibraryLogs 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_logs. Instead
         scope_logs SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set
         and scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_logs field MAY also set
         scope_logs to carry the same logs, 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_logs and
         SHOULD NOT set instrumentation_library_logs.
         JSON receivers SHOULD check if instrumentation_library_logs is set and
         scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
         
        repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 1000 [deprecated = true];
      • addInstrumentationLibraryLogs

        @Deprecated
        public ResourceLogs.Builder addInstrumentationLibraryLogs​(int index,
                                                                  InstrumentationLibraryLogs.Builder builderForValue)
        Deprecated.
         A list of InstrumentationLibraryLogs 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_logs. Instead
         scope_logs SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set
         and scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_logs field MAY also set
         scope_logs to carry the same logs, 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_logs and
         SHOULD NOT set instrumentation_library_logs.
         JSON receivers SHOULD check if instrumentation_library_logs is set and
         scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
         
        repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 1000 [deprecated = true];
      • addAllInstrumentationLibraryLogs

        @Deprecated
        public ResourceLogs.Builder addAllInstrumentationLibraryLogs​(Iterable<? extends InstrumentationLibraryLogs> values)
        Deprecated.
         A list of InstrumentationLibraryLogs 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_logs. Instead
         scope_logs SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set
         and scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_logs field MAY also set
         scope_logs to carry the same logs, 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_logs and
         SHOULD NOT set instrumentation_library_logs.
         JSON receivers SHOULD check if instrumentation_library_logs is set and
         scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
         
        repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 1000 [deprecated = true];
      • clearInstrumentationLibraryLogs

        @Deprecated
        public ResourceLogs.Builder clearInstrumentationLibraryLogs()
        Deprecated.
         A list of InstrumentationLibraryLogs 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_logs. Instead
         scope_logs SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set
         and scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_logs field MAY also set
         scope_logs to carry the same logs, 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_logs and
         SHOULD NOT set instrumentation_library_logs.
         JSON receivers SHOULD check if instrumentation_library_logs is set and
         scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
         
        repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 1000 [deprecated = true];
      • removeInstrumentationLibraryLogs

        @Deprecated
        public ResourceLogs.Builder removeInstrumentationLibraryLogs​(int index)
        Deprecated.
         A list of InstrumentationLibraryLogs 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_logs. Instead
         scope_logs SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set
         and scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_logs field MAY also set
         scope_logs to carry the same logs, 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_logs and
         SHOULD NOT set instrumentation_library_logs.
         JSON receivers SHOULD check if instrumentation_library_logs is set and
         scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
         
        repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 1000 [deprecated = true];
      • getInstrumentationLibraryLogsBuilder

        @Deprecated
        public InstrumentationLibraryLogs.Builder getInstrumentationLibraryLogsBuilder​(int index)
        Deprecated.
         A list of InstrumentationLibraryLogs 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_logs. Instead
         scope_logs SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set
         and scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_logs field MAY also set
         scope_logs to carry the same logs, 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_logs and
         SHOULD NOT set instrumentation_library_logs.
         JSON receivers SHOULD check if instrumentation_library_logs is set and
         scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
         
        repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 1000 [deprecated = true];
      • getInstrumentationLibraryLogsOrBuilder

        @Deprecated
        public InstrumentationLibraryLogsOrBuilder getInstrumentationLibraryLogsOrBuilder​(int index)
        Deprecated.
         A list of InstrumentationLibraryLogs 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_logs. Instead
         scope_logs SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set
         and scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_logs field MAY also set
         scope_logs to carry the same logs, 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_logs and
         SHOULD NOT set instrumentation_library_logs.
         JSON receivers SHOULD check if instrumentation_library_logs is set and
         scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
         
        repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 1000 [deprecated = true];
        Specified by:
        getInstrumentationLibraryLogsOrBuilder in interface ResourceLogsOrBuilder
      • getInstrumentationLibraryLogsOrBuilderList

        @Deprecated
        public List<? extends InstrumentationLibraryLogsOrBuilder> getInstrumentationLibraryLogsOrBuilderList()
        Deprecated.
         A list of InstrumentationLibraryLogs 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_logs. Instead
         scope_logs SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set
         and scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_logs field MAY also set
         scope_logs to carry the same logs, 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_logs and
         SHOULD NOT set instrumentation_library_logs.
         JSON receivers SHOULD check if instrumentation_library_logs is set and
         scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
         
        repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 1000 [deprecated = true];
        Specified by:
        getInstrumentationLibraryLogsOrBuilderList in interface ResourceLogsOrBuilder
      • addInstrumentationLibraryLogsBuilder

        @Deprecated
        public InstrumentationLibraryLogs.Builder addInstrumentationLibraryLogsBuilder()
        Deprecated.
         A list of InstrumentationLibraryLogs 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_logs. Instead
         scope_logs SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set
         and scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_logs field MAY also set
         scope_logs to carry the same logs, 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_logs and
         SHOULD NOT set instrumentation_library_logs.
         JSON receivers SHOULD check if instrumentation_library_logs is set and
         scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
         
        repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 1000 [deprecated = true];
      • addInstrumentationLibraryLogsBuilder

        @Deprecated
        public InstrumentationLibraryLogs.Builder addInstrumentationLibraryLogsBuilder​(int index)
        Deprecated.
         A list of InstrumentationLibraryLogs 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_logs. Instead
         scope_logs SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set
         and scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_logs field MAY also set
         scope_logs to carry the same logs, 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_logs and
         SHOULD NOT set instrumentation_library_logs.
         JSON receivers SHOULD check if instrumentation_library_logs is set and
         scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
         
        repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 1000 [deprecated = true];
      • getInstrumentationLibraryLogsBuilderList

        @Deprecated
        public List<InstrumentationLibraryLogs.Builder> getInstrumentationLibraryLogsBuilderList()
        Deprecated.
         A list of InstrumentationLibraryLogs 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_logs. Instead
         scope_logs SHOULD be set.
         Binary Protobuf receivers SHOULD check if instrumentation_library_logs is set
         and scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs SHOULD be ignored.
         For JSON
         ========
         JSON senders that set instrumentation_library_logs field MAY also set
         scope_logs to carry the same logs, 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_logs and
         SHOULD NOT set instrumentation_library_logs.
         JSON receivers SHOULD check if instrumentation_library_logs is set and
         scope_logs is not set then the value in instrumentation_library_logs
         SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
         If scope_logs is set then instrumentation_library_logs field SHOULD be ignored.
         
        repeated .opentelemetry.proto.logs.v1.InstrumentationLibraryLogs instrumentation_library_logs = 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_logs" field which have their own schema_url field.
         
        string schema_url = 3;
        Specified by:
        getSchemaUrl in interface ResourceLogsOrBuilder
        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_logs" field which have their own schema_url field.
         
        string schema_url = 3;
        Specified by:
        getSchemaUrlBytes in interface ResourceLogsOrBuilder
        Returns:
        The bytes for schemaUrl.
      • setSchemaUrl

        public ResourceLogs.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_logs" 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 ResourceLogs.Builder clearSchemaUrl()
         This schema_url applies to the data in the "resource" field. It does not apply
         to the data in the "scope_logs" field which have their own schema_url field.
         
        string schema_url = 3;
        Returns:
        This builder for chaining.
      • setSchemaUrlBytes

        public ResourceLogs.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_logs" 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 ResourceLogs.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<ResourceLogs.Builder>
      • mergeUnknownFields

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