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.PStatMessage 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.PStatMessage}
*/
public final class PStatMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.PStatMessage)
PStatMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use PStatMessage.newBuilder() to construct.
private PStatMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private PStatMessage() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PStatMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PStatMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.navercorp.pinpoint.grpc.trace.PAgentStat.Builder subBuilder = null;
if (fieldCase_ == 1) {
subBuilder = ((com.navercorp.pinpoint.grpc.trace.PAgentStat) field_).toBuilder();
}
field_ =
input.readMessage(com.navercorp.pinpoint.grpc.trace.PAgentStat.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.navercorp.pinpoint.grpc.trace.PAgentStat) field_);
field_ = subBuilder.buildPartial();
}
fieldCase_ = 1;
break;
}
case 18: {
com.navercorp.pinpoint.grpc.trace.PAgentStatBatch.Builder subBuilder = null;
if (fieldCase_ == 2) {
subBuilder = ((com.navercorp.pinpoint.grpc.trace.PAgentStatBatch) field_).toBuilder();
}
field_ =
input.readMessage(com.navercorp.pinpoint.grpc.trace.PAgentStatBatch.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.navercorp.pinpoint.grpc.trace.PAgentStatBatch) field_);
field_ = subBuilder.buildPartial();
}
fieldCase_ = 2;
break;
}
case 26: {
com.navercorp.pinpoint.grpc.trace.PAgentUriStat.Builder subBuilder = null;
if (fieldCase_ == 3) {
subBuilder = ((com.navercorp.pinpoint.grpc.trace.PAgentUriStat) field_).toBuilder();
}
field_ =
input.readMessage(com.navercorp.pinpoint.grpc.trace.PAgentUriStat.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.navercorp.pinpoint.grpc.trace.PAgentUriStat) field_);
field_ = subBuilder.buildPartial();
}
fieldCase_ = 3;
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_PStatMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PStatMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PStatMessage.class, com.navercorp.pinpoint.grpc.trace.PStatMessage.Builder.class);
}
private int fieldCase_ = 0;
private java.lang.Object field_;
public enum FieldCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
AGENTSTAT(1),
AGENTSTATBATCH(2),
AGENTURISTAT(3),
FIELD_NOT_SET(0);
private final int value;
private FieldCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static FieldCase valueOf(int value) {
return forNumber(value);
}
public static FieldCase forNumber(int value) {
switch (value) {
case 1: return AGENTSTAT;
case 2: return AGENTSTATBATCH;
case 3: return AGENTURISTAT;
case 0: return FIELD_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public FieldCase
getFieldCase() {
return FieldCase.forNumber(
fieldCase_);
}
public static final int AGENTSTAT_FIELD_NUMBER = 1;
/**
* .v1.PAgentStat agentStat = 1;
* @return Whether the agentStat field is set.
*/
@java.lang.Override
public boolean hasAgentStat() {
return fieldCase_ == 1;
}
/**
* .v1.PAgentStat agentStat = 1;
* @return The agentStat.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PAgentStat getAgentStat() {
if (fieldCase_ == 1) {
return (com.navercorp.pinpoint.grpc.trace.PAgentStat) field_;
}
return com.navercorp.pinpoint.grpc.trace.PAgentStat.getDefaultInstance();
}
/**
* .v1.PAgentStat agentStat = 1;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PAgentStatOrBuilder getAgentStatOrBuilder() {
if (fieldCase_ == 1) {
return (com.navercorp.pinpoint.grpc.trace.PAgentStat) field_;
}
return com.navercorp.pinpoint.grpc.trace.PAgentStat.getDefaultInstance();
}
public static final int AGENTSTATBATCH_FIELD_NUMBER = 2;
/**
* .v1.PAgentStatBatch agentStatBatch = 2;
* @return Whether the agentStatBatch field is set.
*/
@java.lang.Override
public boolean hasAgentStatBatch() {
return fieldCase_ == 2;
}
/**
* .v1.PAgentStatBatch agentStatBatch = 2;
* @return The agentStatBatch.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PAgentStatBatch getAgentStatBatch() {
if (fieldCase_ == 2) {
return (com.navercorp.pinpoint.grpc.trace.PAgentStatBatch) field_;
}
return com.navercorp.pinpoint.grpc.trace.PAgentStatBatch.getDefaultInstance();
}
/**
* .v1.PAgentStatBatch agentStatBatch = 2;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PAgentStatBatchOrBuilder getAgentStatBatchOrBuilder() {
if (fieldCase_ == 2) {
return (com.navercorp.pinpoint.grpc.trace.PAgentStatBatch) field_;
}
return com.navercorp.pinpoint.grpc.trace.PAgentStatBatch.getDefaultInstance();
}
public static final int AGENTURISTAT_FIELD_NUMBER = 3;
/**
* .v1.PAgentUriStat agentUriStat = 3;
* @return Whether the agentUriStat field is set.
*/
@java.lang.Override
public boolean hasAgentUriStat() {
return fieldCase_ == 3;
}
/**
* .v1.PAgentUriStat agentUriStat = 3;
* @return The agentUriStat.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PAgentUriStat getAgentUriStat() {
if (fieldCase_ == 3) {
return (com.navercorp.pinpoint.grpc.trace.PAgentUriStat) field_;
}
return com.navercorp.pinpoint.grpc.trace.PAgentUriStat.getDefaultInstance();
}
/**
* .v1.PAgentUriStat agentUriStat = 3;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PAgentUriStatOrBuilder getAgentUriStatOrBuilder() {
if (fieldCase_ == 3) {
return (com.navercorp.pinpoint.grpc.trace.PAgentUriStat) field_;
}
return com.navercorp.pinpoint.grpc.trace.PAgentUriStat.getDefaultInstance();
}
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 (fieldCase_ == 1) {
output.writeMessage(1, (com.navercorp.pinpoint.grpc.trace.PAgentStat) field_);
}
if (fieldCase_ == 2) {
output.writeMessage(2, (com.navercorp.pinpoint.grpc.trace.PAgentStatBatch) field_);
}
if (fieldCase_ == 3) {
output.writeMessage(3, (com.navercorp.pinpoint.grpc.trace.PAgentUriStat) field_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (fieldCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.navercorp.pinpoint.grpc.trace.PAgentStat) field_);
}
if (fieldCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.navercorp.pinpoint.grpc.trace.PAgentStatBatch) field_);
}
if (fieldCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.navercorp.pinpoint.grpc.trace.PAgentUriStat) field_);
}
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.PStatMessage)) {
return super.equals(obj);
}
com.navercorp.pinpoint.grpc.trace.PStatMessage other = (com.navercorp.pinpoint.grpc.trace.PStatMessage) obj;
if (!getFieldCase().equals(other.getFieldCase())) return false;
switch (fieldCase_) {
case 1:
if (!getAgentStat()
.equals(other.getAgentStat())) return false;
break;
case 2:
if (!getAgentStatBatch()
.equals(other.getAgentStatBatch())) return false;
break;
case 3:
if (!getAgentUriStat()
.equals(other.getAgentUriStat())) return false;
break;
case 0:
default:
}
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();
switch (fieldCase_) {
case 1:
hash = (37 * hash) + AGENTSTAT_FIELD_NUMBER;
hash = (53 * hash) + getAgentStat().hashCode();
break;
case 2:
hash = (37 * hash) + AGENTSTATBATCH_FIELD_NUMBER;
hash = (53 * hash) + getAgentStatBatch().hashCode();
break;
case 3:
hash = (37 * hash) + AGENTURISTAT_FIELD_NUMBER;
hash = (53 * hash) + getAgentUriStat().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.navercorp.pinpoint.grpc.trace.PStatMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PStatMessage 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.PStatMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PStatMessage 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.PStatMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PStatMessage 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.PStatMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PStatMessage 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.PStatMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PStatMessage 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.PStatMessage 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.PStatMessage 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.PStatMessage 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.PStatMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.PStatMessage)
com.navercorp.pinpoint.grpc.trace.PStatMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PStatMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PStatMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PStatMessage.class, com.navercorp.pinpoint.grpc.trace.PStatMessage.Builder.class);
}
// Construct using com.navercorp.pinpoint.grpc.trace.PStatMessage.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();
fieldCase_ = 0;
field_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.navercorp.pinpoint.grpc.trace.StatProto.internal_static_v1_PStatMessage_descriptor;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PStatMessage getDefaultInstanceForType() {
return com.navercorp.pinpoint.grpc.trace.PStatMessage.getDefaultInstance();
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PStatMessage build() {
com.navercorp.pinpoint.grpc.trace.PStatMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PStatMessage buildPartial() {
com.navercorp.pinpoint.grpc.trace.PStatMessage result = new com.navercorp.pinpoint.grpc.trace.PStatMessage(this);
if (fieldCase_ == 1) {
if (agentStatBuilder_ == null) {
result.field_ = field_;
} else {
result.field_ = agentStatBuilder_.build();
}
}
if (fieldCase_ == 2) {
if (agentStatBatchBuilder_ == null) {
result.field_ = field_;
} else {
result.field_ = agentStatBatchBuilder_.build();
}
}
if (fieldCase_ == 3) {
if (agentUriStatBuilder_ == null) {
result.field_ = field_;
} else {
result.field_ = agentUriStatBuilder_.build();
}
}
result.fieldCase_ = fieldCase_;
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.PStatMessage) {
return mergeFrom((com.navercorp.pinpoint.grpc.trace.PStatMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.navercorp.pinpoint.grpc.trace.PStatMessage other) {
if (other == com.navercorp.pinpoint.grpc.trace.PStatMessage.getDefaultInstance()) return this;
switch (other.getFieldCase()) {
case AGENTSTAT: {
mergeAgentStat(other.getAgentStat());
break;
}
case AGENTSTATBATCH: {
mergeAgentStatBatch(other.getAgentStatBatch());
break;
}
case AGENTURISTAT: {
mergeAgentUriStat(other.getAgentUriStat());
break;
}
case FIELD_NOT_SET: {
break;
}
}
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.PStatMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.navercorp.pinpoint.grpc.trace.PStatMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int fieldCase_ = 0;
private java.lang.Object field_;
public FieldCase
getFieldCase() {
return FieldCase.forNumber(
fieldCase_);
}
public Builder clearField() {
fieldCase_ = 0;
field_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PAgentStat, com.navercorp.pinpoint.grpc.trace.PAgentStat.Builder, com.navercorp.pinpoint.grpc.trace.PAgentStatOrBuilder> agentStatBuilder_;
/**
* .v1.PAgentStat agentStat = 1;
* @return Whether the agentStat field is set.
*/
@java.lang.Override
public boolean hasAgentStat() {
return fieldCase_ == 1;
}
/**
* .v1.PAgentStat agentStat = 1;
* @return The agentStat.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PAgentStat getAgentStat() {
if (agentStatBuilder_ == null) {
if (fieldCase_ == 1) {
return (com.navercorp.pinpoint.grpc.trace.PAgentStat) field_;
}
return com.navercorp.pinpoint.grpc.trace.PAgentStat.getDefaultInstance();
} else {
if (fieldCase_ == 1) {
return agentStatBuilder_.getMessage();
}
return com.navercorp.pinpoint.grpc.trace.PAgentStat.getDefaultInstance();
}
}
/**
* .v1.PAgentStat agentStat = 1;
*/
public Builder setAgentStat(com.navercorp.pinpoint.grpc.trace.PAgentStat value) {
if (agentStatBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
field_ = value;
onChanged();
} else {
agentStatBuilder_.setMessage(value);
}
fieldCase_ = 1;
return this;
}
/**
* .v1.PAgentStat agentStat = 1;
*/
public Builder setAgentStat(
com.navercorp.pinpoint.grpc.trace.PAgentStat.Builder builderForValue) {
if (agentStatBuilder_ == null) {
field_ = builderForValue.build();
onChanged();
} else {
agentStatBuilder_.setMessage(builderForValue.build());
}
fieldCase_ = 1;
return this;
}
/**
* .v1.PAgentStat agentStat = 1;
*/
public Builder mergeAgentStat(com.navercorp.pinpoint.grpc.trace.PAgentStat value) {
if (agentStatBuilder_ == null) {
if (fieldCase_ == 1 &&
field_ != com.navercorp.pinpoint.grpc.trace.PAgentStat.getDefaultInstance()) {
field_ = com.navercorp.pinpoint.grpc.trace.PAgentStat.newBuilder((com.navercorp.pinpoint.grpc.trace.PAgentStat) field_)
.mergeFrom(value).buildPartial();
} else {
field_ = value;
}
onChanged();
} else {
if (fieldCase_ == 1) {
agentStatBuilder_.mergeFrom(value);
}
agentStatBuilder_.setMessage(value);
}
fieldCase_ = 1;
return this;
}
/**
* .v1.PAgentStat agentStat = 1;
*/
public Builder clearAgentStat() {
if (agentStatBuilder_ == null) {
if (fieldCase_ == 1) {
fieldCase_ = 0;
field_ = null;
onChanged();
}
} else {
if (fieldCase_ == 1) {
fieldCase_ = 0;
field_ = null;
}
agentStatBuilder_.clear();
}
return this;
}
/**
* .v1.PAgentStat agentStat = 1;
*/
public com.navercorp.pinpoint.grpc.trace.PAgentStat.Builder getAgentStatBuilder() {
return getAgentStatFieldBuilder().getBuilder();
}
/**
* .v1.PAgentStat agentStat = 1;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PAgentStatOrBuilder getAgentStatOrBuilder() {
if ((fieldCase_ == 1) && (agentStatBuilder_ != null)) {
return agentStatBuilder_.getMessageOrBuilder();
} else {
if (fieldCase_ == 1) {
return (com.navercorp.pinpoint.grpc.trace.PAgentStat) field_;
}
return com.navercorp.pinpoint.grpc.trace.PAgentStat.getDefaultInstance();
}
}
/**
* .v1.PAgentStat agentStat = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PAgentStat, com.navercorp.pinpoint.grpc.trace.PAgentStat.Builder, com.navercorp.pinpoint.grpc.trace.PAgentStatOrBuilder>
getAgentStatFieldBuilder() {
if (agentStatBuilder_ == null) {
if (!(fieldCase_ == 1)) {
field_ = com.navercorp.pinpoint.grpc.trace.PAgentStat.getDefaultInstance();
}
agentStatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PAgentStat, com.navercorp.pinpoint.grpc.trace.PAgentStat.Builder, com.navercorp.pinpoint.grpc.trace.PAgentStatOrBuilder>(
(com.navercorp.pinpoint.grpc.trace.PAgentStat) field_,
getParentForChildren(),
isClean());
field_ = null;
}
fieldCase_ = 1;
onChanged();;
return agentStatBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PAgentStatBatch, com.navercorp.pinpoint.grpc.trace.PAgentStatBatch.Builder, com.navercorp.pinpoint.grpc.trace.PAgentStatBatchOrBuilder> agentStatBatchBuilder_;
/**
* .v1.PAgentStatBatch agentStatBatch = 2;
* @return Whether the agentStatBatch field is set.
*/
@java.lang.Override
public boolean hasAgentStatBatch() {
return fieldCase_ == 2;
}
/**
* .v1.PAgentStatBatch agentStatBatch = 2;
* @return The agentStatBatch.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PAgentStatBatch getAgentStatBatch() {
if (agentStatBatchBuilder_ == null) {
if (fieldCase_ == 2) {
return (com.navercorp.pinpoint.grpc.trace.PAgentStatBatch) field_;
}
return com.navercorp.pinpoint.grpc.trace.PAgentStatBatch.getDefaultInstance();
} else {
if (fieldCase_ == 2) {
return agentStatBatchBuilder_.getMessage();
}
return com.navercorp.pinpoint.grpc.trace.PAgentStatBatch.getDefaultInstance();
}
}
/**
* .v1.PAgentStatBatch agentStatBatch = 2;
*/
public Builder setAgentStatBatch(com.navercorp.pinpoint.grpc.trace.PAgentStatBatch value) {
if (agentStatBatchBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
field_ = value;
onChanged();
} else {
agentStatBatchBuilder_.setMessage(value);
}
fieldCase_ = 2;
return this;
}
/**
* .v1.PAgentStatBatch agentStatBatch = 2;
*/
public Builder setAgentStatBatch(
com.navercorp.pinpoint.grpc.trace.PAgentStatBatch.Builder builderForValue) {
if (agentStatBatchBuilder_ == null) {
field_ = builderForValue.build();
onChanged();
} else {
agentStatBatchBuilder_.setMessage(builderForValue.build());
}
fieldCase_ = 2;
return this;
}
/**
* .v1.PAgentStatBatch agentStatBatch = 2;
*/
public Builder mergeAgentStatBatch(com.navercorp.pinpoint.grpc.trace.PAgentStatBatch value) {
if (agentStatBatchBuilder_ == null) {
if (fieldCase_ == 2 &&
field_ != com.navercorp.pinpoint.grpc.trace.PAgentStatBatch.getDefaultInstance()) {
field_ = com.navercorp.pinpoint.grpc.trace.PAgentStatBatch.newBuilder((com.navercorp.pinpoint.grpc.trace.PAgentStatBatch) field_)
.mergeFrom(value).buildPartial();
} else {
field_ = value;
}
onChanged();
} else {
if (fieldCase_ == 2) {
agentStatBatchBuilder_.mergeFrom(value);
}
agentStatBatchBuilder_.setMessage(value);
}
fieldCase_ = 2;
return this;
}
/**
* .v1.PAgentStatBatch agentStatBatch = 2;
*/
public Builder clearAgentStatBatch() {
if (agentStatBatchBuilder_ == null) {
if (fieldCase_ == 2) {
fieldCase_ = 0;
field_ = null;
onChanged();
}
} else {
if (fieldCase_ == 2) {
fieldCase_ = 0;
field_ = null;
}
agentStatBatchBuilder_.clear();
}
return this;
}
/**
* .v1.PAgentStatBatch agentStatBatch = 2;
*/
public com.navercorp.pinpoint.grpc.trace.PAgentStatBatch.Builder getAgentStatBatchBuilder() {
return getAgentStatBatchFieldBuilder().getBuilder();
}
/**
* .v1.PAgentStatBatch agentStatBatch = 2;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PAgentStatBatchOrBuilder getAgentStatBatchOrBuilder() {
if ((fieldCase_ == 2) && (agentStatBatchBuilder_ != null)) {
return agentStatBatchBuilder_.getMessageOrBuilder();
} else {
if (fieldCase_ == 2) {
return (com.navercorp.pinpoint.grpc.trace.PAgentStatBatch) field_;
}
return com.navercorp.pinpoint.grpc.trace.PAgentStatBatch.getDefaultInstance();
}
}
/**
* .v1.PAgentStatBatch agentStatBatch = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PAgentStatBatch, com.navercorp.pinpoint.grpc.trace.PAgentStatBatch.Builder, com.navercorp.pinpoint.grpc.trace.PAgentStatBatchOrBuilder>
getAgentStatBatchFieldBuilder() {
if (agentStatBatchBuilder_ == null) {
if (!(fieldCase_ == 2)) {
field_ = com.navercorp.pinpoint.grpc.trace.PAgentStatBatch.getDefaultInstance();
}
agentStatBatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PAgentStatBatch, com.navercorp.pinpoint.grpc.trace.PAgentStatBatch.Builder, com.navercorp.pinpoint.grpc.trace.PAgentStatBatchOrBuilder>(
(com.navercorp.pinpoint.grpc.trace.PAgentStatBatch) field_,
getParentForChildren(),
isClean());
field_ = null;
}
fieldCase_ = 2;
onChanged();;
return agentStatBatchBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PAgentUriStat, com.navercorp.pinpoint.grpc.trace.PAgentUriStat.Builder, com.navercorp.pinpoint.grpc.trace.PAgentUriStatOrBuilder> agentUriStatBuilder_;
/**
* .v1.PAgentUriStat agentUriStat = 3;
* @return Whether the agentUriStat field is set.
*/
@java.lang.Override
public boolean hasAgentUriStat() {
return fieldCase_ == 3;
}
/**
* .v1.PAgentUriStat agentUriStat = 3;
* @return The agentUriStat.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PAgentUriStat getAgentUriStat() {
if (agentUriStatBuilder_ == null) {
if (fieldCase_ == 3) {
return (com.navercorp.pinpoint.grpc.trace.PAgentUriStat) field_;
}
return com.navercorp.pinpoint.grpc.trace.PAgentUriStat.getDefaultInstance();
} else {
if (fieldCase_ == 3) {
return agentUriStatBuilder_.getMessage();
}
return com.navercorp.pinpoint.grpc.trace.PAgentUriStat.getDefaultInstance();
}
}
/**
* .v1.PAgentUriStat agentUriStat = 3;
*/
public Builder setAgentUriStat(com.navercorp.pinpoint.grpc.trace.PAgentUriStat value) {
if (agentUriStatBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
field_ = value;
onChanged();
} else {
agentUriStatBuilder_.setMessage(value);
}
fieldCase_ = 3;
return this;
}
/**
* .v1.PAgentUriStat agentUriStat = 3;
*/
public Builder setAgentUriStat(
com.navercorp.pinpoint.grpc.trace.PAgentUriStat.Builder builderForValue) {
if (agentUriStatBuilder_ == null) {
field_ = builderForValue.build();
onChanged();
} else {
agentUriStatBuilder_.setMessage(builderForValue.build());
}
fieldCase_ = 3;
return this;
}
/**
* .v1.PAgentUriStat agentUriStat = 3;
*/
public Builder mergeAgentUriStat(com.navercorp.pinpoint.grpc.trace.PAgentUriStat value) {
if (agentUriStatBuilder_ == null) {
if (fieldCase_ == 3 &&
field_ != com.navercorp.pinpoint.grpc.trace.PAgentUriStat.getDefaultInstance()) {
field_ = com.navercorp.pinpoint.grpc.trace.PAgentUriStat.newBuilder((com.navercorp.pinpoint.grpc.trace.PAgentUriStat) field_)
.mergeFrom(value).buildPartial();
} else {
field_ = value;
}
onChanged();
} else {
if (fieldCase_ == 3) {
agentUriStatBuilder_.mergeFrom(value);
}
agentUriStatBuilder_.setMessage(value);
}
fieldCase_ = 3;
return this;
}
/**
* .v1.PAgentUriStat agentUriStat = 3;
*/
public Builder clearAgentUriStat() {
if (agentUriStatBuilder_ == null) {
if (fieldCase_ == 3) {
fieldCase_ = 0;
field_ = null;
onChanged();
}
} else {
if (fieldCase_ == 3) {
fieldCase_ = 0;
field_ = null;
}
agentUriStatBuilder_.clear();
}
return this;
}
/**
* .v1.PAgentUriStat agentUriStat = 3;
*/
public com.navercorp.pinpoint.grpc.trace.PAgentUriStat.Builder getAgentUriStatBuilder() {
return getAgentUriStatFieldBuilder().getBuilder();
}
/**
* .v1.PAgentUriStat agentUriStat = 3;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PAgentUriStatOrBuilder getAgentUriStatOrBuilder() {
if ((fieldCase_ == 3) && (agentUriStatBuilder_ != null)) {
return agentUriStatBuilder_.getMessageOrBuilder();
} else {
if (fieldCase_ == 3) {
return (com.navercorp.pinpoint.grpc.trace.PAgentUriStat) field_;
}
return com.navercorp.pinpoint.grpc.trace.PAgentUriStat.getDefaultInstance();
}
}
/**
* .v1.PAgentUriStat agentUriStat = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PAgentUriStat, com.navercorp.pinpoint.grpc.trace.PAgentUriStat.Builder, com.navercorp.pinpoint.grpc.trace.PAgentUriStatOrBuilder>
getAgentUriStatFieldBuilder() {
if (agentUriStatBuilder_ == null) {
if (!(fieldCase_ == 3)) {
field_ = com.navercorp.pinpoint.grpc.trace.PAgentUriStat.getDefaultInstance();
}
agentUriStatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PAgentUriStat, com.navercorp.pinpoint.grpc.trace.PAgentUriStat.Builder, com.navercorp.pinpoint.grpc.trace.PAgentUriStatOrBuilder>(
(com.navercorp.pinpoint.grpc.trace.PAgentUriStat) field_,
getParentForChildren(),
isClean());
field_ = null;
}
fieldCase_ = 3;
onChanged();;
return agentUriStatBuilder_;
}
@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.PStatMessage)
}
// @@protoc_insertion_point(class_scope:v1.PStatMessage)
private static final com.navercorp.pinpoint.grpc.trace.PStatMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.navercorp.pinpoint.grpc.trace.PStatMessage();
}
public static com.navercorp.pinpoint.grpc.trace.PStatMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PStatMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PStatMessage(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.PStatMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}