代码拉取完成,页面将自动刷新
// 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
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。