1 Star 0 Fork 0

StudySpace/uess-protobuf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
uess-instance.pb.go 25.91 KB
一键复制 编辑 原始数据 按行查看 历史
木子金兑 提交于 2023-06-06 10:12 . feat: 实例列表查询接口
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.30.0
// protoc v4.23.1
// source: uess-instance.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 UESSInstanceStatus int32
const (
UESSInstanceStatus_UIS_Unknown UESSInstanceStatus = 0
UESSInstanceStatus_UIS_Running UESSInstanceStatus = 1
UESSInstanceStatus_UIS_Dead UESSInstanceStatus = 2
UESSInstanceStatus_UIS_Restart UESSInstanceStatus = 3
)
// Enum value maps for UESSInstanceStatus.
var (
UESSInstanceStatus_name = map[int32]string{
0: "UIS_Unknown",
1: "UIS_Running",
2: "UIS_Dead",
3: "UIS_Restart",
}
UESSInstanceStatus_value = map[string]int32{
"UIS_Unknown": 0,
"UIS_Running": 1,
"UIS_Dead": 2,
"UIS_Restart": 3,
}
)
func (x UESSInstanceStatus) Enum() *UESSInstanceStatus {
p := new(UESSInstanceStatus)
*p = x
return p
}
func (x UESSInstanceStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (UESSInstanceStatus) Descriptor() protoreflect.EnumDescriptor {
return file_uess_instance_proto_enumTypes[0].Descriptor()
}
func (UESSInstanceStatus) Type() protoreflect.EnumType {
return &file_uess_instance_proto_enumTypes[0]
}
func (x UESSInstanceStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use UESSInstanceStatus.Descriptor instead.
func (UESSInstanceStatus) EnumDescriptor() ([]byte, []int) {
return file_uess_instance_proto_rawDescGZIP(), []int{0}
}
// 创建实例 POST token_option /api/v1/instance/list
type UESSInstanceListRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Status UESSInstanceStatus `protobuf:"varint,1,opt,name=status,proto3,enum=pb.UESSInstanceStatus" json:"status,omitempty"`
HostIp string `protobuf:"bytes,2,opt,name=host_ip,json=hostIp,proto3" json:"host_ip,omitempty"` // 机器上的实例
}
func (x *UESSInstanceListRequest) Reset() {
*x = UESSInstanceListRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_uess_instance_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UESSInstanceListRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UESSInstanceListRequest) ProtoMessage() {}
func (x *UESSInstanceListRequest) ProtoReflect() protoreflect.Message {
mi := &file_uess_instance_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 UESSInstanceListRequest.ProtoReflect.Descriptor instead.
func (*UESSInstanceListRequest) Descriptor() ([]byte, []int) {
return file_uess_instance_proto_rawDescGZIP(), []int{0}
}
func (x *UESSInstanceListRequest) GetStatus() UESSInstanceStatus {
if x != nil {
return x.Status
}
return UESSInstanceStatus_UIS_Unknown
}
func (x *UESSInstanceListRequest) GetHostIp() string {
if x != nil {
return x.HostIp
}
return ""
}
type UESSInstanceListResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
Instances []*UESSInstanceListResponse_Instance `protobuf:"bytes,3,rep,name=instances,proto3" json:"instances,omitempty"`
}
func (x *UESSInstanceListResponse) Reset() {
*x = UESSInstanceListResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_uess_instance_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UESSInstanceListResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UESSInstanceListResponse) ProtoMessage() {}
func (x *UESSInstanceListResponse) ProtoReflect() protoreflect.Message {
mi := &file_uess_instance_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 UESSInstanceListResponse.ProtoReflect.Descriptor instead.
func (*UESSInstanceListResponse) Descriptor() ([]byte, []int) {
return file_uess_instance_proto_rawDescGZIP(), []int{1}
}
func (x *UESSInstanceListResponse) GetMsg() string {
if x != nil {
return x.Msg
}
return ""
}
func (x *UESSInstanceListResponse) GetCode() int32 {
if x != nil {
return x.Code
}
return 0
}
func (x *UESSInstanceListResponse) GetInstances() []*UESSInstanceListResponse_Instance {
if x != nil {
return x.Instances
}
return nil
}
// 创建实例 POST token_option /api/v1/instance/create
type UESSCreateInstanceRequest 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"` // 应用名称
}
func (x *UESSCreateInstanceRequest) Reset() {
*x = UESSCreateInstanceRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_uess_instance_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UESSCreateInstanceRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UESSCreateInstanceRequest) ProtoMessage() {}
func (x *UESSCreateInstanceRequest) ProtoReflect() protoreflect.Message {
mi := &file_uess_instance_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 UESSCreateInstanceRequest.ProtoReflect.Descriptor instead.
func (*UESSCreateInstanceRequest) Descriptor() ([]byte, []int) {
return file_uess_instance_proto_rawDescGZIP(), []int{2}
}
func (x *UESSCreateInstanceRequest) GetAppName() string {
if x != nil {
return x.AppName
}
return ""
}
type UESSCreateInstanceResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
InstanceId string `protobuf:"bytes,3,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` // 实例ID
WsUrl string `protobuf:"bytes,4,opt,name=ws_url,json=wsUrl,proto3" json:"ws_url,omitempty"`
}
func (x *UESSCreateInstanceResponse) Reset() {
*x = UESSCreateInstanceResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_uess_instance_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UESSCreateInstanceResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UESSCreateInstanceResponse) ProtoMessage() {}
func (x *UESSCreateInstanceResponse) ProtoReflect() protoreflect.Message {
mi := &file_uess_instance_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 UESSCreateInstanceResponse.ProtoReflect.Descriptor instead.
func (*UESSCreateInstanceResponse) Descriptor() ([]byte, []int) {
return file_uess_instance_proto_rawDescGZIP(), []int{3}
}
func (x *UESSCreateInstanceResponse) GetMsg() string {
if x != nil {
return x.Msg
}
return ""
}
func (x *UESSCreateInstanceResponse) GetCode() int32 {
if x != nil {
return x.Code
}
return 0
}
func (x *UESSCreateInstanceResponse) GetInstanceId() string {
if x != nil {
return x.InstanceId
}
return ""
}
func (x *UESSCreateInstanceResponse) GetWsUrl() string {
if x != nil {
return x.WsUrl
}
return ""
}
// 移除实例 POST token_option /api/v1/instance/remove
type UESSRemoveInstanceRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` // 实例ID
}
func (x *UESSRemoveInstanceRequest) Reset() {
*x = UESSRemoveInstanceRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_uess_instance_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UESSRemoveInstanceRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UESSRemoveInstanceRequest) ProtoMessage() {}
func (x *UESSRemoveInstanceRequest) ProtoReflect() protoreflect.Message {
mi := &file_uess_instance_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 UESSRemoveInstanceRequest.ProtoReflect.Descriptor instead.
func (*UESSRemoveInstanceRequest) Descriptor() ([]byte, []int) {
return file_uess_instance_proto_rawDescGZIP(), []int{4}
}
func (x *UESSRemoveInstanceRequest) GetInstanceId() string {
if x != nil {
return x.InstanceId
}
return ""
}
type UESSRemoveInstanceResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
}
func (x *UESSRemoveInstanceResponse) Reset() {
*x = UESSRemoveInstanceResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_uess_instance_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UESSRemoveInstanceResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UESSRemoveInstanceResponse) ProtoMessage() {}
func (x *UESSRemoveInstanceResponse) ProtoReflect() protoreflect.Message {
mi := &file_uess_instance_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 UESSRemoveInstanceResponse.ProtoReflect.Descriptor instead.
func (*UESSRemoveInstanceResponse) Descriptor() ([]byte, []int) {
return file_uess_instance_proto_rawDescGZIP(), []int{5}
}
func (x *UESSRemoveInstanceResponse) GetMsg() string {
if x != nil {
return x.Msg
}
return ""
}
func (x *UESSRemoveInstanceResponse) GetCode() int32 {
if x != nil {
return x.Code
}
return 0
}
type UESSInstanceListResponse_Instance struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
AppName string `protobuf:"bytes,2,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"`
StartTime string `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
SlsId string `protobuf:"bytes,4,opt,name=sls_id,json=slsId,proto3" json:"sls_id,omitempty"`
StreamerPort uint32 `protobuf:"varint,5,opt,name=streamer_port,json=streamerPort,proto3" json:"streamer_port,omitempty"`
PlayerPort uint32 `protobuf:"varint,6,opt,name=player_port,json=playerPort,proto3" json:"player_port,omitempty"`
SchedulerHostIp string `protobuf:"bytes,7,opt,name=scheduler_host_ip,json=schedulerHostIp,proto3" json:"scheduler_host_ip,omitempty"`
DeployHostIp string `protobuf:"bytes,8,opt,name=deploy_host_ip,json=deployHostIp,proto3" json:"deploy_host_ip,omitempty"`
StreamerPid uint32 `protobuf:"varint,9,opt,name=streamer_pid,json=streamerPid,proto3" json:"streamer_pid,omitempty"`
HeartTime string `protobuf:"bytes,10,opt,name=heart_time,json=heartTime,proto3" json:"heart_time,omitempty"`
Status UESSInstanceStatus `protobuf:"varint,11,opt,name=status,proto3,enum=pb.UESSInstanceStatus" json:"status,omitempty"`
}
func (x *UESSInstanceListResponse_Instance) Reset() {
*x = UESSInstanceListResponse_Instance{}
if protoimpl.UnsafeEnabled {
mi := &file_uess_instance_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UESSInstanceListResponse_Instance) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UESSInstanceListResponse_Instance) ProtoMessage() {}
func (x *UESSInstanceListResponse_Instance) ProtoReflect() protoreflect.Message {
mi := &file_uess_instance_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 UESSInstanceListResponse_Instance.ProtoReflect.Descriptor instead.
func (*UESSInstanceListResponse_Instance) Descriptor() ([]byte, []int) {
return file_uess_instance_proto_rawDescGZIP(), []int{1, 0}
}
func (x *UESSInstanceListResponse_Instance) GetInstanceId() string {
if x != nil {
return x.InstanceId
}
return ""
}
func (x *UESSInstanceListResponse_Instance) GetAppName() string {
if x != nil {
return x.AppName
}
return ""
}
func (x *UESSInstanceListResponse_Instance) GetStartTime() string {
if x != nil {
return x.StartTime
}
return ""
}
func (x *UESSInstanceListResponse_Instance) GetSlsId() string {
if x != nil {
return x.SlsId
}
return ""
}
func (x *UESSInstanceListResponse_Instance) GetStreamerPort() uint32 {
if x != nil {
return x.StreamerPort
}
return 0
}
func (x *UESSInstanceListResponse_Instance) GetPlayerPort() uint32 {
if x != nil {
return x.PlayerPort
}
return 0
}
func (x *UESSInstanceListResponse_Instance) GetSchedulerHostIp() string {
if x != nil {
return x.SchedulerHostIp
}
return ""
}
func (x *UESSInstanceListResponse_Instance) GetDeployHostIp() string {
if x != nil {
return x.DeployHostIp
}
return ""
}
func (x *UESSInstanceListResponse_Instance) GetStreamerPid() uint32 {
if x != nil {
return x.StreamerPid
}
return 0
}
func (x *UESSInstanceListResponse_Instance) GetHeartTime() string {
if x != nil {
return x.HeartTime
}
return ""
}
func (x *UESSInstanceListResponse_Instance) GetStatus() UESSInstanceStatus {
if x != nil {
return x.Status
}
return UESSInstanceStatus_UIS_Unknown
}
var File_uess_instance_proto protoreflect.FileDescriptor
var file_uess_instance_proto_rawDesc = []byte{
0x0a, 0x13, 0x75, 0x65, 0x73, 0x73, 0x2d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x62, 0x0a, 0x17, 0x55, 0x45, 0x53,
0x53, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x45, 0x53, 0x53, 0x49, 0x6e,
0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74,
0x61, 0x74, 0x75, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x70, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x6f, 0x73, 0x74, 0x49, 0x70, 0x22, 0x8e, 0x04,
0x0a, 0x18, 0x55, 0x45, 0x53, 0x53, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4c, 0x69,
0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73,
0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x12, 0x0a, 0x04,
0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65,
0x12, 0x43, 0x0a, 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x45, 0x53, 0x53, 0x49, 0x6e, 0x73,
0x74, 0x61, 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x09, 0x69, 0x6e, 0x73, 0x74,
0x61, 0x6e, 0x63, 0x65, 0x73, 0x1a, 0x86, 0x03, 0x0a, 0x08, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e,
0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
0x65, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x70, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d,
0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01,
0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x15, 0x0a,
0x06, 0x73, 0x6c, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73,
0x6c, 0x73, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x65, 0x72,
0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x73, 0x74, 0x72,
0x65, 0x61, 0x6d, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6c, 0x61,
0x79, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a,
0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x63,
0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x70, 0x18,
0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72,
0x48, 0x6f, 0x73, 0x74, 0x49, 0x70, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79,
0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x48, 0x6f, 0x73, 0x74, 0x49, 0x70, 0x12, 0x21, 0x0a, 0x0c,
0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x65, 0x72, 0x5f, 0x70, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01,
0x28, 0x0d, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x65, 0x72, 0x50, 0x69, 0x64, 0x12,
0x1d, 0x0a, 0x0a, 0x68, 0x65, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0a, 0x20,
0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 0x65, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2e,
0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16,
0x2e, 0x70, 0x62, 0x2e, 0x55, 0x45, 0x53, 0x53, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x36,
0x0a, 0x19, 0x55, 0x45, 0x53, 0x53, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74,
0x61, 0x6e, 0x63, 0x65, 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, 0x22, 0x7a, 0x0a, 0x1a, 0x55, 0x45, 0x53, 0x53, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02,
0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e,
0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x77,
0x73, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x77, 0x73, 0x55,
0x72, 0x6c, 0x22, 0x3c, 0x0a, 0x19, 0x55, 0x45, 0x53, 0x53, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65,
0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64,
0x22, 0x42, 0x0a, 0x1a, 0x55, 0x45, 0x53, 0x53, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x49, 0x6e,
0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10,
0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67,
0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04,
0x63, 0x6f, 0x64, 0x65, 0x2a, 0x55, 0x0a, 0x12, 0x55, 0x45, 0x53, 0x53, 0x49, 0x6e, 0x73, 0x74,
0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x49,
0x53, 0x5f, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x55,
0x49, 0x53, 0x5f, 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08,
0x55, 0x49, 0x53, 0x5f, 0x44, 0x65, 0x61, 0x64, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x49,
0x53, 0x5f, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x10, 0x03, 0x42, 0x06, 0x5a, 0x04, 0x2e,
0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_uess_instance_proto_rawDescOnce sync.Once
file_uess_instance_proto_rawDescData = file_uess_instance_proto_rawDesc
)
func file_uess_instance_proto_rawDescGZIP() []byte {
file_uess_instance_proto_rawDescOnce.Do(func() {
file_uess_instance_proto_rawDescData = protoimpl.X.CompressGZIP(file_uess_instance_proto_rawDescData)
})
return file_uess_instance_proto_rawDescData
}
var file_uess_instance_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_uess_instance_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_uess_instance_proto_goTypes = []interface{}{
(UESSInstanceStatus)(0), // 0: pb.UESSInstanceStatus
(*UESSInstanceListRequest)(nil), // 1: pb.UESSInstanceListRequest
(*UESSInstanceListResponse)(nil), // 2: pb.UESSInstanceListResponse
(*UESSCreateInstanceRequest)(nil), // 3: pb.UESSCreateInstanceRequest
(*UESSCreateInstanceResponse)(nil), // 4: pb.UESSCreateInstanceResponse
(*UESSRemoveInstanceRequest)(nil), // 5: pb.UESSRemoveInstanceRequest
(*UESSRemoveInstanceResponse)(nil), // 6: pb.UESSRemoveInstanceResponse
(*UESSInstanceListResponse_Instance)(nil), // 7: pb.UESSInstanceListResponse.Instance
}
var file_uess_instance_proto_depIdxs = []int32{
0, // 0: pb.UESSInstanceListRequest.status:type_name -> pb.UESSInstanceStatus
7, // 1: pb.UESSInstanceListResponse.instances:type_name -> pb.UESSInstanceListResponse.Instance
0, // 2: pb.UESSInstanceListResponse.Instance.status:type_name -> pb.UESSInstanceStatus
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_uess_instance_proto_init() }
func file_uess_instance_proto_init() {
if File_uess_instance_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_uess_instance_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UESSInstanceListRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_uess_instance_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UESSInstanceListResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_uess_instance_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UESSCreateInstanceRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_uess_instance_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UESSCreateInstanceResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_uess_instance_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UESSRemoveInstanceRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_uess_instance_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UESSRemoveInstanceResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_uess_instance_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UESSInstanceListResponse_Instance); 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_instance_proto_rawDesc,
NumEnums: 1,
NumMessages: 7,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_uess_instance_proto_goTypes,
DependencyIndexes: file_uess_instance_proto_depIdxs,
EnumInfos: file_uess_instance_proto_enumTypes,
MessageInfos: file_uess_instance_proto_msgTypes,
}.Build()
File_uess_instance_proto = out.File
file_uess_instance_proto_rawDesc = nil
file_uess_instance_proto_goTypes = nil
file_uess_instance_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.1.14

搜索帮助