All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.navercorp.pinpoint.grpc.trace.PSpanEvent Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: v1/Span.proto

package com.navercorp.pinpoint.grpc.trace;

/**
 * Protobuf type {@code v1.PSpanEvent}
 */
public final class PSpanEvent extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:v1.PSpanEvent)
    PSpanEventOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PSpanEvent.newBuilder() to construct.
  private PSpanEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private PSpanEvent() {
    annotation_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new PSpanEvent();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private PSpanEvent(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 8: {

            sequence_ = input.readInt32();
            break;
          }
          case 16: {

            depth_ = input.readInt32();
            break;
          }
          case 24: {

            startElapsed_ = input.readInt32();
            break;
          }
          case 32: {

            endElapsed_ = input.readInt32();
            break;
          }
          case 40: {

            serviceType_ = input.readSInt32();
            break;
          }
          case 50: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              annotation_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            annotation_.add(
                input.readMessage(com.navercorp.pinpoint.grpc.trace.PAnnotation.parser(), extensionRegistry));
            break;
          }
          case 80: {

            apiId_ = input.readSInt32();
            break;
          }
          case 90: {
            com.navercorp.pinpoint.grpc.trace.PIntStringValue.Builder subBuilder = null;
            if (exceptionInfo_ != null) {
              subBuilder = exceptionInfo_.toBuilder();
            }
            exceptionInfo_ = input.readMessage(com.navercorp.pinpoint.grpc.trace.PIntStringValue.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(exceptionInfo_);
              exceptionInfo_ = subBuilder.buildPartial();
            }

            break;
          }
          case 98: {
            com.navercorp.pinpoint.grpc.trace.PNextEvent.Builder subBuilder = null;
            if (nextEvent_ != null) {
              subBuilder = nextEvent_.toBuilder();
            }
            nextEvent_ = input.readMessage(com.navercorp.pinpoint.grpc.trace.PNextEvent.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(nextEvent_);
              nextEvent_ = subBuilder.buildPartial();
            }

            break;
          }
          case 104: {

            asyncEvent_ = input.readInt32();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        annotation_ = java.util.Collections.unmodifiableList(annotation_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.navercorp.pinpoint.grpc.trace.SpanProto.internal_static_v1_PSpanEvent_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.navercorp.pinpoint.grpc.trace.SpanProto.internal_static_v1_PSpanEvent_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.navercorp.pinpoint.grpc.trace.PSpanEvent.class, com.navercorp.pinpoint.grpc.trace.PSpanEvent.Builder.class);
  }

  public static final int SEQUENCE_FIELD_NUMBER = 1;
  private int sequence_;
  /**
   * int32 sequence = 1;
   * @return The sequence.
   */
  @java.lang.Override
  public int getSequence() {
    return sequence_;
  }

  public static final int DEPTH_FIELD_NUMBER = 2;
  private int depth_;
  /**
   * int32 depth = 2;
   * @return The depth.
   */
  @java.lang.Override
  public int getDepth() {
    return depth_;
  }

  public static final int STARTELAPSED_FIELD_NUMBER = 3;
  private int startElapsed_;
  /**
   * int32 startElapsed = 3;
   * @return The startElapsed.
   */
  @java.lang.Override
  public int getStartElapsed() {
    return startElapsed_;
  }

  public static final int ENDELAPSED_FIELD_NUMBER = 4;
  private int endElapsed_;
  /**
   * int32 endElapsed = 4;
   * @return The endElapsed.
   */
  @java.lang.Override
  public int getEndElapsed() {
    return endElapsed_;
  }

  public static final int SERVICETYPE_FIELD_NUMBER = 5;
  private int serviceType_;
  /**
   * sint32 serviceType = 5;
   * @return The serviceType.
   */
  @java.lang.Override
  public int getServiceType() {
    return serviceType_;
  }

  public static final int ANNOTATION_FIELD_NUMBER = 6;
  private java.util.List annotation_;
  /**
   * repeated .v1.PAnnotation annotation = 6;
   */
  @java.lang.Override
  public java.util.List getAnnotationList() {
    return annotation_;
  }
  /**
   * repeated .v1.PAnnotation annotation = 6;
   */
  @java.lang.Override
  public java.util.List 
      getAnnotationOrBuilderList() {
    return annotation_;
  }
  /**
   * repeated .v1.PAnnotation annotation = 6;
   */
  @java.lang.Override
  public int getAnnotationCount() {
    return annotation_.size();
  }
  /**
   * repeated .v1.PAnnotation annotation = 6;
   */
  @java.lang.Override
  public com.navercorp.pinpoint.grpc.trace.PAnnotation getAnnotation(int index) {
    return annotation_.get(index);
  }
  /**
   * repeated .v1.PAnnotation annotation = 6;
   */
  @java.lang.Override
  public com.navercorp.pinpoint.grpc.trace.PAnnotationOrBuilder getAnnotationOrBuilder(
      int index) {
    return annotation_.get(index);
  }

  public static final int APIID_FIELD_NUMBER = 10;
  private int apiId_;
  /**
   * sint32 apiId = 10;
   * @return The apiId.
   */
  @java.lang.Override
  public int getApiId() {
    return apiId_;
  }

  public static final int EXCEPTIONINFO_FIELD_NUMBER = 11;
  private com.navercorp.pinpoint.grpc.trace.PIntStringValue exceptionInfo_;
  /**
   * .v1.PIntStringValue exceptionInfo = 11;
   * @return Whether the exceptionInfo field is set.
   */
  @java.lang.Override
  public boolean hasExceptionInfo() {
    return exceptionInfo_ != null;
  }
  /**
   * .v1.PIntStringValue exceptionInfo = 11;
   * @return The exceptionInfo.
   */
  @java.lang.Override
  public com.navercorp.pinpoint.grpc.trace.PIntStringValue getExceptionInfo() {
    return exceptionInfo_ == null ? com.navercorp.pinpoint.grpc.trace.PIntStringValue.getDefaultInstance() : exceptionInfo_;
  }
  /**
   * .v1.PIntStringValue exceptionInfo = 11;
   */
  @java.lang.Override
  public com.navercorp.pinpoint.grpc.trace.PIntStringValueOrBuilder getExceptionInfoOrBuilder() {
    return getExceptionInfo();
  }

  public static final int NEXTEVENT_FIELD_NUMBER = 12;
  private com.navercorp.pinpoint.grpc.trace.PNextEvent nextEvent_;
  /**
   * .v1.PNextEvent nextEvent = 12;
   * @return Whether the nextEvent field is set.
   */
  @java.lang.Override
  public boolean hasNextEvent() {
    return nextEvent_ != null;
  }
  /**
   * .v1.PNextEvent nextEvent = 12;
   * @return The nextEvent.
   */
  @java.lang.Override
  public com.navercorp.pinpoint.grpc.trace.PNextEvent getNextEvent() {
    return nextEvent_ == null ? com.navercorp.pinpoint.grpc.trace.PNextEvent.getDefaultInstance() : nextEvent_;
  }
  /**
   * .v1.PNextEvent nextEvent = 12;
   */
  @java.lang.Override
  public com.navercorp.pinpoint.grpc.trace.PNextEventOrBuilder getNextEventOrBuilder() {
    return getNextEvent();
  }

  public static final int ASYNCEVENT_FIELD_NUMBER = 13;
  private int asyncEvent_;
  /**
   * int32 asyncEvent = 13;
   * @return The asyncEvent.
   */
  @java.lang.Override
  public int getAsyncEvent() {
    return asyncEvent_;
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (sequence_ != 0) {
      output.writeInt32(1, sequence_);
    }
    if (depth_ != 0) {
      output.writeInt32(2, depth_);
    }
    if (startElapsed_ != 0) {
      output.writeInt32(3, startElapsed_);
    }
    if (endElapsed_ != 0) {
      output.writeInt32(4, endElapsed_);
    }
    if (serviceType_ != 0) {
      output.writeSInt32(5, serviceType_);
    }
    for (int i = 0; i < annotation_.size(); i++) {
      output.writeMessage(6, annotation_.get(i));
    }
    if (apiId_ != 0) {
      output.writeSInt32(10, apiId_);
    }
    if (exceptionInfo_ != null) {
      output.writeMessage(11, getExceptionInfo());
    }
    if (nextEvent_ != null) {
      output.writeMessage(12, getNextEvent());
    }
    if (asyncEvent_ != 0) {
      output.writeInt32(13, asyncEvent_);
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (sequence_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, sequence_);
    }
    if (depth_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, depth_);
    }
    if (startElapsed_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, startElapsed_);
    }
    if (endElapsed_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, endElapsed_);
    }
    if (serviceType_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeSInt32Size(5, serviceType_);
    }
    for (int i = 0; i < annotation_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, annotation_.get(i));
    }
    if (apiId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeSInt32Size(10, apiId_);
    }
    if (exceptionInfo_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(11, getExceptionInfo());
    }
    if (nextEvent_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(12, getNextEvent());
    }
    if (asyncEvent_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(13, asyncEvent_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.navercorp.pinpoint.grpc.trace.PSpanEvent)) {
      return super.equals(obj);
    }
    com.navercorp.pinpoint.grpc.trace.PSpanEvent other = (com.navercorp.pinpoint.grpc.trace.PSpanEvent) obj;

    if (getSequence()
        != other.getSequence()) return false;
    if (getDepth()
        != other.getDepth()) return false;
    if (getStartElapsed()
        != other.getStartElapsed()) return false;
    if (getEndElapsed()
        != other.getEndElapsed()) return false;
    if (getServiceType()
        != other.getServiceType()) return false;
    if (!getAnnotationList()
        .equals(other.getAnnotationList())) return false;
    if (getApiId()
        != other.getApiId()) return false;
    if (hasExceptionInfo() != other.hasExceptionInfo()) return false;
    if (hasExceptionInfo()) {
      if (!getExceptionInfo()
          .equals(other.getExceptionInfo())) return false;
    }
    if (hasNextEvent() != other.hasNextEvent()) return false;
    if (hasNextEvent()) {
      if (!getNextEvent()
          .equals(other.getNextEvent())) return false;
    }
    if (getAsyncEvent()
        != other.getAsyncEvent()) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + SEQUENCE_FIELD_NUMBER;
    hash = (53 * hash) + getSequence();
    hash = (37 * hash) + DEPTH_FIELD_NUMBER;
    hash = (53 * hash) + getDepth();
    hash = (37 * hash) + STARTELAPSED_FIELD_NUMBER;
    hash = (53 * hash) + getStartElapsed();
    hash = (37 * hash) + ENDELAPSED_FIELD_NUMBER;
    hash = (53 * hash) + getEndElapsed();
    hash = (37 * hash) + SERVICETYPE_FIELD_NUMBER;
    hash = (53 * hash) + getServiceType();
    if (getAnnotationCount() > 0) {
      hash = (37 * hash) + ANNOTATION_FIELD_NUMBER;
      hash = (53 * hash) + getAnnotationList().hashCode();
    }
    hash = (37 * hash) + APIID_FIELD_NUMBER;
    hash = (53 * hash) + getApiId();
    if (hasExceptionInfo()) {
      hash = (37 * hash) + EXCEPTIONINFO_FIELD_NUMBER;
      hash = (53 * hash) + getExceptionInfo().hashCode();
    }
    if (hasNextEvent()) {
      hash = (37 * hash) + NEXTEVENT_FIELD_NUMBER;
      hash = (53 * hash) + getNextEvent().hashCode();
    }
    hash = (37 * hash) + ASYNCEVENT_FIELD_NUMBER;
    hash = (53 * hash) + getAsyncEvent();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.navercorp.pinpoint.grpc.trace.PSpanEvent parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.navercorp.pinpoint.grpc.trace.PSpanEvent parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.navercorp.pinpoint.grpc.trace.PSpanEvent parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.navercorp.pinpoint.grpc.trace.PSpanEvent parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.navercorp.pinpoint.grpc.trace.PSpanEvent parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.navercorp.pinpoint.grpc.trace.PSpanEvent parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.navercorp.pinpoint.grpc.trace.PSpanEvent parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.navercorp.pinpoint.grpc.trace.PSpanEvent parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.navercorp.pinpoint.grpc.trace.PSpanEvent parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.navercorp.pinpoint.grpc.trace.PSpanEvent parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.navercorp.pinpoint.grpc.trace.PSpanEvent parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.navercorp.pinpoint.grpc.trace.PSpanEvent parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.navercorp.pinpoint.grpc.trace.PSpanEvent prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code v1.PSpanEvent}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:v1.PSpanEvent)
      com.navercorp.pinpoint.grpc.trace.PSpanEventOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.navercorp.pinpoint.grpc.trace.SpanProto.internal_static_v1_PSpanEvent_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.navercorp.pinpoint.grpc.trace.SpanProto.internal_static_v1_PSpanEvent_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.navercorp.pinpoint.grpc.trace.PSpanEvent.class, com.navercorp.pinpoint.grpc.trace.PSpanEvent.Builder.class);
    }

    // Construct using com.navercorp.pinpoint.grpc.trace.PSpanEvent.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getAnnotationFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      sequence_ = 0;

      depth_ = 0;

      startElapsed_ = 0;

      endElapsed_ = 0;

      serviceType_ = 0;

      if (annotationBuilder_ == null) {
        annotation_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        annotationBuilder_.clear();
      }
      apiId_ = 0;

      if (exceptionInfoBuilder_ == null) {
        exceptionInfo_ = null;
      } else {
        exceptionInfo_ = null;
        exceptionInfoBuilder_ = null;
      }
      if (nextEventBuilder_ == null) {
        nextEvent_ = null;
      } else {
        nextEvent_ = null;
        nextEventBuilder_ = null;
      }
      asyncEvent_ = 0;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.navercorp.pinpoint.grpc.trace.SpanProto.internal_static_v1_PSpanEvent_descriptor;
    }

    @java.lang.Override
    public com.navercorp.pinpoint.grpc.trace.PSpanEvent getDefaultInstanceForType() {
      return com.navercorp.pinpoint.grpc.trace.PSpanEvent.getDefaultInstance();
    }

    @java.lang.Override
    public com.navercorp.pinpoint.grpc.trace.PSpanEvent build() {
      com.navercorp.pinpoint.grpc.trace.PSpanEvent result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.navercorp.pinpoint.grpc.trace.PSpanEvent buildPartial() {
      com.navercorp.pinpoint.grpc.trace.PSpanEvent result = new com.navercorp.pinpoint.grpc.trace.PSpanEvent(this);
      int from_bitField0_ = bitField0_;
      result.sequence_ = sequence_;
      result.depth_ = depth_;
      result.startElapsed_ = startElapsed_;
      result.endElapsed_ = endElapsed_;
      result.serviceType_ = serviceType_;
      if (annotationBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          annotation_ = java.util.Collections.unmodifiableList(annotation_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.annotation_ = annotation_;
      } else {
        result.annotation_ = annotationBuilder_.build();
      }
      result.apiId_ = apiId_;
      if (exceptionInfoBuilder_ == null) {
        result.exceptionInfo_ = exceptionInfo_;
      } else {
        result.exceptionInfo_ = exceptionInfoBuilder_.build();
      }
      if (nextEventBuilder_ == null) {
        result.nextEvent_ = nextEvent_;
      } else {
        result.nextEvent_ = nextEventBuilder_.build();
      }
      result.asyncEvent_ = asyncEvent_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.navercorp.pinpoint.grpc.trace.PSpanEvent) {
        return mergeFrom((com.navercorp.pinpoint.grpc.trace.PSpanEvent)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.navercorp.pinpoint.grpc.trace.PSpanEvent other) {
      if (other == com.navercorp.pinpoint.grpc.trace.PSpanEvent.getDefaultInstance()) return this;
      if (other.getSequence() != 0) {
        setSequence(other.getSequence());
      }
      if (other.getDepth() != 0) {
        setDepth(other.getDepth());
      }
      if (other.getStartElapsed() != 0) {
        setStartElapsed(other.getStartElapsed());
      }
      if (other.getEndElapsed() != 0) {
        setEndElapsed(other.getEndElapsed());
      }
      if (other.getServiceType() != 0) {
        setServiceType(other.getServiceType());
      }
      if (annotationBuilder_ == null) {
        if (!other.annotation_.isEmpty()) {
          if (annotation_.isEmpty()) {
            annotation_ = other.annotation_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureAnnotationIsMutable();
            annotation_.addAll(other.annotation_);
          }
          onChanged();
        }
      } else {
        if (!other.annotation_.isEmpty()) {
          if (annotationBuilder_.isEmpty()) {
            annotationBuilder_.dispose();
            annotationBuilder_ = null;
            annotation_ = other.annotation_;
            bitField0_ = (bitField0_ & ~0x00000001);
            annotationBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getAnnotationFieldBuilder() : null;
          } else {
            annotationBuilder_.addAllMessages(other.annotation_);
          }
        }
      }
      if (other.getApiId() != 0) {
        setApiId(other.getApiId());
      }
      if (other.hasExceptionInfo()) {
        mergeExceptionInfo(other.getExceptionInfo());
      }
      if (other.hasNextEvent()) {
        mergeNextEvent(other.getNextEvent());
      }
      if (other.getAsyncEvent() != 0) {
        setAsyncEvent(other.getAsyncEvent());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.navercorp.pinpoint.grpc.trace.PSpanEvent parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.navercorp.pinpoint.grpc.trace.PSpanEvent) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private int sequence_ ;
    /**
     * int32 sequence = 1;
     * @return The sequence.
     */
    @java.lang.Override
    public int getSequence() {
      return sequence_;
    }
    /**
     * int32 sequence = 1;
     * @param value The sequence to set.
     * @return This builder for chaining.
     */
    public Builder setSequence(int value) {
      
      sequence_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 sequence = 1;
     * @return This builder for chaining.
     */
    public Builder clearSequence() {
      
      sequence_ = 0;
      onChanged();
      return this;
    }

    private int depth_ ;
    /**
     * int32 depth = 2;
     * @return The depth.
     */
    @java.lang.Override
    public int getDepth() {
      return depth_;
    }
    /**
     * int32 depth = 2;
     * @param value The depth to set.
     * @return This builder for chaining.
     */
    public Builder setDepth(int value) {
      
      depth_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 depth = 2;
     * @return This builder for chaining.
     */
    public Builder clearDepth() {
      
      depth_ = 0;
      onChanged();
      return this;
    }

    private int startElapsed_ ;
    /**
     * int32 startElapsed = 3;
     * @return The startElapsed.
     */
    @java.lang.Override
    public int getStartElapsed() {
      return startElapsed_;
    }
    /**
     * int32 startElapsed = 3;
     * @param value The startElapsed to set.
     * @return This builder for chaining.
     */
    public Builder setStartElapsed(int value) {
      
      startElapsed_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 startElapsed = 3;
     * @return This builder for chaining.
     */
    public Builder clearStartElapsed() {
      
      startElapsed_ = 0;
      onChanged();
      return this;
    }

    private int endElapsed_ ;
    /**
     * int32 endElapsed = 4;
     * @return The endElapsed.
     */
    @java.lang.Override
    public int getEndElapsed() {
      return endElapsed_;
    }
    /**
     * int32 endElapsed = 4;
     * @param value The endElapsed to set.
     * @return This builder for chaining.
     */
    public Builder setEndElapsed(int value) {
      
      endElapsed_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 endElapsed = 4;
     * @return This builder for chaining.
     */
    public Builder clearEndElapsed() {
      
      endElapsed_ = 0;
      onChanged();
      return this;
    }

    private int serviceType_ ;
    /**
     * sint32 serviceType = 5;
     * @return The serviceType.
     */
    @java.lang.Override
    public int getServiceType() {
      return serviceType_;
    }
    /**
     * sint32 serviceType = 5;
     * @param value The serviceType to set.
     * @return This builder for chaining.
     */
    public Builder setServiceType(int value) {
      
      serviceType_ = value;
      onChanged();
      return this;
    }
    /**
     * sint32 serviceType = 5;
     * @return This builder for chaining.
     */
    public Builder clearServiceType() {
      
      serviceType_ = 0;
      onChanged();
      return this;
    }

    private java.util.List annotation_ =
      java.util.Collections.emptyList();
    private void ensureAnnotationIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        annotation_ = new java.util.ArrayList(annotation_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.navercorp.pinpoint.grpc.trace.PAnnotation, com.navercorp.pinpoint.grpc.trace.PAnnotation.Builder, com.navercorp.pinpoint.grpc.trace.PAnnotationOrBuilder> annotationBuilder_;

    /**
     * repeated .v1.PAnnotation annotation = 6;
     */
    public java.util.List getAnnotationList() {
      if (annotationBuilder_ == null) {
        return java.util.Collections.unmodifiableList(annotation_);
      } else {
        return annotationBuilder_.getMessageList();
      }
    }
    /**
     * repeated .v1.PAnnotation annotation = 6;
     */
    public int getAnnotationCount() {
      if (annotationBuilder_ == null) {
        return annotation_.size();
      } else {
        return annotationBuilder_.getCount();
      }
    }
    /**
     * repeated .v1.PAnnotation annotation = 6;
     */
    public com.navercorp.pinpoint.grpc.trace.PAnnotation getAnnotation(int index) {
      if (annotationBuilder_ == null) {
        return annotation_.get(index);
      } else {
        return annotationBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .v1.PAnnotation annotation = 6;
     */
    public Builder setAnnotation(
        int index, com.navercorp.pinpoint.grpc.trace.PAnnotation value) {
      if (annotationBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureAnnotationIsMutable();
        annotation_.set(index, value);
        onChanged();
      } else {
        annotationBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .v1.PAnnotation annotation = 6;
     */
    public Builder setAnnotation(
        int index, com.navercorp.pinpoint.grpc.trace.PAnnotation.Builder builderForValue) {
      if (annotationBuilder_ == null) {
        ensureAnnotationIsMutable();
        annotation_.set(index, builderForValue.build());
        onChanged();
      } else {
        annotationBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .v1.PAnnotation annotation = 6;
     */
    public Builder addAnnotation(com.navercorp.pinpoint.grpc.trace.PAnnotation value) {
      if (annotationBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureAnnotationIsMutable();
        annotation_.add(value);
        onChanged();
      } else {
        annotationBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .v1.PAnnotation annotation = 6;
     */
    public Builder addAnnotation(
        int index, com.navercorp.pinpoint.grpc.trace.PAnnotation value) {
      if (annotationBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureAnnotationIsMutable();
        annotation_.add(index, value);
        onChanged();
      } else {
        annotationBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .v1.PAnnotation annotation = 6;
     */
    public Builder addAnnotation(
        com.navercorp.pinpoint.grpc.trace.PAnnotation.Builder builderForValue) {
      if (annotationBuilder_ == null) {
        ensureAnnotationIsMutable();
        annotation_.add(builderForValue.build());
        onChanged();
      } else {
        annotationBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .v1.PAnnotation annotation = 6;
     */
    public Builder addAnnotation(
        int index, com.navercorp.pinpoint.grpc.trace.PAnnotation.Builder builderForValue) {
      if (annotationBuilder_ == null) {
        ensureAnnotationIsMutable();
        annotation_.add(index, builderForValue.build());
        onChanged();
      } else {
        annotationBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .v1.PAnnotation annotation = 6;
     */
    public Builder addAllAnnotation(
        java.lang.Iterable values) {
      if (annotationBuilder_ == null) {
        ensureAnnotationIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, annotation_);
        onChanged();
      } else {
        annotationBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .v1.PAnnotation annotation = 6;
     */
    public Builder clearAnnotation() {
      if (annotationBuilder_ == null) {
        annotation_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        annotationBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .v1.PAnnotation annotation = 6;
     */
    public Builder removeAnnotation(int index) {
      if (annotationBuilder_ == null) {
        ensureAnnotationIsMutable();
        annotation_.remove(index);
        onChanged();
      } else {
        annotationBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .v1.PAnnotation annotation = 6;
     */
    public com.navercorp.pinpoint.grpc.trace.PAnnotation.Builder getAnnotationBuilder(
        int index) {
      return getAnnotationFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .v1.PAnnotation annotation = 6;
     */
    public com.navercorp.pinpoint.grpc.trace.PAnnotationOrBuilder getAnnotationOrBuilder(
        int index) {
      if (annotationBuilder_ == null) {
        return annotation_.get(index);  } else {
        return annotationBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .v1.PAnnotation annotation = 6;
     */
    public java.util.List 
         getAnnotationOrBuilderList() {
      if (annotationBuilder_ != null) {
        return annotationBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(annotation_);
      }
    }
    /**
     * repeated .v1.PAnnotation annotation = 6;
     */
    public com.navercorp.pinpoint.grpc.trace.PAnnotation.Builder addAnnotationBuilder() {
      return getAnnotationFieldBuilder().addBuilder(
          com.navercorp.pinpoint.grpc.trace.PAnnotation.getDefaultInstance());
    }
    /**
     * repeated .v1.PAnnotation annotation = 6;
     */
    public com.navercorp.pinpoint.grpc.trace.PAnnotation.Builder addAnnotationBuilder(
        int index) {
      return getAnnotationFieldBuilder().addBuilder(
          index, com.navercorp.pinpoint.grpc.trace.PAnnotation.getDefaultInstance());
    }
    /**
     * repeated .v1.PAnnotation annotation = 6;
     */
    public java.util.List 
         getAnnotationBuilderList() {
      return getAnnotationFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.navercorp.pinpoint.grpc.trace.PAnnotation, com.navercorp.pinpoint.grpc.trace.PAnnotation.Builder, com.navercorp.pinpoint.grpc.trace.PAnnotationOrBuilder> 
        getAnnotationFieldBuilder() {
      if (annotationBuilder_ == null) {
        annotationBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.navercorp.pinpoint.grpc.trace.PAnnotation, com.navercorp.pinpoint.grpc.trace.PAnnotation.Builder, com.navercorp.pinpoint.grpc.trace.PAnnotationOrBuilder>(
                annotation_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        annotation_ = null;
      }
      return annotationBuilder_;
    }

    private int apiId_ ;
    /**
     * sint32 apiId = 10;
     * @return The apiId.
     */
    @java.lang.Override
    public int getApiId() {
      return apiId_;
    }
    /**
     * sint32 apiId = 10;
     * @param value The apiId to set.
     * @return This builder for chaining.
     */
    public Builder setApiId(int value) {
      
      apiId_ = value;
      onChanged();
      return this;
    }
    /**
     * sint32 apiId = 10;
     * @return This builder for chaining.
     */
    public Builder clearApiId() {
      
      apiId_ = 0;
      onChanged();
      return this;
    }

    private com.navercorp.pinpoint.grpc.trace.PIntStringValue exceptionInfo_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.navercorp.pinpoint.grpc.trace.PIntStringValue, com.navercorp.pinpoint.grpc.trace.PIntStringValue.Builder, com.navercorp.pinpoint.grpc.trace.PIntStringValueOrBuilder> exceptionInfoBuilder_;
    /**
     * .v1.PIntStringValue exceptionInfo = 11;
     * @return Whether the exceptionInfo field is set.
     */
    public boolean hasExceptionInfo() {
      return exceptionInfoBuilder_ != null || exceptionInfo_ != null;
    }
    /**
     * .v1.PIntStringValue exceptionInfo = 11;
     * @return The exceptionInfo.
     */
    public com.navercorp.pinpoint.grpc.trace.PIntStringValue getExceptionInfo() {
      if (exceptionInfoBuilder_ == null) {
        return exceptionInfo_ == null ? com.navercorp.pinpoint.grpc.trace.PIntStringValue.getDefaultInstance() : exceptionInfo_;
      } else {
        return exceptionInfoBuilder_.getMessage();
      }
    }
    /**
     * .v1.PIntStringValue exceptionInfo = 11;
     */
    public Builder setExceptionInfo(com.navercorp.pinpoint.grpc.trace.PIntStringValue value) {
      if (exceptionInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        exceptionInfo_ = value;
        onChanged();
      } else {
        exceptionInfoBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .v1.PIntStringValue exceptionInfo = 11;
     */
    public Builder setExceptionInfo(
        com.navercorp.pinpoint.grpc.trace.PIntStringValue.Builder builderForValue) {
      if (exceptionInfoBuilder_ == null) {
        exceptionInfo_ = builderForValue.build();
        onChanged();
      } else {
        exceptionInfoBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .v1.PIntStringValue exceptionInfo = 11;
     */
    public Builder mergeExceptionInfo(com.navercorp.pinpoint.grpc.trace.PIntStringValue value) {
      if (exceptionInfoBuilder_ == null) {
        if (exceptionInfo_ != null) {
          exceptionInfo_ =
            com.navercorp.pinpoint.grpc.trace.PIntStringValue.newBuilder(exceptionInfo_).mergeFrom(value).buildPartial();
        } else {
          exceptionInfo_ = value;
        }
        onChanged();
      } else {
        exceptionInfoBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .v1.PIntStringValue exceptionInfo = 11;
     */
    public Builder clearExceptionInfo() {
      if (exceptionInfoBuilder_ == null) {
        exceptionInfo_ = null;
        onChanged();
      } else {
        exceptionInfo_ = null;
        exceptionInfoBuilder_ = null;
      }

      return this;
    }
    /**
     * .v1.PIntStringValue exceptionInfo = 11;
     */
    public com.navercorp.pinpoint.grpc.trace.PIntStringValue.Builder getExceptionInfoBuilder() {
      
      onChanged();
      return getExceptionInfoFieldBuilder().getBuilder();
    }
    /**
     * .v1.PIntStringValue exceptionInfo = 11;
     */
    public com.navercorp.pinpoint.grpc.trace.PIntStringValueOrBuilder getExceptionInfoOrBuilder() {
      if (exceptionInfoBuilder_ != null) {
        return exceptionInfoBuilder_.getMessageOrBuilder();
      } else {
        return exceptionInfo_ == null ?
            com.navercorp.pinpoint.grpc.trace.PIntStringValue.getDefaultInstance() : exceptionInfo_;
      }
    }
    /**
     * .v1.PIntStringValue exceptionInfo = 11;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.navercorp.pinpoint.grpc.trace.PIntStringValue, com.navercorp.pinpoint.grpc.trace.PIntStringValue.Builder, com.navercorp.pinpoint.grpc.trace.PIntStringValueOrBuilder> 
        getExceptionInfoFieldBuilder() {
      if (exceptionInfoBuilder_ == null) {
        exceptionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.navercorp.pinpoint.grpc.trace.PIntStringValue, com.navercorp.pinpoint.grpc.trace.PIntStringValue.Builder, com.navercorp.pinpoint.grpc.trace.PIntStringValueOrBuilder>(
                getExceptionInfo(),
                getParentForChildren(),
                isClean());
        exceptionInfo_ = null;
      }
      return exceptionInfoBuilder_;
    }

    private com.navercorp.pinpoint.grpc.trace.PNextEvent nextEvent_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.navercorp.pinpoint.grpc.trace.PNextEvent, com.navercorp.pinpoint.grpc.trace.PNextEvent.Builder, com.navercorp.pinpoint.grpc.trace.PNextEventOrBuilder> nextEventBuilder_;
    /**
     * .v1.PNextEvent nextEvent = 12;
     * @return Whether the nextEvent field is set.
     */
    public boolean hasNextEvent() {
      return nextEventBuilder_ != null || nextEvent_ != null;
    }
    /**
     * .v1.PNextEvent nextEvent = 12;
     * @return The nextEvent.
     */
    public com.navercorp.pinpoint.grpc.trace.PNextEvent getNextEvent() {
      if (nextEventBuilder_ == null) {
        return nextEvent_ == null ? com.navercorp.pinpoint.grpc.trace.PNextEvent.getDefaultInstance() : nextEvent_;
      } else {
        return nextEventBuilder_.getMessage();
      }
    }
    /**
     * .v1.PNextEvent nextEvent = 12;
     */
    public Builder setNextEvent(com.navercorp.pinpoint.grpc.trace.PNextEvent value) {
      if (nextEventBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        nextEvent_ = value;
        onChanged();
      } else {
        nextEventBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .v1.PNextEvent nextEvent = 12;
     */
    public Builder setNextEvent(
        com.navercorp.pinpoint.grpc.trace.PNextEvent.Builder builderForValue) {
      if (nextEventBuilder_ == null) {
        nextEvent_ = builderForValue.build();
        onChanged();
      } else {
        nextEventBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .v1.PNextEvent nextEvent = 12;
     */
    public Builder mergeNextEvent(com.navercorp.pinpoint.grpc.trace.PNextEvent value) {
      if (nextEventBuilder_ == null) {
        if (nextEvent_ != null) {
          nextEvent_ =
            com.navercorp.pinpoint.grpc.trace.PNextEvent.newBuilder(nextEvent_).mergeFrom(value).buildPartial();
        } else {
          nextEvent_ = value;
        }
        onChanged();
      } else {
        nextEventBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .v1.PNextEvent nextEvent = 12;
     */
    public Builder clearNextEvent() {
      if (nextEventBuilder_ == null) {
        nextEvent_ = null;
        onChanged();
      } else {
        nextEvent_ = null;
        nextEventBuilder_ = null;
      }

      return this;
    }
    /**
     * .v1.PNextEvent nextEvent = 12;
     */
    public com.navercorp.pinpoint.grpc.trace.PNextEvent.Builder getNextEventBuilder() {
      
      onChanged();
      return getNextEventFieldBuilder().getBuilder();
    }
    /**
     * .v1.PNextEvent nextEvent = 12;
     */
    public com.navercorp.pinpoint.grpc.trace.PNextEventOrBuilder getNextEventOrBuilder() {
      if (nextEventBuilder_ != null) {
        return nextEventBuilder_.getMessageOrBuilder();
      } else {
        return nextEvent_ == null ?
            com.navercorp.pinpoint.grpc.trace.PNextEvent.getDefaultInstance() : nextEvent_;
      }
    }
    /**
     * .v1.PNextEvent nextEvent = 12;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.navercorp.pinpoint.grpc.trace.PNextEvent, com.navercorp.pinpoint.grpc.trace.PNextEvent.Builder, com.navercorp.pinpoint.grpc.trace.PNextEventOrBuilder> 
        getNextEventFieldBuilder() {
      if (nextEventBuilder_ == null) {
        nextEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.navercorp.pinpoint.grpc.trace.PNextEvent, com.navercorp.pinpoint.grpc.trace.PNextEvent.Builder, com.navercorp.pinpoint.grpc.trace.PNextEventOrBuilder>(
                getNextEvent(),
                getParentForChildren(),
                isClean());
        nextEvent_ = null;
      }
      return nextEventBuilder_;
    }

    private int asyncEvent_ ;
    /**
     * int32 asyncEvent = 13;
     * @return The asyncEvent.
     */
    @java.lang.Override
    public int getAsyncEvent() {
      return asyncEvent_;
    }
    /**
     * int32 asyncEvent = 13;
     * @param value The asyncEvent to set.
     * @return This builder for chaining.
     */
    public Builder setAsyncEvent(int value) {
      
      asyncEvent_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 asyncEvent = 13;
     * @return This builder for chaining.
     */
    public Builder clearAsyncEvent() {
      
      asyncEvent_ = 0;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:v1.PSpanEvent)
  }

  // @@protoc_insertion_point(class_scope:v1.PSpanEvent)
  private static final com.navercorp.pinpoint.grpc.trace.PSpanEvent DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.navercorp.pinpoint.grpc.trace.PSpanEvent();
  }

  public static com.navercorp.pinpoint.grpc.trace.PSpanEvent getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public PSpanEvent parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new PSpanEvent(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.navercorp.pinpoint.grpc.trace.PSpanEvent getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy