类 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-
方法概要
修饰符和类型方法说明addAllSpans(Iterable<? extends SpanObject> values) Span collections included in this segment.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addSpans(int index, SpanObject value) Span collections included in this segment.addSpans(int index, SpanObject.Builder builderForValue) Span collections included in this segment.addSpans(SpanObject value) Span collections included in this segment.addSpans(SpanObject.Builder builderForValue) Span collections included in this segment.Span collections included in this segment.addSpansBuilder(int index) Span collections included in this segment.build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Whether the segment includes all tracked spans.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) **Service**.**Service Instance**.Span collections included in this segment.A string id represents the whole trace.A unique id represents this segment.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhether the segment includes all tracked spans.**Service**.com.google.protobuf.ByteString**Service**.**Service Instance**.com.google.protobuf.ByteString**Service Instance**.getSpans(int index) Span collections included in this segment.getSpansBuilder(int index) Span collections included in this segment.Span collections included in this segment.intSpan collections included in this segment.Span collections included in this segment.getSpansOrBuilder(int index) Span collections included in this segment.List<? extends SpanObjectOrBuilder>Span collections included in this segment.A string id represents the whole trace.com.google.protobuf.ByteStringA string id represents the whole trace.A unique id represents this segment.com.google.protobuf.ByteStringA unique id represents this segment.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(SegmentObject other) final SegmentObject.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeSpans(int index) Span collections included in this segment.setIsSizeLimited(boolean value) Whether the segment includes all tracked spans.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setService(String value) **Service**.setServiceBytes(com.google.protobuf.ByteString value) **Service**.setServiceInstance(String value) **Service Instance**.setServiceInstanceBytes(com.google.protobuf.ByteString value) **Service Instance**.setSpans(int index, SpanObject value) Span collections included in this segment.setSpans(int index, SpanObject.Builder builderForValue) Span collections included in this segment.setTraceId(String value) A string id represents the whole trace.setTraceIdBytes(com.google.protobuf.ByteString value) A string id represents the whole trace.setTraceSegmentId(String value) A unique id represents this segment.setTraceSegmentIdBytes(com.google.protobuf.ByteString value) A unique id represents this segment.final SegmentObject.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3从类继承的方法 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString从类继承的方法 com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException从接口继承的方法 com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom从接口继承的方法 com.google.protobuf.MessageLite.Builder
mergeFrom从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
方法详细资料
-
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
- 指定者:
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
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
build
- 指定者:
build在接口中com.google.protobuf.Message.Builder- 指定者:
build在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
- 指定者:
buildPartial在接口中com.google.protobuf.Message.Builder- 指定者:
buildPartial在接口中com.google.protobuf.MessageLite.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
- 指定者:
clearField在接口中com.google.protobuf.Message.Builder- 覆盖:
clearField在类中com.google.protobuf.GeneratedMessageV3.Builder<SegmentObject.Builder>
-
clearOneof
- 指定者:
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
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<SegmentObject.Builder>
-
mergeFrom
-
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
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
A string id represents the whole trace.
string traceId = 1;- 参数:
value- The traceId to set.- 返回:
- This builder for chaining.
-
clearTraceId
A string id represents the whole trace.
string traceId = 1;- 返回:
- This builder for chaining.
-
setTraceIdBytes
A string id represents the whole trace.
string traceId = 1;- 参数:
value- The bytes for traceId to set.- 返回:
- This builder for chaining.
-
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
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
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
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
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
Span collections included in this segment.
repeated .skywalking.v3.SpanObject spans = 3;- 指定者:
getSpans在接口中SegmentObjectOrBuilder
-
setSpans
Span collections included in this segment.
repeated .skywalking.v3.SpanObject spans = 3; -
setSpans
Span collections included in this segment.
repeated .skywalking.v3.SpanObject spans = 3; -
addSpans
Span collections included in this segment.
repeated .skywalking.v3.SpanObject spans = 3; -
addSpans
Span collections included in this segment.
repeated .skywalking.v3.SpanObject spans = 3; -
addSpans
Span collections included in this segment.
repeated .skywalking.v3.SpanObject spans = 3; -
addSpans
Span collections included in this segment.
repeated .skywalking.v3.SpanObject spans = 3; -
addAllSpans
Span collections included in this segment.
repeated .skywalking.v3.SpanObject spans = 3; -
clearSpans
Span collections included in this segment.
repeated .skywalking.v3.SpanObject spans = 3; -
removeSpans
Span collections included in this segment.
repeated .skywalking.v3.SpanObject spans = 3; -
getSpansBuilder
Span collections included in this segment.
repeated .skywalking.v3.SpanObject spans = 3; -
getSpansOrBuilder
Span collections included in this segment.
repeated .skywalking.v3.SpanObject spans = 3;- 指定者:
getSpansOrBuilder在接口中SegmentObjectOrBuilder
-
getSpansOrBuilderList
Span collections included in this segment.
repeated .skywalking.v3.SpanObject spans = 3;- 指定者:
getSpansOrBuilderList在接口中SegmentObjectOrBuilder
-
addSpansBuilder
Span collections included in this segment.
repeated .skywalking.v3.SpanObject spans = 3; -
addSpansBuilder
Span collections included in this segment.
repeated .skywalking.v3.SpanObject spans = 3; -
getSpansBuilderList
Span collections included in this segment.
repeated .skywalking.v3.SpanObject spans = 3; -
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
**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
**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
**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
**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
**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
**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
**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
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
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>
-