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

    • getDescriptor

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

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

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

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

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

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

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

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

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

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

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

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

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

      public SegmentReference.Builder mergeFrom(SegmentReference other)
    • isInitialized

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

      public SegmentReference.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<SegmentReference.Builder>
      抛出:
      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;
      指定者:
      getRefTypeValue 在接口中 SegmentReferenceOrBuilder
      返回:
      The enum numeric value on the wire for refType.
    • setRefTypeValue

      public SegmentReference.Builder setRefTypeValue(int value)
       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;
      参数:
      value - The enum numeric value on the wire for refType to set.
      返回:
      This builder for chaining.
    • getRefType

      public RefType 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;
      指定者:
      getRefType 在接口中 SegmentReferenceOrBuilder
      返回:
      The refType.
    • setRefType

      public SegmentReference.Builder setRefType(RefType value)
       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;
      参数:
      value - The refType to set.
      返回:
      This builder for chaining.
    • clearRefType

      public SegmentReference.Builder 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;
      返回:
      This builder for chaining.
    • getTraceId

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

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

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

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

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

      public String getParentTraceSegmentId()
       Another segment id as the parent.
       
      string parentTraceSegmentId = 3;
      指定者:
      getParentTraceSegmentId 在接口中 SegmentReferenceOrBuilder
      返回:
      The parentTraceSegmentId.
    • getParentTraceSegmentIdBytes

      public com.google.protobuf.ByteString getParentTraceSegmentIdBytes()
       Another segment id as the parent.
       
      string parentTraceSegmentId = 3;
      指定者:
      getParentTraceSegmentIdBytes 在接口中 SegmentReferenceOrBuilder
      返回:
      The bytes for parentTraceSegmentId.
    • setParentTraceSegmentId

      public SegmentReference.Builder setParentTraceSegmentId(String value)
       Another segment id as the parent.
       
      string parentTraceSegmentId = 3;
      参数:
      value - The parentTraceSegmentId to set.
      返回:
      This builder for chaining.
    • clearParentTraceSegmentId

      public SegmentReference.Builder clearParentTraceSegmentId()
       Another segment id as the parent.
       
      string parentTraceSegmentId = 3;
      返回:
      This builder for chaining.
    • setParentTraceSegmentIdBytes

      public SegmentReference.Builder setParentTraceSegmentIdBytes(com.google.protobuf.ByteString value)
       Another segment id as the parent.
       
      string parentTraceSegmentId = 3;
      参数:
      value - The bytes for parentTraceSegmentId to set.
      返回:
      This builder for chaining.
    • getParentSpanId

      public int getParentSpanId()
       The span id in the parent trace segment.
       
      int32 parentSpanId = 4;
      指定者:
      getParentSpanId 在接口中 SegmentReferenceOrBuilder
      返回:
      The parentSpanId.
    • setParentSpanId

      public SegmentReference.Builder setParentSpanId(int value)
       The span id in the parent trace segment.
       
      int32 parentSpanId = 4;
      参数:
      value - The parentSpanId to set.
      返回:
      This builder for chaining.
    • clearParentSpanId

      public SegmentReference.Builder clearParentSpanId()
       The span id in the parent trace segment.
       
      int32 parentSpanId = 4;
      返回:
      This builder for chaining.
    • getParentService

      public String getParentService()
       The service logic name of the parent segment.
       If refType == CrossThread, this name is as same as the trace segment.
       
      string parentService = 5;
      指定者:
      getParentService 在接口中 SegmentReferenceOrBuilder
      返回:
      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;
      指定者:
      getParentServiceBytes 在接口中 SegmentReferenceOrBuilder
      返回:
      The bytes for parentService.
    • setParentService

      public SegmentReference.Builder setParentService(String value)
       The service logic name of the parent segment.
       If refType == CrossThread, this name is as same as the trace segment.
       
      string parentService = 5;
      参数:
      value - The parentService to set.
      返回:
      This builder for chaining.
    • clearParentService

      public SegmentReference.Builder clearParentService()
       The service logic name of the parent segment.
       If refType == CrossThread, this name is as same as the trace segment.
       
      string parentService = 5;
      返回:
      This builder for chaining.
    • setParentServiceBytes

      public SegmentReference.Builder setParentServiceBytes(com.google.protobuf.ByteString value)
       The service logic name of the parent segment.
       If refType == CrossThread, this name is as same as the trace segment.
       
      string parentService = 5;
      参数:
      value - The bytes for parentService to set.
      返回:
      This builder for chaining.
    • getParentServiceInstance

      public String 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;
      指定者:
      getParentServiceInstance 在接口中 SegmentReferenceOrBuilder
      返回:
      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;
      指定者:
      getParentServiceInstanceBytes 在接口中 SegmentReferenceOrBuilder
      返回:
      The bytes for parentServiceInstance.
    • setParentServiceInstance

      public SegmentReference.Builder setParentServiceInstance(String value)
       The service logic name instance of the parent segment.
       If refType == CrossThread, this name is as same as the trace segment.
       
      string parentServiceInstance = 6;
      参数:
      value - The parentServiceInstance to set.
      返回:
      This builder for chaining.
    • clearParentServiceInstance

      public SegmentReference.Builder 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;
      返回:
      This builder for chaining.
    • setParentServiceInstanceBytes

      public SegmentReference.Builder setParentServiceInstanceBytes(com.google.protobuf.ByteString value)
       The service logic name instance of the parent segment.
       If refType == CrossThread, this name is as same as the trace segment.
       
      string parentServiceInstance = 6;
      参数:
      value - The bytes for parentServiceInstance to set.
      返回:
      This builder for chaining.
    • getParentEndpoint

      public String 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;
      指定者:
      getParentEndpoint 在接口中 SegmentReferenceOrBuilder
      返回:
      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;
      指定者:
      getParentEndpointBytes 在接口中 SegmentReferenceOrBuilder
      返回:
      The bytes for parentEndpoint.
    • setParentEndpoint

      public SegmentReference.Builder setParentEndpoint(String value)
       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;
      参数:
      value - The parentEndpoint to set.
      返回:
      This builder for chaining.
    • clearParentEndpoint

      public SegmentReference.Builder 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;
      返回:
      This builder for chaining.
    • setParentEndpointBytes

      public SegmentReference.Builder setParentEndpointBytes(com.google.protobuf.ByteString value)
       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;
      参数:
      value - The bytes for parentEndpoint to set.
      返回:
      This builder for chaining.
    • getNetworkAddressUsedAtPeer

      public String 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;
      指定者:
      getNetworkAddressUsedAtPeer 在接口中 SegmentReferenceOrBuilder
      返回:
      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;
      指定者:
      getNetworkAddressUsedAtPeerBytes 在接口中 SegmentReferenceOrBuilder
      返回:
      The bytes for networkAddressUsedAtPeer.
    • setNetworkAddressUsedAtPeer

      public SegmentReference.Builder setNetworkAddressUsedAtPeer(String 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;
      参数:
      value - The networkAddressUsedAtPeer to set.
      返回:
      This builder for chaining.
    • clearNetworkAddressUsedAtPeer

      public SegmentReference.Builder 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;
      返回:
      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;
      参数:
      value - The bytes for networkAddressUsedAtPeer to set.
      返回:
      This builder for chaining.
    • setUnknownFields

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

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