提交 011a9fd6 编写于 作者: H heyanlong

6.x proto

上级 6842d62b
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: language-agent/ApplicationRegisterService.proto
package agent
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type Application struct {
ApplicationCode string `protobuf:"bytes,1,opt,name=applicationCode,proto3" json:"applicationCode,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Application) Reset() { *m = Application{} }
func (m *Application) String() string { return proto.CompactTextString(m) }
func (*Application) ProtoMessage() {}
func (*Application) Descriptor() ([]byte, []int) {
return fileDescriptor_e1c2b07c1f73c603, []int{0}
}
func (m *Application) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Application.Unmarshal(m, b)
}
func (m *Application) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Application.Marshal(b, m, deterministic)
}
func (m *Application) XXX_Merge(src proto.Message) {
xxx_messageInfo_Application.Merge(m, src)
}
func (m *Application) XXX_Size() int {
return xxx_messageInfo_Application.Size(m)
}
func (m *Application) XXX_DiscardUnknown() {
xxx_messageInfo_Application.DiscardUnknown(m)
}
var xxx_messageInfo_Application proto.InternalMessageInfo
func (m *Application) GetApplicationCode() string {
if m != nil {
return m.ApplicationCode
}
return ""
}
type ApplicationMapping struct {
Application *KeyWithIntegerValue `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ApplicationMapping) Reset() { *m = ApplicationMapping{} }
func (m *ApplicationMapping) String() string { return proto.CompactTextString(m) }
func (*ApplicationMapping) ProtoMessage() {}
func (*ApplicationMapping) Descriptor() ([]byte, []int) {
return fileDescriptor_e1c2b07c1f73c603, []int{1}
}
func (m *ApplicationMapping) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ApplicationMapping.Unmarshal(m, b)
}
func (m *ApplicationMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ApplicationMapping.Marshal(b, m, deterministic)
}
func (m *ApplicationMapping) XXX_Merge(src proto.Message) {
xxx_messageInfo_ApplicationMapping.Merge(m, src)
}
func (m *ApplicationMapping) XXX_Size() int {
return xxx_messageInfo_ApplicationMapping.Size(m)
}
func (m *ApplicationMapping) XXX_DiscardUnknown() {
xxx_messageInfo_ApplicationMapping.DiscardUnknown(m)
}
var xxx_messageInfo_ApplicationMapping proto.InternalMessageInfo
func (m *ApplicationMapping) GetApplication() *KeyWithIntegerValue {
if m != nil {
return m.Application
}
return nil
}
func init() {
proto.RegisterType((*Application)(nil), "Application")
proto.RegisterType((*ApplicationMapping)(nil), "ApplicationMapping")
}
func init() {
proto.RegisterFile("language-agent/ApplicationRegisterService.proto", fileDescriptor_e1c2b07c1f73c603)
}
var fileDescriptor_e1c2b07c1f73c603 = []byte{
// 257 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0xcf, 0x4b, 0xc3, 0x30,
0x14, 0xc7, 0xad, 0x07, 0xc1, 0x54, 0x10, 0xe2, 0x40, 0xe9, 0x49, 0x7a, 0xea, 0xc5, 0x37, 0x99,
0xa0, 0x37, 0x41, 0x3d, 0x89, 0x3f, 0x18, 0x1d, 0x38, 0x10, 0x2f, 0x6f, 0xf5, 0xf1, 0x16, 0x1a,
0x93, 0x90, 0x65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, 0x2b, 0xab, 0x67, 0x7b,
0xad, 0xd4, 0x8b, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf7, 0x46, 0xb2, 0x5b, 0xb1, 0x01, 0x00,
0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// ApplicationRegisterServiceClient is the client API for ApplicationRegisterService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ApplicationRegisterServiceClient interface {
ApplicationCodeRegister(ctx context.Context, in *Application, opts ...grpc.CallOption) (*ApplicationMapping, error)
}
type applicationRegisterServiceClient struct {
cc *grpc.ClientConn
}
func NewApplicationRegisterServiceClient(cc *grpc.ClientConn) ApplicationRegisterServiceClient {
return &applicationRegisterServiceClient{cc}
}
func (c *applicationRegisterServiceClient) ApplicationCodeRegister(ctx context.Context, in *Application, opts ...grpc.CallOption) (*ApplicationMapping, error) {
out := new(ApplicationMapping)
err := c.cc.Invoke(ctx, "/ApplicationRegisterService/applicationCodeRegister", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ApplicationRegisterServiceServer is the server API for ApplicationRegisterService service.
type ApplicationRegisterServiceServer interface {
ApplicationCodeRegister(context.Context, *Application) (*ApplicationMapping, error)
}
// UnimplementedApplicationRegisterServiceServer can be embedded to have forward compatible implementations.
type UnimplementedApplicationRegisterServiceServer struct {
}
func (*UnimplementedApplicationRegisterServiceServer) ApplicationCodeRegister(ctx context.Context, req *Application) (*ApplicationMapping, error) {
return nil, status.Errorf(codes.Unimplemented, "method ApplicationCodeRegister not implemented")
}
func RegisterApplicationRegisterServiceServer(s *grpc.Server, srv ApplicationRegisterServiceServer) {
s.RegisterService(&_ApplicationRegisterService_serviceDesc, srv)
}
func _ApplicationRegisterService_ApplicationCodeRegister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Application)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ApplicationRegisterServiceServer).ApplicationCodeRegister(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ApplicationRegisterService/ApplicationCodeRegister",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ApplicationRegisterServiceServer).ApplicationCodeRegister(ctx, req.(*Application))
}
return interceptor(ctx, in, info, handler)
}
var _ApplicationRegisterService_serviceDesc = grpc.ServiceDesc{
ServiceName: "ApplicationRegisterService",
HandlerType: (*ApplicationRegisterServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "applicationCodeRegister",
Handler: _ApplicationRegisterService_ApplicationCodeRegister_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "language-agent/ApplicationRegisterService.proto",
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: common/CLR.proto
package agent
import (
common "agent/agent/pb/common"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type CLRMetric struct {
Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
Cpu *common.CPU `protobuf:"bytes,2,opt,name=cpu,proto3" json:"cpu,omitempty"`
Gc *ClrGC `protobuf:"bytes,3,opt,name=gc,proto3" json:"gc,omitempty"`
Thread *ClrThread `protobuf:"bytes,4,opt,name=thread,proto3" json:"thread,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CLRMetric) Reset() { *m = CLRMetric{} }
func (m *CLRMetric) String() string { return proto.CompactTextString(m) }
func (*CLRMetric) ProtoMessage() {}
func (*CLRMetric) Descriptor() ([]byte, []int) {
return fileDescriptor_a10d56830892247a, []int{0}
}
func (m *CLRMetric) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CLRMetric.Unmarshal(m, b)
}
func (m *CLRMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CLRMetric.Marshal(b, m, deterministic)
}
func (m *CLRMetric) XXX_Merge(src proto.Message) {
xxx_messageInfo_CLRMetric.Merge(m, src)
}
func (m *CLRMetric) XXX_Size() int {
return xxx_messageInfo_CLRMetric.Size(m)
}
func (m *CLRMetric) XXX_DiscardUnknown() {
xxx_messageInfo_CLRMetric.DiscardUnknown(m)
}
var xxx_messageInfo_CLRMetric proto.InternalMessageInfo
func (m *CLRMetric) GetTime() int64 {
if m != nil {
return m.Time
}
return 0
}
func (m *CLRMetric) GetCpu() *common.CPU {
if m != nil {
return m.Cpu
}
return nil
}
func (m *CLRMetric) GetGc() *ClrGC {
if m != nil {
return m.Gc
}
return nil
}
func (m *CLRMetric) GetThread() *ClrThread {
if m != nil {
return m.Thread
}
return nil
}
type ClrGC struct {
Gen0CollectCount int64 `protobuf:"varint,1,opt,name=Gen0CollectCount,proto3" json:"Gen0CollectCount,omitempty"`
Gen1CollectCount int64 `protobuf:"varint,2,opt,name=Gen1CollectCount,proto3" json:"Gen1CollectCount,omitempty"`
Gen2CollectCount int64 `protobuf:"varint,3,opt,name=Gen2CollectCount,proto3" json:"Gen2CollectCount,omitempty"`
HeapMemory int64 `protobuf:"varint,4,opt,name=HeapMemory,proto3" json:"HeapMemory,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClrGC) Reset() { *m = ClrGC{} }
func (m *ClrGC) String() string { return proto.CompactTextString(m) }
func (*ClrGC) ProtoMessage() {}
func (*ClrGC) Descriptor() ([]byte, []int) {
return fileDescriptor_a10d56830892247a, []int{1}
}
func (m *ClrGC) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClrGC.Unmarshal(m, b)
}
func (m *ClrGC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClrGC.Marshal(b, m, deterministic)
}
func (m *ClrGC) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClrGC.Merge(m, src)
}
func (m *ClrGC) XXX_Size() int {
return xxx_messageInfo_ClrGC.Size(m)
}
func (m *ClrGC) XXX_DiscardUnknown() {
xxx_messageInfo_ClrGC.DiscardUnknown(m)
}
var xxx_messageInfo_ClrGC proto.InternalMessageInfo
func (m *ClrGC) GetGen0CollectCount() int64 {
if m != nil {
return m.Gen0CollectCount
}
return 0
}
func (m *ClrGC) GetGen1CollectCount() int64 {
if m != nil {
return m.Gen1CollectCount
}
return 0
}
func (m *ClrGC) GetGen2CollectCount() int64 {
if m != nil {
return m.Gen2CollectCount
}
return 0
}
func (m *ClrGC) GetHeapMemory() int64 {
if m != nil {
return m.HeapMemory
}
return 0
}
type ClrThread struct {
AvailableCompletionPortThreads int32 `protobuf:"varint,1,opt,name=AvailableCompletionPortThreads,proto3" json:"AvailableCompletionPortThreads,omitempty"`
AvailableWorkerThreads int32 `protobuf:"varint,2,opt,name=AvailableWorkerThreads,proto3" json:"AvailableWorkerThreads,omitempty"`
MaxCompletionPortThreads int32 `protobuf:"varint,3,opt,name=MaxCompletionPortThreads,proto3" json:"MaxCompletionPortThreads,omitempty"`
MaxWorkerThreads int32 `protobuf:"varint,4,opt,name=MaxWorkerThreads,proto3" json:"MaxWorkerThreads,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClrThread) Reset() { *m = ClrThread{} }
func (m *ClrThread) String() string { return proto.CompactTextString(m) }
func (*ClrThread) ProtoMessage() {}
func (*ClrThread) Descriptor() ([]byte, []int) {
return fileDescriptor_a10d56830892247a, []int{2}
}
func (m *ClrThread) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClrThread.Unmarshal(m, b)
}
func (m *ClrThread) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClrThread.Marshal(b, m, deterministic)
}
func (m *ClrThread) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClrThread.Merge(m, src)
}
func (m *ClrThread) XXX_Size() int {
return xxx_messageInfo_ClrThread.Size(m)
}
func (m *ClrThread) XXX_DiscardUnknown() {
xxx_messageInfo_ClrThread.DiscardUnknown(m)
}
var xxx_messageInfo_ClrThread proto.InternalMessageInfo
func (m *ClrThread) GetAvailableCompletionPortThreads() int32 {
if m != nil {
return m.AvailableCompletionPortThreads
}
return 0
}
func (m *ClrThread) GetAvailableWorkerThreads() int32 {
if m != nil {
return m.AvailableWorkerThreads
}
return 0
}
func (m *ClrThread) GetMaxCompletionPortThreads() int32 {
if m != nil {
return m.MaxCompletionPortThreads
}
return 0
}
func (m *ClrThread) GetMaxWorkerThreads() int32 {
if m != nil {
return m.MaxWorkerThreads
}
return 0
}
func init() {
proto.RegisterType((*CLRMetric)(nil), "CLRMetric")
proto.RegisterType((*ClrGC)(nil), "ClrGC")
proto.RegisterType((*ClrThread)(nil), "ClrThread")
}
func init() { proto.RegisterFile("common/CLR.proto", fileDescriptor_a10d56830892247a) }
var fileDescriptor_a10d56830892247a = []byte{
// 367 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x4f, 0xeb, 0xd3, 0x30,
0x18, 0xc7, 0xe9, 0x9f, 0xdf, 0x60, 0x8f, 0x97, 0x11, 0x65, 0x94, 0x1d, 0xc6, 0xe8, 0x69, 0x78,
0xc8, 0xfe, 0x08, 0x1e, 0xbc, 0x69, 0xc0, 0x79, 0x58, 0xa5, 0x44, 0x65, 0xe0, 0x2d,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 0xa5, 0x20, 0xba, 0xac, 0xa4, 0xb0, 0xb9, 0x56, 0xa9,
0x36, 0xb6, 0x11, 0x8e, 0xee, 0xfc, 0x4f, 0xf4, 0x19, 0x0b, 0xbd, 0x85, 0x71, 0x67, 0xec, 0xb4,
0x29, 0x84, 0xf9, 0xd7, 0xf7, 0x5d, 0xff, 0x41, 0x8a, 0xde, 0x41, 0x94, 0xb0, 0xcb, 0xfd, 0xcd,
0x81, 0x6b, 0x3e, 0xcc, 0xeb, 0xbf, 0x92, 0xb0, 0x4b, 0x7f, 0x5b, 0xe8, 0x3a, 0x37, 0xfc, 0x43,
0x06, 0x4b, 0x6d, 0x32, 0xcc, 0x2a, 0xc6, 0x0f, 0x02, 0x1f, 0x8b, 0xeb, 0x99, 0xc9, 0x22, 0x57,
0x35, 0x29, 0xb1, 0x12, 0xf6, 0xac, 0x4d, 0x81, 0x25, 0x53, 0xd9, 0x89, 0x65, 0x02, 0xb3, 0x4c,
0x28, 0x9b, 0x7a, 0xdf, 0x5f, 0xb9, 0x61, 0xd1, 0x3c, 0xab, 0x7d, 0x33, 0xfc, 0xf2, 0x27, 0x5f,
0x8a, 0xeb, 0xae, 0xed, 0x7f, 0x6e, 0xba, 0x69, 0x7d, 0xfd, 0xb8, 0x96, 0xfb, 0x81, 0xbb, 0x88,
0x6f, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, 0xdf, 0x81, 0x82, 0x4c, 0xb1, 0x02, 0x00, 0x00,
}
此差异已折叠。
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: language-agent/Downstream.proto
package agent
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// nothing down stream from collector yet.
type Downstream struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Downstream) Reset() { *m = Downstream{} }
func (m *Downstream) String() string { return proto.CompactTextString(m) }
func (*Downstream) ProtoMessage() {}
func (*Downstream) Descriptor() ([]byte, []int) {
return fileDescriptor_625677b377236e86, []int{0}
}
func (m *Downstream) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Downstream.Unmarshal(m, b)
}
func (m *Downstream) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Downstream.Marshal(b, m, deterministic)
}
func (m *Downstream) XXX_Merge(src proto.Message) {
xxx_messageInfo_Downstream.Merge(m, src)
}
func (m *Downstream) XXX_Size() int {
return xxx_messageInfo_Downstream.Size(m)
}
func (m *Downstream) XXX_DiscardUnknown() {
xxx_messageInfo_Downstream.DiscardUnknown(m)
}
var xxx_messageInfo_Downstream proto.InternalMessageInfo
func init() {
proto.RegisterType((*Downstream)(nil), "Downstream")
}
func init() { proto.RegisterFile("language-agent/Downstream.proto", fileDescriptor_625677b377236e86) }
var fileDescriptor_625677b377236e86 = []byte{
// 139 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcf, 0x49, 0xcc, 0x4b,
0x2f, 0x4d, 0x4c, 0x4f, 0xd5, 0x4d, 0x4c, 0x4f, 0xcd, 0x2b, 0xd1, 0x77, 0xc9, 0x2f, 0xcf, 0x2b,
0x2e, 0x29, 0x4a, 0x4d, 0xcc, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x57, 0xe2, 0xe1, 0xe2, 0x42,
0x88, 0x39, 0xa5, 0x73, 0x19, 0xe4, 0x17, 0xa5, 0xeb, 0x25, 0x16, 0x24, 0x26, 0x67, 0xa4, 0xea,
0x15, 0x67, 0x57, 0x96, 0x27, 0xe6, 0x64, 0x67, 0xe6, 0x81, 0x44, 0x72, 0xf5, 0xf2, 0x52, 0x4b,
0xca, 0xf3, 0x8b, 0xb2, 0xf5, 0x60, 0x46, 0xea, 0x81, 0x8d, 0x0c, 0x60, 0x8c, 0x12, 0x81, 0x98,
0x0d, 0x21, 0x0b, 0x92, 0x20, 0x8c, 0x55, 0x4c, 0x52, 0xc1, 0xd9, 0x95, 0xe1, 0x50, 0xfd, 0x7e,
0x10, 0xbd, 0x01, 0x20, 0x3b, 0x93, 0xf3, 0x73, 0x92, 0xd8, 0xc0, 0xb6, 0x1b, 0x03, 0x02, 0x00,
0x00, 0xff, 0xff, 0x78, 0xb1, 0x7a, 0x22, 0xa0, 0x00, 0x00, 0x00,
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: common/JVM.proto
package agent
import (
common "agent/agent/pb/common"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type PoolType int32
const (
PoolType_CODE_CACHE_USAGE PoolType = 0
PoolType_NEWGEN_USAGE PoolType = 1
PoolType_OLDGEN_USAGE PoolType = 2
PoolType_SURVIVOR_USAGE PoolType = 3
PoolType_PERMGEN_USAGE PoolType = 4
PoolType_METASPACE_USAGE PoolType = 5
)
var PoolType_name = map[int32]string{
0: "CODE_CACHE_USAGE",
1: "NEWGEN_USAGE",
2: "OLDGEN_USAGE",
3: "SURVIVOR_USAGE",
4: "PERMGEN_USAGE",
5: "METASPACE_USAGE",
}
var PoolType_value = map[string]int32{
"CODE_CACHE_USAGE": 0,
"NEWGEN_USAGE": 1,
"OLDGEN_USAGE": 2,
"SURVIVOR_USAGE": 3,
"PERMGEN_USAGE": 4,
"METASPACE_USAGE": 5,
}
func (x PoolType) String() string {
return proto.EnumName(PoolType_name, int32(x))
}
func (PoolType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_42f5f61b58cf3158, []int{0}
}
type GCPhrase int32
const (
GCPhrase_NEW GCPhrase = 0
GCPhrase_OLD GCPhrase = 1
)
var GCPhrase_name = map[int32]string{
0: "NEW",
1: "OLD",
}
var GCPhrase_value = map[string]int32{
"NEW": 0,
"OLD": 1,
}
func (x GCPhrase) String() string {
return proto.EnumName(GCPhrase_name, int32(x))
}
func (GCPhrase) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_42f5f61b58cf3158, []int{1}
}
type JVMMetric struct {
Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
Cpu *common.CPU `protobuf:"bytes,2,opt,name=cpu,proto3" json:"cpu,omitempty"`
Memory []*Memory `protobuf:"bytes,3,rep,name=memory,proto3" json:"memory,omitempty"`
MemoryPool []*MemoryPool `protobuf:"bytes,4,rep,name=memoryPool,proto3" json:"memoryPool,omitempty"`
Gc []*GC `protobuf:"bytes,5,rep,name=gc,proto3" json:"gc,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *JVMMetric) Reset() { *m = JVMMetric{} }
func (m *JVMMetric) String() string { return proto.CompactTextString(m) }
func (*JVMMetric) ProtoMessage() {}
func (*JVMMetric) Descriptor() ([]byte, []int) {
return fileDescriptor_42f5f61b58cf3158, []int{0}
}
func (m *JVMMetric) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_JVMMetric.Unmarshal(m, b)
}
func (m *JVMMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_JVMMetric.Marshal(b, m, deterministic)
}
func (m *JVMMetric) XXX_Merge(src proto.Message) {
xxx_messageInfo_JVMMetric.Merge(m, src)
}
func (m *JVMMetric) XXX_Size() int {
return xxx_messageInfo_JVMMetric.Size(m)
}
func (m *JVMMetric) XXX_DiscardUnknown() {
xxx_messageInfo_JVMMetric.DiscardUnknown(m)
}
var xxx_messageInfo_JVMMetric proto.InternalMessageInfo
func (m *JVMMetric) GetTime() int64 {
if m != nil {
return m.Time
}
return 0
}
func (m *JVMMetric) GetCpu() *common.CPU {
if m != nil {
return m.Cpu
}
return nil
}
func (m *JVMMetric) GetMemory() []*Memory {
if m != nil {
return m.Memory
}
return nil
}
func (m *JVMMetric) GetMemoryPool() []*MemoryPool {
if m != nil {
return m.MemoryPool
}
return nil
}
func (m *JVMMetric) GetGc() []*GC {
if m != nil {
return m.Gc
}
return nil
}
type Memory struct {
IsHeap bool `protobuf:"varint,1,opt,name=isHeap,proto3" json:"isHeap,omitempty"`
Init int64 `protobuf:"varint,2,opt,name=init,proto3" json:"init,omitempty"`
Max int64 `protobuf:"varint,3,opt,name=max,proto3" json:"max,omitempty"`
Used int64 `protobuf:"varint,4,opt,name=used,proto3" json:"used,omitempty"`
Committed int64 `protobuf:"varint,5,opt,name=committed,proto3" json:"committed,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Memory) Reset() { *m = Memory{} }
func (m *Memory) String() string { return proto.CompactTextString(m) }
func (*Memory) ProtoMessage() {}
func (*Memory) Descriptor() ([]byte, []int) {
return fileDescriptor_42f5f61b58cf3158, []int{1}
}
func (m *Memory) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Memory.Unmarshal(m, b)
}
func (m *Memory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Memory.Marshal(b, m, deterministic)
}
func (m *Memory) XXX_Merge(src proto.Message) {
xxx_messageInfo_Memory.Merge(m, src)
}
func (m *Memory) XXX_Size() int {
return xxx_messageInfo_Memory.Size(m)
}
func (m *Memory) XXX_DiscardUnknown() {
xxx_messageInfo_Memory.DiscardUnknown(m)
}
var xxx_messageInfo_Memory proto.InternalMessageInfo
func (m *Memory) GetIsHeap() bool {
if m != nil {
return m.IsHeap
}
return false
}
func (m *Memory) GetInit() int64 {
if m != nil {
return m.Init
}
return 0
}
func (m *Memory) GetMax() int64 {
if m != nil {
return m.Max
}
return 0
}
func (m *Memory) GetUsed() int64 {
if m != nil {
return m.Used
}
return 0
}
func (m *Memory) GetCommitted() int64 {
if m != nil {
return m.Committed
}
return 0
}
type MemoryPool struct {
Type PoolType `protobuf:"varint,1,opt,name=type,proto3,enum=PoolType" json:"type,omitempty"`
Init int64 `protobuf:"varint,2,opt,name=init,proto3" json:"init,omitempty"`
Max int64 `protobuf:"varint,3,opt,name=max,proto3" json:"max,omitempty"`
Used int64 `protobuf:"varint,4,opt,name=used,proto3" json:"used,omitempty"`
Commited int64 `protobuf:"varint,5,opt,name=commited,proto3" json:"commited,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MemoryPool) Reset() { *m = MemoryPool{} }
func (m *MemoryPool) String() string { return proto.CompactTextString(m) }
func (*MemoryPool) ProtoMessage() {}
func (*MemoryPool) Descriptor() ([]byte, []int) {
return fileDescriptor_42f5f61b58cf3158, []int{2}
}
func (m *MemoryPool) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MemoryPool.Unmarshal(m, b)
}
func (m *MemoryPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MemoryPool.Marshal(b, m, deterministic)
}
func (m *MemoryPool) XXX_Merge(src proto.Message) {
xxx_messageInfo_MemoryPool.Merge(m, src)
}
func (m *MemoryPool) XXX_Size() int {
return xxx_messageInfo_MemoryPool.Size(m)
}
func (m *MemoryPool) XXX_DiscardUnknown() {
xxx_messageInfo_MemoryPool.DiscardUnknown(m)
}
var xxx_messageInfo_MemoryPool proto.InternalMessageInfo
func (m *MemoryPool) GetType() PoolType {
if m != nil {
return m.Type
}
return PoolType_CODE_CACHE_USAGE
}
func (m *MemoryPool) GetInit() int64 {
if m != nil {
return m.Init
}
return 0
}
func (m *MemoryPool) GetMax() int64 {
if m != nil {
return m.Max
}
return 0
}
func (m *MemoryPool) GetUsed() int64 {
if m != nil {
return m.Used
}
return 0
}
func (m *MemoryPool) GetCommited() int64 {
if m != nil {
return m.Commited
}
return 0
}
type GC struct {
Phrase GCPhrase `protobuf:"varint,1,opt,name=phrase,proto3,enum=GCPhrase" json:"phrase,omitempty"`
Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
Time int64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GC) Reset() { *m = GC{} }
func (m *GC) String() string { return proto.CompactTextString(m) }
func (*GC) ProtoMessage() {}
func (*GC) Descriptor() ([]byte, []int) {
return fileDescriptor_42f5f61b58cf3158, []int{3}
}
func (m *GC) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GC.Unmarshal(m, b)
}
func (m *GC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GC.Marshal(b, m, deterministic)
}
func (m *GC) XXX_Merge(src proto.Message) {
xxx_messageInfo_GC.Merge(m, src)
}
func (m *GC) XXX_Size() int {
return xxx_messageInfo_GC.Size(m)
}
func (m *GC) XXX_DiscardUnknown() {
xxx_messageInfo_GC.DiscardUnknown(m)
}
var xxx_messageInfo_GC proto.InternalMessageInfo
func (m *GC) GetPhrase() GCPhrase {
if m != nil {
return m.Phrase
}
return GCPhrase_NEW
}
func (m *GC) GetCount() int64 {
if m != nil {
return m.Count
}
return 0
}
func (m *GC) GetTime() int64 {
if m != nil {
return m.Time
}
return 0
}
func init() {
proto.RegisterEnum("PoolType", PoolType_name, PoolType_value)
proto.RegisterEnum("GCPhrase", GCPhrase_name, GCPhrase_value)
proto.RegisterType((*JVMMetric)(nil), "JVMMetric")
proto.RegisterType((*Memory)(nil), "Memory")
proto.RegisterType((*MemoryPool)(nil), "MemoryPool")
proto.RegisterType((*GC)(nil), "GC")
}
func init() { proto.RegisterFile("common/JVM.proto", fileDescriptor_42f5f61b58cf3158) }
var fileDescriptor_42f5f61b58cf3158 = []byte{
// 483 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xd1, 0x6e, 0xda, 0x30,
0x14, 0x86, 0x9b, 0x38, 0x50, 0x38, 0x6c, 0x5d, 0x66, 0x50, 0x15, 0xa1, 0x4e, 0x63, 0x5c, 0xa1,
0x4e, 0x72, 0x27, 0xf6, 0x04, 0x2c, 0x44, 0xe9, 0xaa, 0x06, 0x32, 0x53, 0x40, 0xda, 0x4d, 0x95,
0xa6, 0x56, 0x1a, 0x41, 0xe2, 0x28, 0x04, 0xb5, 0xb9, 0xdb, 0x5e, 0x63, 0x8f, 0xb0, 0xa7, 0x9c,
0x6c, 0x07, 0xb2, 0xfb, 0xde, 0x24, 0xff, 0xf9, 0xce, 0xef, 0x9c, 0x3f, 0xb6, 0xc1, 0x0c, 0x79,
0x92, 0xf0, 0xf4, 0xea, 0x66, 0xe5, 0x91, 0x2c, 0xe7, 0x05, 0xef, 0x77, 0x2b, 0xa2, 0x5e, 0x0a,
0x0e, 0xff, 0x68, 0xd0, 0xbe, 0x59, 0x79, 0x1e, 0x2b, 0xf2, 0x38, 0xc4, 0x18, 0x8c, 0x22, 0x4e,
0x98, 0xa5, 0x0d, 0xb4, 0x11, 0xa2, 0x52, 0xe3, 0x73, 0x40, 0x61, 0xb6, 0xb7, 0xf4, 0x81, 0x36,
0xea, 0x8c, 0x0d, 0x62, 0xfb, 0x4b, 0x2a, 0x00, 0xfe, 0x08, 0xcd, 0x84, 0x25, 0x3c, 0x2f, 0x2d,
0x34, 0x40, 0xa3, 0xce, 0xf8, 0x94, 0x78, 0xb2, 0xa4, 0x15, 0xc6, 0x9f, 0x01, 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0xf9, 0xed, 0xb4, 0x26, 0x3a, 0xc6, 0x70, 0xb6,
0x58, 0xd2, 0xd5, 0xf7, 0xd5, 0x9c, 0x56, 0x0c, 0xe1, 0xf7, 0xf0, 0xd6, 0x77, 0xa8, 0x57, 0xdb,
0x0c, 0xdc, 0x85, 0x77, 0x9e, 0x73, 0x37, 0x59, 0xf8, 0x13, 0xfb, 0xf0, 0xfd, 0xc6, 0xe5, 0x05,
0xb4, 0x0e, 0x3f, 0x80, 0x4f, 0x01, 0xcd, 0x9c, 0xb5, 0x79, 0x22, 0xc4, 0xfc, 0x76, 0x6a, 0x6a,
0xdf, 0x22, 0xf8, 0xc2, 0xf3, 0x88, 0x04, 0x59, 0x10, 0x3e, 0x31, 0xb2, 0xdb, 0x94, 0xcf, 0xc1,
0x76, 0x13, 0xa7, 0x82, 0x24, 0x24, 0x65, 0xc5, 0x33, 0xcf, 0x37, 0x64, 0x1b, 0xa4, 0xd1, 0x3e,
0x88, 0x18, 0x09, 0x22, 0x96, 0x16, 0xbe, 0xf6, 0xb3, 0x27, 0xc5, 0x95, 0x7a, 0x66, 0x0f, 0x4a,
0xfc, 0xd5, 0xfb, 0x8b, 0x4d, 0xb9, 0xae, 0xd6, 0xcf, 0xd4, 0x5a, 0x5f, 0x5c, 0xfa, 0x90, 0x6f,
0x1f, 0x9a, 0xf2, 0xfa, 0x7f, 0xfd, 0x17, 0x00, 0x00, 0xff, 0xff, 0x96, 0xea, 0x78, 0xcb, 0x27,
0x03, 0x00, 0x00,
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: language-agent/JVMMetricsService.proto
package agent
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type JVMMetrics struct {
Metrics []*JVMMetric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
ApplicationInstanceId int32 `protobuf:"varint,2,opt,name=applicationInstanceId,proto3" json:"applicationInstanceId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *JVMMetrics) Reset() { *m = JVMMetrics{} }
func (m *JVMMetrics) String() string { return proto.CompactTextString(m) }
func (*JVMMetrics) ProtoMessage() {}
func (*JVMMetrics) Descriptor() ([]byte, []int) {
return fileDescriptor_84f947edc73ca4ba, []int{0}
}
func (m *JVMMetrics) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_JVMMetrics.Unmarshal(m, b)
}
func (m *JVMMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_JVMMetrics.Marshal(b, m, deterministic)
}
func (m *JVMMetrics) XXX_Merge(src proto.Message) {
xxx_messageInfo_JVMMetrics.Merge(m, src)
}
func (m *JVMMetrics) XXX_Size() int {
return xxx_messageInfo_JVMMetrics.Size(m)
}
func (m *JVMMetrics) XXX_DiscardUnknown() {
xxx_messageInfo_JVMMetrics.DiscardUnknown(m)
}
var xxx_messageInfo_JVMMetrics proto.InternalMessageInfo
func (m *JVMMetrics) GetMetrics() []*JVMMetric {
if m != nil {
return m.Metrics
}
return nil
}
func (m *JVMMetrics) GetApplicationInstanceId() int32 {
if m != nil {
return m.ApplicationInstanceId
}
return 0
}
func init() {
proto.RegisterType((*JVMMetrics)(nil), "JVMMetrics")
}
func init() {
proto.RegisterFile("language-agent/JVMMetricsService.proto", fileDescriptor_84f947edc73ca4ba)
}
var fileDescriptor_84f947edc73ca4ba = []byte{
// 255 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0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0x54, 0x9b, 0x1a, 0x74, 0xa5, 0x6c, 0xb3, 0x31, 0xdc, 0x62, 0xac, 0xc9, 0x57, 0xbc, 0x0d,
0xcf, 0xb7, 0xe1, 0xe7, 0xd9, 0xdb, 0x49, 0x6a, 0x21, 0xbd, 0x6e, 0x95, 0x86, 0xaf, 0x5e, 0xb9,
0xac, 0x36, 0xaf, 0x3b, 0xfe, 0x73, 0xe2, 0xce, 0x9b, 0x2e, 0x04, 0xe9, 0xd5, 0xe1, 0xb6, 0x95,
0xdb, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe0, 0x53, 0x04, 0x2c, 0x72, 0x01, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// JVMMetricsServiceClient is the client API for JVMMetricsService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type JVMMetricsServiceClient interface {
Collect(ctx context.Context, in *JVMMetrics, opts ...grpc.CallOption) (*Downstream, error)
}
type jVMMetricsServiceClient struct {
cc *grpc.ClientConn
}
func NewJVMMetricsServiceClient(cc *grpc.ClientConn) JVMMetricsServiceClient {
return &jVMMetricsServiceClient{cc}
}
func (c *jVMMetricsServiceClient) Collect(ctx context.Context, in *JVMMetrics, opts ...grpc.CallOption) (*Downstream, error) {
out := new(Downstream)
err := c.cc.Invoke(ctx, "/JVMMetricsService/collect", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// JVMMetricsServiceServer is the server API for JVMMetricsService service.
type JVMMetricsServiceServer interface {
Collect(context.Context, *JVMMetrics) (*Downstream, error)
}
// UnimplementedJVMMetricsServiceServer can be embedded to have forward compatible implementations.
type UnimplementedJVMMetricsServiceServer struct {
}
func (*UnimplementedJVMMetricsServiceServer) Collect(ctx context.Context, req *JVMMetrics) (*Downstream, error) {
return nil, status.Errorf(codes.Unimplemented, "method Collect not implemented")
}
func RegisterJVMMetricsServiceServer(s *grpc.Server, srv JVMMetricsServiceServer) {
s.RegisterService(&_JVMMetricsService_serviceDesc, srv)
}
func _JVMMetricsService_Collect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(JVMMetrics)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(JVMMetricsServiceServer).Collect(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/JVMMetricsService/Collect",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(JVMMetricsServiceServer).Collect(ctx, req.(*JVMMetrics))
}
return interceptor(ctx, in, info, handler)
}
var _JVMMetricsService_serviceDesc = grpc.ServiceDesc{
ServiceName: "JVMMetricsService",
HandlerType: (*JVMMetricsServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "collect",
Handler: _JVMMetricsService_Collect_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "language-agent/JVMMetricsService.proto",
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: language-agent/KeyWithIntegerValue.proto
package agent
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type KeyWithIntegerValue struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *KeyWithIntegerValue) Reset() { *m = KeyWithIntegerValue{} }
func (m *KeyWithIntegerValue) String() string { return proto.CompactTextString(m) }
func (*KeyWithIntegerValue) ProtoMessage() {}
func (*KeyWithIntegerValue) Descriptor() ([]byte, []int) {
return fileDescriptor_e5c321729f520ebb, []int{0}
}
func (m *KeyWithIntegerValue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KeyWithIntegerValue.Unmarshal(m, b)
}
func (m *KeyWithIntegerValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KeyWithIntegerValue.Marshal(b, m, deterministic)
}
func (m *KeyWithIntegerValue) XXX_Merge(src proto.Message) {
xxx_messageInfo_KeyWithIntegerValue.Merge(m, src)
}
func (m *KeyWithIntegerValue) XXX_Size() int {
return xxx_messageInfo_KeyWithIntegerValue.Size(m)
}
func (m *KeyWithIntegerValue) XXX_DiscardUnknown() {
xxx_messageInfo_KeyWithIntegerValue.DiscardUnknown(m)
}
var xxx_messageInfo_KeyWithIntegerValue proto.InternalMessageInfo
func (m *KeyWithIntegerValue) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *KeyWithIntegerValue) GetValue() int32 {
if m != nil {
return m.Value
}
return 0
}
func init() {
proto.RegisterType((*KeyWithIntegerValue)(nil), "KeyWithIntegerValue")
}
func init() {
proto.RegisterFile("language-agent/KeyWithIntegerValue.proto", fileDescriptor_e5c321729f520ebb)
}
var fileDescriptor_e5c321729f520ebb = []byte{
// 180 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xc8, 0x49, 0xcc, 0x4b,
0x2f, 0x4d, 0x4c, 0x4f, 0xd5, 0x4d, 0x4c, 0x4f, 0xcd, 0x2b, 0xd1, 0xf7, 0x4e, 0xad, 0x0c, 0xcf,
0x2c, 0xc9, 0xf0, 0xcc, 0x2b, 0x49, 0x4d, 0x4f, 0x2d, 0x0a, 0x4b, 0xcc, 0x29, 0x4d, 0xd5, 0x2b,
0x28, 0xca, 0x2f, 0xc9, 0x57, 0xb2, 0xe5, 0x12, 0xc6, 0x22, 0x29, 0x24, 0xc0, 0xc5, 0x9c, 0x9d,
0x5a, 0x29, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x19, 0x04, 0x62, 0x0a, 0x89, 0x70, 0xb1, 0x96, 0x81,
0xa4, 0x24, 0x98, 0x14, 0x18, 0x35, 0x58, 0x83, 0x20, 0x1c, 0xa7, 0x74, 0x2e, 0x83, 0xfc, 0xa2,
0x74, 0xbd, 0xc4, 0x82, 0xc4, 0xe4, 0x8c, 0x54, 0xbd, 0xe2, 0xec, 0xca, 0xf2, 0xc4, 0x9c, 0xec,
0xcc, 0x3c, 0x90, 0x48, 0xae, 0x5e, 0x5e, 0x6a, 0x49, 0x79, 0x7e, 0x51, 0xb6, 0x1e, 0xcc, 0x31,
0x7a, 0x60, 0xc7, 0x04, 0x30, 0x46, 0x89, 0x40, 0x5c, 0x05, 0x21, 0x0b, 0x92, 0x20, 0x8c, 0x55,
0x4c, 0x52, 0xc1, 0xd9, 0x95, 0xe1, 0x50, 0xfd, 0x7e, 0x10, 0xbd, 0x01, 0x20, 0x47, 0x26, 0xe7,
0xe7, 0x24, 0xb1, 0x81, 0x9d, 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x87, 0x5d, 0xf4, 0xa6,
0xda, 0x00, 0x00, 0x00,
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: language-agent/KeyWithStringValue.proto
package agent
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type KeyWithStringValue struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *KeyWithStringValue) Reset() { *m = KeyWithStringValue{} }
func (m *KeyWithStringValue) String() string { return proto.CompactTextString(m) }
func (*KeyWithStringValue) ProtoMessage() {}
func (*KeyWithStringValue) Descriptor() ([]byte, []int) {
return fileDescriptor_8d2e5fffd6fcf7d0, []int{0}
}
func (m *KeyWithStringValue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KeyWithStringValue.Unmarshal(m, b)
}
func (m *KeyWithStringValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KeyWithStringValue.Marshal(b, m, deterministic)
}
func (m *KeyWithStringValue) XXX_Merge(src proto.Message) {
xxx_messageInfo_KeyWithStringValue.Merge(m, src)
}
func (m *KeyWithStringValue) XXX_Size() int {
return xxx_messageInfo_KeyWithStringValue.Size(m)
}
func (m *KeyWithStringValue) XXX_DiscardUnknown() {
xxx_messageInfo_KeyWithStringValue.DiscardUnknown(m)
}
var xxx_messageInfo_KeyWithStringValue proto.InternalMessageInfo
func (m *KeyWithStringValue) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *KeyWithStringValue) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
func init() {
proto.RegisterType((*KeyWithStringValue)(nil), "KeyWithStringValue")
}
func init() {
proto.RegisterFile("language-agent/KeyWithStringValue.proto", fileDescriptor_8d2e5fffd6fcf7d0)
}
var fileDescriptor_8d2e5fffd6fcf7d0 = []byte{
// 176 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcf, 0x49, 0xcc, 0x4b,
0x2f, 0x4d, 0x4c, 0x4f, 0xd5, 0x4d, 0x4c, 0x4f, 0xcd, 0x2b, 0xd1, 0xf7, 0x4e, 0xad, 0x0c, 0xcf,
0x2c, 0xc9, 0x08, 0x2e, 0x29, 0xca, 0xcc, 0x4b, 0x0f, 0x4b, 0xcc, 0x29, 0x4d, 0xd5, 0x2b, 0x28,
0xca, 0x2f, 0xc9, 0x57, 0xb2, 0xe1, 0x12, 0xc2, 0x94, 0x13, 0x12, 0xe0, 0x62, 0xce, 0x4e, 0xad,
0x94, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x02, 0x31, 0x85, 0x44, 0xb8, 0x58, 0xcb, 0x40, 0x52,
0x12, 0x4c, 0x60, 0x31, 0x08, 0xc7, 0x29, 0x9d, 0xcb, 0x20, 0xbf, 0x28, 0x5d, 0x2f, 0xb1, 0x20,
0x31, 0x39, 0x23, 0x55, 0xaf, 0x38, 0xbb, 0xb2, 0x3c, 0x31, 0x27, 0x3b, 0x33, 0x0f, 0x24, 0x92,
0xab, 0x97, 0x97, 0x5a, 0x52, 0x9e, 0x5f, 0x94, 0xad, 0x07, 0x73, 0x8a, 0x1e, 0xd8, 0x29, 0x01,
0x8c, 0x51, 0x22, 0x10, 0x37, 0x41, 0xc8, 0x82, 0x24, 0x08, 0x63, 0x15, 0x93, 0x54, 0x70, 0x76,
0x65, 0x38, 0x54, 0xbf, 0x1f, 0x44, 0x6f, 0x00, 0xc8, 0x8d, 0xc9, 0xf9, 0x39, 0x49, 0x6c, 0x60,
0xd7, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x3e, 0x85, 0x66, 0x94, 0xd8, 0x00, 0x00, 0x00,
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: language-agent/NetworkAddressRegisterService.proto
package agent
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type NetworkAddresses struct {
Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NetworkAddresses) Reset() { *m = NetworkAddresses{} }
func (m *NetworkAddresses) String() string { return proto.CompactTextString(m) }
func (*NetworkAddresses) ProtoMessage() {}
func (*NetworkAddresses) Descriptor() ([]byte, []int) {
return fileDescriptor_a4e4dbd2bcd5400f, []int{0}
}
func (m *NetworkAddresses) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NetworkAddresses.Unmarshal(m, b)
}
func (m *NetworkAddresses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NetworkAddresses.Marshal(b, m, deterministic)
}
func (m *NetworkAddresses) XXX_Merge(src proto.Message) {
xxx_messageInfo_NetworkAddresses.Merge(m, src)
}
func (m *NetworkAddresses) XXX_Size() int {
return xxx_messageInfo_NetworkAddresses.Size(m)
}
func (m *NetworkAddresses) XXX_DiscardUnknown() {
xxx_messageInfo_NetworkAddresses.DiscardUnknown(m)
}
var xxx_messageInfo_NetworkAddresses proto.InternalMessageInfo
func (m *NetworkAddresses) GetAddresses() []string {
if m != nil {
return m.Addresses
}
return nil
}
type NetworkAddressMappings struct {
AddressIds []*KeyWithIntegerValue `protobuf:"bytes,1,rep,name=addressIds,proto3" json:"addressIds,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NetworkAddressMappings) Reset() { *m = NetworkAddressMappings{} }
func (m *NetworkAddressMappings) String() string { return proto.CompactTextString(m) }
func (*NetworkAddressMappings) ProtoMessage() {}
func (*NetworkAddressMappings) Descriptor() ([]byte, []int) {
return fileDescriptor_a4e4dbd2bcd5400f, []int{1}
}
func (m *NetworkAddressMappings) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NetworkAddressMappings.Unmarshal(m, b)
}
func (m *NetworkAddressMappings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NetworkAddressMappings.Marshal(b, m, deterministic)
}
func (m *NetworkAddressMappings) XXX_Merge(src proto.Message) {
xxx_messageInfo_NetworkAddressMappings.Merge(m, src)
}
func (m *NetworkAddressMappings) XXX_Size() int {
return xxx_messageInfo_NetworkAddressMappings.Size(m)
}
func (m *NetworkAddressMappings) XXX_DiscardUnknown() {
xxx_messageInfo_NetworkAddressMappings.DiscardUnknown(m)
}
var xxx_messageInfo_NetworkAddressMappings proto.InternalMessageInfo
func (m *NetworkAddressMappings) GetAddressIds() []*KeyWithIntegerValue {
if m != nil {
return m.AddressIds
}
return nil
}
func init() {
proto.RegisterType((*NetworkAddresses)(nil), "NetworkAddresses")
proto.RegisterType((*NetworkAddressMappings)(nil), "NetworkAddressMappings")
}
func init() {
proto.RegisterFile("language-agent/NetworkAddressRegisterService.proto", fileDescriptor_a4e4dbd2bcd5400f)
}
var fileDescriptor_a4e4dbd2bcd5400f = []byte{
// 260 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0xc1, 0x4a, 0xc3, 0x40,
0x10, 0x86, 0xad, 0x82, 0xd0, 0x11, 0x41, 0x43, 0x51, 0x09, 0x0a, 0x92, 0x53, 0x2f, 0x8e, 0x25,
0x7a, 0xf5, 0xa0, 0xb7, 0x22, 0x96, 0x92, 0x82, 0x05, 0x0f, 0xc2, 0x24, 0x19, 0x36, 0x21, 0x71,
0x77, 0xd9, 0xdd, 0x5a, 0xf2, 0x4a, 0x3e, 0xa5, 0xb4, 0x9b, 0xa0, 0x2d, 0xa5, 0x97, 0x90,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 0x7e, 0x03, 0x00, 0x00, 0xff, 0xff, 0x97, 0xa3, 0x6a, 0x0b,
0xb1, 0x01, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// NetworkAddressRegisterServiceClient is the client API for NetworkAddressRegisterService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type NetworkAddressRegisterServiceClient interface {
BatchRegister(ctx context.Context, in *NetworkAddresses, opts ...grpc.CallOption) (*NetworkAddressMappings, error)
}
type networkAddressRegisterServiceClient struct {
cc *grpc.ClientConn
}
func NewNetworkAddressRegisterServiceClient(cc *grpc.ClientConn) NetworkAddressRegisterServiceClient {
return &networkAddressRegisterServiceClient{cc}
}
func (c *networkAddressRegisterServiceClient) BatchRegister(ctx context.Context, in *NetworkAddresses, opts ...grpc.CallOption) (*NetworkAddressMappings, error) {
out := new(NetworkAddressMappings)
err := c.cc.Invoke(ctx, "/NetworkAddressRegisterService/batchRegister", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// NetworkAddressRegisterServiceServer is the server API for NetworkAddressRegisterService service.
type NetworkAddressRegisterServiceServer interface {
BatchRegister(context.Context, *NetworkAddresses) (*NetworkAddressMappings, error)
}
// UnimplementedNetworkAddressRegisterServiceServer can be embedded to have forward compatible implementations.
type UnimplementedNetworkAddressRegisterServiceServer struct {
}
func (*UnimplementedNetworkAddressRegisterServiceServer) BatchRegister(ctx context.Context, req *NetworkAddresses) (*NetworkAddressMappings, error) {
return nil, status.Errorf(codes.Unimplemented, "method BatchRegister not implemented")
}
func RegisterNetworkAddressRegisterServiceServer(s *grpc.Server, srv NetworkAddressRegisterServiceServer) {
s.RegisterService(&_NetworkAddressRegisterService_serviceDesc, srv)
}
func _NetworkAddressRegisterService_BatchRegister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(NetworkAddresses)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NetworkAddressRegisterServiceServer).BatchRegister(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/NetworkAddressRegisterService/BatchRegister",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NetworkAddressRegisterServiceServer).BatchRegister(ctx, req.(*NetworkAddresses))
}
return interceptor(ctx, in, info, handler)
}
var _NetworkAddressRegisterService_serviceDesc = grpc.ServiceDesc{
ServiceName: "NetworkAddressRegisterService",
HandlerType: (*NetworkAddressRegisterServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "batchRegister",
Handler: _NetworkAddressRegisterService_BatchRegister_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "language-agent/NetworkAddressRegisterService.proto",
}
此差异已折叠。
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: common/trace-common.proto
package agent
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type SpanType int32
const (
SpanType_Entry SpanType = 0
SpanType_Exit SpanType = 1
SpanType_Local SpanType = 2
)
var SpanType_name = map[int32]string{
0: "Entry",
1: "Exit",
2: "Local",
}
var SpanType_value = map[string]int32{
"Entry": 0,
"Exit": 1,
"Local": 2,
}
func (x SpanType) String() string {
return proto.EnumName(SpanType_name, int32(x))
}
func (SpanType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_f5d7d2e503402948, []int{0}
}
type RefType int32
const (
RefType_CrossProcess RefType = 0
RefType_CrossThread RefType = 1
)
var RefType_name = map[int32]string{
0: "CrossProcess",
1: "CrossThread",
}
var RefType_value = map[string]int32{
"CrossProcess": 0,
"CrossThread": 1,
}
func (x RefType) String() string {
return proto.EnumName(RefType_name, int32(x))
}
func (RefType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_f5d7d2e503402948, []int{1}
}
type SpanLayer int32
const (
SpanLayer_Unknown SpanLayer = 0
SpanLayer_Database SpanLayer = 1
SpanLayer_RPCFramework SpanLayer = 2
SpanLayer_Http SpanLayer = 3
SpanLayer_MQ SpanLayer = 4
SpanLayer_Cache SpanLayer = 5
)
var SpanLayer_name = map[int32]string{
0: "Unknown",
1: "Database",
2: "RPCFramework",
3: "Http",
4: "MQ",
5: "Cache",
}
var SpanLayer_value = map[string]int32{
"Unknown": 0,
"Database": 1,
"RPCFramework": 2,
"Http": 3,
"MQ": 4,
"Cache": 5,
}
func (x SpanLayer) String() string {
return proto.EnumName(SpanLayer_name, int32(x))
}
func (SpanLayer) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_f5d7d2e503402948, []int{2}
}
type UpstreamSegment struct {
GlobalTraceIds []*UniqueId `protobuf:"bytes,1,rep,name=globalTraceIds,proto3" json:"globalTraceIds,omitempty"`
Segment []byte `protobuf:"bytes,2,opt,name=segment,proto3" json:"segment,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpstreamSegment) Reset() { *m = UpstreamSegment{} }
func (m *UpstreamSegment) String() string { return proto.CompactTextString(m) }
func (*UpstreamSegment) ProtoMessage() {}
func (*UpstreamSegment) Descriptor() ([]byte, []int) {
return fileDescriptor_f5d7d2e503402948, []int{0}
}
func (m *UpstreamSegment) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpstreamSegment.Unmarshal(m, b)
}
func (m *UpstreamSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpstreamSegment.Marshal(b, m, deterministic)
}
func (m *UpstreamSegment) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpstreamSegment.Merge(m, src)
}
func (m *UpstreamSegment) XXX_Size() int {
return xxx_messageInfo_UpstreamSegment.Size(m)
}
func (m *UpstreamSegment) XXX_DiscardUnknown() {
xxx_messageInfo_UpstreamSegment.DiscardUnknown(m)
}
var xxx_messageInfo_UpstreamSegment proto.InternalMessageInfo
func (m *UpstreamSegment) GetGlobalTraceIds() []*UniqueId {
if m != nil {
return m.GlobalTraceIds
}
return nil
}
func (m *UpstreamSegment) GetSegment() []byte {
if m != nil {
return m.Segment
}
return nil
}
type UniqueId struct {
IdParts []int64 `protobuf:"varint,1,rep,packed,name=idParts,proto3" json:"idParts,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UniqueId) Reset() { *m = UniqueId{} }
func (m *UniqueId) String() string { return proto.CompactTextString(m) }
func (*UniqueId) ProtoMessage() {}
func (*UniqueId) Descriptor() ([]byte, []int) {
return fileDescriptor_f5d7d2e503402948, []int{1}
}
func (m *UniqueId) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UniqueId.Unmarshal(m, b)
}
func (m *UniqueId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UniqueId.Marshal(b, m, deterministic)
}
func (m *UniqueId) XXX_Merge(src proto.Message) {
xxx_messageInfo_UniqueId.Merge(m, src)
}
func (m *UniqueId) XXX_Size() int {
return xxx_messageInfo_UniqueId.Size(m)
}
func (m *UniqueId) XXX_DiscardUnknown() {
xxx_messageInfo_UniqueId.DiscardUnknown(m)
}
var xxx_messageInfo_UniqueId proto.InternalMessageInfo
func (m *UniqueId) GetIdParts() []int64 {
if m != nil {
return m.IdParts
}
return nil
}
func init() {
proto.RegisterEnum("SpanType", SpanType_name, SpanType_value)
proto.RegisterEnum("RefType", RefType_name, RefType_value)
proto.RegisterEnum("SpanLayer", SpanLayer_name, SpanLayer_value)
proto.RegisterType((*UpstreamSegment)(nil), "UpstreamSegment")
proto.RegisterType((*UniqueId)(nil), "UniqueId")
}
func init() { proto.RegisterFile("common/trace-common.proto", fileDescriptor_f5d7d2e503402948) }
var fileDescriptor_f5d7d2e503402948 = []byte{
// 349 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0x4f, 0x0b, 0xd3, 0x40,
0x10, 0xc5, 0x9b, 0xf4, 0x5f, 0x3a, 0x2d, 0x76, 0x59, 0x3c, 0x54, 0x4f, 0xa5, 0x78, 0x28, 0x41,
0x53, 0xff, 0x7c, 0x03, 0x6b, 0xc5, 0x42, 0x95, 0x98, 0x36, 0x08, 0x1e, 0x84, 0x49, 0x32, 0xa6,
0x21, 0xc9, 0x6e, 0xdc, 0xdd, 0x52, 0xf3, 0x95, 0xfc, 0x94, 0xb2, 0x89, 0xbd, 0x78, 0x59, 0xe6,
0x3d, 0xde, 0xfb, 0xed, 0xc0, 0xc0, 0xb3, 0x54, 0xd6, 0xb5, 0x14, 0x3b, 0xa3, 0x30, 0xa5, 0x57,
0xbd, 0x08, 0x1a, 0x25, 0x8d, 0xdc, 0xfc, 0x80, 0x65, 0xdc, 0x68, 0xa3, 0x08, 0xeb, 0x33, 0xe5,
0x35, 0x09, 0xc3, 0xdf, 0xc0, 0x93, 0xbc, 0x92, 0x09, 0x56, 0x17, 0x1b, 0x3f, 0x66, 0x7a, 0xe5,
0xac, 0x87, 0xdb, 0xf9, 0xdb, 0x59, 0x10, 0x8b, 0xe2, 0xd7, 0x8d, 0x8e, 0x59, 0xf4, 0x5f, 0x80,
0xaf, 0x60, 0xaa, 0xfb, 0xf6, 0xca, 0x5d, 0x3b, 0xdb, 0x45, 0xf4, 0x90, 0x9b, 0x17, 0xe0, 0x3d,
0x5a, 0x36, 0x55, 0x64, 0x21, 0x2a, 0xd3, 0x13, 0x87, 0xd1, 0x43,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0x00, 0x00, 0xff, 0xff, 0x3c, 0x87, 0xb7, 0xb1, 0xc3, 0x01, 0x00, 0x00,
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: language-agent-v2/CLRMetric.proto
package agent2
import (
agent "agent/agent/pb/agent"
common "agent/agent/pb/common"
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type CLRMetricCollection struct {
Metrics []*agent.CLRMetric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
ServiceInstanceId int32 `protobuf:"varint,2,opt,name=serviceInstanceId,proto3" json:"serviceInstanceId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CLRMetricCollection) Reset() { *m = CLRMetricCollection{} }
func (m *CLRMetricCollection) String() string { return proto.CompactTextString(m) }
func (*CLRMetricCollection) ProtoMessage() {}
func (*CLRMetricCollection) Descriptor() ([]byte, []int) {
return fileDescriptor_1f032372dea03c68, []int{0}
}
func (m *CLRMetricCollection) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CLRMetricCollection.Unmarshal(m, b)
}
func (m *CLRMetricCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CLRMetricCollection.Marshal(b, m, deterministic)
}
func (m *CLRMetricCollection) XXX_Merge(src proto.Message) {
xxx_messageInfo_CLRMetricCollection.Merge(m, src)
}
func (m *CLRMetricCollection) XXX_Size() int {
return xxx_messageInfo_CLRMetricCollection.Size(m)
}
func (m *CLRMetricCollection) XXX_DiscardUnknown() {
xxx_messageInfo_CLRMetricCollection.DiscardUnknown(m)
}
var xxx_messageInfo_CLRMetricCollection proto.InternalMessageInfo
func (m *CLRMetricCollection) GetMetrics() []*agent.CLRMetric {
if m != nil {
return m.Metrics
}
return nil
}
func (m *CLRMetricCollection) GetServiceInstanceId() int32 {
if m != nil {
return m.ServiceInstanceId
}
return 0
}
func init() {
proto.RegisterType((*CLRMetricCollection)(nil), "CLRMetricCollection")
}
func init() { proto.RegisterFile("language-agent-v2/CLRMetric.proto", fileDescriptor_1f032372dea03c68) }
var fileDescriptor_1f032372dea03c68 = []byte{
// 263 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xcf, 0x4a, 0xc3, 0x40,
0x10, 0x87, 0x4d, 0x45, 0x8b, 0xeb, 0x45, 0x53, 0x95, 0x92, 0x53, 0x2d, 0x1e, 0x7a, 0x68, 0x27,
0x90, 0xbe, 0x81, 0x01, 0xa1, 0x50, 0xa5, 0xa4, 0x07, 0xc1, 0xdb, 0x76, 0x3b, 0xc4, 0xb0, 0x7f,
0x26, 0xec, 0xae, 0x29, 0x7d, 0x25, 0x9f, 0x52, 0x9a, 0x4d, 0xeb, 0x41, 0x2f, 0xbb, 0xc3, 0x37,
0x33, 0xbf, 0x5d, 0x3e, 0xf6, 0xa8, 0xb8, 0x29, 0xbf, 0x78, 0x89, 0x33, 0x5e, 0xa2, 0xf1, 0xb3,
0x26, 0x4b, 0xf3, 0x65, 0xf1, 0x8a, 0xde, 0x56, 0x02, 0x6a, 0x4b, 0x9e, 0x92, 0x81, 0x20, 0xad,
0xc9, 0xa4, 0xe1, 0xea, 0xe0, 0x4d, 0x07, 0xf3, 0x65, 0x11, 0xc8, 0xb8, 0x62, 0x83, 0xd3, 0x66,
0x4e, 0x4a, 0xa1, 0xf0, 0x15, 0x99, 0xf8, 0x89, 0xf5, 0x75, 0xcb, 0xdc, 0x30, 0x1a, 0x9d, 0x4f,
0xae, 0x33, 0x06, 0xa7, 0xb1, 0xe2, 0xd8, 0x8a, 0xa7, 0xec, 0xd6, 0xa1, 0x6d, 0x2a, 0x81, 0x0b,
0xe3, 0x3c, 0x37, 0x02, 0x17, 0xdb, 0x61, 0x6f, 0x14, 0x4d, 0x2e, 0x8a, 0xbf, 0x8d, 0xec, 0x85,
0x3d, 0xfc, 0x66, 0x60, 0x4d, 0xd6, 0xaf, 0xc3, 0x4c, 0x3c, 0x65, 0x7d, 0x11, 0xde, 0x8e, 0xef,
0xe0, 0x9f, 0xef, 0x24, 0x57, 0x90, 0x93, 0xd6, 0xdc, 0x6c, 0xdd, 0xf8, 0xec, 0x59, 0xb2, 0x39,
0xd9, 0x12, 0x78, 0xcd, 0xc5, 0x27, 0x82, 0x93, 0xfb, 0x1d, 0x57, 0xb2, 0x32, 0x07, 0xa2, 0xc1,
0xa0, 0xdf, 0x91, 0x95, 0x70, 0x14, 0x04, 0xad, 0x20, 0x68, 0xb2, 0x55, 0xf4, 0x71, 0xdf, 0xd6,
0x69, 0x38, 0xeb, 0x4d, 0x28, 0xb2, 0xef, 0x5e, 0xb2, 0x96, 0xfb, 0xf7, 0x2e, 0xe3, 0x2d, 0xec,
0xaf, 0x0e, 0x72, 0x04, 0xa9, 0xcd, 0x65, 0xab, 0x69, 0xfe, 0x13, 0x00, 0x00, 0xff, 0xff, 0x40,
0x3a, 0x84, 0x15, 0x72, 0x01, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// CLRMetricReportServiceClient is the client API for CLRMetricReportService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CLRMetricReportServiceClient interface {
Collect(ctx context.Context, in *CLRMetricCollection, opts ...grpc.CallOption) (*common.Commands, error)
}
type cLRMetricReportServiceClient struct {
cc *grpc.ClientConn
}
func NewCLRMetricReportServiceClient(cc *grpc.ClientConn) CLRMetricReportServiceClient {
return &cLRMetricReportServiceClient{cc}
}
func (c *cLRMetricReportServiceClient) Collect(ctx context.Context, in *CLRMetricCollection, opts ...grpc.CallOption) (*common.Commands, error) {
out := new(common.Commands)
err := c.cc.Invoke(ctx, "/CLRMetricReportService/collect", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// CLRMetricReportServiceServer is the server API for CLRMetricReportService service.
type CLRMetricReportServiceServer interface {
Collect(context.Context, *CLRMetricCollection) (*common.Commands, error)
}
// UnimplementedCLRMetricReportServiceServer can be embedded to have forward compatible implementations.
type UnimplementedCLRMetricReportServiceServer struct {
}
func (*UnimplementedCLRMetricReportServiceServer) Collect(ctx context.Context, req *CLRMetricCollection) (*common.Commands, error) {
return nil, status.Errorf(codes.Unimplemented, "method Collect not implemented")
}
func RegisterCLRMetricReportServiceServer(s *grpc.Server, srv CLRMetricReportServiceServer) {
s.RegisterService(&_CLRMetricReportService_serviceDesc, srv)
}
func _CLRMetricReportService_Collect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CLRMetricCollection)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CLRMetricReportServiceServer).Collect(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/CLRMetricReportService/Collect",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CLRMetricReportServiceServer).Collect(ctx, req.(*CLRMetricCollection))
}
return interceptor(ctx, in, info, handler)
}
var _CLRMetricReportService_serviceDesc = grpc.ServiceDesc{
ServiceName: "CLRMetricReportService",
HandlerType: (*CLRMetricReportServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "collect",
Handler: _CLRMetricReportService_Collect_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "language-agent-v2/CLRMetric.proto",
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: language-agent-v2/JVMMetric.proto
package agent2
import (
agent "agent/agent/pb/agent"
common "agent/agent/pb/common"
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type JVMMetricCollection struct {
Metrics []*agent.JVMMetric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
ServiceInstanceId int32 `protobuf:"varint,2,opt,name=serviceInstanceId,proto3" json:"serviceInstanceId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *JVMMetricCollection) Reset() { *m = JVMMetricCollection{} }
func (m *JVMMetricCollection) String() string { return proto.CompactTextString(m) }
func (*JVMMetricCollection) ProtoMessage() {}
func (*JVMMetricCollection) Descriptor() ([]byte, []int) {
return fileDescriptor_a5bd38fe036677f3, []int{0}
}
func (m *JVMMetricCollection) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_JVMMetricCollection.Unmarshal(m, b)
}
func (m *JVMMetricCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_JVMMetricCollection.Marshal(b, m, deterministic)
}
func (m *JVMMetricCollection) XXX_Merge(src proto.Message) {
xxx_messageInfo_JVMMetricCollection.Merge(m, src)
}
func (m *JVMMetricCollection) XXX_Size() int {
return xxx_messageInfo_JVMMetricCollection.Size(m)
}
func (m *JVMMetricCollection) XXX_DiscardUnknown() {
xxx_messageInfo_JVMMetricCollection.DiscardUnknown(m)
}
var xxx_messageInfo_JVMMetricCollection proto.InternalMessageInfo
func (m *JVMMetricCollection) GetMetrics() []*agent.JVMMetric {
if m != nil {
return m.Metrics
}
return nil
}
func (m *JVMMetricCollection) GetServiceInstanceId() int32 {
if m != nil {
return m.ServiceInstanceId
}
return 0
}
func init() {
proto.RegisterType((*JVMMetricCollection)(nil), "JVMMetricCollection")
}
func init() { proto.RegisterFile("language-agent-v2/JVMMetric.proto", fileDescriptor_a5bd38fe036677f3) }
var fileDescriptor_a5bd38fe036677f3 = []byte{
// 265 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0x4f, 0x6b, 0xf2, 0x40,
0x10, 0x87, 0xdf, 0xf8, 0xd2, 0x4a, 0xb7, 0x97, 0x36, 0xb6, 0x45, 0x72, 0xb2, 0xd2, 0x83, 0x07,
0x9d, 0x40, 0xfc, 0x06, 0x15, 0x0a, 0x0a, 0x29, 0xa2, 0x60, 0xa1, 0xb7, 0x75, 0x1d, 0xd2, 0xb0,
0x7f, 0x26, 0xec, 0x6e, 0x23, 0x7e, 0xa5, 0x7e, 0xca, 0x62, 0x36, 0xda, 0x43, 0x7b, 0xd9, 0x1d,
0x9e, 0x99, 0xf9, 0xed, 0xf2, 0xb0, 0x47, 0xc5, 0x4d, 0xf1, 0xc9, 0x0b, 0x9c, 0xf0, 0x02, 0x8d,
0x9f, 0xd4, 0x59, 0xba, 0xd8, 0xe4, 0x39, 0x7a, 0x5b, 0x0a, 0xa8, 0x2c, 0x79, 0x4a, 0x7a, 0x82,
0xb4, 0x26, 0x93, 0x86, 0xab, 0x85, 0x37, 0x2d, 0x5c, 0x6c, 0xf2, 0x40, 0x86, 0x25, 0xeb, 0x9d,
0x37, 0x67, 0xa4, 0x14, 0x0a, 0x5f, 0x92, 0x89, 0x9f, 0x58, 0x57, 0x37, 0xcc, 0xf5, 0xa3, 0xc1,
0xff, 0xd1, 0x75, 0xc6, 0xe0, 0x3c, 0xb6, 0x3a, 0xb5, 0xe2, 0x31, 0xbb, 0x75, 0x68, 0xeb, 0x52,
0xe0, 0xdc, 0x38, 0xcf, 0x8d, 0xc0, 0xf9, 0xae, 0xdf, 0x19, 0x44, 0xa3, 0x8b, 0xd5, 0xef, 0x46,
0xf6, 0xc2, 0x1e, 0x7e, 0x32, 0xb0, 0x22, 0xeb, 0xd7, 0x61, 0x26, 0x1e, 0xb3, 0xae, 0x08, 0x6f,
0xc7, 0x77, 0xf0, 0xc7, 0x77, 0x92, 0x2b, 0x98, 0x91, 0xd6, 0xdc, 0xec, 0xdc, 0xf0, 0xdf, 0xb3,
0x64, 0x53, 0xb2, 0x05, 0xf0, 0x8a, 0x8b, 0x0f, 0x04, 0x27, 0x0f, 0x7b, 0xae, 0x64, 0x69, 0x8e,
0x44, 0x83, 0x41, 0xbf, 0x27, 0x2b, 0xe1, 0x24, 0x08, 0x1a, 0x41, 0x50, 0x67, 0xcb, 0xe8, 0xfd,
0xbe, 0xa9, 0xd3, 0x70, 0x56, 0xdb, 0x50, 0x64, 0x5f, 0x9d, 0x64, 0x2d, 0x0f, 0x6f, 0x6d, 0xc6,
0x6b, 0xd8, 0x5f, 0x1e, 0xe5, 0x08, 0x52, 0xdb, 0xcb, 0x46, 0xd3, 0xf4, 0x3b, 0x00, 0x00, 0xff,
0xff, 0x93, 0x13, 0x3d, 0xf5, 0x72, 0x01, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// JVMMetricReportServiceClient is the client API for JVMMetricReportService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type JVMMetricReportServiceClient interface {
Collect(ctx context.Context, in *JVMMetricCollection, opts ...grpc.CallOption) (*common.Commands, error)
}
type jVMMetricReportServiceClient struct {
cc *grpc.ClientConn
}
func NewJVMMetricReportServiceClient(cc *grpc.ClientConn) JVMMetricReportServiceClient {
return &jVMMetricReportServiceClient{cc}
}
func (c *jVMMetricReportServiceClient) Collect(ctx context.Context, in *JVMMetricCollection, opts ...grpc.CallOption) (*common.Commands, error) {
out := new(common.Commands)
err := c.cc.Invoke(ctx, "/JVMMetricReportService/collect", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// JVMMetricReportServiceServer is the server API for JVMMetricReportService service.
type JVMMetricReportServiceServer interface {
Collect(context.Context, *JVMMetricCollection) (*common.Commands, error)
}
// UnimplementedJVMMetricReportServiceServer can be embedded to have forward compatible implementations.
type UnimplementedJVMMetricReportServiceServer struct {
}
func (*UnimplementedJVMMetricReportServiceServer) Collect(ctx context.Context, req *JVMMetricCollection) (*common.Commands, error) {
return nil, status.Errorf(codes.Unimplemented, "method Collect not implemented")
}
func RegisterJVMMetricReportServiceServer(s *grpc.Server, srv JVMMetricReportServiceServer) {
s.RegisterService(&_JVMMetricReportService_serviceDesc, srv)
}
func _JVMMetricReportService_Collect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(JVMMetricCollection)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(JVMMetricReportServiceServer).Collect(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/JVMMetricReportService/Collect",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(JVMMetricReportServiceServer).Collect(ctx, req.(*JVMMetricCollection))
}
return interceptor(ctx, in, info, handler)
}
var _JVMMetricReportService_serviceDesc = grpc.ServiceDesc{
ServiceName: "JVMMetricReportService",
HandlerType: (*JVMMetricReportServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "collect",
Handler: _JVMMetricReportService_Collect_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "language-agent-v2/JVMMetric.proto",
}
此差异已折叠。
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: common/common.proto
package common
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// In most cases, detect point should be `server` or `client`.
// Even in service mesh, this means `server`/`client` side sidecar
// `proxy` is reserved only.
type DetectPoint int32
const (
DetectPoint_client DetectPoint = 0
DetectPoint_server DetectPoint = 1
DetectPoint_proxy DetectPoint = 2
)
var DetectPoint_name = map[int32]string{
0: "client",
1: "server",
2: "proxy",
}
var DetectPoint_value = map[string]int32{
"client": 0,
"server": 1,
"proxy": 2,
}
func (x DetectPoint) String() string {
return proto.EnumName(DetectPoint_name, int32(x))
}
func (DetectPoint) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_8f954d82c0b891f6, []int{0}
}
type KeyStringValuePair struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *KeyStringValuePair) Reset() { *m = KeyStringValuePair{} }
func (m *KeyStringValuePair) String() string { return proto.CompactTextString(m) }
func (*KeyStringValuePair) ProtoMessage() {}
func (*KeyStringValuePair) Descriptor() ([]byte, []int) {
return fileDescriptor_8f954d82c0b891f6, []int{0}
}
func (m *KeyStringValuePair) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KeyStringValuePair.Unmarshal(m, b)
}
func (m *KeyStringValuePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KeyStringValuePair.Marshal(b, m, deterministic)
}
func (m *KeyStringValuePair) XXX_Merge(src proto.Message) {
xxx_messageInfo_KeyStringValuePair.Merge(m, src)
}
func (m *KeyStringValuePair) XXX_Size() int {
return xxx_messageInfo_KeyStringValuePair.Size(m)
}
func (m *KeyStringValuePair) XXX_DiscardUnknown() {
xxx_messageInfo_KeyStringValuePair.DiscardUnknown(m)
}
var xxx_messageInfo_KeyStringValuePair proto.InternalMessageInfo
func (m *KeyStringValuePair) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *KeyStringValuePair) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
type KeyIntValuePair struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *KeyIntValuePair) Reset() { *m = KeyIntValuePair{} }
func (m *KeyIntValuePair) String() string { return proto.CompactTextString(m) }
func (*KeyIntValuePair) ProtoMessage() {}
func (*KeyIntValuePair) Descriptor() ([]byte, []int) {
return fileDescriptor_8f954d82c0b891f6, []int{1}
}
func (m *KeyIntValuePair) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KeyIntValuePair.Unmarshal(m, b)
}
func (m *KeyIntValuePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KeyIntValuePair.Marshal(b, m, deterministic)
}
func (m *KeyIntValuePair) XXX_Merge(src proto.Message) {
xxx_messageInfo_KeyIntValuePair.Merge(m, src)
}
func (m *KeyIntValuePair) XXX_Size() int {
return xxx_messageInfo_KeyIntValuePair.Size(m)
}
func (m *KeyIntValuePair) XXX_DiscardUnknown() {
xxx_messageInfo_KeyIntValuePair.DiscardUnknown(m)
}
var xxx_messageInfo_KeyIntValuePair proto.InternalMessageInfo
func (m *KeyIntValuePair) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *KeyIntValuePair) GetValue() int32 {
if m != nil {
return m.Value
}
return 0
}
type CPU struct {
UsagePercent float64 `protobuf:"fixed64,2,opt,name=usagePercent,proto3" json:"usagePercent,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CPU) Reset() { *m = CPU{} }
func (m *CPU) String() string { return proto.CompactTextString(m) }
func (*CPU) ProtoMessage() {}
func (*CPU) Descriptor() ([]byte, []int) {
return fileDescriptor_8f954d82c0b891f6, []int{2}
}
func (m *CPU) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CPU.Unmarshal(m, b)
}
func (m *CPU) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CPU.Marshal(b, m, deterministic)
}
func (m *CPU) XXX_Merge(src proto.Message) {
xxx_messageInfo_CPU.Merge(m, src)
}
func (m *CPU) XXX_Size() int {
return xxx_messageInfo_CPU.Size(m)
}
func (m *CPU) XXX_DiscardUnknown() {
xxx_messageInfo_CPU.DiscardUnknown(m)
}
var xxx_messageInfo_CPU proto.InternalMessageInfo
func (m *CPU) GetUsagePercent() float64 {
if m != nil {
return m.UsagePercent
}
return 0
}
type Commands struct {
Commands []*Command `protobuf:"bytes,1,rep,name=commands,proto3" json:"commands,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Commands) Reset() { *m = Commands{} }
func (m *Commands) String() string { return proto.CompactTextString(m) }
func (*Commands) ProtoMessage() {}
func (*Commands) Descriptor() ([]byte, []int) {
return fileDescriptor_8f954d82c0b891f6, []int{3}
}
func (m *Commands) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Commands.Unmarshal(m, b)
}
func (m *Commands) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Commands.Marshal(b, m, deterministic)
}
func (m *Commands) XXX_Merge(src proto.Message) {
xxx_messageInfo_Commands.Merge(m, src)
}
func (m *Commands) XXX_Size() int {
return xxx_messageInfo_Commands.Size(m)
}
func (m *Commands) XXX_DiscardUnknown() {
xxx_messageInfo_Commands.DiscardUnknown(m)
}
var xxx_messageInfo_Commands proto.InternalMessageInfo
func (m *Commands) GetCommands() []*Command {
if m != nil {
return m.Commands
}
return nil
}
type Command struct {
Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
Args []*KeyStringValuePair `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Command) Reset() { *m = Command{} }
func (m *Command) String() string { return proto.CompactTextString(m) }
func (*Command) ProtoMessage() {}
func (*Command) Descriptor() ([]byte, []int) {
return fileDescriptor_8f954d82c0b891f6, []int{4}
}
func (m *Command) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Command.Unmarshal(m, b)
}
func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Command.Marshal(b, m, deterministic)
}
func (m *Command) XXX_Merge(src proto.Message) {
xxx_messageInfo_Command.Merge(m, src)
}
func (m *Command) XXX_Size() int {
return xxx_messageInfo_Command.Size(m)
}
func (m *Command) XXX_DiscardUnknown() {
xxx_messageInfo_Command.DiscardUnknown(m)
}
var xxx_messageInfo_Command proto.InternalMessageInfo
func (m *Command) GetCommand() string {
if m != nil {
return m.Command
}
return ""
}
func (m *Command) GetArgs() []*KeyStringValuePair {
if m != nil {
return m.Args
}
return nil
}
func init() {
proto.RegisterEnum("DetectPoint", DetectPoint_name, DetectPoint_value)
proto.RegisterType((*KeyStringValuePair)(nil), "KeyStringValuePair")
proto.RegisterType((*KeyIntValuePair)(nil), "KeyIntValuePair")
proto.RegisterType((*CPU)(nil), "CPU")
proto.RegisterType((*Commands)(nil), "Commands")
proto.RegisterType((*Command)(nil), "Command")
}
func init() { proto.RegisterFile("common/common.proto", fileDescriptor_8f954d82c0b891f6) }
var fileDescriptor_8f954d82c0b891f6 = []byte{
// 311 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x4f, 0x4b, 0xc3, 0x30,
0x18, 0xc6, 0x6d, 0xe7, 0xfe, 0xbd, 0x13, 0x2c, 0x99, 0x42, 0xf1, 0x34, 0x8a, 0x60, 0xf5, 0x90,
0x0d, 0x3d, 0x09, 0x9e, 0x9c, 0x17, 0x99, 0x48, 0xe9, 0x50, 0xc1, 0x93, 0x59, 0x7c, 0xa9, 0xa5,
0x6d, 0x52, 0xd2, 0x6c, 0x33, 0x5f, 0xc9, 0x4f, 0x29, 0x6d, 0x33, 0x41, 0xbc, 0x78, 0x69, 0x9f,
0xf7, 0xf7, 0xbc, 0x4f, 0x08, 0x79, 0x60, 0xcc, 0x65, 0x51, 0x48, 0x31, 0x6d, 0x7f, 0xb4, 0x54,
0x52, 0xcb, 0xe0, 0x06, 0xc8, 0x02, 0xcd, 0x52, 0xab, 0x54, 0x24, 0xcf, 0x2c, 0x5f, 0x63, 0xc4,
0x52, 0x45, 0x3c, 0xe8, 0x64, 0x68, 0x7c, 0x67, 0xe2, 0x84, 0xc3, 0xb8, 0x96, 0xe4, 0x08, 0xba,
0x9b, 0xda, 0xf6, 0xdd, 0x86, 0xb5, 0x43, 0x70, 0x0d, 0x87, 0x0b, 0x34, 0xf7, 0x42, 0xff, 0x3b,
0xda, 0xdd, 0x45, 0xcf, 0xa1, 0x33, 0x8f, 0x9e, 0x48, 0x00, 0x07, 0xeb, 0x8a, 0x25, 0x18, 0xa1,
0xe2, 0x28, 0x74, 0xb3, 0xe3, 0xc4, 0xbf, 0x58, 0x30, 0x83, 0xc1, 0x5c, 0x16, 0x05, 0x13, 0xef,
0x15, 0x39, 0x85, 0x01, 0xb7, 0xda, 0x77, 0x26, 0x9d, 0x70, 0x74, 0x39, 0xa0, 0xd6, 0x8c, 0x7f,
0x9c, 0xe0, 0x01, 0xfa, 0x16, 0x12, 0x1f, 0xfa, 0x16, 0xdb, 0x3b, 0xed, 0x46, 0x72, 0x06, 0xfb,
0x4c, 0x25, 0x95, 0xef, 0x36, 0xc7, 0x8c, 0xe9, 0xdf, 0x77, 0x88, 0x9b, 0x85, 0x8b, 0x19, 0x8c,
0xee, 0x50, 0x23, 0xd7, 0x91, 0x4c, 0x85, 0x26, 0x00, 0x3d, 0x9e, 0xa7, 0x28, 0xb4, 0xb7, 0x57,
0xeb, 0x0a, 0xd5, 0x06, 0x95, 0xe7, 0x90, 0x21, 0x74, 0x4b, 0x25, 0x3f, 0x8d, 0xe7, 0xde, 0xbe,
0x41, 0x28, 0x55, 0x42, 0x59, 0xc9, 0xf8, 0x07, 0xd2, 0x2a, 0x33, 0x5b, 0x96, 0x67, 0xa9, 0xa8,
0x49, 0x41, 0x05, 0xea, 0xad, 0x54, 0x19, 0x6d, 0x7b, 0x88, 0x9c, 0xd7, 0x63, 0x96, 0xa0, 0xd0,
0xd3, 0xf6, 0x5b, 0xae, 0x6c, 0x41, 0x5f, 0xee, 0xc9, 0x32, 0x33, 0x2f, 0x36, 0xf8, 0xd8, 0x86,
0xa2, 0xba, 0x34, 0x2e, 0xf3, 0x55, 0xaf, 0xa9, 0xef, 0xea, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xd9,
0x56, 0xa0, 0x7e, 0xd5, 0x01, 0x00, 0x00,
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: register/InstancePing.proto
package register2
import (
common "agent/agent/pb/common"
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type ServiceInstancePingPkg struct {
ServiceInstanceId int32 `protobuf:"varint,1,opt,name=serviceInstanceId,proto3" json:"serviceInstanceId,omitempty"`
Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"`
ServiceInstanceUUID string `protobuf:"bytes,3,opt,name=serviceInstanceUUID,proto3" json:"serviceInstanceUUID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServiceInstancePingPkg) Reset() { *m = ServiceInstancePingPkg{} }
func (m *ServiceInstancePingPkg) String() string { return proto.CompactTextString(m) }
func (*ServiceInstancePingPkg) ProtoMessage() {}
func (*ServiceInstancePingPkg) Descriptor() ([]byte, []int) {
return fileDescriptor_c10bfdff83d834ed, []int{0}
}
func (m *ServiceInstancePingPkg) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServiceInstancePingPkg.Unmarshal(m, b)
}
func (m *ServiceInstancePingPkg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServiceInstancePingPkg.Marshal(b, m, deterministic)
}
func (m *ServiceInstancePingPkg) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServiceInstancePingPkg.Merge(m, src)
}
func (m *ServiceInstancePingPkg) XXX_Size() int {
return xxx_messageInfo_ServiceInstancePingPkg.Size(m)
}
func (m *ServiceInstancePingPkg) XXX_DiscardUnknown() {
xxx_messageInfo_ServiceInstancePingPkg.DiscardUnknown(m)
}
var xxx_messageInfo_ServiceInstancePingPkg proto.InternalMessageInfo
func (m *ServiceInstancePingPkg) GetServiceInstanceId() int32 {
if m != nil {
return m.ServiceInstanceId
}
return 0
}
func (m *ServiceInstancePingPkg) GetTime() int64 {
if m != nil {
return m.Time
}
return 0
}
func (m *ServiceInstancePingPkg) GetServiceInstanceUUID() string {
if m != nil {
return m.ServiceInstanceUUID
}
return ""
}
func init() {
proto.RegisterType((*ServiceInstancePingPkg)(nil), "ServiceInstancePingPkg")
}
func init() { proto.RegisterFile("register/InstancePing.proto", fileDescriptor_c10bfdff83d834ed) }
var fileDescriptor_c10bfdff83d834ed = []byte{
// 252 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2e, 0x4a, 0x4d, 0xcf,
0x2c, 0x2e, 0x49, 0x2d, 0xd2, 0xf7, 0xcc, 0x2b, 0x2e, 0x49, 0xcc, 0x4b, 0x4e, 0x0d, 0xc8, 0xcc,
0x4b, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x97, 0x12, 0x4e, 0xce, 0xcf, 0xcd, 0xcd, 0xcf, 0xd3,
0x87, 0x50, 0x10, 0x41, 0xa5, 0x1e, 0x46, 0x2e, 0xb1, 0xe0, 0xd4, 0xa2, 0xb2, 0xcc, 0xe4, 0x54,
0x64, 0x2d, 0x01, 0xd9, 0xe9, 0x42, 0x3a, 0x5c, 0x82, 0xc5, 0xa8, 0x32, 0x9e, 0x29, 0x12, 0x8c,
0x0a, 0x8c, 0x1a, 0xac, 0x41, 0x98, 0x12, 0x42, 0x42, 0x5c, 0x2c, 0x25, 0x99, 0xb9, 0xa9, 0x12,
0x4c, 0x0a, 0x8c, 0x1a, 0xcc, 0x41, 0x60, 0xb6, 0x90, 0x01, 0x97, 0x30, 0x9a, 0xc2, 0xd0, 0x50,
0x4f, 0x17, 0x09, 0x66, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x6c, 0x52, 0x46, 0xae, 0x5c, 0xc2, 0x58,
0x5c, 0x23, 0xa4, 0xc7, 0xc5, 0x96, 0x92, 0x0f, 0x66, 0x89, 0xeb, 0x61, 0x77, 0xad, 0x14, 0xa7,
0x9e, 0x73, 0x7e, 0x6e, 0x6e, 0x62, 0x5e, 0x4a, 0xb1, 0x12, 0x83, 0x53, 0x06, 0x97, 0x6e, 0x7e,
0x51, 0xba, 0x5e, 0x62, 0x41, 0x62, 0x72, 0x46, 0xaa, 0x5e, 0x71, 0x76, 0x65, 0x79, 0x62, 0x4e,
0x36, 0x28, 0x24, 0x12, 0x0b, 0x72, 0xf5, 0xf2, 0x52, 0x4b, 0xca, 0xf3, 0x8b, 0xb2, 0xf5, 0x60,
0x61, 0xa5, 0x57, 0x66, 0x14, 0xc0, 0x18, 0x25, 0x91, 0x98, 0x9e, 0x9a, 0x57, 0xa2, 0x0f, 0x21,
0x0b, 0x92, 0xf4, 0x61, 0xb2, 0x46, 0xab, 0x98, 0xa4, 0x82, 0xb3, 0x2b, 0xc3, 0xa1, 0x06, 0xf8,
0x41, 0x34, 0x07, 0x80, 0x02, 0x2f, 0x39, 0x3f, 0x27, 0x89, 0x0d, 0x1c, 0x8c, 0xc6, 0x80, 0x00,
0x00, 0x00, 0xff, 0xff, 0xf2, 0xb2, 0xb8, 0x24, 0x7a, 0x01, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// ServiceInstancePingClient is the client API for ServiceInstancePing service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ServiceInstancePingClient interface {
DoPing(ctx context.Context, in *ServiceInstancePingPkg, opts ...grpc.CallOption) (*common.Commands, error)
}
type serviceInstancePingClient struct {
cc *grpc.ClientConn
}
func NewServiceInstancePingClient(cc *grpc.ClientConn) ServiceInstancePingClient {
return &serviceInstancePingClient{cc}
}
func (c *serviceInstancePingClient) DoPing(ctx context.Context, in *ServiceInstancePingPkg, opts ...grpc.CallOption) (*common.Commands, error) {
out := new(common.Commands)
err := c.cc.Invoke(ctx, "/ServiceInstancePing/doPing", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ServiceInstancePingServer is the server API for ServiceInstancePing service.
type ServiceInstancePingServer interface {
DoPing(context.Context, *ServiceInstancePingPkg) (*common.Commands, error)
}
// UnimplementedServiceInstancePingServer can be embedded to have forward compatible implementations.
type UnimplementedServiceInstancePingServer struct {
}
func (*UnimplementedServiceInstancePingServer) DoPing(ctx context.Context, req *ServiceInstancePingPkg) (*common.Commands, error) {
return nil, status.Errorf(codes.Unimplemented, "method DoPing not implemented")
}
func RegisterServiceInstancePingServer(s *grpc.Server, srv ServiceInstancePingServer) {
s.RegisterService(&_ServiceInstancePing_serviceDesc, srv)
}
func _ServiceInstancePing_DoPing_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ServiceInstancePingPkg)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServiceInstancePingServer).DoPing(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/ServiceInstancePing/DoPing",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServiceInstancePingServer).DoPing(ctx, req.(*ServiceInstancePingPkg))
}
return interceptor(ctx, in, info, handler)
}
var _ServiceInstancePing_serviceDesc = grpc.ServiceDesc{
ServiceName: "ServiceInstancePing",
HandlerType: (*ServiceInstancePingServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "doPing",
Handler: _ServiceInstancePing_DoPing_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "register/InstancePing.proto",
}
此差异已折叠。
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: service-mesh-probe/service-mesh.proto
package servicemesh
import (
common "agent/agent/pb/common"
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type Protocol int32
const (
Protocol_HTTP Protocol = 0
Protocol_gRPC Protocol = 1
)
var Protocol_name = map[int32]string{
0: "HTTP",
1: "gRPC",
}
var Protocol_value = map[string]int32{
"HTTP": 0,
"gRPC": 1,
}
func (x Protocol) String() string {
return proto.EnumName(Protocol_name, int32(x))
}
func (Protocol) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_ab52fdf17822efde, []int{0}
}
type ServiceMeshMetric struct {
StartTime int64 `protobuf:"varint,1,opt,name=startTime,proto3" json:"startTime,omitempty"`
EndTime int64 `protobuf:"varint,2,opt,name=endTime,proto3" json:"endTime,omitempty"`
SourceServiceName string `protobuf:"bytes,3,opt,name=sourceServiceName,proto3" json:"sourceServiceName,omitempty"`
SourceServiceId int32 `protobuf:"varint,4,opt,name=sourceServiceId,proto3" json:"sourceServiceId,omitempty"`
SourceServiceInstance string `protobuf:"bytes,5,opt,name=sourceServiceInstance,proto3" json:"sourceServiceInstance,omitempty"`
SourceServiceInstanceId int32 `protobuf:"varint,6,opt,name=sourceServiceInstanceId,proto3" json:"sourceServiceInstanceId,omitempty"`
DestServiceName string `protobuf:"bytes,7,opt,name=destServiceName,proto3" json:"destServiceName,omitempty"`
DestServiceId int32 `protobuf:"varint,8,opt,name=destServiceId,proto3" json:"destServiceId,omitempty"`
DestServiceInstance string `protobuf:"bytes,9,opt,name=destServiceInstance,proto3" json:"destServiceInstance,omitempty"`
DestServiceInstanceId int32 `protobuf:"varint,10,opt,name=destServiceInstanceId,proto3" json:"destServiceInstanceId,omitempty"`
Endpoint string `protobuf:"bytes,11,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
Latency int32 `protobuf:"varint,12,opt,name=latency,proto3" json:"latency,omitempty"`
ResponseCode int32 `protobuf:"varint,13,opt,name=responseCode,proto3" json:"responseCode,omitempty"`
Status bool `protobuf:"varint,14,opt,name=status,proto3" json:"status,omitempty"`
Protocol Protocol `protobuf:"varint,15,opt,name=protocol,proto3,enum=Protocol" json:"protocol,omitempty"`
DetectPoint common.DetectPoint `protobuf:"varint,16,opt,name=detectPoint,proto3,enum=DetectPoint" json:"detectPoint,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServiceMeshMetric) Reset() { *m = ServiceMeshMetric{} }
func (m *ServiceMeshMetric) String() string { return proto.CompactTextString(m) }
func (*ServiceMeshMetric) ProtoMessage() {}
func (*ServiceMeshMetric) Descriptor() ([]byte, []int) {
return fileDescriptor_ab52fdf17822efde, []int{0}
}
func (m *ServiceMeshMetric) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServiceMeshMetric.Unmarshal(m, b)
}
func (m *ServiceMeshMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServiceMeshMetric.Marshal(b, m, deterministic)
}
func (m *ServiceMeshMetric) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServiceMeshMetric.Merge(m, src)
}
func (m *ServiceMeshMetric) XXX_Size() int {
return xxx_messageInfo_ServiceMeshMetric.Size(m)
}
func (m *ServiceMeshMetric) XXX_DiscardUnknown() {
xxx_messageInfo_ServiceMeshMetric.DiscardUnknown(m)
}
var xxx_messageInfo_ServiceMeshMetric proto.InternalMessageInfo
func (m *ServiceMeshMetric) GetStartTime() int64 {
if m != nil {
return m.StartTime
}
return 0
}
func (m *ServiceMeshMetric) GetEndTime() int64 {
if m != nil {
return m.EndTime
}
return 0
}
func (m *ServiceMeshMetric) GetSourceServiceName() string {
if m != nil {
return m.SourceServiceName
}
return ""
}
func (m *ServiceMeshMetric) GetSourceServiceId() int32 {
if m != nil {
return m.SourceServiceId
}
return 0
}
func (m *ServiceMeshMetric) GetSourceServiceInstance() string {
if m != nil {
return m.SourceServiceInstance
}
return ""
}
func (m *ServiceMeshMetric) GetSourceServiceInstanceId() int32 {
if m != nil {
return m.SourceServiceInstanceId
}
return 0
}
func (m *ServiceMeshMetric) GetDestServiceName() string {
if m != nil {
return m.DestServiceName
}
return ""
}
func (m *ServiceMeshMetric) GetDestServiceId() int32 {
if m != nil {
return m.DestServiceId
}
return 0
}
func (m *ServiceMeshMetric) GetDestServiceInstance() string {
if m != nil {
return m.DestServiceInstance
}
return ""
}
func (m *ServiceMeshMetric) GetDestServiceInstanceId() int32 {
if m != nil {
return m.DestServiceInstanceId
}
return 0
}
func (m *ServiceMeshMetric) GetEndpoint() string {
if m != nil {
return m.Endpoint
}
return ""
}
func (m *ServiceMeshMetric) GetLatency() int32 {
if m != nil {
return m.Latency
}
return 0
}
func (m *ServiceMeshMetric) GetResponseCode() int32 {
if m != nil {
return m.ResponseCode
}
return 0
}
func (m *ServiceMeshMetric) GetStatus() bool {
if m != nil {
return m.Status
}
return false
}
func (m *ServiceMeshMetric) GetProtocol() Protocol {
if m != nil {
return m.Protocol
}
return Protocol_HTTP
}
func (m *ServiceMeshMetric) GetDetectPoint() common.DetectPoint {
if m != nil {
return m.DetectPoint
}
return common.DetectPoint_client
}
type MeshProbeDownstream struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MeshProbeDownstream) Reset() { *m = MeshProbeDownstream{} }
func (m *MeshProbeDownstream) String() string { return proto.CompactTextString(m) }
func (*MeshProbeDownstream) ProtoMessage() {}
func (*MeshProbeDownstream) Descriptor() ([]byte, []int) {
return fileDescriptor_ab52fdf17822efde, []int{1}
}
func (m *MeshProbeDownstream) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MeshProbeDownstream.Unmarshal(m, b)
}
func (m *MeshProbeDownstream) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MeshProbeDownstream.Marshal(b, m, deterministic)
}
func (m *MeshProbeDownstream) XXX_Merge(src proto.Message) {
xxx_messageInfo_MeshProbeDownstream.Merge(m, src)
}
func (m *MeshProbeDownstream) XXX_Size() int {
return xxx_messageInfo_MeshProbeDownstream.Size(m)
}
func (m *MeshProbeDownstream) XXX_DiscardUnknown() {
xxx_messageInfo_MeshProbeDownstream.DiscardUnknown(m)
}
var xxx_messageInfo_MeshProbeDownstream proto.InternalMessageInfo
func init() {
proto.RegisterEnum("Protocol", Protocol_name, Protocol_value)
proto.RegisterType((*ServiceMeshMetric)(nil), "ServiceMeshMetric")
proto.RegisterType((*MeshProbeDownstream)(nil), "MeshProbeDownstream")
}
func init() {
proto.RegisterFile("service-mesh-probe/service-mesh.proto", fileDescriptor_ab52fdf17822efde)
}
var fileDescriptor_ab52fdf17822efde = []byte{
// 463 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0x41, 0x6f, 0xda, 0x30,
0x14, 0xc7, 0x9b, 0xb5, 0x40, 0x78, 0xa5, 0x2d, 0x35, 0xeb, 0x66, 0xa1, 0x69, 0x8a, 0xd0, 0x2a,
0x45, 0xd3, 0x30, 0x53, 0x37, 0x69, 0x3b, 0xaf, 0x3d, 0x8c, 0x03, 0x53, 0x94, 0x72, 0xda, 0xcd,
0x38, 0x4f, 0x10, 0x91, 0xd8, 0x91, 0xed, 0x0e, 0xf5, 0x7b, 0xec, 0x03, 0x4f, 0x31, 0xa1, 0x0d,
0x25, 0xbb, 0x40, 0xde, 0xef, 0xf7, 0xf4, 0xb7, 0x9d, 0x3c, 0xc3, 0xb5, 0x41, 0xfd, 0x27, 0x15,
0x38, 0xce, 0xd1, 0xac, 0xc6, 0x85, 0x56, 0x0b, 0x9c, 0xd4, 0x11, 0x2b, 0xb4, 0xb2, 0x6a, 0x38,
0x10, 0x2a, 0xcf, 0x95, 0x9c, 0x6c, 0xff, 0xb6, 0x70, 0xf4, 0xb7, 0x05, 0x97, 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0xa1, 0xe7, 0x81, 0x17, 0xfa, 0x71, 0x55, 0x91, 0x6b, 0xf0, 0xdd,
0x20, 0x09, 0x95, 0xd1, 0x8b, 0xc0, 0x0b, 0xcf, 0x6f, 0xba, 0x2c, 0xaa, 0x40, 0xfc, 0xa4, 0x08,
0x83, 0xd3, 0x04, 0x2d, 0x0a, 0x1b, 0xb9, 0xbd, 0xf5, 0x5d, 0x67, 0x8f, 0xdd, 0x3d, 0xb3, 0xb8,
0xde, 0x30, 0xba, 0x82, 0x41, 0x39, 0x8e, 0x51, 0x39, 0xcb, 0x77, 0x6a, 0x23, 0x8d, 0xd5, 0xc8,
0xf3, 0x8f, 0xef, 0xc1, 0xdf, 0x85, 0x13, 0x1f, 0x4e, 0x7e, 0xce, 0xe7, 0x51, 0xff, 0xa8, 0x7c,
0x5a, 0xc6, 0xd1, 0x6d, 0xdf, 0xbb, 0xb9, 0x07, 0x7a, 0x30, 0xcc, 0x15, 0x20, 0xdf, 0xa0, 0x23,
0x54, 0x96, 0xa1, 0xb0, 0x84, 0xb0, 0x83, 0xae, 0xe1, 0x6b, 0xd6, 0xb0, 0xe0, 0xe8, 0x28, 0xf4,
0x7e, 0xcc, 0x60, 0xac, 0xf4, 0x92, 0xf1, 0x82, 0x8b, 0x15, 0x32, 0xb3, 0x7e, 0xdc, 0xf0, 0x6c,
0x9d, 0xca, 0x92, 0xe4, 0x4c, 0xa2, 0xdd, 0x28, 0xbd, 0x66, 0xd5, 0x7d, 0x2b, 0xaf, 0x5b, 0xe4,
0xfd, 0x1e, 0xf2, 0x25, 0x4a, 0x3b, 0xd9, 0xfe, 0x16, 0x8b, 0x49, 0xcd, 0x2e, 0xda, 0xee, 0xa5,
0x7c, 0xf9, 0x17, 0x00, 0x00, 0xff, 0xff, 0x27, 0x82, 0x90, 0x73, 0xb6, 0x03, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// ServiceMeshMetricServiceClient is the client API for ServiceMeshMetricService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ServiceMeshMetricServiceClient interface {
Collect(ctx context.Context, opts ...grpc.CallOption) (ServiceMeshMetricService_CollectClient, error)
}
type serviceMeshMetricServiceClient struct {
cc *grpc.ClientConn
}
func NewServiceMeshMetricServiceClient(cc *grpc.ClientConn) ServiceMeshMetricServiceClient {
return &serviceMeshMetricServiceClient{cc}
}
func (c *serviceMeshMetricServiceClient) Collect(ctx context.Context, opts ...grpc.CallOption) (ServiceMeshMetricService_CollectClient, error) {
stream, err := c.cc.NewStream(ctx, &_ServiceMeshMetricService_serviceDesc.Streams[0], "/ServiceMeshMetricService/collect", opts...)
if err != nil {
return nil, err
}
x := &serviceMeshMetricServiceCollectClient{stream}
return x, nil
}
type ServiceMeshMetricService_CollectClient interface {
Send(*ServiceMeshMetric) error
CloseAndRecv() (*MeshProbeDownstream, error)
grpc.ClientStream
}
type serviceMeshMetricServiceCollectClient struct {
grpc.ClientStream
}
func (x *serviceMeshMetricServiceCollectClient) Send(m *ServiceMeshMetric) error {
return x.ClientStream.SendMsg(m)
}
func (x *serviceMeshMetricServiceCollectClient) CloseAndRecv() (*MeshProbeDownstream, error) {
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
m := new(MeshProbeDownstream)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// ServiceMeshMetricServiceServer is the server API for ServiceMeshMetricService service.
type ServiceMeshMetricServiceServer interface {
Collect(ServiceMeshMetricService_CollectServer) error
}
// UnimplementedServiceMeshMetricServiceServer can be embedded to have forward compatible implementations.
type UnimplementedServiceMeshMetricServiceServer struct {
}
func (*UnimplementedServiceMeshMetricServiceServer) Collect(srv ServiceMeshMetricService_CollectServer) error {
return status.Errorf(codes.Unimplemented, "method Collect not implemented")
}
func RegisterServiceMeshMetricServiceServer(s *grpc.Server, srv ServiceMeshMetricServiceServer) {
s.RegisterService(&_ServiceMeshMetricService_serviceDesc, srv)
}
func _ServiceMeshMetricService_Collect_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(ServiceMeshMetricServiceServer).Collect(&serviceMeshMetricServiceCollectServer{stream})
}
type ServiceMeshMetricService_CollectServer interface {
SendAndClose(*MeshProbeDownstream) error
Recv() (*ServiceMeshMetric, error)
grpc.ServerStream
}
type serviceMeshMetricServiceCollectServer struct {
grpc.ServerStream
}
func (x *serviceMeshMetricServiceCollectServer) SendAndClose(m *MeshProbeDownstream) error {
return x.ServerStream.SendMsg(m)
}
func (x *serviceMeshMetricServiceCollectServer) Recv() (*ServiceMeshMetric, error) {
m := new(ServiceMeshMetric)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
var _ServiceMeshMetricService_serviceDesc = grpc.ServiceDesc{
ServiceName: "ServiceMeshMetricService",
HandlerType: (*ServiceMeshMetricServiceServer)(nil),
Methods: []grpc.MethodDesc{},
Streams: []grpc.StreamDesc{
{
StreamName: "collect",
Handler: _ServiceMeshMetricService_Collect_Handler,
ClientStreams: true,
},
},
Metadata: "service-mesh-probe/service-mesh.proto",
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册