Class LogsData.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<LogsData.Builder>
io.opentelemetry.proto.logs.v1.LogsData.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, LogsDataOrBuilder, Cloneable
Enclosing class:
LogsData

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

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

 When new fields are added into this message, the OTLP request MUST be updated
 as well.
 
Protobuf type opentelemetry.proto.logs.v1.LogsData
  • Method Details

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

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

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

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

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

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

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

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

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

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

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

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

      public LogsData.Builder mergeFrom(LogsData other)
    • isInitialized

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

      public LogsData.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<LogsData.Builder>
      Throws:
      IOException
    • getResourceLogsList

      public List<ResourceLogs> getResourceLogsList()
       An array of ResourceLogs.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
      Specified by:
      getResourceLogsList in interface LogsDataOrBuilder
    • getResourceLogsCount

      public int getResourceLogsCount()
       An array of ResourceLogs.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
      Specified by:
      getResourceLogsCount in interface LogsDataOrBuilder
    • getResourceLogs

      public ResourceLogs getResourceLogs(int index)
       An array of ResourceLogs.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
      Specified by:
      getResourceLogs in interface LogsDataOrBuilder
    • setResourceLogs

      public LogsData.Builder setResourceLogs(int index, ResourceLogs value)
       An array of ResourceLogs.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
    • setResourceLogs

      public LogsData.Builder setResourceLogs(int index, ResourceLogs.Builder builderForValue)
       An array of ResourceLogs.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
    • addResourceLogs

      public LogsData.Builder addResourceLogs(ResourceLogs value)
       An array of ResourceLogs.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
    • addResourceLogs

      public LogsData.Builder addResourceLogs(int index, ResourceLogs value)
       An array of ResourceLogs.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
    • addResourceLogs

      public LogsData.Builder addResourceLogs(ResourceLogs.Builder builderForValue)
       An array of ResourceLogs.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
    • addResourceLogs

      public LogsData.Builder addResourceLogs(int index, ResourceLogs.Builder builderForValue)
       An array of ResourceLogs.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
    • addAllResourceLogs

      public LogsData.Builder addAllResourceLogs(Iterable<? extends ResourceLogs> values)
       An array of ResourceLogs.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
    • clearResourceLogs

      public LogsData.Builder clearResourceLogs()
       An array of ResourceLogs.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
    • removeResourceLogs

      public LogsData.Builder removeResourceLogs(int index)
       An array of ResourceLogs.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
    • getResourceLogsBuilder

      public ResourceLogs.Builder getResourceLogsBuilder(int index)
       An array of ResourceLogs.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
    • getResourceLogsOrBuilder

      public ResourceLogsOrBuilder getResourceLogsOrBuilder(int index)
       An array of ResourceLogs.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
      Specified by:
      getResourceLogsOrBuilder in interface LogsDataOrBuilder
    • getResourceLogsOrBuilderList

      public List<? extends ResourceLogsOrBuilder> getResourceLogsOrBuilderList()
       An array of ResourceLogs.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
      Specified by:
      getResourceLogsOrBuilderList in interface LogsDataOrBuilder
    • addResourceLogsBuilder

      public ResourceLogs.Builder addResourceLogsBuilder()
       An array of ResourceLogs.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
    • addResourceLogsBuilder

      public ResourceLogs.Builder addResourceLogsBuilder(int index)
       An array of ResourceLogs.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
    • getResourceLogsBuilderList

      public List<ResourceLogs.Builder> getResourceLogsBuilderList()
       An array of ResourceLogs.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.logs.v1.ResourceLogs resource_logs = 1;
    • setUnknownFields

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

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