forked from topfreegames/pitaya
-
Notifications
You must be signed in to change notification settings - Fork 0
/
request.pb.go
137 lines (118 loc) · 4.46 KB
/
request.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: request.proto
package protos
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type RPCType int32
const (
RPCType_Sys RPCType = 0
RPCType_User RPCType = 1
)
var RPCType_name = map[int32]string{
0: "Sys",
1: "User",
}
var RPCType_value = map[string]int32{
"Sys": 0,
"User": 1,
}
func (x RPCType) String() string {
return proto.EnumName(RPCType_name, int32(x))
}
func (RPCType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_request_af3dbb976ee13f3b, []int{0}
}
type Request struct {
Type RPCType `protobuf:"varint,1,opt,name=type,enum=protos.RPCType" json:"type,omitempty"`
Session *Session `protobuf:"bytes,2,opt,name=session" json:"session,omitempty"`
Msg *Msg `protobuf:"bytes,3,opt,name=msg" json:"msg,omitempty"`
FrontendID string `protobuf:"bytes,4,opt,name=frontendID" json:"frontendID,omitempty"`
Metadata []byte `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Request) Reset() { *m = Request{} }
func (m *Request) String() string { return proto.CompactTextString(m) }
func (*Request) ProtoMessage() {}
func (*Request) Descriptor() ([]byte, []int) {
return fileDescriptor_request_af3dbb976ee13f3b, []int{0}
}
func (m *Request) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Request.Unmarshal(m, b)
}
func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Request.Marshal(b, m, deterministic)
}
func (dst *Request) XXX_Merge(src proto.Message) {
xxx_messageInfo_Request.Merge(dst, src)
}
func (m *Request) XXX_Size() int {
return xxx_messageInfo_Request.Size(m)
}
func (m *Request) XXX_DiscardUnknown() {
xxx_messageInfo_Request.DiscardUnknown(m)
}
var xxx_messageInfo_Request proto.InternalMessageInfo
func (m *Request) GetType() RPCType {
if m != nil {
return m.Type
}
return RPCType_Sys
}
func (m *Request) GetSession() *Session {
if m != nil {
return m.Session
}
return nil
}
func (m *Request) GetMsg() *Msg {
if m != nil {
return m.Msg
}
return nil
}
func (m *Request) GetFrontendID() string {
if m != nil {
return m.FrontendID
}
return ""
}
func (m *Request) GetMetadata() []byte {
if m != nil {
return m.Metadata
}
return nil
}
func init() {
proto.RegisterType((*Request)(nil), "protos.Request")
proto.RegisterEnum("protos.RPCType", RPCType_name, RPCType_value)
}
func init() { proto.RegisterFile("request.proto", fileDescriptor_request_af3dbb976ee13f3b) }
var fileDescriptor_request_af3dbb976ee13f3b = []byte{
// 210 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x8f, 0xb1, 0x4e, 0x87, 0x30,
0x10, 0x87, 0xad, 0xa0, 0xfd, 0x73, 0x88, 0x92, 0x9b, 0x1a, 0xa2, 0xa6, 0xd1, 0xa5, 0x3a, 0x30,
0xe8, 0x23, 0xe8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