// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: TraceProtocol.proto
package com.ai.cloud.skywalking.protocol.proto;
public final class TraceProtocol {
private TraceProtocol() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface AckSpanOrBuilder extends
// @@protoc_insertion_point(interface_extends:AckSpan)
com.google.protobuf.MessageOrBuilder {
/**
* required string traceId = 1;
*/
boolean hasTraceId();
/**
* required string traceId = 1;
*/
java.lang.String getTraceId();
/**
* required string traceId = 1;
*/
com.google.protobuf.ByteString
getTraceIdBytes();
/**
* optional string parentLevel = 2;
*/
boolean hasParentLevel();
/**
* optional string parentLevel = 2;
*/
java.lang.String getParentLevel();
/**
* optional string parentLevel = 2;
*/
com.google.protobuf.ByteString
getParentLevelBytes();
/**
* required int32 levelId = 3;
*/
boolean hasLevelId();
/**
* required int32 levelId = 3;
*/
int getLevelId();
/**
* required int64 cost = 4;
*/
boolean hasCost();
/**
* required int64 cost = 4;
*/
long getCost();
/**
* required int32 statusCode = 5;
*/
boolean hasStatusCode();
/**
* required int32 statusCode = 5;
*/
int getStatusCode();
/**
* optional string exceptionStack = 6;
*/
boolean hasExceptionStack();
/**
* optional string exceptionStack = 6;
*/
java.lang.String getExceptionStack();
/**
* optional string exceptionStack = 6;
*/
com.google.protobuf.ByteString
getExceptionStackBytes();
/**
* required string viewpointId = 7;
*/
boolean hasViewpointId();
/**
* required string viewpointId = 7;
*/
java.lang.String getViewpointId();
/**
* required string viewpointId = 7;
*/
com.google.protobuf.ByteString
getViewpointIdBytes();
}
/**
* Protobuf type {@code AckSpan}
*/
public static final class AckSpan extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:AckSpan)
AckSpanOrBuilder {
// Use AckSpan.newBuilder() to construct.
private AckSpan(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AckSpan() {
traceId_ = "";
parentLevel_ = "";
levelId_ = 0;
cost_ = 0L;
statusCode_ = 0;
exceptionStack_ = "";
viewpointId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AckSpan(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
traceId_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
parentLevel_ = bs;
break;
}
case 24: {
bitField0_ |= 0x00000004;
levelId_ = input.readInt32();
break;
}
case 32: {
bitField0_ |= 0x00000008;
cost_ = input.readInt64();
break;
}
case 40: {
bitField0_ |= 0x00000010;
statusCode_ = input.readInt32();
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
exceptionStack_ = bs;
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
viewpointId_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.ai.cloud.skywalking.protocol.proto.TraceProtocol.internal_static_AckSpan_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.ai.cloud.skywalking.protocol.proto.TraceProtocol.internal_static_AckSpan_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan.class, com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan.Builder.class);
}
private int bitField0_;
public static final int TRACEID_FIELD_NUMBER = 1;
private volatile java.lang.Object traceId_;
/**
* required string traceId = 1;
*/
public boolean hasTraceId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string traceId = 1;
*/
public java.lang.String getTraceId() {
java.lang.Object ref = traceId_;
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();
if (bs.isValidUtf8()) {
traceId_ = s;
}
return s;
}
}
/**
* required string traceId = 1;
*/
public com.google.protobuf.ByteString
getTraceIdBytes() {
java.lang.Object ref = traceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
traceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARENTLEVEL_FIELD_NUMBER = 2;
private volatile java.lang.Object parentLevel_;
/**
* optional string parentLevel = 2;
*/
public boolean hasParentLevel() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string parentLevel = 2;
*/
public java.lang.String getParentLevel() {
java.lang.Object ref = parentLevel_;
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();
if (bs.isValidUtf8()) {
parentLevel_ = s;
}
return s;
}
}
/**
* optional string parentLevel = 2;
*/
public com.google.protobuf.ByteString
getParentLevelBytes() {
java.lang.Object ref = parentLevel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parentLevel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LEVELID_FIELD_NUMBER = 3;
private int levelId_;
/**
* required int32 levelId = 3;
*/
public boolean hasLevelId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 levelId = 3;
*/
public int getLevelId() {
return levelId_;
}
public static final int COST_FIELD_NUMBER = 4;
private long cost_;
/**
* required int64 cost = 4;
*/
public boolean hasCost() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required int64 cost = 4;
*/
public long getCost() {
return cost_;
}
public static final int STATUSCODE_FIELD_NUMBER = 5;
private int statusCode_;
/**
* required int32 statusCode = 5;
*/
public boolean hasStatusCode() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* required int32 statusCode = 5;
*/
public int getStatusCode() {
return statusCode_;
}
public static final int EXCEPTIONSTACK_FIELD_NUMBER = 6;
private volatile java.lang.Object exceptionStack_;
/**
* optional string exceptionStack = 6;
*/
public boolean hasExceptionStack() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string exceptionStack = 6;
*/
public java.lang.String getExceptionStack() {
java.lang.Object ref = exceptionStack_;
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();
if (bs.isValidUtf8()) {
exceptionStack_ = s;
}
return s;
}
}
/**
* optional string exceptionStack = 6;
*/
public com.google.protobuf.ByteString
getExceptionStackBytes() {
java.lang.Object ref = exceptionStack_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
exceptionStack_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VIEWPOINTID_FIELD_NUMBER = 7;
private volatile java.lang.Object viewpointId_;
/**
* required string viewpointId = 7;
*/
public boolean hasViewpointId() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* required string viewpointId = 7;
*/
public java.lang.String getViewpointId() {
java.lang.Object ref = viewpointId_;
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();
if (bs.isValidUtf8()) {
viewpointId_ = s;
}
return s;
}
}
/**
* required string viewpointId = 7;
*/
public com.google.protobuf.ByteString
getViewpointIdBytes() {
java.lang.Object ref = viewpointId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
viewpointId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasTraceId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasLevelId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasCost()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasStatusCode()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasViewpointId()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, traceId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parentLevel_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, levelId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt64(4, cost_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(5, statusCode_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, exceptionStack_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, viewpointId_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, traceId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parentLevel_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, levelId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, cost_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, statusCode_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, exceptionStack_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, viewpointId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan)) {
return super.equals(obj);
}
com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan other = (com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan) obj;
boolean result = true;
result = result && (hasTraceId() == other.hasTraceId());
if (hasTraceId()) {
result = result && getTraceId()
.equals(other.getTraceId());
}
result = result && (hasParentLevel() == other.hasParentLevel());
if (hasParentLevel()) {
result = result && getParentLevel()
.equals(other.getParentLevel());
}
result = result && (hasLevelId() == other.hasLevelId());
if (hasLevelId()) {
result = result && (getLevelId()
== other.getLevelId());
}
result = result && (hasCost() == other.hasCost());
if (hasCost()) {
result = result && (getCost()
== other.getCost());
}
result = result && (hasStatusCode() == other.hasStatusCode());
if (hasStatusCode()) {
result = result && (getStatusCode()
== other.getStatusCode());
}
result = result && (hasExceptionStack() == other.hasExceptionStack());
if (hasExceptionStack()) {
result = result && getExceptionStack()
.equals(other.getExceptionStack());
}
result = result && (hasViewpointId() == other.hasViewpointId());
if (hasViewpointId()) {
result = result && getViewpointId()
.equals(other.getViewpointId());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasTraceId()) {
hash = (37 * hash) + TRACEID_FIELD_NUMBER;
hash = (53 * hash) + getTraceId().hashCode();
}
if (hasParentLevel()) {
hash = (37 * hash) + PARENTLEVEL_FIELD_NUMBER;
hash = (53 * hash) + getParentLevel().hashCode();
}
if (hasLevelId()) {
hash = (37 * hash) + LEVELID_FIELD_NUMBER;
hash = (53 * hash) + getLevelId();
}
if (hasCost()) {
hash = (37 * hash) + COST_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCost());
}
if (hasStatusCode()) {
hash = (37 * hash) + STATUSCODE_FIELD_NUMBER;
hash = (53 * hash) + getStatusCode();
}
if (hasExceptionStack()) {
hash = (37 * hash) + EXCEPTIONSTACK_FIELD_NUMBER;
hash = (53 * hash) + getExceptionStack().hashCode();
}
if (hasViewpointId()) {
hash = (37 * hash) + VIEWPOINTID_FIELD_NUMBER;
hash = (53 * hash) + getViewpointId().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan 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.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan 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.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 AckSpan}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:AckSpan)
com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpanOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.ai.cloud.skywalking.protocol.proto.TraceProtocol.internal_static_AckSpan_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.ai.cloud.skywalking.protocol.proto.TraceProtocol.internal_static_AckSpan_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan.class, com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan.Builder.class);
}
// Construct using com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
traceId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
parentLevel_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
levelId_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
cost_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
statusCode_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
exceptionStack_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
viewpointId_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.ai.cloud.skywalking.protocol.proto.TraceProtocol.internal_static_AckSpan_descriptor;
}
public com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan getDefaultInstanceForType() {
return com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan.getDefaultInstance();
}
public com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan build() {
com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan buildPartial() {
com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan result = new com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.traceId_ = traceId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.parentLevel_ = parentLevel_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.levelId_ = levelId_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.cost_ = cost_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.statusCode_ = statusCode_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.exceptionStack_ = exceptionStack_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.viewpointId_ = viewpointId_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan) {
return mergeFrom((com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan other) {
if (other == com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan.getDefaultInstance()) return this;
if (other.hasTraceId()) {
bitField0_ |= 0x00000001;
traceId_ = other.traceId_;
onChanged();
}
if (other.hasParentLevel()) {
bitField0_ |= 0x00000002;
parentLevel_ = other.parentLevel_;
onChanged();
}
if (other.hasLevelId()) {
setLevelId(other.getLevelId());
}
if (other.hasCost()) {
setCost(other.getCost());
}
if (other.hasStatusCode()) {
setStatusCode(other.getStatusCode());
}
if (other.hasExceptionStack()) {
bitField0_ |= 0x00000020;
exceptionStack_ = other.exceptionStack_;
onChanged();
}
if (other.hasViewpointId()) {
bitField0_ |= 0x00000040;
viewpointId_ = other.viewpointId_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasTraceId()) {
return false;
}
if (!hasLevelId()) {
return false;
}
if (!hasCost()) {
return false;
}
if (!hasStatusCode()) {
return false;
}
if (!hasViewpointId()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object traceId_ = "";
/**
* required string traceId = 1;
*/
public boolean hasTraceId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string traceId = 1;
*/
public java.lang.String getTraceId() {
java.lang.Object ref = traceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
traceId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string traceId = 1;
*/
public com.google.protobuf.ByteString
getTraceIdBytes() {
java.lang.Object ref = traceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
traceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string traceId = 1;
*/
public Builder setTraceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
traceId_ = value;
onChanged();
return this;
}
/**
* required string traceId = 1;
*/
public Builder clearTraceId() {
bitField0_ = (bitField0_ & ~0x00000001);
traceId_ = getDefaultInstance().getTraceId();
onChanged();
return this;
}
/**
* required string traceId = 1;
*/
public Builder setTraceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
traceId_ = value;
onChanged();
return this;
}
private java.lang.Object parentLevel_ = "";
/**
* optional string parentLevel = 2;
*/
public boolean hasParentLevel() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string parentLevel = 2;
*/
public java.lang.String getParentLevel() {
java.lang.Object ref = parentLevel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
parentLevel_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string parentLevel = 2;
*/
public com.google.protobuf.ByteString
getParentLevelBytes() {
java.lang.Object ref = parentLevel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parentLevel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string parentLevel = 2;
*/
public Builder setParentLevel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
parentLevel_ = value;
onChanged();
return this;
}
/**
* optional string parentLevel = 2;
*/
public Builder clearParentLevel() {
bitField0_ = (bitField0_ & ~0x00000002);
parentLevel_ = getDefaultInstance().getParentLevel();
onChanged();
return this;
}
/**
* optional string parentLevel = 2;
*/
public Builder setParentLevelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
parentLevel_ = value;
onChanged();
return this;
}
private int levelId_ ;
/**
* required int32 levelId = 3;
*/
public boolean hasLevelId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 levelId = 3;
*/
public int getLevelId() {
return levelId_;
}
/**
* required int32 levelId = 3;
*/
public Builder setLevelId(int value) {
bitField0_ |= 0x00000004;
levelId_ = value;
onChanged();
return this;
}
/**
* required int32 levelId = 3;
*/
public Builder clearLevelId() {
bitField0_ = (bitField0_ & ~0x00000004);
levelId_ = 0;
onChanged();
return this;
}
private long cost_ ;
/**
* required int64 cost = 4;
*/
public boolean hasCost() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required int64 cost = 4;
*/
public long getCost() {
return cost_;
}
/**
* required int64 cost = 4;
*/
public Builder setCost(long value) {
bitField0_ |= 0x00000008;
cost_ = value;
onChanged();
return this;
}
/**
* required int64 cost = 4;
*/
public Builder clearCost() {
bitField0_ = (bitField0_ & ~0x00000008);
cost_ = 0L;
onChanged();
return this;
}
private int statusCode_ ;
/**
* required int32 statusCode = 5;
*/
public boolean hasStatusCode() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* required int32 statusCode = 5;
*/
public int getStatusCode() {
return statusCode_;
}
/**
* required int32 statusCode = 5;
*/
public Builder setStatusCode(int value) {
bitField0_ |= 0x00000010;
statusCode_ = value;
onChanged();
return this;
}
/**
* required int32 statusCode = 5;
*/
public Builder clearStatusCode() {
bitField0_ = (bitField0_ & ~0x00000010);
statusCode_ = 0;
onChanged();
return this;
}
private java.lang.Object exceptionStack_ = "";
/**
* optional string exceptionStack = 6;
*/
public boolean hasExceptionStack() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string exceptionStack = 6;
*/
public java.lang.String getExceptionStack() {
java.lang.Object ref = exceptionStack_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
exceptionStack_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string exceptionStack = 6;
*/
public com.google.protobuf.ByteString
getExceptionStackBytes() {
java.lang.Object ref = exceptionStack_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
exceptionStack_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string exceptionStack = 6;
*/
public Builder setExceptionStack(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
exceptionStack_ = value;
onChanged();
return this;
}
/**
* optional string exceptionStack = 6;
*/
public Builder clearExceptionStack() {
bitField0_ = (bitField0_ & ~0x00000020);
exceptionStack_ = getDefaultInstance().getExceptionStack();
onChanged();
return this;
}
/**
* optional string exceptionStack = 6;
*/
public Builder setExceptionStackBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
exceptionStack_ = value;
onChanged();
return this;
}
private java.lang.Object viewpointId_ = "";
/**
* required string viewpointId = 7;
*/
public boolean hasViewpointId() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* required string viewpointId = 7;
*/
public java.lang.String getViewpointId() {
java.lang.Object ref = viewpointId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
viewpointId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string viewpointId = 7;
*/
public com.google.protobuf.ByteString
getViewpointIdBytes() {
java.lang.Object ref = viewpointId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
viewpointId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string viewpointId = 7;
*/
public Builder setViewpointId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
viewpointId_ = value;
onChanged();
return this;
}
/**
* required string viewpointId = 7;
*/
public Builder clearViewpointId() {
bitField0_ = (bitField0_ & ~0x00000040);
viewpointId_ = getDefaultInstance().getViewpointId();
onChanged();
return this;
}
/**
* required string viewpointId = 7;
*/
public Builder setViewpointIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
viewpointId_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:AckSpan)
}
// @@protoc_insertion_point(class_scope:AckSpan)
private static final com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan();
}
public static com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public AckSpan parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AckSpan(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.ai.cloud.skywalking.protocol.proto.TraceProtocol.AckSpan getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestSpanOrBuilder extends
// @@protoc_insertion_point(interface_extends:RequestSpan)
com.google.protobuf.MessageOrBuilder {
/**
* required string traceId = 1;
*/
boolean hasTraceId();
/**
* required string traceId = 1;
*/
java.lang.String getTraceId();
/**
* required string traceId = 1;
*/
com.google.protobuf.ByteString
getTraceIdBytes();
/**
* optional string parentLevel = 2;
*/
boolean hasParentLevel();
/**
* optional string parentLevel = 2;
*/
java.lang.String getParentLevel();
/**
* optional string parentLevel = 2;
*/
com.google.protobuf.ByteString
getParentLevelBytes();
/**
* required int32 levelId = 3;
*/
boolean hasLevelId();
/**
* required int32 levelId = 3;
*/
int getLevelId();
/**
* required string viewPointId = 4;
*/
boolean hasViewPointId();
/**
* required string viewPointId = 4;
*/
java.lang.String getViewPointId();
/**
* required string viewPointId = 4;
*/
com.google.protobuf.ByteString
getViewPointIdBytes();
/**
* required int64 startDate = 5;
*/
boolean hasStartDate();
/**
* required int64 startDate = 5;
*/
long getStartDate();
/**
* required string spanTypeDesc = 6;
*/
boolean hasSpanTypeDesc();
/**
* required string spanTypeDesc = 6;
*/
java.lang.String getSpanTypeDesc();
/**
* required string spanTypeDesc = 6;
*/
com.google.protobuf.ByteString
getSpanTypeDescBytes();
/**
* required string callType = 7;
*/
boolean hasCallType();
/**
* required string callType = 7;
*/
java.lang.String getCallType();
/**
* required string callType = 7;
*/
com.google.protobuf.ByteString
getCallTypeBytes();
/**
* required uint32 spanType = 8;
*/
boolean hasSpanType();
/**
* required uint32 spanType = 8;
*/
int getSpanType();
/**
* required string applicationId = 9;
*/
boolean hasApplicationId();
/**
* required string applicationId = 9;
*/
java.lang.String getApplicationId();
/**
* required string applicationId = 9;
*/
com.google.protobuf.ByteString
getApplicationIdBytes();
/**
* required string userId = 10;
*/
boolean hasUserId();
/**
* required string userId = 10;
*/
java.lang.String getUserId();
/**
* required string userId = 10;
*/
com.google.protobuf.ByteString
getUserIdBytes();
/**
* optional string bussinessKey = 11;
*/
boolean hasBussinessKey();
/**
* optional string bussinessKey = 11;
*/
java.lang.String getBussinessKey();
/**
* optional string bussinessKey = 11;
*/
com.google.protobuf.ByteString
getBussinessKeyBytes();
/**
* required string agentId = 12;
*/
boolean hasAgentId();
/**
* required string agentId = 12;
*/
java.lang.String getAgentId();
/**
* required string agentId = 12;
*/
com.google.protobuf.ByteString
getAgentIdBytes();
/**
* map<string, string> parameters = 13;
*/
int getParametersCount();
/**
* map<string, string> parameters = 13;
*/
boolean containsParameters(
java.lang.String key);
/**
* Use {@link #getParametersMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getParameters();
/**
* map<string, string> parameters = 13;
*/
java.util.Map
getParametersMap();
/**
* map<string, string> parameters = 13;
*/
java.lang.String getParametersOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
* map<string, string> parameters = 13;
*/
java.lang.String getParametersOrThrow(
java.lang.String key);
/**
* required string processNo = 14;
*/
boolean hasProcessNo();
/**
* required string processNo = 14;
*/
java.lang.String getProcessNo();
/**
* required string processNo = 14;
*/
com.google.protobuf.ByteString
getProcessNoBytes();
/**
* required string address = 15;
*/
boolean hasAddress();
/**
* required string address = 15;
*/
java.lang.String getAddress();
/**
* required string address = 15;
*/
com.google.protobuf.ByteString
getAddressBytes();
}
/**
* Protobuf type {@code RequestSpan}
*/
public static final class RequestSpan extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:RequestSpan)
RequestSpanOrBuilder {
// Use RequestSpan.newBuilder() to construct.
private RequestSpan(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RequestSpan() {
traceId_ = "";
parentLevel_ = "";
levelId_ = 0;
viewPointId_ = "";
startDate_ = 0L;
spanTypeDesc_ = "";
callType_ = "";
spanType_ = 0;
applicationId_ = "";
userId_ = "";
bussinessKey_ = "";
agentId_ = "";
processNo_ = "";
address_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RequestSpan(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
traceId_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
parentLevel_ = bs;
break;
}
case 24: {
bitField0_ |= 0x00000004;
levelId_ = input.readInt32();
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
viewPointId_ = bs;
break;
}
case 40: {
bitField0_ |= 0x00000010;
startDate_ = input.readInt64();
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
spanTypeDesc_ = bs;
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
callType_ = bs;
break;
}
case 64: {
bitField0_ |= 0x00000080;
spanType_ = input.readUInt32();
break;
}
case 74: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000100;
applicationId_ = bs;
break;
}
case 82: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000200;
userId_ = bs;
break;
}
case 90: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000400;
bussinessKey_ = bs;
break;
}
case 98: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000800;
agentId_ = bs;
break;
}
case 106: {
if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) {
parameters_ = com.google.protobuf.MapField.newMapField(
ParametersDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00001000;
}
com.google.protobuf.MapEntry
parameters = input.readMessage(
ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
parameters_.getMutableMap().put(parameters.getKey(), parameters.getValue());
break;
}
case 114: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00001000;
processNo_ = bs;
break;
}
case 122: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00002000;
address_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.ai.cloud.skywalking.protocol.proto.TraceProtocol.internal_static_RequestSpan_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 13:
return internalGetParameters();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.ai.cloud.skywalking.protocol.proto.TraceProtocol.internal_static_RequestSpan_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan.class, com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan.Builder.class);
}
private int bitField0_;
public static final int TRACEID_FIELD_NUMBER = 1;
private volatile java.lang.Object traceId_;
/**
* required string traceId = 1;
*/
public boolean hasTraceId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string traceId = 1;
*/
public java.lang.String getTraceId() {
java.lang.Object ref = traceId_;
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();
if (bs.isValidUtf8()) {
traceId_ = s;
}
return s;
}
}
/**
* required string traceId = 1;
*/
public com.google.protobuf.ByteString
getTraceIdBytes() {
java.lang.Object ref = traceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
traceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARENTLEVEL_FIELD_NUMBER = 2;
private volatile java.lang.Object parentLevel_;
/**
* optional string parentLevel = 2;
*/
public boolean hasParentLevel() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string parentLevel = 2;
*/
public java.lang.String getParentLevel() {
java.lang.Object ref = parentLevel_;
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();
if (bs.isValidUtf8()) {
parentLevel_ = s;
}
return s;
}
}
/**
* optional string parentLevel = 2;
*/
public com.google.protobuf.ByteString
getParentLevelBytes() {
java.lang.Object ref = parentLevel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parentLevel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LEVELID_FIELD_NUMBER = 3;
private int levelId_;
/**
* required int32 levelId = 3;
*/
public boolean hasLevelId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 levelId = 3;
*/
public int getLevelId() {
return levelId_;
}
public static final int VIEWPOINTID_FIELD_NUMBER = 4;
private volatile java.lang.Object viewPointId_;
/**
* required string viewPointId = 4;
*/
public boolean hasViewPointId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required string viewPointId = 4;
*/
public java.lang.String getViewPointId() {
java.lang.Object ref = viewPointId_;
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();
if (bs.isValidUtf8()) {
viewPointId_ = s;
}
return s;
}
}
/**
* required string viewPointId = 4;
*/
public com.google.protobuf.ByteString
getViewPointIdBytes() {
java.lang.Object ref = viewPointId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
viewPointId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STARTDATE_FIELD_NUMBER = 5;
private long startDate_;
/**
* required int64 startDate = 5;
*/
public boolean hasStartDate() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* required int64 startDate = 5;
*/
public long getStartDate() {
return startDate_;
}
public static final int SPANTYPEDESC_FIELD_NUMBER = 6;
private volatile java.lang.Object spanTypeDesc_;
/**
* required string spanTypeDesc = 6;
*/
public boolean hasSpanTypeDesc() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* required string spanTypeDesc = 6;
*/
public java.lang.String getSpanTypeDesc() {
java.lang.Object ref = spanTypeDesc_;
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();
if (bs.isValidUtf8()) {
spanTypeDesc_ = s;
}
return s;
}
}
/**
* required string spanTypeDesc = 6;
*/
public com.google.protobuf.ByteString
getSpanTypeDescBytes() {
java.lang.Object ref = spanTypeDesc_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
spanTypeDesc_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CALLTYPE_FIELD_NUMBER = 7;
private volatile java.lang.Object callType_;
/**
* required string callType = 7;
*/
public boolean hasCallType() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* required string callType = 7;
*/
public java.lang.String getCallType() {
java.lang.Object ref = callType_;
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();
if (bs.isValidUtf8()) {
callType_ = s;
}
return s;
}
}
/**
* required string callType = 7;
*/
public com.google.protobuf.ByteString
getCallTypeBytes() {
java.lang.Object ref = callType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
callType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SPANTYPE_FIELD_NUMBER = 8;
private int spanType_;
/**
* required uint32 spanType = 8;
*/
public boolean hasSpanType() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* required uint32 spanType = 8;
*/
public int getSpanType() {
return spanType_;
}
public static final int APPLICATIONID_FIELD_NUMBER = 9;
private volatile java.lang.Object applicationId_;
/**
* required string applicationId = 9;
*/
public boolean hasApplicationId() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* required string applicationId = 9;
*/
public java.lang.String getApplicationId() {
java.lang.Object ref = applicationId_;
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();
if (bs.isValidUtf8()) {
applicationId_ = s;
}
return s;
}
}
/**
* required string applicationId = 9;
*/
public com.google.protobuf.ByteString
getApplicationIdBytes() {
java.lang.Object ref = applicationId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
applicationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USERID_FIELD_NUMBER = 10;
private volatile java.lang.Object userId_;
/**
* required string userId = 10;
*/
public boolean hasUserId() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* required string userId = 10;
*/
public java.lang.String getUserId() {
java.lang.Object ref = userId_;
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();
if (bs.isValidUtf8()) {
userId_ = s;
}
return s;
}
}
/**
* required string userId = 10;
*/
public com.google.protobuf.ByteString
getUserIdBytes() {
java.lang.Object ref = userId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BUSSINESSKEY_FIELD_NUMBER = 11;
private volatile java.lang.Object bussinessKey_;
/**
* optional string bussinessKey = 11;
*/
public boolean hasBussinessKey() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional string bussinessKey = 11;
*/
public java.lang.String getBussinessKey() {
java.lang.Object ref = bussinessKey_;
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();
if (bs.isValidUtf8()) {
bussinessKey_ = s;
}
return s;
}
}
/**
* optional string bussinessKey = 11;
*/
public com.google.protobuf.ByteString
getBussinessKeyBytes() {
java.lang.Object ref = bussinessKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bussinessKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AGENTID_FIELD_NUMBER = 12;
private volatile java.lang.Object agentId_;
/**
* required string agentId = 12;
*/
public boolean hasAgentId() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* required string agentId = 12;
*/
public java.lang.String getAgentId() {
java.lang.Object ref = agentId_;
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();
if (bs.isValidUtf8()) {
agentId_ = s;
}
return s;
}
}
/**
* required string agentId = 12;
*/
public com.google.protobuf.ByteString
getAgentIdBytes() {
java.lang.Object ref = agentId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
agentId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARAMETERS_FIELD_NUMBER = 13;
private static final class ParametersDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.ai.cloud.skywalking.protocol.proto.TraceProtocol.internal_static_RequestSpan_ParametersEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> parameters_;
private com.google.protobuf.MapField
internalGetParameters() {
if (parameters_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ParametersDefaultEntryHolder.defaultEntry);
}
return parameters_;
}
public int getParametersCount() {
return internalGetParameters().getMap().size();
}
/**
* map<string, string> parameters = 13;
*/
public boolean containsParameters(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetParameters().getMap().containsKey(key);
}
/**
* Use {@link #getParametersMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getParameters() {
return getParametersMap();
}
/**
* map<string, string> parameters = 13;
*/
public java.util.Map getParametersMap() {
return internalGetParameters().getMap();
}
/**
* map<string, string> parameters = 13;
*/
public java.lang.String getParametersOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetParameters().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> parameters = 13;
*/
public java.lang.String getParametersOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetParameters().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int PROCESSNO_FIELD_NUMBER = 14;
private volatile java.lang.Object processNo_;
/**
* required string processNo = 14;
*/
public boolean hasProcessNo() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* required string processNo = 14;
*/
public java.lang.String getProcessNo() {
java.lang.Object ref = processNo_;
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();
if (bs.isValidUtf8()) {
processNo_ = s;
}
return s;
}
}
/**
* required string processNo = 14;
*/
public com.google.protobuf.ByteString
getProcessNoBytes() {
java.lang.Object ref = processNo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
processNo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADDRESS_FIELD_NUMBER = 15;
private volatile java.lang.Object address_;
/**
* required string address = 15;
*/
public boolean hasAddress() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* required string address = 15;
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
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();
if (bs.isValidUtf8()) {
address_ = s;
}
return s;
}
}
/**
* required string address = 15;
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasTraceId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasLevelId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasViewPointId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasStartDate()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasSpanTypeDesc()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasCallType()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasSpanType()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasApplicationId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasUserId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasAgentId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasProcessNo()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasAddress()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, traceId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parentLevel_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, levelId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, viewPointId_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt64(5, startDate_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, spanTypeDesc_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, callType_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeUInt32(8, spanType_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, applicationId_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, userId_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, bussinessKey_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, agentId_);
}
for (java.util.Map.Entry entry
: internalGetParameters().getMap().entrySet()) {
com.google.protobuf.MapEntry
parameters = ParametersDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
output.writeMessage(13, parameters);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, processNo_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, address_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, traceId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parentLevel_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, levelId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, viewPointId_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, startDate_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, spanTypeDesc_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, callType_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, spanType_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, applicationId_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, userId_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, bussinessKey_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, agentId_);
}
for (java.util.Map.Entry entry
: internalGetParameters().getMap().entrySet()) {
com.google.protobuf.MapEntry
parameters = ParametersDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, parameters);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, processNo_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, address_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan)) {
return super.equals(obj);
}
com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan other = (com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan) obj;
boolean result = true;
result = result && (hasTraceId() == other.hasTraceId());
if (hasTraceId()) {
result = result && getTraceId()
.equals(other.getTraceId());
}
result = result && (hasParentLevel() == other.hasParentLevel());
if (hasParentLevel()) {
result = result && getParentLevel()
.equals(other.getParentLevel());
}
result = result && (hasLevelId() == other.hasLevelId());
if (hasLevelId()) {
result = result && (getLevelId()
== other.getLevelId());
}
result = result && (hasViewPointId() == other.hasViewPointId());
if (hasViewPointId()) {
result = result && getViewPointId()
.equals(other.getViewPointId());
}
result = result && (hasStartDate() == other.hasStartDate());
if (hasStartDate()) {
result = result && (getStartDate()
== other.getStartDate());
}
result = result && (hasSpanTypeDesc() == other.hasSpanTypeDesc());
if (hasSpanTypeDesc()) {
result = result && getSpanTypeDesc()
.equals(other.getSpanTypeDesc());
}
result = result && (hasCallType() == other.hasCallType());
if (hasCallType()) {
result = result && getCallType()
.equals(other.getCallType());
}
result = result && (hasSpanType() == other.hasSpanType());
if (hasSpanType()) {
result = result && (getSpanType()
== other.getSpanType());
}
result = result && (hasApplicationId() == other.hasApplicationId());
if (hasApplicationId()) {
result = result && getApplicationId()
.equals(other.getApplicationId());
}
result = result && (hasUserId() == other.hasUserId());
if (hasUserId()) {
result = result && getUserId()
.equals(other.getUserId());
}
result = result && (hasBussinessKey() == other.hasBussinessKey());
if (hasBussinessKey()) {
result = result && getBussinessKey()
.equals(other.getBussinessKey());
}
result = result && (hasAgentId() == other.hasAgentId());
if (hasAgentId()) {
result = result && getAgentId()
.equals(other.getAgentId());
}
result = result && internalGetParameters().equals(
other.internalGetParameters());
result = result && (hasProcessNo() == other.hasProcessNo());
if (hasProcessNo()) {
result = result && getProcessNo()
.equals(other.getProcessNo());
}
result = result && (hasAddress() == other.hasAddress());
if (hasAddress()) {
result = result && getAddress()
.equals(other.getAddress());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasTraceId()) {
hash = (37 * hash) + TRACEID_FIELD_NUMBER;
hash = (53 * hash) + getTraceId().hashCode();
}
if (hasParentLevel()) {
hash = (37 * hash) + PARENTLEVEL_FIELD_NUMBER;
hash = (53 * hash) + getParentLevel().hashCode();
}
if (hasLevelId()) {
hash = (37 * hash) + LEVELID_FIELD_NUMBER;
hash = (53 * hash) + getLevelId();
}
if (hasViewPointId()) {
hash = (37 * hash) + VIEWPOINTID_FIELD_NUMBER;
hash = (53 * hash) + getViewPointId().hashCode();
}
if (hasStartDate()) {
hash = (37 * hash) + STARTDATE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartDate());
}
if (hasSpanTypeDesc()) {
hash = (37 * hash) + SPANTYPEDESC_FIELD_NUMBER;
hash = (53 * hash) + getSpanTypeDesc().hashCode();
}
if (hasCallType()) {
hash = (37 * hash) + CALLTYPE_FIELD_NUMBER;
hash = (53 * hash) + getCallType().hashCode();
}
if (hasSpanType()) {
hash = (37 * hash) + SPANTYPE_FIELD_NUMBER;
hash = (53 * hash) + getSpanType();
}
if (hasApplicationId()) {
hash = (37 * hash) + APPLICATIONID_FIELD_NUMBER;
hash = (53 * hash) + getApplicationId().hashCode();
}
if (hasUserId()) {
hash = (37 * hash) + USERID_FIELD_NUMBER;
hash = (53 * hash) + getUserId().hashCode();
}
if (hasBussinessKey()) {
hash = (37 * hash) + BUSSINESSKEY_FIELD_NUMBER;
hash = (53 * hash) + getBussinessKey().hashCode();
}
if (hasAgentId()) {
hash = (37 * hash) + AGENTID_FIELD_NUMBER;
hash = (53 * hash) + getAgentId().hashCode();
}
if (!internalGetParameters().getMap().isEmpty()) {
hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + internalGetParameters().hashCode();
}
if (hasProcessNo()) {
hash = (37 * hash) + PROCESSNO_FIELD_NUMBER;
hash = (53 * hash) + getProcessNo().hashCode();
}
if (hasAddress()) {
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan 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.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan 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.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 RequestSpan}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:RequestSpan)
com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpanOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.ai.cloud.skywalking.protocol.proto.TraceProtocol.internal_static_RequestSpan_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 13:
return internalGetParameters();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 13:
return internalGetMutableParameters();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.ai.cloud.skywalking.protocol.proto.TraceProtocol.internal_static_RequestSpan_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan.class, com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan.Builder.class);
}
// Construct using com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
traceId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
parentLevel_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
levelId_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
viewPointId_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
startDate_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
spanTypeDesc_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
callType_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
spanType_ = 0;
bitField0_ = (bitField0_ & ~0x00000080);
applicationId_ = "";
bitField0_ = (bitField0_ & ~0x00000100);
userId_ = "";
bitField0_ = (bitField0_ & ~0x00000200);
bussinessKey_ = "";
bitField0_ = (bitField0_ & ~0x00000400);
agentId_ = "";
bitField0_ = (bitField0_ & ~0x00000800);
internalGetMutableParameters().clear();
processNo_ = "";
bitField0_ = (bitField0_ & ~0x00002000);
address_ = "";
bitField0_ = (bitField0_ & ~0x00004000);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.ai.cloud.skywalking.protocol.proto.TraceProtocol.internal_static_RequestSpan_descriptor;
}
public com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan getDefaultInstanceForType() {
return com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan.getDefaultInstance();
}
public com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan build() {
com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan buildPartial() {
com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan result = new com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.traceId_ = traceId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.parentLevel_ = parentLevel_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.levelId_ = levelId_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.viewPointId_ = viewPointId_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.startDate_ = startDate_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.spanTypeDesc_ = spanTypeDesc_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.callType_ = callType_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.spanType_ = spanType_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.applicationId_ = applicationId_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.userId_ = userId_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
result.bussinessKey_ = bussinessKey_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000800;
}
result.agentId_ = agentId_;
result.parameters_ = internalGetParameters();
result.parameters_.makeImmutable();
if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
to_bitField0_ |= 0x00001000;
}
result.processNo_ = processNo_;
if (((from_bitField0_ & 0x00004000) == 0x00004000)) {
to_bitField0_ |= 0x00002000;
}
result.address_ = address_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan) {
return mergeFrom((com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan other) {
if (other == com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan.getDefaultInstance()) return this;
if (other.hasTraceId()) {
bitField0_ |= 0x00000001;
traceId_ = other.traceId_;
onChanged();
}
if (other.hasParentLevel()) {
bitField0_ |= 0x00000002;
parentLevel_ = other.parentLevel_;
onChanged();
}
if (other.hasLevelId()) {
setLevelId(other.getLevelId());
}
if (other.hasViewPointId()) {
bitField0_ |= 0x00000008;
viewPointId_ = other.viewPointId_;
onChanged();
}
if (other.hasStartDate()) {
setStartDate(other.getStartDate());
}
if (other.hasSpanTypeDesc()) {
bitField0_ |= 0x00000020;
spanTypeDesc_ = other.spanTypeDesc_;
onChanged();
}
if (other.hasCallType()) {
bitField0_ |= 0x00000040;
callType_ = other.callType_;
onChanged();
}
if (other.hasSpanType()) {
setSpanType(other.getSpanType());
}
if (other.hasApplicationId()) {
bitField0_ |= 0x00000100;
applicationId_ = other.applicationId_;
onChanged();
}
if (other.hasUserId()) {
bitField0_ |= 0x00000200;
userId_ = other.userId_;
onChanged();
}
if (other.hasBussinessKey()) {
bitField0_ |= 0x00000400;
bussinessKey_ = other.bussinessKey_;
onChanged();
}
if (other.hasAgentId()) {
bitField0_ |= 0x00000800;
agentId_ = other.agentId_;
onChanged();
}
internalGetMutableParameters().mergeFrom(
other.internalGetParameters());
if (other.hasProcessNo()) {
bitField0_ |= 0x00002000;
processNo_ = other.processNo_;
onChanged();
}
if (other.hasAddress()) {
bitField0_ |= 0x00004000;
address_ = other.address_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasTraceId()) {
return false;
}
if (!hasLevelId()) {
return false;
}
if (!hasViewPointId()) {
return false;
}
if (!hasStartDate()) {
return false;
}
if (!hasSpanTypeDesc()) {
return false;
}
if (!hasCallType()) {
return false;
}
if (!hasSpanType()) {
return false;
}
if (!hasApplicationId()) {
return false;
}
if (!hasUserId()) {
return false;
}
if (!hasAgentId()) {
return false;
}
if (!hasProcessNo()) {
return false;
}
if (!hasAddress()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object traceId_ = "";
/**
* required string traceId = 1;
*/
public boolean hasTraceId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string traceId = 1;
*/
public java.lang.String getTraceId() {
java.lang.Object ref = traceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
traceId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string traceId = 1;
*/
public com.google.protobuf.ByteString
getTraceIdBytes() {
java.lang.Object ref = traceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
traceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string traceId = 1;
*/
public Builder setTraceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
traceId_ = value;
onChanged();
return this;
}
/**
* required string traceId = 1;
*/
public Builder clearTraceId() {
bitField0_ = (bitField0_ & ~0x00000001);
traceId_ = getDefaultInstance().getTraceId();
onChanged();
return this;
}
/**
* required string traceId = 1;
*/
public Builder setTraceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
traceId_ = value;
onChanged();
return this;
}
private java.lang.Object parentLevel_ = "";
/**
* optional string parentLevel = 2;
*/
public boolean hasParentLevel() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string parentLevel = 2;
*/
public java.lang.String getParentLevel() {
java.lang.Object ref = parentLevel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
parentLevel_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string parentLevel = 2;
*/
public com.google.protobuf.ByteString
getParentLevelBytes() {
java.lang.Object ref = parentLevel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parentLevel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string parentLevel = 2;
*/
public Builder setParentLevel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
parentLevel_ = value;
onChanged();
return this;
}
/**
* optional string parentLevel = 2;
*/
public Builder clearParentLevel() {
bitField0_ = (bitField0_ & ~0x00000002);
parentLevel_ = getDefaultInstance().getParentLevel();
onChanged();
return this;
}
/**
* optional string parentLevel = 2;
*/
public Builder setParentLevelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
parentLevel_ = value;
onChanged();
return this;
}
private int levelId_ ;
/**
* required int32 levelId = 3;
*/
public boolean hasLevelId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required int32 levelId = 3;
*/
public int getLevelId() {
return levelId_;
}
/**
* required int32 levelId = 3;
*/
public Builder setLevelId(int value) {
bitField0_ |= 0x00000004;
levelId_ = value;
onChanged();
return this;
}
/**
* required int32 levelId = 3;
*/
public Builder clearLevelId() {
bitField0_ = (bitField0_ & ~0x00000004);
levelId_ = 0;
onChanged();
return this;
}
private java.lang.Object viewPointId_ = "";
/**
* required string viewPointId = 4;
*/
public boolean hasViewPointId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* required string viewPointId = 4;
*/
public java.lang.String getViewPointId() {
java.lang.Object ref = viewPointId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
viewPointId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string viewPointId = 4;
*/
public com.google.protobuf.ByteString
getViewPointIdBytes() {
java.lang.Object ref = viewPointId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
viewPointId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string viewPointId = 4;
*/
public Builder setViewPointId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
viewPointId_ = value;
onChanged();
return this;
}
/**
* required string viewPointId = 4;
*/
public Builder clearViewPointId() {
bitField0_ = (bitField0_ & ~0x00000008);
viewPointId_ = getDefaultInstance().getViewPointId();
onChanged();
return this;
}
/**
* required string viewPointId = 4;
*/
public Builder setViewPointIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
viewPointId_ = value;
onChanged();
return this;
}
private long startDate_ ;
/**
* required int64 startDate = 5;
*/
public boolean hasStartDate() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* required int64 startDate = 5;
*/
public long getStartDate() {
return startDate_;
}
/**
* required int64 startDate = 5;
*/
public Builder setStartDate(long value) {
bitField0_ |= 0x00000010;
startDate_ = value;
onChanged();
return this;
}
/**
* required int64 startDate = 5;
*/
public Builder clearStartDate() {
bitField0_ = (bitField0_ & ~0x00000010);
startDate_ = 0L;
onChanged();
return this;
}
private java.lang.Object spanTypeDesc_ = "";
/**
* required string spanTypeDesc = 6;
*/
public boolean hasSpanTypeDesc() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* required string spanTypeDesc = 6;
*/
public java.lang.String getSpanTypeDesc() {
java.lang.Object ref = spanTypeDesc_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
spanTypeDesc_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string spanTypeDesc = 6;
*/
public com.google.protobuf.ByteString
getSpanTypeDescBytes() {
java.lang.Object ref = spanTypeDesc_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
spanTypeDesc_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string spanTypeDesc = 6;
*/
public Builder setSpanTypeDesc(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
spanTypeDesc_ = value;
onChanged();
return this;
}
/**
* required string spanTypeDesc = 6;
*/
public Builder clearSpanTypeDesc() {
bitField0_ = (bitField0_ & ~0x00000020);
spanTypeDesc_ = getDefaultInstance().getSpanTypeDesc();
onChanged();
return this;
}
/**
* required string spanTypeDesc = 6;
*/
public Builder setSpanTypeDescBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
spanTypeDesc_ = value;
onChanged();
return this;
}
private java.lang.Object callType_ = "";
/**
* required string callType = 7;
*/
public boolean hasCallType() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* required string callType = 7;
*/
public java.lang.String getCallType() {
java.lang.Object ref = callType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
callType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string callType = 7;
*/
public com.google.protobuf.ByteString
getCallTypeBytes() {
java.lang.Object ref = callType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
callType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string callType = 7;
*/
public Builder setCallType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
callType_ = value;
onChanged();
return this;
}
/**
* required string callType = 7;
*/
public Builder clearCallType() {
bitField0_ = (bitField0_ & ~0x00000040);
callType_ = getDefaultInstance().getCallType();
onChanged();
return this;
}
/**
* required string callType = 7;
*/
public Builder setCallTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
callType_ = value;
onChanged();
return this;
}
private int spanType_ ;
/**
* required uint32 spanType = 8;
*/
public boolean hasSpanType() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* required uint32 spanType = 8;
*/
public int getSpanType() {
return spanType_;
}
/**
* required uint32 spanType = 8;
*/
public Builder setSpanType(int value) {
bitField0_ |= 0x00000080;
spanType_ = value;
onChanged();
return this;
}
/**
* required uint32 spanType = 8;
*/
public Builder clearSpanType() {
bitField0_ = (bitField0_ & ~0x00000080);
spanType_ = 0;
onChanged();
return this;
}
private java.lang.Object applicationId_ = "";
/**
* required string applicationId = 9;
*/
public boolean hasApplicationId() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* required string applicationId = 9;
*/
public java.lang.String getApplicationId() {
java.lang.Object ref = applicationId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
applicationId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string applicationId = 9;
*/
public com.google.protobuf.ByteString
getApplicationIdBytes() {
java.lang.Object ref = applicationId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
applicationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string applicationId = 9;
*/
public Builder setApplicationId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
applicationId_ = value;
onChanged();
return this;
}
/**
* required string applicationId = 9;
*/
public Builder clearApplicationId() {
bitField0_ = (bitField0_ & ~0x00000100);
applicationId_ = getDefaultInstance().getApplicationId();
onChanged();
return this;
}
/**
* required string applicationId = 9;
*/
public Builder setApplicationIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
applicationId_ = value;
onChanged();
return this;
}
private java.lang.Object userId_ = "";
/**
* required string userId = 10;
*/
public boolean hasUserId() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* required string userId = 10;
*/
public java.lang.String getUserId() {
java.lang.Object ref = userId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
userId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string userId = 10;
*/
public com.google.protobuf.ByteString
getUserIdBytes() {
java.lang.Object ref = userId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string userId = 10;
*/
public Builder setUserId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
userId_ = value;
onChanged();
return this;
}
/**
* required string userId = 10;
*/
public Builder clearUserId() {
bitField0_ = (bitField0_ & ~0x00000200);
userId_ = getDefaultInstance().getUserId();
onChanged();
return this;
}
/**
* required string userId = 10;
*/
public Builder setUserIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
userId_ = value;
onChanged();
return this;
}
private java.lang.Object bussinessKey_ = "";
/**
* optional string bussinessKey = 11;
*/
public boolean hasBussinessKey() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional string bussinessKey = 11;
*/
public java.lang.String getBussinessKey() {
java.lang.Object ref = bussinessKey_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
bussinessKey_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string bussinessKey = 11;
*/
public com.google.protobuf.ByteString
getBussinessKeyBytes() {
java.lang.Object ref = bussinessKey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bussinessKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string bussinessKey = 11;
*/
public Builder setBussinessKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
bussinessKey_ = value;
onChanged();
return this;
}
/**
* optional string bussinessKey = 11;
*/
public Builder clearBussinessKey() {
bitField0_ = (bitField0_ & ~0x00000400);
bussinessKey_ = getDefaultInstance().getBussinessKey();
onChanged();
return this;
}
/**
* optional string bussinessKey = 11;
*/
public Builder setBussinessKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
bussinessKey_ = value;
onChanged();
return this;
}
private java.lang.Object agentId_ = "";
/**
* required string agentId = 12;
*/
public boolean hasAgentId() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* required string agentId = 12;
*/
public java.lang.String getAgentId() {
java.lang.Object ref = agentId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
agentId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string agentId = 12;
*/
public com.google.protobuf.ByteString
getAgentIdBytes() {
java.lang.Object ref = agentId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
agentId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string agentId = 12;
*/
public Builder setAgentId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
agentId_ = value;
onChanged();
return this;
}
/**
* required string agentId = 12;
*/
public Builder clearAgentId() {
bitField0_ = (bitField0_ & ~0x00000800);
agentId_ = getDefaultInstance().getAgentId();
onChanged();
return this;
}
/**
* required string agentId = 12;
*/
public Builder setAgentIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
agentId_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> parameters_;
private com.google.protobuf.MapField
internalGetParameters() {
if (parameters_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ParametersDefaultEntryHolder.defaultEntry);
}
return parameters_;
}
private com.google.protobuf.MapField
internalGetMutableParameters() {
onChanged();;
if (parameters_ == null) {
parameters_ = com.google.protobuf.MapField.newMapField(
ParametersDefaultEntryHolder.defaultEntry);
}
if (!parameters_.isMutable()) {
parameters_ = parameters_.copy();
}
return parameters_;
}
public int getParametersCount() {
return internalGetParameters().getMap().size();
}
/**
* map<string, string> parameters = 13;
*/
public boolean containsParameters(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetParameters().getMap().containsKey(key);
}
/**
* Use {@link #getParametersMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getParameters() {
return getParametersMap();
}
/**
* map<string, string> parameters = 13;
*/
public java.util.Map getParametersMap() {
return internalGetParameters().getMap();
}
/**
* map<string, string> parameters = 13;
*/
public java.lang.String getParametersOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetParameters().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> parameters = 13;
*/
public java.lang.String getParametersOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetParameters().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearParameters() {
getMutableParameters().clear();
return this;
}
/**
* map<string, string> parameters = 13;
*/
public Builder removeParameters(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
getMutableParameters().remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableParameters() {
return internalGetMutableParameters().getMutableMap();
}
/**
* map<string, string> parameters = 13;
*/
public Builder putParameters(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
getMutableParameters().put(key, value);
return this;
}
/**
* map<string, string> parameters = 13;
*/
public Builder putAllParameters(
java.util.Map values) {
getMutableParameters().putAll(values);
return this;
}
private java.lang.Object processNo_ = "";
/**
* required string processNo = 14;
*/
public boolean hasProcessNo() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* required string processNo = 14;
*/
public java.lang.String getProcessNo() {
java.lang.Object ref = processNo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
processNo_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string processNo = 14;
*/
public com.google.protobuf.ByteString
getProcessNoBytes() {
java.lang.Object ref = processNo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
processNo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string processNo = 14;
*/
public Builder setProcessNo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
processNo_ = value;
onChanged();
return this;
}
/**
* required string processNo = 14;
*/
public Builder clearProcessNo() {
bitField0_ = (bitField0_ & ~0x00002000);
processNo_ = getDefaultInstance().getProcessNo();
onChanged();
return this;
}
/**
* required string processNo = 14;
*/
public Builder setProcessNoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
processNo_ = value;
onChanged();
return this;
}
private java.lang.Object address_ = "";
/**
* required string address = 15;
*/
public boolean hasAddress() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
* required string address = 15;
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
address_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string address = 15;
*/
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string address = 15;
*/
public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00004000;
address_ = value;
onChanged();
return this;
}
/**
* required string address = 15;
*/
public Builder clearAddress() {
bitField0_ = (bitField0_ & ~0x00004000);
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
* required string address = 15;
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00004000;
address_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:RequestSpan)
}
// @@protoc_insertion_point(class_scope:RequestSpan)
private static final com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan();
}
public static com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public RequestSpan parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RequestSpan(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.ai.cloud.skywalking.protocol.proto.TraceProtocol.RequestSpan getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_AckSpan_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_AckSpan_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_RequestSpan_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_RequestSpan_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_RequestSpan_ParametersEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_RequestSpan_ParametersEntry_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\023TraceProtocol.proto\"\217\001\n\007AckSpan\022\017\n\007tra" +
"ceId\030\001 \002(\t\022\023\n\013parentLevel\030\002 \001(\t\022\017\n\007level" +
"Id\030\003 \002(\005\022\014\n\004cost\030\004 \002(\003\022\022\n\nstatusCode\030\005 \002" +
"(\005\022\026\n\016exceptionStack\030\006 \001(\t\022\023\n\013viewpointI" +
"d\030\007 \002(\t\"\375\002\n\013RequestSpan\022\017\n\007traceId\030\001 \002(\t" +
"\022\023\n\013parentLevel\030\002 \001(\t\022\017\n\007levelId\030\003 \002(\005\022\023" +
"\n\013viewPointId\030\004 \002(\t\022\021\n\tstartDate\030\005 \002(\003\022\024" +
"\n\014spanTypeDesc\030\006 \002(\t\022\020\n\010callType\030\007 \002(\t\022\020" +
"\n\010spanType\030\010 \002(\r\022\025\n\rapplicationId\030\t \002(\t\022" +
"\016\n\006userId\030\n \002(\t\022\024\n\014bussinessKey\030\013 \001(\t\022\017\n",
"\007agentId\030\014 \002(\t\0220\n\nparameters\030\r \003(\0132\034.Req" +
"uestSpan.ParametersEntry\022\021\n\tprocessNo\030\016 " +
"\002(\t\022\017\n\007address\030\017 \002(\t\0321\n\017ParametersEntry\022" +
"\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B(\n&com.a" +
"i.cloud.skywalking.protocol.proto"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_AckSpan_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_AckSpan_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_AckSpan_descriptor,
new java.lang.String[] { "TraceId", "ParentLevel", "LevelId", "Cost", "StatusCode", "ExceptionStack", "ViewpointId", });
internal_static_RequestSpan_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_RequestSpan_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_RequestSpan_descriptor,
new java.lang.String[] { "TraceId", "ParentLevel", "LevelId", "ViewPointId", "StartDate", "SpanTypeDesc", "CallType", "SpanType", "ApplicationId", "UserId", "BussinessKey", "AgentId", "Parameters", "ProcessNo", "Address", });
internal_static_RequestSpan_ParametersEntry_descriptor =
internal_static_RequestSpan_descriptor.getNestedTypes().get(0);
internal_static_RequestSpan_ParametersEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_RequestSpan_ParametersEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
}
// @@protoc_insertion_point(outer_class_scope)
}