Class LogData.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
org.apache.skywalking.apm.network.logging.v3.LogData.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, LogDataOrBuilder
Enclosing class:
LogData

public static final class LogData.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder> implements LogDataOrBuilder
 Log data is collected through file scratcher of agent.
 Natively, Satellite provides various ways to collect logs.
 
Protobuf type skywalking.v3.LogData
  • 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<LogData.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public LogData.Builder mergeFrom(LogData other)
    • isInitialized

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

      public LogData.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<LogData.Builder>
      Throws:
      IOException
    • getTimestamp

      public long getTimestamp()
       [Optional] The timestamp of the log, in millisecond.
       If not set, OAP server would use the received timestamp as log's timestamp, or relies on the OAP server analyzer.
       
      int64 timestamp = 1;
      Specified by:
      getTimestamp in interface LogDataOrBuilder
      Returns:
      The timestamp.
    • setTimestamp

      public LogData.Builder setTimestamp(long value)
       [Optional] The timestamp of the log, in millisecond.
       If not set, OAP server would use the received timestamp as log's timestamp, or relies on the OAP server analyzer.
       
      int64 timestamp = 1;
      Parameters:
      value - The timestamp to set.
      Returns:
      This builder for chaining.
    • clearTimestamp

      public LogData.Builder clearTimestamp()
       [Optional] The timestamp of the log, in millisecond.
       If not set, OAP server would use the received timestamp as log's timestamp, or relies on the OAP server analyzer.
       
      int64 timestamp = 1;
      Returns:
      This builder for chaining.
    • getService

      public String getService()
       [Required] **Service**. Represents a set/group of workloads which provide the same behaviours for incoming requests.
       The logic name represents the service. This would show as a separate node in the topology.
       The metrics analyzed from the spans, would be aggregated for this entity as the service level.
       If this is not the first element of the streaming, use the previous not-null name as the service name.
       
      string service = 2;
      Specified by:
      getService in interface LogDataOrBuilder
      Returns:
      The service.
    • getServiceBytes

      public com.google.protobuf.ByteString getServiceBytes()
       [Required] **Service**. Represents a set/group of workloads which provide the same behaviours for incoming requests.
       The logic name represents the service. This would show as a separate node in the topology.
       The metrics analyzed from the spans, would be aggregated for this entity as the service level.
       If this is not the first element of the streaming, use the previous not-null name as the service name.
       
      string service = 2;
      Specified by:
      getServiceBytes in interface LogDataOrBuilder
      Returns:
      The bytes for service.
    • setService

      public LogData.Builder setService(String value)
       [Required] **Service**. Represents a set/group of workloads which provide the same behaviours for incoming requests.
       The logic name represents the service. This would show as a separate node in the topology.
       The metrics analyzed from the spans, would be aggregated for this entity as the service level.
       If this is not the first element of the streaming, use the previous not-null name as the service name.
       
      string service = 2;
      Parameters:
      value - The service to set.
      Returns:
      This builder for chaining.
    • clearService

      public LogData.Builder clearService()
       [Required] **Service**. Represents a set/group of workloads which provide the same behaviours for incoming requests.
       The logic name represents the service. This would show as a separate node in the topology.
       The metrics analyzed from the spans, would be aggregated for this entity as the service level.
       If this is not the first element of the streaming, use the previous not-null name as the service name.
       
      string service = 2;
      Returns:
      This builder for chaining.
    • setServiceBytes

      public LogData.Builder setServiceBytes(com.google.protobuf.ByteString value)
       [Required] **Service**. Represents a set/group of workloads which provide the same behaviours for incoming requests.
       The logic name represents the service. This would show as a separate node in the topology.
       The metrics analyzed from the spans, would be aggregated for this entity as the service level.
       If this is not the first element of the streaming, use the previous not-null name as the service name.
       
      string service = 2;
      Parameters:
      value - The bytes for service to set.
      Returns:
      This builder for chaining.
    • getServiceInstance

      public String getServiceInstance()
       [Optional] **Service Instance**. Each individual workload in the Service group is known as an instance. Like `pods` in Kubernetes, it
       doesn't need to be a single OS process, however, if you are using instrument agents, an instance is actually a real OS process.
       The logic name represents the service instance. This would show as a separate node in the instance relationship.
       The metrics analyzed from the spans, would be aggregated for this entity as the service instance level.
       
      string serviceInstance = 3;
      Specified by:
      getServiceInstance in interface LogDataOrBuilder
      Returns:
      The serviceInstance.
    • getServiceInstanceBytes

      public com.google.protobuf.ByteString getServiceInstanceBytes()
       [Optional] **Service Instance**. Each individual workload in the Service group is known as an instance. Like `pods` in Kubernetes, it
       doesn't need to be a single OS process, however, if you are using instrument agents, an instance is actually a real OS process.
       The logic name represents the service instance. This would show as a separate node in the instance relationship.
       The metrics analyzed from the spans, would be aggregated for this entity as the service instance level.
       
      string serviceInstance = 3;
      Specified by:
      getServiceInstanceBytes in interface LogDataOrBuilder
      Returns:
      The bytes for serviceInstance.
    • setServiceInstance

      public LogData.Builder setServiceInstance(String value)
       [Optional] **Service Instance**. Each individual workload in the Service group is known as an instance. Like `pods` in Kubernetes, it
       doesn't need to be a single OS process, however, if you are using instrument agents, an instance is actually a real OS process.
       The logic name represents the service instance. This would show as a separate node in the instance relationship.
       The metrics analyzed from the spans, would be aggregated for this entity as the service instance level.
       
      string serviceInstance = 3;
      Parameters:
      value - The serviceInstance to set.
      Returns:
      This builder for chaining.
    • clearServiceInstance

      public LogData.Builder clearServiceInstance()
       [Optional] **Service Instance**. Each individual workload in the Service group is known as an instance. Like `pods` in Kubernetes, it
       doesn't need to be a single OS process, however, if you are using instrument agents, an instance is actually a real OS process.
       The logic name represents the service instance. This would show as a separate node in the instance relationship.
       The metrics analyzed from the spans, would be aggregated for this entity as the service instance level.
       
      string serviceInstance = 3;
      Returns:
      This builder for chaining.
    • setServiceInstanceBytes

      public LogData.Builder setServiceInstanceBytes(com.google.protobuf.ByteString value)
       [Optional] **Service Instance**. Each individual workload in the Service group is known as an instance. Like `pods` in Kubernetes, it
       doesn't need to be a single OS process, however, if you are using instrument agents, an instance is actually a real OS process.
       The logic name represents the service instance. This would show as a separate node in the instance relationship.
       The metrics analyzed from the spans, would be aggregated for this entity as the service instance level.
       
      string serviceInstance = 3;
      Parameters:
      value - The bytes for serviceInstance to set.
      Returns:
      This builder for chaining.
    • getEndpoint

      public String getEndpoint()
       [Optional] **Endpoint**. A path in a service for incoming requests, such as an HTTP URI path or a gRPC service class + method signature.
       The logic name represents the endpoint, which logs belong.
       
      string endpoint = 4;
      Specified by:
      getEndpoint in interface LogDataOrBuilder
      Returns:
      The endpoint.
    • getEndpointBytes

      public com.google.protobuf.ByteString getEndpointBytes()
       [Optional] **Endpoint**. A path in a service for incoming requests, such as an HTTP URI path or a gRPC service class + method signature.
       The logic name represents the endpoint, which logs belong.
       
      string endpoint = 4;
      Specified by:
      getEndpointBytes in interface LogDataOrBuilder
      Returns:
      The bytes for endpoint.
    • setEndpoint

      public LogData.Builder setEndpoint(String value)
       [Optional] **Endpoint**. A path in a service for incoming requests, such as an HTTP URI path or a gRPC service class + method signature.
       The logic name represents the endpoint, which logs belong.
       
      string endpoint = 4;
      Parameters:
      value - The endpoint to set.
      Returns:
      This builder for chaining.
    • clearEndpoint

      public LogData.Builder clearEndpoint()
       [Optional] **Endpoint**. A path in a service for incoming requests, such as an HTTP URI path or a gRPC service class + method signature.
       The logic name represents the endpoint, which logs belong.
       
      string endpoint = 4;
      Returns:
      This builder for chaining.
    • setEndpointBytes

      public LogData.Builder setEndpointBytes(com.google.protobuf.ByteString value)
       [Optional] **Endpoint**. A path in a service for incoming requests, such as an HTTP URI path or a gRPC service class + method signature.
       The logic name represents the endpoint, which logs belong.
       
      string endpoint = 4;
      Parameters:
      value - The bytes for endpoint to set.
      Returns:
      This builder for chaining.
    • hasBody

      public boolean hasBody()
       [Required] The content of the log.
       
      .skywalking.v3.LogDataBody body = 5;
      Specified by:
      hasBody in interface LogDataOrBuilder
      Returns:
      Whether the body field is set.
    • getBody

      public LogDataBody getBody()
       [Required] The content of the log.
       
      .skywalking.v3.LogDataBody body = 5;
      Specified by:
      getBody in interface LogDataOrBuilder
      Returns:
      The body.
    • setBody

      public LogData.Builder setBody(LogDataBody value)
       [Required] The content of the log.
       
      .skywalking.v3.LogDataBody body = 5;
    • setBody

      public LogData.Builder setBody(LogDataBody.Builder builderForValue)
       [Required] The content of the log.
       
      .skywalking.v3.LogDataBody body = 5;
    • mergeBody

      public LogData.Builder mergeBody(LogDataBody value)
       [Required] The content of the log.
       
      .skywalking.v3.LogDataBody body = 5;
    • clearBody

      public LogData.Builder clearBody()
       [Required] The content of the log.
       
      .skywalking.v3.LogDataBody body = 5;
    • getBodyBuilder

      public LogDataBody.Builder getBodyBuilder()
       [Required] The content of the log.
       
      .skywalking.v3.LogDataBody body = 5;
    • getBodyOrBuilder

      public LogDataBodyOrBuilder getBodyOrBuilder()
       [Required] The content of the log.
       
      .skywalking.v3.LogDataBody body = 5;
      Specified by:
      getBodyOrBuilder in interface LogDataOrBuilder
    • hasTraceContext

      public boolean hasTraceContext()
       [Optional] Logs with trace context
       
      .skywalking.v3.TraceContext traceContext = 6;
      Specified by:
      hasTraceContext in interface LogDataOrBuilder
      Returns:
      Whether the traceContext field is set.
    • getTraceContext

      public TraceContext getTraceContext()
       [Optional] Logs with trace context
       
      .skywalking.v3.TraceContext traceContext = 6;
      Specified by:
      getTraceContext in interface LogDataOrBuilder
      Returns:
      The traceContext.
    • setTraceContext

      public LogData.Builder setTraceContext(TraceContext value)
       [Optional] Logs with trace context
       
      .skywalking.v3.TraceContext traceContext = 6;
    • setTraceContext

      public LogData.Builder setTraceContext(TraceContext.Builder builderForValue)
       [Optional] Logs with trace context
       
      .skywalking.v3.TraceContext traceContext = 6;
    • mergeTraceContext

      public LogData.Builder mergeTraceContext(TraceContext value)
       [Optional] Logs with trace context
       
      .skywalking.v3.TraceContext traceContext = 6;
    • clearTraceContext

      public LogData.Builder clearTraceContext()
       [Optional] Logs with trace context
       
      .skywalking.v3.TraceContext traceContext = 6;
    • getTraceContextBuilder

      public TraceContext.Builder getTraceContextBuilder()
       [Optional] Logs with trace context
       
      .skywalking.v3.TraceContext traceContext = 6;
    • getTraceContextOrBuilder

      public TraceContextOrBuilder getTraceContextOrBuilder()
       [Optional] Logs with trace context
       
      .skywalking.v3.TraceContext traceContext = 6;
      Specified by:
      getTraceContextOrBuilder in interface LogDataOrBuilder
    • hasTags

      public boolean hasTags()
       [Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
       
      .skywalking.v3.LogTags tags = 7;
      Specified by:
      hasTags in interface LogDataOrBuilder
      Returns:
      Whether the tags field is set.
    • getTags

      public LogTags getTags()
       [Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
       
      .skywalking.v3.LogTags tags = 7;
      Specified by:
      getTags in interface LogDataOrBuilder
      Returns:
      The tags.
    • setTags

      public LogData.Builder setTags(LogTags value)
       [Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
       
      .skywalking.v3.LogTags tags = 7;
    • setTags

      public LogData.Builder setTags(LogTags.Builder builderForValue)
       [Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
       
      .skywalking.v3.LogTags tags = 7;
    • mergeTags

      public LogData.Builder mergeTags(LogTags value)
       [Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
       
      .skywalking.v3.LogTags tags = 7;
    • clearTags

      public LogData.Builder clearTags()
       [Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
       
      .skywalking.v3.LogTags tags = 7;
    • getTagsBuilder

      public LogTags.Builder getTagsBuilder()
       [Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
       
      .skywalking.v3.LogTags tags = 7;
    • getTagsOrBuilder

      public LogTagsOrBuilder getTagsOrBuilder()
       [Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
       
      .skywalking.v3.LogTags tags = 7;
      Specified by:
      getTagsOrBuilder in interface LogDataOrBuilder
    • getLayer

      public String getLayer()
       [Optional] Since 9.0.0
       The layer of the service and servce instance. If absent, the OAP would set `layer`=`ID: 2, NAME: general`
       
      string layer = 8;
      Specified by:
      getLayer in interface LogDataOrBuilder
      Returns:
      The layer.
    • getLayerBytes

      public com.google.protobuf.ByteString getLayerBytes()
       [Optional] Since 9.0.0
       The layer of the service and servce instance. If absent, the OAP would set `layer`=`ID: 2, NAME: general`
       
      string layer = 8;
      Specified by:
      getLayerBytes in interface LogDataOrBuilder
      Returns:
      The bytes for layer.
    • setLayer

      public LogData.Builder setLayer(String value)
       [Optional] Since 9.0.0
       The layer of the service and servce instance. If absent, the OAP would set `layer`=`ID: 2, NAME: general`
       
      string layer = 8;
      Parameters:
      value - The layer to set.
      Returns:
      This builder for chaining.
    • clearLayer

      public LogData.Builder clearLayer()
       [Optional] Since 9.0.0
       The layer of the service and servce instance. If absent, the OAP would set `layer`=`ID: 2, NAME: general`
       
      string layer = 8;
      Returns:
      This builder for chaining.
    • setLayerBytes

      public LogData.Builder setLayerBytes(com.google.protobuf.ByteString value)
       [Optional] Since 9.0.0
       The layer of the service and servce instance. If absent, the OAP would set `layer`=`ID: 2, NAME: general`
       
      string layer = 8;
      Parameters:
      value - The bytes for layer to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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