Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
阿信在这里
SkyWalking
提交
7bffd0bf
S
SkyWalking
项目概览
阿信在这里
/
SkyWalking
与 Fork 源项目一致
Fork自
山不在高_有仙则灵 / SkyWalking
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7bffd0bf
编写于
2月 25, 2017
作者:
wu-sheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add generated source codes to src/main/java, try to avoid coveralls bug.
上级
20eeac95
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
5614 addition
and
25 deletion
+5614
-25
skywalking-commons/skywalking-trace/pom.xml
skywalking-commons/skywalking-trace/pom.xml
+24
-14
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/LogData.java
...ace/src/main/java/com/a/eye/skywalking/trace/LogData.java
+3
-3
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/Span.java
...-trace/src/main/java/com/a/eye/skywalking/trace/Span.java
+3
-3
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/TraceSegment.java
...rc/main/java/com/a/eye/skywalking/trace/TraceSegment.java
+3
-3
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/TraceSegmentRef.java
...main/java/com/a/eye/skywalking/trace/TraceSegmentRef.java
+1
-1
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/proto/KeyValue.java
.../main/java/com/a/eye/skywalking/trace/proto/KeyValue.java
+621
-0
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/proto/KeyValueOrBuilder.java
...a/com/a/eye/skywalking/trace/proto/KeyValueOrBuilder.java
+29
-0
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/proto/LogDataMessage.java
...java/com/a/eye/skywalking/trace/proto/LogDataMessage.java
+774
-0
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/proto/LogDataMessageOrBuilder.java
...a/eye/skywalking/trace/proto/LogDataMessageOrBuilder.java
+38
-0
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/proto/SegmentMessage.java
...java/com/a/eye/skywalking/trace/proto/SegmentMessage.java
+1611
-0
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/proto/SegmentMessageOrBuilder.java
...a/eye/skywalking/trace/proto/SegmentMessageOrBuilder.java
+100
-0
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/proto/SegmentRefMessage.java
...a/com/a/eye/skywalking/trace/proto/SegmentRefMessage.java
+806
-0
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/proto/SegmentRefMessageOrBuilder.java
...ye/skywalking/trace/proto/SegmentRefMessageOrBuilder.java
+44
-0
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/proto/SpanMessage.java
...in/java/com/a/eye/skywalking/trace/proto/SpanMessage.java
+1361
-0
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/proto/SpanMessageOrBuilder.java
...om/a/eye/skywalking/trace/proto/SpanMessageOrBuilder.java
+82
-0
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/proto/Trace.java
...src/main/java/com/a/eye/skywalking/trace/proto/Trace.java
+113
-0
skywalking-commons/skywalking-trace/src/main/proto/trace.proto
...lking-commons/skywalking-trace/src/main/proto/trace.proto
+1
-1
未找到文件。
skywalking-commons/skywalking-trace/pom.xml
浏览文件 @
7bffd0bf
...
...
@@ -59,28 +59,38 @@
</executions>
</plugin>
<!-- This plugin can run, only when you have installed `protoc`.
<plugin>
<groupId>
org.xolstice.maven.plugins
</groupId>
<artifactId>
protobuf-maven-plugin
</artifactId>
<version>
0.5.0
</version>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:3.1.0:exe:${os.detected.classifier}
</protocArtifact>
<pluginId>
grpc-java
</pluginId>
<pluginArtifact>
io.grpc:protoc-gen-grpc-java:1.1.2:exe:${os.detected.classifier}
</pluginArtifact>
</configuration>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>compile-protoc</id>
<phase>generate-sources</phase>
<configuration>
<tasks>
<path id="proto.path">
<fileset dir="src/main/proto">
<include name="*.proto"/>
</fileset>
</path>
<pathconvert pathsep=" " property="proto.files"
refid="proto.path"/>
<exec executable="protoc">
<arg value="--java_out=src/main/java"/>
<arg value="-I${project.basedir}/src/main/proto"/>
<arg line="${proto.files}"/>
</exec>
</tasks>
<sourceRoot>src/main/gen-java</sourceRoot>
</configuration>
<goals>
<goal>
compile
</goal>
<goal>
compile-custom
</goal>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
-->
</plugins>
</build>
</project>
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/LogData.java
浏览文件 @
7bffd0bf
...
...
@@ -2,8 +2,8 @@ package com.a.eye.skywalking.trace;
import
com.a.eye.skywalking.api.util.StringUtil
;
import
com.a.eye.skywalking.messages.ISerializable
;
import
com.a.eye.skywalking.trace.
messages.
proto.KeyValue
;
import
com.a.eye.skywalking.trace.
messages.
proto.LogDataMessage
;
import
com.a.eye.skywalking.trace.proto.KeyValue
;
import
com.a.eye.skywalking.trace.proto.LogDataMessage
;
import
java.util.Collections
;
import
java.util.HashMap
;
import
java.util.List
;
...
...
@@ -14,7 +14,7 @@ import java.util.Map;
*
* Created by wusheng on 2017/2/17.
*/
public
class
LogData
implements
ISerializable
<
LogDataMessage
>{
public
class
LogData
implements
ISerializable
<
LogDataMessage
>
{
private
long
time
;
private
Map
<
String
,
?>
fields
;
...
...
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/Span.java
浏览文件 @
7bffd0bf
...
...
@@ -2,9 +2,9 @@ package com.a.eye.skywalking.trace;
import
com.a.eye.skywalking.api.util.StringUtil
;
import
com.a.eye.skywalking.messages.ISerializable
;
import
com.a.eye.skywalking.trace.
messages.
proto.KeyValue
;
import
com.a.eye.skywalking.trace.
messages.
proto.LogDataMessage
;
import
com.a.eye.skywalking.trace.
messages.
proto.SpanMessage
;
import
com.a.eye.skywalking.trace.proto.KeyValue
;
import
com.a.eye.skywalking.trace.proto.LogDataMessage
;
import
com.a.eye.skywalking.trace.proto.SpanMessage
;
import
java.io.ByteArrayOutputStream
;
import
java.io.IOException
;
import
java.util.ArrayList
;
...
...
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/TraceSegment.java
浏览文件 @
7bffd0bf
package
com.a.eye.skywalking.trace
;
import
com.a.eye.skywalking.messages.ISerializable
;
import
com.a.eye.skywalking.trace.
messages.
proto.SegmentMessage
;
import
com.a.eye.skywalking.trace.
messages.
proto.SegmentRefMessage
;
import
com.a.eye.skywalking.trace.
messages.
proto.SpanMessage
;
import
com.a.eye.skywalking.trace.proto.SegmentMessage
;
import
com.a.eye.skywalking.trace.proto.SegmentRefMessage
;
import
com.a.eye.skywalking.trace.proto.SpanMessage
;
import
java.util.Collections
;
import
java.util.LinkedList
;
import
java.util.List
;
...
...
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/TraceSegmentRef.java
浏览文件 @
7bffd0bf
package
com.a.eye.skywalking.trace
;
import
com.a.eye.skywalking.messages.ISerializable
;
import
com.a.eye.skywalking.trace.
messages.
proto.SegmentRefMessage
;
import
com.a.eye.skywalking.trace.proto.SegmentRefMessage
;
import
com.a.eye.skywalking.trace.tag.Tags
;
/**
...
...
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/proto/KeyValue.java
0 → 100644
浏览文件 @
7bffd0bf
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: trace.proto
package
com.a.eye.skywalking.trace.proto
;
/**
* Protobuf type {@code KeyValue}
*/
public
final
class
KeyValue
extends
com
.
google
.
protobuf
.
GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:KeyValue)
KeyValueOrBuilder
{
// Use KeyValue.newBuilder() to construct.
private
KeyValue
(
com
.
google
.
protobuf
.
GeneratedMessageV3
.
Builder
<?>
builder
)
{
super
(
builder
);
}
private
KeyValue
()
{
key_
=
""
;
value_
=
""
;
}
@java
.
lang
.
Override
public
final
com
.
google
.
protobuf
.
UnknownFieldSet
getUnknownFields
()
{
return
com
.
google
.
protobuf
.
UnknownFieldSet
.
getDefaultInstance
();
}
private
KeyValue
(
com
.
google
.
protobuf
.
CodedInputStream
input
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
this
();
int
mutable_bitField0_
=
0
;
try
{
boolean
done
=
false
;
while
(!
done
)
{
int
tag
=
input
.
readTag
();
switch
(
tag
)
{
case
0
:
done
=
true
;
break
;
default
:
{
if
(!
input
.
skipField
(
tag
))
{
done
=
true
;
}
break
;
}
case
10
:
{
java
.
lang
.
String
s
=
input
.
readStringRequireUtf8
();
key_
=
s
;
break
;
}
case
18
:
{
java
.
lang
.
String
s
=
input
.
readStringRequireUtf8
();
value_
=
s
;
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
{
makeExtensionsImmutable
();
}
}
public
static
final
com
.
google
.
protobuf
.
Descriptors
.
Descriptor
getDescriptor
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_KeyValue_descriptor
;
}
protected
com
.
google
.
protobuf
.
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_KeyValue_fieldAccessorTable
.
ensureFieldAccessorsInitialized
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
class
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
Builder
.
class
);
}
public
static
final
int
KEY_FIELD_NUMBER
=
1
;
private
volatile
java
.
lang
.
Object
key_
;
/**
* <code>optional string key = 1;</code>
*/
public
java
.
lang
.
String
getKey
()
{
java
.
lang
.
Object
ref
=
key_
;
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
();
key_
=
s
;
return
s
;
}
}
/**
* <code>optional string key = 1;</code>
*/
public
com
.
google
.
protobuf
.
ByteString
getKeyBytes
()
{
java
.
lang
.
Object
ref
=
key_
;
if
(
ref
instanceof
java
.
lang
.
String
)
{
com
.
google
.
protobuf
.
ByteString
b
=
com
.
google
.
protobuf
.
ByteString
.
copyFromUtf8
(
(
java
.
lang
.
String
)
ref
);
key_
=
b
;
return
b
;
}
else
{
return
(
com
.
google
.
protobuf
.
ByteString
)
ref
;
}
}
public
static
final
int
VALUE_FIELD_NUMBER
=
2
;
private
volatile
java
.
lang
.
Object
value_
;
/**
* <code>optional string value = 2;</code>
*/
public
java
.
lang
.
String
getValue
()
{
java
.
lang
.
Object
ref
=
value_
;
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
();
value_
=
s
;
return
s
;
}
}
/**
* <code>optional string value = 2;</code>
*/
public
com
.
google
.
protobuf
.
ByteString
getValueBytes
()
{
java
.
lang
.
Object
ref
=
value_
;
if
(
ref
instanceof
java
.
lang
.
String
)
{
com
.
google
.
protobuf
.
ByteString
b
=
com
.
google
.
protobuf
.
ByteString
.
copyFromUtf8
(
(
java
.
lang
.
String
)
ref
);
value_
=
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
;
memoizedIsInitialized
=
1
;
return
true
;
}
public
void
writeTo
(
com
.
google
.
protobuf
.
CodedOutputStream
output
)
throws
java
.
io
.
IOException
{
if
(!
getKeyBytes
().
isEmpty
())
{
com
.
google
.
protobuf
.
GeneratedMessageV3
.
writeString
(
output
,
1
,
key_
);
}
if
(!
getValueBytes
().
isEmpty
())
{
com
.
google
.
protobuf
.
GeneratedMessageV3
.
writeString
(
output
,
2
,
value_
);
}
}
public
int
getSerializedSize
()
{
int
size
=
memoizedSize
;
if
(
size
!=
-
1
)
return
size
;
size
=
0
;
if
(!
getKeyBytes
().
isEmpty
())
{
size
+=
com
.
google
.
protobuf
.
GeneratedMessageV3
.
computeStringSize
(
1
,
key_
);
}
if
(!
getValueBytes
().
isEmpty
())
{
size
+=
com
.
google
.
protobuf
.
GeneratedMessageV3
.
computeStringSize
(
2
,
value_
);
}
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
))
{
return
super
.
equals
(
obj
);
}
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
other
=
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
)
obj
;
boolean
result
=
true
;
result
=
result
&&
getKey
()
.
equals
(
other
.
getKey
());
result
=
result
&&
getValue
()
.
equals
(
other
.
getValue
());
return
result
;
}
@java
.
lang
.
Override
public
int
hashCode
()
{
if
(
memoizedHashCode
!=
0
)
{
return
memoizedHashCode
;
}
int
hash
=
41
;
hash
=
(
19
*
hash
)
+
getDescriptorForType
().
hashCode
();
hash
=
(
37
*
hash
)
+
KEY_FIELD_NUMBER
;
hash
=
(
53
*
hash
)
+
getKey
().
hashCode
();
hash
=
(
37
*
hash
)
+
VALUE_FIELD_NUMBER
;
hash
=
(
53
*
hash
)
+
getValue
().
hashCode
();
hash
=
(
29
*
hash
)
+
unknownFields
.
hashCode
();
memoizedHashCode
=
hash
;
return
hash
;
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
parseFrom
(
com
.
google
.
protobuf
.
ByteString
data
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
PARSER
.
parseFrom
(
data
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
parseFrom
(
com
.
google
.
protobuf
.
ByteString
data
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
PARSER
.
parseFrom
(
data
,
extensionRegistry
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
parseFrom
(
byte
[]
data
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
PARSER
.
parseFrom
(
data
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
parseFrom
(
byte
[]
data
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
PARSER
.
parseFrom
(
data
,
extensionRegistry
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
parseFrom
(
java
.
io
.
InputStream
input
)
throws
java
.
io
.
IOException
{
return
com
.
google
.
protobuf
.
GeneratedMessageV3
.
parseWithIOException
(
PARSER
,
input
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
parseDelimitedFrom
(
java
.
io
.
InputStream
input
)
throws
java
.
io
.
IOException
{
return
com
.
google
.
protobuf
.
GeneratedMessageV3
.
parseDelimitedWithIOException
(
PARSER
,
input
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
parseFrom
(
com
.
google
.
protobuf
.
CodedInputStream
input
)
throws
java
.
io
.
IOException
{
return
com
.
google
.
protobuf
.
GeneratedMessageV3
.
parseWithIOException
(
PARSER
,
input
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
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 KeyValue}
*/
public
static
final
class
Builder
extends
com
.
google
.
protobuf
.
GeneratedMessageV3
.
Builder
<
Builder
>
implements
// @@protoc_insertion_point(builder_implements:KeyValue)
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValueOrBuilder
{
public
static
final
com
.
google
.
protobuf
.
Descriptors
.
Descriptor
getDescriptor
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_KeyValue_descriptor
;
}
protected
com
.
google
.
protobuf
.
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_KeyValue_fieldAccessorTable
.
ensureFieldAccessorsInitialized
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
class
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
Builder
.
class
);
}
// Construct using com.a.eye.skywalking.trace.proto.KeyValue.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
();
key_
=
""
;
value_
=
""
;
return
this
;
}
public
com
.
google
.
protobuf
.
Descriptors
.
Descriptor
getDescriptorForType
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_KeyValue_descriptor
;
}
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
getDefaultInstanceForType
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
getDefaultInstance
();
}
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
build
()
{
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
result
=
buildPartial
();
if
(!
result
.
isInitialized
())
{
throw
newUninitializedMessageException
(
result
);
}
return
result
;
}
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
buildPartial
()
{
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
result
=
new
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
(
this
);
result
.
key_
=
key_
;
result
.
value_
=
value_
;
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
)
{
return
mergeFrom
((
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
)
other
);
}
else
{
super
.
mergeFrom
(
other
);
return
this
;
}
}
public
Builder
mergeFrom
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
other
)
{
if
(
other
==
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
getDefaultInstance
())
return
this
;
if
(!
other
.
getKey
().
isEmpty
())
{
key_
=
other
.
key_
;
onChanged
();
}
if
(!
other
.
getValue
().
isEmpty
())
{
value_
=
other
.
value_
;
onChanged
();
}
onChanged
();
return
this
;
}
public
final
boolean
isInitialized
()
{
return
true
;
}
public
Builder
mergeFrom
(
com
.
google
.
protobuf
.
CodedInputStream
input
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
java
.
io
.
IOException
{
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
parsedMessage
=
null
;
try
{
parsedMessage
=
PARSER
.
parsePartialFrom
(
input
,
extensionRegistry
);
}
catch
(
com
.
google
.
protobuf
.
InvalidProtocolBufferException
e
)
{
parsedMessage
=
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
)
e
.
getUnfinishedMessage
();
throw
e
.
unwrapIOException
();
}
finally
{
if
(
parsedMessage
!=
null
)
{
mergeFrom
(
parsedMessage
);
}
}
return
this
;
}
private
java
.
lang
.
Object
key_
=
""
;
/**
* <code>optional string key = 1;</code>
*/
public
java
.
lang
.
String
getKey
()
{
java
.
lang
.
Object
ref
=
key_
;
if
(!(
ref
instanceof
java
.
lang
.
String
))
{
com
.
google
.
protobuf
.
ByteString
bs
=
(
com
.
google
.
protobuf
.
ByteString
)
ref
;
java
.
lang
.
String
s
=
bs
.
toStringUtf8
();
key_
=
s
;
return
s
;
}
else
{
return
(
java
.
lang
.
String
)
ref
;
}
}
/**
* <code>optional string key = 1;</code>
*/
public
com
.
google
.
protobuf
.
ByteString
getKeyBytes
()
{
java
.
lang
.
Object
ref
=
key_
;
if
(
ref
instanceof
String
)
{
com
.
google
.
protobuf
.
ByteString
b
=
com
.
google
.
protobuf
.
ByteString
.
copyFromUtf8
(
(
java
.
lang
.
String
)
ref
);
key_
=
b
;
return
b
;
}
else
{
return
(
com
.
google
.
protobuf
.
ByteString
)
ref
;
}
}
/**
* <code>optional string key = 1;</code>
*/
public
Builder
setKey
(
java
.
lang
.
String
value
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
key_
=
value
;
onChanged
();
return
this
;
}
/**
* <code>optional string key = 1;</code>
*/
public
Builder
clearKey
()
{
key_
=
getDefaultInstance
().
getKey
();
onChanged
();
return
this
;
}
/**
* <code>optional string key = 1;</code>
*/
public
Builder
setKeyBytes
(
com
.
google
.
protobuf
.
ByteString
value
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
checkByteStringIsUtf8
(
value
);
key_
=
value
;
onChanged
();
return
this
;
}
private
java
.
lang
.
Object
value_
=
""
;
/**
* <code>optional string value = 2;</code>
*/
public
java
.
lang
.
String
getValue
()
{
java
.
lang
.
Object
ref
=
value_
;
if
(!(
ref
instanceof
java
.
lang
.
String
))
{
com
.
google
.
protobuf
.
ByteString
bs
=
(
com
.
google
.
protobuf
.
ByteString
)
ref
;
java
.
lang
.
String
s
=
bs
.
toStringUtf8
();
value_
=
s
;
return
s
;
}
else
{
return
(
java
.
lang
.
String
)
ref
;
}
}
/**
* <code>optional string value = 2;</code>
*/
public
com
.
google
.
protobuf
.
ByteString
getValueBytes
()
{
java
.
lang
.
Object
ref
=
value_
;
if
(
ref
instanceof
String
)
{
com
.
google
.
protobuf
.
ByteString
b
=
com
.
google
.
protobuf
.
ByteString
.
copyFromUtf8
(
(
java
.
lang
.
String
)
ref
);
value_
=
b
;
return
b
;
}
else
{
return
(
com
.
google
.
protobuf
.
ByteString
)
ref
;
}
}
/**
* <code>optional string value = 2;</code>
*/
public
Builder
setValue
(
java
.
lang
.
String
value
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
value_
=
value
;
onChanged
();
return
this
;
}
/**
* <code>optional string value = 2;</code>
*/
public
Builder
clearValue
()
{
value_
=
getDefaultInstance
().
getValue
();
onChanged
();
return
this
;
}
/**
* <code>optional string value = 2;</code>
*/
public
Builder
setValueBytes
(
com
.
google
.
protobuf
.
ByteString
value
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
checkByteStringIsUtf8
(
value
);
value_
=
value
;
onChanged
();
return
this
;
}
public
final
Builder
setUnknownFields
(
final
com
.
google
.
protobuf
.
UnknownFieldSet
unknownFields
)
{
return
this
;
}
public
final
Builder
mergeUnknownFields
(
final
com
.
google
.
protobuf
.
UnknownFieldSet
unknownFields
)
{
return
this
;
}
// @@protoc_insertion_point(builder_scope:KeyValue)
}
// @@protoc_insertion_point(class_scope:KeyValue)
private
static
final
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
DEFAULT_INSTANCE
;
static
{
DEFAULT_INSTANCE
=
new
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
();
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
getDefaultInstance
()
{
return
DEFAULT_INSTANCE
;
}
private
static
final
com
.
google
.
protobuf
.
Parser
<
KeyValue
>
PARSER
=
new
com
.
google
.
protobuf
.
AbstractParser
<
KeyValue
>()
{
public
KeyValue
parsePartialFrom
(
com
.
google
.
protobuf
.
CodedInputStream
input
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
new
KeyValue
(
input
,
extensionRegistry
);
}
};
public
static
com
.
google
.
protobuf
.
Parser
<
KeyValue
>
parser
()
{
return
PARSER
;
}
@java
.
lang
.
Override
public
com
.
google
.
protobuf
.
Parser
<
KeyValue
>
getParserForType
()
{
return
PARSER
;
}
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
getDefaultInstanceForType
()
{
return
DEFAULT_INSTANCE
;
}
}
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/proto/KeyValueOrBuilder.java
0 → 100644
浏览文件 @
7bffd0bf
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: trace.proto
package
com.a.eye.skywalking.trace.proto
;
public
interface
KeyValueOrBuilder
extends
// @@protoc_insertion_point(interface_extends:KeyValue)
com
.
google
.
protobuf
.
MessageOrBuilder
{
/**
* <code>optional string key = 1;</code>
*/
java
.
lang
.
String
getKey
();
/**
* <code>optional string key = 1;</code>
*/
com
.
google
.
protobuf
.
ByteString
getKeyBytes
();
/**
* <code>optional string value = 2;</code>
*/
java
.
lang
.
String
getValue
();
/**
* <code>optional string value = 2;</code>
*/
com
.
google
.
protobuf
.
ByteString
getValueBytes
();
}
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/proto/LogDataMessage.java
0 → 100644
浏览文件 @
7bffd0bf
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: trace.proto
package
com.a.eye.skywalking.trace.proto
;
/**
* Protobuf type {@code LogDataMessage}
*/
public
final
class
LogDataMessage
extends
com
.
google
.
protobuf
.
GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:LogDataMessage)
LogDataMessageOrBuilder
{
// Use LogDataMessage.newBuilder() to construct.
private
LogDataMessage
(
com
.
google
.
protobuf
.
GeneratedMessageV3
.
Builder
<?>
builder
)
{
super
(
builder
);
}
private
LogDataMessage
()
{
time_
=
0L
;
fields_
=
java
.
util
.
Collections
.
emptyList
();
}
@java
.
lang
.
Override
public
final
com
.
google
.
protobuf
.
UnknownFieldSet
getUnknownFields
()
{
return
com
.
google
.
protobuf
.
UnknownFieldSet
.
getDefaultInstance
();
}
private
LogDataMessage
(
com
.
google
.
protobuf
.
CodedInputStream
input
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
this
();
int
mutable_bitField0_
=
0
;
try
{
boolean
done
=
false
;
while
(!
done
)
{
int
tag
=
input
.
readTag
();
switch
(
tag
)
{
case
0
:
done
=
true
;
break
;
default
:
{
if
(!
input
.
skipField
(
tag
))
{
done
=
true
;
}
break
;
}
case
8
:
{
time_
=
input
.
readInt64
();
break
;
}
case
42
:
{
if
(!((
mutable_bitField0_
&
0x00000002
)
==
0x00000002
))
{
fields_
=
new
java
.
util
.
ArrayList
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
>();
mutable_bitField0_
|=
0x00000002
;
}
fields_
.
add
(
input
.
readMessage
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
parser
(),
extensionRegistry
));
break
;
}
}
}
}
catch
(
com
.
google
.
protobuf
.
InvalidProtocolBufferException
e
)
{
throw
e
.
setUnfinishedMessage
(
this
);
}
catch
(
java
.
io
.
IOException
e
)
{
throw
new
com
.
google
.
protobuf
.
InvalidProtocolBufferException
(
e
).
setUnfinishedMessage
(
this
);
}
finally
{
if
(((
mutable_bitField0_
&
0x00000002
)
==
0x00000002
))
{
fields_
=
java
.
util
.
Collections
.
unmodifiableList
(
fields_
);
}
makeExtensionsImmutable
();
}
}
public
static
final
com
.
google
.
protobuf
.
Descriptors
.
Descriptor
getDescriptor
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_LogDataMessage_descriptor
;
}
protected
com
.
google
.
protobuf
.
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_LogDataMessage_fieldAccessorTable
.
ensureFieldAccessorsInitialized
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
.
class
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
.
Builder
.
class
);
}
private
int
bitField0_
;
public
static
final
int
TIME_FIELD_NUMBER
=
1
;
private
long
time_
;
/**
* <code>optional int64 time = 1;</code>
*/
public
long
getTime
()
{
return
time_
;
}
public
static
final
int
FIELDS_FIELD_NUMBER
=
5
;
private
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
>
fields_
;
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
>
getFieldsList
()
{
return
fields_
;
}
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
java
.
util
.
List
<?
extends
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValueOrBuilder
>
getFieldsOrBuilderList
()
{
return
fields_
;
}
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
int
getFieldsCount
()
{
return
fields_
.
size
();
}
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
getFields
(
int
index
)
{
return
fields_
.
get
(
index
);
}
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValueOrBuilder
getFieldsOrBuilder
(
int
index
)
{
return
fields_
.
get
(
index
);
}
private
byte
memoizedIsInitialized
=
-
1
;
public
final
boolean
isInitialized
()
{
byte
isInitialized
=
memoizedIsInitialized
;
if
(
isInitialized
==
1
)
return
true
;
if
(
isInitialized
==
0
)
return
false
;
memoizedIsInitialized
=
1
;
return
true
;
}
public
void
writeTo
(
com
.
google
.
protobuf
.
CodedOutputStream
output
)
throws
java
.
io
.
IOException
{
if
(
time_
!=
0L
)
{
output
.
writeInt64
(
1
,
time_
);
}
for
(
int
i
=
0
;
i
<
fields_
.
size
();
i
++)
{
output
.
writeMessage
(
5
,
fields_
.
get
(
i
));
}
}
public
int
getSerializedSize
()
{
int
size
=
memoizedSize
;
if
(
size
!=
-
1
)
return
size
;
size
=
0
;
if
(
time_
!=
0L
)
{
size
+=
com
.
google
.
protobuf
.
CodedOutputStream
.
computeInt64Size
(
1
,
time_
);
}
for
(
int
i
=
0
;
i
<
fields_
.
size
();
i
++)
{
size
+=
com
.
google
.
protobuf
.
CodedOutputStream
.
computeMessageSize
(
5
,
fields_
.
get
(
i
));
}
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
))
{
return
super
.
equals
(
obj
);
}
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
other
=
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
)
obj
;
boolean
result
=
true
;
result
=
result
&&
(
getTime
()
==
other
.
getTime
());
result
=
result
&&
getFieldsList
()
.
equals
(
other
.
getFieldsList
());
return
result
;
}
@java
.
lang
.
Override
public
int
hashCode
()
{
if
(
memoizedHashCode
!=
0
)
{
return
memoizedHashCode
;
}
int
hash
=
41
;
hash
=
(
19
*
hash
)
+
getDescriptorForType
().
hashCode
();
hash
=
(
37
*
hash
)
+
TIME_FIELD_NUMBER
;
hash
=
(
53
*
hash
)
+
com
.
google
.
protobuf
.
Internal
.
hashLong
(
getTime
());
if
(
getFieldsCount
()
>
0
)
{
hash
=
(
37
*
hash
)
+
FIELDS_FIELD_NUMBER
;
hash
=
(
53
*
hash
)
+
getFieldsList
().
hashCode
();
}
hash
=
(
29
*
hash
)
+
unknownFields
.
hashCode
();
memoizedHashCode
=
hash
;
return
hash
;
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
parseFrom
(
com
.
google
.
protobuf
.
ByteString
data
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
PARSER
.
parseFrom
(
data
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
parseFrom
(
com
.
google
.
protobuf
.
ByteString
data
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
PARSER
.
parseFrom
(
data
,
extensionRegistry
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
parseFrom
(
byte
[]
data
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
PARSER
.
parseFrom
(
data
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
parseFrom
(
byte
[]
data
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
PARSER
.
parseFrom
(
data
,
extensionRegistry
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
parseFrom
(
java
.
io
.
InputStream
input
)
throws
java
.
io
.
IOException
{
return
com
.
google
.
protobuf
.
GeneratedMessageV3
.
parseWithIOException
(
PARSER
,
input
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
parseDelimitedFrom
(
java
.
io
.
InputStream
input
)
throws
java
.
io
.
IOException
{
return
com
.
google
.
protobuf
.
GeneratedMessageV3
.
parseDelimitedWithIOException
(
PARSER
,
input
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
parseFrom
(
com
.
google
.
protobuf
.
CodedInputStream
input
)
throws
java
.
io
.
IOException
{
return
com
.
google
.
protobuf
.
GeneratedMessageV3
.
parseWithIOException
(
PARSER
,
input
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
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 LogDataMessage}
*/
public
static
final
class
Builder
extends
com
.
google
.
protobuf
.
GeneratedMessageV3
.
Builder
<
Builder
>
implements
// @@protoc_insertion_point(builder_implements:LogDataMessage)
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessageOrBuilder
{
public
static
final
com
.
google
.
protobuf
.
Descriptors
.
Descriptor
getDescriptor
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_LogDataMessage_descriptor
;
}
protected
com
.
google
.
protobuf
.
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_LogDataMessage_fieldAccessorTable
.
ensureFieldAccessorsInitialized
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
.
class
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
.
Builder
.
class
);
}
// Construct using com.a.eye.skywalking.trace.proto.LogDataMessage.newBuilder()
private
Builder
()
{
maybeForceBuilderInitialization
();
}
private
Builder
(
com
.
google
.
protobuf
.
GeneratedMessageV3
.
BuilderParent
parent
)
{
super
(
parent
);
maybeForceBuilderInitialization
();
}
private
void
maybeForceBuilderInitialization
()
{
if
(
com
.
google
.
protobuf
.
GeneratedMessageV3
.
alwaysUseFieldBuilders
)
{
getFieldsFieldBuilder
();
}
}
public
Builder
clear
()
{
super
.
clear
();
time_
=
0L
;
if
(
fieldsBuilder_
==
null
)
{
fields_
=
java
.
util
.
Collections
.
emptyList
();
bitField0_
=
(
bitField0_
&
~
0x00000002
);
}
else
{
fieldsBuilder_
.
clear
();
}
return
this
;
}
public
com
.
google
.
protobuf
.
Descriptors
.
Descriptor
getDescriptorForType
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_LogDataMessage_descriptor
;
}
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
getDefaultInstanceForType
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
.
getDefaultInstance
();
}
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
build
()
{
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
result
=
buildPartial
();
if
(!
result
.
isInitialized
())
{
throw
newUninitializedMessageException
(
result
);
}
return
result
;
}
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
buildPartial
()
{
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
result
=
new
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
(
this
);
int
from_bitField0_
=
bitField0_
;
int
to_bitField0_
=
0
;
result
.
time_
=
time_
;
if
(
fieldsBuilder_
==
null
)
{
if
(((
bitField0_
&
0x00000002
)
==
0x00000002
))
{
fields_
=
java
.
util
.
Collections
.
unmodifiableList
(
fields_
);
bitField0_
=
(
bitField0_
&
~
0x00000002
);
}
result
.
fields_
=
fields_
;
}
else
{
result
.
fields_
=
fieldsBuilder_
.
build
();
}
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
)
{
return
mergeFrom
((
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
)
other
);
}
else
{
super
.
mergeFrom
(
other
);
return
this
;
}
}
public
Builder
mergeFrom
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
other
)
{
if
(
other
==
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
.
getDefaultInstance
())
return
this
;
if
(
other
.
getTime
()
!=
0L
)
{
setTime
(
other
.
getTime
());
}
if
(
fieldsBuilder_
==
null
)
{
if
(!
other
.
fields_
.
isEmpty
())
{
if
(
fields_
.
isEmpty
())
{
fields_
=
other
.
fields_
;
bitField0_
=
(
bitField0_
&
~
0x00000002
);
}
else
{
ensureFieldsIsMutable
();
fields_
.
addAll
(
other
.
fields_
);
}
onChanged
();
}
}
else
{
if
(!
other
.
fields_
.
isEmpty
())
{
if
(
fieldsBuilder_
.
isEmpty
())
{
fieldsBuilder_
.
dispose
();
fieldsBuilder_
=
null
;
fields_
=
other
.
fields_
;
bitField0_
=
(
bitField0_
&
~
0x00000002
);
fieldsBuilder_
=
com
.
google
.
protobuf
.
GeneratedMessageV3
.
alwaysUseFieldBuilders
?
getFieldsFieldBuilder
()
:
null
;
}
else
{
fieldsBuilder_
.
addAllMessages
(
other
.
fields_
);
}
}
}
onChanged
();
return
this
;
}
public
final
boolean
isInitialized
()
{
return
true
;
}
public
Builder
mergeFrom
(
com
.
google
.
protobuf
.
CodedInputStream
input
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
java
.
io
.
IOException
{
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
parsedMessage
=
null
;
try
{
parsedMessage
=
PARSER
.
parsePartialFrom
(
input
,
extensionRegistry
);
}
catch
(
com
.
google
.
protobuf
.
InvalidProtocolBufferException
e
)
{
parsedMessage
=
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
)
e
.
getUnfinishedMessage
();
throw
e
.
unwrapIOException
();
}
finally
{
if
(
parsedMessage
!=
null
)
{
mergeFrom
(
parsedMessage
);
}
}
return
this
;
}
private
int
bitField0_
;
private
long
time_
;
/**
* <code>optional int64 time = 1;</code>
*/
public
long
getTime
()
{
return
time_
;
}
/**
* <code>optional int64 time = 1;</code>
*/
public
Builder
setTime
(
long
value
)
{
time_
=
value
;
onChanged
();
return
this
;
}
/**
* <code>optional int64 time = 1;</code>
*/
public
Builder
clearTime
()
{
time_
=
0L
;
onChanged
();
return
this
;
}
private
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
>
fields_
=
java
.
util
.
Collections
.
emptyList
();
private
void
ensureFieldsIsMutable
()
{
if
(!((
bitField0_
&
0x00000002
)
==
0x00000002
))
{
fields_
=
new
java
.
util
.
ArrayList
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
>(
fields_
);
bitField0_
|=
0x00000002
;
}
}
private
com
.
google
.
protobuf
.
RepeatedFieldBuilderV3
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
Builder
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValueOrBuilder
>
fieldsBuilder_
;
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
>
getFieldsList
()
{
if
(
fieldsBuilder_
==
null
)
{
return
java
.
util
.
Collections
.
unmodifiableList
(
fields_
);
}
else
{
return
fieldsBuilder_
.
getMessageList
();
}
}
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
int
getFieldsCount
()
{
if
(
fieldsBuilder_
==
null
)
{
return
fields_
.
size
();
}
else
{
return
fieldsBuilder_
.
getCount
();
}
}
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
getFields
(
int
index
)
{
if
(
fieldsBuilder_
==
null
)
{
return
fields_
.
get
(
index
);
}
else
{
return
fieldsBuilder_
.
getMessage
(
index
);
}
}
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
Builder
setFields
(
int
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
value
)
{
if
(
fieldsBuilder_
==
null
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
ensureFieldsIsMutable
();
fields_
.
set
(
index
,
value
);
onChanged
();
}
else
{
fieldsBuilder_
.
setMessage
(
index
,
value
);
}
return
this
;
}
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
Builder
setFields
(
int
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
Builder
builderForValue
)
{
if
(
fieldsBuilder_
==
null
)
{
ensureFieldsIsMutable
();
fields_
.
set
(
index
,
builderForValue
.
build
());
onChanged
();
}
else
{
fieldsBuilder_
.
setMessage
(
index
,
builderForValue
.
build
());
}
return
this
;
}
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
Builder
addFields
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
value
)
{
if
(
fieldsBuilder_
==
null
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
ensureFieldsIsMutable
();
fields_
.
add
(
value
);
onChanged
();
}
else
{
fieldsBuilder_
.
addMessage
(
value
);
}
return
this
;
}
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
Builder
addFields
(
int
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
value
)
{
if
(
fieldsBuilder_
==
null
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
ensureFieldsIsMutable
();
fields_
.
add
(
index
,
value
);
onChanged
();
}
else
{
fieldsBuilder_
.
addMessage
(
index
,
value
);
}
return
this
;
}
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
Builder
addFields
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
Builder
builderForValue
)
{
if
(
fieldsBuilder_
==
null
)
{
ensureFieldsIsMutable
();
fields_
.
add
(
builderForValue
.
build
());
onChanged
();
}
else
{
fieldsBuilder_
.
addMessage
(
builderForValue
.
build
());
}
return
this
;
}
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
Builder
addFields
(
int
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
Builder
builderForValue
)
{
if
(
fieldsBuilder_
==
null
)
{
ensureFieldsIsMutable
();
fields_
.
add
(
index
,
builderForValue
.
build
());
onChanged
();
}
else
{
fieldsBuilder_
.
addMessage
(
index
,
builderForValue
.
build
());
}
return
this
;
}
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
Builder
addAllFields
(
java
.
lang
.
Iterable
<?
extends
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
>
values
)
{
if
(
fieldsBuilder_
==
null
)
{
ensureFieldsIsMutable
();
com
.
google
.
protobuf
.
AbstractMessageLite
.
Builder
.
addAll
(
values
,
fields_
);
onChanged
();
}
else
{
fieldsBuilder_
.
addAllMessages
(
values
);
}
return
this
;
}
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
Builder
clearFields
()
{
if
(
fieldsBuilder_
==
null
)
{
fields_
=
java
.
util
.
Collections
.
emptyList
();
bitField0_
=
(
bitField0_
&
~
0x00000002
);
onChanged
();
}
else
{
fieldsBuilder_
.
clear
();
}
return
this
;
}
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
Builder
removeFields
(
int
index
)
{
if
(
fieldsBuilder_
==
null
)
{
ensureFieldsIsMutable
();
fields_
.
remove
(
index
);
onChanged
();
}
else
{
fieldsBuilder_
.
remove
(
index
);
}
return
this
;
}
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
Builder
getFieldsBuilder
(
int
index
)
{
return
getFieldsFieldBuilder
().
getBuilder
(
index
);
}
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValueOrBuilder
getFieldsOrBuilder
(
int
index
)
{
if
(
fieldsBuilder_
==
null
)
{
return
fields_
.
get
(
index
);
}
else
{
return
fieldsBuilder_
.
getMessageOrBuilder
(
index
);
}
}
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
java
.
util
.
List
<?
extends
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValueOrBuilder
>
getFieldsOrBuilderList
()
{
if
(
fieldsBuilder_
!=
null
)
{
return
fieldsBuilder_
.
getMessageOrBuilderList
();
}
else
{
return
java
.
util
.
Collections
.
unmodifiableList
(
fields_
);
}
}
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
Builder
addFieldsBuilder
()
{
return
getFieldsFieldBuilder
().
addBuilder
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
getDefaultInstance
());
}
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
Builder
addFieldsBuilder
(
int
index
)
{
return
getFieldsFieldBuilder
().
addBuilder
(
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
getDefaultInstance
());
}
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
public
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
Builder
>
getFieldsBuilderList
()
{
return
getFieldsFieldBuilder
().
getBuilderList
();
}
private
com
.
google
.
protobuf
.
RepeatedFieldBuilderV3
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
Builder
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValueOrBuilder
>
getFieldsFieldBuilder
()
{
if
(
fieldsBuilder_
==
null
)
{
fieldsBuilder_
=
new
com
.
google
.
protobuf
.
RepeatedFieldBuilderV3
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
Builder
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValueOrBuilder
>(
fields_
,
((
bitField0_
&
0x00000002
)
==
0x00000002
),
getParentForChildren
(),
isClean
());
fields_
=
null
;
}
return
fieldsBuilder_
;
}
public
final
Builder
setUnknownFields
(
final
com
.
google
.
protobuf
.
UnknownFieldSet
unknownFields
)
{
return
this
;
}
public
final
Builder
mergeUnknownFields
(
final
com
.
google
.
protobuf
.
UnknownFieldSet
unknownFields
)
{
return
this
;
}
// @@protoc_insertion_point(builder_scope:LogDataMessage)
}
// @@protoc_insertion_point(class_scope:LogDataMessage)
private
static
final
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
DEFAULT_INSTANCE
;
static
{
DEFAULT_INSTANCE
=
new
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
();
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
getDefaultInstance
()
{
return
DEFAULT_INSTANCE
;
}
private
static
final
com
.
google
.
protobuf
.
Parser
<
LogDataMessage
>
PARSER
=
new
com
.
google
.
protobuf
.
AbstractParser
<
LogDataMessage
>()
{
public
LogDataMessage
parsePartialFrom
(
com
.
google
.
protobuf
.
CodedInputStream
input
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
new
LogDataMessage
(
input
,
extensionRegistry
);
}
};
public
static
com
.
google
.
protobuf
.
Parser
<
LogDataMessage
>
parser
()
{
return
PARSER
;
}
@java
.
lang
.
Override
public
com
.
google
.
protobuf
.
Parser
<
LogDataMessage
>
getParserForType
()
{
return
PARSER
;
}
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
getDefaultInstanceForType
()
{
return
DEFAULT_INSTANCE
;
}
}
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/proto/LogDataMessageOrBuilder.java
0 → 100644
浏览文件 @
7bffd0bf
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: trace.proto
package
com.a.eye.skywalking.trace.proto
;
public
interface
LogDataMessageOrBuilder
extends
// @@protoc_insertion_point(interface_extends:LogDataMessage)
com
.
google
.
protobuf
.
MessageOrBuilder
{
/**
* <code>optional int64 time = 1;</code>
*/
long
getTime
();
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
>
getFieldsList
();
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
getFields
(
int
index
);
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
int
getFieldsCount
();
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
java
.
util
.
List
<?
extends
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValueOrBuilder
>
getFieldsOrBuilderList
();
/**
* <code>repeated .KeyValue fields = 5;</code>
*/
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValueOrBuilder
getFieldsOrBuilder
(
int
index
);
}
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/proto/SegmentMessage.java
0 → 100644
浏览文件 @
7bffd0bf
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: trace.proto
package
com.a.eye.skywalking.trace.proto
;
/**
* Protobuf type {@code SegmentMessage}
*/
public
final
class
SegmentMessage
extends
com
.
google
.
protobuf
.
GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:SegmentMessage)
SegmentMessageOrBuilder
{
// Use SegmentMessage.newBuilder() to construct.
private
SegmentMessage
(
com
.
google
.
protobuf
.
GeneratedMessageV3
.
Builder
<?>
builder
)
{
super
(
builder
);
}
private
SegmentMessage
()
{
traceSegmentId_
=
""
;
startTime_
=
0L
;
endTime_
=
0L
;
applicationCode_
=
""
;
refs_
=
java
.
util
.
Collections
.
emptyList
();
spans_
=
java
.
util
.
Collections
.
emptyList
();
}
@java
.
lang
.
Override
public
final
com
.
google
.
protobuf
.
UnknownFieldSet
getUnknownFields
()
{
return
com
.
google
.
protobuf
.
UnknownFieldSet
.
getDefaultInstance
();
}
private
SegmentMessage
(
com
.
google
.
protobuf
.
CodedInputStream
input
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
this
();
int
mutable_bitField0_
=
0
;
try
{
boolean
done
=
false
;
while
(!
done
)
{
int
tag
=
input
.
readTag
();
switch
(
tag
)
{
case
0
:
done
=
true
;
break
;
default
:
{
if
(!
input
.
skipField
(
tag
))
{
done
=
true
;
}
break
;
}
case
10
:
{
java
.
lang
.
String
s
=
input
.
readStringRequireUtf8
();
traceSegmentId_
=
s
;
break
;
}
case
16
:
{
startTime_
=
input
.
readInt64
();
break
;
}
case
24
:
{
endTime_
=
input
.
readInt64
();
break
;
}
case
34
:
{
java
.
lang
.
String
s
=
input
.
readStringRequireUtf8
();
applicationCode_
=
s
;
break
;
}
case
42
:
{
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
Builder
subBuilder
=
null
;
if
(
primaryRef_
!=
null
)
{
subBuilder
=
primaryRef_
.
toBuilder
();
}
primaryRef_
=
input
.
readMessage
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
parser
(),
extensionRegistry
);
if
(
subBuilder
!=
null
)
{
subBuilder
.
mergeFrom
(
primaryRef_
);
primaryRef_
=
subBuilder
.
buildPartial
();
}
break
;
}
case
50
:
{
if
(!((
mutable_bitField0_
&
0x00000020
)
==
0x00000020
))
{
refs_
=
new
java
.
util
.
ArrayList
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
>();
mutable_bitField0_
|=
0x00000020
;
}
refs_
.
add
(
input
.
readMessage
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
parser
(),
extensionRegistry
));
break
;
}
case
58
:
{
if
(!((
mutable_bitField0_
&
0x00000040
)
==
0x00000040
))
{
spans_
=
new
java
.
util
.
ArrayList
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
>();
mutable_bitField0_
|=
0x00000040
;
}
spans_
.
add
(
input
.
readMessage
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
.
parser
(),
extensionRegistry
));
break
;
}
}
}
}
catch
(
com
.
google
.
protobuf
.
InvalidProtocolBufferException
e
)
{
throw
e
.
setUnfinishedMessage
(
this
);
}
catch
(
java
.
io
.
IOException
e
)
{
throw
new
com
.
google
.
protobuf
.
InvalidProtocolBufferException
(
e
).
setUnfinishedMessage
(
this
);
}
finally
{
if
(((
mutable_bitField0_
&
0x00000020
)
==
0x00000020
))
{
refs_
=
java
.
util
.
Collections
.
unmodifiableList
(
refs_
);
}
if
(((
mutable_bitField0_
&
0x00000040
)
==
0x00000040
))
{
spans_
=
java
.
util
.
Collections
.
unmodifiableList
(
spans_
);
}
makeExtensionsImmutable
();
}
}
public
static
final
com
.
google
.
protobuf
.
Descriptors
.
Descriptor
getDescriptor
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_SegmentMessage_descriptor
;
}
protected
com
.
google
.
protobuf
.
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_SegmentMessage_fieldAccessorTable
.
ensureFieldAccessorsInitialized
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
.
class
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
.
Builder
.
class
);
}
private
int
bitField0_
;
public
static
final
int
TRACESEGMENTID_FIELD_NUMBER
=
1
;
private
volatile
java
.
lang
.
Object
traceSegmentId_
;
/**
* <code>optional string traceSegmentId = 1;</code>
*/
public
java
.
lang
.
String
getTraceSegmentId
()
{
java
.
lang
.
Object
ref
=
traceSegmentId_
;
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
();
traceSegmentId_
=
s
;
return
s
;
}
}
/**
* <code>optional string traceSegmentId = 1;</code>
*/
public
com
.
google
.
protobuf
.
ByteString
getTraceSegmentIdBytes
()
{
java
.
lang
.
Object
ref
=
traceSegmentId_
;
if
(
ref
instanceof
java
.
lang
.
String
)
{
com
.
google
.
protobuf
.
ByteString
b
=
com
.
google
.
protobuf
.
ByteString
.
copyFromUtf8
(
(
java
.
lang
.
String
)
ref
);
traceSegmentId_
=
b
;
return
b
;
}
else
{
return
(
com
.
google
.
protobuf
.
ByteString
)
ref
;
}
}
public
static
final
int
STARTTIME_FIELD_NUMBER
=
2
;
private
long
startTime_
;
/**
* <code>optional int64 startTime = 2;</code>
*/
public
long
getStartTime
()
{
return
startTime_
;
}
public
static
final
int
ENDTIME_FIELD_NUMBER
=
3
;
private
long
endTime_
;
/**
* <code>optional int64 endTime = 3;</code>
*/
public
long
getEndTime
()
{
return
endTime_
;
}
public
static
final
int
APPLICATIONCODE_FIELD_NUMBER
=
4
;
private
volatile
java
.
lang
.
Object
applicationCode_
;
/**
* <code>optional string applicationCode = 4;</code>
*/
public
java
.
lang
.
String
getApplicationCode
()
{
java
.
lang
.
Object
ref
=
applicationCode_
;
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
();
applicationCode_
=
s
;
return
s
;
}
}
/**
* <code>optional string applicationCode = 4;</code>
*/
public
com
.
google
.
protobuf
.
ByteString
getApplicationCodeBytes
()
{
java
.
lang
.
Object
ref
=
applicationCode_
;
if
(
ref
instanceof
java
.
lang
.
String
)
{
com
.
google
.
protobuf
.
ByteString
b
=
com
.
google
.
protobuf
.
ByteString
.
copyFromUtf8
(
(
java
.
lang
.
String
)
ref
);
applicationCode_
=
b
;
return
b
;
}
else
{
return
(
com
.
google
.
protobuf
.
ByteString
)
ref
;
}
}
public
static
final
int
PRIMARYREF_FIELD_NUMBER
=
5
;
private
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
primaryRef_
;
/**
* <code>optional .SegmentRefMessage primaryRef = 5;</code>
*/
public
boolean
hasPrimaryRef
()
{
return
primaryRef_
!=
null
;
}
/**
* <code>optional .SegmentRefMessage primaryRef = 5;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
getPrimaryRef
()
{
return
primaryRef_
==
null
?
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
getDefaultInstance
()
:
primaryRef_
;
}
/**
* <code>optional .SegmentRefMessage primaryRef = 5;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessageOrBuilder
getPrimaryRefOrBuilder
()
{
return
getPrimaryRef
();
}
public
static
final
int
REFS_FIELD_NUMBER
=
6
;
private
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
>
refs_
;
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
>
getRefsList
()
{
return
refs_
;
}
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
java
.
util
.
List
<?
extends
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessageOrBuilder
>
getRefsOrBuilderList
()
{
return
refs_
;
}
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
int
getRefsCount
()
{
return
refs_
.
size
();
}
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
getRefs
(
int
index
)
{
return
refs_
.
get
(
index
);
}
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessageOrBuilder
getRefsOrBuilder
(
int
index
)
{
return
refs_
.
get
(
index
);
}
public
static
final
int
SPANS_FIELD_NUMBER
=
7
;
private
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
>
spans_
;
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
>
getSpansList
()
{
return
spans_
;
}
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
java
.
util
.
List
<?
extends
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessageOrBuilder
>
getSpansOrBuilderList
()
{
return
spans_
;
}
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
int
getSpansCount
()
{
return
spans_
.
size
();
}
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
getSpans
(
int
index
)
{
return
spans_
.
get
(
index
);
}
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessageOrBuilder
getSpansOrBuilder
(
int
index
)
{
return
spans_
.
get
(
index
);
}
private
byte
memoizedIsInitialized
=
-
1
;
public
final
boolean
isInitialized
()
{
byte
isInitialized
=
memoizedIsInitialized
;
if
(
isInitialized
==
1
)
return
true
;
if
(
isInitialized
==
0
)
return
false
;
memoizedIsInitialized
=
1
;
return
true
;
}
public
void
writeTo
(
com
.
google
.
protobuf
.
CodedOutputStream
output
)
throws
java
.
io
.
IOException
{
if
(!
getTraceSegmentIdBytes
().
isEmpty
())
{
com
.
google
.
protobuf
.
GeneratedMessageV3
.
writeString
(
output
,
1
,
traceSegmentId_
);
}
if
(
startTime_
!=
0L
)
{
output
.
writeInt64
(
2
,
startTime_
);
}
if
(
endTime_
!=
0L
)
{
output
.
writeInt64
(
3
,
endTime_
);
}
if
(!
getApplicationCodeBytes
().
isEmpty
())
{
com
.
google
.
protobuf
.
GeneratedMessageV3
.
writeString
(
output
,
4
,
applicationCode_
);
}
if
(
primaryRef_
!=
null
)
{
output
.
writeMessage
(
5
,
getPrimaryRef
());
}
for
(
int
i
=
0
;
i
<
refs_
.
size
();
i
++)
{
output
.
writeMessage
(
6
,
refs_
.
get
(
i
));
}
for
(
int
i
=
0
;
i
<
spans_
.
size
();
i
++)
{
output
.
writeMessage
(
7
,
spans_
.
get
(
i
));
}
}
public
int
getSerializedSize
()
{
int
size
=
memoizedSize
;
if
(
size
!=
-
1
)
return
size
;
size
=
0
;
if
(!
getTraceSegmentIdBytes
().
isEmpty
())
{
size
+=
com
.
google
.
protobuf
.
GeneratedMessageV3
.
computeStringSize
(
1
,
traceSegmentId_
);
}
if
(
startTime_
!=
0L
)
{
size
+=
com
.
google
.
protobuf
.
CodedOutputStream
.
computeInt64Size
(
2
,
startTime_
);
}
if
(
endTime_
!=
0L
)
{
size
+=
com
.
google
.
protobuf
.
CodedOutputStream
.
computeInt64Size
(
3
,
endTime_
);
}
if
(!
getApplicationCodeBytes
().
isEmpty
())
{
size
+=
com
.
google
.
protobuf
.
GeneratedMessageV3
.
computeStringSize
(
4
,
applicationCode_
);
}
if
(
primaryRef_
!=
null
)
{
size
+=
com
.
google
.
protobuf
.
CodedOutputStream
.
computeMessageSize
(
5
,
getPrimaryRef
());
}
for
(
int
i
=
0
;
i
<
refs_
.
size
();
i
++)
{
size
+=
com
.
google
.
protobuf
.
CodedOutputStream
.
computeMessageSize
(
6
,
refs_
.
get
(
i
));
}
for
(
int
i
=
0
;
i
<
spans_
.
size
();
i
++)
{
size
+=
com
.
google
.
protobuf
.
CodedOutputStream
.
computeMessageSize
(
7
,
spans_
.
get
(
i
));
}
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
))
{
return
super
.
equals
(
obj
);
}
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
other
=
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
)
obj
;
boolean
result
=
true
;
result
=
result
&&
getTraceSegmentId
()
.
equals
(
other
.
getTraceSegmentId
());
result
=
result
&&
(
getStartTime
()
==
other
.
getStartTime
());
result
=
result
&&
(
getEndTime
()
==
other
.
getEndTime
());
result
=
result
&&
getApplicationCode
()
.
equals
(
other
.
getApplicationCode
());
result
=
result
&&
(
hasPrimaryRef
()
==
other
.
hasPrimaryRef
());
if
(
hasPrimaryRef
())
{
result
=
result
&&
getPrimaryRef
()
.
equals
(
other
.
getPrimaryRef
());
}
result
=
result
&&
getRefsList
()
.
equals
(
other
.
getRefsList
());
result
=
result
&&
getSpansList
()
.
equals
(
other
.
getSpansList
());
return
result
;
}
@java
.
lang
.
Override
public
int
hashCode
()
{
if
(
memoizedHashCode
!=
0
)
{
return
memoizedHashCode
;
}
int
hash
=
41
;
hash
=
(
19
*
hash
)
+
getDescriptorForType
().
hashCode
();
hash
=
(
37
*
hash
)
+
TRACESEGMENTID_FIELD_NUMBER
;
hash
=
(
53
*
hash
)
+
getTraceSegmentId
().
hashCode
();
hash
=
(
37
*
hash
)
+
STARTTIME_FIELD_NUMBER
;
hash
=
(
53
*
hash
)
+
com
.
google
.
protobuf
.
Internal
.
hashLong
(
getStartTime
());
hash
=
(
37
*
hash
)
+
ENDTIME_FIELD_NUMBER
;
hash
=
(
53
*
hash
)
+
com
.
google
.
protobuf
.
Internal
.
hashLong
(
getEndTime
());
hash
=
(
37
*
hash
)
+
APPLICATIONCODE_FIELD_NUMBER
;
hash
=
(
53
*
hash
)
+
getApplicationCode
().
hashCode
();
if
(
hasPrimaryRef
())
{
hash
=
(
37
*
hash
)
+
PRIMARYREF_FIELD_NUMBER
;
hash
=
(
53
*
hash
)
+
getPrimaryRef
().
hashCode
();
}
if
(
getRefsCount
()
>
0
)
{
hash
=
(
37
*
hash
)
+
REFS_FIELD_NUMBER
;
hash
=
(
53
*
hash
)
+
getRefsList
().
hashCode
();
}
if
(
getSpansCount
()
>
0
)
{
hash
=
(
37
*
hash
)
+
SPANS_FIELD_NUMBER
;
hash
=
(
53
*
hash
)
+
getSpansList
().
hashCode
();
}
hash
=
(
29
*
hash
)
+
unknownFields
.
hashCode
();
memoizedHashCode
=
hash
;
return
hash
;
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
parseFrom
(
com
.
google
.
protobuf
.
ByteString
data
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
PARSER
.
parseFrom
(
data
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
parseFrom
(
com
.
google
.
protobuf
.
ByteString
data
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
PARSER
.
parseFrom
(
data
,
extensionRegistry
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
parseFrom
(
byte
[]
data
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
PARSER
.
parseFrom
(
data
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
parseFrom
(
byte
[]
data
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
PARSER
.
parseFrom
(
data
,
extensionRegistry
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
parseFrom
(
java
.
io
.
InputStream
input
)
throws
java
.
io
.
IOException
{
return
com
.
google
.
protobuf
.
GeneratedMessageV3
.
parseWithIOException
(
PARSER
,
input
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
parseDelimitedFrom
(
java
.
io
.
InputStream
input
)
throws
java
.
io
.
IOException
{
return
com
.
google
.
protobuf
.
GeneratedMessageV3
.
parseDelimitedWithIOException
(
PARSER
,
input
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
parseFrom
(
com
.
google
.
protobuf
.
CodedInputStream
input
)
throws
java
.
io
.
IOException
{
return
com
.
google
.
protobuf
.
GeneratedMessageV3
.
parseWithIOException
(
PARSER
,
input
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
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 SegmentMessage}
*/
public
static
final
class
Builder
extends
com
.
google
.
protobuf
.
GeneratedMessageV3
.
Builder
<
Builder
>
implements
// @@protoc_insertion_point(builder_implements:SegmentMessage)
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessageOrBuilder
{
public
static
final
com
.
google
.
protobuf
.
Descriptors
.
Descriptor
getDescriptor
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_SegmentMessage_descriptor
;
}
protected
com
.
google
.
protobuf
.
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_SegmentMessage_fieldAccessorTable
.
ensureFieldAccessorsInitialized
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
.
class
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
.
Builder
.
class
);
}
// Construct using com.a.eye.skywalking.trace.proto.SegmentMessage.newBuilder()
private
Builder
()
{
maybeForceBuilderInitialization
();
}
private
Builder
(
com
.
google
.
protobuf
.
GeneratedMessageV3
.
BuilderParent
parent
)
{
super
(
parent
);
maybeForceBuilderInitialization
();
}
private
void
maybeForceBuilderInitialization
()
{
if
(
com
.
google
.
protobuf
.
GeneratedMessageV3
.
alwaysUseFieldBuilders
)
{
getRefsFieldBuilder
();
getSpansFieldBuilder
();
}
}
public
Builder
clear
()
{
super
.
clear
();
traceSegmentId_
=
""
;
startTime_
=
0L
;
endTime_
=
0L
;
applicationCode_
=
""
;
if
(
primaryRefBuilder_
==
null
)
{
primaryRef_
=
null
;
}
else
{
primaryRef_
=
null
;
primaryRefBuilder_
=
null
;
}
if
(
refsBuilder_
==
null
)
{
refs_
=
java
.
util
.
Collections
.
emptyList
();
bitField0_
=
(
bitField0_
&
~
0x00000020
);
}
else
{
refsBuilder_
.
clear
();
}
if
(
spansBuilder_
==
null
)
{
spans_
=
java
.
util
.
Collections
.
emptyList
();
bitField0_
=
(
bitField0_
&
~
0x00000040
);
}
else
{
spansBuilder_
.
clear
();
}
return
this
;
}
public
com
.
google
.
protobuf
.
Descriptors
.
Descriptor
getDescriptorForType
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_SegmentMessage_descriptor
;
}
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
getDefaultInstanceForType
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
.
getDefaultInstance
();
}
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
build
()
{
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
result
=
buildPartial
();
if
(!
result
.
isInitialized
())
{
throw
newUninitializedMessageException
(
result
);
}
return
result
;
}
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
buildPartial
()
{
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
result
=
new
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
(
this
);
int
from_bitField0_
=
bitField0_
;
int
to_bitField0_
=
0
;
result
.
traceSegmentId_
=
traceSegmentId_
;
result
.
startTime_
=
startTime_
;
result
.
endTime_
=
endTime_
;
result
.
applicationCode_
=
applicationCode_
;
if
(
primaryRefBuilder_
==
null
)
{
result
.
primaryRef_
=
primaryRef_
;
}
else
{
result
.
primaryRef_
=
primaryRefBuilder_
.
build
();
}
if
(
refsBuilder_
==
null
)
{
if
(((
bitField0_
&
0x00000020
)
==
0x00000020
))
{
refs_
=
java
.
util
.
Collections
.
unmodifiableList
(
refs_
);
bitField0_
=
(
bitField0_
&
~
0x00000020
);
}
result
.
refs_
=
refs_
;
}
else
{
result
.
refs_
=
refsBuilder_
.
build
();
}
if
(
spansBuilder_
==
null
)
{
if
(((
bitField0_
&
0x00000040
)
==
0x00000040
))
{
spans_
=
java
.
util
.
Collections
.
unmodifiableList
(
spans_
);
bitField0_
=
(
bitField0_
&
~
0x00000040
);
}
result
.
spans_
=
spans_
;
}
else
{
result
.
spans_
=
spansBuilder_
.
build
();
}
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
)
{
return
mergeFrom
((
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
)
other
);
}
else
{
super
.
mergeFrom
(
other
);
return
this
;
}
}
public
Builder
mergeFrom
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
other
)
{
if
(
other
==
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
.
getDefaultInstance
())
return
this
;
if
(!
other
.
getTraceSegmentId
().
isEmpty
())
{
traceSegmentId_
=
other
.
traceSegmentId_
;
onChanged
();
}
if
(
other
.
getStartTime
()
!=
0L
)
{
setStartTime
(
other
.
getStartTime
());
}
if
(
other
.
getEndTime
()
!=
0L
)
{
setEndTime
(
other
.
getEndTime
());
}
if
(!
other
.
getApplicationCode
().
isEmpty
())
{
applicationCode_
=
other
.
applicationCode_
;
onChanged
();
}
if
(
other
.
hasPrimaryRef
())
{
mergePrimaryRef
(
other
.
getPrimaryRef
());
}
if
(
refsBuilder_
==
null
)
{
if
(!
other
.
refs_
.
isEmpty
())
{
if
(
refs_
.
isEmpty
())
{
refs_
=
other
.
refs_
;
bitField0_
=
(
bitField0_
&
~
0x00000020
);
}
else
{
ensureRefsIsMutable
();
refs_
.
addAll
(
other
.
refs_
);
}
onChanged
();
}
}
else
{
if
(!
other
.
refs_
.
isEmpty
())
{
if
(
refsBuilder_
.
isEmpty
())
{
refsBuilder_
.
dispose
();
refsBuilder_
=
null
;
refs_
=
other
.
refs_
;
bitField0_
=
(
bitField0_
&
~
0x00000020
);
refsBuilder_
=
com
.
google
.
protobuf
.
GeneratedMessageV3
.
alwaysUseFieldBuilders
?
getRefsFieldBuilder
()
:
null
;
}
else
{
refsBuilder_
.
addAllMessages
(
other
.
refs_
);
}
}
}
if
(
spansBuilder_
==
null
)
{
if
(!
other
.
spans_
.
isEmpty
())
{
if
(
spans_
.
isEmpty
())
{
spans_
=
other
.
spans_
;
bitField0_
=
(
bitField0_
&
~
0x00000040
);
}
else
{
ensureSpansIsMutable
();
spans_
.
addAll
(
other
.
spans_
);
}
onChanged
();
}
}
else
{
if
(!
other
.
spans_
.
isEmpty
())
{
if
(
spansBuilder_
.
isEmpty
())
{
spansBuilder_
.
dispose
();
spansBuilder_
=
null
;
spans_
=
other
.
spans_
;
bitField0_
=
(
bitField0_
&
~
0x00000040
);
spansBuilder_
=
com
.
google
.
protobuf
.
GeneratedMessageV3
.
alwaysUseFieldBuilders
?
getSpansFieldBuilder
()
:
null
;
}
else
{
spansBuilder_
.
addAllMessages
(
other
.
spans_
);
}
}
}
onChanged
();
return
this
;
}
public
final
boolean
isInitialized
()
{
return
true
;
}
public
Builder
mergeFrom
(
com
.
google
.
protobuf
.
CodedInputStream
input
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
java
.
io
.
IOException
{
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
parsedMessage
=
null
;
try
{
parsedMessage
=
PARSER
.
parsePartialFrom
(
input
,
extensionRegistry
);
}
catch
(
com
.
google
.
protobuf
.
InvalidProtocolBufferException
e
)
{
parsedMessage
=
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
)
e
.
getUnfinishedMessage
();
throw
e
.
unwrapIOException
();
}
finally
{
if
(
parsedMessage
!=
null
)
{
mergeFrom
(
parsedMessage
);
}
}
return
this
;
}
private
int
bitField0_
;
private
java
.
lang
.
Object
traceSegmentId_
=
""
;
/**
* <code>optional string traceSegmentId = 1;</code>
*/
public
java
.
lang
.
String
getTraceSegmentId
()
{
java
.
lang
.
Object
ref
=
traceSegmentId_
;
if
(!(
ref
instanceof
java
.
lang
.
String
))
{
com
.
google
.
protobuf
.
ByteString
bs
=
(
com
.
google
.
protobuf
.
ByteString
)
ref
;
java
.
lang
.
String
s
=
bs
.
toStringUtf8
();
traceSegmentId_
=
s
;
return
s
;
}
else
{
return
(
java
.
lang
.
String
)
ref
;
}
}
/**
* <code>optional string traceSegmentId = 1;</code>
*/
public
com
.
google
.
protobuf
.
ByteString
getTraceSegmentIdBytes
()
{
java
.
lang
.
Object
ref
=
traceSegmentId_
;
if
(
ref
instanceof
String
)
{
com
.
google
.
protobuf
.
ByteString
b
=
com
.
google
.
protobuf
.
ByteString
.
copyFromUtf8
(
(
java
.
lang
.
String
)
ref
);
traceSegmentId_
=
b
;
return
b
;
}
else
{
return
(
com
.
google
.
protobuf
.
ByteString
)
ref
;
}
}
/**
* <code>optional string traceSegmentId = 1;</code>
*/
public
Builder
setTraceSegmentId
(
java
.
lang
.
String
value
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
traceSegmentId_
=
value
;
onChanged
();
return
this
;
}
/**
* <code>optional string traceSegmentId = 1;</code>
*/
public
Builder
clearTraceSegmentId
()
{
traceSegmentId_
=
getDefaultInstance
().
getTraceSegmentId
();
onChanged
();
return
this
;
}
/**
* <code>optional string traceSegmentId = 1;</code>
*/
public
Builder
setTraceSegmentIdBytes
(
com
.
google
.
protobuf
.
ByteString
value
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
checkByteStringIsUtf8
(
value
);
traceSegmentId_
=
value
;
onChanged
();
return
this
;
}
private
long
startTime_
;
/**
* <code>optional int64 startTime = 2;</code>
*/
public
long
getStartTime
()
{
return
startTime_
;
}
/**
* <code>optional int64 startTime = 2;</code>
*/
public
Builder
setStartTime
(
long
value
)
{
startTime_
=
value
;
onChanged
();
return
this
;
}
/**
* <code>optional int64 startTime = 2;</code>
*/
public
Builder
clearStartTime
()
{
startTime_
=
0L
;
onChanged
();
return
this
;
}
private
long
endTime_
;
/**
* <code>optional int64 endTime = 3;</code>
*/
public
long
getEndTime
()
{
return
endTime_
;
}
/**
* <code>optional int64 endTime = 3;</code>
*/
public
Builder
setEndTime
(
long
value
)
{
endTime_
=
value
;
onChanged
();
return
this
;
}
/**
* <code>optional int64 endTime = 3;</code>
*/
public
Builder
clearEndTime
()
{
endTime_
=
0L
;
onChanged
();
return
this
;
}
private
java
.
lang
.
Object
applicationCode_
=
""
;
/**
* <code>optional string applicationCode = 4;</code>
*/
public
java
.
lang
.
String
getApplicationCode
()
{
java
.
lang
.
Object
ref
=
applicationCode_
;
if
(!(
ref
instanceof
java
.
lang
.
String
))
{
com
.
google
.
protobuf
.
ByteString
bs
=
(
com
.
google
.
protobuf
.
ByteString
)
ref
;
java
.
lang
.
String
s
=
bs
.
toStringUtf8
();
applicationCode_
=
s
;
return
s
;
}
else
{
return
(
java
.
lang
.
String
)
ref
;
}
}
/**
* <code>optional string applicationCode = 4;</code>
*/
public
com
.
google
.
protobuf
.
ByteString
getApplicationCodeBytes
()
{
java
.
lang
.
Object
ref
=
applicationCode_
;
if
(
ref
instanceof
String
)
{
com
.
google
.
protobuf
.
ByteString
b
=
com
.
google
.
protobuf
.
ByteString
.
copyFromUtf8
(
(
java
.
lang
.
String
)
ref
);
applicationCode_
=
b
;
return
b
;
}
else
{
return
(
com
.
google
.
protobuf
.
ByteString
)
ref
;
}
}
/**
* <code>optional string applicationCode = 4;</code>
*/
public
Builder
setApplicationCode
(
java
.
lang
.
String
value
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
applicationCode_
=
value
;
onChanged
();
return
this
;
}
/**
* <code>optional string applicationCode = 4;</code>
*/
public
Builder
clearApplicationCode
()
{
applicationCode_
=
getDefaultInstance
().
getApplicationCode
();
onChanged
();
return
this
;
}
/**
* <code>optional string applicationCode = 4;</code>
*/
public
Builder
setApplicationCodeBytes
(
com
.
google
.
protobuf
.
ByteString
value
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
checkByteStringIsUtf8
(
value
);
applicationCode_
=
value
;
onChanged
();
return
this
;
}
private
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
primaryRef_
=
null
;
private
com
.
google
.
protobuf
.
SingleFieldBuilderV3
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
Builder
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessageOrBuilder
>
primaryRefBuilder_
;
/**
* <code>optional .SegmentRefMessage primaryRef = 5;</code>
*/
public
boolean
hasPrimaryRef
()
{
return
primaryRefBuilder_
!=
null
||
primaryRef_
!=
null
;
}
/**
* <code>optional .SegmentRefMessage primaryRef = 5;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
getPrimaryRef
()
{
if
(
primaryRefBuilder_
==
null
)
{
return
primaryRef_
==
null
?
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
getDefaultInstance
()
:
primaryRef_
;
}
else
{
return
primaryRefBuilder_
.
getMessage
();
}
}
/**
* <code>optional .SegmentRefMessage primaryRef = 5;</code>
*/
public
Builder
setPrimaryRef
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
value
)
{
if
(
primaryRefBuilder_
==
null
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
primaryRef_
=
value
;
onChanged
();
}
else
{
primaryRefBuilder_
.
setMessage
(
value
);
}
return
this
;
}
/**
* <code>optional .SegmentRefMessage primaryRef = 5;</code>
*/
public
Builder
setPrimaryRef
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
Builder
builderForValue
)
{
if
(
primaryRefBuilder_
==
null
)
{
primaryRef_
=
builderForValue
.
build
();
onChanged
();
}
else
{
primaryRefBuilder_
.
setMessage
(
builderForValue
.
build
());
}
return
this
;
}
/**
* <code>optional .SegmentRefMessage primaryRef = 5;</code>
*/
public
Builder
mergePrimaryRef
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
value
)
{
if
(
primaryRefBuilder_
==
null
)
{
if
(
primaryRef_
!=
null
)
{
primaryRef_
=
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
newBuilder
(
primaryRef_
).
mergeFrom
(
value
).
buildPartial
();
}
else
{
primaryRef_
=
value
;
}
onChanged
();
}
else
{
primaryRefBuilder_
.
mergeFrom
(
value
);
}
return
this
;
}
/**
* <code>optional .SegmentRefMessage primaryRef = 5;</code>
*/
public
Builder
clearPrimaryRef
()
{
if
(
primaryRefBuilder_
==
null
)
{
primaryRef_
=
null
;
onChanged
();
}
else
{
primaryRef_
=
null
;
primaryRefBuilder_
=
null
;
}
return
this
;
}
/**
* <code>optional .SegmentRefMessage primaryRef = 5;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
Builder
getPrimaryRefBuilder
()
{
onChanged
();
return
getPrimaryRefFieldBuilder
().
getBuilder
();
}
/**
* <code>optional .SegmentRefMessage primaryRef = 5;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessageOrBuilder
getPrimaryRefOrBuilder
()
{
if
(
primaryRefBuilder_
!=
null
)
{
return
primaryRefBuilder_
.
getMessageOrBuilder
();
}
else
{
return
primaryRef_
==
null
?
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
getDefaultInstance
()
:
primaryRef_
;
}
}
/**
* <code>optional .SegmentRefMessage primaryRef = 5;</code>
*/
private
com
.
google
.
protobuf
.
SingleFieldBuilderV3
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
Builder
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessageOrBuilder
>
getPrimaryRefFieldBuilder
()
{
if
(
primaryRefBuilder_
==
null
)
{
primaryRefBuilder_
=
new
com
.
google
.
protobuf
.
SingleFieldBuilderV3
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
Builder
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessageOrBuilder
>(
getPrimaryRef
(),
getParentForChildren
(),
isClean
());
primaryRef_
=
null
;
}
return
primaryRefBuilder_
;
}
private
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
>
refs_
=
java
.
util
.
Collections
.
emptyList
();
private
void
ensureRefsIsMutable
()
{
if
(!((
bitField0_
&
0x00000020
)
==
0x00000020
))
{
refs_
=
new
java
.
util
.
ArrayList
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
>(
refs_
);
bitField0_
|=
0x00000020
;
}
}
private
com
.
google
.
protobuf
.
RepeatedFieldBuilderV3
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
Builder
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessageOrBuilder
>
refsBuilder_
;
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
>
getRefsList
()
{
if
(
refsBuilder_
==
null
)
{
return
java
.
util
.
Collections
.
unmodifiableList
(
refs_
);
}
else
{
return
refsBuilder_
.
getMessageList
();
}
}
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
int
getRefsCount
()
{
if
(
refsBuilder_
==
null
)
{
return
refs_
.
size
();
}
else
{
return
refsBuilder_
.
getCount
();
}
}
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
getRefs
(
int
index
)
{
if
(
refsBuilder_
==
null
)
{
return
refs_
.
get
(
index
);
}
else
{
return
refsBuilder_
.
getMessage
(
index
);
}
}
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
Builder
setRefs
(
int
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
value
)
{
if
(
refsBuilder_
==
null
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
ensureRefsIsMutable
();
refs_
.
set
(
index
,
value
);
onChanged
();
}
else
{
refsBuilder_
.
setMessage
(
index
,
value
);
}
return
this
;
}
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
Builder
setRefs
(
int
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
Builder
builderForValue
)
{
if
(
refsBuilder_
==
null
)
{
ensureRefsIsMutable
();
refs_
.
set
(
index
,
builderForValue
.
build
());
onChanged
();
}
else
{
refsBuilder_
.
setMessage
(
index
,
builderForValue
.
build
());
}
return
this
;
}
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
Builder
addRefs
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
value
)
{
if
(
refsBuilder_
==
null
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
ensureRefsIsMutable
();
refs_
.
add
(
value
);
onChanged
();
}
else
{
refsBuilder_
.
addMessage
(
value
);
}
return
this
;
}
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
Builder
addRefs
(
int
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
value
)
{
if
(
refsBuilder_
==
null
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
ensureRefsIsMutable
();
refs_
.
add
(
index
,
value
);
onChanged
();
}
else
{
refsBuilder_
.
addMessage
(
index
,
value
);
}
return
this
;
}
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
Builder
addRefs
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
Builder
builderForValue
)
{
if
(
refsBuilder_
==
null
)
{
ensureRefsIsMutable
();
refs_
.
add
(
builderForValue
.
build
());
onChanged
();
}
else
{
refsBuilder_
.
addMessage
(
builderForValue
.
build
());
}
return
this
;
}
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
Builder
addRefs
(
int
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
Builder
builderForValue
)
{
if
(
refsBuilder_
==
null
)
{
ensureRefsIsMutable
();
refs_
.
add
(
index
,
builderForValue
.
build
());
onChanged
();
}
else
{
refsBuilder_
.
addMessage
(
index
,
builderForValue
.
build
());
}
return
this
;
}
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
Builder
addAllRefs
(
java
.
lang
.
Iterable
<?
extends
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
>
values
)
{
if
(
refsBuilder_
==
null
)
{
ensureRefsIsMutable
();
com
.
google
.
protobuf
.
AbstractMessageLite
.
Builder
.
addAll
(
values
,
refs_
);
onChanged
();
}
else
{
refsBuilder_
.
addAllMessages
(
values
);
}
return
this
;
}
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
Builder
clearRefs
()
{
if
(
refsBuilder_
==
null
)
{
refs_
=
java
.
util
.
Collections
.
emptyList
();
bitField0_
=
(
bitField0_
&
~
0x00000020
);
onChanged
();
}
else
{
refsBuilder_
.
clear
();
}
return
this
;
}
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
Builder
removeRefs
(
int
index
)
{
if
(
refsBuilder_
==
null
)
{
ensureRefsIsMutable
();
refs_
.
remove
(
index
);
onChanged
();
}
else
{
refsBuilder_
.
remove
(
index
);
}
return
this
;
}
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
Builder
getRefsBuilder
(
int
index
)
{
return
getRefsFieldBuilder
().
getBuilder
(
index
);
}
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessageOrBuilder
getRefsOrBuilder
(
int
index
)
{
if
(
refsBuilder_
==
null
)
{
return
refs_
.
get
(
index
);
}
else
{
return
refsBuilder_
.
getMessageOrBuilder
(
index
);
}
}
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
java
.
util
.
List
<?
extends
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessageOrBuilder
>
getRefsOrBuilderList
()
{
if
(
refsBuilder_
!=
null
)
{
return
refsBuilder_
.
getMessageOrBuilderList
();
}
else
{
return
java
.
util
.
Collections
.
unmodifiableList
(
refs_
);
}
}
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
Builder
addRefsBuilder
()
{
return
getRefsFieldBuilder
().
addBuilder
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
getDefaultInstance
());
}
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
Builder
addRefsBuilder
(
int
index
)
{
return
getRefsFieldBuilder
().
addBuilder
(
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
getDefaultInstance
());
}
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
public
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
Builder
>
getRefsBuilderList
()
{
return
getRefsFieldBuilder
().
getBuilderList
();
}
private
com
.
google
.
protobuf
.
RepeatedFieldBuilderV3
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
Builder
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessageOrBuilder
>
getRefsFieldBuilder
()
{
if
(
refsBuilder_
==
null
)
{
refsBuilder_
=
new
com
.
google
.
protobuf
.
RepeatedFieldBuilderV3
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
Builder
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessageOrBuilder
>(
refs_
,
((
bitField0_
&
0x00000020
)
==
0x00000020
),
getParentForChildren
(),
isClean
());
refs_
=
null
;
}
return
refsBuilder_
;
}
private
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
>
spans_
=
java
.
util
.
Collections
.
emptyList
();
private
void
ensureSpansIsMutable
()
{
if
(!((
bitField0_
&
0x00000040
)
==
0x00000040
))
{
spans_
=
new
java
.
util
.
ArrayList
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
>(
spans_
);
bitField0_
|=
0x00000040
;
}
}
private
com
.
google
.
protobuf
.
RepeatedFieldBuilderV3
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
.
Builder
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessageOrBuilder
>
spansBuilder_
;
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
>
getSpansList
()
{
if
(
spansBuilder_
==
null
)
{
return
java
.
util
.
Collections
.
unmodifiableList
(
spans_
);
}
else
{
return
spansBuilder_
.
getMessageList
();
}
}
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
int
getSpansCount
()
{
if
(
spansBuilder_
==
null
)
{
return
spans_
.
size
();
}
else
{
return
spansBuilder_
.
getCount
();
}
}
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
getSpans
(
int
index
)
{
if
(
spansBuilder_
==
null
)
{
return
spans_
.
get
(
index
);
}
else
{
return
spansBuilder_
.
getMessage
(
index
);
}
}
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
Builder
setSpans
(
int
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
value
)
{
if
(
spansBuilder_
==
null
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
ensureSpansIsMutable
();
spans_
.
set
(
index
,
value
);
onChanged
();
}
else
{
spansBuilder_
.
setMessage
(
index
,
value
);
}
return
this
;
}
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
Builder
setSpans
(
int
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
.
Builder
builderForValue
)
{
if
(
spansBuilder_
==
null
)
{
ensureSpansIsMutable
();
spans_
.
set
(
index
,
builderForValue
.
build
());
onChanged
();
}
else
{
spansBuilder_
.
setMessage
(
index
,
builderForValue
.
build
());
}
return
this
;
}
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
Builder
addSpans
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
value
)
{
if
(
spansBuilder_
==
null
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
ensureSpansIsMutable
();
spans_
.
add
(
value
);
onChanged
();
}
else
{
spansBuilder_
.
addMessage
(
value
);
}
return
this
;
}
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
Builder
addSpans
(
int
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
value
)
{
if
(
spansBuilder_
==
null
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
ensureSpansIsMutable
();
spans_
.
add
(
index
,
value
);
onChanged
();
}
else
{
spansBuilder_
.
addMessage
(
index
,
value
);
}
return
this
;
}
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
Builder
addSpans
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
.
Builder
builderForValue
)
{
if
(
spansBuilder_
==
null
)
{
ensureSpansIsMutable
();
spans_
.
add
(
builderForValue
.
build
());
onChanged
();
}
else
{
spansBuilder_
.
addMessage
(
builderForValue
.
build
());
}
return
this
;
}
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
Builder
addSpans
(
int
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
.
Builder
builderForValue
)
{
if
(
spansBuilder_
==
null
)
{
ensureSpansIsMutable
();
spans_
.
add
(
index
,
builderForValue
.
build
());
onChanged
();
}
else
{
spansBuilder_
.
addMessage
(
index
,
builderForValue
.
build
());
}
return
this
;
}
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
Builder
addAllSpans
(
java
.
lang
.
Iterable
<?
extends
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
>
values
)
{
if
(
spansBuilder_
==
null
)
{
ensureSpansIsMutable
();
com
.
google
.
protobuf
.
AbstractMessageLite
.
Builder
.
addAll
(
values
,
spans_
);
onChanged
();
}
else
{
spansBuilder_
.
addAllMessages
(
values
);
}
return
this
;
}
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
Builder
clearSpans
()
{
if
(
spansBuilder_
==
null
)
{
spans_
=
java
.
util
.
Collections
.
emptyList
();
bitField0_
=
(
bitField0_
&
~
0x00000040
);
onChanged
();
}
else
{
spansBuilder_
.
clear
();
}
return
this
;
}
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
Builder
removeSpans
(
int
index
)
{
if
(
spansBuilder_
==
null
)
{
ensureSpansIsMutable
();
spans_
.
remove
(
index
);
onChanged
();
}
else
{
spansBuilder_
.
remove
(
index
);
}
return
this
;
}
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
.
Builder
getSpansBuilder
(
int
index
)
{
return
getSpansFieldBuilder
().
getBuilder
(
index
);
}
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessageOrBuilder
getSpansOrBuilder
(
int
index
)
{
if
(
spansBuilder_
==
null
)
{
return
spans_
.
get
(
index
);
}
else
{
return
spansBuilder_
.
getMessageOrBuilder
(
index
);
}
}
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
java
.
util
.
List
<?
extends
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessageOrBuilder
>
getSpansOrBuilderList
()
{
if
(
spansBuilder_
!=
null
)
{
return
spansBuilder_
.
getMessageOrBuilderList
();
}
else
{
return
java
.
util
.
Collections
.
unmodifiableList
(
spans_
);
}
}
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
.
Builder
addSpansBuilder
()
{
return
getSpansFieldBuilder
().
addBuilder
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
.
getDefaultInstance
());
}
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
.
Builder
addSpansBuilder
(
int
index
)
{
return
getSpansFieldBuilder
().
addBuilder
(
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
.
getDefaultInstance
());
}
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
public
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
.
Builder
>
getSpansBuilderList
()
{
return
getSpansFieldBuilder
().
getBuilderList
();
}
private
com
.
google
.
protobuf
.
RepeatedFieldBuilderV3
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
.
Builder
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessageOrBuilder
>
getSpansFieldBuilder
()
{
if
(
spansBuilder_
==
null
)
{
spansBuilder_
=
new
com
.
google
.
protobuf
.
RepeatedFieldBuilderV3
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
.
Builder
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessageOrBuilder
>(
spans_
,
((
bitField0_
&
0x00000040
)
==
0x00000040
),
getParentForChildren
(),
isClean
());
spans_
=
null
;
}
return
spansBuilder_
;
}
public
final
Builder
setUnknownFields
(
final
com
.
google
.
protobuf
.
UnknownFieldSet
unknownFields
)
{
return
this
;
}
public
final
Builder
mergeUnknownFields
(
final
com
.
google
.
protobuf
.
UnknownFieldSet
unknownFields
)
{
return
this
;
}
// @@protoc_insertion_point(builder_scope:SegmentMessage)
}
// @@protoc_insertion_point(class_scope:SegmentMessage)
private
static
final
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
DEFAULT_INSTANCE
;
static
{
DEFAULT_INSTANCE
=
new
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
();
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
getDefaultInstance
()
{
return
DEFAULT_INSTANCE
;
}
private
static
final
com
.
google
.
protobuf
.
Parser
<
SegmentMessage
>
PARSER
=
new
com
.
google
.
protobuf
.
AbstractParser
<
SegmentMessage
>()
{
public
SegmentMessage
parsePartialFrom
(
com
.
google
.
protobuf
.
CodedInputStream
input
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
new
SegmentMessage
(
input
,
extensionRegistry
);
}
};
public
static
com
.
google
.
protobuf
.
Parser
<
SegmentMessage
>
parser
()
{
return
PARSER
;
}
@java
.
lang
.
Override
public
com
.
google
.
protobuf
.
Parser
<
SegmentMessage
>
getParserForType
()
{
return
PARSER
;
}
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentMessage
getDefaultInstanceForType
()
{
return
DEFAULT_INSTANCE
;
}
}
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/proto/SegmentMessageOrBuilder.java
0 → 100644
浏览文件 @
7bffd0bf
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: trace.proto
package
com.a.eye.skywalking.trace.proto
;
public
interface
SegmentMessageOrBuilder
extends
// @@protoc_insertion_point(interface_extends:SegmentMessage)
com
.
google
.
protobuf
.
MessageOrBuilder
{
/**
* <code>optional string traceSegmentId = 1;</code>
*/
java
.
lang
.
String
getTraceSegmentId
();
/**
* <code>optional string traceSegmentId = 1;</code>
*/
com
.
google
.
protobuf
.
ByteString
getTraceSegmentIdBytes
();
/**
* <code>optional int64 startTime = 2;</code>
*/
long
getStartTime
();
/**
* <code>optional int64 endTime = 3;</code>
*/
long
getEndTime
();
/**
* <code>optional string applicationCode = 4;</code>
*/
java
.
lang
.
String
getApplicationCode
();
/**
* <code>optional string applicationCode = 4;</code>
*/
com
.
google
.
protobuf
.
ByteString
getApplicationCodeBytes
();
/**
* <code>optional .SegmentRefMessage primaryRef = 5;</code>
*/
boolean
hasPrimaryRef
();
/**
* <code>optional .SegmentRefMessage primaryRef = 5;</code>
*/
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
getPrimaryRef
();
/**
* <code>optional .SegmentRefMessage primaryRef = 5;</code>
*/
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessageOrBuilder
getPrimaryRefOrBuilder
();
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
>
getRefsList
();
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
getRefs
(
int
index
);
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
int
getRefsCount
();
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
java
.
util
.
List
<?
extends
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessageOrBuilder
>
getRefsOrBuilderList
();
/**
* <code>repeated .SegmentRefMessage refs = 6;</code>
*/
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessageOrBuilder
getRefsOrBuilder
(
int
index
);
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
>
getSpansList
();
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
getSpans
(
int
index
);
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
int
getSpansCount
();
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
java
.
util
.
List
<?
extends
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessageOrBuilder
>
getSpansOrBuilderList
();
/**
* <code>repeated .SpanMessage spans = 7;</code>
*/
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessageOrBuilder
getSpansOrBuilder
(
int
index
);
}
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/proto/SegmentRefMessage.java
0 → 100644
浏览文件 @
7bffd0bf
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: trace.proto
package
com.a.eye.skywalking.trace.proto
;
/**
* Protobuf type {@code SegmentRefMessage}
*/
public
final
class
SegmentRefMessage
extends
com
.
google
.
protobuf
.
GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:SegmentRefMessage)
SegmentRefMessageOrBuilder
{
// Use SegmentRefMessage.newBuilder() to construct.
private
SegmentRefMessage
(
com
.
google
.
protobuf
.
GeneratedMessageV3
.
Builder
<?>
builder
)
{
super
(
builder
);
}
private
SegmentRefMessage
()
{
traceSegmentId_
=
""
;
spanId_
=
0
;
applicationCode_
=
""
;
peerHost_
=
""
;
}
@java
.
lang
.
Override
public
final
com
.
google
.
protobuf
.
UnknownFieldSet
getUnknownFields
()
{
return
com
.
google
.
protobuf
.
UnknownFieldSet
.
getDefaultInstance
();
}
private
SegmentRefMessage
(
com
.
google
.
protobuf
.
CodedInputStream
input
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
this
();
int
mutable_bitField0_
=
0
;
try
{
boolean
done
=
false
;
while
(!
done
)
{
int
tag
=
input
.
readTag
();
switch
(
tag
)
{
case
0
:
done
=
true
;
break
;
default
:
{
if
(!
input
.
skipField
(
tag
))
{
done
=
true
;
}
break
;
}
case
10
:
{
java
.
lang
.
String
s
=
input
.
readStringRequireUtf8
();
traceSegmentId_
=
s
;
break
;
}
case
16
:
{
spanId_
=
input
.
readInt32
();
break
;
}
case
26
:
{
java
.
lang
.
String
s
=
input
.
readStringRequireUtf8
();
applicationCode_
=
s
;
break
;
}
case
34
:
{
java
.
lang
.
String
s
=
input
.
readStringRequireUtf8
();
peerHost_
=
s
;
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
{
makeExtensionsImmutable
();
}
}
public
static
final
com
.
google
.
protobuf
.
Descriptors
.
Descriptor
getDescriptor
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_SegmentRefMessage_descriptor
;
}
protected
com
.
google
.
protobuf
.
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_SegmentRefMessage_fieldAccessorTable
.
ensureFieldAccessorsInitialized
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
class
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
Builder
.
class
);
}
public
static
final
int
TRACESEGMENTID_FIELD_NUMBER
=
1
;
private
volatile
java
.
lang
.
Object
traceSegmentId_
;
/**
* <code>optional string traceSegmentId = 1;</code>
*/
public
java
.
lang
.
String
getTraceSegmentId
()
{
java
.
lang
.
Object
ref
=
traceSegmentId_
;
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
();
traceSegmentId_
=
s
;
return
s
;
}
}
/**
* <code>optional string traceSegmentId = 1;</code>
*/
public
com
.
google
.
protobuf
.
ByteString
getTraceSegmentIdBytes
()
{
java
.
lang
.
Object
ref
=
traceSegmentId_
;
if
(
ref
instanceof
java
.
lang
.
String
)
{
com
.
google
.
protobuf
.
ByteString
b
=
com
.
google
.
protobuf
.
ByteString
.
copyFromUtf8
(
(
java
.
lang
.
String
)
ref
);
traceSegmentId_
=
b
;
return
b
;
}
else
{
return
(
com
.
google
.
protobuf
.
ByteString
)
ref
;
}
}
public
static
final
int
SPANID_FIELD_NUMBER
=
2
;
private
int
spanId_
;
/**
* <code>optional int32 spanId = 2;</code>
*/
public
int
getSpanId
()
{
return
spanId_
;
}
public
static
final
int
APPLICATIONCODE_FIELD_NUMBER
=
3
;
private
volatile
java
.
lang
.
Object
applicationCode_
;
/**
* <code>optional string applicationCode = 3;</code>
*/
public
java
.
lang
.
String
getApplicationCode
()
{
java
.
lang
.
Object
ref
=
applicationCode_
;
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
();
applicationCode_
=
s
;
return
s
;
}
}
/**
* <code>optional string applicationCode = 3;</code>
*/
public
com
.
google
.
protobuf
.
ByteString
getApplicationCodeBytes
()
{
java
.
lang
.
Object
ref
=
applicationCode_
;
if
(
ref
instanceof
java
.
lang
.
String
)
{
com
.
google
.
protobuf
.
ByteString
b
=
com
.
google
.
protobuf
.
ByteString
.
copyFromUtf8
(
(
java
.
lang
.
String
)
ref
);
applicationCode_
=
b
;
return
b
;
}
else
{
return
(
com
.
google
.
protobuf
.
ByteString
)
ref
;
}
}
public
static
final
int
PEERHOST_FIELD_NUMBER
=
4
;
private
volatile
java
.
lang
.
Object
peerHost_
;
/**
* <code>optional string peerHost = 4;</code>
*/
public
java
.
lang
.
String
getPeerHost
()
{
java
.
lang
.
Object
ref
=
peerHost_
;
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
();
peerHost_
=
s
;
return
s
;
}
}
/**
* <code>optional string peerHost = 4;</code>
*/
public
com
.
google
.
protobuf
.
ByteString
getPeerHostBytes
()
{
java
.
lang
.
Object
ref
=
peerHost_
;
if
(
ref
instanceof
java
.
lang
.
String
)
{
com
.
google
.
protobuf
.
ByteString
b
=
com
.
google
.
protobuf
.
ByteString
.
copyFromUtf8
(
(
java
.
lang
.
String
)
ref
);
peerHost_
=
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
;
memoizedIsInitialized
=
1
;
return
true
;
}
public
void
writeTo
(
com
.
google
.
protobuf
.
CodedOutputStream
output
)
throws
java
.
io
.
IOException
{
if
(!
getTraceSegmentIdBytes
().
isEmpty
())
{
com
.
google
.
protobuf
.
GeneratedMessageV3
.
writeString
(
output
,
1
,
traceSegmentId_
);
}
if
(
spanId_
!=
0
)
{
output
.
writeInt32
(
2
,
spanId_
);
}
if
(!
getApplicationCodeBytes
().
isEmpty
())
{
com
.
google
.
protobuf
.
GeneratedMessageV3
.
writeString
(
output
,
3
,
applicationCode_
);
}
if
(!
getPeerHostBytes
().
isEmpty
())
{
com
.
google
.
protobuf
.
GeneratedMessageV3
.
writeString
(
output
,
4
,
peerHost_
);
}
}
public
int
getSerializedSize
()
{
int
size
=
memoizedSize
;
if
(
size
!=
-
1
)
return
size
;
size
=
0
;
if
(!
getTraceSegmentIdBytes
().
isEmpty
())
{
size
+=
com
.
google
.
protobuf
.
GeneratedMessageV3
.
computeStringSize
(
1
,
traceSegmentId_
);
}
if
(
spanId_
!=
0
)
{
size
+=
com
.
google
.
protobuf
.
CodedOutputStream
.
computeInt32Size
(
2
,
spanId_
);
}
if
(!
getApplicationCodeBytes
().
isEmpty
())
{
size
+=
com
.
google
.
protobuf
.
GeneratedMessageV3
.
computeStringSize
(
3
,
applicationCode_
);
}
if
(!
getPeerHostBytes
().
isEmpty
())
{
size
+=
com
.
google
.
protobuf
.
GeneratedMessageV3
.
computeStringSize
(
4
,
peerHost_
);
}
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
))
{
return
super
.
equals
(
obj
);
}
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
other
=
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
)
obj
;
boolean
result
=
true
;
result
=
result
&&
getTraceSegmentId
()
.
equals
(
other
.
getTraceSegmentId
());
result
=
result
&&
(
getSpanId
()
==
other
.
getSpanId
());
result
=
result
&&
getApplicationCode
()
.
equals
(
other
.
getApplicationCode
());
result
=
result
&&
getPeerHost
()
.
equals
(
other
.
getPeerHost
());
return
result
;
}
@java
.
lang
.
Override
public
int
hashCode
()
{
if
(
memoizedHashCode
!=
0
)
{
return
memoizedHashCode
;
}
int
hash
=
41
;
hash
=
(
19
*
hash
)
+
getDescriptorForType
().
hashCode
();
hash
=
(
37
*
hash
)
+
TRACESEGMENTID_FIELD_NUMBER
;
hash
=
(
53
*
hash
)
+
getTraceSegmentId
().
hashCode
();
hash
=
(
37
*
hash
)
+
SPANID_FIELD_NUMBER
;
hash
=
(
53
*
hash
)
+
getSpanId
();
hash
=
(
37
*
hash
)
+
APPLICATIONCODE_FIELD_NUMBER
;
hash
=
(
53
*
hash
)
+
getApplicationCode
().
hashCode
();
hash
=
(
37
*
hash
)
+
PEERHOST_FIELD_NUMBER
;
hash
=
(
53
*
hash
)
+
getPeerHost
().
hashCode
();
hash
=
(
29
*
hash
)
+
unknownFields
.
hashCode
();
memoizedHashCode
=
hash
;
return
hash
;
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
parseFrom
(
com
.
google
.
protobuf
.
ByteString
data
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
PARSER
.
parseFrom
(
data
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
parseFrom
(
com
.
google
.
protobuf
.
ByteString
data
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
PARSER
.
parseFrom
(
data
,
extensionRegistry
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
parseFrom
(
byte
[]
data
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
PARSER
.
parseFrom
(
data
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
parseFrom
(
byte
[]
data
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
PARSER
.
parseFrom
(
data
,
extensionRegistry
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
parseFrom
(
java
.
io
.
InputStream
input
)
throws
java
.
io
.
IOException
{
return
com
.
google
.
protobuf
.
GeneratedMessageV3
.
parseWithIOException
(
PARSER
,
input
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
parseDelimitedFrom
(
java
.
io
.
InputStream
input
)
throws
java
.
io
.
IOException
{
return
com
.
google
.
protobuf
.
GeneratedMessageV3
.
parseDelimitedWithIOException
(
PARSER
,
input
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
parseFrom
(
com
.
google
.
protobuf
.
CodedInputStream
input
)
throws
java
.
io
.
IOException
{
return
com
.
google
.
protobuf
.
GeneratedMessageV3
.
parseWithIOException
(
PARSER
,
input
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
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 SegmentRefMessage}
*/
public
static
final
class
Builder
extends
com
.
google
.
protobuf
.
GeneratedMessageV3
.
Builder
<
Builder
>
implements
// @@protoc_insertion_point(builder_implements:SegmentRefMessage)
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessageOrBuilder
{
public
static
final
com
.
google
.
protobuf
.
Descriptors
.
Descriptor
getDescriptor
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_SegmentRefMessage_descriptor
;
}
protected
com
.
google
.
protobuf
.
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_SegmentRefMessage_fieldAccessorTable
.
ensureFieldAccessorsInitialized
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
class
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
Builder
.
class
);
}
// Construct using com.a.eye.skywalking.trace.proto.SegmentRefMessage.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
();
traceSegmentId_
=
""
;
spanId_
=
0
;
applicationCode_
=
""
;
peerHost_
=
""
;
return
this
;
}
public
com
.
google
.
protobuf
.
Descriptors
.
Descriptor
getDescriptorForType
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_SegmentRefMessage_descriptor
;
}
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
getDefaultInstanceForType
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
getDefaultInstance
();
}
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
build
()
{
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
result
=
buildPartial
();
if
(!
result
.
isInitialized
())
{
throw
newUninitializedMessageException
(
result
);
}
return
result
;
}
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
buildPartial
()
{
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
result
=
new
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
(
this
);
result
.
traceSegmentId_
=
traceSegmentId_
;
result
.
spanId_
=
spanId_
;
result
.
applicationCode_
=
applicationCode_
;
result
.
peerHost_
=
peerHost_
;
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
)
{
return
mergeFrom
((
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
)
other
);
}
else
{
super
.
mergeFrom
(
other
);
return
this
;
}
}
public
Builder
mergeFrom
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
other
)
{
if
(
other
==
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
.
getDefaultInstance
())
return
this
;
if
(!
other
.
getTraceSegmentId
().
isEmpty
())
{
traceSegmentId_
=
other
.
traceSegmentId_
;
onChanged
();
}
if
(
other
.
getSpanId
()
!=
0
)
{
setSpanId
(
other
.
getSpanId
());
}
if
(!
other
.
getApplicationCode
().
isEmpty
())
{
applicationCode_
=
other
.
applicationCode_
;
onChanged
();
}
if
(!
other
.
getPeerHost
().
isEmpty
())
{
peerHost_
=
other
.
peerHost_
;
onChanged
();
}
onChanged
();
return
this
;
}
public
final
boolean
isInitialized
()
{
return
true
;
}
public
Builder
mergeFrom
(
com
.
google
.
protobuf
.
CodedInputStream
input
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
java
.
io
.
IOException
{
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
parsedMessage
=
null
;
try
{
parsedMessage
=
PARSER
.
parsePartialFrom
(
input
,
extensionRegistry
);
}
catch
(
com
.
google
.
protobuf
.
InvalidProtocolBufferException
e
)
{
parsedMessage
=
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
)
e
.
getUnfinishedMessage
();
throw
e
.
unwrapIOException
();
}
finally
{
if
(
parsedMessage
!=
null
)
{
mergeFrom
(
parsedMessage
);
}
}
return
this
;
}
private
java
.
lang
.
Object
traceSegmentId_
=
""
;
/**
* <code>optional string traceSegmentId = 1;</code>
*/
public
java
.
lang
.
String
getTraceSegmentId
()
{
java
.
lang
.
Object
ref
=
traceSegmentId_
;
if
(!(
ref
instanceof
java
.
lang
.
String
))
{
com
.
google
.
protobuf
.
ByteString
bs
=
(
com
.
google
.
protobuf
.
ByteString
)
ref
;
java
.
lang
.
String
s
=
bs
.
toStringUtf8
();
traceSegmentId_
=
s
;
return
s
;
}
else
{
return
(
java
.
lang
.
String
)
ref
;
}
}
/**
* <code>optional string traceSegmentId = 1;</code>
*/
public
com
.
google
.
protobuf
.
ByteString
getTraceSegmentIdBytes
()
{
java
.
lang
.
Object
ref
=
traceSegmentId_
;
if
(
ref
instanceof
String
)
{
com
.
google
.
protobuf
.
ByteString
b
=
com
.
google
.
protobuf
.
ByteString
.
copyFromUtf8
(
(
java
.
lang
.
String
)
ref
);
traceSegmentId_
=
b
;
return
b
;
}
else
{
return
(
com
.
google
.
protobuf
.
ByteString
)
ref
;
}
}
/**
* <code>optional string traceSegmentId = 1;</code>
*/
public
Builder
setTraceSegmentId
(
java
.
lang
.
String
value
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
traceSegmentId_
=
value
;
onChanged
();
return
this
;
}
/**
* <code>optional string traceSegmentId = 1;</code>
*/
public
Builder
clearTraceSegmentId
()
{
traceSegmentId_
=
getDefaultInstance
().
getTraceSegmentId
();
onChanged
();
return
this
;
}
/**
* <code>optional string traceSegmentId = 1;</code>
*/
public
Builder
setTraceSegmentIdBytes
(
com
.
google
.
protobuf
.
ByteString
value
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
checkByteStringIsUtf8
(
value
);
traceSegmentId_
=
value
;
onChanged
();
return
this
;
}
private
int
spanId_
;
/**
* <code>optional int32 spanId = 2;</code>
*/
public
int
getSpanId
()
{
return
spanId_
;
}
/**
* <code>optional int32 spanId = 2;</code>
*/
public
Builder
setSpanId
(
int
value
)
{
spanId_
=
value
;
onChanged
();
return
this
;
}
/**
* <code>optional int32 spanId = 2;</code>
*/
public
Builder
clearSpanId
()
{
spanId_
=
0
;
onChanged
();
return
this
;
}
private
java
.
lang
.
Object
applicationCode_
=
""
;
/**
* <code>optional string applicationCode = 3;</code>
*/
public
java
.
lang
.
String
getApplicationCode
()
{
java
.
lang
.
Object
ref
=
applicationCode_
;
if
(!(
ref
instanceof
java
.
lang
.
String
))
{
com
.
google
.
protobuf
.
ByteString
bs
=
(
com
.
google
.
protobuf
.
ByteString
)
ref
;
java
.
lang
.
String
s
=
bs
.
toStringUtf8
();
applicationCode_
=
s
;
return
s
;
}
else
{
return
(
java
.
lang
.
String
)
ref
;
}
}
/**
* <code>optional string applicationCode = 3;</code>
*/
public
com
.
google
.
protobuf
.
ByteString
getApplicationCodeBytes
()
{
java
.
lang
.
Object
ref
=
applicationCode_
;
if
(
ref
instanceof
String
)
{
com
.
google
.
protobuf
.
ByteString
b
=
com
.
google
.
protobuf
.
ByteString
.
copyFromUtf8
(
(
java
.
lang
.
String
)
ref
);
applicationCode_
=
b
;
return
b
;
}
else
{
return
(
com
.
google
.
protobuf
.
ByteString
)
ref
;
}
}
/**
* <code>optional string applicationCode = 3;</code>
*/
public
Builder
setApplicationCode
(
java
.
lang
.
String
value
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
applicationCode_
=
value
;
onChanged
();
return
this
;
}
/**
* <code>optional string applicationCode = 3;</code>
*/
public
Builder
clearApplicationCode
()
{
applicationCode_
=
getDefaultInstance
().
getApplicationCode
();
onChanged
();
return
this
;
}
/**
* <code>optional string applicationCode = 3;</code>
*/
public
Builder
setApplicationCodeBytes
(
com
.
google
.
protobuf
.
ByteString
value
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
checkByteStringIsUtf8
(
value
);
applicationCode_
=
value
;
onChanged
();
return
this
;
}
private
java
.
lang
.
Object
peerHost_
=
""
;
/**
* <code>optional string peerHost = 4;</code>
*/
public
java
.
lang
.
String
getPeerHost
()
{
java
.
lang
.
Object
ref
=
peerHost_
;
if
(!(
ref
instanceof
java
.
lang
.
String
))
{
com
.
google
.
protobuf
.
ByteString
bs
=
(
com
.
google
.
protobuf
.
ByteString
)
ref
;
java
.
lang
.
String
s
=
bs
.
toStringUtf8
();
peerHost_
=
s
;
return
s
;
}
else
{
return
(
java
.
lang
.
String
)
ref
;
}
}
/**
* <code>optional string peerHost = 4;</code>
*/
public
com
.
google
.
protobuf
.
ByteString
getPeerHostBytes
()
{
java
.
lang
.
Object
ref
=
peerHost_
;
if
(
ref
instanceof
String
)
{
com
.
google
.
protobuf
.
ByteString
b
=
com
.
google
.
protobuf
.
ByteString
.
copyFromUtf8
(
(
java
.
lang
.
String
)
ref
);
peerHost_
=
b
;
return
b
;
}
else
{
return
(
com
.
google
.
protobuf
.
ByteString
)
ref
;
}
}
/**
* <code>optional string peerHost = 4;</code>
*/
public
Builder
setPeerHost
(
java
.
lang
.
String
value
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
peerHost_
=
value
;
onChanged
();
return
this
;
}
/**
* <code>optional string peerHost = 4;</code>
*/
public
Builder
clearPeerHost
()
{
peerHost_
=
getDefaultInstance
().
getPeerHost
();
onChanged
();
return
this
;
}
/**
* <code>optional string peerHost = 4;</code>
*/
public
Builder
setPeerHostBytes
(
com
.
google
.
protobuf
.
ByteString
value
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
checkByteStringIsUtf8
(
value
);
peerHost_
=
value
;
onChanged
();
return
this
;
}
public
final
Builder
setUnknownFields
(
final
com
.
google
.
protobuf
.
UnknownFieldSet
unknownFields
)
{
return
this
;
}
public
final
Builder
mergeUnknownFields
(
final
com
.
google
.
protobuf
.
UnknownFieldSet
unknownFields
)
{
return
this
;
}
// @@protoc_insertion_point(builder_scope:SegmentRefMessage)
}
// @@protoc_insertion_point(class_scope:SegmentRefMessage)
private
static
final
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
DEFAULT_INSTANCE
;
static
{
DEFAULT_INSTANCE
=
new
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
();
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
getDefaultInstance
()
{
return
DEFAULT_INSTANCE
;
}
private
static
final
com
.
google
.
protobuf
.
Parser
<
SegmentRefMessage
>
PARSER
=
new
com
.
google
.
protobuf
.
AbstractParser
<
SegmentRefMessage
>()
{
public
SegmentRefMessage
parsePartialFrom
(
com
.
google
.
protobuf
.
CodedInputStream
input
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
new
SegmentRefMessage
(
input
,
extensionRegistry
);
}
};
public
static
com
.
google
.
protobuf
.
Parser
<
SegmentRefMessage
>
parser
()
{
return
PARSER
;
}
@java
.
lang
.
Override
public
com
.
google
.
protobuf
.
Parser
<
SegmentRefMessage
>
getParserForType
()
{
return
PARSER
;
}
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SegmentRefMessage
getDefaultInstanceForType
()
{
return
DEFAULT_INSTANCE
;
}
}
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/proto/SegmentRefMessageOrBuilder.java
0 → 100644
浏览文件 @
7bffd0bf
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: trace.proto
package
com.a.eye.skywalking.trace.proto
;
public
interface
SegmentRefMessageOrBuilder
extends
// @@protoc_insertion_point(interface_extends:SegmentRefMessage)
com
.
google
.
protobuf
.
MessageOrBuilder
{
/**
* <code>optional string traceSegmentId = 1;</code>
*/
java
.
lang
.
String
getTraceSegmentId
();
/**
* <code>optional string traceSegmentId = 1;</code>
*/
com
.
google
.
protobuf
.
ByteString
getTraceSegmentIdBytes
();
/**
* <code>optional int32 spanId = 2;</code>
*/
int
getSpanId
();
/**
* <code>optional string applicationCode = 3;</code>
*/
java
.
lang
.
String
getApplicationCode
();
/**
* <code>optional string applicationCode = 3;</code>
*/
com
.
google
.
protobuf
.
ByteString
getApplicationCodeBytes
();
/**
* <code>optional string peerHost = 4;</code>
*/
java
.
lang
.
String
getPeerHost
();
/**
* <code>optional string peerHost = 4;</code>
*/
com
.
google
.
protobuf
.
ByteString
getPeerHostBytes
();
}
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/proto/SpanMessage.java
0 → 100644
浏览文件 @
7bffd0bf
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: trace.proto
package
com.a.eye.skywalking.trace.proto
;
/**
* Protobuf type {@code SpanMessage}
*/
public
final
class
SpanMessage
extends
com
.
google
.
protobuf
.
GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:SpanMessage)
SpanMessageOrBuilder
{
// Use SpanMessage.newBuilder() to construct.
private
SpanMessage
(
com
.
google
.
protobuf
.
GeneratedMessageV3
.
Builder
<?>
builder
)
{
super
(
builder
);
}
private
SpanMessage
()
{
spanId_
=
0
;
startTime_
=
0L
;
endTime_
=
0L
;
operationName_
=
""
;
tags_
=
java
.
util
.
Collections
.
emptyList
();
logs_
=
java
.
util
.
Collections
.
emptyList
();
}
@java
.
lang
.
Override
public
final
com
.
google
.
protobuf
.
UnknownFieldSet
getUnknownFields
()
{
return
com
.
google
.
protobuf
.
UnknownFieldSet
.
getDefaultInstance
();
}
private
SpanMessage
(
com
.
google
.
protobuf
.
CodedInputStream
input
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
this
();
int
mutable_bitField0_
=
0
;
try
{
boolean
done
=
false
;
while
(!
done
)
{
int
tag
=
input
.
readTag
();
switch
(
tag
)
{
case
0
:
done
=
true
;
break
;
default
:
{
if
(!
input
.
skipField
(
tag
))
{
done
=
true
;
}
break
;
}
case
8
:
{
spanId_
=
input
.
readInt32
();
break
;
}
case
16
:
{
startTime_
=
input
.
readInt64
();
break
;
}
case
24
:
{
endTime_
=
input
.
readInt64
();
break
;
}
case
34
:
{
java
.
lang
.
String
s
=
input
.
readStringRequireUtf8
();
operationName_
=
s
;
break
;
}
case
42
:
{
if
(!((
mutable_bitField0_
&
0x00000010
)
==
0x00000010
))
{
tags_
=
new
java
.
util
.
ArrayList
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
>();
mutable_bitField0_
|=
0x00000010
;
}
tags_
.
add
(
input
.
readMessage
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
parser
(),
extensionRegistry
));
break
;
}
case
50
:
{
if
(!((
mutable_bitField0_
&
0x00000020
)
==
0x00000020
))
{
logs_
=
new
java
.
util
.
ArrayList
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
>();
mutable_bitField0_
|=
0x00000020
;
}
logs_
.
add
(
input
.
readMessage
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
.
parser
(),
extensionRegistry
));
break
;
}
}
}
}
catch
(
com
.
google
.
protobuf
.
InvalidProtocolBufferException
e
)
{
throw
e
.
setUnfinishedMessage
(
this
);
}
catch
(
java
.
io
.
IOException
e
)
{
throw
new
com
.
google
.
protobuf
.
InvalidProtocolBufferException
(
e
).
setUnfinishedMessage
(
this
);
}
finally
{
if
(((
mutable_bitField0_
&
0x00000010
)
==
0x00000010
))
{
tags_
=
java
.
util
.
Collections
.
unmodifiableList
(
tags_
);
}
if
(((
mutable_bitField0_
&
0x00000020
)
==
0x00000020
))
{
logs_
=
java
.
util
.
Collections
.
unmodifiableList
(
logs_
);
}
makeExtensionsImmutable
();
}
}
public
static
final
com
.
google
.
protobuf
.
Descriptors
.
Descriptor
getDescriptor
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_SpanMessage_descriptor
;
}
protected
com
.
google
.
protobuf
.
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_SpanMessage_fieldAccessorTable
.
ensureFieldAccessorsInitialized
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
.
class
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
.
Builder
.
class
);
}
private
int
bitField0_
;
public
static
final
int
SPANID_FIELD_NUMBER
=
1
;
private
int
spanId_
;
/**
* <code>optional int32 spanId = 1;</code>
*/
public
int
getSpanId
()
{
return
spanId_
;
}
public
static
final
int
STARTTIME_FIELD_NUMBER
=
2
;
private
long
startTime_
;
/**
* <code>optional int64 startTime = 2;</code>
*/
public
long
getStartTime
()
{
return
startTime_
;
}
public
static
final
int
ENDTIME_FIELD_NUMBER
=
3
;
private
long
endTime_
;
/**
* <code>optional int64 endTime = 3;</code>
*/
public
long
getEndTime
()
{
return
endTime_
;
}
public
static
final
int
OPERATIONNAME_FIELD_NUMBER
=
4
;
private
volatile
java
.
lang
.
Object
operationName_
;
/**
* <code>optional string operationName = 4;</code>
*/
public
java
.
lang
.
String
getOperationName
()
{
java
.
lang
.
Object
ref
=
operationName_
;
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
();
operationName_
=
s
;
return
s
;
}
}
/**
* <code>optional string operationName = 4;</code>
*/
public
com
.
google
.
protobuf
.
ByteString
getOperationNameBytes
()
{
java
.
lang
.
Object
ref
=
operationName_
;
if
(
ref
instanceof
java
.
lang
.
String
)
{
com
.
google
.
protobuf
.
ByteString
b
=
com
.
google
.
protobuf
.
ByteString
.
copyFromUtf8
(
(
java
.
lang
.
String
)
ref
);
operationName_
=
b
;
return
b
;
}
else
{
return
(
com
.
google
.
protobuf
.
ByteString
)
ref
;
}
}
public
static
final
int
TAGS_FIELD_NUMBER
=
5
;
private
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
>
tags_
;
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
>
getTagsList
()
{
return
tags_
;
}
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
java
.
util
.
List
<?
extends
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValueOrBuilder
>
getTagsOrBuilderList
()
{
return
tags_
;
}
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
int
getTagsCount
()
{
return
tags_
.
size
();
}
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
getTags
(
int
index
)
{
return
tags_
.
get
(
index
);
}
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValueOrBuilder
getTagsOrBuilder
(
int
index
)
{
return
tags_
.
get
(
index
);
}
public
static
final
int
LOGS_FIELD_NUMBER
=
6
;
private
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
>
logs_
;
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
>
getLogsList
()
{
return
logs_
;
}
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
java
.
util
.
List
<?
extends
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessageOrBuilder
>
getLogsOrBuilderList
()
{
return
logs_
;
}
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
int
getLogsCount
()
{
return
logs_
.
size
();
}
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
getLogs
(
int
index
)
{
return
logs_
.
get
(
index
);
}
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessageOrBuilder
getLogsOrBuilder
(
int
index
)
{
return
logs_
.
get
(
index
);
}
private
byte
memoizedIsInitialized
=
-
1
;
public
final
boolean
isInitialized
()
{
byte
isInitialized
=
memoizedIsInitialized
;
if
(
isInitialized
==
1
)
return
true
;
if
(
isInitialized
==
0
)
return
false
;
memoizedIsInitialized
=
1
;
return
true
;
}
public
void
writeTo
(
com
.
google
.
protobuf
.
CodedOutputStream
output
)
throws
java
.
io
.
IOException
{
if
(
spanId_
!=
0
)
{
output
.
writeInt32
(
1
,
spanId_
);
}
if
(
startTime_
!=
0L
)
{
output
.
writeInt64
(
2
,
startTime_
);
}
if
(
endTime_
!=
0L
)
{
output
.
writeInt64
(
3
,
endTime_
);
}
if
(!
getOperationNameBytes
().
isEmpty
())
{
com
.
google
.
protobuf
.
GeneratedMessageV3
.
writeString
(
output
,
4
,
operationName_
);
}
for
(
int
i
=
0
;
i
<
tags_
.
size
();
i
++)
{
output
.
writeMessage
(
5
,
tags_
.
get
(
i
));
}
for
(
int
i
=
0
;
i
<
logs_
.
size
();
i
++)
{
output
.
writeMessage
(
6
,
logs_
.
get
(
i
));
}
}
public
int
getSerializedSize
()
{
int
size
=
memoizedSize
;
if
(
size
!=
-
1
)
return
size
;
size
=
0
;
if
(
spanId_
!=
0
)
{
size
+=
com
.
google
.
protobuf
.
CodedOutputStream
.
computeInt32Size
(
1
,
spanId_
);
}
if
(
startTime_
!=
0L
)
{
size
+=
com
.
google
.
protobuf
.
CodedOutputStream
.
computeInt64Size
(
2
,
startTime_
);
}
if
(
endTime_
!=
0L
)
{
size
+=
com
.
google
.
protobuf
.
CodedOutputStream
.
computeInt64Size
(
3
,
endTime_
);
}
if
(!
getOperationNameBytes
().
isEmpty
())
{
size
+=
com
.
google
.
protobuf
.
GeneratedMessageV3
.
computeStringSize
(
4
,
operationName_
);
}
for
(
int
i
=
0
;
i
<
tags_
.
size
();
i
++)
{
size
+=
com
.
google
.
protobuf
.
CodedOutputStream
.
computeMessageSize
(
5
,
tags_
.
get
(
i
));
}
for
(
int
i
=
0
;
i
<
logs_
.
size
();
i
++)
{
size
+=
com
.
google
.
protobuf
.
CodedOutputStream
.
computeMessageSize
(
6
,
logs_
.
get
(
i
));
}
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
))
{
return
super
.
equals
(
obj
);
}
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
other
=
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
)
obj
;
boolean
result
=
true
;
result
=
result
&&
(
getSpanId
()
==
other
.
getSpanId
());
result
=
result
&&
(
getStartTime
()
==
other
.
getStartTime
());
result
=
result
&&
(
getEndTime
()
==
other
.
getEndTime
());
result
=
result
&&
getOperationName
()
.
equals
(
other
.
getOperationName
());
result
=
result
&&
getTagsList
()
.
equals
(
other
.
getTagsList
());
result
=
result
&&
getLogsList
()
.
equals
(
other
.
getLogsList
());
return
result
;
}
@java
.
lang
.
Override
public
int
hashCode
()
{
if
(
memoizedHashCode
!=
0
)
{
return
memoizedHashCode
;
}
int
hash
=
41
;
hash
=
(
19
*
hash
)
+
getDescriptorForType
().
hashCode
();
hash
=
(
37
*
hash
)
+
SPANID_FIELD_NUMBER
;
hash
=
(
53
*
hash
)
+
getSpanId
();
hash
=
(
37
*
hash
)
+
STARTTIME_FIELD_NUMBER
;
hash
=
(
53
*
hash
)
+
com
.
google
.
protobuf
.
Internal
.
hashLong
(
getStartTime
());
hash
=
(
37
*
hash
)
+
ENDTIME_FIELD_NUMBER
;
hash
=
(
53
*
hash
)
+
com
.
google
.
protobuf
.
Internal
.
hashLong
(
getEndTime
());
hash
=
(
37
*
hash
)
+
OPERATIONNAME_FIELD_NUMBER
;
hash
=
(
53
*
hash
)
+
getOperationName
().
hashCode
();
if
(
getTagsCount
()
>
0
)
{
hash
=
(
37
*
hash
)
+
TAGS_FIELD_NUMBER
;
hash
=
(
53
*
hash
)
+
getTagsList
().
hashCode
();
}
if
(
getLogsCount
()
>
0
)
{
hash
=
(
37
*
hash
)
+
LOGS_FIELD_NUMBER
;
hash
=
(
53
*
hash
)
+
getLogsList
().
hashCode
();
}
hash
=
(
29
*
hash
)
+
unknownFields
.
hashCode
();
memoizedHashCode
=
hash
;
return
hash
;
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
parseFrom
(
com
.
google
.
protobuf
.
ByteString
data
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
PARSER
.
parseFrom
(
data
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
parseFrom
(
com
.
google
.
protobuf
.
ByteString
data
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
PARSER
.
parseFrom
(
data
,
extensionRegistry
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
parseFrom
(
byte
[]
data
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
PARSER
.
parseFrom
(
data
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
parseFrom
(
byte
[]
data
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
PARSER
.
parseFrom
(
data
,
extensionRegistry
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
parseFrom
(
java
.
io
.
InputStream
input
)
throws
java
.
io
.
IOException
{
return
com
.
google
.
protobuf
.
GeneratedMessageV3
.
parseWithIOException
(
PARSER
,
input
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
parseDelimitedFrom
(
java
.
io
.
InputStream
input
)
throws
java
.
io
.
IOException
{
return
com
.
google
.
protobuf
.
GeneratedMessageV3
.
parseDelimitedWithIOException
(
PARSER
,
input
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
parseFrom
(
com
.
google
.
protobuf
.
CodedInputStream
input
)
throws
java
.
io
.
IOException
{
return
com
.
google
.
protobuf
.
GeneratedMessageV3
.
parseWithIOException
(
PARSER
,
input
);
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
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 SpanMessage}
*/
public
static
final
class
Builder
extends
com
.
google
.
protobuf
.
GeneratedMessageV3
.
Builder
<
Builder
>
implements
// @@protoc_insertion_point(builder_implements:SpanMessage)
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessageOrBuilder
{
public
static
final
com
.
google
.
protobuf
.
Descriptors
.
Descriptor
getDescriptor
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_SpanMessage_descriptor
;
}
protected
com
.
google
.
protobuf
.
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_SpanMessage_fieldAccessorTable
.
ensureFieldAccessorsInitialized
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
.
class
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
.
Builder
.
class
);
}
// Construct using com.a.eye.skywalking.trace.proto.SpanMessage.newBuilder()
private
Builder
()
{
maybeForceBuilderInitialization
();
}
private
Builder
(
com
.
google
.
protobuf
.
GeneratedMessageV3
.
BuilderParent
parent
)
{
super
(
parent
);
maybeForceBuilderInitialization
();
}
private
void
maybeForceBuilderInitialization
()
{
if
(
com
.
google
.
protobuf
.
GeneratedMessageV3
.
alwaysUseFieldBuilders
)
{
getTagsFieldBuilder
();
getLogsFieldBuilder
();
}
}
public
Builder
clear
()
{
super
.
clear
();
spanId_
=
0
;
startTime_
=
0L
;
endTime_
=
0L
;
operationName_
=
""
;
if
(
tagsBuilder_
==
null
)
{
tags_
=
java
.
util
.
Collections
.
emptyList
();
bitField0_
=
(
bitField0_
&
~
0x00000010
);
}
else
{
tagsBuilder_
.
clear
();
}
if
(
logsBuilder_
==
null
)
{
logs_
=
java
.
util
.
Collections
.
emptyList
();
bitField0_
=
(
bitField0_
&
~
0x00000020
);
}
else
{
logsBuilder_
.
clear
();
}
return
this
;
}
public
com
.
google
.
protobuf
.
Descriptors
.
Descriptor
getDescriptorForType
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
Trace
.
internal_static_SpanMessage_descriptor
;
}
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
getDefaultInstanceForType
()
{
return
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
.
getDefaultInstance
();
}
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
build
()
{
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
result
=
buildPartial
();
if
(!
result
.
isInitialized
())
{
throw
newUninitializedMessageException
(
result
);
}
return
result
;
}
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
buildPartial
()
{
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
result
=
new
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
(
this
);
int
from_bitField0_
=
bitField0_
;
int
to_bitField0_
=
0
;
result
.
spanId_
=
spanId_
;
result
.
startTime_
=
startTime_
;
result
.
endTime_
=
endTime_
;
result
.
operationName_
=
operationName_
;
if
(
tagsBuilder_
==
null
)
{
if
(((
bitField0_
&
0x00000010
)
==
0x00000010
))
{
tags_
=
java
.
util
.
Collections
.
unmodifiableList
(
tags_
);
bitField0_
=
(
bitField0_
&
~
0x00000010
);
}
result
.
tags_
=
tags_
;
}
else
{
result
.
tags_
=
tagsBuilder_
.
build
();
}
if
(
logsBuilder_
==
null
)
{
if
(((
bitField0_
&
0x00000020
)
==
0x00000020
))
{
logs_
=
java
.
util
.
Collections
.
unmodifiableList
(
logs_
);
bitField0_
=
(
bitField0_
&
~
0x00000020
);
}
result
.
logs_
=
logs_
;
}
else
{
result
.
logs_
=
logsBuilder_
.
build
();
}
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
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
)
{
return
mergeFrom
((
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
)
other
);
}
else
{
super
.
mergeFrom
(
other
);
return
this
;
}
}
public
Builder
mergeFrom
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
other
)
{
if
(
other
==
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
.
getDefaultInstance
())
return
this
;
if
(
other
.
getSpanId
()
!=
0
)
{
setSpanId
(
other
.
getSpanId
());
}
if
(
other
.
getStartTime
()
!=
0L
)
{
setStartTime
(
other
.
getStartTime
());
}
if
(
other
.
getEndTime
()
!=
0L
)
{
setEndTime
(
other
.
getEndTime
());
}
if
(!
other
.
getOperationName
().
isEmpty
())
{
operationName_
=
other
.
operationName_
;
onChanged
();
}
if
(
tagsBuilder_
==
null
)
{
if
(!
other
.
tags_
.
isEmpty
())
{
if
(
tags_
.
isEmpty
())
{
tags_
=
other
.
tags_
;
bitField0_
=
(
bitField0_
&
~
0x00000010
);
}
else
{
ensureTagsIsMutable
();
tags_
.
addAll
(
other
.
tags_
);
}
onChanged
();
}
}
else
{
if
(!
other
.
tags_
.
isEmpty
())
{
if
(
tagsBuilder_
.
isEmpty
())
{
tagsBuilder_
.
dispose
();
tagsBuilder_
=
null
;
tags_
=
other
.
tags_
;
bitField0_
=
(
bitField0_
&
~
0x00000010
);
tagsBuilder_
=
com
.
google
.
protobuf
.
GeneratedMessageV3
.
alwaysUseFieldBuilders
?
getTagsFieldBuilder
()
:
null
;
}
else
{
tagsBuilder_
.
addAllMessages
(
other
.
tags_
);
}
}
}
if
(
logsBuilder_
==
null
)
{
if
(!
other
.
logs_
.
isEmpty
())
{
if
(
logs_
.
isEmpty
())
{
logs_
=
other
.
logs_
;
bitField0_
=
(
bitField0_
&
~
0x00000020
);
}
else
{
ensureLogsIsMutable
();
logs_
.
addAll
(
other
.
logs_
);
}
onChanged
();
}
}
else
{
if
(!
other
.
logs_
.
isEmpty
())
{
if
(
logsBuilder_
.
isEmpty
())
{
logsBuilder_
.
dispose
();
logsBuilder_
=
null
;
logs_
=
other
.
logs_
;
bitField0_
=
(
bitField0_
&
~
0x00000020
);
logsBuilder_
=
com
.
google
.
protobuf
.
GeneratedMessageV3
.
alwaysUseFieldBuilders
?
getLogsFieldBuilder
()
:
null
;
}
else
{
logsBuilder_
.
addAllMessages
(
other
.
logs_
);
}
}
}
onChanged
();
return
this
;
}
public
final
boolean
isInitialized
()
{
return
true
;
}
public
Builder
mergeFrom
(
com
.
google
.
protobuf
.
CodedInputStream
input
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
java
.
io
.
IOException
{
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
parsedMessage
=
null
;
try
{
parsedMessage
=
PARSER
.
parsePartialFrom
(
input
,
extensionRegistry
);
}
catch
(
com
.
google
.
protobuf
.
InvalidProtocolBufferException
e
)
{
parsedMessage
=
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
)
e
.
getUnfinishedMessage
();
throw
e
.
unwrapIOException
();
}
finally
{
if
(
parsedMessage
!=
null
)
{
mergeFrom
(
parsedMessage
);
}
}
return
this
;
}
private
int
bitField0_
;
private
int
spanId_
;
/**
* <code>optional int32 spanId = 1;</code>
*/
public
int
getSpanId
()
{
return
spanId_
;
}
/**
* <code>optional int32 spanId = 1;</code>
*/
public
Builder
setSpanId
(
int
value
)
{
spanId_
=
value
;
onChanged
();
return
this
;
}
/**
* <code>optional int32 spanId = 1;</code>
*/
public
Builder
clearSpanId
()
{
spanId_
=
0
;
onChanged
();
return
this
;
}
private
long
startTime_
;
/**
* <code>optional int64 startTime = 2;</code>
*/
public
long
getStartTime
()
{
return
startTime_
;
}
/**
* <code>optional int64 startTime = 2;</code>
*/
public
Builder
setStartTime
(
long
value
)
{
startTime_
=
value
;
onChanged
();
return
this
;
}
/**
* <code>optional int64 startTime = 2;</code>
*/
public
Builder
clearStartTime
()
{
startTime_
=
0L
;
onChanged
();
return
this
;
}
private
long
endTime_
;
/**
* <code>optional int64 endTime = 3;</code>
*/
public
long
getEndTime
()
{
return
endTime_
;
}
/**
* <code>optional int64 endTime = 3;</code>
*/
public
Builder
setEndTime
(
long
value
)
{
endTime_
=
value
;
onChanged
();
return
this
;
}
/**
* <code>optional int64 endTime = 3;</code>
*/
public
Builder
clearEndTime
()
{
endTime_
=
0L
;
onChanged
();
return
this
;
}
private
java
.
lang
.
Object
operationName_
=
""
;
/**
* <code>optional string operationName = 4;</code>
*/
public
java
.
lang
.
String
getOperationName
()
{
java
.
lang
.
Object
ref
=
operationName_
;
if
(!(
ref
instanceof
java
.
lang
.
String
))
{
com
.
google
.
protobuf
.
ByteString
bs
=
(
com
.
google
.
protobuf
.
ByteString
)
ref
;
java
.
lang
.
String
s
=
bs
.
toStringUtf8
();
operationName_
=
s
;
return
s
;
}
else
{
return
(
java
.
lang
.
String
)
ref
;
}
}
/**
* <code>optional string operationName = 4;</code>
*/
public
com
.
google
.
protobuf
.
ByteString
getOperationNameBytes
()
{
java
.
lang
.
Object
ref
=
operationName_
;
if
(
ref
instanceof
String
)
{
com
.
google
.
protobuf
.
ByteString
b
=
com
.
google
.
protobuf
.
ByteString
.
copyFromUtf8
(
(
java
.
lang
.
String
)
ref
);
operationName_
=
b
;
return
b
;
}
else
{
return
(
com
.
google
.
protobuf
.
ByteString
)
ref
;
}
}
/**
* <code>optional string operationName = 4;</code>
*/
public
Builder
setOperationName
(
java
.
lang
.
String
value
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
operationName_
=
value
;
onChanged
();
return
this
;
}
/**
* <code>optional string operationName = 4;</code>
*/
public
Builder
clearOperationName
()
{
operationName_
=
getDefaultInstance
().
getOperationName
();
onChanged
();
return
this
;
}
/**
* <code>optional string operationName = 4;</code>
*/
public
Builder
setOperationNameBytes
(
com
.
google
.
protobuf
.
ByteString
value
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
checkByteStringIsUtf8
(
value
);
operationName_
=
value
;
onChanged
();
return
this
;
}
private
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
>
tags_
=
java
.
util
.
Collections
.
emptyList
();
private
void
ensureTagsIsMutable
()
{
if
(!((
bitField0_
&
0x00000010
)
==
0x00000010
))
{
tags_
=
new
java
.
util
.
ArrayList
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
>(
tags_
);
bitField0_
|=
0x00000010
;
}
}
private
com
.
google
.
protobuf
.
RepeatedFieldBuilderV3
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
Builder
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValueOrBuilder
>
tagsBuilder_
;
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
>
getTagsList
()
{
if
(
tagsBuilder_
==
null
)
{
return
java
.
util
.
Collections
.
unmodifiableList
(
tags_
);
}
else
{
return
tagsBuilder_
.
getMessageList
();
}
}
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
int
getTagsCount
()
{
if
(
tagsBuilder_
==
null
)
{
return
tags_
.
size
();
}
else
{
return
tagsBuilder_
.
getCount
();
}
}
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
getTags
(
int
index
)
{
if
(
tagsBuilder_
==
null
)
{
return
tags_
.
get
(
index
);
}
else
{
return
tagsBuilder_
.
getMessage
(
index
);
}
}
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
Builder
setTags
(
int
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
value
)
{
if
(
tagsBuilder_
==
null
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
ensureTagsIsMutable
();
tags_
.
set
(
index
,
value
);
onChanged
();
}
else
{
tagsBuilder_
.
setMessage
(
index
,
value
);
}
return
this
;
}
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
Builder
setTags
(
int
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
Builder
builderForValue
)
{
if
(
tagsBuilder_
==
null
)
{
ensureTagsIsMutable
();
tags_
.
set
(
index
,
builderForValue
.
build
());
onChanged
();
}
else
{
tagsBuilder_
.
setMessage
(
index
,
builderForValue
.
build
());
}
return
this
;
}
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
Builder
addTags
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
value
)
{
if
(
tagsBuilder_
==
null
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
ensureTagsIsMutable
();
tags_
.
add
(
value
);
onChanged
();
}
else
{
tagsBuilder_
.
addMessage
(
value
);
}
return
this
;
}
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
Builder
addTags
(
int
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
value
)
{
if
(
tagsBuilder_
==
null
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
ensureTagsIsMutable
();
tags_
.
add
(
index
,
value
);
onChanged
();
}
else
{
tagsBuilder_
.
addMessage
(
index
,
value
);
}
return
this
;
}
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
Builder
addTags
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
Builder
builderForValue
)
{
if
(
tagsBuilder_
==
null
)
{
ensureTagsIsMutable
();
tags_
.
add
(
builderForValue
.
build
());
onChanged
();
}
else
{
tagsBuilder_
.
addMessage
(
builderForValue
.
build
());
}
return
this
;
}
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
Builder
addTags
(
int
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
Builder
builderForValue
)
{
if
(
tagsBuilder_
==
null
)
{
ensureTagsIsMutable
();
tags_
.
add
(
index
,
builderForValue
.
build
());
onChanged
();
}
else
{
tagsBuilder_
.
addMessage
(
index
,
builderForValue
.
build
());
}
return
this
;
}
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
Builder
addAllTags
(
java
.
lang
.
Iterable
<?
extends
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
>
values
)
{
if
(
tagsBuilder_
==
null
)
{
ensureTagsIsMutable
();
com
.
google
.
protobuf
.
AbstractMessageLite
.
Builder
.
addAll
(
values
,
tags_
);
onChanged
();
}
else
{
tagsBuilder_
.
addAllMessages
(
values
);
}
return
this
;
}
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
Builder
clearTags
()
{
if
(
tagsBuilder_
==
null
)
{
tags_
=
java
.
util
.
Collections
.
emptyList
();
bitField0_
=
(
bitField0_
&
~
0x00000010
);
onChanged
();
}
else
{
tagsBuilder_
.
clear
();
}
return
this
;
}
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
Builder
removeTags
(
int
index
)
{
if
(
tagsBuilder_
==
null
)
{
ensureTagsIsMutable
();
tags_
.
remove
(
index
);
onChanged
();
}
else
{
tagsBuilder_
.
remove
(
index
);
}
return
this
;
}
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
Builder
getTagsBuilder
(
int
index
)
{
return
getTagsFieldBuilder
().
getBuilder
(
index
);
}
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValueOrBuilder
getTagsOrBuilder
(
int
index
)
{
if
(
tagsBuilder_
==
null
)
{
return
tags_
.
get
(
index
);
}
else
{
return
tagsBuilder_
.
getMessageOrBuilder
(
index
);
}
}
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
java
.
util
.
List
<?
extends
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValueOrBuilder
>
getTagsOrBuilderList
()
{
if
(
tagsBuilder_
!=
null
)
{
return
tagsBuilder_
.
getMessageOrBuilderList
();
}
else
{
return
java
.
util
.
Collections
.
unmodifiableList
(
tags_
);
}
}
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
Builder
addTagsBuilder
()
{
return
getTagsFieldBuilder
().
addBuilder
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
getDefaultInstance
());
}
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
Builder
addTagsBuilder
(
int
index
)
{
return
getTagsFieldBuilder
().
addBuilder
(
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
getDefaultInstance
());
}
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
public
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
Builder
>
getTagsBuilderList
()
{
return
getTagsFieldBuilder
().
getBuilderList
();
}
private
com
.
google
.
protobuf
.
RepeatedFieldBuilderV3
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
Builder
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValueOrBuilder
>
getTagsFieldBuilder
()
{
if
(
tagsBuilder_
==
null
)
{
tagsBuilder_
=
new
com
.
google
.
protobuf
.
RepeatedFieldBuilderV3
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
.
Builder
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValueOrBuilder
>(
tags_
,
((
bitField0_
&
0x00000010
)
==
0x00000010
),
getParentForChildren
(),
isClean
());
tags_
=
null
;
}
return
tagsBuilder_
;
}
private
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
>
logs_
=
java
.
util
.
Collections
.
emptyList
();
private
void
ensureLogsIsMutable
()
{
if
(!((
bitField0_
&
0x00000020
)
==
0x00000020
))
{
logs_
=
new
java
.
util
.
ArrayList
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
>(
logs_
);
bitField0_
|=
0x00000020
;
}
}
private
com
.
google
.
protobuf
.
RepeatedFieldBuilderV3
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
.
Builder
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessageOrBuilder
>
logsBuilder_
;
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
>
getLogsList
()
{
if
(
logsBuilder_
==
null
)
{
return
java
.
util
.
Collections
.
unmodifiableList
(
logs_
);
}
else
{
return
logsBuilder_
.
getMessageList
();
}
}
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
int
getLogsCount
()
{
if
(
logsBuilder_
==
null
)
{
return
logs_
.
size
();
}
else
{
return
logsBuilder_
.
getCount
();
}
}
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
getLogs
(
int
index
)
{
if
(
logsBuilder_
==
null
)
{
return
logs_
.
get
(
index
);
}
else
{
return
logsBuilder_
.
getMessage
(
index
);
}
}
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
Builder
setLogs
(
int
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
value
)
{
if
(
logsBuilder_
==
null
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
ensureLogsIsMutable
();
logs_
.
set
(
index
,
value
);
onChanged
();
}
else
{
logsBuilder_
.
setMessage
(
index
,
value
);
}
return
this
;
}
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
Builder
setLogs
(
int
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
.
Builder
builderForValue
)
{
if
(
logsBuilder_
==
null
)
{
ensureLogsIsMutable
();
logs_
.
set
(
index
,
builderForValue
.
build
());
onChanged
();
}
else
{
logsBuilder_
.
setMessage
(
index
,
builderForValue
.
build
());
}
return
this
;
}
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
Builder
addLogs
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
value
)
{
if
(
logsBuilder_
==
null
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
ensureLogsIsMutable
();
logs_
.
add
(
value
);
onChanged
();
}
else
{
logsBuilder_
.
addMessage
(
value
);
}
return
this
;
}
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
Builder
addLogs
(
int
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
value
)
{
if
(
logsBuilder_
==
null
)
{
if
(
value
==
null
)
{
throw
new
NullPointerException
();
}
ensureLogsIsMutable
();
logs_
.
add
(
index
,
value
);
onChanged
();
}
else
{
logsBuilder_
.
addMessage
(
index
,
value
);
}
return
this
;
}
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
Builder
addLogs
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
.
Builder
builderForValue
)
{
if
(
logsBuilder_
==
null
)
{
ensureLogsIsMutable
();
logs_
.
add
(
builderForValue
.
build
());
onChanged
();
}
else
{
logsBuilder_
.
addMessage
(
builderForValue
.
build
());
}
return
this
;
}
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
Builder
addLogs
(
int
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
.
Builder
builderForValue
)
{
if
(
logsBuilder_
==
null
)
{
ensureLogsIsMutable
();
logs_
.
add
(
index
,
builderForValue
.
build
());
onChanged
();
}
else
{
logsBuilder_
.
addMessage
(
index
,
builderForValue
.
build
());
}
return
this
;
}
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
Builder
addAllLogs
(
java
.
lang
.
Iterable
<?
extends
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
>
values
)
{
if
(
logsBuilder_
==
null
)
{
ensureLogsIsMutable
();
com
.
google
.
protobuf
.
AbstractMessageLite
.
Builder
.
addAll
(
values
,
logs_
);
onChanged
();
}
else
{
logsBuilder_
.
addAllMessages
(
values
);
}
return
this
;
}
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
Builder
clearLogs
()
{
if
(
logsBuilder_
==
null
)
{
logs_
=
java
.
util
.
Collections
.
emptyList
();
bitField0_
=
(
bitField0_
&
~
0x00000020
);
onChanged
();
}
else
{
logsBuilder_
.
clear
();
}
return
this
;
}
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
Builder
removeLogs
(
int
index
)
{
if
(
logsBuilder_
==
null
)
{
ensureLogsIsMutable
();
logs_
.
remove
(
index
);
onChanged
();
}
else
{
logsBuilder_
.
remove
(
index
);
}
return
this
;
}
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
.
Builder
getLogsBuilder
(
int
index
)
{
return
getLogsFieldBuilder
().
getBuilder
(
index
);
}
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessageOrBuilder
getLogsOrBuilder
(
int
index
)
{
if
(
logsBuilder_
==
null
)
{
return
logs_
.
get
(
index
);
}
else
{
return
logsBuilder_
.
getMessageOrBuilder
(
index
);
}
}
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
java
.
util
.
List
<?
extends
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessageOrBuilder
>
getLogsOrBuilderList
()
{
if
(
logsBuilder_
!=
null
)
{
return
logsBuilder_
.
getMessageOrBuilderList
();
}
else
{
return
java
.
util
.
Collections
.
unmodifiableList
(
logs_
);
}
}
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
.
Builder
addLogsBuilder
()
{
return
getLogsFieldBuilder
().
addBuilder
(
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
.
getDefaultInstance
());
}
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
.
Builder
addLogsBuilder
(
int
index
)
{
return
getLogsFieldBuilder
().
addBuilder
(
index
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
.
getDefaultInstance
());
}
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
public
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
.
Builder
>
getLogsBuilderList
()
{
return
getLogsFieldBuilder
().
getBuilderList
();
}
private
com
.
google
.
protobuf
.
RepeatedFieldBuilderV3
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
.
Builder
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessageOrBuilder
>
getLogsFieldBuilder
()
{
if
(
logsBuilder_
==
null
)
{
logsBuilder_
=
new
com
.
google
.
protobuf
.
RepeatedFieldBuilderV3
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
.
Builder
,
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessageOrBuilder
>(
logs_
,
((
bitField0_
&
0x00000020
)
==
0x00000020
),
getParentForChildren
(),
isClean
());
logs_
=
null
;
}
return
logsBuilder_
;
}
public
final
Builder
setUnknownFields
(
final
com
.
google
.
protobuf
.
UnknownFieldSet
unknownFields
)
{
return
this
;
}
public
final
Builder
mergeUnknownFields
(
final
com
.
google
.
protobuf
.
UnknownFieldSet
unknownFields
)
{
return
this
;
}
// @@protoc_insertion_point(builder_scope:SpanMessage)
}
// @@protoc_insertion_point(class_scope:SpanMessage)
private
static
final
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
DEFAULT_INSTANCE
;
static
{
DEFAULT_INSTANCE
=
new
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
();
}
public
static
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
getDefaultInstance
()
{
return
DEFAULT_INSTANCE
;
}
private
static
final
com
.
google
.
protobuf
.
Parser
<
SpanMessage
>
PARSER
=
new
com
.
google
.
protobuf
.
AbstractParser
<
SpanMessage
>()
{
public
SpanMessage
parsePartialFrom
(
com
.
google
.
protobuf
.
CodedInputStream
input
,
com
.
google
.
protobuf
.
ExtensionRegistryLite
extensionRegistry
)
throws
com
.
google
.
protobuf
.
InvalidProtocolBufferException
{
return
new
SpanMessage
(
input
,
extensionRegistry
);
}
};
public
static
com
.
google
.
protobuf
.
Parser
<
SpanMessage
>
parser
()
{
return
PARSER
;
}
@java
.
lang
.
Override
public
com
.
google
.
protobuf
.
Parser
<
SpanMessage
>
getParserForType
()
{
return
PARSER
;
}
public
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
SpanMessage
getDefaultInstanceForType
()
{
return
DEFAULT_INSTANCE
;
}
}
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/proto/SpanMessageOrBuilder.java
0 → 100644
浏览文件 @
7bffd0bf
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: trace.proto
package
com.a.eye.skywalking.trace.proto
;
public
interface
SpanMessageOrBuilder
extends
// @@protoc_insertion_point(interface_extends:SpanMessage)
com
.
google
.
protobuf
.
MessageOrBuilder
{
/**
* <code>optional int32 spanId = 1;</code>
*/
int
getSpanId
();
/**
* <code>optional int64 startTime = 2;</code>
*/
long
getStartTime
();
/**
* <code>optional int64 endTime = 3;</code>
*/
long
getEndTime
();
/**
* <code>optional string operationName = 4;</code>
*/
java
.
lang
.
String
getOperationName
();
/**
* <code>optional string operationName = 4;</code>
*/
com
.
google
.
protobuf
.
ByteString
getOperationNameBytes
();
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
>
getTagsList
();
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValue
getTags
(
int
index
);
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
int
getTagsCount
();
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
java
.
util
.
List
<?
extends
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValueOrBuilder
>
getTagsOrBuilderList
();
/**
* <code>repeated .KeyValue tags = 5;</code>
*/
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
KeyValueOrBuilder
getTagsOrBuilder
(
int
index
);
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
java
.
util
.
List
<
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
>
getLogsList
();
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessage
getLogs
(
int
index
);
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
int
getLogsCount
();
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
java
.
util
.
List
<?
extends
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessageOrBuilder
>
getLogsOrBuilderList
();
/**
* <code>repeated .LogDataMessage logs = 6;</code>
*/
com
.
a
.
eye
.
skywalking
.
trace
.
proto
.
LogDataMessageOrBuilder
getLogsOrBuilder
(
int
index
);
}
skywalking-commons/skywalking-trace/src/main/java/com/a/eye/skywalking/trace/proto/Trace.java
0 → 100644
浏览文件 @
7bffd0bf
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: trace.proto
package
com.a.eye.skywalking.trace.proto
;
public
final
class
Trace
{
private
Trace
()
{}
public
static
void
registerAllExtensions
(
com
.
google
.
protobuf
.
ExtensionRegistryLite
registry
)
{
}
public
static
void
registerAllExtensions
(
com
.
google
.
protobuf
.
ExtensionRegistry
registry
)
{
registerAllExtensions
(
(
com
.
google
.
protobuf
.
ExtensionRegistryLite
)
registry
);
}
static
final
com
.
google
.
protobuf
.
Descriptors
.
Descriptor
internal_static_SegmentMessage_descriptor
;
static
final
com
.
google
.
protobuf
.
GeneratedMessageV3
.
FieldAccessorTable
internal_static_SegmentMessage_fieldAccessorTable
;
static
final
com
.
google
.
protobuf
.
Descriptors
.
Descriptor
internal_static_SegmentRefMessage_descriptor
;
static
final
com
.
google
.
protobuf
.
GeneratedMessageV3
.
FieldAccessorTable
internal_static_SegmentRefMessage_fieldAccessorTable
;
static
final
com
.
google
.
protobuf
.
Descriptors
.
Descriptor
internal_static_SpanMessage_descriptor
;
static
final
com
.
google
.
protobuf
.
GeneratedMessageV3
.
FieldAccessorTable
internal_static_SpanMessage_fieldAccessorTable
;
static
final
com
.
google
.
protobuf
.
Descriptors
.
Descriptor
internal_static_LogDataMessage_descriptor
;
static
final
com
.
google
.
protobuf
.
GeneratedMessageV3
.
FieldAccessorTable
internal_static_LogDataMessage_fieldAccessorTable
;
static
final
com
.
google
.
protobuf
.
Descriptors
.
Descriptor
internal_static_KeyValue_descriptor
;
static
final
com
.
google
.
protobuf
.
GeneratedMessageV3
.
FieldAccessorTable
internal_static_KeyValue_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\013trace.proto\"\314\001\n\016SegmentMessage\022\026\n\016trac"
+
"eSegmentId\030\001 \001(\t\022\021\n\tstartTime\030\002 \001(\003\022\017\n\007e"
+
"ndTime\030\003 \001(\003\022\027\n\017applicationCode\030\004 \001(\t\022&\n"
+
"\nprimaryRef\030\005 \001(\0132\022.SegmentRefMessage\022 \n"
+
"\004refs\030\006 \003(\0132\022.SegmentRefMessage\022\033\n\005spans"
+
"\030\007 \003(\0132\014.SpanMessage\"f\n\021SegmentRefMessag"
+
"e\022\026\n\016traceSegmentId\030\001 \001(\t\022\016\n\006spanId\030\002 \001("
+
"\005\022\027\n\017applicationCode\030\003 \001(\t\022\020\n\010peerHost\030\004"
+
" \001(\t\"\220\001\n\013SpanMessage\022\016\n\006spanId\030\001 \001(\005\022\021\n\t"
+
"startTime\030\002 \001(\003\022\017\n\007endTime\030\003 \001(\003\022\025\n\roper"
,
"ationName\030\004 \001(\t\022\027\n\004tags\030\005 \003(\0132\t.KeyValue"
+
"\022\035\n\004logs\030\006 \003(\0132\017.LogDataMessage\"9\n\016LogDa"
+
"taMessage\022\014\n\004time\030\001 \001(\003\022\031\n\006fields\030\005 \003(\0132"
+
"\t.KeyValue\"&\n\010KeyValue\022\013\n\003key\030\001 \001(\t\022\r\n\005v"
+
"alue\030\002 \001(\tB$\n com.a.eye.skywalking.trace"
+
".protoP\001b\006proto3"
};
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_SegmentMessage_descriptor
=
getDescriptor
().
getMessageTypes
().
get
(
0
);
internal_static_SegmentMessage_fieldAccessorTable
=
new
com
.
google
.
protobuf
.
GeneratedMessageV3
.
FieldAccessorTable
(
internal_static_SegmentMessage_descriptor
,
new
java
.
lang
.
String
[]
{
"TraceSegmentId"
,
"StartTime"
,
"EndTime"
,
"ApplicationCode"
,
"PrimaryRef"
,
"Refs"
,
"Spans"
,
});
internal_static_SegmentRefMessage_descriptor
=
getDescriptor
().
getMessageTypes
().
get
(
1
);
internal_static_SegmentRefMessage_fieldAccessorTable
=
new
com
.
google
.
protobuf
.
GeneratedMessageV3
.
FieldAccessorTable
(
internal_static_SegmentRefMessage_descriptor
,
new
java
.
lang
.
String
[]
{
"TraceSegmentId"
,
"SpanId"
,
"ApplicationCode"
,
"PeerHost"
,
});
internal_static_SpanMessage_descriptor
=
getDescriptor
().
getMessageTypes
().
get
(
2
);
internal_static_SpanMessage_fieldAccessorTable
=
new
com
.
google
.
protobuf
.
GeneratedMessageV3
.
FieldAccessorTable
(
internal_static_SpanMessage_descriptor
,
new
java
.
lang
.
String
[]
{
"SpanId"
,
"StartTime"
,
"EndTime"
,
"OperationName"
,
"Tags"
,
"Logs"
,
});
internal_static_LogDataMessage_descriptor
=
getDescriptor
().
getMessageTypes
().
get
(
3
);
internal_static_LogDataMessage_fieldAccessorTable
=
new
com
.
google
.
protobuf
.
GeneratedMessageV3
.
FieldAccessorTable
(
internal_static_LogDataMessage_descriptor
,
new
java
.
lang
.
String
[]
{
"Time"
,
"Fields"
,
});
internal_static_KeyValue_descriptor
=
getDescriptor
().
getMessageTypes
().
get
(
4
);
internal_static_KeyValue_fieldAccessorTable
=
new
com
.
google
.
protobuf
.
GeneratedMessageV3
.
FieldAccessorTable
(
internal_static_KeyValue_descriptor
,
new
java
.
lang
.
String
[]
{
"Key"
,
"Value"
,
});
}
// @@protoc_insertion_point(outer_class_scope)
}
skywalking-commons/skywalking-trace/src/main/proto/trace.proto
浏览文件 @
7bffd0bf
syntax
=
"proto3"
;
option
java_multiple_files
=
true
;
option
java_package
=
"com.a.eye.skywalking.trace.
messages.
proto"
;
option
java_package
=
"com.a.eye.skywalking.trace.proto"
;
message
SegmentMessage
{
string
traceSegmentId
=
1
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录