Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: v1/Cmd.proto
package com.navercorp.pinpoint.grpc.trace;
/**
* Protobuf type {@code v1.PCmdActiveThreadDumpRes}
*/
public final class PCmdActiveThreadDumpRes extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.PCmdActiveThreadDumpRes)
PCmdActiveThreadDumpResOrBuilder {
private static final long serialVersionUID = 0L;
// Use PCmdActiveThreadDumpRes.newBuilder() to construct.
private PCmdActiveThreadDumpRes(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private PCmdActiveThreadDumpRes() {
threadDump_ = java.util.Collections.emptyList();
type_ = "";
subType_ = "";
version_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PCmdActiveThreadDumpRes();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PCmdActiveThreadDumpRes(
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 10: {
com.navercorp.pinpoint.grpc.trace.PCmdResponse.Builder subBuilder = null;
if (commonResponse_ != null) {
subBuilder = commonResponse_.toBuilder();
}
commonResponse_ = input.readMessage(com.navercorp.pinpoint.grpc.trace.PCmdResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(commonResponse_);
commonResponse_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
threadDump_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
threadDump_.add(
input.readMessage(com.navercorp.pinpoint.grpc.trace.PActiveThreadDump.parser(), extensionRegistry));
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
type_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
subType_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
version_ = s;
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)) {
threadDump_ = java.util.Collections.unmodifiableList(threadDump_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.navercorp.pinpoint.grpc.trace.CmdProto.internal_static_v1_PCmdActiveThreadDumpRes_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.CmdProto.internal_static_v1_PCmdActiveThreadDumpRes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes.class, com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes.Builder.class);
}
public static final int COMMONRESPONSE_FIELD_NUMBER = 1;
private com.navercorp.pinpoint.grpc.trace.PCmdResponse commonResponse_;
/**
* .v1.PCmdResponse commonResponse = 1;
* @return Whether the commonResponse field is set.
*/
@java.lang.Override
public boolean hasCommonResponse() {
return commonResponse_ != null;
}
/**
* .v1.PCmdResponse commonResponse = 1;
* @return The commonResponse.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCmdResponse getCommonResponse() {
return commonResponse_ == null ? com.navercorp.pinpoint.grpc.trace.PCmdResponse.getDefaultInstance() : commonResponse_;
}
/**
* .v1.PCmdResponse commonResponse = 1;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCmdResponseOrBuilder getCommonResponseOrBuilder() {
return getCommonResponse();
}
public static final int THREADDUMP_FIELD_NUMBER = 2;
private java.util.List threadDump_;
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
@java.lang.Override
public java.util.List getThreadDumpList() {
return threadDump_;
}
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
@java.lang.Override
public java.util.List
getThreadDumpOrBuilderList() {
return threadDump_;
}
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
@java.lang.Override
public int getThreadDumpCount() {
return threadDump_.size();
}
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PActiveThreadDump getThreadDump(int index) {
return threadDump_.get(index);
}
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PActiveThreadDumpOrBuilder getThreadDumpOrBuilder(
int index) {
return threadDump_.get(index);
}
public static final int TYPE_FIELD_NUMBER = 3;
private volatile java.lang.Object type_;
/**
* string type = 3;
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
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();
type_ = s;
return s;
}
}
/**
* string type = 3;
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUBTYPE_FIELD_NUMBER = 4;
private volatile java.lang.Object subType_;
/**
* string subType = 4;
* @return The subType.
*/
@java.lang.Override
public java.lang.String getSubType() {
java.lang.Object ref = subType_;
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();
subType_ = s;
return s;
}
}
/**
* string subType = 4;
* @return The bytes for subType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSubTypeBytes() {
java.lang.Object ref = subType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_FIELD_NUMBER = 5;
private volatile java.lang.Object version_;
/**
* string version = 5;
* @return The version.
*/
@java.lang.Override
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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();
version_ = s;
return s;
}
}
/**
* string version = 5;
* @return The bytes for version.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (commonResponse_ != null) {
output.writeMessage(1, getCommonResponse());
}
for (int i = 0; i < threadDump_.size(); i++) {
output.writeMessage(2, threadDump_.get(i));
}
if (!getTypeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_);
}
if (!getSubTypeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, subType_);
}
if (!getVersionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, version_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (commonResponse_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCommonResponse());
}
for (int i = 0; i < threadDump_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, threadDump_.get(i));
}
if (!getTypeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_);
}
if (!getSubTypeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, subType_);
}
if (!getVersionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_);
}
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.PCmdActiveThreadDumpRes)) {
return super.equals(obj);
}
com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes other = (com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes) obj;
if (hasCommonResponse() != other.hasCommonResponse()) return false;
if (hasCommonResponse()) {
if (!getCommonResponse()
.equals(other.getCommonResponse())) return false;
}
if (!getThreadDumpList()
.equals(other.getThreadDumpList())) return false;
if (!getType()
.equals(other.getType())) return false;
if (!getSubType()
.equals(other.getSubType())) return false;
if (!getVersion()
.equals(other.getVersion())) 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();
if (hasCommonResponse()) {
hash = (37 * hash) + COMMONRESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getCommonResponse().hashCode();
}
if (getThreadDumpCount() > 0) {
hash = (37 * hash) + THREADDUMP_FIELD_NUMBER;
hash = (53 * hash) + getThreadDumpList().hashCode();
}
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
hash = (37 * hash) + SUBTYPE_FIELD_NUMBER;
hash = (53 * hash) + getSubType().hashCode();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes 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.PCmdActiveThreadDumpRes parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes 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.PCmdActiveThreadDumpRes parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes 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.PCmdActiveThreadDumpRes parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes 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.PCmdActiveThreadDumpRes parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes 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.PCmdActiveThreadDumpRes 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.PCmdActiveThreadDumpRes 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.PCmdActiveThreadDumpRes 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.PCmdActiveThreadDumpRes}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.PCmdActiveThreadDumpRes)
com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpResOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.navercorp.pinpoint.grpc.trace.CmdProto.internal_static_v1_PCmdActiveThreadDumpRes_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.CmdProto.internal_static_v1_PCmdActiveThreadDumpRes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes.class, com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes.Builder.class);
}
// Construct using com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getThreadDumpFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (commonResponseBuilder_ == null) {
commonResponse_ = null;
} else {
commonResponse_ = null;
commonResponseBuilder_ = null;
}
if (threadDumpBuilder_ == null) {
threadDump_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
threadDumpBuilder_.clear();
}
type_ = "";
subType_ = "";
version_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.navercorp.pinpoint.grpc.trace.CmdProto.internal_static_v1_PCmdActiveThreadDumpRes_descriptor;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes getDefaultInstanceForType() {
return com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes.getDefaultInstance();
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes build() {
com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes buildPartial() {
com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes result = new com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes(this);
int from_bitField0_ = bitField0_;
if (commonResponseBuilder_ == null) {
result.commonResponse_ = commonResponse_;
} else {
result.commonResponse_ = commonResponseBuilder_.build();
}
if (threadDumpBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
threadDump_ = java.util.Collections.unmodifiableList(threadDump_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.threadDump_ = threadDump_;
} else {
result.threadDump_ = threadDumpBuilder_.build();
}
result.type_ = type_;
result.subType_ = subType_;
result.version_ = version_;
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.PCmdActiveThreadDumpRes) {
return mergeFrom((com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes other) {
if (other == com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes.getDefaultInstance()) return this;
if (other.hasCommonResponse()) {
mergeCommonResponse(other.getCommonResponse());
}
if (threadDumpBuilder_ == null) {
if (!other.threadDump_.isEmpty()) {
if (threadDump_.isEmpty()) {
threadDump_ = other.threadDump_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureThreadDumpIsMutable();
threadDump_.addAll(other.threadDump_);
}
onChanged();
}
} else {
if (!other.threadDump_.isEmpty()) {
if (threadDumpBuilder_.isEmpty()) {
threadDumpBuilder_.dispose();
threadDumpBuilder_ = null;
threadDump_ = other.threadDump_;
bitField0_ = (bitField0_ & ~0x00000001);
threadDumpBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getThreadDumpFieldBuilder() : null;
} else {
threadDumpBuilder_.addAllMessages(other.threadDump_);
}
}
}
if (!other.getType().isEmpty()) {
type_ = other.type_;
onChanged();
}
if (!other.getSubType().isEmpty()) {
subType_ = other.subType_;
onChanged();
}
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
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.PCmdActiveThreadDumpRes parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.navercorp.pinpoint.grpc.trace.PCmdResponse commonResponse_;
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PCmdResponse, com.navercorp.pinpoint.grpc.trace.PCmdResponse.Builder, com.navercorp.pinpoint.grpc.trace.PCmdResponseOrBuilder> commonResponseBuilder_;
/**
* .v1.PCmdResponse commonResponse = 1;
* @return Whether the commonResponse field is set.
*/
public boolean hasCommonResponse() {
return commonResponseBuilder_ != null || commonResponse_ != null;
}
/**
* .v1.PCmdResponse commonResponse = 1;
* @return The commonResponse.
*/
public com.navercorp.pinpoint.grpc.trace.PCmdResponse getCommonResponse() {
if (commonResponseBuilder_ == null) {
return commonResponse_ == null ? com.navercorp.pinpoint.grpc.trace.PCmdResponse.getDefaultInstance() : commonResponse_;
} else {
return commonResponseBuilder_.getMessage();
}
}
/**
* .v1.PCmdResponse commonResponse = 1;
*/
public Builder setCommonResponse(com.navercorp.pinpoint.grpc.trace.PCmdResponse value) {
if (commonResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
commonResponse_ = value;
onChanged();
} else {
commonResponseBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.PCmdResponse commonResponse = 1;
*/
public Builder setCommonResponse(
com.navercorp.pinpoint.grpc.trace.PCmdResponse.Builder builderForValue) {
if (commonResponseBuilder_ == null) {
commonResponse_ = builderForValue.build();
onChanged();
} else {
commonResponseBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.PCmdResponse commonResponse = 1;
*/
public Builder mergeCommonResponse(com.navercorp.pinpoint.grpc.trace.PCmdResponse value) {
if (commonResponseBuilder_ == null) {
if (commonResponse_ != null) {
commonResponse_ =
com.navercorp.pinpoint.grpc.trace.PCmdResponse.newBuilder(commonResponse_).mergeFrom(value).buildPartial();
} else {
commonResponse_ = value;
}
onChanged();
} else {
commonResponseBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.PCmdResponse commonResponse = 1;
*/
public Builder clearCommonResponse() {
if (commonResponseBuilder_ == null) {
commonResponse_ = null;
onChanged();
} else {
commonResponse_ = null;
commonResponseBuilder_ = null;
}
return this;
}
/**
* .v1.PCmdResponse commonResponse = 1;
*/
public com.navercorp.pinpoint.grpc.trace.PCmdResponse.Builder getCommonResponseBuilder() {
onChanged();
return getCommonResponseFieldBuilder().getBuilder();
}
/**
* .v1.PCmdResponse commonResponse = 1;
*/
public com.navercorp.pinpoint.grpc.trace.PCmdResponseOrBuilder getCommonResponseOrBuilder() {
if (commonResponseBuilder_ != null) {
return commonResponseBuilder_.getMessageOrBuilder();
} else {
return commonResponse_ == null ?
com.navercorp.pinpoint.grpc.trace.PCmdResponse.getDefaultInstance() : commonResponse_;
}
}
/**
* .v1.PCmdResponse commonResponse = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PCmdResponse, com.navercorp.pinpoint.grpc.trace.PCmdResponse.Builder, com.navercorp.pinpoint.grpc.trace.PCmdResponseOrBuilder>
getCommonResponseFieldBuilder() {
if (commonResponseBuilder_ == null) {
commonResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PCmdResponse, com.navercorp.pinpoint.grpc.trace.PCmdResponse.Builder, com.navercorp.pinpoint.grpc.trace.PCmdResponseOrBuilder>(
getCommonResponse(),
getParentForChildren(),
isClean());
commonResponse_ = null;
}
return commonResponseBuilder_;
}
private java.util.List threadDump_ =
java.util.Collections.emptyList();
private void ensureThreadDumpIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
threadDump_ = new java.util.ArrayList(threadDump_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PActiveThreadDump, com.navercorp.pinpoint.grpc.trace.PActiveThreadDump.Builder, com.navercorp.pinpoint.grpc.trace.PActiveThreadDumpOrBuilder> threadDumpBuilder_;
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
public java.util.List getThreadDumpList() {
if (threadDumpBuilder_ == null) {
return java.util.Collections.unmodifiableList(threadDump_);
} else {
return threadDumpBuilder_.getMessageList();
}
}
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
public int getThreadDumpCount() {
if (threadDumpBuilder_ == null) {
return threadDump_.size();
} else {
return threadDumpBuilder_.getCount();
}
}
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
public com.navercorp.pinpoint.grpc.trace.PActiveThreadDump getThreadDump(int index) {
if (threadDumpBuilder_ == null) {
return threadDump_.get(index);
} else {
return threadDumpBuilder_.getMessage(index);
}
}
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
public Builder setThreadDump(
int index, com.navercorp.pinpoint.grpc.trace.PActiveThreadDump value) {
if (threadDumpBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureThreadDumpIsMutable();
threadDump_.set(index, value);
onChanged();
} else {
threadDumpBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
public Builder setThreadDump(
int index, com.navercorp.pinpoint.grpc.trace.PActiveThreadDump.Builder builderForValue) {
if (threadDumpBuilder_ == null) {
ensureThreadDumpIsMutable();
threadDump_.set(index, builderForValue.build());
onChanged();
} else {
threadDumpBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
public Builder addThreadDump(com.navercorp.pinpoint.grpc.trace.PActiveThreadDump value) {
if (threadDumpBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureThreadDumpIsMutable();
threadDump_.add(value);
onChanged();
} else {
threadDumpBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
public Builder addThreadDump(
int index, com.navercorp.pinpoint.grpc.trace.PActiveThreadDump value) {
if (threadDumpBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureThreadDumpIsMutable();
threadDump_.add(index, value);
onChanged();
} else {
threadDumpBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
public Builder addThreadDump(
com.navercorp.pinpoint.grpc.trace.PActiveThreadDump.Builder builderForValue) {
if (threadDumpBuilder_ == null) {
ensureThreadDumpIsMutable();
threadDump_.add(builderForValue.build());
onChanged();
} else {
threadDumpBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
public Builder addThreadDump(
int index, com.navercorp.pinpoint.grpc.trace.PActiveThreadDump.Builder builderForValue) {
if (threadDumpBuilder_ == null) {
ensureThreadDumpIsMutable();
threadDump_.add(index, builderForValue.build());
onChanged();
} else {
threadDumpBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
public Builder addAllThreadDump(
java.lang.Iterable values) {
if (threadDumpBuilder_ == null) {
ensureThreadDumpIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, threadDump_);
onChanged();
} else {
threadDumpBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
public Builder clearThreadDump() {
if (threadDumpBuilder_ == null) {
threadDump_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
threadDumpBuilder_.clear();
}
return this;
}
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
public Builder removeThreadDump(int index) {
if (threadDumpBuilder_ == null) {
ensureThreadDumpIsMutable();
threadDump_.remove(index);
onChanged();
} else {
threadDumpBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
public com.navercorp.pinpoint.grpc.trace.PActiveThreadDump.Builder getThreadDumpBuilder(
int index) {
return getThreadDumpFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
public com.navercorp.pinpoint.grpc.trace.PActiveThreadDumpOrBuilder getThreadDumpOrBuilder(
int index) {
if (threadDumpBuilder_ == null) {
return threadDump_.get(index); } else {
return threadDumpBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
public java.util.List
getThreadDumpOrBuilderList() {
if (threadDumpBuilder_ != null) {
return threadDumpBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(threadDump_);
}
}
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
public com.navercorp.pinpoint.grpc.trace.PActiveThreadDump.Builder addThreadDumpBuilder() {
return getThreadDumpFieldBuilder().addBuilder(
com.navercorp.pinpoint.grpc.trace.PActiveThreadDump.getDefaultInstance());
}
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
public com.navercorp.pinpoint.grpc.trace.PActiveThreadDump.Builder addThreadDumpBuilder(
int index) {
return getThreadDumpFieldBuilder().addBuilder(
index, com.navercorp.pinpoint.grpc.trace.PActiveThreadDump.getDefaultInstance());
}
/**
* repeated .v1.PActiveThreadDump threadDump = 2;
*/
public java.util.List
getThreadDumpBuilderList() {
return getThreadDumpFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PActiveThreadDump, com.navercorp.pinpoint.grpc.trace.PActiveThreadDump.Builder, com.navercorp.pinpoint.grpc.trace.PActiveThreadDumpOrBuilder>
getThreadDumpFieldBuilder() {
if (threadDumpBuilder_ == null) {
threadDumpBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PActiveThreadDump, com.navercorp.pinpoint.grpc.trace.PActiveThreadDump.Builder, com.navercorp.pinpoint.grpc.trace.PActiveThreadDumpOrBuilder>(
threadDump_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
threadDump_ = null;
}
return threadDumpBuilder_;
}
private java.lang.Object type_ = "";
/**
* string type = 3;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string type = 3;
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string type = 3;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
return this;
}
/**
* string type = 3;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
* string type = 3;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
type_ = value;
onChanged();
return this;
}
private java.lang.Object subType_ = "";
/**
* string subType = 4;
* @return The subType.
*/
public java.lang.String getSubType() {
java.lang.Object ref = subType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string subType = 4;
* @return The bytes for subType.
*/
public com.google.protobuf.ByteString
getSubTypeBytes() {
java.lang.Object ref = subType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string subType = 4;
* @param value The subType to set.
* @return This builder for chaining.
*/
public Builder setSubType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
subType_ = value;
onChanged();
return this;
}
/**
* string subType = 4;
* @return This builder for chaining.
*/
public Builder clearSubType() {
subType_ = getDefaultInstance().getSubType();
onChanged();
return this;
}
/**
* string subType = 4;
* @param value The bytes for subType to set.
* @return This builder for chaining.
*/
public Builder setSubTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
subType_ = value;
onChanged();
return this;
}
private java.lang.Object version_ = "";
/**
* string version = 5;
* @return The version.
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string version = 5;
* @return The bytes for version.
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string version = 5;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
onChanged();
return this;
}
/**
* string version = 5;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
* string version = 5;
* @param value The bytes for version to set.
* @return This builder for chaining.
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
version_ = value;
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.PCmdActiveThreadDumpRes)
}
// @@protoc_insertion_point(class_scope:v1.PCmdActiveThreadDumpRes)
private static final com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes();
}
public static com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadDumpRes getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PCmdActiveThreadDumpRes parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PCmdActiveThreadDumpRes(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.PCmdActiveThreadDumpRes getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}