Class SegmentReference.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<SegmentReference.Builder>
org.apache.skywalking.apm.network.language.agent.v3.SegmentReference.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,SegmentReferenceOrBuilder
- Enclosing class:
- SegmentReference
public static final class SegmentReference.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<SegmentReference.Builder>
implements SegmentReferenceOrBuilder
Segment reference represents the link between two existing segment.Protobuf type
skywalking.v3.SegmentReference-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The network address, including ip/hostname and port, which is used in the client side.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The endpoint name of the parent segment.The service logic name of the parent segment.The service logic name instance of the parent segment.The span id in the parent trace segment.Another segment id as the parent.Represent the reference type.A string id represents the whole trace.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe network address, including ip/hostname and port, which is used in the client side.com.google.protobuf.ByteStringThe network address, including ip/hostname and port, which is used in the client side.The endpoint name of the parent segment.com.google.protobuf.ByteStringThe endpoint name of the parent segment.The service logic name of the parent segment.com.google.protobuf.ByteStringThe service logic name of the parent segment.The service logic name instance of the parent segment.com.google.protobuf.ByteStringThe service logic name instance of the parent segment.intThe span id in the parent trace segment.Another segment id as the parent.com.google.protobuf.ByteStringAnother segment id as the parent.Represent the reference type.intRepresent the reference type.A string id represents the whole trace.com.google.protobuf.ByteStringA string id represents the whole trace.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(SegmentReference other) final SegmentReference.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The network address, including ip/hostname and port, which is used in the client side.setNetworkAddressUsedAtPeerBytes(com.google.protobuf.ByteString value) The network address, including ip/hostname and port, which is used in the client side.setParentEndpoint(String value) The endpoint name of the parent segment.setParentEndpointBytes(com.google.protobuf.ByteString value) The endpoint name of the parent segment.setParentService(String value) The service logic name of the parent segment.setParentServiceBytes(com.google.protobuf.ByteString value) The service logic name of the parent segment.setParentServiceInstance(String value) The service logic name instance of the parent segment.setParentServiceInstanceBytes(com.google.protobuf.ByteString value) The service logic name instance of the parent segment.setParentSpanId(int value) The span id in the parent trace segment.setParentTraceSegmentId(String value) Another segment id as the parent.setParentTraceSegmentIdBytes(com.google.protobuf.ByteString value) Another segment id as the parent.setRefType(RefType value) Represent the reference type.setRefTypeValue(int value) Represent the reference type.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTraceId(String value) A string id represents the whole trace.setTraceIdBytes(com.google.protobuf.ByteString value) A string id represents the whole trace.final SegmentReference.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SegmentReference.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<SegmentReference.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<SegmentReference.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SegmentReference.Builder>
-
setField
public SegmentReference.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SegmentReference.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SegmentReference.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SegmentReference.Builder>
-
setRepeatedField
public SegmentReference.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SegmentReference.Builder>
-
addRepeatedField
public SegmentReference.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SegmentReference.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SegmentReference.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SegmentReference.Builder>
-
mergeFrom
public SegmentReference.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SegmentReference.Builder>- Throws:
IOException
-
getRefTypeValue
public int getRefTypeValue()Represent the reference type. It could be across thread or across process. Across process means there is a downstream RPC call for this. Typically, refType == CrossProcess means SpanObject#spanType = entry.
.skywalking.v3.RefType refType = 1;- Specified by:
getRefTypeValuein interfaceSegmentReferenceOrBuilder- Returns:
- The enum numeric value on the wire for refType.
-
setRefTypeValue
Represent the reference type. It could be across thread or across process. Across process means there is a downstream RPC call for this. Typically, refType == CrossProcess means SpanObject#spanType = entry.
.skywalking.v3.RefType refType = 1;- Parameters:
value- The enum numeric value on the wire for refType to set.- Returns:
- This builder for chaining.
-
getRefType
Represent the reference type. It could be across thread or across process. Across process means there is a downstream RPC call for this. Typically, refType == CrossProcess means SpanObject#spanType = entry.
.skywalking.v3.RefType refType = 1;- Specified by:
getRefTypein interfaceSegmentReferenceOrBuilder- Returns:
- The refType.
-
setRefType
Represent the reference type. It could be across thread or across process. Across process means there is a downstream RPC call for this. Typically, refType == CrossProcess means SpanObject#spanType = entry.
.skywalking.v3.RefType refType = 1;- Parameters:
value- The refType to set.- Returns:
- This builder for chaining.
-
clearRefType
Represent the reference type. It could be across thread or across process. Across process means there is a downstream RPC call for this. Typically, refType == CrossProcess means SpanObject#spanType = entry.
.skywalking.v3.RefType refType = 1;- Returns:
- This builder for chaining.
-
getTraceId
A string id represents the whole trace.
string traceId = 2;- Specified by:
getTraceIdin interfaceSegmentReferenceOrBuilder- Returns:
- The traceId.
-
getTraceIdBytes
public com.google.protobuf.ByteString getTraceIdBytes()A string id represents the whole trace.
string traceId = 2;- Specified by:
getTraceIdBytesin interfaceSegmentReferenceOrBuilder- Returns:
- The bytes for traceId.
-
setTraceId
A string id represents the whole trace.
string traceId = 2;- Parameters:
value- The traceId to set.- Returns:
- This builder for chaining.
-
clearTraceId
A string id represents the whole trace.
string traceId = 2;- Returns:
- This builder for chaining.
-
setTraceIdBytes
A string id represents the whole trace.
string traceId = 2;- Parameters:
value- The bytes for traceId to set.- Returns:
- This builder for chaining.
-
getParentTraceSegmentId
Another segment id as the parent.
string parentTraceSegmentId = 3;- Specified by:
getParentTraceSegmentIdin interfaceSegmentReferenceOrBuilder- Returns:
- The parentTraceSegmentId.
-
getParentTraceSegmentIdBytes
public com.google.protobuf.ByteString getParentTraceSegmentIdBytes()Another segment id as the parent.
string parentTraceSegmentId = 3;- Specified by:
getParentTraceSegmentIdBytesin interfaceSegmentReferenceOrBuilder- Returns:
- The bytes for parentTraceSegmentId.
-
setParentTraceSegmentId
Another segment id as the parent.
string parentTraceSegmentId = 3;- Parameters:
value- The parentTraceSegmentId to set.- Returns:
- This builder for chaining.
-
clearParentTraceSegmentId
Another segment id as the parent.
string parentTraceSegmentId = 3;- Returns:
- This builder for chaining.
-
setParentTraceSegmentIdBytes
Another segment id as the parent.
string parentTraceSegmentId = 3;- Parameters:
value- The bytes for parentTraceSegmentId to set.- Returns:
- This builder for chaining.
-
getParentSpanId
public int getParentSpanId()The span id in the parent trace segment.
int32 parentSpanId = 4;- Specified by:
getParentSpanIdin interfaceSegmentReferenceOrBuilder- Returns:
- The parentSpanId.
-
setParentSpanId
The span id in the parent trace segment.
int32 parentSpanId = 4;- Parameters:
value- The parentSpanId to set.- Returns:
- This builder for chaining.
-
clearParentSpanId
The span id in the parent trace segment.
int32 parentSpanId = 4;- Returns:
- This builder for chaining.
-
getParentService
The service logic name of the parent segment. If refType == CrossThread, this name is as same as the trace segment.
string parentService = 5;- Specified by:
getParentServicein interfaceSegmentReferenceOrBuilder- Returns:
- The parentService.
-
getParentServiceBytes
public com.google.protobuf.ByteString getParentServiceBytes()The service logic name of the parent segment. If refType == CrossThread, this name is as same as the trace segment.
string parentService = 5;- Specified by:
getParentServiceBytesin interfaceSegmentReferenceOrBuilder- Returns:
- The bytes for parentService.
-
setParentService
The service logic name of the parent segment. If refType == CrossThread, this name is as same as the trace segment.
string parentService = 5;- Parameters:
value- The parentService to set.- Returns:
- This builder for chaining.
-
clearParentService
The service logic name of the parent segment. If refType == CrossThread, this name is as same as the trace segment.
string parentService = 5;- Returns:
- This builder for chaining.
-
setParentServiceBytes
The service logic name of the parent segment. If refType == CrossThread, this name is as same as the trace segment.
string parentService = 5;- Parameters:
value- The bytes for parentService to set.- Returns:
- This builder for chaining.
-
getParentServiceInstance
The service logic name instance of the parent segment. If refType == CrossThread, this name is as same as the trace segment.
string parentServiceInstance = 6;- Specified by:
getParentServiceInstancein interfaceSegmentReferenceOrBuilder- Returns:
- The parentServiceInstance.
-
getParentServiceInstanceBytes
public com.google.protobuf.ByteString getParentServiceInstanceBytes()The service logic name instance of the parent segment. If refType == CrossThread, this name is as same as the trace segment.
string parentServiceInstance = 6;- Specified by:
getParentServiceInstanceBytesin interfaceSegmentReferenceOrBuilder- Returns:
- The bytes for parentServiceInstance.
-
setParentServiceInstance
The service logic name instance of the parent segment. If refType == CrossThread, this name is as same as the trace segment.
string parentServiceInstance = 6;- Parameters:
value- The parentServiceInstance to set.- Returns:
- This builder for chaining.
-
clearParentServiceInstance
The service logic name instance of the parent segment. If refType == CrossThread, this name is as same as the trace segment.
string parentServiceInstance = 6;- Returns:
- This builder for chaining.
-
setParentServiceInstanceBytes
The service logic name instance of the parent segment. If refType == CrossThread, this name is as same as the trace segment.
string parentServiceInstance = 6;- Parameters:
value- The bytes for parentServiceInstance to set.- Returns:
- This builder for chaining.
-
getParentEndpoint
The endpoint name of the parent segment. **Endpoint**. A path in a service for incoming requests, such as an HTTP URI path or a gRPC service class + method signature. In a trace segment, the endpoint name is the name of first entry span.
string parentEndpoint = 7;- Specified by:
getParentEndpointin interfaceSegmentReferenceOrBuilder- Returns:
- The parentEndpoint.
-
getParentEndpointBytes
public com.google.protobuf.ByteString getParentEndpointBytes()The endpoint name of the parent segment. **Endpoint**. A path in a service for incoming requests, such as an HTTP URI path or a gRPC service class + method signature. In a trace segment, the endpoint name is the name of first entry span.
string parentEndpoint = 7;- Specified by:
getParentEndpointBytesin interfaceSegmentReferenceOrBuilder- Returns:
- The bytes for parentEndpoint.
-
setParentEndpoint
The endpoint name of the parent segment. **Endpoint**. A path in a service for incoming requests, such as an HTTP URI path or a gRPC service class + method signature. In a trace segment, the endpoint name is the name of first entry span.
string parentEndpoint = 7;- Parameters:
value- The parentEndpoint to set.- Returns:
- This builder for chaining.
-
clearParentEndpoint
The endpoint name of the parent segment. **Endpoint**. A path in a service for incoming requests, such as an HTTP URI path or a gRPC service class + method signature. In a trace segment, the endpoint name is the name of first entry span.
string parentEndpoint = 7;- Returns:
- This builder for chaining.
-
setParentEndpointBytes
The endpoint name of the parent segment. **Endpoint**. A path in a service for incoming requests, such as an HTTP URI path or a gRPC service class + method signature. In a trace segment, the endpoint name is the name of first entry span.
string parentEndpoint = 7;- Parameters:
value- The bytes for parentEndpoint to set.- Returns:
- This builder for chaining.
-
getNetworkAddressUsedAtPeer
The network address, including ip/hostname and port, which is used in the client side. Such as Client --> use 127.0.11.8:913 -> Server then, in the reference of entry span reported by Server, the value of this field is 127.0.11.8:913. This plays the important role in the SkyWalking STAM(Streaming Topology Analysis Method) For more details, read https://wu-sheng.github.io/STAM/
string networkAddressUsedAtPeer = 8;- Specified by:
getNetworkAddressUsedAtPeerin interfaceSegmentReferenceOrBuilder- Returns:
- The networkAddressUsedAtPeer.
-
getNetworkAddressUsedAtPeerBytes
public com.google.protobuf.ByteString getNetworkAddressUsedAtPeerBytes()The network address, including ip/hostname and port, which is used in the client side. Such as Client --> use 127.0.11.8:913 -> Server then, in the reference of entry span reported by Server, the value of this field is 127.0.11.8:913. This plays the important role in the SkyWalking STAM(Streaming Topology Analysis Method) For more details, read https://wu-sheng.github.io/STAM/
string networkAddressUsedAtPeer = 8;- Specified by:
getNetworkAddressUsedAtPeerBytesin interfaceSegmentReferenceOrBuilder- Returns:
- The bytes for networkAddressUsedAtPeer.
-
setNetworkAddressUsedAtPeer
The network address, including ip/hostname and port, which is used in the client side. Such as Client --> use 127.0.11.8:913 -> Server then, in the reference of entry span reported by Server, the value of this field is 127.0.11.8:913. This plays the important role in the SkyWalking STAM(Streaming Topology Analysis Method) For more details, read https://wu-sheng.github.io/STAM/
string networkAddressUsedAtPeer = 8;- Parameters:
value- The networkAddressUsedAtPeer to set.- Returns:
- This builder for chaining.
-
clearNetworkAddressUsedAtPeer
The network address, including ip/hostname and port, which is used in the client side. Such as Client --> use 127.0.11.8:913 -> Server then, in the reference of entry span reported by Server, the value of this field is 127.0.11.8:913. This plays the important role in the SkyWalking STAM(Streaming Topology Analysis Method) For more details, read https://wu-sheng.github.io/STAM/
string networkAddressUsedAtPeer = 8;- Returns:
- This builder for chaining.
-
setNetworkAddressUsedAtPeerBytes
public SegmentReference.Builder setNetworkAddressUsedAtPeerBytes(com.google.protobuf.ByteString value) The network address, including ip/hostname and port, which is used in the client side. Such as Client --> use 127.0.11.8:913 -> Server then, in the reference of entry span reported by Server, the value of this field is 127.0.11.8:913. This plays the important role in the SkyWalking STAM(Streaming Topology Analysis Method) For more details, read https://wu-sheng.github.io/STAM/
string networkAddressUsedAtPeer = 8;- Parameters:
value- The bytes for networkAddressUsedAtPeer to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final SegmentReference.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SegmentReference.Builder>
-
mergeUnknownFields
public final SegmentReference.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SegmentReference.Builder>
-