类 SegmentObject.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<SegmentObject.Builder>
org.apache.skywalking.apm.network.language.agent.v3.SegmentObject.Builder
所有已实现的接口:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, SegmentObjectOrBuilder
封闭类:
SegmentObject

public static final class SegmentObject.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SegmentObject.Builder> implements SegmentObjectOrBuilder
 The segment is a collection of spans. It includes all collected spans in a simple one request context, such as a HTTP request process.
 We recommend the agent/SDK report all tracked data of one request once for all.
 Typically, such as in Java, one segment represent all tracked operations(spans) of one request context in the same thread.
 At the same time, in some language there is not a clear `thread` concept like golang.
 Then, it could represent all tracked operations of one request context cross threads/goroutines.
 
Protobuf type skywalking.v3.SegmentObject
  • 方法详细资料

    • getDescriptor

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

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

      public SegmentObject.Builder clear()
      指定者:
      clear 在接口中 com.google.protobuf.Message.Builder
      指定者:
      clear 在接口中 com.google.protobuf.MessageLite.Builder
      覆盖:
      clear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<SegmentObject.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<SegmentObject.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

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

      public SegmentObject.Builder mergeFrom(SegmentObject other)
    • isInitialized

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

      public SegmentObject.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<SegmentObject.Builder>
      抛出:
      IOException
    • getTraceId

      public String getTraceId()
       A string id represents the whole trace.
       
      string traceId = 1;
      指定者:
      getTraceId 在接口中 SegmentObjectOrBuilder
      返回:
      The traceId.
    • getTraceIdBytes

      public com.google.protobuf.ByteString getTraceIdBytes()
       A string id represents the whole trace.
       
      string traceId = 1;
      指定者:
      getTraceIdBytes 在接口中 SegmentObjectOrBuilder
      返回:
      The bytes for traceId.
    • setTraceId

      public SegmentObject.Builder setTraceId(String value)
       A string id represents the whole trace.
       
      string traceId = 1;
      参数:
      value - The traceId to set.
      返回:
      This builder for chaining.
    • clearTraceId

      public SegmentObject.Builder clearTraceId()
       A string id represents the whole trace.
       
      string traceId = 1;
      返回:
      This builder for chaining.
    • setTraceIdBytes

      public SegmentObject.Builder setTraceIdBytes(com.google.protobuf.ByteString value)
       A string id represents the whole trace.
       
      string traceId = 1;
      参数:
      value - The bytes for traceId to set.
      返回:
      This builder for chaining.
    • getTraceSegmentId

      public String getTraceSegmentId()
       A unique id represents this segment. Other segments could use this id to reference as a child segment.
       
      string traceSegmentId = 2;
      指定者:
      getTraceSegmentId 在接口中 SegmentObjectOrBuilder
      返回:
      The traceSegmentId.
    • getTraceSegmentIdBytes

      public com.google.protobuf.ByteString getTraceSegmentIdBytes()
       A unique id represents this segment. Other segments could use this id to reference as a child segment.
       
      string traceSegmentId = 2;
      指定者:
      getTraceSegmentIdBytes 在接口中 SegmentObjectOrBuilder
      返回:
      The bytes for traceSegmentId.
    • setTraceSegmentId

      public SegmentObject.Builder setTraceSegmentId(String value)
       A unique id represents this segment. Other segments could use this id to reference as a child segment.
       
      string traceSegmentId = 2;
      参数:
      value - The traceSegmentId to set.
      返回:
      This builder for chaining.
    • clearTraceSegmentId

      public SegmentObject.Builder clearTraceSegmentId()
       A unique id represents this segment. Other segments could use this id to reference as a child segment.
       
      string traceSegmentId = 2;
      返回:
      This builder for chaining.
    • setTraceSegmentIdBytes

      public SegmentObject.Builder setTraceSegmentIdBytes(com.google.protobuf.ByteString value)
       A unique id represents this segment. Other segments could use this id to reference as a child segment.
       
      string traceSegmentId = 2;
      参数:
      value - The bytes for traceSegmentId to set.
      返回:
      This builder for chaining.
    • getSpansList

      public List<SpanObject> getSpansList()
       Span collections included in this segment.
       
      repeated .skywalking.v3.SpanObject spans = 3;
      指定者:
      getSpansList 在接口中 SegmentObjectOrBuilder
    • getSpansCount

      public int getSpansCount()
       Span collections included in this segment.
       
      repeated .skywalking.v3.SpanObject spans = 3;
      指定者:
      getSpansCount 在接口中 SegmentObjectOrBuilder
    • getSpans

      public SpanObject getSpans(int index)
       Span collections included in this segment.
       
      repeated .skywalking.v3.SpanObject spans = 3;
      指定者:
      getSpans 在接口中 SegmentObjectOrBuilder
    • setSpans

      public SegmentObject.Builder setSpans(int index, SpanObject value)
       Span collections included in this segment.
       
      repeated .skywalking.v3.SpanObject spans = 3;
    • setSpans

      public SegmentObject.Builder setSpans(int index, SpanObject.Builder builderForValue)
       Span collections included in this segment.
       
      repeated .skywalking.v3.SpanObject spans = 3;
    • addSpans

      public SegmentObject.Builder addSpans(SpanObject value)
       Span collections included in this segment.
       
      repeated .skywalking.v3.SpanObject spans = 3;
    • addSpans

      public SegmentObject.Builder addSpans(int index, SpanObject value)
       Span collections included in this segment.
       
      repeated .skywalking.v3.SpanObject spans = 3;
    • addSpans

      public SegmentObject.Builder addSpans(SpanObject.Builder builderForValue)
       Span collections included in this segment.
       
      repeated .skywalking.v3.SpanObject spans = 3;
    • addSpans

      public SegmentObject.Builder addSpans(int index, SpanObject.Builder builderForValue)
       Span collections included in this segment.
       
      repeated .skywalking.v3.SpanObject spans = 3;
    • addAllSpans

      public SegmentObject.Builder addAllSpans(Iterable<? extends SpanObject> values)
       Span collections included in this segment.
       
      repeated .skywalking.v3.SpanObject spans = 3;
    • clearSpans

      public SegmentObject.Builder clearSpans()
       Span collections included in this segment.
       
      repeated .skywalking.v3.SpanObject spans = 3;
    • removeSpans

      public SegmentObject.Builder removeSpans(int index)
       Span collections included in this segment.
       
      repeated .skywalking.v3.SpanObject spans = 3;
    • getSpansBuilder

      public SpanObject.Builder getSpansBuilder(int index)
       Span collections included in this segment.
       
      repeated .skywalking.v3.SpanObject spans = 3;
    • getSpansOrBuilder

      public SpanObjectOrBuilder getSpansOrBuilder(int index)
       Span collections included in this segment.
       
      repeated .skywalking.v3.SpanObject spans = 3;
      指定者:
      getSpansOrBuilder 在接口中 SegmentObjectOrBuilder
    • getSpansOrBuilderList

      public List<? extends SpanObjectOrBuilder> getSpansOrBuilderList()
       Span collections included in this segment.
       
      repeated .skywalking.v3.SpanObject spans = 3;
      指定者:
      getSpansOrBuilderList 在接口中 SegmentObjectOrBuilder
    • addSpansBuilder

      public SpanObject.Builder addSpansBuilder()
       Span collections included in this segment.
       
      repeated .skywalking.v3.SpanObject spans = 3;
    • addSpansBuilder

      public SpanObject.Builder addSpansBuilder(int index)
       Span collections included in this segment.
       
      repeated .skywalking.v3.SpanObject spans = 3;
    • getSpansBuilderList

      public List<SpanObject.Builder> getSpansBuilderList()
       Span collections included in this segment.
       
      repeated .skywalking.v3.SpanObject spans = 3;
    • getService

      public String getService()
       **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.
       
      string service = 4;
      指定者:
      getService 在接口中 SegmentObjectOrBuilder
      返回:
      The service.
    • getServiceBytes

      public com.google.protobuf.ByteString getServiceBytes()
       **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.
       
      string service = 4;
      指定者:
      getServiceBytes 在接口中 SegmentObjectOrBuilder
      返回:
      The bytes for service.
    • setService

      public SegmentObject.Builder setService(String value)
       **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.
       
      string service = 4;
      参数:
      value - The service to set.
      返回:
      This builder for chaining.
    • clearService

      public SegmentObject.Builder clearService()
       **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.
       
      string service = 4;
      返回:
      This builder for chaining.
    • setServiceBytes

      public SegmentObject.Builder setServiceBytes(com.google.protobuf.ByteString value)
       **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.
       
      string service = 4;
      参数:
      value - The bytes for service to set.
      返回:
      This builder for chaining.
    • getServiceInstance

      public String getServiceInstance()
       **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 = 5;
      指定者:
      getServiceInstance 在接口中 SegmentObjectOrBuilder
      返回:
      The serviceInstance.
    • getServiceInstanceBytes

      public com.google.protobuf.ByteString getServiceInstanceBytes()
       **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 = 5;
      指定者:
      getServiceInstanceBytes 在接口中 SegmentObjectOrBuilder
      返回:
      The bytes for serviceInstance.
    • setServiceInstance

      public SegmentObject.Builder setServiceInstance(String value)
       **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 = 5;
      参数:
      value - The serviceInstance to set.
      返回:
      This builder for chaining.
    • clearServiceInstance

      public SegmentObject.Builder clearServiceInstance()
       **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 = 5;
      返回:
      This builder for chaining.
    • setServiceInstanceBytes

      public SegmentObject.Builder setServiceInstanceBytes(com.google.protobuf.ByteString value)
       **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 = 5;
      参数:
      value - The bytes for serviceInstance to set.
      返回:
      This builder for chaining.
    • getIsSizeLimited

      public boolean getIsSizeLimited()
       Whether the segment includes all tracked spans.
       In the production environment tracked, some tasks could include too many spans for one request context, such as a batch update for a cache, or an async job.
       The agent/SDK could optimize or ignore some tracked spans for better performance.
       In this case, the value should be flagged as TRUE.
       
      bool isSizeLimited = 6;
      指定者:
      getIsSizeLimited 在接口中 SegmentObjectOrBuilder
      返回:
      The isSizeLimited.
    • setIsSizeLimited

      public SegmentObject.Builder setIsSizeLimited(boolean value)
       Whether the segment includes all tracked spans.
       In the production environment tracked, some tasks could include too many spans for one request context, such as a batch update for a cache, or an async job.
       The agent/SDK could optimize or ignore some tracked spans for better performance.
       In this case, the value should be flagged as TRUE.
       
      bool isSizeLimited = 6;
      参数:
      value - The isSizeLimited to set.
      返回:
      This builder for chaining.
    • clearIsSizeLimited

      public SegmentObject.Builder clearIsSizeLimited()
       Whether the segment includes all tracked spans.
       In the production environment tracked, some tasks could include too many spans for one request context, such as a batch update for a cache, or an async job.
       The agent/SDK could optimize or ignore some tracked spans for better performance.
       In this case, the value should be flagged as TRUE.
       
      bool isSizeLimited = 6;
      返回:
      This builder for chaining.
    • setUnknownFields

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

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