1 Star 0 Fork 0

lin2631 / sc-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
simulator_service.pb.go 30.20 KB
一键复制 编辑 原始数据 按行查看 历史
lin2631 提交于 2022-10-31 16:32 . work on go-py communication
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc v3.19.4
// source: simulator_service.proto
package grpc_server
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 Empty struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NoUse int32 `protobuf:"varint,10,opt,name=NoUse,proto3" json:"NoUse,omitempty"`
}
func (x *Empty) Reset() {
*x = Empty{}
if protoimpl.UnsafeEnabled {
mi := &file_simulator_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Empty) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Empty) ProtoMessage() {}
func (x *Empty) ProtoReflect() protoreflect.Message {
mi := &file_simulator_service_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 Empty.ProtoReflect.Descriptor instead.
func (*Empty) Descriptor() ([]byte, []int) {
return file_simulator_service_proto_rawDescGZIP(), []int{0}
}
func (x *Empty) GetNoUse() int32 {
if x != nil {
return x.NoUse
}
return 0
}
type RequestState struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
IfError bool `protobuf:"varint,10,opt,name=IfError,proto3" json:"IfError,omitempty"`
}
func (x *RequestState) Reset() {
*x = RequestState{}
if protoimpl.UnsafeEnabled {
mi := &file_simulator_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RequestState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RequestState) ProtoMessage() {}
func (x *RequestState) ProtoReflect() protoreflect.Message {
mi := &file_simulator_service_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 RequestState.ProtoReflect.Descriptor instead.
func (*RequestState) Descriptor() ([]byte, []int) {
return file_simulator_service_proto_rawDescGZIP(), []int{1}
}
func (x *RequestState) GetIfError() bool {
if x != nil {
return x.IfError
}
return false
}
type InitRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
BeginHour int32 `protobuf:"varint,10,opt,name=BeginHour,proto3" json:"BeginHour,omitempty"`
FinishHour int32 `protobuf:"varint,20,opt,name=FinishHour,proto3" json:"FinishHour,omitempty"`
}
func (x *InitRequest) Reset() {
*x = InitRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_simulator_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *InitRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InitRequest) ProtoMessage() {}
func (x *InitRequest) ProtoReflect() protoreflect.Message {
mi := &file_simulator_service_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 InitRequest.ProtoReflect.Descriptor instead.
func (*InitRequest) Descriptor() ([]byte, []int) {
return file_simulator_service_proto_rawDescGZIP(), []int{2}
}
func (x *InitRequest) GetBeginHour() int32 {
if x != nil {
return x.BeginHour
}
return 0
}
func (x *InitRequest) GetFinishHour() int32 {
if x != nil {
return x.FinishHour
}
return 0
}
type EndTime struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Time int64 `protobuf:"varint,10,opt,name=Time,proto3" json:"Time,omitempty"`
}
func (x *EndTime) Reset() {
*x = EndTime{}
if protoimpl.UnsafeEnabled {
mi := &file_simulator_service_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EndTime) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EndTime) ProtoMessage() {}
func (x *EndTime) ProtoReflect() protoreflect.Message {
mi := &file_simulator_service_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 EndTime.ProtoReflect.Descriptor instead.
func (*EndTime) Descriptor() ([]byte, []int) {
return file_simulator_service_proto_rawDescGZIP(), []int{3}
}
func (x *EndTime) GetTime() int64 {
if x != nil {
return x.Time
}
return 0
}
type TimeState struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
IfError bool `protobuf:"varint,10,opt,name=IfError,proto3" json:"IfError,omitempty"`
Time int64 `protobuf:"varint,20,opt,name=Time,proto3" json:"Time,omitempty"`
}
func (x *TimeState) Reset() {
*x = TimeState{}
if protoimpl.UnsafeEnabled {
mi := &file_simulator_service_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TimeState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TimeState) ProtoMessage() {}
func (x *TimeState) ProtoReflect() protoreflect.Message {
mi := &file_simulator_service_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 TimeState.ProtoReflect.Descriptor instead.
func (*TimeState) Descriptor() ([]byte, []int) {
return file_simulator_service_proto_rawDescGZIP(), []int{4}
}
func (x *TimeState) GetIfError() bool {
if x != nil {
return x.IfError
}
return false
}
func (x *TimeState) GetTime() int64 {
if x != nil {
return x.Time
}
return 0
}
type MachineInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
MachineId int64 `protobuf:"varint,10,opt,name=MachineId,proto3" json:"MachineId,omitempty"`
CpuCapacity float64 `protobuf:"fixed64,20,opt,name=CpuCapacity,proto3" json:"CpuCapacity,omitempty"`
RamCapacity float64 `protobuf:"fixed64,30,opt,name=RamCapacity,proto3" json:"RamCapacity,omitempty"`
CpuAlloc float64 `protobuf:"fixed64,40,opt,name=CpuAlloc,proto3" json:"CpuAlloc,omitempty"`
RamAlloc float64 `protobuf:"fixed64,50,opt,name=RamAlloc,proto3" json:"RamAlloc,omitempty"`
}
func (x *MachineInfo) Reset() {
*x = MachineInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_simulator_service_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MachineInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MachineInfo) ProtoMessage() {}
func (x *MachineInfo) ProtoReflect() protoreflect.Message {
mi := &file_simulator_service_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 MachineInfo.ProtoReflect.Descriptor instead.
func (*MachineInfo) Descriptor() ([]byte, []int) {
return file_simulator_service_proto_rawDescGZIP(), []int{5}
}
func (x *MachineInfo) GetMachineId() int64 {
if x != nil {
return x.MachineId
}
return 0
}
func (x *MachineInfo) GetCpuCapacity() float64 {
if x != nil {
return x.CpuCapacity
}
return 0
}
func (x *MachineInfo) GetRamCapacity() float64 {
if x != nil {
return x.RamCapacity
}
return 0
}
func (x *MachineInfo) GetCpuAlloc() float64 {
if x != nil {
return x.CpuAlloc
}
return 0
}
func (x *MachineInfo) GetRamAlloc() float64 {
if x != nil {
return x.RamAlloc
}
return 0
}
//服务端返回的当前集群信息
type MachinesState struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
IfError bool `protobuf:"varint,10,opt,name=IfError,proto3" json:"IfError,omitempty"`
Machines []*MachineInfo `protobuf:"bytes,20,rep,name=Machines,proto3" json:"Machines,omitempty"`
}
func (x *MachinesState) Reset() {
*x = MachinesState{}
if protoimpl.UnsafeEnabled {
mi := &file_simulator_service_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MachinesState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MachinesState) ProtoMessage() {}
func (x *MachinesState) ProtoReflect() protoreflect.Message {
mi := &file_simulator_service_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 MachinesState.ProtoReflect.Descriptor instead.
func (*MachinesState) Descriptor() ([]byte, []int) {
return file_simulator_service_proto_rawDescGZIP(), []int{6}
}
func (x *MachinesState) GetIfError() bool {
if x != nil {
return x.IfError
}
return false
}
func (x *MachinesState) GetMachines() []*MachineInfo {
if x != nil {
return x.Machines
}
return nil
}
type InstanceKey struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
CollectionId int64 `protobuf:"varint,10,opt,name=CollectionId,proto3" json:"CollectionId,omitempty"`
InstanceIndex int64 `protobuf:"varint,20,opt,name=InstanceIndex,proto3" json:"InstanceIndex,omitempty"`
}
func (x *InstanceKey) Reset() {
*x = InstanceKey{}
if protoimpl.UnsafeEnabled {
mi := &file_simulator_service_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *InstanceKey) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceKey) ProtoMessage() {}
func (x *InstanceKey) ProtoReflect() protoreflect.Message {
mi := &file_simulator_service_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 InstanceKey.ProtoReflect.Descriptor instead.
func (*InstanceKey) Descriptor() ([]byte, []int) {
return file_simulator_service_proto_rawDescGZIP(), []int{7}
}
func (x *InstanceKey) GetCollectionId() int64 {
if x != nil {
return x.CollectionId
}
return 0
}
func (x *InstanceKey) GetInstanceIndex() int64 {
if x != nil {
return x.InstanceIndex
}
return 0
}
type InstanceInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
InstanceKey *InstanceKey `protobuf:"bytes,10,opt,name=InstanceKey,proto3" json:"InstanceKey,omitempty"`
QueueTime int64 `protobuf:"varint,20,opt,name=QueueTime,proto3" json:"QueueTime,omitempty"`
CpuRequest float64 `protobuf:"fixed64,30,opt,name=CpuRequest,proto3" json:"CpuRequest,omitempty"`
RamRequest float64 `protobuf:"fixed64,40,opt,name=RamRequest,proto3" json:"RamRequest,omitempty"`
}
func (x *InstanceInfo) Reset() {
*x = InstanceInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_simulator_service_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *InstanceInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstanceInfo) ProtoMessage() {}
func (x *InstanceInfo) ProtoReflect() protoreflect.Message {
mi := &file_simulator_service_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 InstanceInfo.ProtoReflect.Descriptor instead.
func (*InstanceInfo) Descriptor() ([]byte, []int) {
return file_simulator_service_proto_rawDescGZIP(), []int{8}
}
func (x *InstanceInfo) GetInstanceKey() *InstanceKey {
if x != nil {
return x.InstanceKey
}
return nil
}
func (x *InstanceInfo) GetQueueTime() int64 {
if x != nil {
return x.QueueTime
}
return 0
}
func (x *InstanceInfo) GetCpuRequest() float64 {
if x != nil {
return x.CpuRequest
}
return 0
}
func (x *InstanceInfo) GetRamRequest() float64 {
if x != nil {
return x.RamRequest
}
return 0
}
//服务端返回的当前队列信息
type QueueState struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
IfError bool `protobuf:"varint,10,opt,name=IfError,proto3" json:"IfError,omitempty"`
Instances []*InstanceInfo `protobuf:"bytes,20,rep,name=Instances,proto3" json:"Instances,omitempty"`
}
func (x *QueueState) Reset() {
*x = QueueState{}
if protoimpl.UnsafeEnabled {
mi := &file_simulator_service_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *QueueState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueueState) ProtoMessage() {}
func (x *QueueState) ProtoReflect() protoreflect.Message {
mi := &file_simulator_service_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 QueueState.ProtoReflect.Descriptor instead.
func (*QueueState) Descriptor() ([]byte, []int) {
return file_simulator_service_proto_rawDescGZIP(), []int{9}
}
func (x *QueueState) GetIfError() bool {
if x != nil {
return x.IfError
}
return false
}
func (x *QueueState) GetInstances() []*InstanceInfo {
if x != nil {
return x.Instances
}
return nil
}
// 调度Instance调度到某个机器上的请求
type SchduleRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
InstanceKey *InstanceKey `protobuf:"bytes,10,opt,name=InstanceKey,proto3" json:"InstanceKey,omitempty"`
MachineId int64 `protobuf:"varint,20,opt,name=MachineId,proto3" json:"MachineId,omitempty"`
}
func (x *SchduleRequest) Reset() {
*x = SchduleRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_simulator_service_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SchduleRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SchduleRequest) ProtoMessage() {}
func (x *SchduleRequest) ProtoReflect() protoreflect.Message {
mi := &file_simulator_service_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 SchduleRequest.ProtoReflect.Descriptor instead.
func (*SchduleRequest) Descriptor() ([]byte, []int) {
return file_simulator_service_proto_rawDescGZIP(), []int{10}
}
func (x *SchduleRequest) GetInstanceKey() *InstanceKey {
if x != nil {
return x.InstanceKey
}
return nil
}
func (x *SchduleRequest) GetMachineId() int64 {
if x != nil {
return x.MachineId
}
return 0
}
var File_simulator_service_proto protoreflect.FileDescriptor
var file_simulator_service_proto_rawDesc = []byte{
0x0a, 0x17, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76,
0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x22, 0x1d, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x4e,
0x6f, 0x55, 0x73, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x4e, 0x6f, 0x55, 0x73,
0x65, 0x22, 0x28, 0x0a, 0x0c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74,
0x65, 0x12, 0x18, 0x0a, 0x07, 0x49, 0x66, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01,
0x28, 0x08, 0x52, 0x07, 0x49, 0x66, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x4b, 0x0a, 0x0b, 0x49,
0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x42, 0x65,
0x67, 0x69, 0x6e, 0x48, 0x6f, 0x75, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x42,
0x65, 0x67, 0x69, 0x6e, 0x48, 0x6f, 0x75, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x46, 0x69, 0x6e, 0x69,
0x73, 0x68, 0x48, 0x6f, 0x75, 0x72, 0x18, 0x14, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x46, 0x69,
0x6e, 0x69, 0x73, 0x68, 0x48, 0x6f, 0x75, 0x72, 0x22, 0x1d, 0x0a, 0x07, 0x45, 0x6e, 0x64, 0x54,
0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28,
0x03, 0x52, 0x04, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x39, 0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, 0x53,
0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x49, 0x66, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x18,
0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x49, 0x66, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12,
0x0a, 0x04, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x54, 0x69,
0x6d, 0x65, 0x22, 0xa7, 0x01, 0x0a, 0x0b, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x6e,
0x66, 0x6f, 0x12, 0x1c, 0x0a, 0x09, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x18,
0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64,
0x12, 0x20, 0x0a, 0x0b, 0x43, 0x70, 0x75, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18,
0x14, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0b, 0x43, 0x70, 0x75, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69,
0x74, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x52, 0x61, 0x6d, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74,
0x79, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0b, 0x52, 0x61, 0x6d, 0x43, 0x61, 0x70, 0x61,
0x63, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x43, 0x70, 0x75, 0x41, 0x6c, 0x6c, 0x6f, 0x63,
0x18, 0x28, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x43, 0x70, 0x75, 0x41, 0x6c, 0x6c, 0x6f, 0x63,
0x12, 0x1a, 0x0a, 0x08, 0x52, 0x61, 0x6d, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x18, 0x32, 0x20, 0x01,
0x28, 0x01, 0x52, 0x08, 0x52, 0x61, 0x6d, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x22, 0x5b, 0x0a, 0x0d,
0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a,
0x07, 0x49, 0x66, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07,
0x49, 0x66, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x30, 0x0a, 0x08, 0x4d, 0x61, 0x63, 0x68, 0x69,
0x6e, 0x65, 0x73, 0x18, 0x14, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x73, 0x65, 0x72, 0x76,
0x69, 0x63, 0x65, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52,
0x08, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x73, 0x22, 0x57, 0x0a, 0x0b, 0x49, 0x6e, 0x73,
0x74, 0x61, 0x6e, 0x63, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x22, 0x0a, 0x0c, 0x43, 0x6f, 0x6c, 0x6c,
0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c,
0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0d,
0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x14, 0x20,
0x01, 0x28, 0x03, 0x52, 0x0d, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x64,
0x65, 0x78, 0x22, 0xa4, 0x01, 0x0a, 0x0c, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49,
0x6e, 0x66, 0x6f, 0x12, 0x36, 0x0a, 0x0b, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4b,
0x65, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x0b,
0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x51,
0x75, 0x65, 0x75, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
0x51, 0x75, 0x65, 0x75, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x70, 0x75,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x43,
0x70, 0x75, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x52, 0x61, 0x6d,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x28, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x52,
0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5b, 0x0a, 0x0a, 0x51, 0x75, 0x65,
0x75, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x49, 0x66, 0x45, 0x72, 0x72,
0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x49, 0x66, 0x45, 0x72, 0x72, 0x6f,
0x72, 0x12, 0x33, 0x0a, 0x09, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x14,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x49,
0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x49, 0x6e, 0x73,
0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x66, 0x0a, 0x0e, 0x53, 0x63, 0x68, 0x64, 0x75, 0x6c,
0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x0b, 0x49, 0x6e, 0x73, 0x74,
0x61, 0x6e, 0x63, 0x65, 0x4b, 0x65, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e,
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
0x4b, 0x65, 0x79, 0x52, 0x0b, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4b, 0x65, 0x79,
0x12, 0x1c, 0x0a, 0x09, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x18, 0x14, 0x20,
0x01, 0x28, 0x03, 0x52, 0x09, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x32, 0xca,
0x02, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76,
0x69, 0x63, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x49, 0x6e, 0x69, 0x74, 0x12, 0x14, 0x2e, 0x73, 0x65,
0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x15, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x04, 0x47, 0x6f, 0x74, 0x6f,
0x12, 0x10, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x45, 0x6e, 0x64, 0x54, 0x69,
0x6d, 0x65, 0x1a, 0x15, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x47, 0x65, 0x74,
0x54, 0x69, 0x6d, 0x65, 0x12, 0x0e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x45,
0x6d, 0x70, 0x74, 0x79, 0x1a, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x54,
0x69, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x35, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x4d,
0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x0e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12,
0x2f, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x0e, 0x2e, 0x73, 0x65,
0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x13, 0x2e, 0x73, 0x65,
0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65,
0x12, 0x39, 0x0a, 0x07, 0x53, 0x63, 0x68, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x17, 0x2e, 0x73, 0x65,
0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x0f, 0x5a, 0x0d, 0x2e,
0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
}
var (
file_simulator_service_proto_rawDescOnce sync.Once
file_simulator_service_proto_rawDescData = file_simulator_service_proto_rawDesc
)
func file_simulator_service_proto_rawDescGZIP() []byte {
file_simulator_service_proto_rawDescOnce.Do(func() {
file_simulator_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_simulator_service_proto_rawDescData)
})
return file_simulator_service_proto_rawDescData
}
var file_simulator_service_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
var file_simulator_service_proto_goTypes = []interface{}{
(*Empty)(nil), // 0: service.Empty
(*RequestState)(nil), // 1: service.RequestState
(*InitRequest)(nil), // 2: service.InitRequest
(*EndTime)(nil), // 3: service.EndTime
(*TimeState)(nil), // 4: service.TimeState
(*MachineInfo)(nil), // 5: service.MachineInfo
(*MachinesState)(nil), // 6: service.MachinesState
(*InstanceKey)(nil), // 7: service.InstanceKey
(*InstanceInfo)(nil), // 8: service.InstanceInfo
(*QueueState)(nil), // 9: service.QueueState
(*SchduleRequest)(nil), // 10: service.SchduleRequest
}
var file_simulator_service_proto_depIdxs = []int32{
5, // 0: service.MachinesState.Machines:type_name -> service.MachineInfo
7, // 1: service.InstanceInfo.InstanceKey:type_name -> service.InstanceKey
8, // 2: service.QueueState.Instances:type_name -> service.InstanceInfo
7, // 3: service.SchduleRequest.InstanceKey:type_name -> service.InstanceKey
2, // 4: service.SimulatorService.Init:input_type -> service.InitRequest
3, // 5: service.SimulatorService.Goto:input_type -> service.EndTime
0, // 6: service.SimulatorService.GetTime:input_type -> service.Empty
0, // 7: service.SimulatorService.GetMachines:input_type -> service.Empty
0, // 8: service.SimulatorService.GetQueue:input_type -> service.Empty
10, // 9: service.SimulatorService.Schdule:input_type -> service.SchduleRequest
1, // 10: service.SimulatorService.Init:output_type -> service.RequestState
1, // 11: service.SimulatorService.Goto:output_type -> service.RequestState
4, // 12: service.SimulatorService.GetTime:output_type -> service.TimeState
6, // 13: service.SimulatorService.GetMachines:output_type -> service.MachinesState
9, // 14: service.SimulatorService.GetQueue:output_type -> service.QueueState
1, // 15: service.SimulatorService.Schdule:output_type -> service.RequestState
10, // [10:16] is the sub-list for method output_type
4, // [4:10] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_simulator_service_proto_init() }
func file_simulator_service_proto_init() {
if File_simulator_service_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_simulator_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Empty); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_simulator_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RequestState); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_simulator_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*InitRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_simulator_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*EndTime); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_simulator_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TimeState); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_simulator_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MachineInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_simulator_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MachinesState); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_simulator_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*InstanceKey); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_simulator_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*InstanceInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_simulator_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*QueueState); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_simulator_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SchduleRequest); 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_simulator_service_proto_rawDesc,
NumEnums: 0,
NumMessages: 11,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_simulator_service_proto_goTypes,
DependencyIndexes: file_simulator_service_proto_depIdxs,
MessageInfos: file_simulator_service_proto_msgTypes,
}.Build()
File_simulator_service_proto = out.File
file_simulator_service_proto_rawDesc = nil
file_simulator_service_proto_goTypes = nil
file_simulator_service_proto_depIdxs = nil
}
1
https://gitee.com/lin2631/sc-go.git
git@gitee.com:lin2631/sc-go.git
lin2631
sc-go
sc-go
6252159ce97a

搜索帮助