类 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
所有已实现的接口:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, LogDataOrBuilder
封闭类:
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
  • 方法详细资料

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      指定者:
      internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
    • clear

      public LogData.Builder clear()
      指定者:
      clear 在接口中 com.google.protobuf.Message.Builder
      指定者:
      clear 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      clear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      指定者:
      getDescriptorForType 在接口中 com.google.protobuf.Message.Builder
      指定者:
      getDescriptorForType 在接口中 com.google.protobuf.MessageOrBuilder
      覆盖:
      getDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
    • getDefaultInstanceForType

      public LogData getDefaultInstanceForType()
      指定者:
      getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuilder
      指定者:
      getDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilder
    • build

      public LogData build()
      指定者:
      build 在接口中 com.google.protobuf.Message.Builder
      指定者:
      build 在接口中 com.google.protobuf.MessageLite.Builder
    • buildPartial

      public LogData buildPartial()
      指定者:
      buildPartial 在接口中 com.google.protobuf.Message.Builder
      指定者:
      buildPartial 在接口中 com.google.protobuf.MessageLite.Builder
    • clone

      public LogData.Builder clone()
      指定者:
      clone 在接口中 com.google.protobuf.Message.Builder
      指定者:
      clone 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      clone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
    • setField

      public LogData.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      指定者:
      setField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      setField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
    • clearField

      public LogData.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      指定者:
      clearField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      clearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
    • clearOneof

      public LogData.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      指定者:
      clearOneof 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      clearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
    • setRepeatedField

      public LogData.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      指定者:
      setRepeatedField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      setRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
    • addRepeatedField

      public LogData.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      指定者:
      addRepeatedField 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      addRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
    • mergeFrom

      public LogData.Builder mergeFrom(com.google.protobuf.Message other)
      指定者:
      mergeFrom 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      mergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<LogData.Builder>
    • mergeFrom

      public LogData.Builder mergeFrom(LogData other)
    • isInitialized

      public final boolean isInitialized()
      指定者:
      isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
      覆盖:
      isInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
    • mergeFrom

      public LogData.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      指定者:
      mergeFrom 在接口中 com.google.protobuf.Message.Builder
      指定者:
      mergeFrom 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      mergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<LogData.Builder>
      抛出:
      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;
      指定者:
      getTimestamp 在接口中 LogDataOrBuilder
      返回:
      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;
      参数:
      value - The timestamp to set.
      返回:
      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;
      返回:
      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;
      指定者:
      getService 在接口中 LogDataOrBuilder
      返回:
      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;
      指定者:
      getServiceBytes 在接口中 LogDataOrBuilder
      返回:
      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;
      参数:
      value - The service to set.
      返回:
      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;
      返回:
      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;
      参数:
      value - The bytes for service to set.
      返回:
      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;
      指定者:
      getServiceInstance 在接口中 LogDataOrBuilder
      返回:
      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;
      指定者:
      getServiceInstanceBytes 在接口中 LogDataOrBuilder
      返回:
      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;
      参数:
      value - The serviceInstance to set.
      返回:
      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;
      返回:
      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;
      参数:
      value - The bytes for serviceInstance to set.
      返回:
      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;
      指定者:
      getEndpoint 在接口中 LogDataOrBuilder
      返回:
      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;
      指定者:
      getEndpointBytes 在接口中 LogDataOrBuilder
      返回:
      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;
      参数:
      value - The endpoint to set.
      返回:
      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;
      返回:
      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;
      参数:
      value - The bytes for endpoint to set.
      返回:
      This builder for chaining.
    • hasBody

      public boolean hasBody()
       [Required] The content of the log.
       
      .skywalking.v3.LogDataBody body = 5;
      指定者:
      hasBody 在接口中 LogDataOrBuilder
      返回:
      Whether the body field is set.
    • getBody

      public LogDataBody getBody()
       [Required] The content of the log.
       
      .skywalking.v3.LogDataBody body = 5;
      指定者:
      getBody 在接口中 LogDataOrBuilder
      返回:
      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;
      指定者:
      getBodyOrBuilder 在接口中 LogDataOrBuilder
    • hasTraceContext

      public boolean hasTraceContext()
       [Optional] Logs with trace context
       
      .skywalking.v3.TraceContext traceContext = 6;
      指定者:
      hasTraceContext 在接口中 LogDataOrBuilder
      返回:
      Whether the traceContext field is set.
    • getTraceContext

      public TraceContext getTraceContext()
       [Optional] Logs with trace context
       
      .skywalking.v3.TraceContext traceContext = 6;
      指定者:
      getTraceContext 在接口中 LogDataOrBuilder
      返回:
      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;
      指定者:
      getTraceContextOrBuilder 在接口中 LogDataOrBuilder
    • hasTags

      public boolean hasTags()
       [Optional] The available tags. OAP server could provide search/analysis capabilities based on these.
       
      .skywalking.v3.LogTags tags = 7;
      指定者:
      hasTags 在接口中 LogDataOrBuilder
      返回:
      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;
      指定者:
      getTags 在接口中 LogDataOrBuilder
      返回:
      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;
      指定者:
      getTagsOrBuilder 在接口中 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;
      指定者:
      getLayer 在接口中 LogDataOrBuilder
      返回:
      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;
      指定者:
      getLayerBytes 在接口中 LogDataOrBuilder
      返回:
      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;
      参数:
      value - The layer to set.
      返回:
      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;
      返回:
      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;
      参数:
      value - The bytes for layer to set.
      返回:
      This builder for chaining.
    • setUnknownFields

      public final LogData.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      指定者:
      setUnknownFields 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      setUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>
    • mergeUnknownFields

      public final LogData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      指定者:
      mergeUnknownFields 在接口中 com.google.protobuf.Message.Builder
      覆盖:
      mergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<LogData.Builder>