Unverified Commit 832da76f authored by 多态's avatar 多态 Committed by GitHub

Merge pull request #1 from liuhaoyang/master

Add SkyWalking.NetworkProtocol project
parents c62c862d 49fd9709
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
# Visual Studio 2015 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# Visual Studio Code config directory
.vscode/
# Rider config directory
.idea/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUNIT
*.VisualState.xml
TestResult.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# DNX
project.lock.json
artifacts/
*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# JustCode is a .NET coding add-in
.JustCode
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# NuGet v3's project.json files produces more ignoreable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
node_modules/
orleans.codegen.cs
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
# SQL Server files
*.mdf
*.ldf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# JetBrains Rider
.idea/
*.sln.iml
publish.*.bat
BenchmarkDotNet.Artifacts/
@rem Generate the C# code for .proto files
@rem enter this directory
cd /d %~dp0
set PROTOC=%UserProfile%\.nuget\packages\google.protobuf.tools\3.5.1\tools\windows_x64\protoc.exe
set PLUGIN=%UserProfile%\.nuget\packages\grpc.tools\1.9.0\tools\windows_x64\grpc_csharp_plugin.exe
dotnet restore
%PROTOC% -I protos --csharp_out src/SkyWalking.NetworkProtocol protos/ApplicationRegisterService.proto --grpc_out src/SkyWalking.NetworkProtocol --plugin=protoc-gen-grpc=%PLUGIN%
%PROTOC% -I protos --csharp_out src/SkyWalking.NetworkProtocol protos/Common.proto --grpc_out src/SkyWalking.NetworkProtocol --plugin=protoc-gen-grpc=%PLUGIN%
%PROTOC% -I protos --csharp_out src/SkyWalking.NetworkProtocol protos/DiscoveryService.proto --grpc_out src/SkyWalking.NetworkProtocol --plugin=protoc-gen-grpc=%PLUGIN%
%PROTOC% -I protos --csharp_out src/SkyWalking.NetworkProtocol protos/Downstream.proto --grpc_out src/SkyWalking.NetworkProtocol --plugin=protoc-gen-grpc=%PLUGIN%
%PROTOC% -I protos --csharp_out src/SkyWalking.NetworkProtocol protos/JVMMetricsService.proto --grpc_out src/SkyWalking.NetworkProtocol --plugin=protoc-gen-grpc=%PLUGIN%
%PROTOC% -I protos --csharp_out src/SkyWalking.NetworkProtocol protos/KeyWithIntegerValue.proto --grpc_out src/SkyWalking.NetworkProtocol --plugin=protoc-gen-grpc=%PLUGIN%
%PROTOC% -I protos --csharp_out src/SkyWalking.NetworkProtocol protos/KeyWithStringValue.proto --grpc_out src/SkyWalking.NetworkProtocol --plugin=protoc-gen-grpc=%PLUGIN%
%PROTOC% -I protos --csharp_out src/SkyWalking.NetworkProtocol protos/NetworkAddressRegisterService.proto --grpc_out src/SkyWalking.NetworkProtocol --plugin=protoc-gen-grpc=%PLUGIN%
%PROTOC% -I protos --csharp_out src/SkyWalking.NetworkProtocol protos/TraceSegmentService.proto --grpc_out src/SkyWalking.NetworkProtocol --plugin=protoc-gen-grpc=%PLUGIN%
\ No newline at end of file
syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.apache.skywalking.apm.network.proto";
import "KeyWithIntegerValue.proto";
package SkyWalking.NetworkProtocol;
//register service for ApplicationCode, this service is called when service starts.
service ApplicationRegisterService {
rpc applicationCodeRegister (Application) returns (ApplicationMapping) {
}
}
message Application {
string applicationCode = 1;
}
message ApplicationMapping {
KeyWithIntegerValue application = 1;
}
syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.apache.skywalking.apm.network.proto";
package SkyWalking.NetworkProtocol;
enum SpanType {
Entry = 0;
Exit = 1;
Local = 2;
}
\ No newline at end of file
syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.apache.skywalking.apm.network.proto";
import "Common.proto";
import "Downstream.proto";
package SkyWalking.NetworkProtocol;
service InstanceDiscoveryService {
rpc registerInstance (ApplicationInstance) returns (ApplicationInstanceMapping) {
}
rpc heartbeat (ApplicationInstanceHeartbeat) returns (Downstream) {
}
}
message ApplicationInstance {
int32 applicationId = 1;
string agentUUID = 2;
int64 registerTime = 3;
OSInfo osinfo = 4;
}
message ApplicationInstanceMapping {
int32 applicationId = 1;
int32 applicationInstanceId = 2;
}
message ApplicationInstanceRecover {
int32 applicationId = 1;
int32 applicationInstanceId = 2;
int64 registerTime = 3;
OSInfo osinfo = 4;
}
message ApplicationInstanceHeartbeat {
int32 applicationInstanceId = 1;
int64 heartbeatTime = 2;
}
message OSInfo {
string osName = 1;
string hostname = 2;
int32 processNo = 3;
repeated string ipv4s = 4;
}
//discovery service for ServiceName by Network address or application code
service ServiceNameDiscoveryService {
rpc discovery (ServiceNameCollection) returns (ServiceNameMappingCollection) {
}
}
message ServiceNameCollection {
repeated ServiceNameElement elements = 1;
}
message ServiceNameMappingCollection {
repeated ServiceNameMappingElement elements = 1;
}
message ServiceNameMappingElement {
int32 serviceId = 1;
ServiceNameElement element = 2;
}
message ServiceNameElement {
string serviceName = 1;
int32 applicationId = 2;
SpanType srcSpanType = 3;
}
syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.apache.skywalking.apm.network.proto";
package SkyWalking.NetworkProtocol;
// nothing down stream from collector yet.
message Downstream {
}
syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.apache.skywalking.apm.network.proto";
import "Downstream.proto";
package SkyWalking.NetworkProtocol;
service JVMMetricsService {
rpc collect (JVMMetrics) returns (Downstream) {
}
}
message JVMMetrics {
repeated JVMMetric metrics = 1;
int32 applicationInstanceId = 2;
}
message JVMMetric {
int64 time = 1;
CPU cpu = 2;
repeated Memory memory = 3;
repeated MemoryPool memoryPool = 4;
repeated GC gc = 5;
}
message CPU {
double usagePercent = 2;
}
message Memory {
bool isHeap = 1;
int64 init = 2;
int64 max = 3;
int64 used = 4;
int64 committed = 5;
}
message MemoryPool {
PoolType type = 1;
int64 init = 2;
int64 max = 3;
int64 used = 4;
int64 commited = 5;
}
enum PoolType {
CODE_CACHE_USAGE = 0;
NEWGEN_USAGE = 1;
OLDGEN_USAGE = 2;
SURVIVOR_USAGE = 3;
PERMGEN_USAGE = 4;
METASPACE_USAGE = 5;
}
message GC {
GCPhrase phrase = 1;
int64 count = 2;
int64 time = 3;
}
enum GCPhrase {
NEW = 0;
OLD = 1;
}
syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.apache.skywalking.apm.network.proto";
package SkyWalking.NetworkProtocol;
message KeyWithIntegerValue {
string key = 1;
int32 value = 2;
}
syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.apache.skywalking.apm.network.proto";
package SkyWalking.NetworkProtocol;
message KeyWithStringValue {
string key = 1;
string value = 2;
}
syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.apache.skywalking.apm.network.proto";
import "KeyWithIntegerValue.proto";
package SkyWalking.NetworkProtocol;
service NetworkAddressRegisterService {
rpc batchRegister (NetworkAddresses) returns (NetworkAddressMappings) {
}
}
message NetworkAddresses {
repeated string addresses = 1;
}
message NetworkAddressMappings {
repeated KeyWithIntegerValue addressIds = 1;
}
syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.apache.skywalking.apm.network.proto";
import "Common.proto";
import "Downstream.proto";
import "KeyWithStringValue.proto";
package SkyWalking.NetworkProtocol;
service TraceSegmentService {
rpc collect (stream UpstreamSegment) returns (Downstream) {
}
}
message UpstreamSegment {
repeated UniqueId globalTraceIds = 1;
bytes segment = 2; // the byte array of TraceSegmentObject
}
message UniqueId {
repeated int64 idParts = 1;
}
message TraceSegmentObject {
UniqueId traceSegmentId = 1;
repeated SpanObject spans = 2;
int32 applicationId = 3;
int32 applicationInstanceId = 4;
bool isSizeLimited = 5;
}
message TraceSegmentReference {
RefType refType = 1;
UniqueId parentTraceSegmentId = 2;
int32 parentSpanId = 3;
int32 parentApplicationInstanceId = 4;
string networkAddress = 5;
int32 networkAddressId = 6;
int32 entryApplicationInstanceId = 7;
string entryServiceName = 8;
int32 entryServiceId = 9;
string parentServiceName = 10;
int32 parentServiceId = 11;
}
message SpanObject {
int32 spanId = 1;
int32 parentSpanId = 2;
int64 startTime = 3;
int64 endTime = 4;
repeated TraceSegmentReference refs = 5;
int32 operationNameId = 6;
string operationName = 7;
int32 peerId = 8;
string peer = 9;
SpanType spanType = 10;
SpanLayer spanLayer = 11;
int32 componentId = 12;
string component = 13;
bool isError = 14;
repeated KeyWithStringValue tags = 15;
repeated LogMessage logs = 16;
}
enum RefType {
CrossProcess = 0;
CrossThread = 1;
}
enum SpanLayer {
Unknown = 0;
Database = 1;
RPCFramework = 2;
Http = 3;
MQ = 4;
Cache = 5;
}
message LogMessage {
int64 time = 1;
repeated KeyWithStringValue data = 2;
}

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2024
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SkyWalking.NetworkProtocol", "src\SkyWalking.NetworkProtocol\SkyWalking.NetworkProtocol.csproj", "{54B9183A-928B-43E1-9851-10E2F1CCE61C}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{05BF0D4E-C824-4EC8-8330-36C1FC49910E}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "protos", "protos", "{39479996-FC5A-4A92-BDA1-498648C743D3}"
ProjectSection(SolutionItems) = preProject
protos\ApplicationRegisterService.proto = protos\ApplicationRegisterService.proto
protos\Common.proto = protos\Common.proto
protos\DiscoveryService.proto = protos\DiscoveryService.proto
protos\Downstream.proto = protos\Downstream.proto
protos\JVMMetricsService.proto = protos\JVMMetricsService.proto
protos\KeyWithIntegerValue.proto = protos\KeyWithIntegerValue.proto
protos\KeyWithStringValue.proto = protos\KeyWithStringValue.proto
protos\NetworkAddressRegisterService.proto = protos\NetworkAddressRegisterService.proto
protos\TraceSegmentService.proto = protos\TraceSegmentService.proto
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "solution items", "solution items", "{E38F0F6E-6E10-491D-8786-650F6A4B6698}"
ProjectSection(SolutionItems) = preProject
generate_protos.bat = generate_protos.bat
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{54B9183A-928B-43E1-9851-10E2F1CCE61C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{54B9183A-928B-43E1-9851-10E2F1CCE61C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{54B9183A-928B-43E1-9851-10E2F1CCE61C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{54B9183A-928B-43E1-9851-10E2F1CCE61C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{54B9183A-928B-43E1-9851-10E2F1CCE61C} = {05BF0D4E-C824-4EC8-8330-36C1FC49910E}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {94C0DA2C-CCCB-4314-93A2-9809B5DD0583}
EndGlobalSection
EndGlobal
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ApplicationRegisterService.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace SkyWalking.NetworkProtocol {
/// <summary>Holder for reflection information generated from ApplicationRegisterService.proto</summary>
public static partial class ApplicationRegisterServiceReflection {
#region Descriptor
/// <summary>File descriptor for ApplicationRegisterService.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ApplicationRegisterServiceReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CiBBcHBsaWNhdGlvblJlZ2lzdGVyU2VydmljZS5wcm90bxIaU2t5V2Fsa2lu",
"Zy5OZXR3b3JrUHJvdG9jb2waGUtleVdpdGhJbnRlZ2VyVmFsdWUucHJvdG8i",
"JgoLQXBwbGljYXRpb24SFwoPYXBwbGljYXRpb25Db2RlGAEgASgJIloKEkFw",
"cGxpY2F0aW9uTWFwcGluZxJECgthcHBsaWNhdGlvbhgBIAEoCzIvLlNreVdh",
"bGtpbmcuTmV0d29ya1Byb3RvY29sLktleVdpdGhJbnRlZ2VyVmFsdWUykgEK",
"GkFwcGxpY2F0aW9uUmVnaXN0ZXJTZXJ2aWNlEnQKF2FwcGxpY2F0aW9uQ29k",
"ZVJlZ2lzdGVyEicuU2t5V2Fsa2luZy5OZXR3b3JrUHJvdG9jb2wuQXBwbGlj",
"YXRpb24aLi5Ta3lXYWxraW5nLk5ldHdvcmtQcm90b2NvbC5BcHBsaWNhdGlv",
"bk1hcHBpbmciAEIrCidvcmcuYXBhY2hlLnNreXdhbGtpbmcuYXBtLm5ldHdv",
"cmsucHJvdG9QAWIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::SkyWalking.NetworkProtocol.KeyWithIntegerValueReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.Application), global::SkyWalking.NetworkProtocol.Application.Parser, new[]{ "ApplicationCode" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.ApplicationMapping), global::SkyWalking.NetworkProtocol.ApplicationMapping.Parser, new[]{ "Application" }, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class Application : pb::IMessage<Application> {
private static readonly pb::MessageParser<Application> _parser = new pb::MessageParser<Application>(() => new Application());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<Application> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.ApplicationRegisterServiceReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Application() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Application(Application other) : this() {
applicationCode_ = other.applicationCode_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Application Clone() {
return new Application(this);
}
/// <summary>Field number for the "applicationCode" field.</summary>
public const int ApplicationCodeFieldNumber = 1;
private string applicationCode_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string ApplicationCode {
get { return applicationCode_; }
set {
applicationCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as Application);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Application other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (ApplicationCode != other.ApplicationCode) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (ApplicationCode.Length != 0) hash ^= ApplicationCode.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (ApplicationCode.Length != 0) {
output.WriteRawTag(10);
output.WriteString(ApplicationCode);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (ApplicationCode.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplicationCode);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Application other) {
if (other == null) {
return;
}
if (other.ApplicationCode.Length != 0) {
ApplicationCode = other.ApplicationCode;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
ApplicationCode = input.ReadString();
break;
}
}
}
}
}
public sealed partial class ApplicationMapping : pb::IMessage<ApplicationMapping> {
private static readonly pb::MessageParser<ApplicationMapping> _parser = new pb::MessageParser<ApplicationMapping>(() => new ApplicationMapping());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ApplicationMapping> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.ApplicationRegisterServiceReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ApplicationMapping() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ApplicationMapping(ApplicationMapping other) : this() {
Application = other.application_ != null ? other.Application.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ApplicationMapping Clone() {
return new ApplicationMapping(this);
}
/// <summary>Field number for the "application" field.</summary>
public const int ApplicationFieldNumber = 1;
private global::SkyWalking.NetworkProtocol.KeyWithIntegerValue application_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::SkyWalking.NetworkProtocol.KeyWithIntegerValue Application {
get { return application_; }
set {
application_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as ApplicationMapping);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(ApplicationMapping other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Application, other.Application)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (application_ != null) hash ^= Application.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (application_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Application);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (application_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Application);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(ApplicationMapping other) {
if (other == null) {
return;
}
if (other.application_ != null) {
if (application_ == null) {
application_ = new global::SkyWalking.NetworkProtocol.KeyWithIntegerValue();
}
Application.MergeFrom(other.Application);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (application_ == null) {
application_ = new global::SkyWalking.NetworkProtocol.KeyWithIntegerValue();
}
input.ReadMessage(application_);
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ApplicationRegisterService.proto
// </auto-generated>
#pragma warning disable 1591
#region Designer generated code
using System;
using System.Threading;
using System.Threading.Tasks;
using grpc = global::Grpc.Core;
namespace SkyWalking.NetworkProtocol {
/// <summary>
///register service for ApplicationCode, this service is called when service starts.
/// </summary>
public static partial class ApplicationRegisterService
{
static readonly string __ServiceName = "SkyWalking.NetworkProtocol.ApplicationRegisterService";
static readonly grpc::Marshaller<global::SkyWalking.NetworkProtocol.Application> __Marshaller_Application = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::SkyWalking.NetworkProtocol.Application.Parser.ParseFrom);
static readonly grpc::Marshaller<global::SkyWalking.NetworkProtocol.ApplicationMapping> __Marshaller_ApplicationMapping = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::SkyWalking.NetworkProtocol.ApplicationMapping.Parser.ParseFrom);
static readonly grpc::Method<global::SkyWalking.NetworkProtocol.Application, global::SkyWalking.NetworkProtocol.ApplicationMapping> __Method_applicationCodeRegister = new grpc::Method<global::SkyWalking.NetworkProtocol.Application, global::SkyWalking.NetworkProtocol.ApplicationMapping>(
grpc::MethodType.Unary,
__ServiceName,
"applicationCodeRegister",
__Marshaller_Application,
__Marshaller_ApplicationMapping);
/// <summary>Service descriptor</summary>
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{
get { return global::SkyWalking.NetworkProtocol.ApplicationRegisterServiceReflection.Descriptor.Services[0]; }
}
/// <summary>Base class for server-side implementations of ApplicationRegisterService</summary>
public abstract partial class ApplicationRegisterServiceBase
{
public virtual global::System.Threading.Tasks.Task<global::SkyWalking.NetworkProtocol.ApplicationMapping> applicationCodeRegister(global::SkyWalking.NetworkProtocol.Application request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
}
/// <summary>Client for ApplicationRegisterService</summary>
public partial class ApplicationRegisterServiceClient : grpc::ClientBase<ApplicationRegisterServiceClient>
{
/// <summary>Creates a new client for ApplicationRegisterService</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
public ApplicationRegisterServiceClient(grpc::Channel channel) : base(channel)
{
}
/// <summary>Creates a new client for ApplicationRegisterService that uses a custom <c>CallInvoker</c>.</summary>
/// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
public ApplicationRegisterServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
{
}
/// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
protected ApplicationRegisterServiceClient() : base()
{
}
/// <summary>Protected constructor to allow creation of configured clients.</summary>
/// <param name="configuration">The client configuration.</param>
protected ApplicationRegisterServiceClient(ClientBaseConfiguration configuration) : base(configuration)
{
}
public virtual global::SkyWalking.NetworkProtocol.ApplicationMapping applicationCodeRegister(global::SkyWalking.NetworkProtocol.Application request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
{
return applicationCodeRegister(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
public virtual global::SkyWalking.NetworkProtocol.ApplicationMapping applicationCodeRegister(global::SkyWalking.NetworkProtocol.Application request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_applicationCodeRegister, null, options, request);
}
public virtual grpc::AsyncUnaryCall<global::SkyWalking.NetworkProtocol.ApplicationMapping> applicationCodeRegisterAsync(global::SkyWalking.NetworkProtocol.Application request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
{
return applicationCodeRegisterAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
public virtual grpc::AsyncUnaryCall<global::SkyWalking.NetworkProtocol.ApplicationMapping> applicationCodeRegisterAsync(global::SkyWalking.NetworkProtocol.Application request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_applicationCodeRegister, null, options, request);
}
/// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
protected override ApplicationRegisterServiceClient NewInstance(ClientBaseConfiguration configuration)
{
return new ApplicationRegisterServiceClient(configuration);
}
}
/// <summary>Creates service definition that can be registered with a server</summary>
/// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
public static grpc::ServerServiceDefinition BindService(ApplicationRegisterServiceBase serviceImpl)
{
return grpc::ServerServiceDefinition.CreateBuilder()
.AddMethod(__Method_applicationCodeRegister, serviceImpl.applicationCodeRegister).Build();
}
}
}
#endregion
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Common.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace SkyWalking.NetworkProtocol {
/// <summary>Holder for reflection information generated from Common.proto</summary>
public static partial class CommonReflection {
#region Descriptor
/// <summary>File descriptor for Common.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static CommonReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CgxDb21tb24ucHJvdG8SGlNreVdhbGtpbmcuTmV0d29ya1Byb3RvY29sKioK",
"CFNwYW5UeXBlEgkKBUVudHJ5EAASCAoERXhpdBABEgkKBUxvY2FsEAJCKwon",
"b3JnLmFwYWNoZS5za3l3YWxraW5nLmFwbS5uZXR3b3JrLnByb3RvUAFiBnBy",
"b3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::SkyWalking.NetworkProtocol.SpanType), }, null));
}
#endregion
}
#region Enums
public enum SpanType {
[pbr::OriginalName("Entry")] Entry = 0,
[pbr::OriginalName("Exit")] Exit = 1,
[pbr::OriginalName("Local")] Local = 2,
}
#endregion
}
#endregion Designer generated code
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: DiscoveryService.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace SkyWalking.NetworkProtocol {
/// <summary>Holder for reflection information generated from DiscoveryService.proto</summary>
public static partial class DiscoveryServiceReflection {
#region Descriptor
/// <summary>File descriptor for DiscoveryService.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static DiscoveryServiceReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChZEaXNjb3ZlcnlTZXJ2aWNlLnByb3RvEhpTa3lXYWxraW5nLk5ldHdvcmtQ",
"cm90b2NvbBoMQ29tbW9uLnByb3RvGhBEb3duc3RyZWFtLnByb3RvIokBChNB",
"cHBsaWNhdGlvbkluc3RhbmNlEhUKDWFwcGxpY2F0aW9uSWQYASABKAUSEQoJ",
"YWdlbnRVVUlEGAIgASgJEhQKDHJlZ2lzdGVyVGltZRgDIAEoAxIyCgZvc2lu",
"Zm8YBCABKAsyIi5Ta3lXYWxraW5nLk5ldHdvcmtQcm90b2NvbC5PU0luZm8i",
"UgoaQXBwbGljYXRpb25JbnN0YW5jZU1hcHBpbmcSFQoNYXBwbGljYXRpb25J",
"ZBgBIAEoBRIdChVhcHBsaWNhdGlvbkluc3RhbmNlSWQYAiABKAUinAEKGkFw",
"cGxpY2F0aW9uSW5zdGFuY2VSZWNvdmVyEhUKDWFwcGxpY2F0aW9uSWQYASAB",
"KAUSHQoVYXBwbGljYXRpb25JbnN0YW5jZUlkGAIgASgFEhQKDHJlZ2lzdGVy",
"VGltZRgDIAEoAxIyCgZvc2luZm8YBCABKAsyIi5Ta3lXYWxraW5nLk5ldHdv",
"cmtQcm90b2NvbC5PU0luZm8iVAocQXBwbGljYXRpb25JbnN0YW5jZUhlYXJ0",
"YmVhdBIdChVhcHBsaWNhdGlvbkluc3RhbmNlSWQYASABKAUSFQoNaGVhcnRi",
"ZWF0VGltZRgCIAEoAyJMCgZPU0luZm8SDgoGb3NOYW1lGAEgASgJEhAKCGhv",
"c3RuYW1lGAIgASgJEhEKCXByb2Nlc3NObxgDIAEoBRINCgVpcHY0cxgEIAMo",
"CSJZChVTZXJ2aWNlTmFtZUNvbGxlY3Rpb24SQAoIZWxlbWVudHMYASADKAsy",
"Li5Ta3lXYWxraW5nLk5ldHdvcmtQcm90b2NvbC5TZXJ2aWNlTmFtZUVsZW1l",
"bnQiZwocU2VydmljZU5hbWVNYXBwaW5nQ29sbGVjdGlvbhJHCghlbGVtZW50",
"cxgBIAMoCzI1LlNreVdhbGtpbmcuTmV0d29ya1Byb3RvY29sLlNlcnZpY2VO",
"YW1lTWFwcGluZ0VsZW1lbnQibwoZU2VydmljZU5hbWVNYXBwaW5nRWxlbWVu",
"dBIRCglzZXJ2aWNlSWQYASABKAUSPwoHZWxlbWVudBgCIAEoCzIuLlNreVdh",
"bGtpbmcuTmV0d29ya1Byb3RvY29sLlNlcnZpY2VOYW1lRWxlbWVudCJ7ChJT",
"ZXJ2aWNlTmFtZUVsZW1lbnQSEwoLc2VydmljZU5hbWUYASABKAkSFQoNYXBw",
"bGljYXRpb25JZBgCIAEoBRI5CgtzcmNTcGFuVHlwZRgDIAEoDjIkLlNreVdh",
"bGtpbmcuTmV0d29ya1Byb3RvY29sLlNwYW5UeXBlMooCChhJbnN0YW5jZURp",
"c2NvdmVyeVNlcnZpY2USfQoQcmVnaXN0ZXJJbnN0YW5jZRIvLlNreVdhbGtp",
"bmcuTmV0d29ya1Byb3RvY29sLkFwcGxpY2F0aW9uSW5zdGFuY2UaNi5Ta3lX",
"YWxraW5nLk5ldHdvcmtQcm90b2NvbC5BcHBsaWNhdGlvbkluc3RhbmNlTWFw",
"cGluZyIAEm8KCWhlYXJ0YmVhdBI4LlNreVdhbGtpbmcuTmV0d29ya1Byb3Rv",
"Y29sLkFwcGxpY2F0aW9uSW5zdGFuY2VIZWFydGJlYXQaJi5Ta3lXYWxraW5n",
"Lk5ldHdvcmtQcm90b2NvbC5Eb3duc3RyZWFtIgAymQEKG1NlcnZpY2VOYW1l",
"RGlzY292ZXJ5U2VydmljZRJ6CglkaXNjb3ZlcnkSMS5Ta3lXYWxraW5nLk5l",
"dHdvcmtQcm90b2NvbC5TZXJ2aWNlTmFtZUNvbGxlY3Rpb24aOC5Ta3lXYWxr",
"aW5nLk5ldHdvcmtQcm90b2NvbC5TZXJ2aWNlTmFtZU1hcHBpbmdDb2xsZWN0",
"aW9uIgBCKwonb3JnLmFwYWNoZS5za3l3YWxraW5nLmFwbS5uZXR3b3JrLnBy",
"b3RvUAFiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::SkyWalking.NetworkProtocol.CommonReflection.Descriptor, global::SkyWalking.NetworkProtocol.DownstreamReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.ApplicationInstance), global::SkyWalking.NetworkProtocol.ApplicationInstance.Parser, new[]{ "ApplicationId", "AgentUUID", "RegisterTime", "Osinfo" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.ApplicationInstanceMapping), global::SkyWalking.NetworkProtocol.ApplicationInstanceMapping.Parser, new[]{ "ApplicationId", "ApplicationInstanceId" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.ApplicationInstanceRecover), global::SkyWalking.NetworkProtocol.ApplicationInstanceRecover.Parser, new[]{ "ApplicationId", "ApplicationInstanceId", "RegisterTime", "Osinfo" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.ApplicationInstanceHeartbeat), global::SkyWalking.NetworkProtocol.ApplicationInstanceHeartbeat.Parser, new[]{ "ApplicationInstanceId", "HeartbeatTime" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.OSInfo), global::SkyWalking.NetworkProtocol.OSInfo.Parser, new[]{ "OsName", "Hostname", "ProcessNo", "Ipv4S" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.ServiceNameCollection), global::SkyWalking.NetworkProtocol.ServiceNameCollection.Parser, new[]{ "Elements" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.ServiceNameMappingCollection), global::SkyWalking.NetworkProtocol.ServiceNameMappingCollection.Parser, new[]{ "Elements" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.ServiceNameMappingElement), global::SkyWalking.NetworkProtocol.ServiceNameMappingElement.Parser, new[]{ "ServiceId", "Element" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.ServiceNameElement), global::SkyWalking.NetworkProtocol.ServiceNameElement.Parser, new[]{ "ServiceName", "ApplicationId", "SrcSpanType" }, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class ApplicationInstance : pb::IMessage<ApplicationInstance> {
private static readonly pb::MessageParser<ApplicationInstance> _parser = new pb::MessageParser<ApplicationInstance>(() => new ApplicationInstance());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ApplicationInstance> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.DiscoveryServiceReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ApplicationInstance() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ApplicationInstance(ApplicationInstance other) : this() {
applicationId_ = other.applicationId_;
agentUUID_ = other.agentUUID_;
registerTime_ = other.registerTime_;
Osinfo = other.osinfo_ != null ? other.Osinfo.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ApplicationInstance Clone() {
return new ApplicationInstance(this);
}
/// <summary>Field number for the "applicationId" field.</summary>
public const int ApplicationIdFieldNumber = 1;
private int applicationId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int ApplicationId {
get { return applicationId_; }
set {
applicationId_ = value;
}
}
/// <summary>Field number for the "agentUUID" field.</summary>
public const int AgentUUIDFieldNumber = 2;
private string agentUUID_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string AgentUUID {
get { return agentUUID_; }
set {
agentUUID_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "registerTime" field.</summary>
public const int RegisterTimeFieldNumber = 3;
private long registerTime_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long RegisterTime {
get { return registerTime_; }
set {
registerTime_ = value;
}
}
/// <summary>Field number for the "osinfo" field.</summary>
public const int OsinfoFieldNumber = 4;
private global::SkyWalking.NetworkProtocol.OSInfo osinfo_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::SkyWalking.NetworkProtocol.OSInfo Osinfo {
get { return osinfo_; }
set {
osinfo_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as ApplicationInstance);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(ApplicationInstance other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (ApplicationId != other.ApplicationId) return false;
if (AgentUUID != other.AgentUUID) return false;
if (RegisterTime != other.RegisterTime) return false;
if (!object.Equals(Osinfo, other.Osinfo)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (ApplicationId != 0) hash ^= ApplicationId.GetHashCode();
if (AgentUUID.Length != 0) hash ^= AgentUUID.GetHashCode();
if (RegisterTime != 0L) hash ^= RegisterTime.GetHashCode();
if (osinfo_ != null) hash ^= Osinfo.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (ApplicationId != 0) {
output.WriteRawTag(8);
output.WriteInt32(ApplicationId);
}
if (AgentUUID.Length != 0) {
output.WriteRawTag(18);
output.WriteString(AgentUUID);
}
if (RegisterTime != 0L) {
output.WriteRawTag(24);
output.WriteInt64(RegisterTime);
}
if (osinfo_ != null) {
output.WriteRawTag(34);
output.WriteMessage(Osinfo);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (ApplicationId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ApplicationId);
}
if (AgentUUID.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(AgentUUID);
}
if (RegisterTime != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(RegisterTime);
}
if (osinfo_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Osinfo);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(ApplicationInstance other) {
if (other == null) {
return;
}
if (other.ApplicationId != 0) {
ApplicationId = other.ApplicationId;
}
if (other.AgentUUID.Length != 0) {
AgentUUID = other.AgentUUID;
}
if (other.RegisterTime != 0L) {
RegisterTime = other.RegisterTime;
}
if (other.osinfo_ != null) {
if (osinfo_ == null) {
osinfo_ = new global::SkyWalking.NetworkProtocol.OSInfo();
}
Osinfo.MergeFrom(other.Osinfo);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
ApplicationId = input.ReadInt32();
break;
}
case 18: {
AgentUUID = input.ReadString();
break;
}
case 24: {
RegisterTime = input.ReadInt64();
break;
}
case 34: {
if (osinfo_ == null) {
osinfo_ = new global::SkyWalking.NetworkProtocol.OSInfo();
}
input.ReadMessage(osinfo_);
break;
}
}
}
}
}
public sealed partial class ApplicationInstanceMapping : pb::IMessage<ApplicationInstanceMapping> {
private static readonly pb::MessageParser<ApplicationInstanceMapping> _parser = new pb::MessageParser<ApplicationInstanceMapping>(() => new ApplicationInstanceMapping());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ApplicationInstanceMapping> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.DiscoveryServiceReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ApplicationInstanceMapping() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ApplicationInstanceMapping(ApplicationInstanceMapping other) : this() {
applicationId_ = other.applicationId_;
applicationInstanceId_ = other.applicationInstanceId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ApplicationInstanceMapping Clone() {
return new ApplicationInstanceMapping(this);
}
/// <summary>Field number for the "applicationId" field.</summary>
public const int ApplicationIdFieldNumber = 1;
private int applicationId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int ApplicationId {
get { return applicationId_; }
set {
applicationId_ = value;
}
}
/// <summary>Field number for the "applicationInstanceId" field.</summary>
public const int ApplicationInstanceIdFieldNumber = 2;
private int applicationInstanceId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int ApplicationInstanceId {
get { return applicationInstanceId_; }
set {
applicationInstanceId_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as ApplicationInstanceMapping);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(ApplicationInstanceMapping other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (ApplicationId != other.ApplicationId) return false;
if (ApplicationInstanceId != other.ApplicationInstanceId) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (ApplicationId != 0) hash ^= ApplicationId.GetHashCode();
if (ApplicationInstanceId != 0) hash ^= ApplicationInstanceId.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (ApplicationId != 0) {
output.WriteRawTag(8);
output.WriteInt32(ApplicationId);
}
if (ApplicationInstanceId != 0) {
output.WriteRawTag(16);
output.WriteInt32(ApplicationInstanceId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (ApplicationId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ApplicationId);
}
if (ApplicationInstanceId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ApplicationInstanceId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(ApplicationInstanceMapping other) {
if (other == null) {
return;
}
if (other.ApplicationId != 0) {
ApplicationId = other.ApplicationId;
}
if (other.ApplicationInstanceId != 0) {
ApplicationInstanceId = other.ApplicationInstanceId;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
ApplicationId = input.ReadInt32();
break;
}
case 16: {
ApplicationInstanceId = input.ReadInt32();
break;
}
}
}
}
}
public sealed partial class ApplicationInstanceRecover : pb::IMessage<ApplicationInstanceRecover> {
private static readonly pb::MessageParser<ApplicationInstanceRecover> _parser = new pb::MessageParser<ApplicationInstanceRecover>(() => new ApplicationInstanceRecover());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ApplicationInstanceRecover> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.DiscoveryServiceReflection.Descriptor.MessageTypes[2]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ApplicationInstanceRecover() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ApplicationInstanceRecover(ApplicationInstanceRecover other) : this() {
applicationId_ = other.applicationId_;
applicationInstanceId_ = other.applicationInstanceId_;
registerTime_ = other.registerTime_;
Osinfo = other.osinfo_ != null ? other.Osinfo.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ApplicationInstanceRecover Clone() {
return new ApplicationInstanceRecover(this);
}
/// <summary>Field number for the "applicationId" field.</summary>
public const int ApplicationIdFieldNumber = 1;
private int applicationId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int ApplicationId {
get { return applicationId_; }
set {
applicationId_ = value;
}
}
/// <summary>Field number for the "applicationInstanceId" field.</summary>
public const int ApplicationInstanceIdFieldNumber = 2;
private int applicationInstanceId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int ApplicationInstanceId {
get { return applicationInstanceId_; }
set {
applicationInstanceId_ = value;
}
}
/// <summary>Field number for the "registerTime" field.</summary>
public const int RegisterTimeFieldNumber = 3;
private long registerTime_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long RegisterTime {
get { return registerTime_; }
set {
registerTime_ = value;
}
}
/// <summary>Field number for the "osinfo" field.</summary>
public const int OsinfoFieldNumber = 4;
private global::SkyWalking.NetworkProtocol.OSInfo osinfo_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::SkyWalking.NetworkProtocol.OSInfo Osinfo {
get { return osinfo_; }
set {
osinfo_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as ApplicationInstanceRecover);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(ApplicationInstanceRecover other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (ApplicationId != other.ApplicationId) return false;
if (ApplicationInstanceId != other.ApplicationInstanceId) return false;
if (RegisterTime != other.RegisterTime) return false;
if (!object.Equals(Osinfo, other.Osinfo)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (ApplicationId != 0) hash ^= ApplicationId.GetHashCode();
if (ApplicationInstanceId != 0) hash ^= ApplicationInstanceId.GetHashCode();
if (RegisterTime != 0L) hash ^= RegisterTime.GetHashCode();
if (osinfo_ != null) hash ^= Osinfo.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (ApplicationId != 0) {
output.WriteRawTag(8);
output.WriteInt32(ApplicationId);
}
if (ApplicationInstanceId != 0) {
output.WriteRawTag(16);
output.WriteInt32(ApplicationInstanceId);
}
if (RegisterTime != 0L) {
output.WriteRawTag(24);
output.WriteInt64(RegisterTime);
}
if (osinfo_ != null) {
output.WriteRawTag(34);
output.WriteMessage(Osinfo);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (ApplicationId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ApplicationId);
}
if (ApplicationInstanceId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ApplicationInstanceId);
}
if (RegisterTime != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(RegisterTime);
}
if (osinfo_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Osinfo);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(ApplicationInstanceRecover other) {
if (other == null) {
return;
}
if (other.ApplicationId != 0) {
ApplicationId = other.ApplicationId;
}
if (other.ApplicationInstanceId != 0) {
ApplicationInstanceId = other.ApplicationInstanceId;
}
if (other.RegisterTime != 0L) {
RegisterTime = other.RegisterTime;
}
if (other.osinfo_ != null) {
if (osinfo_ == null) {
osinfo_ = new global::SkyWalking.NetworkProtocol.OSInfo();
}
Osinfo.MergeFrom(other.Osinfo);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
ApplicationId = input.ReadInt32();
break;
}
case 16: {
ApplicationInstanceId = input.ReadInt32();
break;
}
case 24: {
RegisterTime = input.ReadInt64();
break;
}
case 34: {
if (osinfo_ == null) {
osinfo_ = new global::SkyWalking.NetworkProtocol.OSInfo();
}
input.ReadMessage(osinfo_);
break;
}
}
}
}
}
public sealed partial class ApplicationInstanceHeartbeat : pb::IMessage<ApplicationInstanceHeartbeat> {
private static readonly pb::MessageParser<ApplicationInstanceHeartbeat> _parser = new pb::MessageParser<ApplicationInstanceHeartbeat>(() => new ApplicationInstanceHeartbeat());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ApplicationInstanceHeartbeat> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.DiscoveryServiceReflection.Descriptor.MessageTypes[3]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ApplicationInstanceHeartbeat() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ApplicationInstanceHeartbeat(ApplicationInstanceHeartbeat other) : this() {
applicationInstanceId_ = other.applicationInstanceId_;
heartbeatTime_ = other.heartbeatTime_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ApplicationInstanceHeartbeat Clone() {
return new ApplicationInstanceHeartbeat(this);
}
/// <summary>Field number for the "applicationInstanceId" field.</summary>
public const int ApplicationInstanceIdFieldNumber = 1;
private int applicationInstanceId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int ApplicationInstanceId {
get { return applicationInstanceId_; }
set {
applicationInstanceId_ = value;
}
}
/// <summary>Field number for the "heartbeatTime" field.</summary>
public const int HeartbeatTimeFieldNumber = 2;
private long heartbeatTime_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long HeartbeatTime {
get { return heartbeatTime_; }
set {
heartbeatTime_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as ApplicationInstanceHeartbeat);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(ApplicationInstanceHeartbeat other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (ApplicationInstanceId != other.ApplicationInstanceId) return false;
if (HeartbeatTime != other.HeartbeatTime) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (ApplicationInstanceId != 0) hash ^= ApplicationInstanceId.GetHashCode();
if (HeartbeatTime != 0L) hash ^= HeartbeatTime.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (ApplicationInstanceId != 0) {
output.WriteRawTag(8);
output.WriteInt32(ApplicationInstanceId);
}
if (HeartbeatTime != 0L) {
output.WriteRawTag(16);
output.WriteInt64(HeartbeatTime);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (ApplicationInstanceId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ApplicationInstanceId);
}
if (HeartbeatTime != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(HeartbeatTime);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(ApplicationInstanceHeartbeat other) {
if (other == null) {
return;
}
if (other.ApplicationInstanceId != 0) {
ApplicationInstanceId = other.ApplicationInstanceId;
}
if (other.HeartbeatTime != 0L) {
HeartbeatTime = other.HeartbeatTime;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
ApplicationInstanceId = input.ReadInt32();
break;
}
case 16: {
HeartbeatTime = input.ReadInt64();
break;
}
}
}
}
}
public sealed partial class OSInfo : pb::IMessage<OSInfo> {
private static readonly pb::MessageParser<OSInfo> _parser = new pb::MessageParser<OSInfo>(() => new OSInfo());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<OSInfo> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.DiscoveryServiceReflection.Descriptor.MessageTypes[4]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public OSInfo() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public OSInfo(OSInfo other) : this() {
osName_ = other.osName_;
hostname_ = other.hostname_;
processNo_ = other.processNo_;
ipv4S_ = other.ipv4S_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public OSInfo Clone() {
return new OSInfo(this);
}
/// <summary>Field number for the "osName" field.</summary>
public const int OsNameFieldNumber = 1;
private string osName_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string OsName {
get { return osName_; }
set {
osName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "hostname" field.</summary>
public const int HostnameFieldNumber = 2;
private string hostname_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Hostname {
get { return hostname_; }
set {
hostname_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "processNo" field.</summary>
public const int ProcessNoFieldNumber = 3;
private int processNo_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int ProcessNo {
get { return processNo_; }
set {
processNo_ = value;
}
}
/// <summary>Field number for the "ipv4s" field.</summary>
public const int Ipv4SFieldNumber = 4;
private static readonly pb::FieldCodec<string> _repeated_ipv4S_codec
= pb::FieldCodec.ForString(34);
private readonly pbc::RepeatedField<string> ipv4S_ = new pbc::RepeatedField<string>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<string> Ipv4S {
get { return ipv4S_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as OSInfo);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(OSInfo other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (OsName != other.OsName) return false;
if (Hostname != other.Hostname) return false;
if (ProcessNo != other.ProcessNo) return false;
if(!ipv4S_.Equals(other.ipv4S_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (OsName.Length != 0) hash ^= OsName.GetHashCode();
if (Hostname.Length != 0) hash ^= Hostname.GetHashCode();
if (ProcessNo != 0) hash ^= ProcessNo.GetHashCode();
hash ^= ipv4S_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (OsName.Length != 0) {
output.WriteRawTag(10);
output.WriteString(OsName);
}
if (Hostname.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Hostname);
}
if (ProcessNo != 0) {
output.WriteRawTag(24);
output.WriteInt32(ProcessNo);
}
ipv4S_.WriteTo(output, _repeated_ipv4S_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (OsName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(OsName);
}
if (Hostname.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Hostname);
}
if (ProcessNo != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ProcessNo);
}
size += ipv4S_.CalculateSize(_repeated_ipv4S_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(OSInfo other) {
if (other == null) {
return;
}
if (other.OsName.Length != 0) {
OsName = other.OsName;
}
if (other.Hostname.Length != 0) {
Hostname = other.Hostname;
}
if (other.ProcessNo != 0) {
ProcessNo = other.ProcessNo;
}
ipv4S_.Add(other.ipv4S_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
OsName = input.ReadString();
break;
}
case 18: {
Hostname = input.ReadString();
break;
}
case 24: {
ProcessNo = input.ReadInt32();
break;
}
case 34: {
ipv4S_.AddEntriesFrom(input, _repeated_ipv4S_codec);
break;
}
}
}
}
}
public sealed partial class ServiceNameCollection : pb::IMessage<ServiceNameCollection> {
private static readonly pb::MessageParser<ServiceNameCollection> _parser = new pb::MessageParser<ServiceNameCollection>(() => new ServiceNameCollection());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ServiceNameCollection> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.DiscoveryServiceReflection.Descriptor.MessageTypes[5]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ServiceNameCollection() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ServiceNameCollection(ServiceNameCollection other) : this() {
elements_ = other.elements_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ServiceNameCollection Clone() {
return new ServiceNameCollection(this);
}
/// <summary>Field number for the "elements" field.</summary>
public const int ElementsFieldNumber = 1;
private static readonly pb::FieldCodec<global::SkyWalking.NetworkProtocol.ServiceNameElement> _repeated_elements_codec
= pb::FieldCodec.ForMessage(10, global::SkyWalking.NetworkProtocol.ServiceNameElement.Parser);
private readonly pbc::RepeatedField<global::SkyWalking.NetworkProtocol.ServiceNameElement> elements_ = new pbc::RepeatedField<global::SkyWalking.NetworkProtocol.ServiceNameElement>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::SkyWalking.NetworkProtocol.ServiceNameElement> Elements {
get { return elements_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as ServiceNameCollection);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(ServiceNameCollection other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!elements_.Equals(other.elements_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
hash ^= elements_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
elements_.WriteTo(output, _repeated_elements_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
size += elements_.CalculateSize(_repeated_elements_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(ServiceNameCollection other) {
if (other == null) {
return;
}
elements_.Add(other.elements_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
elements_.AddEntriesFrom(input, _repeated_elements_codec);
break;
}
}
}
}
}
public sealed partial class ServiceNameMappingCollection : pb::IMessage<ServiceNameMappingCollection> {
private static readonly pb::MessageParser<ServiceNameMappingCollection> _parser = new pb::MessageParser<ServiceNameMappingCollection>(() => new ServiceNameMappingCollection());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ServiceNameMappingCollection> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.DiscoveryServiceReflection.Descriptor.MessageTypes[6]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ServiceNameMappingCollection() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ServiceNameMappingCollection(ServiceNameMappingCollection other) : this() {
elements_ = other.elements_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ServiceNameMappingCollection Clone() {
return new ServiceNameMappingCollection(this);
}
/// <summary>Field number for the "elements" field.</summary>
public const int ElementsFieldNumber = 1;
private static readonly pb::FieldCodec<global::SkyWalking.NetworkProtocol.ServiceNameMappingElement> _repeated_elements_codec
= pb::FieldCodec.ForMessage(10, global::SkyWalking.NetworkProtocol.ServiceNameMappingElement.Parser);
private readonly pbc::RepeatedField<global::SkyWalking.NetworkProtocol.ServiceNameMappingElement> elements_ = new pbc::RepeatedField<global::SkyWalking.NetworkProtocol.ServiceNameMappingElement>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::SkyWalking.NetworkProtocol.ServiceNameMappingElement> Elements {
get { return elements_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as ServiceNameMappingCollection);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(ServiceNameMappingCollection other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!elements_.Equals(other.elements_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
hash ^= elements_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
elements_.WriteTo(output, _repeated_elements_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
size += elements_.CalculateSize(_repeated_elements_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(ServiceNameMappingCollection other) {
if (other == null) {
return;
}
elements_.Add(other.elements_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
elements_.AddEntriesFrom(input, _repeated_elements_codec);
break;
}
}
}
}
}
public sealed partial class ServiceNameMappingElement : pb::IMessage<ServiceNameMappingElement> {
private static readonly pb::MessageParser<ServiceNameMappingElement> _parser = new pb::MessageParser<ServiceNameMappingElement>(() => new ServiceNameMappingElement());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ServiceNameMappingElement> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.DiscoveryServiceReflection.Descriptor.MessageTypes[7]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ServiceNameMappingElement() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ServiceNameMappingElement(ServiceNameMappingElement other) : this() {
serviceId_ = other.serviceId_;
Element = other.element_ != null ? other.Element.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ServiceNameMappingElement Clone() {
return new ServiceNameMappingElement(this);
}
/// <summary>Field number for the "serviceId" field.</summary>
public const int ServiceIdFieldNumber = 1;
private int serviceId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int ServiceId {
get { return serviceId_; }
set {
serviceId_ = value;
}
}
/// <summary>Field number for the "element" field.</summary>
public const int ElementFieldNumber = 2;
private global::SkyWalking.NetworkProtocol.ServiceNameElement element_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::SkyWalking.NetworkProtocol.ServiceNameElement Element {
get { return element_; }
set {
element_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as ServiceNameMappingElement);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(ServiceNameMappingElement other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (ServiceId != other.ServiceId) return false;
if (!object.Equals(Element, other.Element)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (ServiceId != 0) hash ^= ServiceId.GetHashCode();
if (element_ != null) hash ^= Element.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (ServiceId != 0) {
output.WriteRawTag(8);
output.WriteInt32(ServiceId);
}
if (element_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Element);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (ServiceId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ServiceId);
}
if (element_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Element);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(ServiceNameMappingElement other) {
if (other == null) {
return;
}
if (other.ServiceId != 0) {
ServiceId = other.ServiceId;
}
if (other.element_ != null) {
if (element_ == null) {
element_ = new global::SkyWalking.NetworkProtocol.ServiceNameElement();
}
Element.MergeFrom(other.Element);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
ServiceId = input.ReadInt32();
break;
}
case 18: {
if (element_ == null) {
element_ = new global::SkyWalking.NetworkProtocol.ServiceNameElement();
}
input.ReadMessage(element_);
break;
}
}
}
}
}
public sealed partial class ServiceNameElement : pb::IMessage<ServiceNameElement> {
private static readonly pb::MessageParser<ServiceNameElement> _parser = new pb::MessageParser<ServiceNameElement>(() => new ServiceNameElement());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ServiceNameElement> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.DiscoveryServiceReflection.Descriptor.MessageTypes[8]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ServiceNameElement() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ServiceNameElement(ServiceNameElement other) : this() {
serviceName_ = other.serviceName_;
applicationId_ = other.applicationId_;
srcSpanType_ = other.srcSpanType_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ServiceNameElement Clone() {
return new ServiceNameElement(this);
}
/// <summary>Field number for the "serviceName" field.</summary>
public const int ServiceNameFieldNumber = 1;
private string serviceName_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string ServiceName {
get { return serviceName_; }
set {
serviceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "applicationId" field.</summary>
public const int ApplicationIdFieldNumber = 2;
private int applicationId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int ApplicationId {
get { return applicationId_; }
set {
applicationId_ = value;
}
}
/// <summary>Field number for the "srcSpanType" field.</summary>
public const int SrcSpanTypeFieldNumber = 3;
private global::SkyWalking.NetworkProtocol.SpanType srcSpanType_ = 0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::SkyWalking.NetworkProtocol.SpanType SrcSpanType {
get { return srcSpanType_; }
set {
srcSpanType_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as ServiceNameElement);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(ServiceNameElement other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (ServiceName != other.ServiceName) return false;
if (ApplicationId != other.ApplicationId) return false;
if (SrcSpanType != other.SrcSpanType) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (ServiceName.Length != 0) hash ^= ServiceName.GetHashCode();
if (ApplicationId != 0) hash ^= ApplicationId.GetHashCode();
if (SrcSpanType != 0) hash ^= SrcSpanType.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (ServiceName.Length != 0) {
output.WriteRawTag(10);
output.WriteString(ServiceName);
}
if (ApplicationId != 0) {
output.WriteRawTag(16);
output.WriteInt32(ApplicationId);
}
if (SrcSpanType != 0) {
output.WriteRawTag(24);
output.WriteEnum((int) SrcSpanType);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (ServiceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceName);
}
if (ApplicationId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ApplicationId);
}
if (SrcSpanType != 0) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SrcSpanType);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(ServiceNameElement other) {
if (other == null) {
return;
}
if (other.ServiceName.Length != 0) {
ServiceName = other.ServiceName;
}
if (other.ApplicationId != 0) {
ApplicationId = other.ApplicationId;
}
if (other.SrcSpanType != 0) {
SrcSpanType = other.SrcSpanType;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
ServiceName = input.ReadString();
break;
}
case 16: {
ApplicationId = input.ReadInt32();
break;
}
case 24: {
srcSpanType_ = (global::SkyWalking.NetworkProtocol.SpanType) input.ReadEnum();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: DiscoveryService.proto
// </auto-generated>
#pragma warning disable 1591
#region Designer generated code
using System;
using System.Threading;
using System.Threading.Tasks;
using grpc = global::Grpc.Core;
namespace SkyWalking.NetworkProtocol {
public static partial class InstanceDiscoveryService
{
static readonly string __ServiceName = "SkyWalking.NetworkProtocol.InstanceDiscoveryService";
static readonly grpc::Marshaller<global::SkyWalking.NetworkProtocol.ApplicationInstance> __Marshaller_ApplicationInstance = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::SkyWalking.NetworkProtocol.ApplicationInstance.Parser.ParseFrom);
static readonly grpc::Marshaller<global::SkyWalking.NetworkProtocol.ApplicationInstanceMapping> __Marshaller_ApplicationInstanceMapping = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::SkyWalking.NetworkProtocol.ApplicationInstanceMapping.Parser.ParseFrom);
static readonly grpc::Marshaller<global::SkyWalking.NetworkProtocol.ApplicationInstanceHeartbeat> __Marshaller_ApplicationInstanceHeartbeat = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::SkyWalking.NetworkProtocol.ApplicationInstanceHeartbeat.Parser.ParseFrom);
static readonly grpc::Marshaller<global::SkyWalking.NetworkProtocol.Downstream> __Marshaller_Downstream = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::SkyWalking.NetworkProtocol.Downstream.Parser.ParseFrom);
static readonly grpc::Method<global::SkyWalking.NetworkProtocol.ApplicationInstance, global::SkyWalking.NetworkProtocol.ApplicationInstanceMapping> __Method_registerInstance = new grpc::Method<global::SkyWalking.NetworkProtocol.ApplicationInstance, global::SkyWalking.NetworkProtocol.ApplicationInstanceMapping>(
grpc::MethodType.Unary,
__ServiceName,
"registerInstance",
__Marshaller_ApplicationInstance,
__Marshaller_ApplicationInstanceMapping);
static readonly grpc::Method<global::SkyWalking.NetworkProtocol.ApplicationInstanceHeartbeat, global::SkyWalking.NetworkProtocol.Downstream> __Method_heartbeat = new grpc::Method<global::SkyWalking.NetworkProtocol.ApplicationInstanceHeartbeat, global::SkyWalking.NetworkProtocol.Downstream>(
grpc::MethodType.Unary,
__ServiceName,
"heartbeat",
__Marshaller_ApplicationInstanceHeartbeat,
__Marshaller_Downstream);
/// <summary>Service descriptor</summary>
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{
get { return global::SkyWalking.NetworkProtocol.DiscoveryServiceReflection.Descriptor.Services[0]; }
}
/// <summary>Base class for server-side implementations of InstanceDiscoveryService</summary>
public abstract partial class InstanceDiscoveryServiceBase
{
public virtual global::System.Threading.Tasks.Task<global::SkyWalking.NetworkProtocol.ApplicationInstanceMapping> registerInstance(global::SkyWalking.NetworkProtocol.ApplicationInstance request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
public virtual global::System.Threading.Tasks.Task<global::SkyWalking.NetworkProtocol.Downstream> heartbeat(global::SkyWalking.NetworkProtocol.ApplicationInstanceHeartbeat request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
}
/// <summary>Client for InstanceDiscoveryService</summary>
public partial class InstanceDiscoveryServiceClient : grpc::ClientBase<InstanceDiscoveryServiceClient>
{
/// <summary>Creates a new client for InstanceDiscoveryService</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
public InstanceDiscoveryServiceClient(grpc::Channel channel) : base(channel)
{
}
/// <summary>Creates a new client for InstanceDiscoveryService that uses a custom <c>CallInvoker</c>.</summary>
/// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
public InstanceDiscoveryServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
{
}
/// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
protected InstanceDiscoveryServiceClient() : base()
{
}
/// <summary>Protected constructor to allow creation of configured clients.</summary>
/// <param name="configuration">The client configuration.</param>
protected InstanceDiscoveryServiceClient(ClientBaseConfiguration configuration) : base(configuration)
{
}
public virtual global::SkyWalking.NetworkProtocol.ApplicationInstanceMapping registerInstance(global::SkyWalking.NetworkProtocol.ApplicationInstance request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
{
return registerInstance(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
public virtual global::SkyWalking.NetworkProtocol.ApplicationInstanceMapping registerInstance(global::SkyWalking.NetworkProtocol.ApplicationInstance request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_registerInstance, null, options, request);
}
public virtual grpc::AsyncUnaryCall<global::SkyWalking.NetworkProtocol.ApplicationInstanceMapping> registerInstanceAsync(global::SkyWalking.NetworkProtocol.ApplicationInstance request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
{
return registerInstanceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
public virtual grpc::AsyncUnaryCall<global::SkyWalking.NetworkProtocol.ApplicationInstanceMapping> registerInstanceAsync(global::SkyWalking.NetworkProtocol.ApplicationInstance request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_registerInstance, null, options, request);
}
public virtual global::SkyWalking.NetworkProtocol.Downstream heartbeat(global::SkyWalking.NetworkProtocol.ApplicationInstanceHeartbeat request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
{
return heartbeat(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
public virtual global::SkyWalking.NetworkProtocol.Downstream heartbeat(global::SkyWalking.NetworkProtocol.ApplicationInstanceHeartbeat request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_heartbeat, null, options, request);
}
public virtual grpc::AsyncUnaryCall<global::SkyWalking.NetworkProtocol.Downstream> heartbeatAsync(global::SkyWalking.NetworkProtocol.ApplicationInstanceHeartbeat request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
{
return heartbeatAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
public virtual grpc::AsyncUnaryCall<global::SkyWalking.NetworkProtocol.Downstream> heartbeatAsync(global::SkyWalking.NetworkProtocol.ApplicationInstanceHeartbeat request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_heartbeat, null, options, request);
}
/// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
protected override InstanceDiscoveryServiceClient NewInstance(ClientBaseConfiguration configuration)
{
return new InstanceDiscoveryServiceClient(configuration);
}
}
/// <summary>Creates service definition that can be registered with a server</summary>
/// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
public static grpc::ServerServiceDefinition BindService(InstanceDiscoveryServiceBase serviceImpl)
{
return grpc::ServerServiceDefinition.CreateBuilder()
.AddMethod(__Method_registerInstance, serviceImpl.registerInstance)
.AddMethod(__Method_heartbeat, serviceImpl.heartbeat).Build();
}
}
/// <summary>
///discovery service for ServiceName by Network address or application code
/// </summary>
public static partial class ServiceNameDiscoveryService
{
static readonly string __ServiceName = "SkyWalking.NetworkProtocol.ServiceNameDiscoveryService";
static readonly grpc::Marshaller<global::SkyWalking.NetworkProtocol.ServiceNameCollection> __Marshaller_ServiceNameCollection = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::SkyWalking.NetworkProtocol.ServiceNameCollection.Parser.ParseFrom);
static readonly grpc::Marshaller<global::SkyWalking.NetworkProtocol.ServiceNameMappingCollection> __Marshaller_ServiceNameMappingCollection = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::SkyWalking.NetworkProtocol.ServiceNameMappingCollection.Parser.ParseFrom);
static readonly grpc::Method<global::SkyWalking.NetworkProtocol.ServiceNameCollection, global::SkyWalking.NetworkProtocol.ServiceNameMappingCollection> __Method_discovery = new grpc::Method<global::SkyWalking.NetworkProtocol.ServiceNameCollection, global::SkyWalking.NetworkProtocol.ServiceNameMappingCollection>(
grpc::MethodType.Unary,
__ServiceName,
"discovery",
__Marshaller_ServiceNameCollection,
__Marshaller_ServiceNameMappingCollection);
/// <summary>Service descriptor</summary>
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{
get { return global::SkyWalking.NetworkProtocol.DiscoveryServiceReflection.Descriptor.Services[1]; }
}
/// <summary>Base class for server-side implementations of ServiceNameDiscoveryService</summary>
public abstract partial class ServiceNameDiscoveryServiceBase
{
public virtual global::System.Threading.Tasks.Task<global::SkyWalking.NetworkProtocol.ServiceNameMappingCollection> discovery(global::SkyWalking.NetworkProtocol.ServiceNameCollection request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
}
/// <summary>Client for ServiceNameDiscoveryService</summary>
public partial class ServiceNameDiscoveryServiceClient : grpc::ClientBase<ServiceNameDiscoveryServiceClient>
{
/// <summary>Creates a new client for ServiceNameDiscoveryService</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
public ServiceNameDiscoveryServiceClient(grpc::Channel channel) : base(channel)
{
}
/// <summary>Creates a new client for ServiceNameDiscoveryService that uses a custom <c>CallInvoker</c>.</summary>
/// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
public ServiceNameDiscoveryServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
{
}
/// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
protected ServiceNameDiscoveryServiceClient() : base()
{
}
/// <summary>Protected constructor to allow creation of configured clients.</summary>
/// <param name="configuration">The client configuration.</param>
protected ServiceNameDiscoveryServiceClient(ClientBaseConfiguration configuration) : base(configuration)
{
}
public virtual global::SkyWalking.NetworkProtocol.ServiceNameMappingCollection discovery(global::SkyWalking.NetworkProtocol.ServiceNameCollection request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
{
return discovery(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
public virtual global::SkyWalking.NetworkProtocol.ServiceNameMappingCollection discovery(global::SkyWalking.NetworkProtocol.ServiceNameCollection request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_discovery, null, options, request);
}
public virtual grpc::AsyncUnaryCall<global::SkyWalking.NetworkProtocol.ServiceNameMappingCollection> discoveryAsync(global::SkyWalking.NetworkProtocol.ServiceNameCollection request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
{
return discoveryAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
public virtual grpc::AsyncUnaryCall<global::SkyWalking.NetworkProtocol.ServiceNameMappingCollection> discoveryAsync(global::SkyWalking.NetworkProtocol.ServiceNameCollection request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_discovery, null, options, request);
}
/// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
protected override ServiceNameDiscoveryServiceClient NewInstance(ClientBaseConfiguration configuration)
{
return new ServiceNameDiscoveryServiceClient(configuration);
}
}
/// <summary>Creates service definition that can be registered with a server</summary>
/// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
public static grpc::ServerServiceDefinition BindService(ServiceNameDiscoveryServiceBase serviceImpl)
{
return grpc::ServerServiceDefinition.CreateBuilder()
.AddMethod(__Method_discovery, serviceImpl.discovery).Build();
}
}
}
#endregion
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Downstream.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace SkyWalking.NetworkProtocol {
/// <summary>Holder for reflection information generated from Downstream.proto</summary>
public static partial class DownstreamReflection {
#region Descriptor
/// <summary>File descriptor for Downstream.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static DownstreamReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChBEb3duc3RyZWFtLnByb3RvEhpTa3lXYWxraW5nLk5ldHdvcmtQcm90b2Nv",
"bCIMCgpEb3duc3RyZWFtQisKJ29yZy5hcGFjaGUuc2t5d2Fsa2luZy5hcG0u",
"bmV0d29yay5wcm90b1ABYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.Downstream), global::SkyWalking.NetworkProtocol.Downstream.Parser, null, null, null, null)
}));
}
#endregion
}
#region Messages
/// <summary>
/// nothing down stream from collector yet.
/// </summary>
public sealed partial class Downstream : pb::IMessage<Downstream> {
private static readonly pb::MessageParser<Downstream> _parser = new pb::MessageParser<Downstream>(() => new Downstream());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<Downstream> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.DownstreamReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Downstream() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Downstream(Downstream other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Downstream Clone() {
return new Downstream(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as Downstream);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Downstream other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Downstream other) {
if (other == null) {
return;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
}
}
}
}
#endregion
}
#endregion Designer generated code
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: JVMMetricsService.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace SkyWalking.NetworkProtocol {
/// <summary>Holder for reflection information generated from JVMMetricsService.proto</summary>
public static partial class JVMMetricsServiceReflection {
#region Descriptor
/// <summary>File descriptor for JVMMetricsService.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static JVMMetricsServiceReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChdKVk1NZXRyaWNzU2VydmljZS5wcm90bxIaU2t5V2Fsa2luZy5OZXR3b3Jr",
"UHJvdG9jb2waEERvd25zdHJlYW0ucHJvdG8iYwoKSlZNTWV0cmljcxI2Cgdt",
"ZXRyaWNzGAEgAygLMiUuU2t5V2Fsa2luZy5OZXR3b3JrUHJvdG9jb2wuSlZN",
"TWV0cmljEh0KFWFwcGxpY2F0aW9uSW5zdGFuY2VJZBgCIAEoBSLjAQoJSlZN",
"TWV0cmljEgwKBHRpbWUYASABKAMSLAoDY3B1GAIgASgLMh8uU2t5V2Fsa2lu",
"Zy5OZXR3b3JrUHJvdG9jb2wuQ1BVEjIKBm1lbW9yeRgDIAMoCzIiLlNreVdh",
"bGtpbmcuTmV0d29ya1Byb3RvY29sLk1lbW9yeRI6CgptZW1vcnlQb29sGAQg",
"AygLMiYuU2t5V2Fsa2luZy5OZXR3b3JrUHJvdG9jb2wuTWVtb3J5UG9vbBIq",
"CgJnYxgFIAMoCzIeLlNreVdhbGtpbmcuTmV0d29ya1Byb3RvY29sLkdDIhsK",
"A0NQVRIUCgx1c2FnZVBlcmNlbnQYAiABKAEiVAoGTWVtb3J5Eg4KBmlzSGVh",
"cBgBIAEoCBIMCgRpbml0GAIgASgDEgsKA21heBgDIAEoAxIMCgR1c2VkGAQg",
"ASgDEhEKCWNvbW1pdHRlZBgFIAEoAyJ7CgpNZW1vcnlQb29sEjIKBHR5cGUY",
"ASABKA4yJC5Ta3lXYWxraW5nLk5ldHdvcmtQcm90b2NvbC5Qb29sVHlwZRIM",
"CgRpbml0GAIgASgDEgsKA21heBgDIAEoAxIMCgR1c2VkGAQgASgDEhAKCGNv",
"bW1pdGVkGAUgASgDIlcKAkdDEjQKBnBocmFzZRgBIAEoDjIkLlNreVdhbGtp",
"bmcuTmV0d29ya1Byb3RvY29sLkdDUGhyYXNlEg0KBWNvdW50GAIgASgDEgwK",
"BHRpbWUYAyABKAMqgAEKCFBvb2xUeXBlEhQKEENPREVfQ0FDSEVfVVNBR0UQ",
"ABIQCgxORVdHRU5fVVNBR0UQARIQCgxPTERHRU5fVVNBR0UQAhISCg5TVVJW",
"SVZPUl9VU0FHRRADEhEKDVBFUk1HRU5fVVNBR0UQBBITCg9NRVRBU1BBQ0Vf",
"VVNBR0UQBSocCghHQ1BocmFzZRIHCgNORVcQABIHCgNPTEQQATJwChFKVk1N",
"ZXRyaWNzU2VydmljZRJbCgdjb2xsZWN0EiYuU2t5V2Fsa2luZy5OZXR3b3Jr",
"UHJvdG9jb2wuSlZNTWV0cmljcxomLlNreVdhbGtpbmcuTmV0d29ya1Byb3Rv",
"Y29sLkRvd25zdHJlYW0iAEIrCidvcmcuYXBhY2hlLnNreXdhbGtpbmcuYXBt",
"Lm5ldHdvcmsucHJvdG9QAWIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::SkyWalking.NetworkProtocol.DownstreamReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::SkyWalking.NetworkProtocol.PoolType), typeof(global::SkyWalking.NetworkProtocol.GCPhrase), }, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.JVMMetrics), global::SkyWalking.NetworkProtocol.JVMMetrics.Parser, new[]{ "Metrics", "ApplicationInstanceId" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.JVMMetric), global::SkyWalking.NetworkProtocol.JVMMetric.Parser, new[]{ "Time", "Cpu", "Memory", "MemoryPool", "Gc" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.CPU), global::SkyWalking.NetworkProtocol.CPU.Parser, new[]{ "UsagePercent" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.Memory), global::SkyWalking.NetworkProtocol.Memory.Parser, new[]{ "IsHeap", "Init", "Max", "Used", "Committed" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.MemoryPool), global::SkyWalking.NetworkProtocol.MemoryPool.Parser, new[]{ "Type", "Init", "Max", "Used", "Commited" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.GC), global::SkyWalking.NetworkProtocol.GC.Parser, new[]{ "Phrase", "Count", "Time" }, null, null, null)
}));
}
#endregion
}
#region Enums
public enum PoolType {
[pbr::OriginalName("CODE_CACHE_USAGE")] CodeCacheUsage = 0,
[pbr::OriginalName("NEWGEN_USAGE")] NewgenUsage = 1,
[pbr::OriginalName("OLDGEN_USAGE")] OldgenUsage = 2,
[pbr::OriginalName("SURVIVOR_USAGE")] SurvivorUsage = 3,
[pbr::OriginalName("PERMGEN_USAGE")] PermgenUsage = 4,
[pbr::OriginalName("METASPACE_USAGE")] MetaspaceUsage = 5,
}
public enum GCPhrase {
[pbr::OriginalName("NEW")] New = 0,
[pbr::OriginalName("OLD")] Old = 1,
}
#endregion
#region Messages
public sealed partial class JVMMetrics : pb::IMessage<JVMMetrics> {
private static readonly pb::MessageParser<JVMMetrics> _parser = new pb::MessageParser<JVMMetrics>(() => new JVMMetrics());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<JVMMetrics> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.JVMMetricsServiceReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public JVMMetrics() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public JVMMetrics(JVMMetrics other) : this() {
metrics_ = other.metrics_.Clone();
applicationInstanceId_ = other.applicationInstanceId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public JVMMetrics Clone() {
return new JVMMetrics(this);
}
/// <summary>Field number for the "metrics" field.</summary>
public const int MetricsFieldNumber = 1;
private static readonly pb::FieldCodec<global::SkyWalking.NetworkProtocol.JVMMetric> _repeated_metrics_codec
= pb::FieldCodec.ForMessage(10, global::SkyWalking.NetworkProtocol.JVMMetric.Parser);
private readonly pbc::RepeatedField<global::SkyWalking.NetworkProtocol.JVMMetric> metrics_ = new pbc::RepeatedField<global::SkyWalking.NetworkProtocol.JVMMetric>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::SkyWalking.NetworkProtocol.JVMMetric> Metrics {
get { return metrics_; }
}
/// <summary>Field number for the "applicationInstanceId" field.</summary>
public const int ApplicationInstanceIdFieldNumber = 2;
private int applicationInstanceId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int ApplicationInstanceId {
get { return applicationInstanceId_; }
set {
applicationInstanceId_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as JVMMetrics);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(JVMMetrics other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!metrics_.Equals(other.metrics_)) return false;
if (ApplicationInstanceId != other.ApplicationInstanceId) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
hash ^= metrics_.GetHashCode();
if (ApplicationInstanceId != 0) hash ^= ApplicationInstanceId.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
metrics_.WriteTo(output, _repeated_metrics_codec);
if (ApplicationInstanceId != 0) {
output.WriteRawTag(16);
output.WriteInt32(ApplicationInstanceId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
size += metrics_.CalculateSize(_repeated_metrics_codec);
if (ApplicationInstanceId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ApplicationInstanceId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(JVMMetrics other) {
if (other == null) {
return;
}
metrics_.Add(other.metrics_);
if (other.ApplicationInstanceId != 0) {
ApplicationInstanceId = other.ApplicationInstanceId;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
metrics_.AddEntriesFrom(input, _repeated_metrics_codec);
break;
}
case 16: {
ApplicationInstanceId = input.ReadInt32();
break;
}
}
}
}
}
public sealed partial class JVMMetric : pb::IMessage<JVMMetric> {
private static readonly pb::MessageParser<JVMMetric> _parser = new pb::MessageParser<JVMMetric>(() => new JVMMetric());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<JVMMetric> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.JVMMetricsServiceReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public JVMMetric() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public JVMMetric(JVMMetric other) : this() {
time_ = other.time_;
Cpu = other.cpu_ != null ? other.Cpu.Clone() : null;
memory_ = other.memory_.Clone();
memoryPool_ = other.memoryPool_.Clone();
gc_ = other.gc_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public JVMMetric Clone() {
return new JVMMetric(this);
}
/// <summary>Field number for the "time" field.</summary>
public const int TimeFieldNumber = 1;
private long time_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long Time {
get { return time_; }
set {
time_ = value;
}
}
/// <summary>Field number for the "cpu" field.</summary>
public const int CpuFieldNumber = 2;
private global::SkyWalking.NetworkProtocol.CPU cpu_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::SkyWalking.NetworkProtocol.CPU Cpu {
get { return cpu_; }
set {
cpu_ = value;
}
}
/// <summary>Field number for the "memory" field.</summary>
public const int MemoryFieldNumber = 3;
private static readonly pb::FieldCodec<global::SkyWalking.NetworkProtocol.Memory> _repeated_memory_codec
= pb::FieldCodec.ForMessage(26, global::SkyWalking.NetworkProtocol.Memory.Parser);
private readonly pbc::RepeatedField<global::SkyWalking.NetworkProtocol.Memory> memory_ = new pbc::RepeatedField<global::SkyWalking.NetworkProtocol.Memory>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::SkyWalking.NetworkProtocol.Memory> Memory {
get { return memory_; }
}
/// <summary>Field number for the "memoryPool" field.</summary>
public const int MemoryPoolFieldNumber = 4;
private static readonly pb::FieldCodec<global::SkyWalking.NetworkProtocol.MemoryPool> _repeated_memoryPool_codec
= pb::FieldCodec.ForMessage(34, global::SkyWalking.NetworkProtocol.MemoryPool.Parser);
private readonly pbc::RepeatedField<global::SkyWalking.NetworkProtocol.MemoryPool> memoryPool_ = new pbc::RepeatedField<global::SkyWalking.NetworkProtocol.MemoryPool>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::SkyWalking.NetworkProtocol.MemoryPool> MemoryPool {
get { return memoryPool_; }
}
/// <summary>Field number for the "gc" field.</summary>
public const int GcFieldNumber = 5;
private static readonly pb::FieldCodec<global::SkyWalking.NetworkProtocol.GC> _repeated_gc_codec
= pb::FieldCodec.ForMessage(42, global::SkyWalking.NetworkProtocol.GC.Parser);
private readonly pbc::RepeatedField<global::SkyWalking.NetworkProtocol.GC> gc_ = new pbc::RepeatedField<global::SkyWalking.NetworkProtocol.GC>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::SkyWalking.NetworkProtocol.GC> Gc {
get { return gc_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as JVMMetric);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(JVMMetric other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Time != other.Time) return false;
if (!object.Equals(Cpu, other.Cpu)) return false;
if(!memory_.Equals(other.memory_)) return false;
if(!memoryPool_.Equals(other.memoryPool_)) return false;
if(!gc_.Equals(other.gc_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Time != 0L) hash ^= Time.GetHashCode();
if (cpu_ != null) hash ^= Cpu.GetHashCode();
hash ^= memory_.GetHashCode();
hash ^= memoryPool_.GetHashCode();
hash ^= gc_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (Time != 0L) {
output.WriteRawTag(8);
output.WriteInt64(Time);
}
if (cpu_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Cpu);
}
memory_.WriteTo(output, _repeated_memory_codec);
memoryPool_.WriteTo(output, _repeated_memoryPool_codec);
gc_.WriteTo(output, _repeated_gc_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Time != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Time);
}
if (cpu_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cpu);
}
size += memory_.CalculateSize(_repeated_memory_codec);
size += memoryPool_.CalculateSize(_repeated_memoryPool_codec);
size += gc_.CalculateSize(_repeated_gc_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(JVMMetric other) {
if (other == null) {
return;
}
if (other.Time != 0L) {
Time = other.Time;
}
if (other.cpu_ != null) {
if (cpu_ == null) {
cpu_ = new global::SkyWalking.NetworkProtocol.CPU();
}
Cpu.MergeFrom(other.Cpu);
}
memory_.Add(other.memory_);
memoryPool_.Add(other.memoryPool_);
gc_.Add(other.gc_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
Time = input.ReadInt64();
break;
}
case 18: {
if (cpu_ == null) {
cpu_ = new global::SkyWalking.NetworkProtocol.CPU();
}
input.ReadMessage(cpu_);
break;
}
case 26: {
memory_.AddEntriesFrom(input, _repeated_memory_codec);
break;
}
case 34: {
memoryPool_.AddEntriesFrom(input, _repeated_memoryPool_codec);
break;
}
case 42: {
gc_.AddEntriesFrom(input, _repeated_gc_codec);
break;
}
}
}
}
}
public sealed partial class CPU : pb::IMessage<CPU> {
private static readonly pb::MessageParser<CPU> _parser = new pb::MessageParser<CPU>(() => new CPU());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<CPU> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.JVMMetricsServiceReflection.Descriptor.MessageTypes[2]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public CPU() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public CPU(CPU other) : this() {
usagePercent_ = other.usagePercent_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public CPU Clone() {
return new CPU(this);
}
/// <summary>Field number for the "usagePercent" field.</summary>
public const int UsagePercentFieldNumber = 2;
private double usagePercent_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public double UsagePercent {
get { return usagePercent_; }
set {
usagePercent_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as CPU);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(CPU other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(UsagePercent, other.UsagePercent)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (UsagePercent != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(UsagePercent);
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (UsagePercent != 0D) {
output.WriteRawTag(17);
output.WriteDouble(UsagePercent);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (UsagePercent != 0D) {
size += 1 + 8;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(CPU other) {
if (other == null) {
return;
}
if (other.UsagePercent != 0D) {
UsagePercent = other.UsagePercent;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 17: {
UsagePercent = input.ReadDouble();
break;
}
}
}
}
}
public sealed partial class Memory : pb::IMessage<Memory> {
private static readonly pb::MessageParser<Memory> _parser = new pb::MessageParser<Memory>(() => new Memory());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<Memory> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.JVMMetricsServiceReflection.Descriptor.MessageTypes[3]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Memory() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Memory(Memory other) : this() {
isHeap_ = other.isHeap_;
init_ = other.init_;
max_ = other.max_;
used_ = other.used_;
committed_ = other.committed_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Memory Clone() {
return new Memory(this);
}
/// <summary>Field number for the "isHeap" field.</summary>
public const int IsHeapFieldNumber = 1;
private bool isHeap_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool IsHeap {
get { return isHeap_; }
set {
isHeap_ = value;
}
}
/// <summary>Field number for the "init" field.</summary>
public const int InitFieldNumber = 2;
private long init_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long Init {
get { return init_; }
set {
init_ = value;
}
}
/// <summary>Field number for the "max" field.</summary>
public const int MaxFieldNumber = 3;
private long max_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long Max {
get { return max_; }
set {
max_ = value;
}
}
/// <summary>Field number for the "used" field.</summary>
public const int UsedFieldNumber = 4;
private long used_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long Used {
get { return used_; }
set {
used_ = value;
}
}
/// <summary>Field number for the "committed" field.</summary>
public const int CommittedFieldNumber = 5;
private long committed_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long Committed {
get { return committed_; }
set {
committed_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as Memory);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Memory other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (IsHeap != other.IsHeap) return false;
if (Init != other.Init) return false;
if (Max != other.Max) return false;
if (Used != other.Used) return false;
if (Committed != other.Committed) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (IsHeap != false) hash ^= IsHeap.GetHashCode();
if (Init != 0L) hash ^= Init.GetHashCode();
if (Max != 0L) hash ^= Max.GetHashCode();
if (Used != 0L) hash ^= Used.GetHashCode();
if (Committed != 0L) hash ^= Committed.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (IsHeap != false) {
output.WriteRawTag(8);
output.WriteBool(IsHeap);
}
if (Init != 0L) {
output.WriteRawTag(16);
output.WriteInt64(Init);
}
if (Max != 0L) {
output.WriteRawTag(24);
output.WriteInt64(Max);
}
if (Used != 0L) {
output.WriteRawTag(32);
output.WriteInt64(Used);
}
if (Committed != 0L) {
output.WriteRawTag(40);
output.WriteInt64(Committed);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (IsHeap != false) {
size += 1 + 1;
}
if (Init != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Init);
}
if (Max != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Max);
}
if (Used != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Used);
}
if (Committed != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Committed);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Memory other) {
if (other == null) {
return;
}
if (other.IsHeap != false) {
IsHeap = other.IsHeap;
}
if (other.Init != 0L) {
Init = other.Init;
}
if (other.Max != 0L) {
Max = other.Max;
}
if (other.Used != 0L) {
Used = other.Used;
}
if (other.Committed != 0L) {
Committed = other.Committed;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
IsHeap = input.ReadBool();
break;
}
case 16: {
Init = input.ReadInt64();
break;
}
case 24: {
Max = input.ReadInt64();
break;
}
case 32: {
Used = input.ReadInt64();
break;
}
case 40: {
Committed = input.ReadInt64();
break;
}
}
}
}
}
public sealed partial class MemoryPool : pb::IMessage<MemoryPool> {
private static readonly pb::MessageParser<MemoryPool> _parser = new pb::MessageParser<MemoryPool>(() => new MemoryPool());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<MemoryPool> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.JVMMetricsServiceReflection.Descriptor.MessageTypes[4]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemoryPool() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemoryPool(MemoryPool other) : this() {
type_ = other.type_;
init_ = other.init_;
max_ = other.max_;
used_ = other.used_;
commited_ = other.commited_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MemoryPool Clone() {
return new MemoryPool(this);
}
/// <summary>Field number for the "type" field.</summary>
public const int TypeFieldNumber = 1;
private global::SkyWalking.NetworkProtocol.PoolType type_ = 0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::SkyWalking.NetworkProtocol.PoolType Type {
get { return type_; }
set {
type_ = value;
}
}
/// <summary>Field number for the "init" field.</summary>
public const int InitFieldNumber = 2;
private long init_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long Init {
get { return init_; }
set {
init_ = value;
}
}
/// <summary>Field number for the "max" field.</summary>
public const int MaxFieldNumber = 3;
private long max_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long Max {
get { return max_; }
set {
max_ = value;
}
}
/// <summary>Field number for the "used" field.</summary>
public const int UsedFieldNumber = 4;
private long used_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long Used {
get { return used_; }
set {
used_ = value;
}
}
/// <summary>Field number for the "commited" field.</summary>
public const int CommitedFieldNumber = 5;
private long commited_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long Commited {
get { return commited_; }
set {
commited_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as MemoryPool);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(MemoryPool other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Type != other.Type) return false;
if (Init != other.Init) return false;
if (Max != other.Max) return false;
if (Used != other.Used) return false;
if (Commited != other.Commited) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Type != 0) hash ^= Type.GetHashCode();
if (Init != 0L) hash ^= Init.GetHashCode();
if (Max != 0L) hash ^= Max.GetHashCode();
if (Used != 0L) hash ^= Used.GetHashCode();
if (Commited != 0L) hash ^= Commited.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (Type != 0) {
output.WriteRawTag(8);
output.WriteEnum((int) Type);
}
if (Init != 0L) {
output.WriteRawTag(16);
output.WriteInt64(Init);
}
if (Max != 0L) {
output.WriteRawTag(24);
output.WriteInt64(Max);
}
if (Used != 0L) {
output.WriteRawTag(32);
output.WriteInt64(Used);
}
if (Commited != 0L) {
output.WriteRawTag(40);
output.WriteInt64(Commited);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Type != 0) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
}
if (Init != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Init);
}
if (Max != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Max);
}
if (Used != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Used);
}
if (Commited != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Commited);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(MemoryPool other) {
if (other == null) {
return;
}
if (other.Type != 0) {
Type = other.Type;
}
if (other.Init != 0L) {
Init = other.Init;
}
if (other.Max != 0L) {
Max = other.Max;
}
if (other.Used != 0L) {
Used = other.Used;
}
if (other.Commited != 0L) {
Commited = other.Commited;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
type_ = (global::SkyWalking.NetworkProtocol.PoolType) input.ReadEnum();
break;
}
case 16: {
Init = input.ReadInt64();
break;
}
case 24: {
Max = input.ReadInt64();
break;
}
case 32: {
Used = input.ReadInt64();
break;
}
case 40: {
Commited = input.ReadInt64();
break;
}
}
}
}
}
public sealed partial class GC : pb::IMessage<GC> {
private static readonly pb::MessageParser<GC> _parser = new pb::MessageParser<GC>(() => new GC());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<GC> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.JVMMetricsServiceReflection.Descriptor.MessageTypes[5]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public GC() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public GC(GC other) : this() {
phrase_ = other.phrase_;
count_ = other.count_;
time_ = other.time_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public GC Clone() {
return new GC(this);
}
/// <summary>Field number for the "phrase" field.</summary>
public const int PhraseFieldNumber = 1;
private global::SkyWalking.NetworkProtocol.GCPhrase phrase_ = 0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::SkyWalking.NetworkProtocol.GCPhrase Phrase {
get { return phrase_; }
set {
phrase_ = value;
}
}
/// <summary>Field number for the "count" field.</summary>
public const int CountFieldNumber = 2;
private long count_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long Count {
get { return count_; }
set {
count_ = value;
}
}
/// <summary>Field number for the "time" field.</summary>
public const int TimeFieldNumber = 3;
private long time_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long Time {
get { return time_; }
set {
time_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as GC);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(GC other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Phrase != other.Phrase) return false;
if (Count != other.Count) return false;
if (Time != other.Time) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Phrase != 0) hash ^= Phrase.GetHashCode();
if (Count != 0L) hash ^= Count.GetHashCode();
if (Time != 0L) hash ^= Time.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (Phrase != 0) {
output.WriteRawTag(8);
output.WriteEnum((int) Phrase);
}
if (Count != 0L) {
output.WriteRawTag(16);
output.WriteInt64(Count);
}
if (Time != 0L) {
output.WriteRawTag(24);
output.WriteInt64(Time);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Phrase != 0) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Phrase);
}
if (Count != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Count);
}
if (Time != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Time);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(GC other) {
if (other == null) {
return;
}
if (other.Phrase != 0) {
Phrase = other.Phrase;
}
if (other.Count != 0L) {
Count = other.Count;
}
if (other.Time != 0L) {
Time = other.Time;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
phrase_ = (global::SkyWalking.NetworkProtocol.GCPhrase) input.ReadEnum();
break;
}
case 16: {
Count = input.ReadInt64();
break;
}
case 24: {
Time = input.ReadInt64();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: JVMMetricsService.proto
// </auto-generated>
#pragma warning disable 1591
#region Designer generated code
using System;
using System.Threading;
using System.Threading.Tasks;
using grpc = global::Grpc.Core;
namespace SkyWalking.NetworkProtocol {
public static partial class JVMMetricsService
{
static readonly string __ServiceName = "SkyWalking.NetworkProtocol.JVMMetricsService";
static readonly grpc::Marshaller<global::SkyWalking.NetworkProtocol.JVMMetrics> __Marshaller_JVMMetrics = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::SkyWalking.NetworkProtocol.JVMMetrics.Parser.ParseFrom);
static readonly grpc::Marshaller<global::SkyWalking.NetworkProtocol.Downstream> __Marshaller_Downstream = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::SkyWalking.NetworkProtocol.Downstream.Parser.ParseFrom);
static readonly grpc::Method<global::SkyWalking.NetworkProtocol.JVMMetrics, global::SkyWalking.NetworkProtocol.Downstream> __Method_collect = new grpc::Method<global::SkyWalking.NetworkProtocol.JVMMetrics, global::SkyWalking.NetworkProtocol.Downstream>(
grpc::MethodType.Unary,
__ServiceName,
"collect",
__Marshaller_JVMMetrics,
__Marshaller_Downstream);
/// <summary>Service descriptor</summary>
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{
get { return global::SkyWalking.NetworkProtocol.JVMMetricsServiceReflection.Descriptor.Services[0]; }
}
/// <summary>Base class for server-side implementations of JVMMetricsService</summary>
public abstract partial class JVMMetricsServiceBase
{
public virtual global::System.Threading.Tasks.Task<global::SkyWalking.NetworkProtocol.Downstream> collect(global::SkyWalking.NetworkProtocol.JVMMetrics request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
}
/// <summary>Client for JVMMetricsService</summary>
public partial class JVMMetricsServiceClient : grpc::ClientBase<JVMMetricsServiceClient>
{
/// <summary>Creates a new client for JVMMetricsService</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
public JVMMetricsServiceClient(grpc::Channel channel) : base(channel)
{
}
/// <summary>Creates a new client for JVMMetricsService that uses a custom <c>CallInvoker</c>.</summary>
/// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
public JVMMetricsServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
{
}
/// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
protected JVMMetricsServiceClient() : base()
{
}
/// <summary>Protected constructor to allow creation of configured clients.</summary>
/// <param name="configuration">The client configuration.</param>
protected JVMMetricsServiceClient(ClientBaseConfiguration configuration) : base(configuration)
{
}
public virtual global::SkyWalking.NetworkProtocol.Downstream collect(global::SkyWalking.NetworkProtocol.JVMMetrics request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
{
return collect(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
public virtual global::SkyWalking.NetworkProtocol.Downstream collect(global::SkyWalking.NetworkProtocol.JVMMetrics request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_collect, null, options, request);
}
public virtual grpc::AsyncUnaryCall<global::SkyWalking.NetworkProtocol.Downstream> collectAsync(global::SkyWalking.NetworkProtocol.JVMMetrics request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
{
return collectAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
public virtual grpc::AsyncUnaryCall<global::SkyWalking.NetworkProtocol.Downstream> collectAsync(global::SkyWalking.NetworkProtocol.JVMMetrics request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_collect, null, options, request);
}
/// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
protected override JVMMetricsServiceClient NewInstance(ClientBaseConfiguration configuration)
{
return new JVMMetricsServiceClient(configuration);
}
}
/// <summary>Creates service definition that can be registered with a server</summary>
/// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
public static grpc::ServerServiceDefinition BindService(JVMMetricsServiceBase serviceImpl)
{
return grpc::ServerServiceDefinition.CreateBuilder()
.AddMethod(__Method_collect, serviceImpl.collect).Build();
}
}
}
#endregion
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: KeyWithIntegerValue.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace SkyWalking.NetworkProtocol {
/// <summary>Holder for reflection information generated from KeyWithIntegerValue.proto</summary>
public static partial class KeyWithIntegerValueReflection {
#region Descriptor
/// <summary>File descriptor for KeyWithIntegerValue.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static KeyWithIntegerValueReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChlLZXlXaXRoSW50ZWdlclZhbHVlLnByb3RvEhpTa3lXYWxraW5nLk5ldHdv",
"cmtQcm90b2NvbCIxChNLZXlXaXRoSW50ZWdlclZhbHVlEgsKA2tleRgBIAEo",
"CRINCgV2YWx1ZRgCIAEoBUIrCidvcmcuYXBhY2hlLnNreXdhbGtpbmcuYXBt",
"Lm5ldHdvcmsucHJvdG9QAWIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.KeyWithIntegerValue), global::SkyWalking.NetworkProtocol.KeyWithIntegerValue.Parser, new[]{ "Key", "Value" }, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class KeyWithIntegerValue : pb::IMessage<KeyWithIntegerValue> {
private static readonly pb::MessageParser<KeyWithIntegerValue> _parser = new pb::MessageParser<KeyWithIntegerValue>(() => new KeyWithIntegerValue());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<KeyWithIntegerValue> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.KeyWithIntegerValueReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public KeyWithIntegerValue() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public KeyWithIntegerValue(KeyWithIntegerValue other) : this() {
key_ = other.key_;
value_ = other.value_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public KeyWithIntegerValue Clone() {
return new KeyWithIntegerValue(this);
}
/// <summary>Field number for the "key" field.</summary>
public const int KeyFieldNumber = 1;
private string key_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Key {
get { return key_; }
set {
key_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "value" field.</summary>
public const int ValueFieldNumber = 2;
private int value_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int Value {
get { return value_; }
set {
value_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as KeyWithIntegerValue);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(KeyWithIntegerValue other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Key != other.Key) return false;
if (Value != other.Value) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Key.Length != 0) hash ^= Key.GetHashCode();
if (Value != 0) hash ^= Value.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (Key.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Key);
}
if (Value != 0) {
output.WriteRawTag(16);
output.WriteInt32(Value);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Key.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Key);
}
if (Value != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(KeyWithIntegerValue other) {
if (other == null) {
return;
}
if (other.Key.Length != 0) {
Key = other.Key;
}
if (other.Value != 0) {
Value = other.Value;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
Key = input.ReadString();
break;
}
case 16: {
Value = input.ReadInt32();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: KeyWithStringValue.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace SkyWalking.NetworkProtocol {
/// <summary>Holder for reflection information generated from KeyWithStringValue.proto</summary>
public static partial class KeyWithStringValueReflection {
#region Descriptor
/// <summary>File descriptor for KeyWithStringValue.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static KeyWithStringValueReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChhLZXlXaXRoU3RyaW5nVmFsdWUucHJvdG8SGlNreVdhbGtpbmcuTmV0d29y",
"a1Byb3RvY29sIjAKEktleVdpdGhTdHJpbmdWYWx1ZRILCgNrZXkYASABKAkS",
"DQoFdmFsdWUYAiABKAlCKwonb3JnLmFwYWNoZS5za3l3YWxraW5nLmFwbS5u",
"ZXR3b3JrLnByb3RvUAFiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.KeyWithStringValue), global::SkyWalking.NetworkProtocol.KeyWithStringValue.Parser, new[]{ "Key", "Value" }, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class KeyWithStringValue : pb::IMessage<KeyWithStringValue> {
private static readonly pb::MessageParser<KeyWithStringValue> _parser = new pb::MessageParser<KeyWithStringValue>(() => new KeyWithStringValue());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<KeyWithStringValue> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.KeyWithStringValueReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public KeyWithStringValue() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public KeyWithStringValue(KeyWithStringValue other) : this() {
key_ = other.key_;
value_ = other.value_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public KeyWithStringValue Clone() {
return new KeyWithStringValue(this);
}
/// <summary>Field number for the "key" field.</summary>
public const int KeyFieldNumber = 1;
private string key_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Key {
get { return key_; }
set {
key_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "value" field.</summary>
public const int ValueFieldNumber = 2;
private string value_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Value {
get { return value_; }
set {
value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as KeyWithStringValue);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(KeyWithStringValue other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Key != other.Key) return false;
if (Value != other.Value) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Key.Length != 0) hash ^= Key.GetHashCode();
if (Value.Length != 0) hash ^= Value.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (Key.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Key);
}
if (Value.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Value);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Key.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Key);
}
if (Value.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Value);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(KeyWithStringValue other) {
if (other == null) {
return;
}
if (other.Key.Length != 0) {
Key = other.Key;
}
if (other.Value.Length != 0) {
Value = other.Value;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
Key = input.ReadString();
break;
}
case 18: {
Value = input.ReadString();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: NetworkAddressRegisterService.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace SkyWalking.NetworkProtocol {
/// <summary>Holder for reflection information generated from NetworkAddressRegisterService.proto</summary>
public static partial class NetworkAddressRegisterServiceReflection {
#region Descriptor
/// <summary>File descriptor for NetworkAddressRegisterService.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static NetworkAddressRegisterServiceReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CiNOZXR3b3JrQWRkcmVzc1JlZ2lzdGVyU2VydmljZS5wcm90bxIaU2t5V2Fs",
"a2luZy5OZXR3b3JrUHJvdG9jb2waGUtleVdpdGhJbnRlZ2VyVmFsdWUucHJv",
"dG8iJQoQTmV0d29ya0FkZHJlc3NlcxIRCglhZGRyZXNzZXMYASADKAkiXQoW",
"TmV0d29ya0FkZHJlc3NNYXBwaW5ncxJDCgphZGRyZXNzSWRzGAEgAygLMi8u",
"U2t5V2Fsa2luZy5OZXR3b3JrUHJvdG9jb2wuS2V5V2l0aEludGVnZXJWYWx1",
"ZTKUAQodTmV0d29ya0FkZHJlc3NSZWdpc3RlclNlcnZpY2UScwoNYmF0Y2hS",
"ZWdpc3RlchIsLlNreVdhbGtpbmcuTmV0d29ya1Byb3RvY29sLk5ldHdvcmtB",
"ZGRyZXNzZXMaMi5Ta3lXYWxraW5nLk5ldHdvcmtQcm90b2NvbC5OZXR3b3Jr",
"QWRkcmVzc01hcHBpbmdzIgBCKwonb3JnLmFwYWNoZS5za3l3YWxraW5nLmFw",
"bS5uZXR3b3JrLnByb3RvUAFiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::SkyWalking.NetworkProtocol.KeyWithIntegerValueReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.NetworkAddresses), global::SkyWalking.NetworkProtocol.NetworkAddresses.Parser, new[]{ "Addresses" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.NetworkAddressMappings), global::SkyWalking.NetworkProtocol.NetworkAddressMappings.Parser, new[]{ "AddressIds" }, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class NetworkAddresses : pb::IMessage<NetworkAddresses> {
private static readonly pb::MessageParser<NetworkAddresses> _parser = new pb::MessageParser<NetworkAddresses>(() => new NetworkAddresses());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<NetworkAddresses> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.NetworkAddressRegisterServiceReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public NetworkAddresses() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public NetworkAddresses(NetworkAddresses other) : this() {
addresses_ = other.addresses_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public NetworkAddresses Clone() {
return new NetworkAddresses(this);
}
/// <summary>Field number for the "addresses" field.</summary>
public const int AddressesFieldNumber = 1;
private static readonly pb::FieldCodec<string> _repeated_addresses_codec
= pb::FieldCodec.ForString(10);
private readonly pbc::RepeatedField<string> addresses_ = new pbc::RepeatedField<string>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<string> Addresses {
get { return addresses_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as NetworkAddresses);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(NetworkAddresses other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!addresses_.Equals(other.addresses_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
hash ^= addresses_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
addresses_.WriteTo(output, _repeated_addresses_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
size += addresses_.CalculateSize(_repeated_addresses_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(NetworkAddresses other) {
if (other == null) {
return;
}
addresses_.Add(other.addresses_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
addresses_.AddEntriesFrom(input, _repeated_addresses_codec);
break;
}
}
}
}
}
public sealed partial class NetworkAddressMappings : pb::IMessage<NetworkAddressMappings> {
private static readonly pb::MessageParser<NetworkAddressMappings> _parser = new pb::MessageParser<NetworkAddressMappings>(() => new NetworkAddressMappings());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<NetworkAddressMappings> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.NetworkAddressRegisterServiceReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public NetworkAddressMappings() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public NetworkAddressMappings(NetworkAddressMappings other) : this() {
addressIds_ = other.addressIds_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public NetworkAddressMappings Clone() {
return new NetworkAddressMappings(this);
}
/// <summary>Field number for the "addressIds" field.</summary>
public const int AddressIdsFieldNumber = 1;
private static readonly pb::FieldCodec<global::SkyWalking.NetworkProtocol.KeyWithIntegerValue> _repeated_addressIds_codec
= pb::FieldCodec.ForMessage(10, global::SkyWalking.NetworkProtocol.KeyWithIntegerValue.Parser);
private readonly pbc::RepeatedField<global::SkyWalking.NetworkProtocol.KeyWithIntegerValue> addressIds_ = new pbc::RepeatedField<global::SkyWalking.NetworkProtocol.KeyWithIntegerValue>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::SkyWalking.NetworkProtocol.KeyWithIntegerValue> AddressIds {
get { return addressIds_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as NetworkAddressMappings);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(NetworkAddressMappings other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!addressIds_.Equals(other.addressIds_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
hash ^= addressIds_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
addressIds_.WriteTo(output, _repeated_addressIds_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
size += addressIds_.CalculateSize(_repeated_addressIds_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(NetworkAddressMappings other) {
if (other == null) {
return;
}
addressIds_.Add(other.addressIds_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
addressIds_.AddEntriesFrom(input, _repeated_addressIds_codec);
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: NetworkAddressRegisterService.proto
// </auto-generated>
#pragma warning disable 1591
#region Designer generated code
using System;
using System.Threading;
using System.Threading.Tasks;
using grpc = global::Grpc.Core;
namespace SkyWalking.NetworkProtocol {
public static partial class NetworkAddressRegisterService
{
static readonly string __ServiceName = "SkyWalking.NetworkProtocol.NetworkAddressRegisterService";
static readonly grpc::Marshaller<global::SkyWalking.NetworkProtocol.NetworkAddresses> __Marshaller_NetworkAddresses = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::SkyWalking.NetworkProtocol.NetworkAddresses.Parser.ParseFrom);
static readonly grpc::Marshaller<global::SkyWalking.NetworkProtocol.NetworkAddressMappings> __Marshaller_NetworkAddressMappings = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::SkyWalking.NetworkProtocol.NetworkAddressMappings.Parser.ParseFrom);
static readonly grpc::Method<global::SkyWalking.NetworkProtocol.NetworkAddresses, global::SkyWalking.NetworkProtocol.NetworkAddressMappings> __Method_batchRegister = new grpc::Method<global::SkyWalking.NetworkProtocol.NetworkAddresses, global::SkyWalking.NetworkProtocol.NetworkAddressMappings>(
grpc::MethodType.Unary,
__ServiceName,
"batchRegister",
__Marshaller_NetworkAddresses,
__Marshaller_NetworkAddressMappings);
/// <summary>Service descriptor</summary>
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{
get { return global::SkyWalking.NetworkProtocol.NetworkAddressRegisterServiceReflection.Descriptor.Services[0]; }
}
/// <summary>Base class for server-side implementations of NetworkAddressRegisterService</summary>
public abstract partial class NetworkAddressRegisterServiceBase
{
public virtual global::System.Threading.Tasks.Task<global::SkyWalking.NetworkProtocol.NetworkAddressMappings> batchRegister(global::SkyWalking.NetworkProtocol.NetworkAddresses request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
}
/// <summary>Client for NetworkAddressRegisterService</summary>
public partial class NetworkAddressRegisterServiceClient : grpc::ClientBase<NetworkAddressRegisterServiceClient>
{
/// <summary>Creates a new client for NetworkAddressRegisterService</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
public NetworkAddressRegisterServiceClient(grpc::Channel channel) : base(channel)
{
}
/// <summary>Creates a new client for NetworkAddressRegisterService that uses a custom <c>CallInvoker</c>.</summary>
/// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
public NetworkAddressRegisterServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
{
}
/// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
protected NetworkAddressRegisterServiceClient() : base()
{
}
/// <summary>Protected constructor to allow creation of configured clients.</summary>
/// <param name="configuration">The client configuration.</param>
protected NetworkAddressRegisterServiceClient(ClientBaseConfiguration configuration) : base(configuration)
{
}
public virtual global::SkyWalking.NetworkProtocol.NetworkAddressMappings batchRegister(global::SkyWalking.NetworkProtocol.NetworkAddresses request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
{
return batchRegister(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
public virtual global::SkyWalking.NetworkProtocol.NetworkAddressMappings batchRegister(global::SkyWalking.NetworkProtocol.NetworkAddresses request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_batchRegister, null, options, request);
}
public virtual grpc::AsyncUnaryCall<global::SkyWalking.NetworkProtocol.NetworkAddressMappings> batchRegisterAsync(global::SkyWalking.NetworkProtocol.NetworkAddresses request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
{
return batchRegisterAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
public virtual grpc::AsyncUnaryCall<global::SkyWalking.NetworkProtocol.NetworkAddressMappings> batchRegisterAsync(global::SkyWalking.NetworkProtocol.NetworkAddresses request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_batchRegister, null, options, request);
}
/// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
protected override NetworkAddressRegisterServiceClient NewInstance(ClientBaseConfiguration configuration)
{
return new NetworkAddressRegisterServiceClient(configuration);
}
}
/// <summary>Creates service definition that can be registered with a server</summary>
/// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
public static grpc::ServerServiceDefinition BindService(NetworkAddressRegisterServiceBase serviceImpl)
{
return grpc::ServerServiceDefinition.CreateBuilder()
.AddMethod(__Method_batchRegister, serviceImpl.batchRegister).Build();
}
}
}
#endregion
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>SkyWalking gRPC protocol and generated codes.</Description>
<AssemblyTitle>SkyWalking.NetworkProtocol</AssemblyTitle>
<TargetFrameworks>netstandard1.6;net45</TargetFrameworks>
<AssemblyName>SkyWalking.NetworkProtocol</AssemblyName>
<PackageId>SkyWalking.NetworkProtocol</PackageId>
<PackageTags>SkyWalking</PackageTags>
<PackageReleaseNotes></PackageReleaseNotes>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.5.1" />
<PackageReference Include="Google.Protobuf.Tools" Version="3.5.1" />
<PackageReference Include="Grpc" Version="1.9.0" />
<PackageReference Include="Grpc.Tools" Version="1.9.0" />
</ItemGroup>
</Project>
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: TraceSegmentService.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace SkyWalking.NetworkProtocol {
/// <summary>Holder for reflection information generated from TraceSegmentService.proto</summary>
public static partial class TraceSegmentServiceReflection {
#region Descriptor
/// <summary>File descriptor for TraceSegmentService.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static TraceSegmentServiceReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChlUcmFjZVNlZ21lbnRTZXJ2aWNlLnByb3RvEhpTa3lXYWxraW5nLk5ldHdv",
"cmtQcm90b2NvbBoMQ29tbW9uLnByb3RvGhBEb3duc3RyZWFtLnByb3RvGhhL",
"ZXlXaXRoU3RyaW5nVmFsdWUucHJvdG8iYAoPVXBzdHJlYW1TZWdtZW50EjwK",
"Dmdsb2JhbFRyYWNlSWRzGAEgAygLMiQuU2t5V2Fsa2luZy5OZXR3b3JrUHJv",
"dG9jb2wuVW5pcXVlSWQSDwoHc2VnbWVudBgCIAEoDCIbCghVbmlxdWVJZBIP",
"CgdpZFBhcnRzGAEgAygDItYBChJUcmFjZVNlZ21lbnRPYmplY3QSPAoOdHJh",
"Y2VTZWdtZW50SWQYASABKAsyJC5Ta3lXYWxraW5nLk5ldHdvcmtQcm90b2Nv",
"bC5VbmlxdWVJZBI1CgVzcGFucxgCIAMoCzImLlNreVdhbGtpbmcuTmV0d29y",
"a1Byb3RvY29sLlNwYW5PYmplY3QSFQoNYXBwbGljYXRpb25JZBgDIAEoBRId",
"ChVhcHBsaWNhdGlvbkluc3RhbmNlSWQYBCABKAUSFQoNaXNTaXplTGltaXRl",
"ZBgFIAEoCCKIAwoVVHJhY2VTZWdtZW50UmVmZXJlbmNlEjQKB3JlZlR5cGUY",
"ASABKA4yIy5Ta3lXYWxraW5nLk5ldHdvcmtQcm90b2NvbC5SZWZUeXBlEkIK",
"FHBhcmVudFRyYWNlU2VnbWVudElkGAIgASgLMiQuU2t5V2Fsa2luZy5OZXR3",
"b3JrUHJvdG9jb2wuVW5pcXVlSWQSFAoMcGFyZW50U3BhbklkGAMgASgFEiMK",
"G3BhcmVudEFwcGxpY2F0aW9uSW5zdGFuY2VJZBgEIAEoBRIWCg5uZXR3b3Jr",
"QWRkcmVzcxgFIAEoCRIYChBuZXR3b3JrQWRkcmVzc0lkGAYgASgFEiIKGmVu",
"dHJ5QXBwbGljYXRpb25JbnN0YW5jZUlkGAcgASgFEhgKEGVudHJ5U2Vydmlj",
"ZU5hbWUYCCABKAkSFgoOZW50cnlTZXJ2aWNlSWQYCSABKAUSGQoRcGFyZW50",
"U2VydmljZU5hbWUYCiABKAkSFwoPcGFyZW50U2VydmljZUlkGAsgASgFIoQE",
"CgpTcGFuT2JqZWN0Eg4KBnNwYW5JZBgBIAEoBRIUCgxwYXJlbnRTcGFuSWQY",
"AiABKAUSEQoJc3RhcnRUaW1lGAMgASgDEg8KB2VuZFRpbWUYBCABKAMSPwoE",
"cmVmcxgFIAMoCzIxLlNreVdhbGtpbmcuTmV0d29ya1Byb3RvY29sLlRyYWNl",
"U2VnbWVudFJlZmVyZW5jZRIXCg9vcGVyYXRpb25OYW1lSWQYBiABKAUSFQoN",
"b3BlcmF0aW9uTmFtZRgHIAEoCRIOCgZwZWVySWQYCCABKAUSDAoEcGVlchgJ",
"IAEoCRI2CghzcGFuVHlwZRgKIAEoDjIkLlNreVdhbGtpbmcuTmV0d29ya1By",
"b3RvY29sLlNwYW5UeXBlEjgKCXNwYW5MYXllchgLIAEoDjIlLlNreVdhbGtp",
"bmcuTmV0d29ya1Byb3RvY29sLlNwYW5MYXllchITCgtjb21wb25lbnRJZBgM",
"IAEoBRIRCgljb21wb25lbnQYDSABKAkSDwoHaXNFcnJvchgOIAEoCBI8CgR0",
"YWdzGA8gAygLMi4uU2t5V2Fsa2luZy5OZXR3b3JrUHJvdG9jb2wuS2V5V2l0",
"aFN0cmluZ1ZhbHVlEjQKBGxvZ3MYECADKAsyJi5Ta3lXYWxraW5nLk5ldHdv",
"cmtQcm90b2NvbC5Mb2dNZXNzYWdlIlgKCkxvZ01lc3NhZ2USDAoEdGltZRgB",
"IAEoAxI8CgRkYXRhGAIgAygLMi4uU2t5V2Fsa2luZy5OZXR3b3JrUHJvdG9j",
"b2wuS2V5V2l0aFN0cmluZ1ZhbHVlKiwKB1JlZlR5cGUSEAoMQ3Jvc3NQcm9j",
"ZXNzEAASDwoLQ3Jvc3NUaHJlYWQQASpVCglTcGFuTGF5ZXISCwoHVW5rbm93",
"bhAAEgwKCERhdGFiYXNlEAESEAoMUlBDRnJhbWV3b3JrEAISCAoESHR0cBAD",
"EgYKAk1REAQSCQoFQ2FjaGUQBTJ5ChNUcmFjZVNlZ21lbnRTZXJ2aWNlEmIK",
"B2NvbGxlY3QSKy5Ta3lXYWxraW5nLk5ldHdvcmtQcm90b2NvbC5VcHN0cmVh",
"bVNlZ21lbnQaJi5Ta3lXYWxraW5nLk5ldHdvcmtQcm90b2NvbC5Eb3duc3Ry",
"ZWFtIgAoAUIrCidvcmcuYXBhY2hlLnNreXdhbGtpbmcuYXBtLm5ldHdvcmsu",
"cHJvdG9QAWIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::SkyWalking.NetworkProtocol.CommonReflection.Descriptor, global::SkyWalking.NetworkProtocol.DownstreamReflection.Descriptor, global::SkyWalking.NetworkProtocol.KeyWithStringValueReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::SkyWalking.NetworkProtocol.RefType), typeof(global::SkyWalking.NetworkProtocol.SpanLayer), }, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.UpstreamSegment), global::SkyWalking.NetworkProtocol.UpstreamSegment.Parser, new[]{ "GlobalTraceIds", "Segment" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.UniqueId), global::SkyWalking.NetworkProtocol.UniqueId.Parser, new[]{ "IdParts" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.TraceSegmentObject), global::SkyWalking.NetworkProtocol.TraceSegmentObject.Parser, new[]{ "TraceSegmentId", "Spans", "ApplicationId", "ApplicationInstanceId", "IsSizeLimited" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.TraceSegmentReference), global::SkyWalking.NetworkProtocol.TraceSegmentReference.Parser, new[]{ "RefType", "ParentTraceSegmentId", "ParentSpanId", "ParentApplicationInstanceId", "NetworkAddress", "NetworkAddressId", "EntryApplicationInstanceId", "EntryServiceName", "EntryServiceId", "ParentServiceName", "ParentServiceId" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.SpanObject), global::SkyWalking.NetworkProtocol.SpanObject.Parser, new[]{ "SpanId", "ParentSpanId", "StartTime", "EndTime", "Refs", "OperationNameId", "OperationName", "PeerId", "Peer", "SpanType", "SpanLayer", "ComponentId", "Component", "IsError", "Tags", "Logs" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::SkyWalking.NetworkProtocol.LogMessage), global::SkyWalking.NetworkProtocol.LogMessage.Parser, new[]{ "Time", "Data" }, null, null, null)
}));
}
#endregion
}
#region Enums
public enum RefType {
[pbr::OriginalName("CrossProcess")] CrossProcess = 0,
[pbr::OriginalName("CrossThread")] CrossThread = 1,
}
public enum SpanLayer {
[pbr::OriginalName("Unknown")] Unknown = 0,
[pbr::OriginalName("Database")] Database = 1,
[pbr::OriginalName("RPCFramework")] Rpcframework = 2,
[pbr::OriginalName("Http")] Http = 3,
[pbr::OriginalName("MQ")] Mq = 4,
[pbr::OriginalName("Cache")] Cache = 5,
}
#endregion
#region Messages
public sealed partial class UpstreamSegment : pb::IMessage<UpstreamSegment> {
private static readonly pb::MessageParser<UpstreamSegment> _parser = new pb::MessageParser<UpstreamSegment>(() => new UpstreamSegment());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<UpstreamSegment> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.TraceSegmentServiceReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UpstreamSegment() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UpstreamSegment(UpstreamSegment other) : this() {
globalTraceIds_ = other.globalTraceIds_.Clone();
segment_ = other.segment_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UpstreamSegment Clone() {
return new UpstreamSegment(this);
}
/// <summary>Field number for the "globalTraceIds" field.</summary>
public const int GlobalTraceIdsFieldNumber = 1;
private static readonly pb::FieldCodec<global::SkyWalking.NetworkProtocol.UniqueId> _repeated_globalTraceIds_codec
= pb::FieldCodec.ForMessage(10, global::SkyWalking.NetworkProtocol.UniqueId.Parser);
private readonly pbc::RepeatedField<global::SkyWalking.NetworkProtocol.UniqueId> globalTraceIds_ = new pbc::RepeatedField<global::SkyWalking.NetworkProtocol.UniqueId>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::SkyWalking.NetworkProtocol.UniqueId> GlobalTraceIds {
get { return globalTraceIds_; }
}
/// <summary>Field number for the "segment" field.</summary>
public const int SegmentFieldNumber = 2;
private pb::ByteString segment_ = pb::ByteString.Empty;
/// <summary>
/// the byte array of TraceSegmentObject
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pb::ByteString Segment {
get { return segment_; }
set {
segment_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as UpstreamSegment);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(UpstreamSegment other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!globalTraceIds_.Equals(other.globalTraceIds_)) return false;
if (Segment != other.Segment) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
hash ^= globalTraceIds_.GetHashCode();
if (Segment.Length != 0) hash ^= Segment.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
globalTraceIds_.WriteTo(output, _repeated_globalTraceIds_codec);
if (Segment.Length != 0) {
output.WriteRawTag(18);
output.WriteBytes(Segment);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
size += globalTraceIds_.CalculateSize(_repeated_globalTraceIds_codec);
if (Segment.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeBytesSize(Segment);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(UpstreamSegment other) {
if (other == null) {
return;
}
globalTraceIds_.Add(other.globalTraceIds_);
if (other.Segment.Length != 0) {
Segment = other.Segment;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
globalTraceIds_.AddEntriesFrom(input, _repeated_globalTraceIds_codec);
break;
}
case 18: {
Segment = input.ReadBytes();
break;
}
}
}
}
}
public sealed partial class UniqueId : pb::IMessage<UniqueId> {
private static readonly pb::MessageParser<UniqueId> _parser = new pb::MessageParser<UniqueId>(() => new UniqueId());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<UniqueId> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.TraceSegmentServiceReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UniqueId() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UniqueId(UniqueId other) : this() {
idParts_ = other.idParts_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UniqueId Clone() {
return new UniqueId(this);
}
/// <summary>Field number for the "idParts" field.</summary>
public const int IdPartsFieldNumber = 1;
private static readonly pb::FieldCodec<long> _repeated_idParts_codec
= pb::FieldCodec.ForInt64(10);
private readonly pbc::RepeatedField<long> idParts_ = new pbc::RepeatedField<long>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<long> IdParts {
get { return idParts_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as UniqueId);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(UniqueId other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!idParts_.Equals(other.idParts_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
hash ^= idParts_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
idParts_.WriteTo(output, _repeated_idParts_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
size += idParts_.CalculateSize(_repeated_idParts_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(UniqueId other) {
if (other == null) {
return;
}
idParts_.Add(other.idParts_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10:
case 8: {
idParts_.AddEntriesFrom(input, _repeated_idParts_codec);
break;
}
}
}
}
}
public sealed partial class TraceSegmentObject : pb::IMessage<TraceSegmentObject> {
private static readonly pb::MessageParser<TraceSegmentObject> _parser = new pb::MessageParser<TraceSegmentObject>(() => new TraceSegmentObject());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<TraceSegmentObject> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.TraceSegmentServiceReflection.Descriptor.MessageTypes[2]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public TraceSegmentObject() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public TraceSegmentObject(TraceSegmentObject other) : this() {
TraceSegmentId = other.traceSegmentId_ != null ? other.TraceSegmentId.Clone() : null;
spans_ = other.spans_.Clone();
applicationId_ = other.applicationId_;
applicationInstanceId_ = other.applicationInstanceId_;
isSizeLimited_ = other.isSizeLimited_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public TraceSegmentObject Clone() {
return new TraceSegmentObject(this);
}
/// <summary>Field number for the "traceSegmentId" field.</summary>
public const int TraceSegmentIdFieldNumber = 1;
private global::SkyWalking.NetworkProtocol.UniqueId traceSegmentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::SkyWalking.NetworkProtocol.UniqueId TraceSegmentId {
get { return traceSegmentId_; }
set {
traceSegmentId_ = value;
}
}
/// <summary>Field number for the "spans" field.</summary>
public const int SpansFieldNumber = 2;
private static readonly pb::FieldCodec<global::SkyWalking.NetworkProtocol.SpanObject> _repeated_spans_codec
= pb::FieldCodec.ForMessage(18, global::SkyWalking.NetworkProtocol.SpanObject.Parser);
private readonly pbc::RepeatedField<global::SkyWalking.NetworkProtocol.SpanObject> spans_ = new pbc::RepeatedField<global::SkyWalking.NetworkProtocol.SpanObject>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::SkyWalking.NetworkProtocol.SpanObject> Spans {
get { return spans_; }
}
/// <summary>Field number for the "applicationId" field.</summary>
public const int ApplicationIdFieldNumber = 3;
private int applicationId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int ApplicationId {
get { return applicationId_; }
set {
applicationId_ = value;
}
}
/// <summary>Field number for the "applicationInstanceId" field.</summary>
public const int ApplicationInstanceIdFieldNumber = 4;
private int applicationInstanceId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int ApplicationInstanceId {
get { return applicationInstanceId_; }
set {
applicationInstanceId_ = value;
}
}
/// <summary>Field number for the "isSizeLimited" field.</summary>
public const int IsSizeLimitedFieldNumber = 5;
private bool isSizeLimited_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool IsSizeLimited {
get { return isSizeLimited_; }
set {
isSizeLimited_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as TraceSegmentObject);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(TraceSegmentObject other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(TraceSegmentId, other.TraceSegmentId)) return false;
if(!spans_.Equals(other.spans_)) return false;
if (ApplicationId != other.ApplicationId) return false;
if (ApplicationInstanceId != other.ApplicationInstanceId) return false;
if (IsSizeLimited != other.IsSizeLimited) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (traceSegmentId_ != null) hash ^= TraceSegmentId.GetHashCode();
hash ^= spans_.GetHashCode();
if (ApplicationId != 0) hash ^= ApplicationId.GetHashCode();
if (ApplicationInstanceId != 0) hash ^= ApplicationInstanceId.GetHashCode();
if (IsSizeLimited != false) hash ^= IsSizeLimited.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (traceSegmentId_ != null) {
output.WriteRawTag(10);
output.WriteMessage(TraceSegmentId);
}
spans_.WriteTo(output, _repeated_spans_codec);
if (ApplicationId != 0) {
output.WriteRawTag(24);
output.WriteInt32(ApplicationId);
}
if (ApplicationInstanceId != 0) {
output.WriteRawTag(32);
output.WriteInt32(ApplicationInstanceId);
}
if (IsSizeLimited != false) {
output.WriteRawTag(40);
output.WriteBool(IsSizeLimited);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (traceSegmentId_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TraceSegmentId);
}
size += spans_.CalculateSize(_repeated_spans_codec);
if (ApplicationId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ApplicationId);
}
if (ApplicationInstanceId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ApplicationInstanceId);
}
if (IsSizeLimited != false) {
size += 1 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(TraceSegmentObject other) {
if (other == null) {
return;
}
if (other.traceSegmentId_ != null) {
if (traceSegmentId_ == null) {
traceSegmentId_ = new global::SkyWalking.NetworkProtocol.UniqueId();
}
TraceSegmentId.MergeFrom(other.TraceSegmentId);
}
spans_.Add(other.spans_);
if (other.ApplicationId != 0) {
ApplicationId = other.ApplicationId;
}
if (other.ApplicationInstanceId != 0) {
ApplicationInstanceId = other.ApplicationInstanceId;
}
if (other.IsSizeLimited != false) {
IsSizeLimited = other.IsSizeLimited;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (traceSegmentId_ == null) {
traceSegmentId_ = new global::SkyWalking.NetworkProtocol.UniqueId();
}
input.ReadMessage(traceSegmentId_);
break;
}
case 18: {
spans_.AddEntriesFrom(input, _repeated_spans_codec);
break;
}
case 24: {
ApplicationId = input.ReadInt32();
break;
}
case 32: {
ApplicationInstanceId = input.ReadInt32();
break;
}
case 40: {
IsSizeLimited = input.ReadBool();
break;
}
}
}
}
}
public sealed partial class TraceSegmentReference : pb::IMessage<TraceSegmentReference> {
private static readonly pb::MessageParser<TraceSegmentReference> _parser = new pb::MessageParser<TraceSegmentReference>(() => new TraceSegmentReference());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<TraceSegmentReference> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.TraceSegmentServiceReflection.Descriptor.MessageTypes[3]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public TraceSegmentReference() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public TraceSegmentReference(TraceSegmentReference other) : this() {
refType_ = other.refType_;
ParentTraceSegmentId = other.parentTraceSegmentId_ != null ? other.ParentTraceSegmentId.Clone() : null;
parentSpanId_ = other.parentSpanId_;
parentApplicationInstanceId_ = other.parentApplicationInstanceId_;
networkAddress_ = other.networkAddress_;
networkAddressId_ = other.networkAddressId_;
entryApplicationInstanceId_ = other.entryApplicationInstanceId_;
entryServiceName_ = other.entryServiceName_;
entryServiceId_ = other.entryServiceId_;
parentServiceName_ = other.parentServiceName_;
parentServiceId_ = other.parentServiceId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public TraceSegmentReference Clone() {
return new TraceSegmentReference(this);
}
/// <summary>Field number for the "refType" field.</summary>
public const int RefTypeFieldNumber = 1;
private global::SkyWalking.NetworkProtocol.RefType refType_ = 0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::SkyWalking.NetworkProtocol.RefType RefType {
get { return refType_; }
set {
refType_ = value;
}
}
/// <summary>Field number for the "parentTraceSegmentId" field.</summary>
public const int ParentTraceSegmentIdFieldNumber = 2;
private global::SkyWalking.NetworkProtocol.UniqueId parentTraceSegmentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::SkyWalking.NetworkProtocol.UniqueId ParentTraceSegmentId {
get { return parentTraceSegmentId_; }
set {
parentTraceSegmentId_ = value;
}
}
/// <summary>Field number for the "parentSpanId" field.</summary>
public const int ParentSpanIdFieldNumber = 3;
private int parentSpanId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int ParentSpanId {
get { return parentSpanId_; }
set {
parentSpanId_ = value;
}
}
/// <summary>Field number for the "parentApplicationInstanceId" field.</summary>
public const int ParentApplicationInstanceIdFieldNumber = 4;
private int parentApplicationInstanceId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int ParentApplicationInstanceId {
get { return parentApplicationInstanceId_; }
set {
parentApplicationInstanceId_ = value;
}
}
/// <summary>Field number for the "networkAddress" field.</summary>
public const int NetworkAddressFieldNumber = 5;
private string networkAddress_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string NetworkAddress {
get { return networkAddress_; }
set {
networkAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "networkAddressId" field.</summary>
public const int NetworkAddressIdFieldNumber = 6;
private int networkAddressId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int NetworkAddressId {
get { return networkAddressId_; }
set {
networkAddressId_ = value;
}
}
/// <summary>Field number for the "entryApplicationInstanceId" field.</summary>
public const int EntryApplicationInstanceIdFieldNumber = 7;
private int entryApplicationInstanceId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int EntryApplicationInstanceId {
get { return entryApplicationInstanceId_; }
set {
entryApplicationInstanceId_ = value;
}
}
/// <summary>Field number for the "entryServiceName" field.</summary>
public const int EntryServiceNameFieldNumber = 8;
private string entryServiceName_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string EntryServiceName {
get { return entryServiceName_; }
set {
entryServiceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "entryServiceId" field.</summary>
public const int EntryServiceIdFieldNumber = 9;
private int entryServiceId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int EntryServiceId {
get { return entryServiceId_; }
set {
entryServiceId_ = value;
}
}
/// <summary>Field number for the "parentServiceName" field.</summary>
public const int ParentServiceNameFieldNumber = 10;
private string parentServiceName_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string ParentServiceName {
get { return parentServiceName_; }
set {
parentServiceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "parentServiceId" field.</summary>
public const int ParentServiceIdFieldNumber = 11;
private int parentServiceId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int ParentServiceId {
get { return parentServiceId_; }
set {
parentServiceId_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as TraceSegmentReference);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(TraceSegmentReference other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (RefType != other.RefType) return false;
if (!object.Equals(ParentTraceSegmentId, other.ParentTraceSegmentId)) return false;
if (ParentSpanId != other.ParentSpanId) return false;
if (ParentApplicationInstanceId != other.ParentApplicationInstanceId) return false;
if (NetworkAddress != other.NetworkAddress) return false;
if (NetworkAddressId != other.NetworkAddressId) return false;
if (EntryApplicationInstanceId != other.EntryApplicationInstanceId) return false;
if (EntryServiceName != other.EntryServiceName) return false;
if (EntryServiceId != other.EntryServiceId) return false;
if (ParentServiceName != other.ParentServiceName) return false;
if (ParentServiceId != other.ParentServiceId) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (RefType != 0) hash ^= RefType.GetHashCode();
if (parentTraceSegmentId_ != null) hash ^= ParentTraceSegmentId.GetHashCode();
if (ParentSpanId != 0) hash ^= ParentSpanId.GetHashCode();
if (ParentApplicationInstanceId != 0) hash ^= ParentApplicationInstanceId.GetHashCode();
if (NetworkAddress.Length != 0) hash ^= NetworkAddress.GetHashCode();
if (NetworkAddressId != 0) hash ^= NetworkAddressId.GetHashCode();
if (EntryApplicationInstanceId != 0) hash ^= EntryApplicationInstanceId.GetHashCode();
if (EntryServiceName.Length != 0) hash ^= EntryServiceName.GetHashCode();
if (EntryServiceId != 0) hash ^= EntryServiceId.GetHashCode();
if (ParentServiceName.Length != 0) hash ^= ParentServiceName.GetHashCode();
if (ParentServiceId != 0) hash ^= ParentServiceId.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (RefType != 0) {
output.WriteRawTag(8);
output.WriteEnum((int) RefType);
}
if (parentTraceSegmentId_ != null) {
output.WriteRawTag(18);
output.WriteMessage(ParentTraceSegmentId);
}
if (ParentSpanId != 0) {
output.WriteRawTag(24);
output.WriteInt32(ParentSpanId);
}
if (ParentApplicationInstanceId != 0) {
output.WriteRawTag(32);
output.WriteInt32(ParentApplicationInstanceId);
}
if (NetworkAddress.Length != 0) {
output.WriteRawTag(42);
output.WriteString(NetworkAddress);
}
if (NetworkAddressId != 0) {
output.WriteRawTag(48);
output.WriteInt32(NetworkAddressId);
}
if (EntryApplicationInstanceId != 0) {
output.WriteRawTag(56);
output.WriteInt32(EntryApplicationInstanceId);
}
if (EntryServiceName.Length != 0) {
output.WriteRawTag(66);
output.WriteString(EntryServiceName);
}
if (EntryServiceId != 0) {
output.WriteRawTag(72);
output.WriteInt32(EntryServiceId);
}
if (ParentServiceName.Length != 0) {
output.WriteRawTag(82);
output.WriteString(ParentServiceName);
}
if (ParentServiceId != 0) {
output.WriteRawTag(88);
output.WriteInt32(ParentServiceId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (RefType != 0) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RefType);
}
if (parentTraceSegmentId_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ParentTraceSegmentId);
}
if (ParentSpanId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ParentSpanId);
}
if (ParentApplicationInstanceId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ParentApplicationInstanceId);
}
if (NetworkAddress.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(NetworkAddress);
}
if (NetworkAddressId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NetworkAddressId);
}
if (EntryApplicationInstanceId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(EntryApplicationInstanceId);
}
if (EntryServiceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(EntryServiceName);
}
if (EntryServiceId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(EntryServiceId);
}
if (ParentServiceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ParentServiceName);
}
if (ParentServiceId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ParentServiceId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(TraceSegmentReference other) {
if (other == null) {
return;
}
if (other.RefType != 0) {
RefType = other.RefType;
}
if (other.parentTraceSegmentId_ != null) {
if (parentTraceSegmentId_ == null) {
parentTraceSegmentId_ = new global::SkyWalking.NetworkProtocol.UniqueId();
}
ParentTraceSegmentId.MergeFrom(other.ParentTraceSegmentId);
}
if (other.ParentSpanId != 0) {
ParentSpanId = other.ParentSpanId;
}
if (other.ParentApplicationInstanceId != 0) {
ParentApplicationInstanceId = other.ParentApplicationInstanceId;
}
if (other.NetworkAddress.Length != 0) {
NetworkAddress = other.NetworkAddress;
}
if (other.NetworkAddressId != 0) {
NetworkAddressId = other.NetworkAddressId;
}
if (other.EntryApplicationInstanceId != 0) {
EntryApplicationInstanceId = other.EntryApplicationInstanceId;
}
if (other.EntryServiceName.Length != 0) {
EntryServiceName = other.EntryServiceName;
}
if (other.EntryServiceId != 0) {
EntryServiceId = other.EntryServiceId;
}
if (other.ParentServiceName.Length != 0) {
ParentServiceName = other.ParentServiceName;
}
if (other.ParentServiceId != 0) {
ParentServiceId = other.ParentServiceId;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
refType_ = (global::SkyWalking.NetworkProtocol.RefType) input.ReadEnum();
break;
}
case 18: {
if (parentTraceSegmentId_ == null) {
parentTraceSegmentId_ = new global::SkyWalking.NetworkProtocol.UniqueId();
}
input.ReadMessage(parentTraceSegmentId_);
break;
}
case 24: {
ParentSpanId = input.ReadInt32();
break;
}
case 32: {
ParentApplicationInstanceId = input.ReadInt32();
break;
}
case 42: {
NetworkAddress = input.ReadString();
break;
}
case 48: {
NetworkAddressId = input.ReadInt32();
break;
}
case 56: {
EntryApplicationInstanceId = input.ReadInt32();
break;
}
case 66: {
EntryServiceName = input.ReadString();
break;
}
case 72: {
EntryServiceId = input.ReadInt32();
break;
}
case 82: {
ParentServiceName = input.ReadString();
break;
}
case 88: {
ParentServiceId = input.ReadInt32();
break;
}
}
}
}
}
public sealed partial class SpanObject : pb::IMessage<SpanObject> {
private static readonly pb::MessageParser<SpanObject> _parser = new pb::MessageParser<SpanObject>(() => new SpanObject());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SpanObject> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.TraceSegmentServiceReflection.Descriptor.MessageTypes[4]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SpanObject() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SpanObject(SpanObject other) : this() {
spanId_ = other.spanId_;
parentSpanId_ = other.parentSpanId_;
startTime_ = other.startTime_;
endTime_ = other.endTime_;
refs_ = other.refs_.Clone();
operationNameId_ = other.operationNameId_;
operationName_ = other.operationName_;
peerId_ = other.peerId_;
peer_ = other.peer_;
spanType_ = other.spanType_;
spanLayer_ = other.spanLayer_;
componentId_ = other.componentId_;
component_ = other.component_;
isError_ = other.isError_;
tags_ = other.tags_.Clone();
logs_ = other.logs_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SpanObject Clone() {
return new SpanObject(this);
}
/// <summary>Field number for the "spanId" field.</summary>
public const int SpanIdFieldNumber = 1;
private int spanId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int SpanId {
get { return spanId_; }
set {
spanId_ = value;
}
}
/// <summary>Field number for the "parentSpanId" field.</summary>
public const int ParentSpanIdFieldNumber = 2;
private int parentSpanId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int ParentSpanId {
get { return parentSpanId_; }
set {
parentSpanId_ = value;
}
}
/// <summary>Field number for the "startTime" field.</summary>
public const int StartTimeFieldNumber = 3;
private long startTime_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long StartTime {
get { return startTime_; }
set {
startTime_ = value;
}
}
/// <summary>Field number for the "endTime" field.</summary>
public const int EndTimeFieldNumber = 4;
private long endTime_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long EndTime {
get { return endTime_; }
set {
endTime_ = value;
}
}
/// <summary>Field number for the "refs" field.</summary>
public const int RefsFieldNumber = 5;
private static readonly pb::FieldCodec<global::SkyWalking.NetworkProtocol.TraceSegmentReference> _repeated_refs_codec
= pb::FieldCodec.ForMessage(42, global::SkyWalking.NetworkProtocol.TraceSegmentReference.Parser);
private readonly pbc::RepeatedField<global::SkyWalking.NetworkProtocol.TraceSegmentReference> refs_ = new pbc::RepeatedField<global::SkyWalking.NetworkProtocol.TraceSegmentReference>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::SkyWalking.NetworkProtocol.TraceSegmentReference> Refs {
get { return refs_; }
}
/// <summary>Field number for the "operationNameId" field.</summary>
public const int OperationNameIdFieldNumber = 6;
private int operationNameId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int OperationNameId {
get { return operationNameId_; }
set {
operationNameId_ = value;
}
}
/// <summary>Field number for the "operationName" field.</summary>
public const int OperationNameFieldNumber = 7;
private string operationName_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string OperationName {
get { return operationName_; }
set {
operationName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "peerId" field.</summary>
public const int PeerIdFieldNumber = 8;
private int peerId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int PeerId {
get { return peerId_; }
set {
peerId_ = value;
}
}
/// <summary>Field number for the "peer" field.</summary>
public const int PeerFieldNumber = 9;
private string peer_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Peer {
get { return peer_; }
set {
peer_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "spanType" field.</summary>
public const int SpanTypeFieldNumber = 10;
private global::SkyWalking.NetworkProtocol.SpanType spanType_ = 0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::SkyWalking.NetworkProtocol.SpanType SpanType {
get { return spanType_; }
set {
spanType_ = value;
}
}
/// <summary>Field number for the "spanLayer" field.</summary>
public const int SpanLayerFieldNumber = 11;
private global::SkyWalking.NetworkProtocol.SpanLayer spanLayer_ = 0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::SkyWalking.NetworkProtocol.SpanLayer SpanLayer {
get { return spanLayer_; }
set {
spanLayer_ = value;
}
}
/// <summary>Field number for the "componentId" field.</summary>
public const int ComponentIdFieldNumber = 12;
private int componentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int ComponentId {
get { return componentId_; }
set {
componentId_ = value;
}
}
/// <summary>Field number for the "component" field.</summary>
public const int ComponentFieldNumber = 13;
private string component_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Component {
get { return component_; }
set {
component_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "isError" field.</summary>
public const int IsErrorFieldNumber = 14;
private bool isError_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool IsError {
get { return isError_; }
set {
isError_ = value;
}
}
/// <summary>Field number for the "tags" field.</summary>
public const int TagsFieldNumber = 15;
private static readonly pb::FieldCodec<global::SkyWalking.NetworkProtocol.KeyWithStringValue> _repeated_tags_codec
= pb::FieldCodec.ForMessage(122, global::SkyWalking.NetworkProtocol.KeyWithStringValue.Parser);
private readonly pbc::RepeatedField<global::SkyWalking.NetworkProtocol.KeyWithStringValue> tags_ = new pbc::RepeatedField<global::SkyWalking.NetworkProtocol.KeyWithStringValue>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::SkyWalking.NetworkProtocol.KeyWithStringValue> Tags {
get { return tags_; }
}
/// <summary>Field number for the "logs" field.</summary>
public const int LogsFieldNumber = 16;
private static readonly pb::FieldCodec<global::SkyWalking.NetworkProtocol.LogMessage> _repeated_logs_codec
= pb::FieldCodec.ForMessage(130, global::SkyWalking.NetworkProtocol.LogMessage.Parser);
private readonly pbc::RepeatedField<global::SkyWalking.NetworkProtocol.LogMessage> logs_ = new pbc::RepeatedField<global::SkyWalking.NetworkProtocol.LogMessage>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::SkyWalking.NetworkProtocol.LogMessage> Logs {
get { return logs_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as SpanObject);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(SpanObject other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (SpanId != other.SpanId) return false;
if (ParentSpanId != other.ParentSpanId) return false;
if (StartTime != other.StartTime) return false;
if (EndTime != other.EndTime) return false;
if(!refs_.Equals(other.refs_)) return false;
if (OperationNameId != other.OperationNameId) return false;
if (OperationName != other.OperationName) return false;
if (PeerId != other.PeerId) return false;
if (Peer != other.Peer) return false;
if (SpanType != other.SpanType) return false;
if (SpanLayer != other.SpanLayer) return false;
if (ComponentId != other.ComponentId) return false;
if (Component != other.Component) return false;
if (IsError != other.IsError) return false;
if(!tags_.Equals(other.tags_)) return false;
if(!logs_.Equals(other.logs_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (SpanId != 0) hash ^= SpanId.GetHashCode();
if (ParentSpanId != 0) hash ^= ParentSpanId.GetHashCode();
if (StartTime != 0L) hash ^= StartTime.GetHashCode();
if (EndTime != 0L) hash ^= EndTime.GetHashCode();
hash ^= refs_.GetHashCode();
if (OperationNameId != 0) hash ^= OperationNameId.GetHashCode();
if (OperationName.Length != 0) hash ^= OperationName.GetHashCode();
if (PeerId != 0) hash ^= PeerId.GetHashCode();
if (Peer.Length != 0) hash ^= Peer.GetHashCode();
if (SpanType != 0) hash ^= SpanType.GetHashCode();
if (SpanLayer != 0) hash ^= SpanLayer.GetHashCode();
if (ComponentId != 0) hash ^= ComponentId.GetHashCode();
if (Component.Length != 0) hash ^= Component.GetHashCode();
if (IsError != false) hash ^= IsError.GetHashCode();
hash ^= tags_.GetHashCode();
hash ^= logs_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (SpanId != 0) {
output.WriteRawTag(8);
output.WriteInt32(SpanId);
}
if (ParentSpanId != 0) {
output.WriteRawTag(16);
output.WriteInt32(ParentSpanId);
}
if (StartTime != 0L) {
output.WriteRawTag(24);
output.WriteInt64(StartTime);
}
if (EndTime != 0L) {
output.WriteRawTag(32);
output.WriteInt64(EndTime);
}
refs_.WriteTo(output, _repeated_refs_codec);
if (OperationNameId != 0) {
output.WriteRawTag(48);
output.WriteInt32(OperationNameId);
}
if (OperationName.Length != 0) {
output.WriteRawTag(58);
output.WriteString(OperationName);
}
if (PeerId != 0) {
output.WriteRawTag(64);
output.WriteInt32(PeerId);
}
if (Peer.Length != 0) {
output.WriteRawTag(74);
output.WriteString(Peer);
}
if (SpanType != 0) {
output.WriteRawTag(80);
output.WriteEnum((int) SpanType);
}
if (SpanLayer != 0) {
output.WriteRawTag(88);
output.WriteEnum((int) SpanLayer);
}
if (ComponentId != 0) {
output.WriteRawTag(96);
output.WriteInt32(ComponentId);
}
if (Component.Length != 0) {
output.WriteRawTag(106);
output.WriteString(Component);
}
if (IsError != false) {
output.WriteRawTag(112);
output.WriteBool(IsError);
}
tags_.WriteTo(output, _repeated_tags_codec);
logs_.WriteTo(output, _repeated_logs_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (SpanId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(SpanId);
}
if (ParentSpanId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ParentSpanId);
}
if (StartTime != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(StartTime);
}
if (EndTime != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(EndTime);
}
size += refs_.CalculateSize(_repeated_refs_codec);
if (OperationNameId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(OperationNameId);
}
if (OperationName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(OperationName);
}
if (PeerId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(PeerId);
}
if (Peer.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Peer);
}
if (SpanType != 0) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SpanType);
}
if (SpanLayer != 0) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SpanLayer);
}
if (ComponentId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ComponentId);
}
if (Component.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Component);
}
if (IsError != false) {
size += 1 + 1;
}
size += tags_.CalculateSize(_repeated_tags_codec);
size += logs_.CalculateSize(_repeated_logs_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(SpanObject other) {
if (other == null) {
return;
}
if (other.SpanId != 0) {
SpanId = other.SpanId;
}
if (other.ParentSpanId != 0) {
ParentSpanId = other.ParentSpanId;
}
if (other.StartTime != 0L) {
StartTime = other.StartTime;
}
if (other.EndTime != 0L) {
EndTime = other.EndTime;
}
refs_.Add(other.refs_);
if (other.OperationNameId != 0) {
OperationNameId = other.OperationNameId;
}
if (other.OperationName.Length != 0) {
OperationName = other.OperationName;
}
if (other.PeerId != 0) {
PeerId = other.PeerId;
}
if (other.Peer.Length != 0) {
Peer = other.Peer;
}
if (other.SpanType != 0) {
SpanType = other.SpanType;
}
if (other.SpanLayer != 0) {
SpanLayer = other.SpanLayer;
}
if (other.ComponentId != 0) {
ComponentId = other.ComponentId;
}
if (other.Component.Length != 0) {
Component = other.Component;
}
if (other.IsError != false) {
IsError = other.IsError;
}
tags_.Add(other.tags_);
logs_.Add(other.logs_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
SpanId = input.ReadInt32();
break;
}
case 16: {
ParentSpanId = input.ReadInt32();
break;
}
case 24: {
StartTime = input.ReadInt64();
break;
}
case 32: {
EndTime = input.ReadInt64();
break;
}
case 42: {
refs_.AddEntriesFrom(input, _repeated_refs_codec);
break;
}
case 48: {
OperationNameId = input.ReadInt32();
break;
}
case 58: {
OperationName = input.ReadString();
break;
}
case 64: {
PeerId = input.ReadInt32();
break;
}
case 74: {
Peer = input.ReadString();
break;
}
case 80: {
spanType_ = (global::SkyWalking.NetworkProtocol.SpanType) input.ReadEnum();
break;
}
case 88: {
spanLayer_ = (global::SkyWalking.NetworkProtocol.SpanLayer) input.ReadEnum();
break;
}
case 96: {
ComponentId = input.ReadInt32();
break;
}
case 106: {
Component = input.ReadString();
break;
}
case 112: {
IsError = input.ReadBool();
break;
}
case 122: {
tags_.AddEntriesFrom(input, _repeated_tags_codec);
break;
}
case 130: {
logs_.AddEntriesFrom(input, _repeated_logs_codec);
break;
}
}
}
}
}
public sealed partial class LogMessage : pb::IMessage<LogMessage> {
private static readonly pb::MessageParser<LogMessage> _parser = new pb::MessageParser<LogMessage>(() => new LogMessage());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<LogMessage> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::SkyWalking.NetworkProtocol.TraceSegmentServiceReflection.Descriptor.MessageTypes[5]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public LogMessage() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public LogMessage(LogMessage other) : this() {
time_ = other.time_;
data_ = other.data_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public LogMessage Clone() {
return new LogMessage(this);
}
/// <summary>Field number for the "time" field.</summary>
public const int TimeFieldNumber = 1;
private long time_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long Time {
get { return time_; }
set {
time_ = value;
}
}
/// <summary>Field number for the "data" field.</summary>
public const int DataFieldNumber = 2;
private static readonly pb::FieldCodec<global::SkyWalking.NetworkProtocol.KeyWithStringValue> _repeated_data_codec
= pb::FieldCodec.ForMessage(18, global::SkyWalking.NetworkProtocol.KeyWithStringValue.Parser);
private readonly pbc::RepeatedField<global::SkyWalking.NetworkProtocol.KeyWithStringValue> data_ = new pbc::RepeatedField<global::SkyWalking.NetworkProtocol.KeyWithStringValue>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::SkyWalking.NetworkProtocol.KeyWithStringValue> Data {
get { return data_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as LogMessage);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(LogMessage other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Time != other.Time) return false;
if(!data_.Equals(other.data_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Time != 0L) hash ^= Time.GetHashCode();
hash ^= data_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (Time != 0L) {
output.WriteRawTag(8);
output.WriteInt64(Time);
}
data_.WriteTo(output, _repeated_data_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Time != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Time);
}
size += data_.CalculateSize(_repeated_data_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(LogMessage other) {
if (other == null) {
return;
}
if (other.Time != 0L) {
Time = other.Time;
}
data_.Add(other.data_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
Time = input.ReadInt64();
break;
}
case 18: {
data_.AddEntriesFrom(input, _repeated_data_codec);
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: TraceSegmentService.proto
// </auto-generated>
#pragma warning disable 1591
#region Designer generated code
using System;
using System.Threading;
using System.Threading.Tasks;
using grpc = global::Grpc.Core;
namespace SkyWalking.NetworkProtocol {
public static partial class TraceSegmentService
{
static readonly string __ServiceName = "SkyWalking.NetworkProtocol.TraceSegmentService";
static readonly grpc::Marshaller<global::SkyWalking.NetworkProtocol.UpstreamSegment> __Marshaller_UpstreamSegment = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::SkyWalking.NetworkProtocol.UpstreamSegment.Parser.ParseFrom);
static readonly grpc::Marshaller<global::SkyWalking.NetworkProtocol.Downstream> __Marshaller_Downstream = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::SkyWalking.NetworkProtocol.Downstream.Parser.ParseFrom);
static readonly grpc::Method<global::SkyWalking.NetworkProtocol.UpstreamSegment, global::SkyWalking.NetworkProtocol.Downstream> __Method_collect = new grpc::Method<global::SkyWalking.NetworkProtocol.UpstreamSegment, global::SkyWalking.NetworkProtocol.Downstream>(
grpc::MethodType.ClientStreaming,
__ServiceName,
"collect",
__Marshaller_UpstreamSegment,
__Marshaller_Downstream);
/// <summary>Service descriptor</summary>
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{
get { return global::SkyWalking.NetworkProtocol.TraceSegmentServiceReflection.Descriptor.Services[0]; }
}
/// <summary>Base class for server-side implementations of TraceSegmentService</summary>
public abstract partial class TraceSegmentServiceBase
{
public virtual global::System.Threading.Tasks.Task<global::SkyWalking.NetworkProtocol.Downstream> collect(grpc::IAsyncStreamReader<global::SkyWalking.NetworkProtocol.UpstreamSegment> requestStream, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
}
/// <summary>Client for TraceSegmentService</summary>
public partial class TraceSegmentServiceClient : grpc::ClientBase<TraceSegmentServiceClient>
{
/// <summary>Creates a new client for TraceSegmentService</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
public TraceSegmentServiceClient(grpc::Channel channel) : base(channel)
{
}
/// <summary>Creates a new client for TraceSegmentService that uses a custom <c>CallInvoker</c>.</summary>
/// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
public TraceSegmentServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
{
}
/// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
protected TraceSegmentServiceClient() : base()
{
}
/// <summary>Protected constructor to allow creation of configured clients.</summary>
/// <param name="configuration">The client configuration.</param>
protected TraceSegmentServiceClient(ClientBaseConfiguration configuration) : base(configuration)
{
}
public virtual grpc::AsyncClientStreamingCall<global::SkyWalking.NetworkProtocol.UpstreamSegment, global::SkyWalking.NetworkProtocol.Downstream> collect(grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
{
return collect(new grpc::CallOptions(headers, deadline, cancellationToken));
}
public virtual grpc::AsyncClientStreamingCall<global::SkyWalking.NetworkProtocol.UpstreamSegment, global::SkyWalking.NetworkProtocol.Downstream> collect(grpc::CallOptions options)
{
return CallInvoker.AsyncClientStreamingCall(__Method_collect, null, options);
}
/// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
protected override TraceSegmentServiceClient NewInstance(ClientBaseConfiguration configuration)
{
return new TraceSegmentServiceClient(configuration);
}
}
/// <summary>Creates service definition that can be registered with a server</summary>
/// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
public static grpc::ServerServiceDefinition BindService(TraceSegmentServiceBase serviceImpl)
{
return grpc::ServerServiceDefinition.CreateBuilder()
.AddMethod(__Method_collect, serviceImpl.collect).Build();
}
}
}
#endregion
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment