All Downloads are FREE. Search and download functionalities are using the official Maven repository.
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.PCmdActiveThreadCountRes 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.PCmdActiveThreadCountRes}
*/
public final class PCmdActiveThreadCountRes extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.PCmdActiveThreadCountRes)
PCmdActiveThreadCountResOrBuilder {
private static final long serialVersionUID = 0L;
// Use PCmdActiveThreadCountRes.newBuilder() to construct.
private PCmdActiveThreadCountRes(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private PCmdActiveThreadCountRes() {
activeThreadCount_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PCmdActiveThreadCountRes();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PCmdActiveThreadCountRes(
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.PCmdStreamResponse.Builder subBuilder = null;
if (commonStreamResponse_ != null) {
subBuilder = commonStreamResponse_.toBuilder();
}
commonStreamResponse_ = input.readMessage(com.navercorp.pinpoint.grpc.trace.PCmdStreamResponse.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(commonStreamResponse_);
commonStreamResponse_ = subBuilder.buildPartial();
}
break;
}
case 16: {
histogramSchemaType_ = input.readInt32();
break;
}
case 24: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
activeThreadCount_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
activeThreadCount_.addInt(input.readInt32());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
activeThreadCount_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
activeThreadCount_.addInt(input.readInt32());
}
input.popLimit(limit);
break;
}
case 32: {
timeStamp_ = input.readInt64();
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)) {
activeThreadCount_.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_PCmdActiveThreadCountRes_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.CmdProto.internal_static_v1_PCmdActiveThreadCountRes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes.class, com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes.Builder.class);
}
public static final int COMMONSTREAMRESPONSE_FIELD_NUMBER = 1;
private com.navercorp.pinpoint.grpc.trace.PCmdStreamResponse commonStreamResponse_;
/**
* .v1.PCmdStreamResponse commonStreamResponse = 1;
* @return Whether the commonStreamResponse field is set.
*/
@java.lang.Override
public boolean hasCommonStreamResponse() {
return commonStreamResponse_ != null;
}
/**
* .v1.PCmdStreamResponse commonStreamResponse = 1;
* @return The commonStreamResponse.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCmdStreamResponse getCommonStreamResponse() {
return commonStreamResponse_ == null ? com.navercorp.pinpoint.grpc.trace.PCmdStreamResponse.getDefaultInstance() : commonStreamResponse_;
}
/**
* .v1.PCmdStreamResponse commonStreamResponse = 1;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCmdStreamResponseOrBuilder getCommonStreamResponseOrBuilder() {
return getCommonStreamResponse();
}
public static final int HISTOGRAMSCHEMATYPE_FIELD_NUMBER = 2;
private int histogramSchemaType_;
/**
* int32 histogramSchemaType = 2;
* @return The histogramSchemaType.
*/
@java.lang.Override
public int getHistogramSchemaType() {
return histogramSchemaType_;
}
public static final int ACTIVETHREADCOUNT_FIELD_NUMBER = 3;
private com.google.protobuf.Internal.IntList activeThreadCount_;
/**
* repeated int32 activeThreadCount = 3;
* @return A list containing the activeThreadCount.
*/
@java.lang.Override
public java.util.List
getActiveThreadCountList() {
return activeThreadCount_;
}
/**
* repeated int32 activeThreadCount = 3;
* @return The count of activeThreadCount.
*/
public int getActiveThreadCountCount() {
return activeThreadCount_.size();
}
/**
* repeated int32 activeThreadCount = 3;
* @param index The index of the element to return.
* @return The activeThreadCount at the given index.
*/
public int getActiveThreadCount(int index) {
return activeThreadCount_.getInt(index);
}
private int activeThreadCountMemoizedSerializedSize = -1;
public static final int TIMESTAMP_FIELD_NUMBER = 4;
private long timeStamp_;
/**
* int64 timeStamp = 4;
* @return The timeStamp.
*/
@java.lang.Override
public long getTimeStamp() {
return timeStamp_;
}
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 (commonStreamResponse_ != null) {
output.writeMessage(1, getCommonStreamResponse());
}
if (histogramSchemaType_ != 0) {
output.writeInt32(2, histogramSchemaType_);
}
if (getActiveThreadCountList().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(activeThreadCountMemoizedSerializedSize);
}
for (int i = 0; i < activeThreadCount_.size(); i++) {
output.writeInt32NoTag(activeThreadCount_.getInt(i));
}
if (timeStamp_ != 0L) {
output.writeInt64(4, timeStamp_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (commonStreamResponse_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCommonStreamResponse());
}
if (histogramSchemaType_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, histogramSchemaType_);
}
{
int dataSize = 0;
for (int i = 0; i < activeThreadCount_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(activeThreadCount_.getInt(i));
}
size += dataSize;
if (!getActiveThreadCountList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
activeThreadCountMemoizedSerializedSize = dataSize;
}
if (timeStamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, timeStamp_);
}
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.PCmdActiveThreadCountRes)) {
return super.equals(obj);
}
com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes other = (com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes) obj;
if (hasCommonStreamResponse() != other.hasCommonStreamResponse()) return false;
if (hasCommonStreamResponse()) {
if (!getCommonStreamResponse()
.equals(other.getCommonStreamResponse())) return false;
}
if (getHistogramSchemaType()
!= other.getHistogramSchemaType()) return false;
if (!getActiveThreadCountList()
.equals(other.getActiveThreadCountList())) return false;
if (getTimeStamp()
!= other.getTimeStamp()) 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 (hasCommonStreamResponse()) {
hash = (37 * hash) + COMMONSTREAMRESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getCommonStreamResponse().hashCode();
}
hash = (37 * hash) + HISTOGRAMSCHEMATYPE_FIELD_NUMBER;
hash = (53 * hash) + getHistogramSchemaType();
if (getActiveThreadCountCount() > 0) {
hash = (37 * hash) + ACTIVETHREADCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getActiveThreadCountList().hashCode();
}
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimeStamp());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes 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.PCmdActiveThreadCountRes parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes 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.PCmdActiveThreadCountRes parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes 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.PCmdActiveThreadCountRes parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes 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.PCmdActiveThreadCountRes parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes 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.PCmdActiveThreadCountRes 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.PCmdActiveThreadCountRes 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.PCmdActiveThreadCountRes 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.PCmdActiveThreadCountRes}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.PCmdActiveThreadCountRes)
com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountResOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.navercorp.pinpoint.grpc.trace.CmdProto.internal_static_v1_PCmdActiveThreadCountRes_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.CmdProto.internal_static_v1_PCmdActiveThreadCountRes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes.class, com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes.Builder.class);
}
// Construct using com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes.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();
if (commonStreamResponseBuilder_ == null) {
commonStreamResponse_ = null;
} else {
commonStreamResponse_ = null;
commonStreamResponseBuilder_ = null;
}
histogramSchemaType_ = 0;
activeThreadCount_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
timeStamp_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.navercorp.pinpoint.grpc.trace.CmdProto.internal_static_v1_PCmdActiveThreadCountRes_descriptor;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes getDefaultInstanceForType() {
return com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes.getDefaultInstance();
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes build() {
com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes buildPartial() {
com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes result = new com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes(this);
int from_bitField0_ = bitField0_;
if (commonStreamResponseBuilder_ == null) {
result.commonStreamResponse_ = commonStreamResponse_;
} else {
result.commonStreamResponse_ = commonStreamResponseBuilder_.build();
}
result.histogramSchemaType_ = histogramSchemaType_;
if (((bitField0_ & 0x00000001) != 0)) {
activeThreadCount_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.activeThreadCount_ = activeThreadCount_;
result.timeStamp_ = timeStamp_;
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.PCmdActiveThreadCountRes) {
return mergeFrom((com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes other) {
if (other == com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes.getDefaultInstance()) return this;
if (other.hasCommonStreamResponse()) {
mergeCommonStreamResponse(other.getCommonStreamResponse());
}
if (other.getHistogramSchemaType() != 0) {
setHistogramSchemaType(other.getHistogramSchemaType());
}
if (!other.activeThreadCount_.isEmpty()) {
if (activeThreadCount_.isEmpty()) {
activeThreadCount_ = other.activeThreadCount_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureActiveThreadCountIsMutable();
activeThreadCount_.addAll(other.activeThreadCount_);
}
onChanged();
}
if (other.getTimeStamp() != 0L) {
setTimeStamp(other.getTimeStamp());
}
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.PCmdActiveThreadCountRes parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.navercorp.pinpoint.grpc.trace.PCmdStreamResponse commonStreamResponse_;
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PCmdStreamResponse, com.navercorp.pinpoint.grpc.trace.PCmdStreamResponse.Builder, com.navercorp.pinpoint.grpc.trace.PCmdStreamResponseOrBuilder> commonStreamResponseBuilder_;
/**
* .v1.PCmdStreamResponse commonStreamResponse = 1;
* @return Whether the commonStreamResponse field is set.
*/
public boolean hasCommonStreamResponse() {
return commonStreamResponseBuilder_ != null || commonStreamResponse_ != null;
}
/**
* .v1.PCmdStreamResponse commonStreamResponse = 1;
* @return The commonStreamResponse.
*/
public com.navercorp.pinpoint.grpc.trace.PCmdStreamResponse getCommonStreamResponse() {
if (commonStreamResponseBuilder_ == null) {
return commonStreamResponse_ == null ? com.navercorp.pinpoint.grpc.trace.PCmdStreamResponse.getDefaultInstance() : commonStreamResponse_;
} else {
return commonStreamResponseBuilder_.getMessage();
}
}
/**
* .v1.PCmdStreamResponse commonStreamResponse = 1;
*/
public Builder setCommonStreamResponse(com.navercorp.pinpoint.grpc.trace.PCmdStreamResponse value) {
if (commonStreamResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
commonStreamResponse_ = value;
onChanged();
} else {
commonStreamResponseBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.PCmdStreamResponse commonStreamResponse = 1;
*/
public Builder setCommonStreamResponse(
com.navercorp.pinpoint.grpc.trace.PCmdStreamResponse.Builder builderForValue) {
if (commonStreamResponseBuilder_ == null) {
commonStreamResponse_ = builderForValue.build();
onChanged();
} else {
commonStreamResponseBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.PCmdStreamResponse commonStreamResponse = 1;
*/
public Builder mergeCommonStreamResponse(com.navercorp.pinpoint.grpc.trace.PCmdStreamResponse value) {
if (commonStreamResponseBuilder_ == null) {
if (commonStreamResponse_ != null) {
commonStreamResponse_ =
com.navercorp.pinpoint.grpc.trace.PCmdStreamResponse.newBuilder(commonStreamResponse_).mergeFrom(value).buildPartial();
} else {
commonStreamResponse_ = value;
}
onChanged();
} else {
commonStreamResponseBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.PCmdStreamResponse commonStreamResponse = 1;
*/
public Builder clearCommonStreamResponse() {
if (commonStreamResponseBuilder_ == null) {
commonStreamResponse_ = null;
onChanged();
} else {
commonStreamResponse_ = null;
commonStreamResponseBuilder_ = null;
}
return this;
}
/**
* .v1.PCmdStreamResponse commonStreamResponse = 1;
*/
public com.navercorp.pinpoint.grpc.trace.PCmdStreamResponse.Builder getCommonStreamResponseBuilder() {
onChanged();
return getCommonStreamResponseFieldBuilder().getBuilder();
}
/**
* .v1.PCmdStreamResponse commonStreamResponse = 1;
*/
public com.navercorp.pinpoint.grpc.trace.PCmdStreamResponseOrBuilder getCommonStreamResponseOrBuilder() {
if (commonStreamResponseBuilder_ != null) {
return commonStreamResponseBuilder_.getMessageOrBuilder();
} else {
return commonStreamResponse_ == null ?
com.navercorp.pinpoint.grpc.trace.PCmdStreamResponse.getDefaultInstance() : commonStreamResponse_;
}
}
/**
* .v1.PCmdStreamResponse commonStreamResponse = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PCmdStreamResponse, com.navercorp.pinpoint.grpc.trace.PCmdStreamResponse.Builder, com.navercorp.pinpoint.grpc.trace.PCmdStreamResponseOrBuilder>
getCommonStreamResponseFieldBuilder() {
if (commonStreamResponseBuilder_ == null) {
commonStreamResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PCmdStreamResponse, com.navercorp.pinpoint.grpc.trace.PCmdStreamResponse.Builder, com.navercorp.pinpoint.grpc.trace.PCmdStreamResponseOrBuilder>(
getCommonStreamResponse(),
getParentForChildren(),
isClean());
commonStreamResponse_ = null;
}
return commonStreamResponseBuilder_;
}
private int histogramSchemaType_ ;
/**
* int32 histogramSchemaType = 2;
* @return The histogramSchemaType.
*/
@java.lang.Override
public int getHistogramSchemaType() {
return histogramSchemaType_;
}
/**
* int32 histogramSchemaType = 2;
* @param value The histogramSchemaType to set.
* @return This builder for chaining.
*/
public Builder setHistogramSchemaType(int value) {
histogramSchemaType_ = value;
onChanged();
return this;
}
/**
* int32 histogramSchemaType = 2;
* @return This builder for chaining.
*/
public Builder clearHistogramSchemaType() {
histogramSchemaType_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList activeThreadCount_ = emptyIntList();
private void ensureActiveThreadCountIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
activeThreadCount_ = mutableCopy(activeThreadCount_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated int32 activeThreadCount = 3;
* @return A list containing the activeThreadCount.
*/
public java.util.List
getActiveThreadCountList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(activeThreadCount_) : activeThreadCount_;
}
/**
* repeated int32 activeThreadCount = 3;
* @return The count of activeThreadCount.
*/
public int getActiveThreadCountCount() {
return activeThreadCount_.size();
}
/**
* repeated int32 activeThreadCount = 3;
* @param index The index of the element to return.
* @return The activeThreadCount at the given index.
*/
public int getActiveThreadCount(int index) {
return activeThreadCount_.getInt(index);
}
/**
* repeated int32 activeThreadCount = 3;
* @param index The index to set the value at.
* @param value The activeThreadCount to set.
* @return This builder for chaining.
*/
public Builder setActiveThreadCount(
int index, int value) {
ensureActiveThreadCountIsMutable();
activeThreadCount_.setInt(index, value);
onChanged();
return this;
}
/**
* repeated int32 activeThreadCount = 3;
* @param value The activeThreadCount to add.
* @return This builder for chaining.
*/
public Builder addActiveThreadCount(int value) {
ensureActiveThreadCountIsMutable();
activeThreadCount_.addInt(value);
onChanged();
return this;
}
/**
* repeated int32 activeThreadCount = 3;
* @param values The activeThreadCount to add.
* @return This builder for chaining.
*/
public Builder addAllActiveThreadCount(
java.lang.Iterable values) {
ensureActiveThreadCountIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, activeThreadCount_);
onChanged();
return this;
}
/**
* repeated int32 activeThreadCount = 3;
* @return This builder for chaining.
*/
public Builder clearActiveThreadCount() {
activeThreadCount_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private long timeStamp_ ;
/**
* int64 timeStamp = 4;
* @return The timeStamp.
*/
@java.lang.Override
public long getTimeStamp() {
return timeStamp_;
}
/**
* int64 timeStamp = 4;
* @param value The timeStamp to set.
* @return This builder for chaining.
*/
public Builder setTimeStamp(long value) {
timeStamp_ = value;
onChanged();
return this;
}
/**
* int64 timeStamp = 4;
* @return This builder for chaining.
*/
public Builder clearTimeStamp() {
timeStamp_ = 0L;
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.PCmdActiveThreadCountRes)
}
// @@protoc_insertion_point(class_scope:v1.PCmdActiveThreadCountRes)
private static final com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes();
}
public static com.navercorp.pinpoint.grpc.trace.PCmdActiveThreadCountRes getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PCmdActiveThreadCountRes parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PCmdActiveThreadCountRes(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.PCmdActiveThreadCountRes getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}