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.PSpanChunk 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.PSpanChunk}
*/
public final class PSpanChunk extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:v1.PSpanChunk)
PSpanChunkOrBuilder {
private static final long serialVersionUID = 0L;
// Use PSpanChunk.newBuilder() to construct.
private PSpanChunk(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private PSpanChunk() {
endPoint_ = "";
spanEvent_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PSpanChunk();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PSpanChunk(
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 34: {
java.lang.String s = input.readStringRequireUtf8();
endPoint_ = s;
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
spanEvent_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
spanEvent_.add(
input.readMessage(com.navercorp.pinpoint.grpc.trace.PSpanEvent.parser(), extensionRegistry));
break;
}
case 48: {
applicationServiceType_ = input.readInt32();
break;
}
case 56: {
keyTime_ = input.readInt64();
break;
}
case 66: {
com.navercorp.pinpoint.grpc.trace.PLocalAsyncId.Builder subBuilder = null;
if (localAsyncId_ != null) {
subBuilder = localAsyncId_.toBuilder();
}
localAsyncId_ = input.readMessage(com.navercorp.pinpoint.grpc.trace.PLocalAsyncId.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localAsyncId_);
localAsyncId_ = subBuilder.buildPartial();
}
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)) {
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_PSpanChunk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.SpanProto.internal_static_v1_PSpanChunk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PSpanChunk.class, com.navercorp.pinpoint.grpc.trace.PSpanChunk.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 ENDPOINT_FIELD_NUMBER = 4;
private volatile java.lang.Object endPoint_;
/**
* string endPoint = 4;
* @return The endPoint.
*/
@java.lang.Override
public java.lang.String getEndPoint() {
java.lang.Object ref = endPoint_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
endPoint_ = s;
return s;
}
}
/**
* string endPoint = 4;
* @return The bytes for endPoint.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEndPointBytes() {
java.lang.Object ref = endPoint_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
endPoint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SPANEVENT_FIELD_NUMBER = 5;
private java.util.List spanEvent_;
/**
* repeated .v1.PSpanEvent spanEvent = 5;
*/
@java.lang.Override
public java.util.List getSpanEventList() {
return spanEvent_;
}
/**
* repeated .v1.PSpanEvent spanEvent = 5;
*/
@java.lang.Override
public java.util.List
getSpanEventOrBuilderList() {
return spanEvent_;
}
/**
* repeated .v1.PSpanEvent spanEvent = 5;
*/
@java.lang.Override
public int getSpanEventCount() {
return spanEvent_.size();
}
/**
* repeated .v1.PSpanEvent spanEvent = 5;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PSpanEvent getSpanEvent(int index) {
return spanEvent_.get(index);
}
/**
* repeated .v1.PSpanEvent spanEvent = 5;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PSpanEventOrBuilder getSpanEventOrBuilder(
int index) {
return spanEvent_.get(index);
}
public static final int APPLICATIONSERVICETYPE_FIELD_NUMBER = 6;
private int applicationServiceType_;
/**
* int32 applicationServiceType = 6;
* @return The applicationServiceType.
*/
@java.lang.Override
public int getApplicationServiceType() {
return applicationServiceType_;
}
public static final int KEYTIME_FIELD_NUMBER = 7;
private long keyTime_;
/**
* int64 keyTime = 7;
* @return The keyTime.
*/
@java.lang.Override
public long getKeyTime() {
return keyTime_;
}
public static final int LOCALASYNCID_FIELD_NUMBER = 8;
private com.navercorp.pinpoint.grpc.trace.PLocalAsyncId localAsyncId_;
/**
* .v1.PLocalAsyncId localAsyncId = 8;
* @return Whether the localAsyncId field is set.
*/
@java.lang.Override
public boolean hasLocalAsyncId() {
return localAsyncId_ != null;
}
/**
* .v1.PLocalAsyncId localAsyncId = 8;
* @return The localAsyncId.
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PLocalAsyncId getLocalAsyncId() {
return localAsyncId_ == null ? com.navercorp.pinpoint.grpc.trace.PLocalAsyncId.getDefaultInstance() : localAsyncId_;
}
/**
* .v1.PLocalAsyncId localAsyncId = 8;
*/
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PLocalAsyncIdOrBuilder getLocalAsyncIdOrBuilder() {
return getLocalAsyncId();
}
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 (!getEndPointBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, endPoint_);
}
for (int i = 0; i < spanEvent_.size(); i++) {
output.writeMessage(5, spanEvent_.get(i));
}
if (applicationServiceType_ != 0) {
output.writeInt32(6, applicationServiceType_);
}
if (keyTime_ != 0L) {
output.writeInt64(7, keyTime_);
}
if (localAsyncId_ != null) {
output.writeMessage(8, getLocalAsyncId());
}
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 (!getEndPointBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, endPoint_);
}
for (int i = 0; i < spanEvent_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, spanEvent_.get(i));
}
if (applicationServiceType_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, applicationServiceType_);
}
if (keyTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, keyTime_);
}
if (localAsyncId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getLocalAsyncId());
}
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.PSpanChunk)) {
return super.equals(obj);
}
com.navercorp.pinpoint.grpc.trace.PSpanChunk other = (com.navercorp.pinpoint.grpc.trace.PSpanChunk) 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 (!getEndPoint()
.equals(other.getEndPoint())) return false;
if (!getSpanEventList()
.equals(other.getSpanEventList())) return false;
if (getApplicationServiceType()
!= other.getApplicationServiceType()) return false;
if (getKeyTime()
!= other.getKeyTime()) return false;
if (hasLocalAsyncId() != other.hasLocalAsyncId()) return false;
if (hasLocalAsyncId()) {
if (!getLocalAsyncId()
.equals(other.getLocalAsyncId())) 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) + ENDPOINT_FIELD_NUMBER;
hash = (53 * hash) + getEndPoint().hashCode();
if (getSpanEventCount() > 0) {
hash = (37 * hash) + SPANEVENT_FIELD_NUMBER;
hash = (53 * hash) + getSpanEventList().hashCode();
}
hash = (37 * hash) + APPLICATIONSERVICETYPE_FIELD_NUMBER;
hash = (53 * hash) + getApplicationServiceType();
hash = (37 * hash) + KEYTIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getKeyTime());
if (hasLocalAsyncId()) {
hash = (37 * hash) + LOCALASYNCID_FIELD_NUMBER;
hash = (53 * hash) + getLocalAsyncId().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.navercorp.pinpoint.grpc.trace.PSpanChunk parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PSpanChunk 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.PSpanChunk parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PSpanChunk 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.PSpanChunk parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.navercorp.pinpoint.grpc.trace.PSpanChunk 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.PSpanChunk parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PSpanChunk 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.PSpanChunk parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.navercorp.pinpoint.grpc.trace.PSpanChunk 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.PSpanChunk 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.PSpanChunk 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.PSpanChunk 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.PSpanChunk}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:v1.PSpanChunk)
com.navercorp.pinpoint.grpc.trace.PSpanChunkOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.navercorp.pinpoint.grpc.trace.SpanProto.internal_static_v1_PSpanChunk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.navercorp.pinpoint.grpc.trace.SpanProto.internal_static_v1_PSpanChunk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.navercorp.pinpoint.grpc.trace.PSpanChunk.class, com.navercorp.pinpoint.grpc.trace.PSpanChunk.Builder.class);
}
// Construct using com.navercorp.pinpoint.grpc.trace.PSpanChunk.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSpanEventFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
version_ = 0;
if (transactionIdBuilder_ == null) {
transactionId_ = null;
} else {
transactionId_ = null;
transactionIdBuilder_ = null;
}
spanId_ = 0L;
endPoint_ = "";
if (spanEventBuilder_ == null) {
spanEvent_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
spanEventBuilder_.clear();
}
applicationServiceType_ = 0;
keyTime_ = 0L;
if (localAsyncIdBuilder_ == null) {
localAsyncId_ = null;
} else {
localAsyncId_ = null;
localAsyncIdBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.navercorp.pinpoint.grpc.trace.SpanProto.internal_static_v1_PSpanChunk_descriptor;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PSpanChunk getDefaultInstanceForType() {
return com.navercorp.pinpoint.grpc.trace.PSpanChunk.getDefaultInstance();
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PSpanChunk build() {
com.navercorp.pinpoint.grpc.trace.PSpanChunk result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.navercorp.pinpoint.grpc.trace.PSpanChunk buildPartial() {
com.navercorp.pinpoint.grpc.trace.PSpanChunk result = new com.navercorp.pinpoint.grpc.trace.PSpanChunk(this);
int from_bitField0_ = bitField0_;
result.version_ = version_;
if (transactionIdBuilder_ == null) {
result.transactionId_ = transactionId_;
} else {
result.transactionId_ = transactionIdBuilder_.build();
}
result.spanId_ = spanId_;
result.endPoint_ = endPoint_;
if (spanEventBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
spanEvent_ = java.util.Collections.unmodifiableList(spanEvent_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.spanEvent_ = spanEvent_;
} else {
result.spanEvent_ = spanEventBuilder_.build();
}
result.applicationServiceType_ = applicationServiceType_;
result.keyTime_ = keyTime_;
if (localAsyncIdBuilder_ == null) {
result.localAsyncId_ = localAsyncId_;
} else {
result.localAsyncId_ = localAsyncIdBuilder_.build();
}
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.PSpanChunk) {
return mergeFrom((com.navercorp.pinpoint.grpc.trace.PSpanChunk)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.navercorp.pinpoint.grpc.trace.PSpanChunk other) {
if (other == com.navercorp.pinpoint.grpc.trace.PSpanChunk.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.getEndPoint().isEmpty()) {
endPoint_ = other.endPoint_;
onChanged();
}
if (spanEventBuilder_ == null) {
if (!other.spanEvent_.isEmpty()) {
if (spanEvent_.isEmpty()) {
spanEvent_ = other.spanEvent_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSpanEventIsMutable();
spanEvent_.addAll(other.spanEvent_);
}
onChanged();
}
} else {
if (!other.spanEvent_.isEmpty()) {
if (spanEventBuilder_.isEmpty()) {
spanEventBuilder_.dispose();
spanEventBuilder_ = null;
spanEvent_ = other.spanEvent_;
bitField0_ = (bitField0_ & ~0x00000001);
spanEventBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSpanEventFieldBuilder() : null;
} else {
spanEventBuilder_.addAllMessages(other.spanEvent_);
}
}
}
if (other.getApplicationServiceType() != 0) {
setApplicationServiceType(other.getApplicationServiceType());
}
if (other.getKeyTime() != 0L) {
setKeyTime(other.getKeyTime());
}
if (other.hasLocalAsyncId()) {
mergeLocalAsyncId(other.getLocalAsyncId());
}
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.PSpanChunk parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.navercorp.pinpoint.grpc.trace.PSpanChunk) 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 java.lang.Object endPoint_ = "";
/**
* string endPoint = 4;
* @return The endPoint.
*/
public java.lang.String getEndPoint() {
java.lang.Object ref = endPoint_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
endPoint_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string endPoint = 4;
* @return The bytes for endPoint.
*/
public com.google.protobuf.ByteString
getEndPointBytes() {
java.lang.Object ref = endPoint_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
endPoint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string endPoint = 4;
* @param value The endPoint to set.
* @return This builder for chaining.
*/
public Builder setEndPoint(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
endPoint_ = value;
onChanged();
return this;
}
/**
* string endPoint = 4;
* @return This builder for chaining.
*/
public Builder clearEndPoint() {
endPoint_ = getDefaultInstance().getEndPoint();
onChanged();
return this;
}
/**
* string endPoint = 4;
* @param value The bytes for endPoint to set.
* @return This builder for chaining.
*/
public Builder setEndPointBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
endPoint_ = value;
onChanged();
return this;
}
private java.util.List spanEvent_ =
java.util.Collections.emptyList();
private void ensureSpanEventIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
spanEvent_ = new java.util.ArrayList(spanEvent_);
bitField0_ |= 0x00000001;
}
}
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 = 5;
*/
public java.util.List getSpanEventList() {
if (spanEventBuilder_ == null) {
return java.util.Collections.unmodifiableList(spanEvent_);
} else {
return spanEventBuilder_.getMessageList();
}
}
/**
* repeated .v1.PSpanEvent spanEvent = 5;
*/
public int getSpanEventCount() {
if (spanEventBuilder_ == null) {
return spanEvent_.size();
} else {
return spanEventBuilder_.getCount();
}
}
/**
* repeated .v1.PSpanEvent spanEvent = 5;
*/
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 = 5;
*/
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 = 5;
*/
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 = 5;
*/
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 = 5;
*/
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 = 5;
*/
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 = 5;
*/
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 = 5;
*/
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 = 5;
*/
public Builder clearSpanEvent() {
if (spanEventBuilder_ == null) {
spanEvent_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
spanEventBuilder_.clear();
}
return this;
}
/**
* repeated .v1.PSpanEvent spanEvent = 5;
*/
public Builder removeSpanEvent(int index) {
if (spanEventBuilder_ == null) {
ensureSpanEventIsMutable();
spanEvent_.remove(index);
onChanged();
} else {
spanEventBuilder_.remove(index);
}
return this;
}
/**
* repeated .v1.PSpanEvent spanEvent = 5;
*/
public com.navercorp.pinpoint.grpc.trace.PSpanEvent.Builder getSpanEventBuilder(
int index) {
return getSpanEventFieldBuilder().getBuilder(index);
}
/**
* repeated .v1.PSpanEvent spanEvent = 5;
*/
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 = 5;
*/
public java.util.List
getSpanEventOrBuilderList() {
if (spanEventBuilder_ != null) {
return spanEventBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(spanEvent_);
}
}
/**
* repeated .v1.PSpanEvent spanEvent = 5;
*/
public com.navercorp.pinpoint.grpc.trace.PSpanEvent.Builder addSpanEventBuilder() {
return getSpanEventFieldBuilder().addBuilder(
com.navercorp.pinpoint.grpc.trace.PSpanEvent.getDefaultInstance());
}
/**
* repeated .v1.PSpanEvent spanEvent = 5;
*/
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 = 5;
*/
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_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
spanEvent_ = null;
}
return spanEventBuilder_;
}
private int applicationServiceType_ ;
/**
* int32 applicationServiceType = 6;
* @return The applicationServiceType.
*/
@java.lang.Override
public int getApplicationServiceType() {
return applicationServiceType_;
}
/**
* int32 applicationServiceType = 6;
* @param value The applicationServiceType to set.
* @return This builder for chaining.
*/
public Builder setApplicationServiceType(int value) {
applicationServiceType_ = value;
onChanged();
return this;
}
/**
* int32 applicationServiceType = 6;
* @return This builder for chaining.
*/
public Builder clearApplicationServiceType() {
applicationServiceType_ = 0;
onChanged();
return this;
}
private long keyTime_ ;
/**
* int64 keyTime = 7;
* @return The keyTime.
*/
@java.lang.Override
public long getKeyTime() {
return keyTime_;
}
/**
* int64 keyTime = 7;
* @param value The keyTime to set.
* @return This builder for chaining.
*/
public Builder setKeyTime(long value) {
keyTime_ = value;
onChanged();
return this;
}
/**
* int64 keyTime = 7;
* @return This builder for chaining.
*/
public Builder clearKeyTime() {
keyTime_ = 0L;
onChanged();
return this;
}
private com.navercorp.pinpoint.grpc.trace.PLocalAsyncId localAsyncId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PLocalAsyncId, com.navercorp.pinpoint.grpc.trace.PLocalAsyncId.Builder, com.navercorp.pinpoint.grpc.trace.PLocalAsyncIdOrBuilder> localAsyncIdBuilder_;
/**
* .v1.PLocalAsyncId localAsyncId = 8;
* @return Whether the localAsyncId field is set.
*/
public boolean hasLocalAsyncId() {
return localAsyncIdBuilder_ != null || localAsyncId_ != null;
}
/**
* .v1.PLocalAsyncId localAsyncId = 8;
* @return The localAsyncId.
*/
public com.navercorp.pinpoint.grpc.trace.PLocalAsyncId getLocalAsyncId() {
if (localAsyncIdBuilder_ == null) {
return localAsyncId_ == null ? com.navercorp.pinpoint.grpc.trace.PLocalAsyncId.getDefaultInstance() : localAsyncId_;
} else {
return localAsyncIdBuilder_.getMessage();
}
}
/**
* .v1.PLocalAsyncId localAsyncId = 8;
*/
public Builder setLocalAsyncId(com.navercorp.pinpoint.grpc.trace.PLocalAsyncId value) {
if (localAsyncIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localAsyncId_ = value;
onChanged();
} else {
localAsyncIdBuilder_.setMessage(value);
}
return this;
}
/**
* .v1.PLocalAsyncId localAsyncId = 8;
*/
public Builder setLocalAsyncId(
com.navercorp.pinpoint.grpc.trace.PLocalAsyncId.Builder builderForValue) {
if (localAsyncIdBuilder_ == null) {
localAsyncId_ = builderForValue.build();
onChanged();
} else {
localAsyncIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .v1.PLocalAsyncId localAsyncId = 8;
*/
public Builder mergeLocalAsyncId(com.navercorp.pinpoint.grpc.trace.PLocalAsyncId value) {
if (localAsyncIdBuilder_ == null) {
if (localAsyncId_ != null) {
localAsyncId_ =
com.navercorp.pinpoint.grpc.trace.PLocalAsyncId.newBuilder(localAsyncId_).mergeFrom(value).buildPartial();
} else {
localAsyncId_ = value;
}
onChanged();
} else {
localAsyncIdBuilder_.mergeFrom(value);
}
return this;
}
/**
* .v1.PLocalAsyncId localAsyncId = 8;
*/
public Builder clearLocalAsyncId() {
if (localAsyncIdBuilder_ == null) {
localAsyncId_ = null;
onChanged();
} else {
localAsyncId_ = null;
localAsyncIdBuilder_ = null;
}
return this;
}
/**
* .v1.PLocalAsyncId localAsyncId = 8;
*/
public com.navercorp.pinpoint.grpc.trace.PLocalAsyncId.Builder getLocalAsyncIdBuilder() {
onChanged();
return getLocalAsyncIdFieldBuilder().getBuilder();
}
/**
* .v1.PLocalAsyncId localAsyncId = 8;
*/
public com.navercorp.pinpoint.grpc.trace.PLocalAsyncIdOrBuilder getLocalAsyncIdOrBuilder() {
if (localAsyncIdBuilder_ != null) {
return localAsyncIdBuilder_.getMessageOrBuilder();
} else {
return localAsyncId_ == null ?
com.navercorp.pinpoint.grpc.trace.PLocalAsyncId.getDefaultInstance() : localAsyncId_;
}
}
/**
* .v1.PLocalAsyncId localAsyncId = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PLocalAsyncId, com.navercorp.pinpoint.grpc.trace.PLocalAsyncId.Builder, com.navercorp.pinpoint.grpc.trace.PLocalAsyncIdOrBuilder>
getLocalAsyncIdFieldBuilder() {
if (localAsyncIdBuilder_ == null) {
localAsyncIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.navercorp.pinpoint.grpc.trace.PLocalAsyncId, com.navercorp.pinpoint.grpc.trace.PLocalAsyncId.Builder, com.navercorp.pinpoint.grpc.trace.PLocalAsyncIdOrBuilder>(
getLocalAsyncId(),
getParentForChildren(),
isClean());
localAsyncId_ = null;
}
return localAsyncIdBuilder_;
}
@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.PSpanChunk)
}
// @@protoc_insertion_point(class_scope:v1.PSpanChunk)
private static final com.navercorp.pinpoint.grpc.trace.PSpanChunk DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.navercorp.pinpoint.grpc.trace.PSpanChunk();
}
public static com.navercorp.pinpoint.grpc.trace.PSpanChunk getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PSpanChunk parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PSpanChunk(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.PSpanChunk getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}