mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 16:00:24 +08:00 
			
		
		
		
	
		
			
	
	
		
			707 lines
		
	
	
		
			25 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			707 lines
		
	
	
		
			25 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								// Code generated by protoc-gen-go. DO NOT EDIT.
							 | 
						||
| 
								 | 
							
								// versions:
							 | 
						||
| 
								 | 
							
								// 	protoc-gen-go v1.25.0
							 | 
						||
| 
								 | 
							
								// 	protoc        v3.12.3
							 | 
						||
| 
								 | 
							
								// source: service_server.proto
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								package pb
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import (
							 | 
						||
| 
								 | 
							
									context "context"
							 | 
						||
| 
								 | 
							
									proto "github.com/golang/protobuf/proto"
							 | 
						||
| 
								 | 
							
									grpc "google.golang.org/grpc"
							 | 
						||
| 
								 | 
							
									codes "google.golang.org/grpc/codes"
							 | 
						||
| 
								 | 
							
									status "google.golang.org/grpc/status"
							 | 
						||
| 
								 | 
							
									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)
							 | 
						||
| 
								 | 
							
								)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// This is a compile-time assertion that a sufficiently up-to-date version
							 | 
						||
| 
								 | 
							
								// of the legacy proto package is being used.
							 | 
						||
| 
								 | 
							
								const _ = proto.ProtoPackageIsVersion4
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// 创建服务
							 | 
						||
| 
								 | 
							
								type CreateServerRequest struct {
							 | 
						||
| 
								 | 
							
									state         protoimpl.MessageState
							 | 
						||
| 
								 | 
							
									sizeCache     protoimpl.SizeCache
							 | 
						||
| 
								 | 
							
									unknownFields protoimpl.UnknownFields
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									UserId           int64  `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
							 | 
						||
| 
								 | 
							
									AdminId          int64  `protobuf:"varint,2,opt,name=adminId,proto3" json:"adminId,omitempty"`
							 | 
						||
| 
								 | 
							
									ClusterId        int64  `protobuf:"varint,6,opt,name=clusterId,proto3" json:"clusterId,omitempty"`
							 | 
						||
| 
								 | 
							
									Config           []byte `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
							 | 
						||
| 
								 | 
							
									IncludeNodesJSON []byte `protobuf:"bytes,4,opt,name=includeNodesJSON,proto3" json:"includeNodesJSON,omitempty"`
							 | 
						||
| 
								 | 
							
									ExcludeNodesJSON []byte `protobuf:"bytes,5,opt,name=excludeNodesJSON,proto3" json:"excludeNodesJSON,omitempty"`
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *CreateServerRequest) Reset() {
							 | 
						||
| 
								 | 
							
									*x = CreateServerRequest{}
							 | 
						||
| 
								 | 
							
									if protoimpl.UnsafeEnabled {
							 | 
						||
| 
								 | 
							
										mi := &file_service_server_proto_msgTypes[0]
							 | 
						||
| 
								 | 
							
										ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
							 | 
						||
| 
								 | 
							
										ms.StoreMessageInfo(mi)
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *CreateServerRequest) String() string {
							 | 
						||
| 
								 | 
							
									return protoimpl.X.MessageStringOf(x)
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (*CreateServerRequest) ProtoMessage() {}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *CreateServerRequest) ProtoReflect() protoreflect.Message {
							 | 
						||
| 
								 | 
							
									mi := &file_service_server_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 CreateServerRequest.ProtoReflect.Descriptor instead.
							 | 
						||
| 
								 | 
							
								func (*CreateServerRequest) Descriptor() ([]byte, []int) {
							 | 
						||
| 
								 | 
							
									return file_service_server_proto_rawDescGZIP(), []int{0}
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *CreateServerRequest) GetUserId() int64 {
							 | 
						||
| 
								 | 
							
									if x != nil {
							 | 
						||
| 
								 | 
							
										return x.UserId
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									return 0
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *CreateServerRequest) GetAdminId() int64 {
							 | 
						||
| 
								 | 
							
									if x != nil {
							 | 
						||
| 
								 | 
							
										return x.AdminId
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									return 0
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *CreateServerRequest) GetClusterId() int64 {
							 | 
						||
| 
								 | 
							
									if x != nil {
							 | 
						||
| 
								 | 
							
										return x.ClusterId
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									return 0
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *CreateServerRequest) GetConfig() []byte {
							 | 
						||
| 
								 | 
							
									if x != nil {
							 | 
						||
| 
								 | 
							
										return x.Config
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									return nil
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *CreateServerRequest) GetIncludeNodesJSON() []byte {
							 | 
						||
| 
								 | 
							
									if x != nil {
							 | 
						||
| 
								 | 
							
										return x.IncludeNodesJSON
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									return nil
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *CreateServerRequest) GetExcludeNodesJSON() []byte {
							 | 
						||
| 
								 | 
							
									if x != nil {
							 | 
						||
| 
								 | 
							
										return x.ExcludeNodesJSON
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									return nil
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								type CreateServerResponse struct {
							 | 
						||
| 
								 | 
							
									state         protoimpl.MessageState
							 | 
						||
| 
								 | 
							
									sizeCache     protoimpl.SizeCache
							 | 
						||
| 
								 | 
							
									unknownFields protoimpl.UnknownFields
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									ServerId int64 `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,omitempty"`
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *CreateServerResponse) Reset() {
							 | 
						||
| 
								 | 
							
									*x = CreateServerResponse{}
							 | 
						||
| 
								 | 
							
									if protoimpl.UnsafeEnabled {
							 | 
						||
| 
								 | 
							
										mi := &file_service_server_proto_msgTypes[1]
							 | 
						||
| 
								 | 
							
										ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
							 | 
						||
| 
								 | 
							
										ms.StoreMessageInfo(mi)
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *CreateServerResponse) String() string {
							 | 
						||
| 
								 | 
							
									return protoimpl.X.MessageStringOf(x)
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (*CreateServerResponse) ProtoMessage() {}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *CreateServerResponse) ProtoReflect() protoreflect.Message {
							 | 
						||
| 
								 | 
							
									mi := &file_service_server_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 CreateServerResponse.ProtoReflect.Descriptor instead.
							 | 
						||
| 
								 | 
							
								func (*CreateServerResponse) Descriptor() ([]byte, []int) {
							 | 
						||
| 
								 | 
							
									return file_service_server_proto_rawDescGZIP(), []int{1}
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *CreateServerResponse) GetServerId() int64 {
							 | 
						||
| 
								 | 
							
									if x != nil {
							 | 
						||
| 
								 | 
							
										return x.ServerId
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									return 0
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// 计算服务数量
							 | 
						||
| 
								 | 
							
								type CountAllEnabledServersRequest struct {
							 | 
						||
| 
								 | 
							
									state         protoimpl.MessageState
							 | 
						||
| 
								 | 
							
									sizeCache     protoimpl.SizeCache
							 | 
						||
| 
								 | 
							
									unknownFields protoimpl.UnknownFields
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *CountAllEnabledServersRequest) Reset() {
							 | 
						||
| 
								 | 
							
									*x = CountAllEnabledServersRequest{}
							 | 
						||
| 
								 | 
							
									if protoimpl.UnsafeEnabled {
							 | 
						||
| 
								 | 
							
										mi := &file_service_server_proto_msgTypes[2]
							 | 
						||
| 
								 | 
							
										ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
							 | 
						||
| 
								 | 
							
										ms.StoreMessageInfo(mi)
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *CountAllEnabledServersRequest) String() string {
							 | 
						||
| 
								 | 
							
									return protoimpl.X.MessageStringOf(x)
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (*CountAllEnabledServersRequest) ProtoMessage() {}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *CountAllEnabledServersRequest) ProtoReflect() protoreflect.Message {
							 | 
						||
| 
								 | 
							
									mi := &file_service_server_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 CountAllEnabledServersRequest.ProtoReflect.Descriptor instead.
							 | 
						||
| 
								 | 
							
								func (*CountAllEnabledServersRequest) Descriptor() ([]byte, []int) {
							 | 
						||
| 
								 | 
							
									return file_service_server_proto_rawDescGZIP(), []int{2}
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								type CountAllEnabledServersResponse struct {
							 | 
						||
| 
								 | 
							
									state         protoimpl.MessageState
							 | 
						||
| 
								 | 
							
									sizeCache     protoimpl.SizeCache
							 | 
						||
| 
								 | 
							
									unknownFields protoimpl.UnknownFields
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *CountAllEnabledServersResponse) Reset() {
							 | 
						||
| 
								 | 
							
									*x = CountAllEnabledServersResponse{}
							 | 
						||
| 
								 | 
							
									if protoimpl.UnsafeEnabled {
							 | 
						||
| 
								 | 
							
										mi := &file_service_server_proto_msgTypes[3]
							 | 
						||
| 
								 | 
							
										ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
							 | 
						||
| 
								 | 
							
										ms.StoreMessageInfo(mi)
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *CountAllEnabledServersResponse) String() string {
							 | 
						||
| 
								 | 
							
									return protoimpl.X.MessageStringOf(x)
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (*CountAllEnabledServersResponse) ProtoMessage() {}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *CountAllEnabledServersResponse) ProtoReflect() protoreflect.Message {
							 | 
						||
| 
								 | 
							
									mi := &file_service_server_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 CountAllEnabledServersResponse.ProtoReflect.Descriptor instead.
							 | 
						||
| 
								 | 
							
								func (*CountAllEnabledServersResponse) Descriptor() ([]byte, []int) {
							 | 
						||
| 
								 | 
							
									return file_service_server_proto_rawDescGZIP(), []int{3}
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *CountAllEnabledServersResponse) GetCount() int64 {
							 | 
						||
| 
								 | 
							
									if x != nil {
							 | 
						||
| 
								 | 
							
										return x.Count
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									return 0
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// 列出单页服务
							 | 
						||
| 
								 | 
							
								type ListEnabledServersRequest struct {
							 | 
						||
| 
								 | 
							
									state         protoimpl.MessageState
							 | 
						||
| 
								 | 
							
									sizeCache     protoimpl.SizeCache
							 | 
						||
| 
								 | 
							
									unknownFields protoimpl.UnknownFields
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
							 | 
						||
| 
								 | 
							
									Size   int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *ListEnabledServersRequest) Reset() {
							 | 
						||
| 
								 | 
							
									*x = ListEnabledServersRequest{}
							 | 
						||
| 
								 | 
							
									if protoimpl.UnsafeEnabled {
							 | 
						||
| 
								 | 
							
										mi := &file_service_server_proto_msgTypes[4]
							 | 
						||
| 
								 | 
							
										ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
							 | 
						||
| 
								 | 
							
										ms.StoreMessageInfo(mi)
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *ListEnabledServersRequest) String() string {
							 | 
						||
| 
								 | 
							
									return protoimpl.X.MessageStringOf(x)
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (*ListEnabledServersRequest) ProtoMessage() {}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *ListEnabledServersRequest) ProtoReflect() protoreflect.Message {
							 | 
						||
| 
								 | 
							
									mi := &file_service_server_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 ListEnabledServersRequest.ProtoReflect.Descriptor instead.
							 | 
						||
| 
								 | 
							
								func (*ListEnabledServersRequest) Descriptor() ([]byte, []int) {
							 | 
						||
| 
								 | 
							
									return file_service_server_proto_rawDescGZIP(), []int{4}
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *ListEnabledServersRequest) GetOffset() int64 {
							 | 
						||
| 
								 | 
							
									if x != nil {
							 | 
						||
| 
								 | 
							
										return x.Offset
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									return 0
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *ListEnabledServersRequest) GetSize() int64 {
							 | 
						||
| 
								 | 
							
									if x != nil {
							 | 
						||
| 
								 | 
							
										return x.Size
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									return 0
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								type ListEnabledServersResponse struct {
							 | 
						||
| 
								 | 
							
									state         protoimpl.MessageState
							 | 
						||
| 
								 | 
							
									sizeCache     protoimpl.SizeCache
							 | 
						||
| 
								 | 
							
									unknownFields protoimpl.UnknownFields
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									Servers []*Server `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"`
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *ListEnabledServersResponse) Reset() {
							 | 
						||
| 
								 | 
							
									*x = ListEnabledServersResponse{}
							 | 
						||
| 
								 | 
							
									if protoimpl.UnsafeEnabled {
							 | 
						||
| 
								 | 
							
										mi := &file_service_server_proto_msgTypes[5]
							 | 
						||
| 
								 | 
							
										ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
							 | 
						||
| 
								 | 
							
										ms.StoreMessageInfo(mi)
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *ListEnabledServersResponse) String() string {
							 | 
						||
| 
								 | 
							
									return protoimpl.X.MessageStringOf(x)
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (*ListEnabledServersResponse) ProtoMessage() {}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *ListEnabledServersResponse) ProtoReflect() protoreflect.Message {
							 | 
						||
| 
								 | 
							
									mi := &file_service_server_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 ListEnabledServersResponse.ProtoReflect.Descriptor instead.
							 | 
						||
| 
								 | 
							
								func (*ListEnabledServersResponse) Descriptor() ([]byte, []int) {
							 | 
						||
| 
								 | 
							
									return file_service_server_proto_rawDescGZIP(), []int{5}
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (x *ListEnabledServersResponse) GetServers() []*Server {
							 | 
						||
| 
								 | 
							
									if x != nil {
							 | 
						||
| 
								 | 
							
										return x.Servers
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									return nil
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								var File_service_server_proto protoreflect.FileDescriptor
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								var file_service_server_proto_rawDesc = []byte{
							 | 
						||
| 
								 | 
							
									0x0a, 0x14, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72,
							 | 
						||
| 
								 | 
							
									0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x12, 0x6d, 0x6f, 0x64, 0x65,
							 | 
						||
| 
								 | 
							
									0x6c, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd5,
							 | 
						||
| 
								 | 
							
									0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52,
							 | 
						||
| 
								 | 
							
									0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
							 | 
						||
| 
								 | 
							
									0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18,
							 | 
						||
| 
								 | 
							
									0x0a, 0x07, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
							 | 
						||
| 
								 | 
							
									0x07, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6c, 0x75, 0x73,
							 | 
						||
| 
								 | 
							
									0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x6c, 0x75,
							 | 
						||
| 
								 | 
							
									0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
							 | 
						||
| 
								 | 
							
									0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2a,
							 | 
						||
| 
								 | 
							
									0x0a, 0x10, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x4a, 0x53,
							 | 
						||
| 
								 | 
							
									0x4f, 0x4e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64,
							 | 
						||
| 
								 | 
							
									0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x2a, 0x0a, 0x10, 0x65, 0x78,
							 | 
						||
| 
								 | 
							
									0x63, 0x6c, 0x75, 0x64, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x05,
							 | 
						||
| 
								 | 
							
									0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x4e, 0x6f, 0x64,
							 | 
						||
| 
								 | 
							
									0x65, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x32, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
							 | 
						||
| 
								 | 
							
									0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a,
							 | 
						||
| 
								 | 
							
									0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
							 | 
						||
| 
								 | 
							
									0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x22, 0x1f, 0x0a, 0x1d, 0x43, 0x6f,
							 | 
						||
| 
								 | 
							
									0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x53, 0x65, 0x72,
							 | 
						||
| 
								 | 
							
									0x76, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x36, 0x0a, 0x1e, 0x43,
							 | 
						||
| 
								 | 
							
									0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x53, 0x65,
							 | 
						||
| 
								 | 
							
									0x72, 0x76, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a,
							 | 
						||
| 
								 | 
							
									0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f,
							 | 
						||
| 
								 | 
							
									0x75, 0x6e, 0x74, 0x22, 0x47, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c,
							 | 
						||
| 
								 | 
							
									0x65, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
							 | 
						||
| 
								 | 
							
									0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
							 | 
						||
| 
								 | 
							
									0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65,
							 | 
						||
| 
								 | 
							
									0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x42, 0x0a, 0x1a,
							 | 
						||
| 
								 | 
							
									0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65,
							 | 
						||
| 
								 | 
							
									0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x07, 0x73, 0x65,
							 | 
						||
| 
								 | 
							
									0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62,
							 | 
						||
| 
								 | 
							
									0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73,
							 | 
						||
| 
								 | 
							
									0x32, 0x88, 0x02, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69,
							 | 
						||
| 
								 | 
							
									0x63, 0x65, 0x12, 0x41, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76,
							 | 
						||
| 
								 | 
							
									0x65, 0x72, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x65,
							 | 
						||
| 
								 | 
							
									0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x62,
							 | 
						||
| 
								 | 
							
									0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73,
							 | 
						||
| 
								 | 
							
									0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c,
							 | 
						||
| 
								 | 
							
									0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x12,
							 | 
						||
| 
								 | 
							
									0x21, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61,
							 | 
						||
| 
								 | 
							
									0x62, 0x6c, 0x65, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
							 | 
						||
| 
								 | 
							
									0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c,
							 | 
						||
| 
								 | 
							
									0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x52, 0x65,
							 | 
						||
| 
								 | 
							
									0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x12, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e,
							 | 
						||
| 
								 | 
							
									0x61, 0x62, 0x6c, 0x65, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x12, 0x1d, 0x2e, 0x70,
							 | 
						||
| 
								 | 
							
									0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x53, 0x65, 0x72,
							 | 
						||
| 
								 | 
							
									0x76, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x62,
							 | 
						||
| 
								 | 
							
									0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x53, 0x65, 0x72, 0x76,
							 | 
						||
| 
								 | 
							
									0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e,
							 | 
						||
| 
								 | 
							
									0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								var (
							 | 
						||
| 
								 | 
							
									file_service_server_proto_rawDescOnce sync.Once
							 | 
						||
| 
								 | 
							
									file_service_server_proto_rawDescData = file_service_server_proto_rawDesc
							 | 
						||
| 
								 | 
							
								)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func file_service_server_proto_rawDescGZIP() []byte {
							 | 
						||
| 
								 | 
							
									file_service_server_proto_rawDescOnce.Do(func() {
							 | 
						||
| 
								 | 
							
										file_service_server_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_server_proto_rawDescData)
							 | 
						||
| 
								 | 
							
									})
							 | 
						||
| 
								 | 
							
									return file_service_server_proto_rawDescData
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								var file_service_server_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
							 | 
						||
| 
								 | 
							
								var file_service_server_proto_goTypes = []interface{}{
							 | 
						||
| 
								 | 
							
									(*CreateServerRequest)(nil),            // 0: pb.CreateServerRequest
							 | 
						||
| 
								 | 
							
									(*CreateServerResponse)(nil),           // 1: pb.CreateServerResponse
							 | 
						||
| 
								 | 
							
									(*CountAllEnabledServersRequest)(nil),  // 2: pb.CountAllEnabledServersRequest
							 | 
						||
| 
								 | 
							
									(*CountAllEnabledServersResponse)(nil), // 3: pb.CountAllEnabledServersResponse
							 | 
						||
| 
								 | 
							
									(*ListEnabledServersRequest)(nil),      // 4: pb.ListEnabledServersRequest
							 | 
						||
| 
								 | 
							
									(*ListEnabledServersResponse)(nil),     // 5: pb.ListEnabledServersResponse
							 | 
						||
| 
								 | 
							
									(*Server)(nil),                         // 6: pb.Server
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								var file_service_server_proto_depIdxs = []int32{
							 | 
						||
| 
								 | 
							
									6, // 0: pb.ListEnabledServersResponse.servers:type_name -> pb.Server
							 | 
						||
| 
								 | 
							
									0, // 1: pb.ServerService.createServer:input_type -> pb.CreateServerRequest
							 | 
						||
| 
								 | 
							
									2, // 2: pb.ServerService.countAllEnabledServers:input_type -> pb.CountAllEnabledServersRequest
							 | 
						||
| 
								 | 
							
									4, // 3: pb.ServerService.listEnabledServers:input_type -> pb.ListEnabledServersRequest
							 | 
						||
| 
								 | 
							
									1, // 4: pb.ServerService.createServer:output_type -> pb.CreateServerResponse
							 | 
						||
| 
								 | 
							
									3, // 5: pb.ServerService.countAllEnabledServers:output_type -> pb.CountAllEnabledServersResponse
							 | 
						||
| 
								 | 
							
									5, // 6: pb.ServerService.listEnabledServers:output_type -> pb.ListEnabledServersResponse
							 | 
						||
| 
								 | 
							
									4, // [4:7] is the sub-list for method output_type
							 | 
						||
| 
								 | 
							
									1, // [1:4] is the sub-list for method input_type
							 | 
						||
| 
								 | 
							
									1, // [1:1] is the sub-list for extension type_name
							 | 
						||
| 
								 | 
							
									1, // [1:1] is the sub-list for extension extendee
							 | 
						||
| 
								 | 
							
									0, // [0:1] is the sub-list for field type_name
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func init() { file_service_server_proto_init() }
							 | 
						||
| 
								 | 
							
								func file_service_server_proto_init() {
							 | 
						||
| 
								 | 
							
									if File_service_server_proto != nil {
							 | 
						||
| 
								 | 
							
										return
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									file_model_server_proto_init()
							 | 
						||
| 
								 | 
							
									if !protoimpl.UnsafeEnabled {
							 | 
						||
| 
								 | 
							
										file_service_server_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
							 | 
						||
| 
								 | 
							
											switch v := v.(*CreateServerRequest); i {
							 | 
						||
| 
								 | 
							
											case 0:
							 | 
						||
| 
								 | 
							
												return &v.state
							 | 
						||
| 
								 | 
							
											case 1:
							 | 
						||
| 
								 | 
							
												return &v.sizeCache
							 | 
						||
| 
								 | 
							
											case 2:
							 | 
						||
| 
								 | 
							
												return &v.unknownFields
							 | 
						||
| 
								 | 
							
											default:
							 | 
						||
| 
								 | 
							
												return nil
							 | 
						||
| 
								 | 
							
											}
							 | 
						||
| 
								 | 
							
										}
							 | 
						||
| 
								 | 
							
										file_service_server_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
							 | 
						||
| 
								 | 
							
											switch v := v.(*CreateServerResponse); i {
							 | 
						||
| 
								 | 
							
											case 0:
							 | 
						||
| 
								 | 
							
												return &v.state
							 | 
						||
| 
								 | 
							
											case 1:
							 | 
						||
| 
								 | 
							
												return &v.sizeCache
							 | 
						||
| 
								 | 
							
											case 2:
							 | 
						||
| 
								 | 
							
												return &v.unknownFields
							 | 
						||
| 
								 | 
							
											default:
							 | 
						||
| 
								 | 
							
												return nil
							 | 
						||
| 
								 | 
							
											}
							 | 
						||
| 
								 | 
							
										}
							 | 
						||
| 
								 | 
							
										file_service_server_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
							 | 
						||
| 
								 | 
							
											switch v := v.(*CountAllEnabledServersRequest); i {
							 | 
						||
| 
								 | 
							
											case 0:
							 | 
						||
| 
								 | 
							
												return &v.state
							 | 
						||
| 
								 | 
							
											case 1:
							 | 
						||
| 
								 | 
							
												return &v.sizeCache
							 | 
						||
| 
								 | 
							
											case 2:
							 | 
						||
| 
								 | 
							
												return &v.unknownFields
							 | 
						||
| 
								 | 
							
											default:
							 | 
						||
| 
								 | 
							
												return nil
							 | 
						||
| 
								 | 
							
											}
							 | 
						||
| 
								 | 
							
										}
							 | 
						||
| 
								 | 
							
										file_service_server_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
							 | 
						||
| 
								 | 
							
											switch v := v.(*CountAllEnabledServersResponse); i {
							 | 
						||
| 
								 | 
							
											case 0:
							 | 
						||
| 
								 | 
							
												return &v.state
							 | 
						||
| 
								 | 
							
											case 1:
							 | 
						||
| 
								 | 
							
												return &v.sizeCache
							 | 
						||
| 
								 | 
							
											case 2:
							 | 
						||
| 
								 | 
							
												return &v.unknownFields
							 | 
						||
| 
								 | 
							
											default:
							 | 
						||
| 
								 | 
							
												return nil
							 | 
						||
| 
								 | 
							
											}
							 | 
						||
| 
								 | 
							
										}
							 | 
						||
| 
								 | 
							
										file_service_server_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
							 | 
						||
| 
								 | 
							
											switch v := v.(*ListEnabledServersRequest); i {
							 | 
						||
| 
								 | 
							
											case 0:
							 | 
						||
| 
								 | 
							
												return &v.state
							 | 
						||
| 
								 | 
							
											case 1:
							 | 
						||
| 
								 | 
							
												return &v.sizeCache
							 | 
						||
| 
								 | 
							
											case 2:
							 | 
						||
| 
								 | 
							
												return &v.unknownFields
							 | 
						||
| 
								 | 
							
											default:
							 | 
						||
| 
								 | 
							
												return nil
							 | 
						||
| 
								 | 
							
											}
							 | 
						||
| 
								 | 
							
										}
							 | 
						||
| 
								 | 
							
										file_service_server_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
							 | 
						||
| 
								 | 
							
											switch v := v.(*ListEnabledServersResponse); 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_service_server_proto_rawDesc,
							 | 
						||
| 
								 | 
							
											NumEnums:      0,
							 | 
						||
| 
								 | 
							
											NumMessages:   6,
							 | 
						||
| 
								 | 
							
											NumExtensions: 0,
							 | 
						||
| 
								 | 
							
											NumServices:   1,
							 | 
						||
| 
								 | 
							
										},
							 | 
						||
| 
								 | 
							
										GoTypes:           file_service_server_proto_goTypes,
							 | 
						||
| 
								 | 
							
										DependencyIndexes: file_service_server_proto_depIdxs,
							 | 
						||
| 
								 | 
							
										MessageInfos:      file_service_server_proto_msgTypes,
							 | 
						||
| 
								 | 
							
									}.Build()
							 | 
						||
| 
								 | 
							
									File_service_server_proto = out.File
							 | 
						||
| 
								 | 
							
									file_service_server_proto_rawDesc = nil
							 | 
						||
| 
								 | 
							
									file_service_server_proto_goTypes = nil
							 | 
						||
| 
								 | 
							
									file_service_server_proto_depIdxs = nil
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// Reference imports to suppress errors if they are not otherwise used.
							 | 
						||
| 
								 | 
							
								var _ context.Context
							 | 
						||
| 
								 | 
							
								var _ grpc.ClientConnInterface
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// This is a compile-time assertion to ensure that this generated file
							 | 
						||
| 
								 | 
							
								// is compatible with the grpc package it is being compiled against.
							 | 
						||
| 
								 | 
							
								const _ = grpc.SupportPackageIsVersion6
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// ServerServiceClient is the client API for ServerService service.
							 | 
						||
| 
								 | 
							
								//
							 | 
						||
| 
								 | 
							
								// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
							 | 
						||
| 
								 | 
							
								type ServerServiceClient interface {
							 | 
						||
| 
								 | 
							
									// 创建服务
							 | 
						||
| 
								 | 
							
									CreateServer(ctx context.Context, in *CreateServerRequest, opts ...grpc.CallOption) (*CreateServerResponse, error)
							 | 
						||
| 
								 | 
							
									// 计算服务数量
							 | 
						||
| 
								 | 
							
									CountAllEnabledServers(ctx context.Context, in *CountAllEnabledServersRequest, opts ...grpc.CallOption) (*CountAllEnabledServersResponse, error)
							 | 
						||
| 
								 | 
							
									// 列出单页服务
							 | 
						||
| 
								 | 
							
									ListEnabledServers(ctx context.Context, in *ListEnabledServersRequest, opts ...grpc.CallOption) (*ListEnabledServersResponse, error)
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								type serverServiceClient struct {
							 | 
						||
| 
								 | 
							
									cc grpc.ClientConnInterface
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func NewServerServiceClient(cc grpc.ClientConnInterface) ServerServiceClient {
							 | 
						||
| 
								 | 
							
									return &serverServiceClient{cc}
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (c *serverServiceClient) CreateServer(ctx context.Context, in *CreateServerRequest, opts ...grpc.CallOption) (*CreateServerResponse, error) {
							 | 
						||
| 
								 | 
							
									out := new(CreateServerResponse)
							 | 
						||
| 
								 | 
							
									err := c.cc.Invoke(ctx, "/pb.ServerService/createServer", in, out, opts...)
							 | 
						||
| 
								 | 
							
									if err != nil {
							 | 
						||
| 
								 | 
							
										return nil, err
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									return out, nil
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (c *serverServiceClient) CountAllEnabledServers(ctx context.Context, in *CountAllEnabledServersRequest, opts ...grpc.CallOption) (*CountAllEnabledServersResponse, error) {
							 | 
						||
| 
								 | 
							
									out := new(CountAllEnabledServersResponse)
							 | 
						||
| 
								 | 
							
									err := c.cc.Invoke(ctx, "/pb.ServerService/countAllEnabledServers", in, out, opts...)
							 | 
						||
| 
								 | 
							
									if err != nil {
							 | 
						||
| 
								 | 
							
										return nil, err
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									return out, nil
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (c *serverServiceClient) ListEnabledServers(ctx context.Context, in *ListEnabledServersRequest, opts ...grpc.CallOption) (*ListEnabledServersResponse, error) {
							 | 
						||
| 
								 | 
							
									out := new(ListEnabledServersResponse)
							 | 
						||
| 
								 | 
							
									err := c.cc.Invoke(ctx, "/pb.ServerService/listEnabledServers", in, out, opts...)
							 | 
						||
| 
								 | 
							
									if err != nil {
							 | 
						||
| 
								 | 
							
										return nil, err
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									return out, nil
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// ServerServiceServer is the server API for ServerService service.
							 | 
						||
| 
								 | 
							
								type ServerServiceServer interface {
							 | 
						||
| 
								 | 
							
									// 创建服务
							 | 
						||
| 
								 | 
							
									CreateServer(context.Context, *CreateServerRequest) (*CreateServerResponse, error)
							 | 
						||
| 
								 | 
							
									// 计算服务数量
							 | 
						||
| 
								 | 
							
									CountAllEnabledServers(context.Context, *CountAllEnabledServersRequest) (*CountAllEnabledServersResponse, error)
							 | 
						||
| 
								 | 
							
									// 列出单页服务
							 | 
						||
| 
								 | 
							
									ListEnabledServers(context.Context, *ListEnabledServersRequest) (*ListEnabledServersResponse, error)
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// UnimplementedServerServiceServer can be embedded to have forward compatible implementations.
							 | 
						||
| 
								 | 
							
								type UnimplementedServerServiceServer struct {
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (*UnimplementedServerServiceServer) CreateServer(context.Context, *CreateServerRequest) (*CreateServerResponse, error) {
							 | 
						||
| 
								 | 
							
									return nil, status.Errorf(codes.Unimplemented, "method CreateServer not implemented")
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								func (*UnimplementedServerServiceServer) CountAllEnabledServers(context.Context, *CountAllEnabledServersRequest) (*CountAllEnabledServersResponse, error) {
							 | 
						||
| 
								 | 
							
									return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledServers not implemented")
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								func (*UnimplementedServerServiceServer) ListEnabledServers(context.Context, *ListEnabledServersRequest) (*ListEnabledServersResponse, error) {
							 | 
						||
| 
								 | 
							
									return nil, status.Errorf(codes.Unimplemented, "method ListEnabledServers not implemented")
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func RegisterServerServiceServer(s *grpc.Server, srv ServerServiceServer) {
							 | 
						||
| 
								 | 
							
									s.RegisterService(&_ServerService_serviceDesc, srv)
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func _ServerService_CreateServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
							 | 
						||
| 
								 | 
							
									in := new(CreateServerRequest)
							 | 
						||
| 
								 | 
							
									if err := dec(in); err != nil {
							 | 
						||
| 
								 | 
							
										return nil, err
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									if interceptor == nil {
							 | 
						||
| 
								 | 
							
										return srv.(ServerServiceServer).CreateServer(ctx, in)
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									info := &grpc.UnaryServerInfo{
							 | 
						||
| 
								 | 
							
										Server:     srv,
							 | 
						||
| 
								 | 
							
										FullMethod: "/pb.ServerService/CreateServer",
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									handler := func(ctx context.Context, req interface{}) (interface{}, error) {
							 | 
						||
| 
								 | 
							
										return srv.(ServerServiceServer).CreateServer(ctx, req.(*CreateServerRequest))
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									return interceptor(ctx, in, info, handler)
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func _ServerService_CountAllEnabledServers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
							 | 
						||
| 
								 | 
							
									in := new(CountAllEnabledServersRequest)
							 | 
						||
| 
								 | 
							
									if err := dec(in); err != nil {
							 | 
						||
| 
								 | 
							
										return nil, err
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									if interceptor == nil {
							 | 
						||
| 
								 | 
							
										return srv.(ServerServiceServer).CountAllEnabledServers(ctx, in)
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									info := &grpc.UnaryServerInfo{
							 | 
						||
| 
								 | 
							
										Server:     srv,
							 | 
						||
| 
								 | 
							
										FullMethod: "/pb.ServerService/CountAllEnabledServers",
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									handler := func(ctx context.Context, req interface{}) (interface{}, error) {
							 | 
						||
| 
								 | 
							
										return srv.(ServerServiceServer).CountAllEnabledServers(ctx, req.(*CountAllEnabledServersRequest))
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									return interceptor(ctx, in, info, handler)
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func _ServerService_ListEnabledServers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
							 | 
						||
| 
								 | 
							
									in := new(ListEnabledServersRequest)
							 | 
						||
| 
								 | 
							
									if err := dec(in); err != nil {
							 | 
						||
| 
								 | 
							
										return nil, err
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									if interceptor == nil {
							 | 
						||
| 
								 | 
							
										return srv.(ServerServiceServer).ListEnabledServers(ctx, in)
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									info := &grpc.UnaryServerInfo{
							 | 
						||
| 
								 | 
							
										Server:     srv,
							 | 
						||
| 
								 | 
							
										FullMethod: "/pb.ServerService/ListEnabledServers",
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									handler := func(ctx context.Context, req interface{}) (interface{}, error) {
							 | 
						||
| 
								 | 
							
										return srv.(ServerServiceServer).ListEnabledServers(ctx, req.(*ListEnabledServersRequest))
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									return interceptor(ctx, in, info, handler)
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								var _ServerService_serviceDesc = grpc.ServiceDesc{
							 | 
						||
| 
								 | 
							
									ServiceName: "pb.ServerService",
							 | 
						||
| 
								 | 
							
									HandlerType: (*ServerServiceServer)(nil),
							 | 
						||
| 
								 | 
							
									Methods: []grpc.MethodDesc{
							 | 
						||
| 
								 | 
							
										{
							 | 
						||
| 
								 | 
							
											MethodName: "createServer",
							 | 
						||
| 
								 | 
							
											Handler:    _ServerService_CreateServer_Handler,
							 | 
						||
| 
								 | 
							
										},
							 | 
						||
| 
								 | 
							
										{
							 | 
						||
| 
								 | 
							
											MethodName: "countAllEnabledServers",
							 | 
						||
| 
								 | 
							
											Handler:    _ServerService_CountAllEnabledServers_Handler,
							 | 
						||
| 
								 | 
							
										},
							 | 
						||
| 
								 | 
							
										{
							 | 
						||
| 
								 | 
							
											MethodName: "listEnabledServers",
							 | 
						||
| 
								 | 
							
											Handler:    _ServerService_ListEnabledServers_Handler,
							 | 
						||
| 
								 | 
							
										},
							 | 
						||
| 
								 | 
							
									},
							 | 
						||
| 
								 | 
							
									Streams:  []grpc.StreamDesc{},
							 | 
						||
| 
								 | 
							
									Metadata: "service_server.proto",
							 | 
						||
| 
								 | 
							
								}
							 |