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.PActiveTraceHistogram Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: v1/Stat.proto
package com.navercorp.pinpoint.grpc.trace;
/**
* Protobuf type {@code v1.PActiveTraceHistogram}
*/
public final class PActiveTraceHistogram extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.PActiveTraceHistogram)
PActiveTraceHistogramOrBuilder {
private static final long serialVersionUID = 0L;
// Use PActiveTraceHistogram.newBuilder() to construct.
private PActiveTraceHistogram(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private PActiveTraceHistogram() {
activeTraceCount_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PActiveTraceHistogram();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PActiveTraceHistogram(
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: {
version_ = input.readInt32();
break;
}
case 16: {
histogramSchemaType_ = input.readInt32();
break;
}
case 24: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
activeTraceCount_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
activeTraceCount_.addInt(input.readInt32());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
activeTraceCount_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
activeTraceCount_.addInt(input.readInt32());
}
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)) {
activeTraceCount_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PActiveTraceHistogram_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PActiveTraceHistogram_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram.class, com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram.Builder.class);
}
public static final int VERSION_FIELD_NUMBER = 1;
private int version_;
/**
* int32 version = 1;
* @return The version.
*/
@java.lang.Override
public int getVersion() {
return version_;
}
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 ACTIVETRACECOUNT_FIELD_NUMBER = 3;
private com.google.protobuf.Internal.IntList activeTraceCount_;
/**
* repeated int32 activeTraceCount = 3;
* @return A list containing the activeTraceCount.
*/
@java.lang.Override
public java.util.List
getActiveTraceCountList() {
return activeTraceCount_;
}
/**
* repeated int32 activeTraceCount = 3;
* @return The count of activeTraceCount.
*/
public int getActiveTraceCountCount() {
return activeTraceCount_.size();
}
/**
* repeated int32 activeTraceCount = 3;
* @param index The index of the element to return.
* @return The activeTraceCount at the given index.
*/
public int getActiveTraceCount(int index) {
return activeTraceCount_.getInt(index);
}
private int activeTraceCountMemoizedSerializedSize = -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 (version_ != 0) {
output.writeInt32(1, version_);
}
if (histogramSchemaType_ != 0) {
output.writeInt32(2, histogramSchemaType_);
}
if (getActiveTraceCountList().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(activeTraceCountMemoizedSerializedSize);
}
for (int i = 0; i < activeTraceCount_.size(); i++) {
output.writeInt32NoTag(activeTraceCount_.getInt(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (version_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, version_);
}
if (histogramSchemaType_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, histogramSchemaType_);
}
{
int dataSize = 0;
for (int i = 0; i < activeTraceCount_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(activeTraceCount_.getInt(i));
}
size += dataSize;
if (!getActiveTraceCountList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
activeTraceCountMemoizedSerializedSize = 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.PActiveTraceHistogram)) {
return super.equals(obj);
}
com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram other = (com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram) obj;
if (getVersion()
!= other.getVersion()) return false;
if (getHistogramSchemaType()
!= other.getHistogramSchemaType()) return false;
if (!getActiveTraceCountList()
.equals(other.getActiveTraceCountList())) 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) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion();
hash = (37 * hash) + HISTOGRAMSCHEMATYPE_FIELD_NUMBER;
hash = (53 * hash) + getHistogramSchemaType();
if (getActiveTraceCountCount() > 0) {
hash = (37 * hash) + ACTIVETRACECOUNT_FIELD_NUMBER;
hash = (53 * hash) + getActiveTraceCountList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram 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.PActiveTraceHistogram parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram 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.PActiveTraceHistogram parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram 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.PActiveTraceHistogram parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram 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.PActiveTraceHistogram parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram 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.PActiveTraceHistogram 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.PActiveTraceHistogram 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.PActiveTraceHistogram 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.PActiveTraceHistogram}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.PActiveTraceHistogram)
com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogramOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PActiveTraceHistogram_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PActiveTraceHistogram_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram.class, com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram.Builder.class);
}
// Construct using com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram.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();
version_ = 0;
histogramSchemaType_ = 0;
activeTraceCount_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PActiveTraceHistogram_descriptor;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram getDefaultInstanceForType() {
return com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram.getDefaultInstance();
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram build() {
com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram buildPartial() {
com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram result = new com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram(this);
int from_bitField0_ = bitField0_;
result.version_ = version_;
result.histogramSchemaType_ = histogramSchemaType_;
if (((bitField0_ & 0x00000001) != 0)) {
activeTraceCount_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.activeTraceCount_ = activeTraceCount_;
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.PActiveTraceHistogram) {
return mergeFrom((com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram other) {
if (other == com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram.getDefaultInstance()) return this;
if (other.getVersion() != 0) {
setVersion(other.getVersion());
}
if (other.getHistogramSchemaType() != 0) {
setHistogramSchemaType(other.getHistogramSchemaType());
}
if (!other.activeTraceCount_.isEmpty()) {
if (activeTraceCount_.isEmpty()) {
activeTraceCount_ = other.activeTraceCount_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureActiveTraceCountIsMutable();
activeTraceCount_.addAll(other.activeTraceCount_);
}
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.PActiveTraceHistogram parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int version_ ;
/**
* int32 version = 1;
* @return The version.
*/
@java.lang.Override
public int getVersion() {
return version_;
}
/**
* int32 version = 1;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(int value) {
version_ = value;
onChanged();
return this;
}
/**
* int32 version = 1;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = 0;
onChanged();
return this;
}
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 activeTraceCount_ = emptyIntList();
private void ensureActiveTraceCountIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
activeTraceCount_ = mutableCopy(activeTraceCount_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated int32 activeTraceCount = 3;
* @return A list containing the activeTraceCount.
*/
public java.util.List
getActiveTraceCountList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(activeTraceCount_) : activeTraceCount_;
}
/**
* repeated int32 activeTraceCount = 3;
* @return The count of activeTraceCount.
*/
public int getActiveTraceCountCount() {
return activeTraceCount_.size();
}
/**
* repeated int32 activeTraceCount = 3;
* @param index The index of the element to return.
* @return The activeTraceCount at the given index.
*/
public int getActiveTraceCount(int index) {
return activeTraceCount_.getInt(index);
}
/**
* repeated int32 activeTraceCount = 3;
* @param index The index to set the value at.
* @param value The activeTraceCount to set.
* @return This builder for chaining.
*/
public Builder setActiveTraceCount(
int index, int value) {
ensureActiveTraceCountIsMutable();
activeTraceCount_.setInt(index, value);
onChanged();
return this;
}
/**
* repeated int32 activeTraceCount = 3;
* @param value The activeTraceCount to add.
* @return This builder for chaining.
*/
public Builder addActiveTraceCount(int value) {
ensureActiveTraceCountIsMutable();
activeTraceCount_.addInt(value);
onChanged();
return this;
}
/**
* repeated int32 activeTraceCount = 3;
* @param values The activeTraceCount to add.
* @return This builder for chaining.
*/
public Builder addAllActiveTraceCount(
java.lang.Iterable values) {
ensureActiveTraceCountIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, activeTraceCount_);
onChanged();
return this;
}
/**
* repeated int32 activeTraceCount = 3;
* @return This builder for chaining.
*/
public Builder clearActiveTraceCount() {
activeTraceCount_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
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.PActiveTraceHistogram)
}
// @@protoc_insertion_point(class_scope:v1.PActiveTraceHistogram)
private static final com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram();
}
public static com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PActiveTraceHistogram parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PActiveTraceHistogram(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.PActiveTraceHistogram getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}