replit-protocol 0.2.4

Repl.it's container protocol in Rust.
Documentation
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
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: client.proto

package api

import (
	fmt "fmt"
	proto "github.com/golang/protobuf/proto"
	timestamp "github.com/golang/protobuf/ptypes/timestamp"
	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.ProtoPackageIsVersion3 // please upgrade the proto package

// Whether to persist filesystem, metadata, or both.
type ReplToken_Persistence int32

const (
	// This is the usual mode of operation: both filesystem and metadata will be
	// persisted.
	ReplToken_PERSISTENT ReplToken_Persistence = 0
	// The ephemeral flag indicates the repl being connected to will have a time
	// restriction on stored metadata.  This has the consequence that repl will
	// be unable to wakeup or serve static traffic once the metadata has timed
	// out. This option does NOT affect filesystem and other data persistence.
	//
	// For context, this value is used on the client when repls are created for:
	// - replrun
	// - guests
	// - anon users
	// - temp vnc repls
	// - users with non-verified emails
	ReplToken_EPHEMERAL ReplToken_Persistence = 1
	// This indicates that the repl being connected does not have the ability to
	// persist files or be woken up after the lifetime of this repl expires.
	//
	// For context, this value is used on the client when repls are created for:
	// - replrun
	// - guests
	// - language pages
	ReplToken_NONE ReplToken_Persistence = 2
)

var ReplToken_Persistence_name = map[int32]string{
	0: "PERSISTENT",
	1: "EPHEMERAL",
	2: "NONE",
}

var ReplToken_Persistence_value = map[string]int32{
	"PERSISTENT": 0,
	"EPHEMERAL":  1,
	"NONE":       2,
}

func (x ReplToken_Persistence) String() string {
	return proto.EnumName(ReplToken_Persistence_name, int32(x))
}

func (ReplToken_Persistence) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_014de31d7ac8c57c, []int{2, 0}
}

// allows the client to choose a wire format.
type ReplToken_WireFormat int32

const (
	// The default wire format: Protobuf-over-WebSocket.
	ReplToken_PROTOBUF ReplToken_WireFormat = 0
	// Legacy protocol.
	ReplToken_JSON ReplToken_WireFormat = 1 // Deprecated: Do not use.
)

var ReplToken_WireFormat_name = map[int32]string{
	0: "PROTOBUF",
	1: "JSON",
}

var ReplToken_WireFormat_value = map[string]int32{
	"PROTOBUF": 0,
	"JSON":     1,
}

func (x ReplToken_WireFormat) String() string {
	return proto.EnumName(ReplToken_WireFormat_name, int32(x))
}

func (ReplToken_WireFormat) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_014de31d7ac8c57c, []int{2, 1}
}

// This message constitutes the repl metadata and define the repl we're
// connecting to. All fields are required unless otherwise stated.
type Repl struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Language string `protobuf:"bytes,2,opt,name=language,proto3" json:"language,omitempty"`
	Bucket   string `protobuf:"bytes,3,opt,name=bucket,proto3" json:"bucket,omitempty"`
	Slug     string `protobuf:"bytes,4,opt,name=slug,proto3" json:"slug,omitempty"`
	User     string `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"`
	// (Optional) The replID of a repl to be used as the source filesystem. All
	// writes will still go to the actual repl. This is intended to be a
	// replacement for guest repls, giving us cheap COW semantics so all
	// connections can have a real repl.
	//
	// One exception:
	//
	// It's important to note that data is not implicitly copied from src to
	// dest. Only what is explicitly written when talking to pid1 (either
	// gcsfiles or snapshots) will persist. This makes it slightly different
	// than just forking.
	//
	// It's unclear what the behaviour should be if:
	// - the dest and src repl both exist
	// - the dest and src are the same
	// - we have an src but no dest
	// consider these unsupported/undefined for now.
	SourceRepl           string   `protobuf:"bytes,6,opt,name=sourceRepl,proto3" json:"sourceRepl,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *Repl) Reset()         { *m = Repl{} }
func (m *Repl) String() string { return proto.CompactTextString(m) }
func (*Repl) ProtoMessage()    {}
func (*Repl) Descriptor() ([]byte, []int) {
	return fileDescriptor_014de31d7ac8c57c, []int{0}
}

func (m *Repl) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_Repl.Unmarshal(m, b)
}
func (m *Repl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_Repl.Marshal(b, m, deterministic)
}
func (m *Repl) XXX_Merge(src proto.Message) {
	xxx_messageInfo_Repl.Merge(m, src)
}
func (m *Repl) XXX_Size() int {
	return xxx_messageInfo_Repl.Size(m)
}
func (m *Repl) XXX_DiscardUnknown() {
	xxx_messageInfo_Repl.DiscardUnknown(m)
}

var xxx_messageInfo_Repl proto.InternalMessageInfo

func (m *Repl) GetId() string {
	if m != nil {
		return m.Id
	}
	return ""
}

func (m *Repl) GetLanguage() string {
	if m != nil {
		return m.Language
	}
	return ""
}

func (m *Repl) GetBucket() string {
	if m != nil {
		return m.Bucket
	}
	return ""
}

func (m *Repl) GetSlug() string {
	if m != nil {
		return m.Slug
	}
	return ""
}

func (m *Repl) GetUser() string {
	if m != nil {
		return m.User
	}
	return ""
}

func (m *Repl) GetSourceRepl() string {
	if m != nil {
		return m.SourceRepl
	}
	return ""
}

// The resource limits that should be applied to the Repl's container.
type ResourceLimits struct {
	// Whether the repl has network access.
	Net bool `protobuf:"varint,1,opt,name=net,proto3" json:"net,omitempty"`
	// The amount of RAM in bytes that this repl will have.
	Memory int64 `protobuf:"varint,2,opt,name=memory,proto3" json:"memory,omitempty"`
	// The number of cores that the container will be allowed to have.
	Threads float64 `protobuf:"fixed64,3,opt,name=threads,proto3" json:"threads,omitempty"`
	// The Docker container weight factor for the scheduler. Similar to the
	// `--cpu-shares` commandline flag.
	Shares float64 `protobuf:"fixed64,4,opt,name=shares,proto3" json:"shares,omitempty"`
	// The size of the disk in bytes.
	Disk                 int64    `protobuf:"varint,5,opt,name=disk,proto3" json:"disk,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ResourceLimits) Reset()         { *m = ResourceLimits{} }
func (m *ResourceLimits) String() string { return proto.CompactTextString(m) }
func (*ResourceLimits) ProtoMessage()    {}
func (*ResourceLimits) Descriptor() ([]byte, []int) {
	return fileDescriptor_014de31d7ac8c57c, []int{1}
}

func (m *ResourceLimits) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ResourceLimits.Unmarshal(m, b)
}
func (m *ResourceLimits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ResourceLimits.Marshal(b, m, deterministic)
}
func (m *ResourceLimits) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ResourceLimits.Merge(m, src)
}
func (m *ResourceLimits) XXX_Size() int {
	return xxx_messageInfo_ResourceLimits.Size(m)
}
func (m *ResourceLimits) XXX_DiscardUnknown() {
	xxx_messageInfo_ResourceLimits.DiscardUnknown(m)
}

var xxx_messageInfo_ResourceLimits proto.InternalMessageInfo

func (m *ResourceLimits) GetNet() bool {
	if m != nil {
		return m.Net
	}
	return false
}

func (m *ResourceLimits) GetMemory() int64 {
	if m != nil {
		return m.Memory
	}
	return 0
}

func (m *ResourceLimits) GetThreads() float64 {
	if m != nil {
		return m.Threads
	}
	return 0
}

func (m *ResourceLimits) GetShares() float64 {
	if m != nil {
		return m.Shares
	}
	return 0
}

func (m *ResourceLimits) GetDisk() int64 {
	if m != nil {
		return m.Disk
	}
	return 0
}

// ReplToken is the expected client options during the handshake. This is encoded
// into the token that is used to connect using WebSocket.
type ReplToken struct {
	// Issue timestamp. Equivalent to JWT's "iat" (Issued At) claim.  Tokens with
	// no `iat` field will be treated as if they had been issed at the UNIX epoch
	// (1970-01-01T00:00:00Z).
	Iat *timestamp.Timestamp `protobuf:"bytes,1,opt,name=iat,proto3" json:"iat,omitempty"`
	// Expiration timestamp. Equivalent to JWT's "exp" (Expiration Time) Claim.
	// If unset, will default to one hour after `iat`.
	Exp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=exp,proto3" json:"exp,omitempty"`
	// An arbitrary string that helps prevent replay attacks by ensuring that all
	// tokens are distinct.
	Salt string `protobuf:"bytes,3,opt,name=salt,proto3" json:"salt,omitempty"`
	// The cluster that a repl is located in. This prevents replay attacks in
	// which a user is given a token for one cluster and then presents that same
	// token to a conman instance in another token, which could lead to a case
	// where multiple containers are associated with a repl.
	//
	// Conman therefore needs to validate that this parameter matches the
	// `-cluster` flag it was started with.
	Cluster string `protobuf:"bytes,4,opt,name=cluster,proto3" json:"cluster,omitempty"`
	// Whether to persist filesystem, metadata, or both.  When connecting to an
	// already running/existing repl, its settings will be updated to match this
	// mode.
	Persistence ReplToken_Persistence `protobuf:"varint,6,opt,name=persistence,proto3,enum=api.ReplToken_Persistence" json:"persistence,omitempty"`
	// One of the three ways to identify a repl in goval.
	//
	// Types that are valid to be assigned to Metadata:
	//	*ReplToken_Repl
	//	*ReplToken_Id
	//	*ReplToken_Classroom
	Metadata isReplToken_Metadata `protobuf_oneof:"metadata"`
	// The resource limits for the container.
	ResourceLimits *ResourceLimits      `protobuf:"bytes,10,opt,name=resourceLimits,proto3" json:"resourceLimits,omitempty"`
	Format         ReplToken_WireFormat `protobuf:"varint,12,opt,name=format,proto3,enum=api.ReplToken_WireFormat" json:"format,omitempty"`
	Presenced      *ReplToken_Presenced `protobuf:"bytes,13,opt,name=presenced,proto3" json:"presenced,omitempty"`
	// Flags are handy for passing arbitrary configs along. Mostly used so
	// the client can try out new features
	Flags                []string `protobuf:"bytes,14,rep,name=flags,proto3" json:"flags,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ReplToken) Reset()         { *m = ReplToken{} }
func (m *ReplToken) String() string { return proto.CompactTextString(m) }
func (*ReplToken) ProtoMessage()    {}
func (*ReplToken) Descriptor() ([]byte, []int) {
	return fileDescriptor_014de31d7ac8c57c, []int{2}
}

func (m *ReplToken) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ReplToken.Unmarshal(m, b)
}
func (m *ReplToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ReplToken.Marshal(b, m, deterministic)
}
func (m *ReplToken) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ReplToken.Merge(m, src)
}
func (m *ReplToken) XXX_Size() int {
	return xxx_messageInfo_ReplToken.Size(m)
}
func (m *ReplToken) XXX_DiscardUnknown() {
	xxx_messageInfo_ReplToken.DiscardUnknown(m)
}

var xxx_messageInfo_ReplToken proto.InternalMessageInfo

func (m *ReplToken) GetIat() *timestamp.Timestamp {
	if m != nil {
		return m.Iat
	}
	return nil
}

func (m *ReplToken) GetExp() *timestamp.Timestamp {
	if m != nil {
		return m.Exp
	}
	return nil
}

func (m *ReplToken) GetSalt() string {
	if m != nil {
		return m.Salt
	}
	return ""
}

func (m *ReplToken) GetCluster() string {
	if m != nil {
		return m.Cluster
	}
	return ""
}

func (m *ReplToken) GetPersistence() ReplToken_Persistence {
	if m != nil {
		return m.Persistence
	}
	return ReplToken_PERSISTENT
}

type isReplToken_Metadata interface {
	isReplToken_Metadata()
}

type ReplToken_Repl struct {
	Repl *Repl `protobuf:"bytes,7,opt,name=repl,proto3,oneof"`
}

type ReplToken_Id struct {
	Id *ReplToken_ReplID `protobuf:"bytes,8,opt,name=id,proto3,oneof"`
}

type ReplToken_Classroom struct {
	Classroom *ReplToken_ClassroomMetadata `protobuf:"bytes,9,opt,name=classroom,proto3,oneof"`
}

func (*ReplToken_Repl) isReplToken_Metadata() {}

func (*ReplToken_Id) isReplToken_Metadata() {}

func (*ReplToken_Classroom) isReplToken_Metadata() {}

func (m *ReplToken) GetMetadata() isReplToken_Metadata {
	if m != nil {
		return m.Metadata
	}
	return nil
}

func (m *ReplToken) GetRepl() *Repl {
	if x, ok := m.GetMetadata().(*ReplToken_Repl); ok {
		return x.Repl
	}
	return nil
}

func (m *ReplToken) GetId() *ReplToken_ReplID {
	if x, ok := m.GetMetadata().(*ReplToken_Id); ok {
		return x.Id
	}
	return nil
}

// Deprecated: Do not use.
func (m *ReplToken) GetClassroom() *ReplToken_ClassroomMetadata {
	if x, ok := m.GetMetadata().(*ReplToken_Classroom); ok {
		return x.Classroom
	}
	return nil
}

func (m *ReplToken) GetResourceLimits() *ResourceLimits {
	if m != nil {
		return m.ResourceLimits
	}
	return nil
}

func (m *ReplToken) GetFormat() ReplToken_WireFormat {
	if m != nil {
		return m.Format
	}
	return ReplToken_PROTOBUF
}

func (m *ReplToken) GetPresenced() *ReplToken_Presenced {
	if m != nil {
		return m.Presenced
	}
	return nil
}

func (m *ReplToken) GetFlags() []string {
	if m != nil {
		return m.Flags
	}
	return nil
}

// XXX_OneofWrappers is for the internal use of the proto package.
func (*ReplToken) XXX_OneofWrappers() []interface{} {
	return []interface{}{
		(*ReplToken_Repl)(nil),
		(*ReplToken_Id)(nil),
		(*ReplToken_Classroom)(nil),
	}
}

// Metadata for the classroom. This is deprecated and should be removed
// hopefully soon.
type ReplToken_ClassroomMetadata struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Language             string   `protobuf:"bytes,2,opt,name=language,proto3" json:"language,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ReplToken_ClassroomMetadata) Reset()         { *m = ReplToken_ClassroomMetadata{} }
func (m *ReplToken_ClassroomMetadata) String() string { return proto.CompactTextString(m) }
func (*ReplToken_ClassroomMetadata) ProtoMessage()    {}
func (*ReplToken_ClassroomMetadata) Descriptor() ([]byte, []int) {
	return fileDescriptor_014de31d7ac8c57c, []int{2, 0}
}

func (m *ReplToken_ClassroomMetadata) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ReplToken_ClassroomMetadata.Unmarshal(m, b)
}
func (m *ReplToken_ClassroomMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ReplToken_ClassroomMetadata.Marshal(b, m, deterministic)
}
func (m *ReplToken_ClassroomMetadata) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ReplToken_ClassroomMetadata.Merge(m, src)
}
func (m *ReplToken_ClassroomMetadata) XXX_Size() int {
	return xxx_messageInfo_ReplToken_ClassroomMetadata.Size(m)
}
func (m *ReplToken_ClassroomMetadata) XXX_DiscardUnknown() {
	xxx_messageInfo_ReplToken_ClassroomMetadata.DiscardUnknown(m)
}

var xxx_messageInfo_ReplToken_ClassroomMetadata proto.InternalMessageInfo

func (m *ReplToken_ClassroomMetadata) GetId() string {
	if m != nil {
		return m.Id
	}
	return ""
}

func (m *ReplToken_ClassroomMetadata) GetLanguage() string {
	if m != nil {
		return m.Language
	}
	return ""
}

// Metadata for a repl that is only identified by its id.
type ReplToken_ReplID struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// (Optional) See the comment for Repl.sourceRepl.
	SourceRepl           string   `protobuf:"bytes,2,opt,name=sourceRepl,proto3" json:"sourceRepl,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ReplToken_ReplID) Reset()         { *m = ReplToken_ReplID{} }
func (m *ReplToken_ReplID) String() string { return proto.CompactTextString(m) }
func (*ReplToken_ReplID) ProtoMessage()    {}
func (*ReplToken_ReplID) Descriptor() ([]byte, []int) {
	return fileDescriptor_014de31d7ac8c57c, []int{2, 1}
}

func (m *ReplToken_ReplID) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ReplToken_ReplID.Unmarshal(m, b)
}
func (m *ReplToken_ReplID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ReplToken_ReplID.Marshal(b, m, deterministic)
}
func (m *ReplToken_ReplID) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ReplToken_ReplID.Merge(m, src)
}
func (m *ReplToken_ReplID) XXX_Size() int {
	return xxx_messageInfo_ReplToken_ReplID.Size(m)
}
func (m *ReplToken_ReplID) XXX_DiscardUnknown() {
	xxx_messageInfo_ReplToken_ReplID.DiscardUnknown(m)
}

var xxx_messageInfo_ReplToken_ReplID proto.InternalMessageInfo

func (m *ReplToken_ReplID) GetId() string {
	if m != nil {
		return m.Id
	}
	return ""
}

func (m *ReplToken_ReplID) GetSourceRepl() string {
	if m != nil {
		return m.SourceRepl
	}
	return ""
}

type ReplToken_Presenced struct {
	BearerID             uint32   `protobuf:"varint,1,opt,name=bearerID,proto3" json:"bearerID,omitempty"`
	BearerName           string   `protobuf:"bytes,2,opt,name=bearerName,proto3" json:"bearerName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ReplToken_Presenced) Reset()         { *m = ReplToken_Presenced{} }
func (m *ReplToken_Presenced) String() string { return proto.CompactTextString(m) }
func (*ReplToken_Presenced) ProtoMessage()    {}
func (*ReplToken_Presenced) Descriptor() ([]byte, []int) {
	return fileDescriptor_014de31d7ac8c57c, []int{2, 2}
}

func (m *ReplToken_Presenced) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ReplToken_Presenced.Unmarshal(m, b)
}
func (m *ReplToken_Presenced) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ReplToken_Presenced.Marshal(b, m, deterministic)
}
func (m *ReplToken_Presenced) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ReplToken_Presenced.Merge(m, src)
}
func (m *ReplToken_Presenced) XXX_Size() int {
	return xxx_messageInfo_ReplToken_Presenced.Size(m)
}
func (m *ReplToken_Presenced) XXX_DiscardUnknown() {
	xxx_messageInfo_ReplToken_Presenced.DiscardUnknown(m)
}

var xxx_messageInfo_ReplToken_Presenced proto.InternalMessageInfo

func (m *ReplToken_Presenced) GetBearerID() uint32 {
	if m != nil {
		return m.BearerID
	}
	return 0
}

func (m *ReplToken_Presenced) GetBearerName() string {
	if m != nil {
		return m.BearerName
	}
	return ""
}

func init() {
	proto.RegisterEnum("api.ReplToken_Persistence", ReplToken_Persistence_name, ReplToken_Persistence_value)
	proto.RegisterEnum("api.ReplToken_WireFormat", ReplToken_WireFormat_name, ReplToken_WireFormat_value)
	proto.RegisterType((*Repl)(nil), "api.Repl")
	proto.RegisterType((*ResourceLimits)(nil), "api.ResourceLimits")
	proto.RegisterType((*ReplToken)(nil), "api.ReplToken")
	proto.RegisterType((*ReplToken_ClassroomMetadata)(nil), "api.ReplToken.ClassroomMetadata")
	proto.RegisterType((*ReplToken_ReplID)(nil), "api.ReplToken.ReplID")
	proto.RegisterType((*ReplToken_Presenced)(nil), "api.ReplToken.Presenced")
}

func init() { proto.RegisterFile("client.proto", fileDescriptor_014de31d7ac8c57c) }

var fileDescriptor_014de31d7ac8c57c = []byte{
	// 615 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x5f, 0x6f, 0xd3, 0x3e,
	0x14, 0x6d, 0xfe, 0x2c, 0x4b, 0xee, 0xba, 0xaa, 0x3f, 0xff, 0x00, 0x99, 0x3c, 0xb0, 0xa9, 0x2f,
	0xec, 0x01, 0x65, 0x62, 0x48, 0x13, 0x12, 0x48, 0x88, 0xb1, 0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