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.PCustomMetric Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: v1/CustomMetric.proto
package com.navercorp.pinpoint.grpc.trace;
/**
* Protobuf type {@code v1.PCustomMetric}
*/
public final class PCustomMetric extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.PCustomMetric)
PCustomMetricOrBuilder {
private static final long serialVersionUID = 0L;
// Use PCustomMetric.newBuilder() to construct.
private PCustomMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private PCustomMetric() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PCustomMetric();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PCustomMetric(
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.PIntCountMetric.Builder subBuilder = null;
if (fieldCase_ == 1) {
subBuilder = ((com.navercorp.pinpoint.grpc.trace.PIntCountMetric) field_).toBuilder();
}
field_ =
input.readMessage(com.navercorp.pinpoint.grpc.trace.PIntCountMetric.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.navercorp.pinpoint.grpc.trace.PIntCountMetric) field_);
field_ = subBuilder.buildPartial();
}
fieldCase_ = 1;
break;
}
case 18: {
com.navercorp.pinpoint.grpc.trace.PLongCountMetric.Builder subBuilder = null;
if (fieldCase_ == 2) {
subBuilder = ((com.navercorp.pinpoint.grpc.trace.PLongCountMetric) field_).toBuilder();
}
field_ =
input.readMessage(com.navercorp.pinpoint.grpc.trace.PLongCountMetric.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.navercorp.pinpoint.grpc.trace.PLongCountMetric) field_);
field_ = subBuilder.buildPartial();
}
fieldCase_ = 2;
break;
}
case 26: {
com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric.Builder subBuilder = null;
if (fieldCase_ == 3) {
subBuilder = ((com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric) field_).toBuilder();
}
field_ =
input.readMessage(com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric) field_);
field_ = subBuilder.buildPartial();
}
fieldCase_ = 3;
break;
}
case 34: {
com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric.Builder subBuilder = null;
if (fieldCase_ == 4) {
subBuilder = ((com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric) field_).toBuilder();
}
field_ =
input.readMessage(com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric) field_);
field_ = subBuilder.buildPartial();
}
fieldCase_ = 4;
break;
}
case 42: {
com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric.Builder subBuilder = null;
if (fieldCase_ == 5) {
subBuilder = ((com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric) field_).toBuilder();
}
field_ =
input.readMessage(com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric) field_);
field_ = subBuilder.buildPartial();
}
fieldCase_ = 5;
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.CustomMetricProto.internal_static_v1_PCustomMetric_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.CustomMetricProto.internal_static_v1_PCustomMetric_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PCustomMetric.class, com.navercorp.pinpoint.grpc.trace.PCustomMetric.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 {
INTCOUNTMETRIC(1),
LONGCOUNTMETRIC(2),
INTGAUGEMETRIC(3),
LONGGAUGEMETRIC(4),
DOUBLEGAUGEMETRIC(5),
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 INTCOUNTMETRIC;
case 2: return LONGCOUNTMETRIC;
case 3: return INTGAUGEMETRIC;
case 4: return LONGGAUGEMETRIC;
case 5: return DOUBLEGAUGEMETRIC;
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 INTCOUNTMETRIC_FIELD_NUMBER = 1;
/**
* .v1.PIntCountMetric intCountMetric = 1;
* @return Whether the intCountMetric field is set.
*/
@java.lang.Override
public boolean hasIntCountMetric() {
return fieldCase_ == 1;
}
/**
* .v1.PIntCountMetric intCountMetric = 1;
* @return The intCountMetric.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PIntCountMetric getIntCountMetric() {
if (fieldCase_ == 1) {
return (com.navercorp.pinpoint.grpc.trace.PIntCountMetric) field_;
}
return com.navercorp.pinpoint.grpc.trace.PIntCountMetric.getDefaultInstance();
}
/**
* .v1.PIntCountMetric intCountMetric = 1;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PIntCountMetricOrBuilder getIntCountMetricOrBuilder() {
if (fieldCase_ == 1) {
return (com.navercorp.pinpoint.grpc.trace.PIntCountMetric) field_;
}
return com.navercorp.pinpoint.grpc.trace.PIntCountMetric.getDefaultInstance();
}
public static final int LONGCOUNTMETRIC_FIELD_NUMBER = 2;
/**
* .v1.PLongCountMetric longCountMetric = 2;
* @return Whether the longCountMetric field is set.
*/
@java.lang.Override
public boolean hasLongCountMetric() {
return fieldCase_ == 2;
}
/**
* .v1.PLongCountMetric longCountMetric = 2;
* @return The longCountMetric.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PLongCountMetric getLongCountMetric() {
if (fieldCase_ == 2) {
return (com.navercorp.pinpoint.grpc.trace.PLongCountMetric) field_;
}
return com.navercorp.pinpoint.grpc.trace.PLongCountMetric.getDefaultInstance();
}
/**
* .v1.PLongCountMetric longCountMetric = 2;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PLongCountMetricOrBuilder getLongCountMetricOrBuilder() {
if (fieldCase_ == 2) {
return (com.navercorp.pinpoint.grpc.trace.PLongCountMetric) field_;
}
return com.navercorp.pinpoint.grpc.trace.PLongCountMetric.getDefaultInstance();
}
public static final int INTGAUGEMETRIC_FIELD_NUMBER = 3;
/**
* .v1.PIntGaugeMetric intGaugeMetric = 3;
* @return Whether the intGaugeMetric field is set.
*/
@java.lang.Override
public boolean hasIntGaugeMetric() {
return fieldCase_ == 3;
}
/**
* .v1.PIntGaugeMetric intGaugeMetric = 3;
* @return The intGaugeMetric.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric getIntGaugeMetric() {
if (fieldCase_ == 3) {
return (com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric) field_;
}
return com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric.getDefaultInstance();
}
/**
* .v1.PIntGaugeMetric intGaugeMetric = 3;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PIntGaugeMetricOrBuilder getIntGaugeMetricOrBuilder() {
if (fieldCase_ == 3) {
return (com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric) field_;
}
return com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric.getDefaultInstance();
}
public static final int LONGGAUGEMETRIC_FIELD_NUMBER = 4;
/**
* .v1.PLongGaugeMetric longGaugeMetric = 4;
* @return Whether the longGaugeMetric field is set.
*/
@java.lang.Override
public boolean hasLongGaugeMetric() {
return fieldCase_ == 4;
}
/**
* .v1.PLongGaugeMetric longGaugeMetric = 4;
* @return The longGaugeMetric.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric getLongGaugeMetric() {
if (fieldCase_ == 4) {
return (com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric) field_;
}
return com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric.getDefaultInstance();
}
/**
* .v1.PLongGaugeMetric longGaugeMetric = 4;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PLongGaugeMetricOrBuilder getLongGaugeMetricOrBuilder() {
if (fieldCase_ == 4) {
return (com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric) field_;
}
return com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric.getDefaultInstance();
}
public static final int DOUBLEGAUGEMETRIC_FIELD_NUMBER = 5;
/**
* .v1.PDouleGaugeMetric doubleGaugeMetric = 5;
* @return Whether the doubleGaugeMetric field is set.
*/
@java.lang.Override
public boolean hasDoubleGaugeMetric() {
return fieldCase_ == 5;
}
/**
* .v1.PDouleGaugeMetric doubleGaugeMetric = 5;
* @return The doubleGaugeMetric.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric getDoubleGaugeMetric() {
if (fieldCase_ == 5) {
return (com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric) field_;
}
return com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric.getDefaultInstance();
}
/**
* .v1.PDouleGaugeMetric doubleGaugeMetric = 5;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetricOrBuilder getDoubleGaugeMetricOrBuilder() {
if (fieldCase_ == 5) {
return (com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric) field_;
}
return com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric.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.PIntCountMetric) field_);
}
if (fieldCase_ == 2) {
output.writeMessage(2, (com.navercorp.pinpoint.grpc.trace.PLongCountMetric) field_);
}
if (fieldCase_ == 3) {
output.writeMessage(3, (com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric) field_);
}
if (fieldCase_ == 4) {
output.writeMessage(4, (com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric) field_);
}
if (fieldCase_ == 5) {
output.writeMessage(5, (com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric) 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.PIntCountMetric) field_);
}
if (fieldCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.navercorp.pinpoint.grpc.trace.PLongCountMetric) field_);
}
if (fieldCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric) field_);
}
if (fieldCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric) field_);
}
if (fieldCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric) 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.PCustomMetric)) {
return super.equals(obj);
}
com.navercorp.pinpoint.grpc.trace.PCustomMetric other = (com.navercorp.pinpoint.grpc.trace.PCustomMetric) obj;
if (!getFieldCase().equals(other.getFieldCase())) return false;
switch (fieldCase_) {
case 1:
if (!getIntCountMetric()
.equals(other.getIntCountMetric())) return false;
break;
case 2:
if (!getLongCountMetric()
.equals(other.getLongCountMetric())) return false;
break;
case 3:
if (!getIntGaugeMetric()
.equals(other.getIntGaugeMetric())) return false;
break;
case 4:
if (!getLongGaugeMetric()
.equals(other.getLongGaugeMetric())) return false;
break;
case 5:
if (!getDoubleGaugeMetric()
.equals(other.getDoubleGaugeMetric())) 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) + INTCOUNTMETRIC_FIELD_NUMBER;
hash = (53 * hash) + getIntCountMetric().hashCode();
break;
case 2:
hash = (37 * hash) + LONGCOUNTMETRIC_FIELD_NUMBER;
hash = (53 * hash) + getLongCountMetric().hashCode();
break;
case 3:
hash = (37 * hash) + INTGAUGEMETRIC_FIELD_NUMBER;
hash = (53 * hash) + getIntGaugeMetric().hashCode();
break;
case 4:
hash = (37 * hash) + LONGGAUGEMETRIC_FIELD_NUMBER;
hash = (53 * hash) + getLongGaugeMetric().hashCode();
break;
case 5:
hash = (37 * hash) + DOUBLEGAUGEMETRIC_FIELD_NUMBER;
hash = (53 * hash) + getDoubleGaugeMetric().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.navercorp.pinpoint.grpc.trace.PCustomMetric parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PCustomMetric 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.PCustomMetric parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PCustomMetric 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.PCustomMetric parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PCustomMetric 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.PCustomMetric parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PCustomMetric 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.PCustomMetric parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PCustomMetric 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.PCustomMetric 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.PCustomMetric 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.PCustomMetric 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.PCustomMetric}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.PCustomMetric)
com.navercorp.pinpoint.grpc.trace.PCustomMetricOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.navercorp.pinpoint.grpc.trace.CustomMetricProto.internal_static_v1_PCustomMetric_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.CustomMetricProto.internal_static_v1_PCustomMetric_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PCustomMetric.class, com.navercorp.pinpoint.grpc.trace.PCustomMetric.Builder.class);
}
// Construct using com.navercorp.pinpoint.grpc.trace.PCustomMetric.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.CustomMetricProto.internal_static_v1_PCustomMetric_descriptor;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCustomMetric getDefaultInstanceForType() {
return com.navercorp.pinpoint.grpc.trace.PCustomMetric.getDefaultInstance();
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCustomMetric build() {
com.navercorp.pinpoint.grpc.trace.PCustomMetric result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PCustomMetric buildPartial() {
com.navercorp.pinpoint.grpc.trace.PCustomMetric result = new com.navercorp.pinpoint.grpc.trace.PCustomMetric(this);
if (fieldCase_ == 1) {
if (intCountMetricBuilder_ == null) {
result.field_ = field_;
} else {
result.field_ = intCountMetricBuilder_.build();
}
}
if (fieldCase_ == 2) {
if (longCountMetricBuilder_ == null) {
result.field_ = field_;
} else {
result.field_ = longCountMetricBuilder_.build();
}
}
if (fieldCase_ == 3) {
if (intGaugeMetricBuilder_ == null) {
result.field_ = field_;
} else {
result.field_ = intGaugeMetricBuilder_.build();
}
}
if (fieldCase_ == 4) {
if (longGaugeMetricBuilder_ == null) {
result.field_ = field_;
} else {
result.field_ = longGaugeMetricBuilder_.build();
}
}
if (fieldCase_ == 5) {
if (doubleGaugeMetricBuilder_ == null) {
result.field_ = field_;
} else {
result.field_ = doubleGaugeMetricBuilder_.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.PCustomMetric) {
return mergeFrom((com.navercorp.pinpoint.grpc.trace.PCustomMetric)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.navercorp.pinpoint.grpc.trace.PCustomMetric other) {
if (other == com.navercorp.pinpoint.grpc.trace.PCustomMetric.getDefaultInstance()) return this;
switch (other.getFieldCase()) {
case INTCOUNTMETRIC: {
mergeIntCountMetric(other.getIntCountMetric());
break;
}
case LONGCOUNTMETRIC: {
mergeLongCountMetric(other.getLongCountMetric());
break;
}
case INTGAUGEMETRIC: {
mergeIntGaugeMetric(other.getIntGaugeMetric());
break;
}
case LONGGAUGEMETRIC: {
mergeLongGaugeMetric(other.getLongGaugeMetric());
break;
}
case DOUBLEGAUGEMETRIC: {
mergeDoubleGaugeMetric(other.getDoubleGaugeMetric());
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.PCustomMetric parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.navercorp.pinpoint.grpc.trace.PCustomMetric) 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.PIntCountMetric, com.navercorp.pinpoint.grpc.trace.PIntCountMetric.Builder, com.navercorp.pinpoint.grpc.trace.PIntCountMetricOrBuilder> intCountMetricBuilder_;
/**
* .v1.PIntCountMetric intCountMetric = 1;
* @return Whether the intCountMetric field is set.
*/
@java.lang.Override
public boolean hasIntCountMetric() {
return fieldCase_ == 1;
}
/**
* .v1.PIntCountMetric intCountMetric = 1;
* @return The intCountMetric.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PIntCountMetric getIntCountMetric() {
if (intCountMetricBuilder_ == null) {
if (fieldCase_ == 1) {
return (com.navercorp.pinpoint.grpc.trace.PIntCountMetric) field_;
}
return com.navercorp.pinpoint.grpc.trace.PIntCountMetric.getDefaultInstance();
} else {
if (fieldCase_ == 1) {
return intCountMetricBuilder_.getMessage();
}
return com.navercorp.pinpoint.grpc.trace.PIntCountMetric.getDefaultInstance();
}
}
/**
* .v1.PIntCountMetric intCountMetric = 1;
*/
public Builder setIntCountMetric(com.navercorp.pinpoint.grpc.trace.PIntCountMetric value) {
if (intCountMetricBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
field_ = value;
onChanged();
} else {
intCountMetricBuilder_.setMessage(value);
}
fieldCase_ = 1;
return this;
}
/**
* .v1.PIntCountMetric intCountMetric = 1;
*/
public Builder setIntCountMetric(
com.navercorp.pinpoint.grpc.trace.PIntCountMetric.Builder builderForValue) {
if (intCountMetricBuilder_ == null) {
field_ = builderForValue.build();
onChanged();
} else {
intCountMetricBuilder_.setMessage(builderForValue.build());
}
fieldCase_ = 1;
return this;
}
/**
* .v1.PIntCountMetric intCountMetric = 1;
*/
public Builder mergeIntCountMetric(com.navercorp.pinpoint.grpc.trace.PIntCountMetric value) {
if (intCountMetricBuilder_ == null) {
if (fieldCase_ == 1 &&
field_ != com.navercorp.pinpoint.grpc.trace.PIntCountMetric.getDefaultInstance()) {
field_ = com.navercorp.pinpoint.grpc.trace.PIntCountMetric.newBuilder((com.navercorp.pinpoint.grpc.trace.PIntCountMetric) field_)
.mergeFrom(value).buildPartial();
} else {
field_ = value;
}
onChanged();
} else {
if (fieldCase_ == 1) {
intCountMetricBuilder_.mergeFrom(value);
}
intCountMetricBuilder_.setMessage(value);
}
fieldCase_ = 1;
return this;
}
/**
* .v1.PIntCountMetric intCountMetric = 1;
*/
public Builder clearIntCountMetric() {
if (intCountMetricBuilder_ == null) {
if (fieldCase_ == 1) {
fieldCase_ = 0;
field_ = null;
onChanged();
}
} else {
if (fieldCase_ == 1) {
fieldCase_ = 0;
field_ = null;
}
intCountMetricBuilder_.clear();
}
return this;
}
/**
* .v1.PIntCountMetric intCountMetric = 1;
*/
public com.navercorp.pinpoint.grpc.trace.PIntCountMetric.Builder getIntCountMetricBuilder() {
return getIntCountMetricFieldBuilder().getBuilder();
}
/**
* .v1.PIntCountMetric intCountMetric = 1;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PIntCountMetricOrBuilder getIntCountMetricOrBuilder() {
if ((fieldCase_ == 1) && (intCountMetricBuilder_ != null)) {
return intCountMetricBuilder_.getMessageOrBuilder();
} else {
if (fieldCase_ == 1) {
return (com.navercorp.pinpoint.grpc.trace.PIntCountMetric) field_;
}
return com.navercorp.pinpoint.grpc.trace.PIntCountMetric.getDefaultInstance();
}
}
/**
* .v1.PIntCountMetric intCountMetric = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PIntCountMetric, com.navercorp.pinpoint.grpc.trace.PIntCountMetric.Builder, com.navercorp.pinpoint.grpc.trace.PIntCountMetricOrBuilder>
getIntCountMetricFieldBuilder() {
if (intCountMetricBuilder_ == null) {
if (!(fieldCase_ == 1)) {
field_ = com.navercorp.pinpoint.grpc.trace.PIntCountMetric.getDefaultInstance();
}
intCountMetricBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PIntCountMetric, com.navercorp.pinpoint.grpc.trace.PIntCountMetric.Builder, com.navercorp.pinpoint.grpc.trace.PIntCountMetricOrBuilder>(
(com.navercorp.pinpoint.grpc.trace.PIntCountMetric) field_,
getParentForChildren(),
isClean());
field_ = null;
}
fieldCase_ = 1;
onChanged();;
return intCountMetricBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PLongCountMetric, com.navercorp.pinpoint.grpc.trace.PLongCountMetric.Builder, com.navercorp.pinpoint.grpc.trace.PLongCountMetricOrBuilder> longCountMetricBuilder_;
/**
* .v1.PLongCountMetric longCountMetric = 2;
* @return Whether the longCountMetric field is set.
*/
@java.lang.Override
public boolean hasLongCountMetric() {
return fieldCase_ == 2;
}
/**
* .v1.PLongCountMetric longCountMetric = 2;
* @return The longCountMetric.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PLongCountMetric getLongCountMetric() {
if (longCountMetricBuilder_ == null) {
if (fieldCase_ == 2) {
return (com.navercorp.pinpoint.grpc.trace.PLongCountMetric) field_;
}
return com.navercorp.pinpoint.grpc.trace.PLongCountMetric.getDefaultInstance();
} else {
if (fieldCase_ == 2) {
return longCountMetricBuilder_.getMessage();
}
return com.navercorp.pinpoint.grpc.trace.PLongCountMetric.getDefaultInstance();
}
}
/**
* .v1.PLongCountMetric longCountMetric = 2;
*/
public Builder setLongCountMetric(com.navercorp.pinpoint.grpc.trace.PLongCountMetric value) {
if (longCountMetricBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
field_ = value;
onChanged();
} else {
longCountMetricBuilder_.setMessage(value);
}
fieldCase_ = 2;
return this;
}
/**
* .v1.PLongCountMetric longCountMetric = 2;
*/
public Builder setLongCountMetric(
com.navercorp.pinpoint.grpc.trace.PLongCountMetric.Builder builderForValue) {
if (longCountMetricBuilder_ == null) {
field_ = builderForValue.build();
onChanged();
} else {
longCountMetricBuilder_.setMessage(builderForValue.build());
}
fieldCase_ = 2;
return this;
}
/**
* .v1.PLongCountMetric longCountMetric = 2;
*/
public Builder mergeLongCountMetric(com.navercorp.pinpoint.grpc.trace.PLongCountMetric value) {
if (longCountMetricBuilder_ == null) {
if (fieldCase_ == 2 &&
field_ != com.navercorp.pinpoint.grpc.trace.PLongCountMetric.getDefaultInstance()) {
field_ = com.navercorp.pinpoint.grpc.trace.PLongCountMetric.newBuilder((com.navercorp.pinpoint.grpc.trace.PLongCountMetric) field_)
.mergeFrom(value).buildPartial();
} else {
field_ = value;
}
onChanged();
} else {
if (fieldCase_ == 2) {
longCountMetricBuilder_.mergeFrom(value);
}
longCountMetricBuilder_.setMessage(value);
}
fieldCase_ = 2;
return this;
}
/**
* .v1.PLongCountMetric longCountMetric = 2;
*/
public Builder clearLongCountMetric() {
if (longCountMetricBuilder_ == null) {
if (fieldCase_ == 2) {
fieldCase_ = 0;
field_ = null;
onChanged();
}
} else {
if (fieldCase_ == 2) {
fieldCase_ = 0;
field_ = null;
}
longCountMetricBuilder_.clear();
}
return this;
}
/**
* .v1.PLongCountMetric longCountMetric = 2;
*/
public com.navercorp.pinpoint.grpc.trace.PLongCountMetric.Builder getLongCountMetricBuilder() {
return getLongCountMetricFieldBuilder().getBuilder();
}
/**
* .v1.PLongCountMetric longCountMetric = 2;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PLongCountMetricOrBuilder getLongCountMetricOrBuilder() {
if ((fieldCase_ == 2) && (longCountMetricBuilder_ != null)) {
return longCountMetricBuilder_.getMessageOrBuilder();
} else {
if (fieldCase_ == 2) {
return (com.navercorp.pinpoint.grpc.trace.PLongCountMetric) field_;
}
return com.navercorp.pinpoint.grpc.trace.PLongCountMetric.getDefaultInstance();
}
}
/**
* .v1.PLongCountMetric longCountMetric = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PLongCountMetric, com.navercorp.pinpoint.grpc.trace.PLongCountMetric.Builder, com.navercorp.pinpoint.grpc.trace.PLongCountMetricOrBuilder>
getLongCountMetricFieldBuilder() {
if (longCountMetricBuilder_ == null) {
if (!(fieldCase_ == 2)) {
field_ = com.navercorp.pinpoint.grpc.trace.PLongCountMetric.getDefaultInstance();
}
longCountMetricBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PLongCountMetric, com.navercorp.pinpoint.grpc.trace.PLongCountMetric.Builder, com.navercorp.pinpoint.grpc.trace.PLongCountMetricOrBuilder>(
(com.navercorp.pinpoint.grpc.trace.PLongCountMetric) field_,
getParentForChildren(),
isClean());
field_ = null;
}
fieldCase_ = 2;
onChanged();;
return longCountMetricBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric, com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric.Builder, com.navercorp.pinpoint.grpc.trace.PIntGaugeMetricOrBuilder> intGaugeMetricBuilder_;
/**
* .v1.PIntGaugeMetric intGaugeMetric = 3;
* @return Whether the intGaugeMetric field is set.
*/
@java.lang.Override
public boolean hasIntGaugeMetric() {
return fieldCase_ == 3;
}
/**
* .v1.PIntGaugeMetric intGaugeMetric = 3;
* @return The intGaugeMetric.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric getIntGaugeMetric() {
if (intGaugeMetricBuilder_ == null) {
if (fieldCase_ == 3) {
return (com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric) field_;
}
return com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric.getDefaultInstance();
} else {
if (fieldCase_ == 3) {
return intGaugeMetricBuilder_.getMessage();
}
return com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric.getDefaultInstance();
}
}
/**
* .v1.PIntGaugeMetric intGaugeMetric = 3;
*/
public Builder setIntGaugeMetric(com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric value) {
if (intGaugeMetricBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
field_ = value;
onChanged();
} else {
intGaugeMetricBuilder_.setMessage(value);
}
fieldCase_ = 3;
return this;
}
/**
* .v1.PIntGaugeMetric intGaugeMetric = 3;
*/
public Builder setIntGaugeMetric(
com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric.Builder builderForValue) {
if (intGaugeMetricBuilder_ == null) {
field_ = builderForValue.build();
onChanged();
} else {
intGaugeMetricBuilder_.setMessage(builderForValue.build());
}
fieldCase_ = 3;
return this;
}
/**
* .v1.PIntGaugeMetric intGaugeMetric = 3;
*/
public Builder mergeIntGaugeMetric(com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric value) {
if (intGaugeMetricBuilder_ == null) {
if (fieldCase_ == 3 &&
field_ != com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric.getDefaultInstance()) {
field_ = com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric.newBuilder((com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric) field_)
.mergeFrom(value).buildPartial();
} else {
field_ = value;
}
onChanged();
} else {
if (fieldCase_ == 3) {
intGaugeMetricBuilder_.mergeFrom(value);
}
intGaugeMetricBuilder_.setMessage(value);
}
fieldCase_ = 3;
return this;
}
/**
* .v1.PIntGaugeMetric intGaugeMetric = 3;
*/
public Builder clearIntGaugeMetric() {
if (intGaugeMetricBuilder_ == null) {
if (fieldCase_ == 3) {
fieldCase_ = 0;
field_ = null;
onChanged();
}
} else {
if (fieldCase_ == 3) {
fieldCase_ = 0;
field_ = null;
}
intGaugeMetricBuilder_.clear();
}
return this;
}
/**
* .v1.PIntGaugeMetric intGaugeMetric = 3;
*/
public com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric.Builder getIntGaugeMetricBuilder() {
return getIntGaugeMetricFieldBuilder().getBuilder();
}
/**
* .v1.PIntGaugeMetric intGaugeMetric = 3;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PIntGaugeMetricOrBuilder getIntGaugeMetricOrBuilder() {
if ((fieldCase_ == 3) && (intGaugeMetricBuilder_ != null)) {
return intGaugeMetricBuilder_.getMessageOrBuilder();
} else {
if (fieldCase_ == 3) {
return (com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric) field_;
}
return com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric.getDefaultInstance();
}
}
/**
* .v1.PIntGaugeMetric intGaugeMetric = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric, com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric.Builder, com.navercorp.pinpoint.grpc.trace.PIntGaugeMetricOrBuilder>
getIntGaugeMetricFieldBuilder() {
if (intGaugeMetricBuilder_ == null) {
if (!(fieldCase_ == 3)) {
field_ = com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric.getDefaultInstance();
}
intGaugeMetricBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric, com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric.Builder, com.navercorp.pinpoint.grpc.trace.PIntGaugeMetricOrBuilder>(
(com.navercorp.pinpoint.grpc.trace.PIntGaugeMetric) field_,
getParentForChildren(),
isClean());
field_ = null;
}
fieldCase_ = 3;
onChanged();;
return intGaugeMetricBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric, com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric.Builder, com.navercorp.pinpoint.grpc.trace.PLongGaugeMetricOrBuilder> longGaugeMetricBuilder_;
/**
* .v1.PLongGaugeMetric longGaugeMetric = 4;
* @return Whether the longGaugeMetric field is set.
*/
@java.lang.Override
public boolean hasLongGaugeMetric() {
return fieldCase_ == 4;
}
/**
* .v1.PLongGaugeMetric longGaugeMetric = 4;
* @return The longGaugeMetric.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric getLongGaugeMetric() {
if (longGaugeMetricBuilder_ == null) {
if (fieldCase_ == 4) {
return (com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric) field_;
}
return com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric.getDefaultInstance();
} else {
if (fieldCase_ == 4) {
return longGaugeMetricBuilder_.getMessage();
}
return com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric.getDefaultInstance();
}
}
/**
* .v1.PLongGaugeMetric longGaugeMetric = 4;
*/
public Builder setLongGaugeMetric(com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric value) {
if (longGaugeMetricBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
field_ = value;
onChanged();
} else {
longGaugeMetricBuilder_.setMessage(value);
}
fieldCase_ = 4;
return this;
}
/**
* .v1.PLongGaugeMetric longGaugeMetric = 4;
*/
public Builder setLongGaugeMetric(
com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric.Builder builderForValue) {
if (longGaugeMetricBuilder_ == null) {
field_ = builderForValue.build();
onChanged();
} else {
longGaugeMetricBuilder_.setMessage(builderForValue.build());
}
fieldCase_ = 4;
return this;
}
/**
* .v1.PLongGaugeMetric longGaugeMetric = 4;
*/
public Builder mergeLongGaugeMetric(com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric value) {
if (longGaugeMetricBuilder_ == null) {
if (fieldCase_ == 4 &&
field_ != com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric.getDefaultInstance()) {
field_ = com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric.newBuilder((com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric) field_)
.mergeFrom(value).buildPartial();
} else {
field_ = value;
}
onChanged();
} else {
if (fieldCase_ == 4) {
longGaugeMetricBuilder_.mergeFrom(value);
}
longGaugeMetricBuilder_.setMessage(value);
}
fieldCase_ = 4;
return this;
}
/**
* .v1.PLongGaugeMetric longGaugeMetric = 4;
*/
public Builder clearLongGaugeMetric() {
if (longGaugeMetricBuilder_ == null) {
if (fieldCase_ == 4) {
fieldCase_ = 0;
field_ = null;
onChanged();
}
} else {
if (fieldCase_ == 4) {
fieldCase_ = 0;
field_ = null;
}
longGaugeMetricBuilder_.clear();
}
return this;
}
/**
* .v1.PLongGaugeMetric longGaugeMetric = 4;
*/
public com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric.Builder getLongGaugeMetricBuilder() {
return getLongGaugeMetricFieldBuilder().getBuilder();
}
/**
* .v1.PLongGaugeMetric longGaugeMetric = 4;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PLongGaugeMetricOrBuilder getLongGaugeMetricOrBuilder() {
if ((fieldCase_ == 4) && (longGaugeMetricBuilder_ != null)) {
return longGaugeMetricBuilder_.getMessageOrBuilder();
} else {
if (fieldCase_ == 4) {
return (com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric) field_;
}
return com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric.getDefaultInstance();
}
}
/**
* .v1.PLongGaugeMetric longGaugeMetric = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric, com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric.Builder, com.navercorp.pinpoint.grpc.trace.PLongGaugeMetricOrBuilder>
getLongGaugeMetricFieldBuilder() {
if (longGaugeMetricBuilder_ == null) {
if (!(fieldCase_ == 4)) {
field_ = com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric.getDefaultInstance();
}
longGaugeMetricBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric, com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric.Builder, com.navercorp.pinpoint.grpc.trace.PLongGaugeMetricOrBuilder>(
(com.navercorp.pinpoint.grpc.trace.PLongGaugeMetric) field_,
getParentForChildren(),
isClean());
field_ = null;
}
fieldCase_ = 4;
onChanged();;
return longGaugeMetricBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric, com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric.Builder, com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetricOrBuilder> doubleGaugeMetricBuilder_;
/**
* .v1.PDouleGaugeMetric doubleGaugeMetric = 5;
* @return Whether the doubleGaugeMetric field is set.
*/
@java.lang.Override
public boolean hasDoubleGaugeMetric() {
return fieldCase_ == 5;
}
/**
* .v1.PDouleGaugeMetric doubleGaugeMetric = 5;
* @return The doubleGaugeMetric.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric getDoubleGaugeMetric() {
if (doubleGaugeMetricBuilder_ == null) {
if (fieldCase_ == 5) {
return (com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric) field_;
}
return com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric.getDefaultInstance();
} else {
if (fieldCase_ == 5) {
return doubleGaugeMetricBuilder_.getMessage();
}
return com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric.getDefaultInstance();
}
}
/**
* .v1.PDouleGaugeMetric doubleGaugeMetric = 5;
*/
public Builder setDoubleGaugeMetric(com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric value) {
if (doubleGaugeMetricBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
field_ = value;
onChanged();
} else {
doubleGaugeMetricBuilder_.setMessage(value);
}
fieldCase_ = 5;
return this;
}
/**
* .v1.PDouleGaugeMetric doubleGaugeMetric = 5;
*/
public Builder setDoubleGaugeMetric(
com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric.Builder builderForValue) {
if (doubleGaugeMetricBuilder_ == null) {
field_ = builderForValue.build();
onChanged();
} else {
doubleGaugeMetricBuilder_.setMessage(builderForValue.build());
}
fieldCase_ = 5;
return this;
}
/**
* .v1.PDouleGaugeMetric doubleGaugeMetric = 5;
*/
public Builder mergeDoubleGaugeMetric(com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric value) {
if (doubleGaugeMetricBuilder_ == null) {
if (fieldCase_ == 5 &&
field_ != com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric.getDefaultInstance()) {
field_ = com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric.newBuilder((com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric) field_)
.mergeFrom(value).buildPartial();
} else {
field_ = value;
}
onChanged();
} else {
if (fieldCase_ == 5) {
doubleGaugeMetricBuilder_.mergeFrom(value);
}
doubleGaugeMetricBuilder_.setMessage(value);
}
fieldCase_ = 5;
return this;
}
/**
* .v1.PDouleGaugeMetric doubleGaugeMetric = 5;
*/
public Builder clearDoubleGaugeMetric() {
if (doubleGaugeMetricBuilder_ == null) {
if (fieldCase_ == 5) {
fieldCase_ = 0;
field_ = null;
onChanged();
}
} else {
if (fieldCase_ == 5) {
fieldCase_ = 0;
field_ = null;
}
doubleGaugeMetricBuilder_.clear();
}
return this;
}
/**
* .v1.PDouleGaugeMetric doubleGaugeMetric = 5;
*/
public com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric.Builder getDoubleGaugeMetricBuilder() {
return getDoubleGaugeMetricFieldBuilder().getBuilder();
}
/**
* .v1.PDouleGaugeMetric doubleGaugeMetric = 5;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetricOrBuilder getDoubleGaugeMetricOrBuilder() {
if ((fieldCase_ == 5) && (doubleGaugeMetricBuilder_ != null)) {
return doubleGaugeMetricBuilder_.getMessageOrBuilder();
} else {
if (fieldCase_ == 5) {
return (com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric) field_;
}
return com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric.getDefaultInstance();
}
}
/**
* .v1.PDouleGaugeMetric doubleGaugeMetric = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric, com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric.Builder, com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetricOrBuilder>
getDoubleGaugeMetricFieldBuilder() {
if (doubleGaugeMetricBuilder_ == null) {
if (!(fieldCase_ == 5)) {
field_ = com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric.getDefaultInstance();
}
doubleGaugeMetricBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric, com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric.Builder, com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetricOrBuilder>(
(com.navercorp.pinpoint.grpc.trace.PDouleGaugeMetric) field_,
getParentForChildren(),
isClean());
field_ = null;
}
fieldCase_ = 5;
onChanged();;
return doubleGaugeMetricBuilder_;
}
@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.PCustomMetric)
}
// @@protoc_insertion_point(class_scope:v1.PCustomMetric)
private static final com.navercorp.pinpoint.grpc.trace.PCustomMetric DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.navercorp.pinpoint.grpc.trace.PCustomMetric();
}
public static com.navercorp.pinpoint.grpc.trace.PCustomMetric getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PCustomMetric parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PCustomMetric(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.PCustomMetric getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}