336 lines
10 KiB
Go
336 lines
10 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.32.0
|
|
// protoc v4.25.1
|
|
// source: grpc/scene.proto
|
|
|
|
package grpc_pb
|
|
|
|
import (
|
|
common "common/proto/gen/common"
|
|
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 EnterReq struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
UID int32 `protobuf:"varint,1,opt,name=UID,proto3" json:"UID,omitempty"` // 用户ID
|
|
SID int64 `protobuf:"varint,2,opt,name=SID,proto3" json:"SID,omitempty"` // 服务ID
|
|
InstanceID int32 `protobuf:"varint,3,opt,name=InstanceID,proto3" json:"InstanceID,omitempty"` // 副本ID
|
|
}
|
|
|
|
func (x *EnterReq) Reset() {
|
|
*x = EnterReq{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_grpc_scene_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *EnterReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EnterReq) ProtoMessage() {}
|
|
|
|
func (x *EnterReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_grpc_scene_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 EnterReq.ProtoReflect.Descriptor instead.
|
|
func (*EnterReq) Descriptor() ([]byte, []int) {
|
|
return file_grpc_scene_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *EnterReq) GetUID() int32 {
|
|
if x != nil {
|
|
return x.UID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *EnterReq) GetSID() int64 {
|
|
if x != nil {
|
|
return x.SID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *EnterReq) GetInstanceID() int32 {
|
|
if x != nil {
|
|
return x.InstanceID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type EnterResp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
SID int64 `protobuf:"varint,1,opt,name=SID,proto3" json:"SID,omitempty"` // 服务ID
|
|
UniqueNo int64 `protobuf:"varint,2,opt,name=UniqueNo,proto3" json:"UniqueNo,omitempty"` // 副本唯一编号
|
|
}
|
|
|
|
func (x *EnterResp) Reset() {
|
|
*x = EnterResp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_grpc_scene_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *EnterResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EnterResp) ProtoMessage() {}
|
|
|
|
func (x *EnterResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_grpc_scene_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 EnterResp.ProtoReflect.Descriptor instead.
|
|
func (*EnterResp) Descriptor() ([]byte, []int) {
|
|
return file_grpc_scene_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *EnterResp) GetSID() int64 {
|
|
if x != nil {
|
|
return x.SID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *EnterResp) GetUniqueNo() int64 {
|
|
if x != nil {
|
|
return x.UniqueNo
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ActionReq struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
UniqueNo int64 `protobuf:"varint,1,opt,name=UniqueNo,proto3" json:"UniqueNo,omitempty"` // 副本唯一编号
|
|
UID int32 `protobuf:"varint,2,opt,name=UID,proto3" json:"UID,omitempty"` // 用户ID
|
|
Action int32 `protobuf:"varint,3,opt,name=Action,proto3" json:"Action,omitempty"` // 动作ID
|
|
Payload []byte `protobuf:"bytes,4,opt,name=Payload,proto3" json:"Payload,omitempty"` // 动作数据
|
|
}
|
|
|
|
func (x *ActionReq) Reset() {
|
|
*x = ActionReq{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_grpc_scene_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ActionReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ActionReq) ProtoMessage() {}
|
|
|
|
func (x *ActionReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_grpc_scene_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 ActionReq.ProtoReflect.Descriptor instead.
|
|
func (*ActionReq) Descriptor() ([]byte, []int) {
|
|
return file_grpc_scene_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *ActionReq) GetUniqueNo() int64 {
|
|
if x != nil {
|
|
return x.UniqueNo
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ActionReq) GetUID() int32 {
|
|
if x != nil {
|
|
return x.UID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ActionReq) GetAction() int32 {
|
|
if x != nil {
|
|
return x.Action
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ActionReq) GetPayload() []byte {
|
|
if x != nil {
|
|
return x.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_grpc_scene_proto protoreflect.FileDescriptor
|
|
|
|
var file_grpc_scene_proto_rawDesc = []byte{
|
|
0x0a, 0x10, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x63, 0x65, 0x6e, 0x65, 0x2e, 0x70, 0x72, 0x6f,
|
|
0x74, 0x6f, 0x1a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
0x22, 0x4e, 0x0a, 0x08, 0x45, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03,
|
|
0x55, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x55, 0x49, 0x44, 0x12, 0x10,
|
|
0x0a, 0x03, 0x53, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x53, 0x49, 0x44,
|
|
0x12, 0x1e, 0x0a, 0x0a, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x44, 0x18, 0x03,
|
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x44,
|
|
0x22, 0x39, 0x0a, 0x09, 0x45, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a,
|
|
0x03, 0x53, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x53, 0x49, 0x44, 0x12,
|
|
0x1a, 0x0a, 0x08, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x4e, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
0x03, 0x52, 0x08, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x4e, 0x6f, 0x22, 0x6b, 0x0a, 0x09, 0x41,
|
|
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x55, 0x6e, 0x69, 0x71,
|
|
0x75, 0x65, 0x4e, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x55, 0x6e, 0x69, 0x71,
|
|
0x75, 0x65, 0x4e, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
0x05, 0x52, 0x03, 0x55, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e,
|
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18,
|
|
0x0a, 0x07, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52,
|
|
0x07, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x32, 0x4b, 0x0a, 0x05, 0x53, 0x63, 0x65, 0x6e,
|
|
0x65, 0x12, 0x20, 0x0a, 0x05, 0x45, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x09, 0x2e, 0x45, 0x6e, 0x74,
|
|
0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x0a, 0x2e, 0x45, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73,
|
|
0x70, 0x22, 0x00, 0x12, 0x20, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0a, 0x2e,
|
|
0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x06, 0x2e, 0x45, 0x6d, 0x70, 0x74,
|
|
0x79, 0x22, 0x00, 0x28, 0x01, 0x42, 0x1a, 0x5a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f,
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x70,
|
|
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_grpc_scene_proto_rawDescOnce sync.Once
|
|
file_grpc_scene_proto_rawDescData = file_grpc_scene_proto_rawDesc
|
|
)
|
|
|
|
func file_grpc_scene_proto_rawDescGZIP() []byte {
|
|
file_grpc_scene_proto_rawDescOnce.Do(func() {
|
|
file_grpc_scene_proto_rawDescData = protoimpl.X.CompressGZIP(file_grpc_scene_proto_rawDescData)
|
|
})
|
|
return file_grpc_scene_proto_rawDescData
|
|
}
|
|
|
|
var file_grpc_scene_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_grpc_scene_proto_goTypes = []interface{}{
|
|
(*EnterReq)(nil), // 0: EnterReq
|
|
(*EnterResp)(nil), // 1: EnterResp
|
|
(*ActionReq)(nil), // 2: ActionReq
|
|
(*common.Empty)(nil), // 3: Empty
|
|
}
|
|
var file_grpc_scene_proto_depIdxs = []int32{
|
|
0, // 0: Scene.Enter:input_type -> EnterReq
|
|
2, // 1: Scene.Action:input_type -> ActionReq
|
|
1, // 2: Scene.Enter:output_type -> EnterResp
|
|
3, // 3: Scene.Action:output_type -> Empty
|
|
2, // [2:4] is the sub-list for method output_type
|
|
0, // [0:2] is the sub-list for method input_type
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
0, // [0:0] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_grpc_scene_proto_init() }
|
|
func file_grpc_scene_proto_init() {
|
|
if File_grpc_scene_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_grpc_scene_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*EnterReq); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_grpc_scene_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*EnterResp); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_grpc_scene_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ActionReq); 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_grpc_scene_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_grpc_scene_proto_goTypes,
|
|
DependencyIndexes: file_grpc_scene_proto_depIdxs,
|
|
MessageInfos: file_grpc_scene_proto_msgTypes,
|
|
}.Build()
|
|
File_grpc_scene_proto = out.File
|
|
file_grpc_scene_proto_rawDesc = nil
|
|
file_grpc_scene_proto_goTypes = nil
|
|
file_grpc_scene_proto_depIdxs = nil
|
|
}
|