This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
forked from dotabuff/manta
/
c_peer2peer_netmessages.pb.go
368 lines (320 loc) · 14.4 KB
/
c_peer2peer_netmessages.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
// Code generated by protoc-gen-go.
// source: c_peer2peer_netmessages.proto
// DO NOT EDIT!
package dota
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
type P2P_Messages int32
const (
P2P_Messages_p2p_TextMessage P2P_Messages = 256
P2P_Messages_p2p_Voice P2P_Messages = 257
P2P_Messages_p2p_Ping P2P_Messages = 258
P2P_Messages_p2p_VRAvatarPosition P2P_Messages = 259
P2P_Messages_p2p_WatchSynchronization P2P_Messages = 260
)
var P2P_Messages_name = map[int32]string{
256: "p2p_TextMessage",
257: "p2p_Voice",
258: "p2p_Ping",
259: "p2p_VRAvatarPosition",
260: "p2p_WatchSynchronization",
}
var P2P_Messages_value = map[string]int32{
"p2p_TextMessage": 256,
"p2p_Voice": 257,
"p2p_Ping": 258,
"p2p_VRAvatarPosition": 259,
"p2p_WatchSynchronization": 260,
}
func (x P2P_Messages) Enum() *P2P_Messages {
p := new(P2P_Messages)
*p = x
return p
}
func (x P2P_Messages) String() string {
return proto.EnumName(P2P_Messages_name, int32(x))
}
func (x *P2P_Messages) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(P2P_Messages_value, data, "P2P_Messages")
if err != nil {
return err
}
*x = P2P_Messages(value)
return nil
}
func (P2P_Messages) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
type CP2P_Voice_Handler_Flags int32
const (
CP2P_Voice_Played_Audio CP2P_Voice_Handler_Flags = 1
)
var CP2P_Voice_Handler_Flags_name = map[int32]string{
1: "Played_Audio",
}
var CP2P_Voice_Handler_Flags_value = map[string]int32{
"Played_Audio": 1,
}
func (x CP2P_Voice_Handler_Flags) Enum() *CP2P_Voice_Handler_Flags {
p := new(CP2P_Voice_Handler_Flags)
*p = x
return p
}
func (x CP2P_Voice_Handler_Flags) String() string {
return proto.EnumName(CP2P_Voice_Handler_Flags_name, int32(x))
}
func (x *CP2P_Voice_Handler_Flags) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(CP2P_Voice_Handler_Flags_value, data, "CP2P_Voice_Handler_Flags")
if err != nil {
return err
}
*x = CP2P_Voice_Handler_Flags(value)
return nil
}
func (CP2P_Voice_Handler_Flags) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{2, 0} }
type CP2P_TextMessage struct {
Text []byte `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CP2P_TextMessage) Reset() { *m = CP2P_TextMessage{} }
func (m *CP2P_TextMessage) String() string { return proto.CompactTextString(m) }
func (*CP2P_TextMessage) ProtoMessage() {}
func (*CP2P_TextMessage) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (m *CP2P_TextMessage) GetText() []byte {
if m != nil {
return m.Text
}
return nil
}
type CSteam_Voice_Encoding struct {
VoiceData []byte `protobuf:"bytes,1,opt,name=voice_data" json:"voice_data,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CSteam_Voice_Encoding) Reset() { *m = CSteam_Voice_Encoding{} }
func (m *CSteam_Voice_Encoding) String() string { return proto.CompactTextString(m) }
func (*CSteam_Voice_Encoding) ProtoMessage() {}
func (*CSteam_Voice_Encoding) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
func (m *CSteam_Voice_Encoding) GetVoiceData() []byte {
if m != nil {
return m.VoiceData
}
return nil
}
type CP2P_Voice struct {
Audio *CMsgVoiceAudio `protobuf:"bytes,1,opt,name=audio" json:"audio,omitempty"`
BroadcastGroup *uint32 `protobuf:"varint,2,opt,name=broadcast_group" json:"broadcast_group,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CP2P_Voice) Reset() { *m = CP2P_Voice{} }
func (m *CP2P_Voice) String() string { return proto.CompactTextString(m) }
func (*CP2P_Voice) ProtoMessage() {}
func (*CP2P_Voice) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
func (m *CP2P_Voice) GetAudio() *CMsgVoiceAudio {
if m != nil {
return m.Audio
}
return nil
}
func (m *CP2P_Voice) GetBroadcastGroup() uint32 {
if m != nil && m.BroadcastGroup != nil {
return *m.BroadcastGroup
}
return 0
}
type CP2P_Ping struct {
SendTime *uint64 `protobuf:"varint,1,req,name=send_time" json:"send_time,omitempty"`
IsReply *bool `protobuf:"varint,2,req,name=is_reply" json:"is_reply,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CP2P_Ping) Reset() { *m = CP2P_Ping{} }
func (m *CP2P_Ping) String() string { return proto.CompactTextString(m) }
func (*CP2P_Ping) ProtoMessage() {}
func (*CP2P_Ping) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
func (m *CP2P_Ping) GetSendTime() uint64 {
if m != nil && m.SendTime != nil {
return *m.SendTime
}
return 0
}
func (m *CP2P_Ping) GetIsReply() bool {
if m != nil && m.IsReply != nil {
return *m.IsReply
}
return false
}
type CP2P_VRAvatarPosition struct {
BodyParts []*CP2P_VRAvatarPosition_COrientation `protobuf:"bytes,1,rep,name=body_parts" json:"body_parts,omitempty"`
HatId *int32 `protobuf:"varint,2,opt,name=hat_id" json:"hat_id,omitempty"`
SceneId *int32 `protobuf:"varint,3,opt,name=scene_id" json:"scene_id,omitempty"`
WorldScale *int32 `protobuf:"varint,4,opt,name=world_scale" json:"world_scale,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CP2P_VRAvatarPosition) Reset() { *m = CP2P_VRAvatarPosition{} }
func (m *CP2P_VRAvatarPosition) String() string { return proto.CompactTextString(m) }
func (*CP2P_VRAvatarPosition) ProtoMessage() {}
func (*CP2P_VRAvatarPosition) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
func (m *CP2P_VRAvatarPosition) GetBodyParts() []*CP2P_VRAvatarPosition_COrientation {
if m != nil {
return m.BodyParts
}
return nil
}
func (m *CP2P_VRAvatarPosition) GetHatId() int32 {
if m != nil && m.HatId != nil {
return *m.HatId
}
return 0
}
func (m *CP2P_VRAvatarPosition) GetSceneId() int32 {
if m != nil && m.SceneId != nil {
return *m.SceneId
}
return 0
}
func (m *CP2P_VRAvatarPosition) GetWorldScale() int32 {
if m != nil && m.WorldScale != nil {
return *m.WorldScale
}
return 0
}
type CP2P_VRAvatarPosition_COrientation struct {
Pos *CMsgVector `protobuf:"bytes,1,opt,name=pos" json:"pos,omitempty"`
Ang *CMsgQAngle `protobuf:"bytes,2,opt,name=ang" json:"ang,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CP2P_VRAvatarPosition_COrientation) Reset() { *m = CP2P_VRAvatarPosition_COrientation{} }
func (m *CP2P_VRAvatarPosition_COrientation) String() string { return proto.CompactTextString(m) }
func (*CP2P_VRAvatarPosition_COrientation) ProtoMessage() {}
func (*CP2P_VRAvatarPosition_COrientation) Descriptor() ([]byte, []int) {
return fileDescriptor1, []int{4, 0}
}
func (m *CP2P_VRAvatarPosition_COrientation) GetPos() *CMsgVector {
if m != nil {
return m.Pos
}
return nil
}
func (m *CP2P_VRAvatarPosition_COrientation) GetAng() *CMsgQAngle {
if m != nil {
return m.Ang
}
return nil
}
type CP2P_WatchSynchronization struct {
DemoTick *int32 `protobuf:"varint,1,opt,name=demo_tick" json:"demo_tick,omitempty"`
Paused *bool `protobuf:"varint,2,opt,name=paused" json:"paused,omitempty"`
TvListenVoiceIndices *int32 `protobuf:"varint,3,opt,name=tv_listen_voice_indices" json:"tv_listen_voice_indices,omitempty"`
DotaSpectatorMode *int32 `protobuf:"varint,4,opt,name=dota_spectator_mode" json:"dota_spectator_mode,omitempty"`
DotaSpectatorWatchingBroadcaster *int32 `protobuf:"varint,5,opt,name=dota_spectator_watching_broadcaster" json:"dota_spectator_watching_broadcaster,omitempty"`
DotaSpectatorHeroIndex *int32 `protobuf:"varint,6,opt,name=dota_spectator_hero_index" json:"dota_spectator_hero_index,omitempty"`
DotaSpectatorAutospeed *int32 `protobuf:"varint,7,opt,name=dota_spectator_autospeed" json:"dota_spectator_autospeed,omitempty"`
DotaReplaySpeed *int32 `protobuf:"varint,8,opt,name=dota_replay_speed" json:"dota_replay_speed,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *CP2P_WatchSynchronization) Reset() { *m = CP2P_WatchSynchronization{} }
func (m *CP2P_WatchSynchronization) String() string { return proto.CompactTextString(m) }
func (*CP2P_WatchSynchronization) ProtoMessage() {}
func (*CP2P_WatchSynchronization) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
func (m *CP2P_WatchSynchronization) GetDemoTick() int32 {
if m != nil && m.DemoTick != nil {
return *m.DemoTick
}
return 0
}
func (m *CP2P_WatchSynchronization) GetPaused() bool {
if m != nil && m.Paused != nil {
return *m.Paused
}
return false
}
func (m *CP2P_WatchSynchronization) GetTvListenVoiceIndices() int32 {
if m != nil && m.TvListenVoiceIndices != nil {
return *m.TvListenVoiceIndices
}
return 0
}
func (m *CP2P_WatchSynchronization) GetDotaSpectatorMode() int32 {
if m != nil && m.DotaSpectatorMode != nil {
return *m.DotaSpectatorMode
}
return 0
}
func (m *CP2P_WatchSynchronization) GetDotaSpectatorWatchingBroadcaster() int32 {
if m != nil && m.DotaSpectatorWatchingBroadcaster != nil {
return *m.DotaSpectatorWatchingBroadcaster
}
return 0
}
func (m *CP2P_WatchSynchronization) GetDotaSpectatorHeroIndex() int32 {
if m != nil && m.DotaSpectatorHeroIndex != nil {
return *m.DotaSpectatorHeroIndex
}
return 0
}
func (m *CP2P_WatchSynchronization) GetDotaSpectatorAutospeed() int32 {
if m != nil && m.DotaSpectatorAutospeed != nil {
return *m.DotaSpectatorAutospeed
}
return 0
}
func (m *CP2P_WatchSynchronization) GetDotaReplaySpeed() int32 {
if m != nil && m.DotaReplaySpeed != nil {
return *m.DotaReplaySpeed
}
return 0
}
func init() {
proto.RegisterType((*CP2P_TextMessage)(nil), "dota.CP2P_TextMessage")
proto.RegisterType((*CSteam_Voice_Encoding)(nil), "dota.CSteam_Voice_Encoding")
proto.RegisterType((*CP2P_Voice)(nil), "dota.CP2P_Voice")
proto.RegisterType((*CP2P_Ping)(nil), "dota.CP2P_Ping")
proto.RegisterType((*CP2P_VRAvatarPosition)(nil), "dota.CP2P_VRAvatarPosition")
proto.RegisterType((*CP2P_VRAvatarPosition_COrientation)(nil), "dota.CP2P_VRAvatarPosition.COrientation")
proto.RegisterType((*CP2P_WatchSynchronization)(nil), "dota.CP2P_WatchSynchronization")
proto.RegisterEnum("dota.P2P_Messages", P2P_Messages_name, P2P_Messages_value)
proto.RegisterEnum("dota.CP2P_Voice_Handler_Flags", CP2P_Voice_Handler_Flags_name, CP2P_Voice_Handler_Flags_value)
}
func init() { proto.RegisterFile("c_peer2peer_netmessages.proto", fileDescriptor1) }
var fileDescriptor1 = []byte{
// 580 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x52, 0x4f, 0x6f, 0x13, 0x3f,
0x10, 0xfd, 0xed, 0x26, 0xe9, 0x2f, 0x99, 0xa6, 0xed, 0xc6, 0x6d, 0xe9, 0xa6, 0xa8, 0x62, 0x9b,
0x5e, 0x22, 0x2a, 0x45, 0x28, 0x67, 0x2e, 0x25, 0x02, 0x71, 0xa0, 0x22, 0x50, 0x04, 0x47, 0xcb,
0x5d, 0x8f, 0x36, 0x56, 0x37, 0xf6, 0xca, 0x9e, 0xb4, 0x09, 0x12, 0x52, 0xf9, 0x73, 0xe1, 0x2b,
0xf2, 0x69, 0x90, 0x9d, 0x80, 0xda, 0xd0, 0xcb, 0x4a, 0xfb, 0xde, 0x9b, 0x79, 0xcf, 0x33, 0x03,
0x47, 0x39, 0xaf, 0x10, 0xed, 0xd0, 0x7f, 0xb8, 0x46, 0x9a, 0xa2, 0x73, 0xa2, 0x40, 0x37, 0xa8,
0xac, 0x21, 0xc3, 0xea, 0xd2, 0x90, 0x38, 0xec, 0xfc, 0x43, 0x1c, 0x3e, 0xd2, 0x48, 0x37, 0xc6,
0x5e, 0x5d, 0x0a, 0x87, 0xb4, 0xa8, 0xfe, 0xe0, 0xbd, 0x0c, 0x92, 0xd1, 0x78, 0x38, 0xe6, 0x1f,
0x70, 0x4e, 0xe7, 0xcb, 0x12, 0xd6, 0x86, 0x3a, 0xe1, 0x9c, 0xd2, 0x28, 0x8b, 0xfa, 0xed, 0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