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

com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDump 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/Cmd.proto

package com.navercorp.pinpoint.grpc.trace;

/**
 * Protobuf type {@code v1.PCmdActiveThreadDump}
 */
public final class PCmdActiveThreadDump extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:v1.PCmdActiveThreadDump)
    PCmdActiveThreadDumpOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PCmdActiveThreadDump.newBuilder() to construct.
  private PCmdActiveThreadDump(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private PCmdActiveThreadDump() {
    threadName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    localTraceId_ = emptyLongList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private PCmdActiveThreadDump(
      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: {

            limit_ = input.readInt32();
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              threadName_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            threadName_.add(s);
            break;
          }
          case 24: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              localTraceId_ = newLongList();
              mutable_bitField0_ |= 0x00000002;
            }
            localTraceId_.addLong(input.readInt64());
            break;
          }
          case 26: {
            int length = input.readRawVarint32();
            int limit = input.pushLimit(length);
            if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
              localTraceId_ = newLongList();
              mutable_bitField0_ |= 0x00000002;
            }
            while (input.getBytesUntilLimit() > 0) {
              localTraceId_.addLong(input.readInt64());
            }
            input.popLimit(limit);
            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)) {
        threadName_ = threadName_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        localTraceId_.makeImmutable(); // C
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.navercorp.pinpoint.grpc.trace.CmdProto.internal_static_v1_PCmdActiveThreadDump_descriptor;
  }

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

  public static final int LIMIT_FIELD_NUMBER = 1;
  private int limit_;
  /**
   * int32 limit = 1;
   * @return The limit.
   */
  @java.lang.Override
  public int getLimit() {
    return limit_;
  }

  public static final int THREADNAME_FIELD_NUMBER = 2;
  private com.google.protobuf.LazyStringList threadName_;
  /**
   * repeated string threadName = 2;
   * @return A list containing the threadName.
   */
  public com.google.protobuf.ProtocolStringList
      getThreadNameList() {
    return threadName_;
  }
  /**
   * repeated string threadName = 2;
   * @return The count of threadName.
   */
  public int getThreadNameCount() {
    return threadName_.size();
  }
  /**
   * repeated string threadName = 2;
   * @param index The index of the element to return.
   * @return The threadName at the given index.
   */
  public java.lang.String getThreadName(int index) {
    return threadName_.get(index);
  }
  /**
   * repeated string threadName = 2;
   * @param index The index of the value to return.
   * @return The bytes of the threadName at the given index.
   */
  public com.google.protobuf.ByteString
      getThreadNameBytes(int index) {
    return threadName_.getByteString(index);
  }

  public static final int LOCALTRACEID_FIELD_NUMBER = 3;
  private com.google.protobuf.Internal.LongList localTraceId_;
  /**
   * repeated int64 localTraceId = 3;
   * @return A list containing the localTraceId.
   */
  @java.lang.Override
  public java.util.List
      getLocalTraceIdList() {
    return localTraceId_;
  }
  /**
   * repeated int64 localTraceId = 3;
   * @return The count of localTraceId.
   */
  public int getLocalTraceIdCount() {
    return localTraceId_.size();
  }
  /**
   * repeated int64 localTraceId = 3;
   * @param index The index of the element to return.
   * @return The localTraceId at the given index.
   */
  public long getLocalTraceId(int index) {
    return localTraceId_.getLong(index);
  }
  private int localTraceIdMemoizedSerializedSize = -1;

  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 {
    getSerializedSize();
    if (limit_ != 0) {
      output.writeInt32(1, limit_);
    }
    for (int i = 0; i < threadName_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, threadName_.getRaw(i));
    }
    if (getLocalTraceIdList().size() > 0) {
      output.writeUInt32NoTag(26);
      output.writeUInt32NoTag(localTraceIdMemoizedSerializedSize);
    }
    for (int i = 0; i < localTraceId_.size(); i++) {
      output.writeInt64NoTag(localTraceId_.getLong(i));
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (limit_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, limit_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < threadName_.size(); i++) {
        dataSize += computeStringSizeNoTag(threadName_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getThreadNameList().size();
    }
    {
      int dataSize = 0;
      for (int i = 0; i < localTraceId_.size(); i++) {
        dataSize += com.google.protobuf.CodedOutputStream
          .computeInt64SizeNoTag(localTraceId_.getLong(i));
      }
      size += dataSize;
      if (!getLocalTraceIdList().isEmpty()) {
        size += 1;
        size += com.google.protobuf.CodedOutputStream
            .computeInt32SizeNoTag(dataSize);
      }
      localTraceIdMemoizedSerializedSize = dataSize;
    }
    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.PCmdActiveThreadDump)) {
      return super.equals(obj);
    }
    com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDump other = (com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDump) obj;

    if (getLimit()
        != other.getLimit()) return false;
    if (!getThreadNameList()
        .equals(other.getThreadNameList())) return false;
    if (!getLocalTraceIdList()
        .equals(other.getLocalTraceIdList())) 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) + LIMIT_FIELD_NUMBER;
    hash = (53 * hash) + getLimit();
    if (getThreadNameCount() > 0) {
      hash = (37 * hash) + THREADNAME_FIELD_NUMBER;
      hash = (53 * hash) + getThreadNameList().hashCode();
    }
    if (getLocalTraceIdCount() > 0) {
      hash = (37 * hash) + LOCALTRACEID_FIELD_NUMBER;
      hash = (53 * hash) + getLocalTraceIdList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDump parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDump 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.PCmdActiveThreadDump parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDump 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.PCmdActiveThreadDump parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDump 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.PCmdActiveThreadDump parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDump 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.PCmdActiveThreadDump parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDump 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.PCmdActiveThreadDump 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.PCmdActiveThreadDump 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.PCmdActiveThreadDump 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.PCmdActiveThreadDump}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:v1.PCmdActiveThreadDump)
      com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.navercorp.pinpoint.grpc.trace.CmdProto.internal_static_v1_PCmdActiveThreadDump_descriptor;
    }

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

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

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

      threadName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000001);
      localTraceId_ = emptyLongList();
      bitField0_ = (bitField0_ & ~0x00000002);
      return this;
    }

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

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

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

    @java.lang.Override
    public com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDump buildPartial() {
      com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDump result = new com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDump(this);
      int from_bitField0_ = bitField0_;
      result.limit_ = limit_;
      if (((bitField0_ & 0x00000001) != 0)) {
        threadName_ = threadName_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000001);
      }
      result.threadName_ = threadName_;
      if (((bitField0_ & 0x00000002) != 0)) {
        localTraceId_.makeImmutable();
        bitField0_ = (bitField0_ & ~0x00000002);
      }
      result.localTraceId_ = localTraceId_;
      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.PCmdActiveThreadDump) {
        return mergeFrom((com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDump)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDump other) {
      if (other == com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDump.getDefaultInstance()) return this;
      if (other.getLimit() != 0) {
        setLimit(other.getLimit());
      }
      if (!other.threadName_.isEmpty()) {
        if (threadName_.isEmpty()) {
          threadName_ = other.threadName_;
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          ensureThreadNameIsMutable();
          threadName_.addAll(other.threadName_);
        }
        onChanged();
      }
      if (!other.localTraceId_.isEmpty()) {
        if (localTraceId_.isEmpty()) {
          localTraceId_ = other.localTraceId_;
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          ensureLocalTraceIdIsMutable();
          localTraceId_.addAll(other.localTraceId_);
        }
        onChanged();
      }
      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.PCmdActiveThreadDump parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDump) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private int limit_ ;
    /**
     * int32 limit = 1;
     * @return The limit.
     */
    @java.lang.Override
    public int getLimit() {
      return limit_;
    }
    /**
     * int32 limit = 1;
     * @param value The limit to set.
     * @return This builder for chaining.
     */
    public Builder setLimit(int value) {
      
      limit_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 limit = 1;
     * @return This builder for chaining.
     */
    public Builder clearLimit() {
      
      limit_ = 0;
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList threadName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureThreadNameIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        threadName_ = new com.google.protobuf.LazyStringArrayList(threadName_);
        bitField0_ |= 0x00000001;
       }
    }
    /**
     * repeated string threadName = 2;
     * @return A list containing the threadName.
     */
    public com.google.protobuf.ProtocolStringList
        getThreadNameList() {
      return threadName_.getUnmodifiableView();
    }
    /**
     * repeated string threadName = 2;
     * @return The count of threadName.
     */
    public int getThreadNameCount() {
      return threadName_.size();
    }
    /**
     * repeated string threadName = 2;
     * @param index The index of the element to return.
     * @return The threadName at the given index.
     */
    public java.lang.String getThreadName(int index) {
      return threadName_.get(index);
    }
    /**
     * repeated string threadName = 2;
     * @param index The index of the value to return.
     * @return The bytes of the threadName at the given index.
     */
    public com.google.protobuf.ByteString
        getThreadNameBytes(int index) {
      return threadName_.getByteString(index);
    }
    /**
     * repeated string threadName = 2;
     * @param index The index to set the value at.
     * @param value The threadName to set.
     * @return This builder for chaining.
     */
    public Builder setThreadName(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureThreadNameIsMutable();
      threadName_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * repeated string threadName = 2;
     * @param value The threadName to add.
     * @return This builder for chaining.
     */
    public Builder addThreadName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureThreadNameIsMutable();
      threadName_.add(value);
      onChanged();
      return this;
    }
    /**
     * repeated string threadName = 2;
     * @param values The threadName to add.
     * @return This builder for chaining.
     */
    public Builder addAllThreadName(
        java.lang.Iterable values) {
      ensureThreadNameIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, threadName_);
      onChanged();
      return this;
    }
    /**
     * repeated string threadName = 2;
     * @return This builder for chaining.
     */
    public Builder clearThreadName() {
      threadName_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * repeated string threadName = 2;
     * @param value The bytes of the threadName to add.
     * @return This builder for chaining.
     */
    public Builder addThreadNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      ensureThreadNameIsMutable();
      threadName_.add(value);
      onChanged();
      return this;
    }

    private com.google.protobuf.Internal.LongList localTraceId_ = emptyLongList();
    private void ensureLocalTraceIdIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        localTraceId_ = mutableCopy(localTraceId_);
        bitField0_ |= 0x00000002;
       }
    }
    /**
     * repeated int64 localTraceId = 3;
     * @return A list containing the localTraceId.
     */
    public java.util.List
        getLocalTraceIdList() {
      return ((bitField0_ & 0x00000002) != 0) ?
               java.util.Collections.unmodifiableList(localTraceId_) : localTraceId_;
    }
    /**
     * repeated int64 localTraceId = 3;
     * @return The count of localTraceId.
     */
    public int getLocalTraceIdCount() {
      return localTraceId_.size();
    }
    /**
     * repeated int64 localTraceId = 3;
     * @param index The index of the element to return.
     * @return The localTraceId at the given index.
     */
    public long getLocalTraceId(int index) {
      return localTraceId_.getLong(index);
    }
    /**
     * repeated int64 localTraceId = 3;
     * @param index The index to set the value at.
     * @param value The localTraceId to set.
     * @return This builder for chaining.
     */
    public Builder setLocalTraceId(
        int index, long value) {
      ensureLocalTraceIdIsMutable();
      localTraceId_.setLong(index, value);
      onChanged();
      return this;
    }
    /**
     * repeated int64 localTraceId = 3;
     * @param value The localTraceId to add.
     * @return This builder for chaining.
     */
    public Builder addLocalTraceId(long value) {
      ensureLocalTraceIdIsMutable();
      localTraceId_.addLong(value);
      onChanged();
      return this;
    }
    /**
     * repeated int64 localTraceId = 3;
     * @param values The localTraceId to add.
     * @return This builder for chaining.
     */
    public Builder addAllLocalTraceId(
        java.lang.Iterable values) {
      ensureLocalTraceIdIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, localTraceId_);
      onChanged();
      return this;
    }
    /**
     * repeated int64 localTraceId = 3;
     * @return This builder for chaining.
     */
    public Builder clearLocalTraceId() {
      localTraceId_ = emptyLongList();
      bitField0_ = (bitField0_ & ~0x00000002);
      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.PCmdActiveThreadDump)
  }

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

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

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public PCmdActiveThreadDump parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new PCmdActiveThreadDump(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.PCmdActiveThreadDump getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy