1 Star 0 Fork 0

StudySpace/uess-protobuf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
uess-agent.pb.go 42.75 KB
一键复制 编辑 原始数据 按行查看 历史
木子金兑 提交于 2024-01-23 15:31 . feat: 增加心跳接口
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.30.0
// protoc v4.23.1
// source: uess-agent.proto
package pb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type UESSHeartbeatResponse_ProcInfo_ProcStatus int32
const (
UESSHeartbeatResponse_ProcInfo_Unknown UESSHeartbeatResponse_ProcInfo_ProcStatus = 0
UESSHeartbeatResponse_ProcInfo_Running UESSHeartbeatResponse_ProcInfo_ProcStatus = 1 // 正常
UESSHeartbeatResponse_ProcInfo_Dead UESSHeartbeatResponse_ProcInfo_ProcStatus = 2 // 没了
)
// Enum value maps for UESSHeartbeatResponse_ProcInfo_ProcStatus.
var (
UESSHeartbeatResponse_ProcInfo_ProcStatus_name = map[int32]string{
0: "Unknown",
1: "Running",
2: "Dead",
}
UESSHeartbeatResponse_ProcInfo_ProcStatus_value = map[string]int32{
"Unknown": 0,
"Running": 1,
"Dead": 2,
}
)
func (x UESSHeartbeatResponse_ProcInfo_ProcStatus) Enum() *UESSHeartbeatResponse_ProcInfo_ProcStatus {
p := new(UESSHeartbeatResponse_ProcInfo_ProcStatus)
*p = x
return p
}
func (x UESSHeartbeatResponse_ProcInfo_ProcStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (UESSHeartbeatResponse_ProcInfo_ProcStatus) Descriptor() protoreflect.EnumDescriptor {
return file_uess_agent_proto_enumTypes[0].Descriptor()
}
func (UESSHeartbeatResponse_ProcInfo_ProcStatus) Type() protoreflect.EnumType {
return &file_uess_agent_proto_enumTypes[0]
}
func (x UESSHeartbeatResponse_ProcInfo_ProcStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use UESSHeartbeatResponse_ProcInfo_ProcStatus.Descriptor instead.
func (UESSHeartbeatResponse_ProcInfo_ProcStatus) EnumDescriptor() ([]byte, []int) {
return file_uess_agent_proto_rawDescGZIP(), []int{3, 1, 0}
}
type UESSRpcPingRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
}
func (x *UESSRpcPingRequest) Reset() {
*x = UESSRpcPingRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_uess_agent_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UESSRpcPingRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UESSRpcPingRequest) ProtoMessage() {}
func (x *UESSRpcPingRequest) ProtoReflect() protoreflect.Message {
mi := &file_uess_agent_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UESSRpcPingRequest.ProtoReflect.Descriptor instead.
func (*UESSRpcPingRequest) Descriptor() ([]byte, []int) {
return file_uess_agent_proto_rawDescGZIP(), []int{0}
}
func (x *UESSRpcPingRequest) GetTimestamp() int64 {
if x != nil {
return x.Timestamp
}
return 0
}
func (x *UESSRpcPingRequest) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
type UESSRpcPingResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 主机
HostName string `protobuf:"bytes,1,opt,name=host_name,json=hostName,proto3" json:"host_name,omitempty"`
Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"`
PlatformVersion string `protobuf:"bytes,3,opt,name=platform_version,json=platformVersion,proto3" json:"platform_version,omitempty"`
KernelVersion string `protobuf:"bytes,4,opt,name=kernel_version,json=kernelVersion,proto3" json:"kernel_version,omitempty"`
KernelArch string `protobuf:"bytes,5,opt,name=kernel_arch,json=kernelArch,proto3" json:"kernel_arch,omitempty"`
CpuList []*UESSRpcPingResponse_CPUInfo `protobuf:"bytes,6,rep,name=cpu_list,json=cpuList,proto3" json:"cpu_list,omitempty"`
// Memory
TotalMemory uint64 `protobuf:"varint,7,opt,name=total_memory,json=totalMemory,proto3" json:"total_memory,omitempty"`
TotalSwapMemory uint64 `protobuf:"varint,8,opt,name=total_swap_memory,json=totalSwapMemory,proto3" json:"total_swap_memory,omitempty"`
GpuList []*UESSRpcPingResponse_GPUInfo `protobuf:"bytes,9,rep,name=gpu_list,json=gpuList,proto3" json:"gpu_list,omitempty"`
Code int32 `protobuf:"varint,10,opt,name=code,proto3" json:"code,omitempty"`
Msg string `protobuf:"bytes,11,opt,name=msg,proto3" json:"msg,omitempty"`
}
func (x *UESSRpcPingResponse) Reset() {
*x = UESSRpcPingResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_uess_agent_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UESSRpcPingResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UESSRpcPingResponse) ProtoMessage() {}
func (x *UESSRpcPingResponse) ProtoReflect() protoreflect.Message {
mi := &file_uess_agent_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UESSRpcPingResponse.ProtoReflect.Descriptor instead.
func (*UESSRpcPingResponse) Descriptor() ([]byte, []int) {
return file_uess_agent_proto_rawDescGZIP(), []int{1}
}
func (x *UESSRpcPingResponse) GetHostName() string {
if x != nil {
return x.HostName
}
return ""
}
func (x *UESSRpcPingResponse) GetPlatform() string {
if x != nil {
return x.Platform
}
return ""
}
func (x *UESSRpcPingResponse) GetPlatformVersion() string {
if x != nil {
return x.PlatformVersion
}
return ""
}
func (x *UESSRpcPingResponse) GetKernelVersion() string {
if x != nil {
return x.KernelVersion
}
return ""
}
func (x *UESSRpcPingResponse) GetKernelArch() string {
if x != nil {
return x.KernelArch
}
return ""
}
func (x *UESSRpcPingResponse) GetCpuList() []*UESSRpcPingResponse_CPUInfo {
if x != nil {
return x.CpuList
}
return nil
}
func (x *UESSRpcPingResponse) GetTotalMemory() uint64 {
if x != nil {
return x.TotalMemory
}
return 0
}
func (x *UESSRpcPingResponse) GetTotalSwapMemory() uint64 {
if x != nil {
return x.TotalSwapMemory
}
return 0
}
func (x *UESSRpcPingResponse) GetGpuList() []*UESSRpcPingResponse_GPUInfo {
if x != nil {
return x.GpuList
}
return nil
}
func (x *UESSRpcPingResponse) GetCode() int32 {
if x != nil {
return x.Code
}
return 0
}
func (x *UESSRpcPingResponse) GetMsg() string {
if x != nil {
return x.Msg
}
return ""
}
type UESSHeartbeatRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
}
func (x *UESSHeartbeatRequest) Reset() {
*x = UESSHeartbeatRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_uess_agent_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UESSHeartbeatRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UESSHeartbeatRequest) ProtoMessage() {}
func (x *UESSHeartbeatRequest) ProtoReflect() protoreflect.Message {
mi := &file_uess_agent_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UESSHeartbeatRequest.ProtoReflect.Descriptor instead.
func (*UESSHeartbeatRequest) Descriptor() ([]byte, []int) {
return file_uess_agent_proto_rawDescGZIP(), []int{2}
}
func (x *UESSHeartbeatRequest) GetTimestamp() int64 {
if x != nil {
return x.Timestamp
}
return 0
}
func (x *UESSHeartbeatRequest) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
type UESSHeartbeatResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
ResourceInfo *UESSHeartbeatResponse_ResourceInfo `protobuf:"bytes,3,opt,name=resource_info,json=resourceInfo,proto3" json:"resource_info,omitempty"`
ProcInfos []*UESSHeartbeatResponse_ProcInfo `protobuf:"bytes,4,rep,name=proc_infos,json=procInfos,proto3" json:"proc_infos,omitempty"`
HostIp string `protobuf:"bytes,5,opt,name=host_ip,json=hostIp,proto3" json:"host_ip,omitempty"`
}
func (x *UESSHeartbeatResponse) Reset() {
*x = UESSHeartbeatResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_uess_agent_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UESSHeartbeatResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UESSHeartbeatResponse) ProtoMessage() {}
func (x *UESSHeartbeatResponse) ProtoReflect() protoreflect.Message {
mi := &file_uess_agent_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UESSHeartbeatResponse.ProtoReflect.Descriptor instead.
func (*UESSHeartbeatResponse) Descriptor() ([]byte, []int) {
return file_uess_agent_proto_rawDescGZIP(), []int{3}
}
func (x *UESSHeartbeatResponse) GetCode() int32 {
if x != nil {
return x.Code
}
return 0
}
func (x *UESSHeartbeatResponse) GetMsg() string {
if x != nil {
return x.Msg
}
return ""
}
func (x *UESSHeartbeatResponse) GetResourceInfo() *UESSHeartbeatResponse_ResourceInfo {
if x != nil {
return x.ResourceInfo
}
return nil
}
func (x *UESSHeartbeatResponse) GetProcInfos() []*UESSHeartbeatResponse_ProcInfo {
if x != nil {
return x.ProcInfos
}
return nil
}
func (x *UESSHeartbeatResponse) GetHostIp() string {
if x != nil {
return x.HostIp
}
return ""
}
// 启动应用
type UESSStartAppRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AppName string `protobuf:"bytes,1,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"`
SlsHost string `protobuf:"bytes,2,opt,name=sls_host,json=slsHost,proto3" json:"sls_host,omitempty"`
Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
UssId string `protobuf:"bytes,4,opt,name=uss_id,json=ussId,proto3" json:"uss_id,omitempty"`
}
func (x *UESSStartAppRequest) Reset() {
*x = UESSStartAppRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_uess_agent_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UESSStartAppRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UESSStartAppRequest) ProtoMessage() {}
func (x *UESSStartAppRequest) ProtoReflect() protoreflect.Message {
mi := &file_uess_agent_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UESSStartAppRequest.ProtoReflect.Descriptor instead.
func (*UESSStartAppRequest) Descriptor() ([]byte, []int) {
return file_uess_agent_proto_rawDescGZIP(), []int{4}
}
func (x *UESSStartAppRequest) GetAppName() string {
if x != nil {
return x.AppName
}
return ""
}
func (x *UESSStartAppRequest) GetSlsHost() string {
if x != nil {
return x.SlsHost
}
return ""
}
func (x *UESSStartAppRequest) GetPort() uint32 {
if x != nil {
return x.Port
}
return 0
}
func (x *UESSStartAppRequest) GetUssId() string {
if x != nil {
return x.UssId
}
return ""
}
type UESSStartAppResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
Pid uint32 `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty"`
}
func (x *UESSStartAppResponse) Reset() {
*x = UESSStartAppResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_uess_agent_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UESSStartAppResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UESSStartAppResponse) ProtoMessage() {}
func (x *UESSStartAppResponse) ProtoReflect() protoreflect.Message {
mi := &file_uess_agent_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UESSStartAppResponse.ProtoReflect.Descriptor instead.
func (*UESSStartAppResponse) Descriptor() ([]byte, []int) {
return file_uess_agent_proto_rawDescGZIP(), []int{5}
}
func (x *UESSStartAppResponse) GetCode() int32 {
if x != nil {
return x.Code
}
return 0
}
func (x *UESSStartAppResponse) GetMsg() string {
if x != nil {
return x.Msg
}
return ""
}
func (x *UESSStartAppResponse) GetPid() uint32 {
if x != nil {
return x.Pid
}
return 0
}
// 停止应用
type UESSStopAppRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"`
}
func (x *UESSStopAppRequest) Reset() {
*x = UESSStopAppRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_uess_agent_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UESSStopAppRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UESSStopAppRequest) ProtoMessage() {}
func (x *UESSStopAppRequest) ProtoReflect() protoreflect.Message {
mi := &file_uess_agent_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UESSStopAppRequest.ProtoReflect.Descriptor instead.
func (*UESSStopAppRequest) Descriptor() ([]byte, []int) {
return file_uess_agent_proto_rawDescGZIP(), []int{6}
}
func (x *UESSStopAppRequest) GetPid() uint32 {
if x != nil {
return x.Pid
}
return 0
}
type UESSStopAppResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
}
func (x *UESSStopAppResponse) Reset() {
*x = UESSStopAppResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_uess_agent_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UESSStopAppResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UESSStopAppResponse) ProtoMessage() {}
func (x *UESSStopAppResponse) ProtoReflect() protoreflect.Message {
mi := &file_uess_agent_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UESSStopAppResponse.ProtoReflect.Descriptor instead.
func (*UESSStopAppResponse) Descriptor() ([]byte, []int) {
return file_uess_agent_proto_rawDescGZIP(), []int{7}
}
func (x *UESSStopAppResponse) GetCode() int32 {
if x != nil {
return x.Code
}
return 0
}
func (x *UESSStopAppResponse) GetMsg() string {
if x != nil {
return x.Msg
}
return ""
}
// CPU
type UESSRpcPingResponse_CPUInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
CpuModelName string `protobuf:"bytes,1,opt,name=cpu_model_name,json=cpuModelName,proto3" json:"cpu_model_name,omitempty"`
CpuCoreNumber int32 `protobuf:"varint,2,opt,name=cpu_core_number,json=cpuCoreNumber,proto3" json:"cpu_core_number,omitempty"`
CpuClockSpeed float32 `protobuf:"fixed32,3,opt,name=cpu_clock_speed,json=cpuClockSpeed,proto3" json:"cpu_clock_speed,omitempty"`
}
func (x *UESSRpcPingResponse_CPUInfo) Reset() {
*x = UESSRpcPingResponse_CPUInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_uess_agent_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UESSRpcPingResponse_CPUInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UESSRpcPingResponse_CPUInfo) ProtoMessage() {}
func (x *UESSRpcPingResponse_CPUInfo) ProtoReflect() protoreflect.Message {
mi := &file_uess_agent_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UESSRpcPingResponse_CPUInfo.ProtoReflect.Descriptor instead.
func (*UESSRpcPingResponse_CPUInfo) Descriptor() ([]byte, []int) {
return file_uess_agent_proto_rawDescGZIP(), []int{1, 0}
}
func (x *UESSRpcPingResponse_CPUInfo) GetCpuModelName() string {
if x != nil {
return x.CpuModelName
}
return ""
}
func (x *UESSRpcPingResponse_CPUInfo) GetCpuCoreNumber() int32 {
if x != nil {
return x.CpuCoreNumber
}
return 0
}
func (x *UESSRpcPingResponse_CPUInfo) GetCpuClockSpeed() float32 {
if x != nil {
return x.CpuClockSpeed
}
return 0
}
// GPU
type UESSRpcPingResponse_GPUInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
GpuModelName string `protobuf:"bytes,1,opt,name=gpu_model_name,json=gpuModelName,proto3" json:"gpu_model_name,omitempty"`
GpuCoreNumber int32 `protobuf:"varint,2,opt,name=gpu_core_number,json=gpuCoreNumber,proto3" json:"gpu_core_number,omitempty"`
GpuClockSpeed float32 `protobuf:"fixed32,3,opt,name=gpu_clock_speed,json=gpuClockSpeed,proto3" json:"gpu_clock_speed,omitempty"`
GpuTotalMemory uint64 `protobuf:"varint,4,opt,name=gpu_total_memory,json=gpuTotalMemory,proto3" json:"gpu_total_memory,omitempty"`
}
func (x *UESSRpcPingResponse_GPUInfo) Reset() {
*x = UESSRpcPingResponse_GPUInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_uess_agent_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UESSRpcPingResponse_GPUInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UESSRpcPingResponse_GPUInfo) ProtoMessage() {}
func (x *UESSRpcPingResponse_GPUInfo) ProtoReflect() protoreflect.Message {
mi := &file_uess_agent_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UESSRpcPingResponse_GPUInfo.ProtoReflect.Descriptor instead.
func (*UESSRpcPingResponse_GPUInfo) Descriptor() ([]byte, []int) {
return file_uess_agent_proto_rawDescGZIP(), []int{1, 1}
}
func (x *UESSRpcPingResponse_GPUInfo) GetGpuModelName() string {
if x != nil {
return x.GpuModelName
}
return ""
}
func (x *UESSRpcPingResponse_GPUInfo) GetGpuCoreNumber() int32 {
if x != nil {
return x.GpuCoreNumber
}
return 0
}
func (x *UESSRpcPingResponse_GPUInfo) GetGpuClockSpeed() float32 {
if x != nil {
return x.GpuClockSpeed
}
return 0
}
func (x *UESSRpcPingResponse_GPUInfo) GetGpuTotalMemory() uint64 {
if x != nil {
return x.GpuTotalMemory
}
return 0
}
// 资源详情
type UESSHeartbeatResponse_ResourceInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
CpuPercent float32 `protobuf:"fixed32,1,opt,name=cpu_percent,json=cpuPercent,proto3" json:"cpu_percent,omitempty"`
FreeMemory float32 `protobuf:"fixed32,2,opt,name=free_memory,json=freeMemory,proto3" json:"free_memory,omitempty"`
}
func (x *UESSHeartbeatResponse_ResourceInfo) Reset() {
*x = UESSHeartbeatResponse_ResourceInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_uess_agent_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UESSHeartbeatResponse_ResourceInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UESSHeartbeatResponse_ResourceInfo) ProtoMessage() {}
func (x *UESSHeartbeatResponse_ResourceInfo) ProtoReflect() protoreflect.Message {
mi := &file_uess_agent_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UESSHeartbeatResponse_ResourceInfo.ProtoReflect.Descriptor instead.
func (*UESSHeartbeatResponse_ResourceInfo) Descriptor() ([]byte, []int) {
return file_uess_agent_proto_rawDescGZIP(), []int{3, 0}
}
func (x *UESSHeartbeatResponse_ResourceInfo) GetCpuPercent() float32 {
if x != nil {
return x.CpuPercent
}
return 0
}
func (x *UESSHeartbeatResponse_ResourceInfo) GetFreeMemory() float32 {
if x != nil {
return x.FreeMemory
}
return 0
}
// 应用详情
type UESSHeartbeatResponse_ProcInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UssId string `protobuf:"bytes,1,opt,name=uss_id,json=ussId,proto3" json:"uss_id,omitempty"`
Status UESSHeartbeatResponse_ProcInfo_ProcStatus `protobuf:"varint,2,opt,name=status,proto3,enum=pb.UESSHeartbeatResponse_ProcInfo_ProcStatus" json:"status,omitempty"`
Pid uint32 `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty"`
}
func (x *UESSHeartbeatResponse_ProcInfo) Reset() {
*x = UESSHeartbeatResponse_ProcInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_uess_agent_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UESSHeartbeatResponse_ProcInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UESSHeartbeatResponse_ProcInfo) ProtoMessage() {}
func (x *UESSHeartbeatResponse_ProcInfo) ProtoReflect() protoreflect.Message {
mi := &file_uess_agent_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UESSHeartbeatResponse_ProcInfo.ProtoReflect.Descriptor instead.
func (*UESSHeartbeatResponse_ProcInfo) Descriptor() ([]byte, []int) {
return file_uess_agent_proto_rawDescGZIP(), []int{3, 1}
}
func (x *UESSHeartbeatResponse_ProcInfo) GetUssId() string {
if x != nil {
return x.UssId
}
return ""
}
func (x *UESSHeartbeatResponse_ProcInfo) GetStatus() UESSHeartbeatResponse_ProcInfo_ProcStatus {
if x != nil {
return x.Status
}
return UESSHeartbeatResponse_ProcInfo_Unknown
}
func (x *UESSHeartbeatResponse_ProcInfo) GetPid() uint32 {
if x != nil {
return x.Pid
}
return 0
}
var File_uess_agent_proto protoreflect.FileDescriptor
var file_uess_agent_proto_rawDesc = []byte{
0x0a, 0x10, 0x75, 0x65, 0x73, 0x73, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x48, 0x0a, 0x12, 0x55, 0x45, 0x53, 0x53, 0x52, 0x70,
0x63, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09,
0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f,
0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
0x22, 0xdb, 0x05, 0x0a, 0x13, 0x55, 0x45, 0x53, 0x53, 0x52, 0x70, 0x63, 0x50, 0x69, 0x6e, 0x67,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x68, 0x6f, 0x73, 0x74,
0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73,
0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
0x6d, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5f, 0x76, 0x65,
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x6c, 0x61,
0x74, 0x66, 0x6f, 0x72, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e,
0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73,
0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x5f, 0x61, 0x72,
0x63, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c,
0x41, 0x72, 0x63, 0x68, 0x12, 0x3a, 0x0a, 0x08, 0x63, 0x70, 0x75, 0x5f, 0x6c, 0x69, 0x73, 0x74,
0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x45, 0x53, 0x53,
0x52, 0x70, 0x63, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e,
0x43, 0x50, 0x55, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x63, 0x70, 0x75, 0x4c, 0x69, 0x73, 0x74,
0x12, 0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79,
0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x65, 0x6d,
0x6f, 0x72, 0x79, 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x73, 0x77, 0x61,
0x70, 0x5f, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f,
0x74, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x77, 0x61, 0x70, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12,
0x3a, 0x0a, 0x08, 0x67, 0x70, 0x75, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x09, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x45, 0x53, 0x53, 0x52, 0x70, 0x63, 0x50, 0x69,
0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x47, 0x50, 0x55, 0x49, 0x6e,
0x66, 0x6f, 0x52, 0x07, 0x67, 0x70, 0x75, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63,
0x6f, 0x64, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12,
0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73,
0x67, 0x1a, 0x7f, 0x0a, 0x07, 0x43, 0x50, 0x55, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x24, 0x0a, 0x0e,
0x63, 0x70, 0x75, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x70, 0x75, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x4e, 0x61,
0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x63, 0x70, 0x75, 0x5f, 0x63, 0x6f, 0x72, 0x65, 0x5f, 0x6e,
0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x63, 0x70, 0x75,
0x43, 0x6f, 0x72, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x26, 0x0a, 0x0f, 0x63, 0x70,
0x75, 0x5f, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x73, 0x70, 0x65, 0x65, 0x64, 0x18, 0x03, 0x20,
0x01, 0x28, 0x02, 0x52, 0x0d, 0x63, 0x70, 0x75, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x70, 0x65,
0x65, 0x64, 0x1a, 0xa9, 0x01, 0x0a, 0x07, 0x47, 0x50, 0x55, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x24,
0x0a, 0x0e, 0x67, 0x70, 0x75, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x67, 0x70, 0x75, 0x4d, 0x6f, 0x64, 0x65, 0x6c,
0x4e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x67, 0x70, 0x75, 0x5f, 0x63, 0x6f, 0x72, 0x65,
0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x67,
0x70, 0x75, 0x43, 0x6f, 0x72, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x26, 0x0a, 0x0f,
0x67, 0x70, 0x75, 0x5f, 0x63, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x73, 0x70, 0x65, 0x65, 0x64, 0x18,
0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0d, 0x67, 0x70, 0x75, 0x43, 0x6c, 0x6f, 0x63, 0x6b, 0x53,
0x70, 0x65, 0x65, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x67, 0x70, 0x75, 0x5f, 0x74, 0x6f, 0x74, 0x61,
0x6c, 0x5f, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e,
0x67, 0x70, 0x75, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x22, 0x4a,
0x0a, 0x14, 0x55, 0x45, 0x53, 0x53, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73,
0x74, 0x61, 0x6d, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xe7, 0x03, 0x0a, 0x15, 0x55,
0x45, 0x53, 0x53, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01,
0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x4b, 0x0a, 0x0d, 0x72, 0x65,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x45, 0x53, 0x53, 0x48, 0x65, 0x61, 0x72, 0x74,
0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x73,
0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x41, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x5f,
0x69, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x62,
0x2e, 0x55, 0x45, 0x53, 0x53, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x52,
0x09, 0x70, 0x72, 0x6f, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x68, 0x6f,
0x73, 0x74, 0x5f, 0x69, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x6f, 0x73,
0x74, 0x49, 0x70, 0x1a, 0x50, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49,
0x6e, 0x66, 0x6f, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x70, 0x75, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65,
0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0a, 0x63, 0x70, 0x75, 0x50, 0x65, 0x72,
0x63, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x72, 0x65, 0x65, 0x5f, 0x6d, 0x65, 0x6d,
0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0a, 0x66, 0x72, 0x65, 0x65, 0x4d,
0x65, 0x6d, 0x6f, 0x72, 0x79, 0x1a, 0xac, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x63, 0x49, 0x6e,
0x66, 0x6f, 0x12, 0x15, 0x0a, 0x06, 0x75, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x05, 0x75, 0x73, 0x73, 0x49, 0x64, 0x12, 0x45, 0x0a, 0x06, 0x73, 0x74, 0x61,
0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x55,
0x45, 0x53, 0x53, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x50, 0x72,
0x6f, 0x63, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x70,
0x69, 0x64, 0x22, 0x30, 0x0a, 0x0a, 0x50, 0x72, 0x6f, 0x63, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
0x12, 0x0b, 0x0a, 0x07, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x0b, 0x0a,
0x07, 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x65,
0x61, 0x64, 0x10, 0x02, 0x22, 0x76, 0x0a, 0x13, 0x55, 0x45, 0x53, 0x53, 0x53, 0x74, 0x61, 0x72,
0x74, 0x41, 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x61,
0x70, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61,
0x70, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x6c, 0x73, 0x5f, 0x68, 0x6f,
0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x6c, 0x73, 0x48, 0x6f, 0x73,
0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52,
0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x75, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18,
0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x75, 0x73, 0x73, 0x49, 0x64, 0x22, 0x4e, 0x0a, 0x14,
0x55, 0x45, 0x53, 0x53, 0x53, 0x74, 0x61, 0x72, 0x74, 0x41, 0x70, 0x70, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01,
0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69,
0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x70, 0x69, 0x64, 0x22, 0x26, 0x0a, 0x12,
0x55, 0x45, 0x53, 0x53, 0x53, 0x74, 0x6f, 0x70, 0x41, 0x70, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52,
0x03, 0x70, 0x69, 0x64, 0x22, 0x3b, 0x0a, 0x13, 0x55, 0x45, 0x53, 0x53, 0x53, 0x74, 0x6f, 0x70,
0x41, 0x70, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63,
0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12,
0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73,
0x67, 0x32, 0x8c, 0x02, 0x0a, 0x0e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x70, 0x63, 0x53, 0x65,
0x72, 0x76, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x16, 0x2e, 0x70,
0x62, 0x2e, 0x55, 0x45, 0x53, 0x53, 0x52, 0x70, 0x63, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x45, 0x53, 0x53, 0x52, 0x70,
0x63, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12,
0x40, 0x0a, 0x09, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x12, 0x16, 0x2e, 0x70,
0x62, 0x2e, 0x55, 0x45, 0x53, 0x53, 0x52, 0x70, 0x63, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x45, 0x53, 0x53, 0x52, 0x70,
0x63, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30,
0x01, 0x12, 0x3f, 0x0a, 0x08, 0x53, 0x74, 0x61, 0x72, 0x74, 0x41, 0x70, 0x70, 0x12, 0x17, 0x2e,
0x70, 0x62, 0x2e, 0x55, 0x45, 0x53, 0x53, 0x53, 0x74, 0x61, 0x72, 0x74, 0x41, 0x70, 0x70, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x45, 0x53, 0x53,
0x53, 0x74, 0x61, 0x72, 0x74, 0x41, 0x70, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x22, 0x00, 0x12, 0x3c, 0x0a, 0x07, 0x53, 0x74, 0x6f, 0x70, 0x41, 0x70, 0x70, 0x12, 0x16, 0x2e,
0x70, 0x62, 0x2e, 0x55, 0x45, 0x53, 0x53, 0x53, 0x74, 0x6f, 0x70, 0x41, 0x70, 0x70, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x45, 0x53, 0x53, 0x53,
0x74, 0x6f, 0x70, 0x41, 0x70, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_uess_agent_proto_rawDescOnce sync.Once
file_uess_agent_proto_rawDescData = file_uess_agent_proto_rawDesc
)
func file_uess_agent_proto_rawDescGZIP() []byte {
file_uess_agent_proto_rawDescOnce.Do(func() {
file_uess_agent_proto_rawDescData = protoimpl.X.CompressGZIP(file_uess_agent_proto_rawDescData)
})
return file_uess_agent_proto_rawDescData
}
var file_uess_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_uess_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_uess_agent_proto_goTypes = []interface{}{
(UESSHeartbeatResponse_ProcInfo_ProcStatus)(0), // 0: pb.UESSHeartbeatResponse.ProcInfo.ProcStatus
(*UESSRpcPingRequest)(nil), // 1: pb.UESSRpcPingRequest
(*UESSRpcPingResponse)(nil), // 2: pb.UESSRpcPingResponse
(*UESSHeartbeatRequest)(nil), // 3: pb.UESSHeartbeatRequest
(*UESSHeartbeatResponse)(nil), // 4: pb.UESSHeartbeatResponse
(*UESSStartAppRequest)(nil), // 5: pb.UESSStartAppRequest
(*UESSStartAppResponse)(nil), // 6: pb.UESSStartAppResponse
(*UESSStopAppRequest)(nil), // 7: pb.UESSStopAppRequest
(*UESSStopAppResponse)(nil), // 8: pb.UESSStopAppResponse
(*UESSRpcPingResponse_CPUInfo)(nil), // 9: pb.UESSRpcPingResponse.CPUInfo
(*UESSRpcPingResponse_GPUInfo)(nil), // 10: pb.UESSRpcPingResponse.GPUInfo
(*UESSHeartbeatResponse_ResourceInfo)(nil), // 11: pb.UESSHeartbeatResponse.ResourceInfo
(*UESSHeartbeatResponse_ProcInfo)(nil), // 12: pb.UESSHeartbeatResponse.ProcInfo
}
var file_uess_agent_proto_depIdxs = []int32{
9, // 0: pb.UESSRpcPingResponse.cpu_list:type_name -> pb.UESSRpcPingResponse.CPUInfo
10, // 1: pb.UESSRpcPingResponse.gpu_list:type_name -> pb.UESSRpcPingResponse.GPUInfo
11, // 2: pb.UESSHeartbeatResponse.resource_info:type_name -> pb.UESSHeartbeatResponse.ResourceInfo
12, // 3: pb.UESSHeartbeatResponse.proc_infos:type_name -> pb.UESSHeartbeatResponse.ProcInfo
0, // 4: pb.UESSHeartbeatResponse.ProcInfo.status:type_name -> pb.UESSHeartbeatResponse.ProcInfo.ProcStatus
1, // 5: pb.AgentRpcServer.Ping:input_type -> pb.UESSRpcPingRequest
1, // 6: pb.AgentRpcServer.Heartbeat:input_type -> pb.UESSRpcPingRequest
5, // 7: pb.AgentRpcServer.StartApp:input_type -> pb.UESSStartAppRequest
7, // 8: pb.AgentRpcServer.StopApp:input_type -> pb.UESSStopAppRequest
2, // 9: pb.AgentRpcServer.Ping:output_type -> pb.UESSRpcPingResponse
2, // 10: pb.AgentRpcServer.Heartbeat:output_type -> pb.UESSRpcPingResponse
6, // 11: pb.AgentRpcServer.StartApp:output_type -> pb.UESSStartAppResponse
8, // 12: pb.AgentRpcServer.StopApp:output_type -> pb.UESSStopAppResponse
9, // [9:13] is the sub-list for method output_type
5, // [5:9] is the sub-list for method input_type
5, // [5:5] is the sub-list for extension type_name
5, // [5:5] is the sub-list for extension extendee
0, // [0:5] is the sub-list for field type_name
}
func init() { file_uess_agent_proto_init() }
func file_uess_agent_proto_init() {
if File_uess_agent_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_uess_agent_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UESSRpcPingRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_uess_agent_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UESSRpcPingResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_uess_agent_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UESSHeartbeatRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_uess_agent_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UESSHeartbeatResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_uess_agent_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UESSStartAppRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_uess_agent_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UESSStartAppResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_uess_agent_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UESSStopAppRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_uess_agent_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UESSStopAppResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_uess_agent_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UESSRpcPingResponse_CPUInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_uess_agent_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UESSRpcPingResponse_GPUInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_uess_agent_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UESSHeartbeatResponse_ResourceInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_uess_agent_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UESSHeartbeatResponse_ProcInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_uess_agent_proto_rawDesc,
NumEnums: 1,
NumMessages: 12,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_uess_agent_proto_goTypes,
DependencyIndexes: file_uess_agent_proto_depIdxs,
EnumInfos: file_uess_agent_proto_enumTypes,
MessageInfos: file_uess_agent_proto_msgTypes,
}.Build()
File_uess_agent_proto = out.File
file_uess_agent_proto_rawDesc = nil
file_uess_agent_proto_goTypes = nil
file_uess_agent_proto_depIdxs = nil
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/lrayt-study-space/uess-protobuf.git
git@gitee.com:lrayt-study-space/uess-protobuf.git
lrayt-study-space
uess-protobuf
uess-protobuf
v0.2.0

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385