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.PJvmInfo 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.PJvmInfo}
*/
public final class PJvmInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.PJvmInfo)
PJvmInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use PJvmInfo.newBuilder() to construct.
private PJvmInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private PJvmInfo() {
vmVersion_ = "";
gcType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PJvmInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PJvmInfo(
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 8: {
version_ = input.readInt32();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
vmVersion_ = s;
break;
}
case 24: {
int rawValue = input.readEnum();
gcType_ = 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.StatProto.internal_static_v1_PJvmInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PJvmInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PJvmInfo.class, com.navercorp.pinpoint.grpc.trace.PJvmInfo.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 VMVERSION_FIELD_NUMBER = 2;
private volatile java.lang.Object vmVersion_;
/**
* string vmVersion = 2;
* @return The vmVersion.
*/
@java.lang.Override
public java.lang.String getVmVersion() {
java.lang.Object ref = vmVersion_;
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();
vmVersion_ = s;
return s;
}
}
/**
* string vmVersion = 2;
* @return The bytes for vmVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVmVersionBytes() {
java.lang.Object ref = vmVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
vmVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GCTYPE_FIELD_NUMBER = 3;
private int gcType_;
/**
* .v1.PJvmGcType gcType = 3;
* @return The enum numeric value on the wire for gcType.
*/
@java.lang.Override public int getGcTypeValue() {
return gcType_;
}
/**
* .v1.PJvmGcType gcType = 3;
* @return The gcType.
*/
@java.lang.Override public com.navercorp.pinpoint.grpc.trace.PJvmGcType getGcType() {
@SuppressWarnings("deprecation")
com.navercorp.pinpoint.grpc.trace.PJvmGcType result = com.navercorp.pinpoint.grpc.trace.PJvmGcType.valueOf(gcType_);
return result == null ? com.navercorp.pinpoint.grpc.trace.PJvmGcType.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 (version_ != 0) {
output.writeInt32(1, version_);
}
if (!getVmVersionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vmVersion_);
}
if (gcType_ != com.navercorp.pinpoint.grpc.trace.PJvmGcType.JVM_GC_TYPE_UNKNOWN.getNumber()) {
output.writeEnum(3, gcType_);
}
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 (!getVmVersionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vmVersion_);
}
if (gcType_ != com.navercorp.pinpoint.grpc.trace.PJvmGcType.JVM_GC_TYPE_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, gcType_);
}
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.PJvmInfo)) {
return super.equals(obj);
}
com.navercorp.pinpoint.grpc.trace.PJvmInfo other = (com.navercorp.pinpoint.grpc.trace.PJvmInfo) obj;
if (getVersion()
!= other.getVersion()) return false;
if (!getVmVersion()
.equals(other.getVmVersion())) return false;
if (gcType_ != other.gcType_) 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) + VMVERSION_FIELD_NUMBER;
hash = (53 * hash) + getVmVersion().hashCode();
hash = (37 * hash) + GCTYPE_FIELD_NUMBER;
hash = (53 * hash) + gcType_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.navercorp.pinpoint.grpc.trace.PJvmInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PJvmInfo 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.PJvmInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PJvmInfo 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.PJvmInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PJvmInfo 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.PJvmInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PJvmInfo 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.PJvmInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PJvmInfo 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.PJvmInfo 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.PJvmInfo 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.PJvmInfo 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.PJvmInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.PJvmInfo)
com.navercorp.pinpoint.grpc.trace.PJvmInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PJvmInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PJvmInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PJvmInfo.class, com.navercorp.pinpoint.grpc.trace.PJvmInfo.Builder.class);
}
// Construct using com.navercorp.pinpoint.grpc.trace.PJvmInfo.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;
vmVersion_ = "";
gcType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PJvmInfo_descriptor;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PJvmInfo getDefaultInstanceForType() {
return com.navercorp.pinpoint.grpc.trace.PJvmInfo.getDefaultInstance();
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PJvmInfo build() {
com.navercorp.pinpoint.grpc.trace.PJvmInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PJvmInfo buildPartial() {
com.navercorp.pinpoint.grpc.trace.PJvmInfo result = new com.navercorp.pinpoint.grpc.trace.PJvmInfo(this);
result.version_ = version_;
result.vmVersion_ = vmVersion_;
result.gcType_ = gcType_;
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.PJvmInfo) {
return mergeFrom((com.navercorp.pinpoint.grpc.trace.PJvmInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.navercorp.pinpoint.grpc.trace.PJvmInfo other) {
if (other == com.navercorp.pinpoint.grpc.trace.PJvmInfo.getDefaultInstance()) return this;
if (other.getVersion() != 0) {
setVersion(other.getVersion());
}
if (!other.getVmVersion().isEmpty()) {
vmVersion_ = other.vmVersion_;
onChanged();
}
if (other.gcType_ != 0) {
setGcTypeValue(other.getGcTypeValue());
}
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.PJvmInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.navercorp.pinpoint.grpc.trace.PJvmInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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 java.lang.Object vmVersion_ = "";
/**
* string vmVersion = 2;
* @return The vmVersion.
*/
public java.lang.String getVmVersion() {
java.lang.Object ref = vmVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
vmVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string vmVersion = 2;
* @return The bytes for vmVersion.
*/
public com.google.protobuf.ByteString
getVmVersionBytes() {
java.lang.Object ref = vmVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
vmVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string vmVersion = 2;
* @param value The vmVersion to set.
* @return This builder for chaining.
*/
public Builder setVmVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
vmVersion_ = value;
onChanged();
return this;
}
/**
* string vmVersion = 2;
* @return This builder for chaining.
*/
public Builder clearVmVersion() {
vmVersion_ = getDefaultInstance().getVmVersion();
onChanged();
return this;
}
/**
* string vmVersion = 2;
* @param value The bytes for vmVersion to set.
* @return This builder for chaining.
*/
public Builder setVmVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
vmVersion_ = value;
onChanged();
return this;
}
private int gcType_ = 0;
/**
* .v1.PJvmGcType gcType = 3;
* @return The enum numeric value on the wire for gcType.
*/
@java.lang.Override public int getGcTypeValue() {
return gcType_;
}
/**
* .v1.PJvmGcType gcType = 3;
* @param value The enum numeric value on the wire for gcType to set.
* @return This builder for chaining.
*/
public Builder setGcTypeValue(int value) {
gcType_ = value;
onChanged();
return this;
}
/**
* .v1.PJvmGcType gcType = 3;
* @return The gcType.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PJvmGcType getGcType() {
@SuppressWarnings("deprecation")
com.navercorp.pinpoint.grpc.trace.PJvmGcType result = com.navercorp.pinpoint.grpc.trace.PJvmGcType.valueOf(gcType_);
return result == null ? com.navercorp.pinpoint.grpc.trace.PJvmGcType.UNRECOGNIZED : result;
}
/**
* .v1.PJvmGcType gcType = 3;
* @param value The gcType to set.
* @return This builder for chaining.
*/
public Builder setGcType(com.navercorp.pinpoint.grpc.trace.PJvmGcType value) {
if (value == null) {
throw new NullPointerException();
}
gcType_ = value.getNumber();
onChanged();
return this;
}
/**
* .v1.PJvmGcType gcType = 3;
* @return This builder for chaining.
*/
public Builder clearGcType() {
gcType_ = 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.PJvmInfo)
}
// @@protoc_insertion_point(class_scope:v1.PJvmInfo)
private static final com.navercorp.pinpoint.grpc.trace.PJvmInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.navercorp.pinpoint.grpc.trace.PJvmInfo();
}
public static com.navercorp.pinpoint.grpc.trace.PJvmInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PJvmInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PJvmInfo(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.PJvmInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}