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

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

package com.navercorp.pinpoint.grpc.trace;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private PThreadLightDump(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    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 10: {
            java.lang.String s = input.readStringRequireUtf8();

            threadName_ = s;
            break;
          }
          case 16: {

            threadId_ = input.readInt64();
            break;
          }
          case 24: {
            int rawValue = input.readEnum();

            threadState_ = rawValue;
            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 {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.navercorp.pinpoint.grpc.trace.ThreadDumpProto.internal_static_v1_PThreadLightDump_descriptor;
  }

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

  public static final int THREADNAME_FIELD_NUMBER = 1;
  private volatile java.lang.Object threadName_;
  /**
   * string threadName = 1;
   * @return The threadName.
   */
  @java.lang.Override
  public java.lang.String getThreadName() {
    java.lang.Object ref = threadName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      threadName_ = s;
      return s;
    }
  }
  /**
   * string threadName = 1;
   * @return The bytes for threadName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getThreadNameBytes() {
    java.lang.Object ref = threadName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      threadName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int THREADID_FIELD_NUMBER = 2;
  private long threadId_;
  /**
   * int64 threadId = 2;
   * @return The threadId.
   */
  @java.lang.Override
  public long getThreadId() {
    return threadId_;
  }

  public static final int THREADSTATE_FIELD_NUMBER = 3;
  private int threadState_;
  /**
   * .v1.PThreadState threadState = 3;
   * @return The enum numeric value on the wire for threadState.
   */
  @java.lang.Override public int getThreadStateValue() {
    return threadState_;
  }
  /**
   * .v1.PThreadState threadState = 3;
   * @return The threadState.
   */
  @java.lang.Override public com.navercorp.pinpoint.grpc.trace.PThreadState getThreadState() {
    @SuppressWarnings("deprecation")
    com.navercorp.pinpoint.grpc.trace.PThreadState result = com.navercorp.pinpoint.grpc.trace.PThreadState.valueOf(threadState_);
    return result == null ? com.navercorp.pinpoint.grpc.trace.PThreadState.UNRECOGNIZED : result;
  }

  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 (!getThreadNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, threadName_);
    }
    if (threadId_ != 0L) {
      output.writeInt64(2, threadId_);
    }
    if (threadState_ != com.navercorp.pinpoint.grpc.trace.PThreadState.THREAD_STATE_NEW.getNumber()) {
      output.writeEnum(3, threadState_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!getThreadNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, threadName_);
    }
    if (threadId_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(2, threadId_);
    }
    if (threadState_ != com.navercorp.pinpoint.grpc.trace.PThreadState.THREAD_STATE_NEW.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(3, threadState_);
    }
    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.PThreadLightDump)) {
      return super.equals(obj);
    }
    com.navercorp.pinpoint.grpc.trace.PThreadLightDump other = (com.navercorp.pinpoint.grpc.trace.PThreadLightDump) obj;

    if (!getThreadName()
        .equals(other.getThreadName())) return false;
    if (getThreadId()
        != other.getThreadId()) return false;
    if (threadState_ != other.threadState_) 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) + THREADNAME_FIELD_NUMBER;
    hash = (53 * hash) + getThreadName().hashCode();
    hash = (37 * hash) + THREADID_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getThreadId());
    hash = (37 * hash) + THREADSTATE_FIELD_NUMBER;
    hash = (53 * hash) + threadState_;
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    // Construct using com.navercorp.pinpoint.grpc.trace.PThreadLightDump.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();
      threadName_ = "";

      threadId_ = 0L;

      threadState_ = 0;

      return this;
    }

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

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

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

    @java.lang.Override
    public com.navercorp.pinpoint.grpc.trace.PThreadLightDump buildPartial() {
      com.navercorp.pinpoint.grpc.trace.PThreadLightDump result = new com.navercorp.pinpoint.grpc.trace.PThreadLightDump(this);
      result.threadName_ = threadName_;
      result.threadId_ = threadId_;
      result.threadState_ = threadState_;
      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.PThreadLightDump) {
        return mergeFrom((com.navercorp.pinpoint.grpc.trace.PThreadLightDump)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.navercorp.pinpoint.grpc.trace.PThreadLightDump other) {
      if (other == com.navercorp.pinpoint.grpc.trace.PThreadLightDump.getDefaultInstance()) return this;
      if (!other.getThreadName().isEmpty()) {
        threadName_ = other.threadName_;
        onChanged();
      }
      if (other.getThreadId() != 0L) {
        setThreadId(other.getThreadId());
      }
      if (other.threadState_ != 0) {
        setThreadStateValue(other.getThreadStateValue());
      }
      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.PThreadLightDump parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.navercorp.pinpoint.grpc.trace.PThreadLightDump) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object threadName_ = "";
    /**
     * string threadName = 1;
     * @return The threadName.
     */
    public java.lang.String getThreadName() {
      java.lang.Object ref = threadName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        threadName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string threadName = 1;
     * @return The bytes for threadName.
     */
    public com.google.protobuf.ByteString
        getThreadNameBytes() {
      java.lang.Object ref = threadName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        threadName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string threadName = 1;
     * @param value The threadName to set.
     * @return This builder for chaining.
     */
    public Builder setThreadName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      threadName_ = value;
      onChanged();
      return this;
    }
    /**
     * string threadName = 1;
     * @return This builder for chaining.
     */
    public Builder clearThreadName() {
      
      threadName_ = getDefaultInstance().getThreadName();
      onChanged();
      return this;
    }
    /**
     * string threadName = 1;
     * @param value The bytes for threadName to set.
     * @return This builder for chaining.
     */
    public Builder setThreadNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      threadName_ = value;
      onChanged();
      return this;
    }

    private long threadId_ ;
    /**
     * int64 threadId = 2;
     * @return The threadId.
     */
    @java.lang.Override
    public long getThreadId() {
      return threadId_;
    }
    /**
     * int64 threadId = 2;
     * @param value The threadId to set.
     * @return This builder for chaining.
     */
    public Builder setThreadId(long value) {
      
      threadId_ = value;
      onChanged();
      return this;
    }
    /**
     * int64 threadId = 2;
     * @return This builder for chaining.
     */
    public Builder clearThreadId() {
      
      threadId_ = 0L;
      onChanged();
      return this;
    }

    private int threadState_ = 0;
    /**
     * .v1.PThreadState threadState = 3;
     * @return The enum numeric value on the wire for threadState.
     */
    @java.lang.Override public int getThreadStateValue() {
      return threadState_;
    }
    /**
     * .v1.PThreadState threadState = 3;
     * @param value The enum numeric value on the wire for threadState to set.
     * @return This builder for chaining.
     */
    public Builder setThreadStateValue(int value) {
      
      threadState_ = value;
      onChanged();
      return this;
    }
    /**
     * .v1.PThreadState threadState = 3;
     * @return The threadState.
     */
    @java.lang.Override
    public com.navercorp.pinpoint.grpc.trace.PThreadState getThreadState() {
      @SuppressWarnings("deprecation")
      com.navercorp.pinpoint.grpc.trace.PThreadState result = com.navercorp.pinpoint.grpc.trace.PThreadState.valueOf(threadState_);
      return result == null ? com.navercorp.pinpoint.grpc.trace.PThreadState.UNRECOGNIZED : result;
    }
    /**
     * .v1.PThreadState threadState = 3;
     * @param value The threadState to set.
     * @return This builder for chaining.
     */
    public Builder setThreadState(com.navercorp.pinpoint.grpc.trace.PThreadState value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      threadState_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * .v1.PThreadState threadState = 3;
     * @return This builder for chaining.
     */
    public Builder clearThreadState() {
      
      threadState_ = 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.PThreadLightDump)
  }

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

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

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy