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.PSpan Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: v1/Span.proto
package com.navercorp.pinpoint.grpc.trace;
/**
* Protobuf type {@code v1.PSpan}
*/
public final class PSpan extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.PSpan)
PSpanOrBuilder {
private static final long serialVersionUID = 0L;
// Use PSpan.newBuilder() to construct.
private PSpan(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private PSpan() {
annotation_ = java.util.Collections.emptyList();
spanEvent_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PSpan();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PSpan(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
version_ = input.readInt32();
break;
}
case 18: {
com.navercorp.pinpoint.grpc.trace.PTransactionId.Builder subBuilder = null;
if (transactionId_ != null) {
subBuilder = transactionId_.toBuilder();
}
transactionId_ = input.readMessage(com.navercorp.pinpoint.grpc.trace.PTransactionId.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(transactionId_);
transactionId_ = subBuilder.buildPartial();
}
break;
}
case 25: {
spanId_ = input.readSFixed64();
break;
}
case 33: {
parentSpanId_ = input.readSFixed64();
break;
}
case 40: {
startTime_ = input.readInt64();
break;
}
case 48: {
elapsed_ = input.readInt32();
break;
}
case 56: {
apiId_ = input.readInt32();
break;
}
case 64: {
serviceType_ = input.readInt32();
break;
}
case 74: {
com.navercorp.pinpoint.grpc.trace.PAcceptEvent.Builder subBuilder = null;
if (acceptEvent_ != null) {
subBuilder = acceptEvent_.toBuilder();
}
acceptEvent_ = input.readMessage(com.navercorp.pinpoint.grpc.trace.PAcceptEvent.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(acceptEvent_);
acceptEvent_ = subBuilder.buildPartial();
}
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
annotation_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
annotation_.add(
input.readMessage(com.navercorp.pinpoint.grpc.trace.PAnnotation.parser(), extensionRegistry));
break;
}
case 88: {
flag_ = input.readInt32();
break;
}
case 96: {
err_ = input.readSInt32();
break;
}
case 106: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
spanEvent_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
spanEvent_.add(
input.readMessage(com.navercorp.pinpoint.grpc.trace.PSpanEvent.parser(), extensionRegistry));
break;
}
case 114: {
com.navercorp.pinpoint.grpc.trace.PIntStringValue.Builder subBuilder = null;
if (exceptionInfo_ != null) {
subBuilder = exceptionInfo_.toBuilder();
}
exceptionInfo_ = input.readMessage(com.navercorp.pinpoint.grpc.trace.PIntStringValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(exceptionInfo_);
exceptionInfo_ = subBuilder.buildPartial();
}
break;
}
case 120: {
applicationServiceType_ = input.readInt32();
break;
}
case 128: {
loggingTransactionInfo_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
annotation_ = java.util.Collections.unmodifiableList(annotation_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
spanEvent_ = java.util.Collections.unmodifiableList(spanEvent_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.navercorp.pinpoint.grpc.trace.SpanProto.internal_static_v1_PSpan_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.SpanProto.internal_static_v1_PSpan_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PSpan.class, com.navercorp.pinpoint.grpc.trace.PSpan.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 TRANSACTIONID_FIELD_NUMBER = 2;
private com.navercorp.pinpoint.grpc.trace.PTransactionId transactionId_;
/**
* .v1.PTransactionId transactionId = 2;
* @return Whether the transactionId field is set.
*/
@java.lang.Override
public boolean hasTransactionId() {
return transactionId_ != null;
}
/**
* .v1.PTransactionId transactionId = 2;
* @return The transactionId.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PTransactionId getTransactionId() {
return transactionId_ == null ? com.navercorp.pinpoint.grpc.trace.PTransactionId.getDefaultInstance() : transactionId_;
}
/**
* .v1.PTransactionId transactionId = 2;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PTransactionIdOrBuilder getTransactionIdOrBuilder() {
return getTransactionId();
}
public static final int SPANID_FIELD_NUMBER = 3;
private long spanId_;
/**
* sfixed64 spanId = 3 [jstype = JS_STRING];
* @return The spanId.
*/
@java.lang.Override
public long getSpanId() {
return spanId_;
}
public static final int PARENTSPANID_FIELD_NUMBER = 4;
private long parentSpanId_;
/**
* sfixed64 parentSpanId = 4 [jstype = JS_STRING];
* @return The parentSpanId.
*/
@java.lang.Override
public long getParentSpanId() {
return parentSpanId_;
}
public static final int STARTTIME_FIELD_NUMBER = 5;
private long startTime_;
/**
*
* span event's startTimestamp
*
*
* int64 startTime = 5;
* @return The startTime.
*/
@java.lang.Override
public long getStartTime() {
return startTime_;
}
public static final int ELAPSED_FIELD_NUMBER = 6;
private int elapsed_;
/**
* int32 elapsed = 6;
* @return The elapsed.
*/
@java.lang.Override
public int getElapsed() {
return elapsed_;
}
public static final int APIID_FIELD_NUMBER = 7;
private int apiId_;
/**
* int32 apiId = 7;
* @return The apiId.
*/
@java.lang.Override
public int getApiId() {
return apiId_;
}
public static final int SERVICETYPE_FIELD_NUMBER = 8;
private int serviceType_;
/**
* int32 serviceType = 8;
* @return The serviceType.
*/
@java.lang.Override
public int getServiceType() {
return serviceType_;
}
public static final int ACCEPTEVENT_FIELD_NUMBER = 9;
private com.navercorp.pinpoint.grpc.trace.PAcceptEvent acceptEvent_;
/**
* .v1.PAcceptEvent acceptEvent = 9;
* @return Whether the acceptEvent field is set.
*/
@java.lang.Override
public boolean hasAcceptEvent() {
return acceptEvent_ != null;
}
/**
* .v1.PAcceptEvent acceptEvent = 9;
* @return The acceptEvent.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PAcceptEvent getAcceptEvent() {
return acceptEvent_ == null ? com.navercorp.pinpoint.grpc.trace.PAcceptEvent.getDefaultInstance() : acceptEvent_;
}
/**
* .v1.PAcceptEvent acceptEvent = 9;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PAcceptEventOrBuilder getAcceptEventOrBuilder() {
return getAcceptEvent();
}
public static final int ANNOTATION_FIELD_NUMBER = 10;
private java.util.List annotation_;
/**
* repeated .v1.PAnnotation annotation = 10;
*/
@java.lang.Override
public java.util.List getAnnotationList() {
return annotation_;
}
/**
* repeated .v1.PAnnotation annotation = 10;
*/
@java.lang.Override
public java.util.List
getAnnotationOrBuilderList() {
return annotation_;
}
/**
* repeated .v1.PAnnotation annotation = 10;
*/
@java.lang.Override
public int getAnnotationCount() {
return annotation_.size();
}
/**
* repeated .v1.PAnnotation annotation = 10;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PAnnotation getAnnotation(int index) {
return annotation_.get(index);
}
/**
* repeated .v1.PAnnotation annotation = 10;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PAnnotationOrBuilder getAnnotationOrBuilder(
int index) {
return annotation_.get(index);
}
public static final int FLAG_FIELD_NUMBER = 11;
private int flag_;
/**
* int32 flag = 11;
* @return The flag.
*/
@java.lang.Override
public int getFlag() {
return flag_;
}
public static final int ERR_FIELD_NUMBER = 12;
private int err_;
/**
* sint32 err = 12;
* @return The err.
*/
@java.lang.Override
public int getErr() {
return err_;
}
public static final int SPANEVENT_FIELD_NUMBER = 13;
private java.util.List spanEvent_;
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
@java.lang.Override
public java.util.List getSpanEventList() {
return spanEvent_;
}
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
@java.lang.Override
public java.util.List
getSpanEventOrBuilderList() {
return spanEvent_;
}
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
@java.lang.Override
public int getSpanEventCount() {
return spanEvent_.size();
}
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PSpanEvent getSpanEvent(int index) {
return spanEvent_.get(index);
}
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PSpanEventOrBuilder getSpanEventOrBuilder(
int index) {
return spanEvent_.get(index);
}
public static final int EXCEPTIONINFO_FIELD_NUMBER = 14;
private com.navercorp.pinpoint.grpc.trace.PIntStringValue exceptionInfo_;
/**
* .v1.PIntStringValue exceptionInfo = 14;
* @return Whether the exceptionInfo field is set.
*/
@java.lang.Override
public boolean hasExceptionInfo() {
return exceptionInfo_ != null;
}
/**
* .v1.PIntStringValue exceptionInfo = 14;
* @return The exceptionInfo.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PIntStringValue getExceptionInfo() {
return exceptionInfo_ == null ? com.navercorp.pinpoint.grpc.trace.PIntStringValue.getDefaultInstance() : exceptionInfo_;
}
/**
* .v1.PIntStringValue exceptionInfo = 14;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PIntStringValueOrBuilder getExceptionInfoOrBuilder() {
return getExceptionInfo();
}
public static final int APPLICATIONSERVICETYPE_FIELD_NUMBER = 15;
private int applicationServiceType_;
/**
* int32 applicationServiceType = 15;
* @return The applicationServiceType.
*/
@java.lang.Override
public int getApplicationServiceType() {
return applicationServiceType_;
}
public static final int LOGGINGTRANSACTIONINFO_FIELD_NUMBER = 16;
private int loggingTransactionInfo_;
/**
* int32 loggingTransactionInfo = 16;
* @return The loggingTransactionInfo.
*/
@java.lang.Override
public int getLoggingTransactionInfo() {
return loggingTransactionInfo_;
}
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 (transactionId_ != null) {
output.writeMessage(2, getTransactionId());
}
if (spanId_ != 0L) {
output.writeSFixed64(3, spanId_);
}
if (parentSpanId_ != 0L) {
output.writeSFixed64(4, parentSpanId_);
}
if (startTime_ != 0L) {
output.writeInt64(5, startTime_);
}
if (elapsed_ != 0) {
output.writeInt32(6, elapsed_);
}
if (apiId_ != 0) {
output.writeInt32(7, apiId_);
}
if (serviceType_ != 0) {
output.writeInt32(8, serviceType_);
}
if (acceptEvent_ != null) {
output.writeMessage(9, getAcceptEvent());
}
for (int i = 0; i < annotation_.size(); i++) {
output.writeMessage(10, annotation_.get(i));
}
if (flag_ != 0) {
output.writeInt32(11, flag_);
}
if (err_ != 0) {
output.writeSInt32(12, err_);
}
for (int i = 0; i < spanEvent_.size(); i++) {
output.writeMessage(13, spanEvent_.get(i));
}
if (exceptionInfo_ != null) {
output.writeMessage(14, getExceptionInfo());
}
if (applicationServiceType_ != 0) {
output.writeInt32(15, applicationServiceType_);
}
if (loggingTransactionInfo_ != 0) {
output.writeInt32(16, loggingTransactionInfo_);
}
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 (transactionId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTransactionId());
}
if (spanId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(3, spanId_);
}
if (parentSpanId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(4, parentSpanId_);
}
if (startTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, startTime_);
}
if (elapsed_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, elapsed_);
}
if (apiId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, apiId_);
}
if (serviceType_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(8, serviceType_);
}
if (acceptEvent_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getAcceptEvent());
}
for (int i = 0; i < annotation_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, annotation_.get(i));
}
if (flag_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(11, flag_);
}
if (err_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(12, err_);
}
for (int i = 0; i < spanEvent_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, spanEvent_.get(i));
}
if (exceptionInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getExceptionInfo());
}
if (applicationServiceType_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(15, applicationServiceType_);
}
if (loggingTransactionInfo_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(16, loggingTransactionInfo_);
}
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.PSpan)) {
return super.equals(obj);
}
com.navercorp.pinpoint.grpc.trace.PSpan other = (com.navercorp.pinpoint.grpc.trace.PSpan) obj;
if (getVersion()
!= other.getVersion()) return false;
if (hasTransactionId() != other.hasTransactionId()) return false;
if (hasTransactionId()) {
if (!getTransactionId()
.equals(other.getTransactionId())) return false;
}
if (getSpanId()
!= other.getSpanId()) return false;
if (getParentSpanId()
!= other.getParentSpanId()) return false;
if (getStartTime()
!= other.getStartTime()) return false;
if (getElapsed()
!= other.getElapsed()) return false;
if (getApiId()
!= other.getApiId()) return false;
if (getServiceType()
!= other.getServiceType()) return false;
if (hasAcceptEvent() != other.hasAcceptEvent()) return false;
if (hasAcceptEvent()) {
if (!getAcceptEvent()
.equals(other.getAcceptEvent())) return false;
}
if (!getAnnotationList()
.equals(other.getAnnotationList())) return false;
if (getFlag()
!= other.getFlag()) return false;
if (getErr()
!= other.getErr()) return false;
if (!getSpanEventList()
.equals(other.getSpanEventList())) return false;
if (hasExceptionInfo() != other.hasExceptionInfo()) return false;
if (hasExceptionInfo()) {
if (!getExceptionInfo()
.equals(other.getExceptionInfo())) return false;
}
if (getApplicationServiceType()
!= other.getApplicationServiceType()) return false;
if (getLoggingTransactionInfo()
!= other.getLoggingTransactionInfo()) 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();
if (hasTransactionId()) {
hash = (37 * hash) + TRANSACTIONID_FIELD_NUMBER;
hash = (53 * hash) + getTransactionId().hashCode();
}
hash = (37 * hash) + SPANID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSpanId());
hash = (37 * hash) + PARENTSPANID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getParentSpanId());
hash = (37 * hash) + STARTTIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartTime());
hash = (37 * hash) + ELAPSED_FIELD_NUMBER;
hash = (53 * hash) + getElapsed();
hash = (37 * hash) + APIID_FIELD_NUMBER;
hash = (53 * hash) + getApiId();
hash = (37 * hash) + SERVICETYPE_FIELD_NUMBER;
hash = (53 * hash) + getServiceType();
if (hasAcceptEvent()) {
hash = (37 * hash) + ACCEPTEVENT_FIELD_NUMBER;
hash = (53 * hash) + getAcceptEvent().hashCode();
}
if (getAnnotationCount() > 0) {
hash = (37 * hash) + ANNOTATION_FIELD_NUMBER;
hash = (53 * hash) + getAnnotationList().hashCode();
}
hash = (37 * hash) + FLAG_FIELD_NUMBER;
hash = (53 * hash) + getFlag();
hash = (37 * hash) + ERR_FIELD_NUMBER;
hash = (53 * hash) + getErr();
if (getSpanEventCount() > 0) {
hash = (37 * hash) + SPANEVENT_FIELD_NUMBER;
hash = (53 * hash) + getSpanEventList().hashCode();
}
if (hasExceptionInfo()) {
hash = (37 * hash) + EXCEPTIONINFO_FIELD_NUMBER;
hash = (53 * hash) + getExceptionInfo().hashCode();
}
hash = (37 * hash) + APPLICATIONSERVICETYPE_FIELD_NUMBER;
hash = (53 * hash) + getApplicationServiceType();
hash = (37 * hash) + LOGGINGTRANSACTIONINFO_FIELD_NUMBER;
hash = (53 * hash) + getLoggingTransactionInfo();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.navercorp.pinpoint.grpc.trace.PSpan parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PSpan 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.PSpan parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PSpan 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.PSpan parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PSpan 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.PSpan parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PSpan 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.PSpan parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PSpan 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.PSpan 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.PSpan 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.PSpan 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.PSpan}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.PSpan)
com.navercorp.pinpoint.grpc.trace.PSpanOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.navercorp.pinpoint.grpc.trace.SpanProto.internal_static_v1_PSpan_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.SpanProto.internal_static_v1_PSpan_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PSpan.class, com.navercorp.pinpoint.grpc.trace.PSpan.Builder.class);
}
// Construct using com.navercorp.pinpoint.grpc.trace.PSpan.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAnnotationFieldBuilder();
getSpanEventFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
version_ = 0;
if (transactionIdBuilder_ == null) {
transactionId_ = null;
} else {
transactionId_ = null;
transactionIdBuilder_ = null;
}
spanId_ = 0L;
parentSpanId_ = 0L;
startTime_ = 0L;
elapsed_ = 0;
apiId_ = 0;
serviceType_ = 0;
if (acceptEventBuilder_ == null) {
acceptEvent_ = null;
} else {
acceptEvent_ = null;
acceptEventBuilder_ = null;
}
if (annotationBuilder_ == null) {
annotation_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
annotationBuilder_.clear();
}
flag_ = 0;
err_ = 0;
if (spanEventBuilder_ == null) {
spanEvent_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
spanEventBuilder_.clear();
}
if (exceptionInfoBuilder_ == null) {
exceptionInfo_ = null;
} else {
exceptionInfo_ = null;
exceptionInfoBuilder_ = null;
}
applicationServiceType_ = 0;
loggingTransactionInfo_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.navercorp.pinpoint.grpc.trace.SpanProto.internal_static_v1_PSpan_descriptor;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PSpan getDefaultInstanceForType() {
return com.navercorp.pinpoint.grpc.trace.PSpan.getDefaultInstance();
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PSpan build() {
com.navercorp.pinpoint.grpc.trace.PSpan result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PSpan buildPartial() {
com.navercorp.pinpoint.grpc.trace.PSpan result = new com.navercorp.pinpoint.grpc.trace.PSpan(this);
int from_bitField0_ = bitField0_;
result.version_ = version_;
if (transactionIdBuilder_ == null) {
result.transactionId_ = transactionId_;
} else {
result.transactionId_ = transactionIdBuilder_.build();
}
result.spanId_ = spanId_;
result.parentSpanId_ = parentSpanId_;
result.startTime_ = startTime_;
result.elapsed_ = elapsed_;
result.apiId_ = apiId_;
result.serviceType_ = serviceType_;
if (acceptEventBuilder_ == null) {
result.acceptEvent_ = acceptEvent_;
} else {
result.acceptEvent_ = acceptEventBuilder_.build();
}
if (annotationBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
annotation_ = java.util.Collections.unmodifiableList(annotation_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.annotation_ = annotation_;
} else {
result.annotation_ = annotationBuilder_.build();
}
result.flag_ = flag_;
result.err_ = err_;
if (spanEventBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
spanEvent_ = java.util.Collections.unmodifiableList(spanEvent_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.spanEvent_ = spanEvent_;
} else {
result.spanEvent_ = spanEventBuilder_.build();
}
if (exceptionInfoBuilder_ == null) {
result.exceptionInfo_ = exceptionInfo_;
} else {
result.exceptionInfo_ = exceptionInfoBuilder_.build();
}
result.applicationServiceType_ = applicationServiceType_;
result.loggingTransactionInfo_ = loggingTransactionInfo_;
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.PSpan) {
return mergeFrom((com.navercorp.pinpoint.grpc.trace.PSpan)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.navercorp.pinpoint.grpc.trace.PSpan other) {
if (other == com.navercorp.pinpoint.grpc.trace.PSpan.getDefaultInstance()) return this;
if (other.getVersion() != 0) {
setVersion(other.getVersion());
}
if (other.hasTransactionId()) {
mergeTransactionId(other.getTransactionId());
}
if (other.getSpanId() != 0L) {
setSpanId(other.getSpanId());
}
if (other.getParentSpanId() != 0L) {
setParentSpanId(other.getParentSpanId());
}
if (other.getStartTime() != 0L) {
setStartTime(other.getStartTime());
}
if (other.getElapsed() != 0) {
setElapsed(other.getElapsed());
}
if (other.getApiId() != 0) {
setApiId(other.getApiId());
}
if (other.getServiceType() != 0) {
setServiceType(other.getServiceType());
}
if (other.hasAcceptEvent()) {
mergeAcceptEvent(other.getAcceptEvent());
}
if (annotationBuilder_ == null) {
if (!other.annotation_.isEmpty()) {
if (annotation_.isEmpty()) {
annotation_ = other.annotation_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAnnotationIsMutable();
annotation_.addAll(other.annotation_);
}
onChanged();
}
} else {
if (!other.annotation_.isEmpty()) {
if (annotationBuilder_.isEmpty()) {
annotationBuilder_.dispose();
annotationBuilder_ = null;
annotation_ = other.annotation_;
bitField0_ = (bitField0_ & ~0x00000001);
annotationBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAnnotationFieldBuilder() : null;
} else {
annotationBuilder_.addAllMessages(other.annotation_);
}
}
}
if (other.getFlag() != 0) {
setFlag(other.getFlag());
}
if (other.getErr() != 0) {
setErr(other.getErr());
}
if (spanEventBuilder_ == null) {
if (!other.spanEvent_.isEmpty()) {
if (spanEvent_.isEmpty()) {
spanEvent_ = other.spanEvent_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureSpanEventIsMutable();
spanEvent_.addAll(other.spanEvent_);
}
onChanged();
}
} else {
if (!other.spanEvent_.isEmpty()) {
if (spanEventBuilder_.isEmpty()) {
spanEventBuilder_.dispose();
spanEventBuilder_ = null;
spanEvent_ = other.spanEvent_;
bitField0_ = (bitField0_ & ~0x00000002);
spanEventBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSpanEventFieldBuilder() : null;
} else {
spanEventBuilder_.addAllMessages(other.spanEvent_);
}
}
}
if (other.hasExceptionInfo()) {
mergeExceptionInfo(other.getExceptionInfo());
}
if (other.getApplicationServiceType() != 0) {
setApplicationServiceType(other.getApplicationServiceType());
}
if (other.getLoggingTransactionInfo() != 0) {
setLoggingTransactionInfo(other.getLoggingTransactionInfo());
}
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.PSpan parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.navercorp.pinpoint.grpc.trace.PSpan) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int version_ ;
/**
* int32 version = 1;
* @return The version.
*/
@java.lang.Override
public int getVersion() {
return version_;
}
/**
* int32 version = 1;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(int value) {
version_ = value;
onChanged();
return this;
}
/**
* int32 version = 1;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = 0;
onChanged();
return this;
}
private com.navercorp.pinpoint.grpc.trace.PTransactionId transactionId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PTransactionId, com.navercorp.pinpoint.grpc.trace.PTransactionId.Builder, com.navercorp.pinpoint.grpc.trace.PTransactionIdOrBuilder> transactionIdBuilder_;
/**
* .v1.PTransactionId transactionId = 2;
* @return Whether the transactionId field is set.
*/
public boolean hasTransactionId() {
return transactionIdBuilder_ != null || transactionId_ != null;
}
/**
* .v1.PTransactionId transactionId = 2;
* @return The transactionId.
*/
public com.navercorp.pinpoint.grpc.trace.PTransactionId getTransactionId() {
if (transactionIdBuilder_ == null) {
return transactionId_ == null ? com.navercorp.pinpoint.grpc.trace.PTransactionId.getDefaultInstance() : transactionId_;
} else {
return transactionIdBuilder_.getMessage();
}
}
/**
* .v1.PTransactionId transactionId = 2;
*/
public Builder setTransactionId(com.navercorp.pinpoint.grpc.trace.PTransactionId value) {
if (transactionIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
transactionId_ = value;
onChanged();
} else {
transactionIdBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.PTransactionId transactionId = 2;
*/
public Builder setTransactionId(
com.navercorp.pinpoint.grpc.trace.PTransactionId.Builder builderForValue) {
if (transactionIdBuilder_ == null) {
transactionId_ = builderForValue.build();
onChanged();
} else {
transactionIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.PTransactionId transactionId = 2;
*/
public Builder mergeTransactionId(com.navercorp.pinpoint.grpc.trace.PTransactionId value) {
if (transactionIdBuilder_ == null) {
if (transactionId_ != null) {
transactionId_ =
com.navercorp.pinpoint.grpc.trace.PTransactionId.newBuilder(transactionId_).mergeFrom(value).buildPartial();
} else {
transactionId_ = value;
}
onChanged();
} else {
transactionIdBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.PTransactionId transactionId = 2;
*/
public Builder clearTransactionId() {
if (transactionIdBuilder_ == null) {
transactionId_ = null;
onChanged();
} else {
transactionId_ = null;
transactionIdBuilder_ = null;
}
return this;
}
/**
* .v1.PTransactionId transactionId = 2;
*/
public com.navercorp.pinpoint.grpc.trace.PTransactionId.Builder getTransactionIdBuilder() {
onChanged();
return getTransactionIdFieldBuilder().getBuilder();
}
/**
* .v1.PTransactionId transactionId = 2;
*/
public com.navercorp.pinpoint.grpc.trace.PTransactionIdOrBuilder getTransactionIdOrBuilder() {
if (transactionIdBuilder_ != null) {
return transactionIdBuilder_.getMessageOrBuilder();
} else {
return transactionId_ == null ?
com.navercorp.pinpoint.grpc.trace.PTransactionId.getDefaultInstance() : transactionId_;
}
}
/**
* .v1.PTransactionId transactionId = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PTransactionId, com.navercorp.pinpoint.grpc.trace.PTransactionId.Builder, com.navercorp.pinpoint.grpc.trace.PTransactionIdOrBuilder>
getTransactionIdFieldBuilder() {
if (transactionIdBuilder_ == null) {
transactionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PTransactionId, com.navercorp.pinpoint.grpc.trace.PTransactionId.Builder, com.navercorp.pinpoint.grpc.trace.PTransactionIdOrBuilder>(
getTransactionId(),
getParentForChildren(),
isClean());
transactionId_ = null;
}
return transactionIdBuilder_;
}
private long spanId_ ;
/**
* sfixed64 spanId = 3 [jstype = JS_STRING];
* @return The spanId.
*/
@java.lang.Override
public long getSpanId() {
return spanId_;
}
/**
* sfixed64 spanId = 3 [jstype = JS_STRING];
* @param value The spanId to set.
* @return This builder for chaining.
*/
public Builder setSpanId(long value) {
spanId_ = value;
onChanged();
return this;
}
/**
* sfixed64 spanId = 3 [jstype = JS_STRING];
* @return This builder for chaining.
*/
public Builder clearSpanId() {
spanId_ = 0L;
onChanged();
return this;
}
private long parentSpanId_ ;
/**
* sfixed64 parentSpanId = 4 [jstype = JS_STRING];
* @return The parentSpanId.
*/
@java.lang.Override
public long getParentSpanId() {
return parentSpanId_;
}
/**
* sfixed64 parentSpanId = 4 [jstype = JS_STRING];
* @param value The parentSpanId to set.
* @return This builder for chaining.
*/
public Builder setParentSpanId(long value) {
parentSpanId_ = value;
onChanged();
return this;
}
/**
* sfixed64 parentSpanId = 4 [jstype = JS_STRING];
* @return This builder for chaining.
*/
public Builder clearParentSpanId() {
parentSpanId_ = 0L;
onChanged();
return this;
}
private long startTime_ ;
/**
*
* span event's startTimestamp
*
*
* int64 startTime = 5;
* @return The startTime.
*/
@java.lang.Override
public long getStartTime() {
return startTime_;
}
/**
*
* span event's startTimestamp
*
*
* int64 startTime = 5;
* @param value The startTime to set.
* @return This builder for chaining.
*/
public Builder setStartTime(long value) {
startTime_ = value;
onChanged();
return this;
}
/**
*
* span event's startTimestamp
*
*
* int64 startTime = 5;
* @return This builder for chaining.
*/
public Builder clearStartTime() {
startTime_ = 0L;
onChanged();
return this;
}
private int elapsed_ ;
/**
* int32 elapsed = 6;
* @return The elapsed.
*/
@java.lang.Override
public int getElapsed() {
return elapsed_;
}
/**
* int32 elapsed = 6;
* @param value The elapsed to set.
* @return This builder for chaining.
*/
public Builder setElapsed(int value) {
elapsed_ = value;
onChanged();
return this;
}
/**
* int32 elapsed = 6;
* @return This builder for chaining.
*/
public Builder clearElapsed() {
elapsed_ = 0;
onChanged();
return this;
}
private int apiId_ ;
/**
* int32 apiId = 7;
* @return The apiId.
*/
@java.lang.Override
public int getApiId() {
return apiId_;
}
/**
* int32 apiId = 7;
* @param value The apiId to set.
* @return This builder for chaining.
*/
public Builder setApiId(int value) {
apiId_ = value;
onChanged();
return this;
}
/**
* int32 apiId = 7;
* @return This builder for chaining.
*/
public Builder clearApiId() {
apiId_ = 0;
onChanged();
return this;
}
private int serviceType_ ;
/**
* int32 serviceType = 8;
* @return The serviceType.
*/
@java.lang.Override
public int getServiceType() {
return serviceType_;
}
/**
* int32 serviceType = 8;
* @param value The serviceType to set.
* @return This builder for chaining.
*/
public Builder setServiceType(int value) {
serviceType_ = value;
onChanged();
return this;
}
/**
* int32 serviceType = 8;
* @return This builder for chaining.
*/
public Builder clearServiceType() {
serviceType_ = 0;
onChanged();
return this;
}
private com.navercorp.pinpoint.grpc.trace.PAcceptEvent acceptEvent_;
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PAcceptEvent, com.navercorp.pinpoint.grpc.trace.PAcceptEvent.Builder, com.navercorp.pinpoint.grpc.trace.PAcceptEventOrBuilder> acceptEventBuilder_;
/**
* .v1.PAcceptEvent acceptEvent = 9;
* @return Whether the acceptEvent field is set.
*/
public boolean hasAcceptEvent() {
return acceptEventBuilder_ != null || acceptEvent_ != null;
}
/**
* .v1.PAcceptEvent acceptEvent = 9;
* @return The acceptEvent.
*/
public com.navercorp.pinpoint.grpc.trace.PAcceptEvent getAcceptEvent() {
if (acceptEventBuilder_ == null) {
return acceptEvent_ == null ? com.navercorp.pinpoint.grpc.trace.PAcceptEvent.getDefaultInstance() : acceptEvent_;
} else {
return acceptEventBuilder_.getMessage();
}
}
/**
* .v1.PAcceptEvent acceptEvent = 9;
*/
public Builder setAcceptEvent(com.navercorp.pinpoint.grpc.trace.PAcceptEvent value) {
if (acceptEventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
acceptEvent_ = value;
onChanged();
} else {
acceptEventBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.PAcceptEvent acceptEvent = 9;
*/
public Builder setAcceptEvent(
com.navercorp.pinpoint.grpc.trace.PAcceptEvent.Builder builderForValue) {
if (acceptEventBuilder_ == null) {
acceptEvent_ = builderForValue.build();
onChanged();
} else {
acceptEventBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.PAcceptEvent acceptEvent = 9;
*/
public Builder mergeAcceptEvent(com.navercorp.pinpoint.grpc.trace.PAcceptEvent value) {
if (acceptEventBuilder_ == null) {
if (acceptEvent_ != null) {
acceptEvent_ =
com.navercorp.pinpoint.grpc.trace.PAcceptEvent.newBuilder(acceptEvent_).mergeFrom(value).buildPartial();
} else {
acceptEvent_ = value;
}
onChanged();
} else {
acceptEventBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.PAcceptEvent acceptEvent = 9;
*/
public Builder clearAcceptEvent() {
if (acceptEventBuilder_ == null) {
acceptEvent_ = null;
onChanged();
} else {
acceptEvent_ = null;
acceptEventBuilder_ = null;
}
return this;
}
/**
* .v1.PAcceptEvent acceptEvent = 9;
*/
public com.navercorp.pinpoint.grpc.trace.PAcceptEvent.Builder getAcceptEventBuilder() {
onChanged();
return getAcceptEventFieldBuilder().getBuilder();
}
/**
* .v1.PAcceptEvent acceptEvent = 9;
*/
public com.navercorp.pinpoint.grpc.trace.PAcceptEventOrBuilder getAcceptEventOrBuilder() {
if (acceptEventBuilder_ != null) {
return acceptEventBuilder_.getMessageOrBuilder();
} else {
return acceptEvent_ == null ?
com.navercorp.pinpoint.grpc.trace.PAcceptEvent.getDefaultInstance() : acceptEvent_;
}
}
/**
* .v1.PAcceptEvent acceptEvent = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PAcceptEvent, com.navercorp.pinpoint.grpc.trace.PAcceptEvent.Builder, com.navercorp.pinpoint.grpc.trace.PAcceptEventOrBuilder>
getAcceptEventFieldBuilder() {
if (acceptEventBuilder_ == null) {
acceptEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PAcceptEvent, com.navercorp.pinpoint.grpc.trace.PAcceptEvent.Builder, com.navercorp.pinpoint.grpc.trace.PAcceptEventOrBuilder>(
getAcceptEvent(),
getParentForChildren(),
isClean());
acceptEvent_ = null;
}
return acceptEventBuilder_;
}
private java.util.List annotation_ =
java.util.Collections.emptyList();
private void ensureAnnotationIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
annotation_ = new java.util.ArrayList(annotation_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PAnnotation, com.navercorp.pinpoint.grpc.trace.PAnnotation.Builder, com.navercorp.pinpoint.grpc.trace.PAnnotationOrBuilder> annotationBuilder_;
/**
* repeated .v1.PAnnotation annotation = 10;
*/
public java.util.List getAnnotationList() {
if (annotationBuilder_ == null) {
return java.util.Collections.unmodifiableList(annotation_);
} else {
return annotationBuilder_.getMessageList();
}
}
/**
* repeated .v1.PAnnotation annotation = 10;
*/
public int getAnnotationCount() {
if (annotationBuilder_ == null) {
return annotation_.size();
} else {
return annotationBuilder_.getCount();
}
}
/**
* repeated .v1.PAnnotation annotation = 10;
*/
public com.navercorp.pinpoint.grpc.trace.PAnnotation getAnnotation(int index) {
if (annotationBuilder_ == null) {
return annotation_.get(index);
} else {
return annotationBuilder_.getMessage(index);
}
}
/**
* repeated .v1.PAnnotation annotation = 10;
*/
public Builder setAnnotation(
int index, com.navercorp.pinpoint.grpc.trace.PAnnotation value) {
if (annotationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAnnotationIsMutable();
annotation_.set(index, value);
onChanged();
} else {
annotationBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.PAnnotation annotation = 10;
*/
public Builder setAnnotation(
int index, com.navercorp.pinpoint.grpc.trace.PAnnotation.Builder builderForValue) {
if (annotationBuilder_ == null) {
ensureAnnotationIsMutable();
annotation_.set(index, builderForValue.build());
onChanged();
} else {
annotationBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.PAnnotation annotation = 10;
*/
public Builder addAnnotation(com.navercorp.pinpoint.grpc.trace.PAnnotation value) {
if (annotationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAnnotationIsMutable();
annotation_.add(value);
onChanged();
} else {
annotationBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.PAnnotation annotation = 10;
*/
public Builder addAnnotation(
int index, com.navercorp.pinpoint.grpc.trace.PAnnotation value) {
if (annotationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAnnotationIsMutable();
annotation_.add(index, value);
onChanged();
} else {
annotationBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.PAnnotation annotation = 10;
*/
public Builder addAnnotation(
com.navercorp.pinpoint.grpc.trace.PAnnotation.Builder builderForValue) {
if (annotationBuilder_ == null) {
ensureAnnotationIsMutable();
annotation_.add(builderForValue.build());
onChanged();
} else {
annotationBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.PAnnotation annotation = 10;
*/
public Builder addAnnotation(
int index, com.navercorp.pinpoint.grpc.trace.PAnnotation.Builder builderForValue) {
if (annotationBuilder_ == null) {
ensureAnnotationIsMutable();
annotation_.add(index, builderForValue.build());
onChanged();
} else {
annotationBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.PAnnotation annotation = 10;
*/
public Builder addAllAnnotation(
java.lang.Iterable values) {
if (annotationBuilder_ == null) {
ensureAnnotationIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, annotation_);
onChanged();
} else {
annotationBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.PAnnotation annotation = 10;
*/
public Builder clearAnnotation() {
if (annotationBuilder_ == null) {
annotation_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
annotationBuilder_.clear();
}
return this;
}
/**
* repeated .v1.PAnnotation annotation = 10;
*/
public Builder removeAnnotation(int index) {
if (annotationBuilder_ == null) {
ensureAnnotationIsMutable();
annotation_.remove(index);
onChanged();
} else {
annotationBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.PAnnotation annotation = 10;
*/
public com.navercorp.pinpoint.grpc.trace.PAnnotation.Builder getAnnotationBuilder(
int index) {
return getAnnotationFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.PAnnotation annotation = 10;
*/
public com.navercorp.pinpoint.grpc.trace.PAnnotationOrBuilder getAnnotationOrBuilder(
int index) {
if (annotationBuilder_ == null) {
return annotation_.get(index); } else {
return annotationBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.PAnnotation annotation = 10;
*/
public java.util.List
getAnnotationOrBuilderList() {
if (annotationBuilder_ != null) {
return annotationBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(annotation_);
}
}
/**
* repeated .v1.PAnnotation annotation = 10;
*/
public com.navercorp.pinpoint.grpc.trace.PAnnotation.Builder addAnnotationBuilder() {
return getAnnotationFieldBuilder().addBuilder(
com.navercorp.pinpoint.grpc.trace.PAnnotation.getDefaultInstance());
}
/**
* repeated .v1.PAnnotation annotation = 10;
*/
public com.navercorp.pinpoint.grpc.trace.PAnnotation.Builder addAnnotationBuilder(
int index) {
return getAnnotationFieldBuilder().addBuilder(
index, com.navercorp.pinpoint.grpc.trace.PAnnotation.getDefaultInstance());
}
/**
* repeated .v1.PAnnotation annotation = 10;
*/
public java.util.List
getAnnotationBuilderList() {
return getAnnotationFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PAnnotation, com.navercorp.pinpoint.grpc.trace.PAnnotation.Builder, com.navercorp.pinpoint.grpc.trace.PAnnotationOrBuilder>
getAnnotationFieldBuilder() {
if (annotationBuilder_ == null) {
annotationBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PAnnotation, com.navercorp.pinpoint.grpc.trace.PAnnotation.Builder, com.navercorp.pinpoint.grpc.trace.PAnnotationOrBuilder>(
annotation_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
annotation_ = null;
}
return annotationBuilder_;
}
private int flag_ ;
/**
* int32 flag = 11;
* @return The flag.
*/
@java.lang.Override
public int getFlag() {
return flag_;
}
/**
* int32 flag = 11;
* @param value The flag to set.
* @return This builder for chaining.
*/
public Builder setFlag(int value) {
flag_ = value;
onChanged();
return this;
}
/**
* int32 flag = 11;
* @return This builder for chaining.
*/
public Builder clearFlag() {
flag_ = 0;
onChanged();
return this;
}
private int err_ ;
/**
* sint32 err = 12;
* @return The err.
*/
@java.lang.Override
public int getErr() {
return err_;
}
/**
* sint32 err = 12;
* @param value The err to set.
* @return This builder for chaining.
*/
public Builder setErr(int value) {
err_ = value;
onChanged();
return this;
}
/**
* sint32 err = 12;
* @return This builder for chaining.
*/
public Builder clearErr() {
err_ = 0;
onChanged();
return this;
}
private java.util.List spanEvent_ =
java.util.Collections.emptyList();
private void ensureSpanEventIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
spanEvent_ = new java.util.ArrayList(spanEvent_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PSpanEvent, com.navercorp.pinpoint.grpc.trace.PSpanEvent.Builder, com.navercorp.pinpoint.grpc.trace.PSpanEventOrBuilder> spanEventBuilder_;
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
public java.util.List getSpanEventList() {
if (spanEventBuilder_ == null) {
return java.util.Collections.unmodifiableList(spanEvent_);
} else {
return spanEventBuilder_.getMessageList();
}
}
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
public int getSpanEventCount() {
if (spanEventBuilder_ == null) {
return spanEvent_.size();
} else {
return spanEventBuilder_.getCount();
}
}
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
public com.navercorp.pinpoint.grpc.trace.PSpanEvent getSpanEvent(int index) {
if (spanEventBuilder_ == null) {
return spanEvent_.get(index);
} else {
return spanEventBuilder_.getMessage(index);
}
}
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
public Builder setSpanEvent(
int index, com.navercorp.pinpoint.grpc.trace.PSpanEvent value) {
if (spanEventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpanEventIsMutable();
spanEvent_.set(index, value);
onChanged();
} else {
spanEventBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
public Builder setSpanEvent(
int index, com.navercorp.pinpoint.grpc.trace.PSpanEvent.Builder builderForValue) {
if (spanEventBuilder_ == null) {
ensureSpanEventIsMutable();
spanEvent_.set(index, builderForValue.build());
onChanged();
} else {
spanEventBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
public Builder addSpanEvent(com.navercorp.pinpoint.grpc.trace.PSpanEvent value) {
if (spanEventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpanEventIsMutable();
spanEvent_.add(value);
onChanged();
} else {
spanEventBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
public Builder addSpanEvent(
int index, com.navercorp.pinpoint.grpc.trace.PSpanEvent value) {
if (spanEventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpanEventIsMutable();
spanEvent_.add(index, value);
onChanged();
} else {
spanEventBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
public Builder addSpanEvent(
com.navercorp.pinpoint.grpc.trace.PSpanEvent.Builder builderForValue) {
if (spanEventBuilder_ == null) {
ensureSpanEventIsMutable();
spanEvent_.add(builderForValue.build());
onChanged();
} else {
spanEventBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
public Builder addSpanEvent(
int index, com.navercorp.pinpoint.grpc.trace.PSpanEvent.Builder builderForValue) {
if (spanEventBuilder_ == null) {
ensureSpanEventIsMutable();
spanEvent_.add(index, builderForValue.build());
onChanged();
} else {
spanEventBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
public Builder addAllSpanEvent(
java.lang.Iterable values) {
if (spanEventBuilder_ == null) {
ensureSpanEventIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, spanEvent_);
onChanged();
} else {
spanEventBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
public Builder clearSpanEvent() {
if (spanEventBuilder_ == null) {
spanEvent_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
spanEventBuilder_.clear();
}
return this;
}
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
public Builder removeSpanEvent(int index) {
if (spanEventBuilder_ == null) {
ensureSpanEventIsMutable();
spanEvent_.remove(index);
onChanged();
} else {
spanEventBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
public com.navercorp.pinpoint.grpc.trace.PSpanEvent.Builder getSpanEventBuilder(
int index) {
return getSpanEventFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
public com.navercorp.pinpoint.grpc.trace.PSpanEventOrBuilder getSpanEventOrBuilder(
int index) {
if (spanEventBuilder_ == null) {
return spanEvent_.get(index); } else {
return spanEventBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
public java.util.List
getSpanEventOrBuilderList() {
if (spanEventBuilder_ != null) {
return spanEventBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(spanEvent_);
}
}
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
public com.navercorp.pinpoint.grpc.trace.PSpanEvent.Builder addSpanEventBuilder() {
return getSpanEventFieldBuilder().addBuilder(
com.navercorp.pinpoint.grpc.trace.PSpanEvent.getDefaultInstance());
}
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
public com.navercorp.pinpoint.grpc.trace.PSpanEvent.Builder addSpanEventBuilder(
int index) {
return getSpanEventFieldBuilder().addBuilder(
index, com.navercorp.pinpoint.grpc.trace.PSpanEvent.getDefaultInstance());
}
/**
* repeated .v1.PSpanEvent spanEvent = 13;
*/
public java.util.List
getSpanEventBuilderList() {
return getSpanEventFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PSpanEvent, com.navercorp.pinpoint.grpc.trace.PSpanEvent.Builder, com.navercorp.pinpoint.grpc.trace.PSpanEventOrBuilder>
getSpanEventFieldBuilder() {
if (spanEventBuilder_ == null) {
spanEventBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PSpanEvent, com.navercorp.pinpoint.grpc.trace.PSpanEvent.Builder, com.navercorp.pinpoint.grpc.trace.PSpanEventOrBuilder>(
spanEvent_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
spanEvent_ = null;
}
return spanEventBuilder_;
}
private com.navercorp.pinpoint.grpc.trace.PIntStringValue exceptionInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PIntStringValue, com.navercorp.pinpoint.grpc.trace.PIntStringValue.Builder, com.navercorp.pinpoint.grpc.trace.PIntStringValueOrBuilder> exceptionInfoBuilder_;
/**
* .v1.PIntStringValue exceptionInfo = 14;
* @return Whether the exceptionInfo field is set.
*/
public boolean hasExceptionInfo() {
return exceptionInfoBuilder_ != null || exceptionInfo_ != null;
}
/**
* .v1.PIntStringValue exceptionInfo = 14;
* @return The exceptionInfo.
*/
public com.navercorp.pinpoint.grpc.trace.PIntStringValue getExceptionInfo() {
if (exceptionInfoBuilder_ == null) {
return exceptionInfo_ == null ? com.navercorp.pinpoint.grpc.trace.PIntStringValue.getDefaultInstance() : exceptionInfo_;
} else {
return exceptionInfoBuilder_.getMessage();
}
}
/**
* .v1.PIntStringValue exceptionInfo = 14;
*/
public Builder setExceptionInfo(com.navercorp.pinpoint.grpc.trace.PIntStringValue value) {
if (exceptionInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
exceptionInfo_ = value;
onChanged();
} else {
exceptionInfoBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.PIntStringValue exceptionInfo = 14;
*/
public Builder setExceptionInfo(
com.navercorp.pinpoint.grpc.trace.PIntStringValue.Builder builderForValue) {
if (exceptionInfoBuilder_ == null) {
exceptionInfo_ = builderForValue.build();
onChanged();
} else {
exceptionInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.PIntStringValue exceptionInfo = 14;
*/
public Builder mergeExceptionInfo(com.navercorp.pinpoint.grpc.trace.PIntStringValue value) {
if (exceptionInfoBuilder_ == null) {
if (exceptionInfo_ != null) {
exceptionInfo_ =
com.navercorp.pinpoint.grpc.trace.PIntStringValue.newBuilder(exceptionInfo_).mergeFrom(value).buildPartial();
} else {
exceptionInfo_ = value;
}
onChanged();
} else {
exceptionInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.PIntStringValue exceptionInfo = 14;
*/
public Builder clearExceptionInfo() {
if (exceptionInfoBuilder_ == null) {
exceptionInfo_ = null;
onChanged();
} else {
exceptionInfo_ = null;
exceptionInfoBuilder_ = null;
}
return this;
}
/**
* .v1.PIntStringValue exceptionInfo = 14;
*/
public com.navercorp.pinpoint.grpc.trace.PIntStringValue.Builder getExceptionInfoBuilder() {
onChanged();
return getExceptionInfoFieldBuilder().getBuilder();
}
/**
* .v1.PIntStringValue exceptionInfo = 14;
*/
public com.navercorp.pinpoint.grpc.trace.PIntStringValueOrBuilder getExceptionInfoOrBuilder() {
if (exceptionInfoBuilder_ != null) {
return exceptionInfoBuilder_.getMessageOrBuilder();
} else {
return exceptionInfo_ == null ?
com.navercorp.pinpoint.grpc.trace.PIntStringValue.getDefaultInstance() : exceptionInfo_;
}
}
/**
* .v1.PIntStringValue exceptionInfo = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PIntStringValue, com.navercorp.pinpoint.grpc.trace.PIntStringValue.Builder, com.navercorp.pinpoint.grpc.trace.PIntStringValueOrBuilder>
getExceptionInfoFieldBuilder() {
if (exceptionInfoBuilder_ == null) {
exceptionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PIntStringValue, com.navercorp.pinpoint.grpc.trace.PIntStringValue.Builder, com.navercorp.pinpoint.grpc.trace.PIntStringValueOrBuilder>(
getExceptionInfo(),
getParentForChildren(),
isClean());
exceptionInfo_ = null;
}
return exceptionInfoBuilder_;
}
private int applicationServiceType_ ;
/**
* int32 applicationServiceType = 15;
* @return The applicationServiceType.
*/
@java.lang.Override
public int getApplicationServiceType() {
return applicationServiceType_;
}
/**
* int32 applicationServiceType = 15;
* @param value The applicationServiceType to set.
* @return This builder for chaining.
*/
public Builder setApplicationServiceType(int value) {
applicationServiceType_ = value;
onChanged();
return this;
}
/**
* int32 applicationServiceType = 15;
* @return This builder for chaining.
*/
public Builder clearApplicationServiceType() {
applicationServiceType_ = 0;
onChanged();
return this;
}
private int loggingTransactionInfo_ ;
/**
* int32 loggingTransactionInfo = 16;
* @return The loggingTransactionInfo.
*/
@java.lang.Override
public int getLoggingTransactionInfo() {
return loggingTransactionInfo_;
}
/**
* int32 loggingTransactionInfo = 16;
* @param value The loggingTransactionInfo to set.
* @return This builder for chaining.
*/
public Builder setLoggingTransactionInfo(int value) {
loggingTransactionInfo_ = value;
onChanged();
return this;
}
/**
* int32 loggingTransactionInfo = 16;
* @return This builder for chaining.
*/
public Builder clearLoggingTransactionInfo() {
loggingTransactionInfo_ = 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.PSpan)
}
// @@protoc_insertion_point(class_scope:v1.PSpan)
private static final com.navercorp.pinpoint.grpc.trace.PSpan DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.navercorp.pinpoint.grpc.trace.PSpan();
}
public static com.navercorp.pinpoint.grpc.trace.PSpan getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PSpan parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PSpan(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.PSpan getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}