Class SpanAttachedEvent.SpanReference.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<SpanAttachedEvent.SpanReference.Builder>
org.apache.skywalking.apm.network.language.agent.v3.SpanAttachedEvent.SpanReference.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, SpanAttachedEvent.SpanReferenceOrBuilder
Enclosing class:
SpanAttachedEvent.SpanReference

public static final class SpanAttachedEvent.SpanReference.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SpanAttachedEvent.SpanReference.Builder> implements SpanAttachedEvent.SpanReferenceOrBuilder
Protobuf type skywalking.v3.SpanAttachedEvent.SpanReference
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SpanAttachedEvent.SpanReference.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<SpanAttachedEvent.SpanReference.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SpanAttachedEvent.SpanReference.Builder>
    • getDefaultInstanceForType

      public SpanAttachedEvent.SpanReference getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SpanAttachedEvent.SpanReference buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<SpanAttachedEvent.SpanReference.Builder>
    • setField

      public SpanAttachedEvent.SpanReference.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<SpanAttachedEvent.SpanReference.Builder>
    • clearField

      public SpanAttachedEvent.SpanReference.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SpanAttachedEvent.SpanReference.Builder>
    • clearOneof

      public SpanAttachedEvent.SpanReference.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SpanAttachedEvent.SpanReference.Builder>
    • setRepeatedField

      public SpanAttachedEvent.SpanReference.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SpanAttachedEvent.SpanReference.Builder>
    • addRepeatedField

      public SpanAttachedEvent.SpanReference.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SpanAttachedEvent.SpanReference.Builder>
    • mergeFrom

      public SpanAttachedEvent.SpanReference.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SpanAttachedEvent.SpanReference.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SpanAttachedEvent.SpanReference.Builder>
    • mergeFrom

      public SpanAttachedEvent.SpanReference.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SpanAttachedEvent.SpanReference.Builder>
      Throws:
      IOException
    • getTypeValue

      public int getTypeValue()
      .skywalking.v3.SpanAttachedEvent.SpanReferenceType type = 1;
      Specified by:
      getTypeValue in interface SpanAttachedEvent.SpanReferenceOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public SpanAttachedEvent.SpanReference.Builder setTypeValue(int value)
      .skywalking.v3.SpanAttachedEvent.SpanReferenceType type = 1;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      .skywalking.v3.SpanAttachedEvent.SpanReferenceType type = 1;
      Specified by:
      getType in interface SpanAttachedEvent.SpanReferenceOrBuilder
      Returns:
      The type.
    • setType

      .skywalking.v3.SpanAttachedEvent.SpanReferenceType type = 1;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      .skywalking.v3.SpanAttachedEvent.SpanReferenceType type = 1;
      Returns:
      This builder for chaining.
    • getTraceId

      public String getTraceId()
       [Optional] A string id represents the whole trace.
       
      string traceId = 2;
      Specified by:
      getTraceId in interface SpanAttachedEvent.SpanReferenceOrBuilder
      Returns:
      The traceId.
    • getTraceIdBytes

      public com.google.protobuf.ByteString getTraceIdBytes()
       [Optional] A string id represents the whole trace.
       
      string traceId = 2;
      Specified by:
      getTraceIdBytes in interface SpanAttachedEvent.SpanReferenceOrBuilder
      Returns:
      The bytes for traceId.
    • setTraceId

       [Optional] A string id represents the whole trace.
       
      string traceId = 2;
      Parameters:
      value - The traceId to set.
      Returns:
      This builder for chaining.
    • clearTraceId

       [Optional] A string id represents the whole trace.
       
      string traceId = 2;
      Returns:
      This builder for chaining.
    • setTraceIdBytes

      public SpanAttachedEvent.SpanReference.Builder setTraceIdBytes(com.google.protobuf.ByteString value)
       [Optional] A string id represents the whole trace.
       
      string traceId = 2;
      Parameters:
      value - The bytes for traceId to set.
      Returns:
      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.
       [Optional] when this span reference
       
      string traceSegmentId = 3;
      Specified by:
      getTraceSegmentId in interface SpanAttachedEvent.SpanReferenceOrBuilder
      Returns:
      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.
       [Optional] when this span reference
       
      string traceSegmentId = 3;
      Specified by:
      getTraceSegmentIdBytes in interface SpanAttachedEvent.SpanReferenceOrBuilder
      Returns:
      The bytes for traceSegmentId.
    • setTraceSegmentId

      public SpanAttachedEvent.SpanReference.Builder setTraceSegmentId(String value)
       A unique id represents this segment. Other segments could use this id to reference as a child segment.
       [Optional] when this span reference
       
      string traceSegmentId = 3;
      Parameters:
      value - The traceSegmentId to set.
      Returns:
      This builder for chaining.
    • clearTraceSegmentId

      public SpanAttachedEvent.SpanReference.Builder clearTraceSegmentId()
       A unique id represents this segment. Other segments could use this id to reference as a child segment.
       [Optional] when this span reference
       
      string traceSegmentId = 3;
      Returns:
      This builder for chaining.
    • setTraceSegmentIdBytes

      public SpanAttachedEvent.SpanReference.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.
       [Optional] when this span reference
       
      string traceSegmentId = 3;
      Parameters:
      value - The bytes for traceSegmentId to set.
      Returns:
      This builder for chaining.
    • getSpanId

      public String getSpanId()
       If type == SKYWALKING
       The number id of the span. Should be unique in the whole segment.
       Starting at 0
       If type == ZIPKIN
       The type of span ID is string.
       
      string spanId = 4;
      Specified by:
      getSpanId in interface SpanAttachedEvent.SpanReferenceOrBuilder
      Returns:
      The spanId.
    • getSpanIdBytes

      public com.google.protobuf.ByteString getSpanIdBytes()
       If type == SKYWALKING
       The number id of the span. Should be unique in the whole segment.
       Starting at 0
       If type == ZIPKIN
       The type of span ID is string.
       
      string spanId = 4;
      Specified by:
      getSpanIdBytes in interface SpanAttachedEvent.SpanReferenceOrBuilder
      Returns:
      The bytes for spanId.
    • setSpanId

       If type == SKYWALKING
       The number id of the span. Should be unique in the whole segment.
       Starting at 0
       If type == ZIPKIN
       The type of span ID is string.
       
      string spanId = 4;
      Parameters:
      value - The spanId to set.
      Returns:
      This builder for chaining.
    • clearSpanId

       If type == SKYWALKING
       The number id of the span. Should be unique in the whole segment.
       Starting at 0
       If type == ZIPKIN
       The type of span ID is string.
       
      string spanId = 4;
      Returns:
      This builder for chaining.
    • setSpanIdBytes

      public SpanAttachedEvent.SpanReference.Builder setSpanIdBytes(com.google.protobuf.ByteString value)
       If type == SKYWALKING
       The number id of the span. Should be unique in the whole segment.
       Starting at 0
       If type == ZIPKIN
       The type of span ID is string.
       
      string spanId = 4;
      Parameters:
      value - The bytes for spanId to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final SpanAttachedEvent.SpanReference.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SpanAttachedEvent.SpanReference.Builder>
    • mergeUnknownFields

      public final SpanAttachedEvent.SpanReference.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SpanAttachedEvent.SpanReference.Builder>