Debian Codegraph @

api/v0/mesosproto/authentication.pb.go

raw symbols SCIP
1 // Code generated by protoc-gen-gogo.
2 // source: authentication.proto
3 // DO NOT EDIT!
4
5 /*
6 Package mesosproto is a generated protocol buffer package.
7
8 It is generated from these files:
9 authentication.proto
10 internal.proto
11 mesos.proto
12 messages.proto
13
14 It has these top-level messages:
15 AuthenticateMessage
16 AuthenticationMechanismsMessage
17 AuthenticationStartMessage
18 AuthenticationStepMessage
19 AuthenticationCompletedMessage
20 AuthenticationFailedMessage
21 AuthenticationErrorMessage
22 InternalMasterChangeDetected
23 InternalTryAuthentication
24 InternalAuthenticationResult
25 InternalNetworkError
26 FrameworkID
27 OfferID
28 SlaveID
29 TaskID
30 ExecutorID
31 ContainerID
32 TimeInfo
33 DurationInfo
34 Address
35 URL
36 Unavailability
37 MachineID
38 MachineInfo
39 FrameworkInfo
40 HealthCheck
41 CommandInfo
42 ExecutorInfo
43 MasterInfo
44 SlaveInfo
45 Value
46 Attribute
47 Resource
48 TrafficControlStatistics
49 ResourceStatistics
50 ResourceUsage
51 PerfStatistics
52 Request
53 Offer
54 InverseOffer
55 TaskInfo
56 TaskStatus
57 Filters
58 Environment
59 Parameter
60 Parameters
61 Credential
62 Credentials
63 RateLimit
64 RateLimits
65 Image
66 Volume
67 NetworkInfo
68 ContainerInfo
69 ContainerStatus
70 Labels
71 Label
72 Port
73 Ports
74 DiscoveryInfo
75 AppcImageManifest
76 Task
77 StatusUpdate
78 StatusUpdateRecord
79 SubmitSchedulerRequest
80 SubmitSchedulerResponse
81 ExecutorToFrameworkMessage
82 FrameworkToExecutorMessage
83 RegisterFrameworkMessage
84 ReregisterFrameworkMessage
85 FrameworkRegisteredMessage
86 FrameworkReregisteredMessage
87 UnregisterFrameworkMessage
88 DeactivateFrameworkMessage
89 ResourceRequestMessage
90 ResourceOffersMessage
91 LaunchTasksMessage
92 RescindResourceOfferMessage
93 ReviveOffersMessage
94 RunTaskMessage
95 KillTaskMessage
96 StatusUpdateMessage
97 StatusUpdateAcknowledgementMessage
98 LostSlaveMessage
99 ReconcileTasksMessage
100 FrameworkErrorMessage
101 RegisterSlaveMessage
102 ReregisterSlaveMessage
103 SlaveRegisteredMessage
104 SlaveReregisteredMessage
105 UnregisterSlaveMessage
106 MasterSlaveConnection
107 PingSlaveMessage
108 PongSlaveMessage
109 ShutdownFrameworkMessage
110 ShutdownExecutorMessage
111 UpdateFrameworkMessage
112 CheckpointResourcesMessage
113 UpdateSlaveMessage
114 RegisterExecutorMessage
115 ExecutorRegisteredMessage
116 ExecutorReregisteredMessage
117 ExitedExecutorMessage
118 ReconnectExecutorMessage
119 ReregisterExecutorMessage
120 ShutdownMessage
121 Archive
122 TaskHealthStatus
123 HookExecuted
124 */
125 package mesosproto
126
127 import proto "github.com/gogo/protobuf/proto"
128 import fmt "fmt"
129 import math "math"
130
131 // discarding unused import gogoproto "github.com/gogo/protobuf/gogoproto"
132
133 import bytes "bytes"
134
135 import strings "strings"
136 import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto"
137 import sort "sort"
138 import strconv "strconv"
139 import reflect "reflect"
140
141 import io "io"
142
143 // Reference imports to suppress errors if they are not otherwise used.
144 var _ = proto.Marshal
145 var _ = fmt.Errorf
146 var _ = math.Inf
147
148 type AuthenticateMessage struct {
149 Pid *string `protobuf:"bytes,1,req,name=pid" json:"pid,omitempty"`
150 XXX_unrecognized []byte `json:"-"`
151 }
152
153 func (m *AuthenticateMessage) Reset() { *m = AuthenticateMessage{} }
154 func (*AuthenticateMessage) ProtoMessage() {}
155
156 func (m *AuthenticateMessage) GetPid() string {
157 if m != nil && m.Pid != nil {
158 return *m.Pid
159 }
160 return ""
161 }
162
163 type AuthenticationMechanismsMessage struct {
164 Mechanisms []string `protobuf:"bytes,1,rep,name=mechanisms" json:"mechanisms,omitempty"`
165 XXX_unrecognized []byte `json:"-"`
166 }
167
168 func (m *AuthenticationMechanismsMessage) Reset() { *m = AuthenticationMechanismsMessage{} }
169 func (*AuthenticationMechanismsMessage) ProtoMessage() {}
170
171 func (m *AuthenticationMechanismsMessage) GetMechanisms() []string {
172 if m != nil {
173 return m.Mechanisms
174 }
175 return nil
176 }
177
178 type AuthenticationStartMessage struct {
179 Mechanism *string `protobuf:"bytes,1,req,name=mechanism" json:"mechanism,omitempty"`
180 Data []byte `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"`
181 XXX_unrecognized []byte `json:"-"`
182 }
183
184 func (m *AuthenticationStartMessage) Reset() { *m = AuthenticationStartMessage{} }
185 func (*AuthenticationStartMessage) ProtoMessage() {}
186
187 func (m *AuthenticationStartMessage) GetMechanism() string {
188 if m != nil && m.Mechanism != nil {
189 return *m.Mechanism
190 }
191 return ""
192 }
193
194 func (m *AuthenticationStartMessage) GetData() []byte {
195 if m != nil {
196 return m.Data
197 }
198 return nil
199 }
200
201 type AuthenticationStepMessage struct {
202 Data []byte `protobuf:"bytes,1,req,name=data" json:"data,omitempty"`
203 XXX_unrecognized []byte `json:"-"`
204 }
205
206 func (m *AuthenticationStepMessage) Reset() { *m = AuthenticationStepMessage{} }
207 func (*AuthenticationStepMessage) ProtoMessage() {}
208
209 func (m *AuthenticationStepMessage) GetData() []byte {
210 if m != nil {
211 return m.Data
212 }
213 return nil
214 }
215
216 type AuthenticationCompletedMessage struct {
217 XXX_unrecognized []byte `json:"-"`
218 }
219
220 func (m *AuthenticationCompletedMessage) Reset() { *m = AuthenticationCompletedMessage{} }
221 func (*AuthenticationCompletedMessage) ProtoMessage() {}
222
223 type AuthenticationFailedMessage struct {
224 XXX_unrecognized []byte `json:"-"`
225 }
226
227 func (m *AuthenticationFailedMessage) Reset() { *m = AuthenticationFailedMessage{} }
228 func (*AuthenticationFailedMessage) ProtoMessage() {}
229
230 type AuthenticationErrorMessage struct {
231 Error *string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
232 XXX_unrecognized []byte `json:"-"`
233 }
234
235 func (m *AuthenticationErrorMessage) Reset() { *m = AuthenticationErrorMessage{} }
236 func (*AuthenticationErrorMessage) ProtoMessage() {}
237
238 func (m *AuthenticationErrorMessage) GetError() string {
239 if m != nil && m.Error != nil {
240 return *m.Error
241 }
242 return ""
243 }
244
245 func (this *AuthenticateMessage) VerboseEqual(that interface{}) error {
246 if that == nil {
247 if this == nil {
248 return nil
249 }
250 return fmt.Errorf("that == nil && this != nil")
251 }
252
253 that1, ok := that.(*AuthenticateMessage)
254 if !ok {
255 return fmt.Errorf("that is not of type *AuthenticateMessage")
256 }
257 if that1 == nil {
258 if this == nil {
259 return nil
260 }
261 return fmt.Errorf("that is type *AuthenticateMessage but is nil && this != nil")
262 } else if this == nil {
263 return fmt.Errorf("that is type *AuthenticateMessagebut is not nil && this == nil")
264 }
265 if this.Pid != nil && that1.Pid != nil {
266 if *this.Pid != *that1.Pid {
267 return fmt.Errorf("Pid this(%v) Not Equal that(%v)", *this.Pid, *that1.Pid)
268 }
269 } else if this.Pid != nil {
270 return fmt.Errorf("this.Pid == nil && that.Pid != nil")
271 } else if that1.Pid != nil {
272 return fmt.Errorf("Pid this(%v) Not Equal that(%v)", this.Pid, that1.Pid)
273 }
274 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
275 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
276 }
277 return nil
278 }
279 func (this *AuthenticateMessage) Equal(that interface{}) bool {
280 if that == nil {
281 if this == nil {
282 return true
283 }
284 return false
285 }
286
287 that1, ok := that.(*AuthenticateMessage)
288 if !ok {
289 return false
290 }
291 if that1 == nil {
292 if this == nil {
293 return true
294 }
295 return false
296 } else if this == nil {
297 return false
298 }
299 if this.Pid != nil && that1.Pid != nil {
300 if *this.Pid != *that1.Pid {
301 return false
302 }
303 } else if this.Pid != nil {
304 return false
305 } else if that1.Pid != nil {
306 return false
307 }
308 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
309 return false
310 }
311 return true
312 }
313 func (this *AuthenticationMechanismsMessage) VerboseEqual(that interface{}) error {
314 if that == nil {
315 if this == nil {
316 return nil
317 }
318 return fmt.Errorf("that == nil && this != nil")
319 }
320
321 that1, ok := that.(*AuthenticationMechanismsMessage)
322 if !ok {
323 return fmt.Errorf("that is not of type *AuthenticationMechanismsMessage")
324 }
325 if that1 == nil {
326 if this == nil {
327 return nil
328 }
329 return fmt.Errorf("that is type *AuthenticationMechanismsMessage but is nil && this != nil")
330 } else if this == nil {
331 return fmt.Errorf("that is type *AuthenticationMechanismsMessagebut is not nil && this == nil")
332 }
333 if len(this.Mechanisms) != len(that1.Mechanisms) {
334 return fmt.Errorf("Mechanisms this(%v) Not Equal that(%v)", len(this.Mechanisms), len(that1.Mechanisms))
335 }
336 for i := range this.Mechanisms {
337 if this.Mechanisms[i] != that1.Mechanisms[i] {
338 return fmt.Errorf("Mechanisms this[%v](%v) Not Equal that[%v](%v)", i, this.Mechanisms[i], i, that1.Mechanisms[i])
339 }
340 }
341 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
342 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
343 }
344 return nil
345 }
346 func (this *AuthenticationMechanismsMessage) Equal(that interface{}) bool {
347 if that == nil {
348 if this == nil {
349 return true
350 }
351 return false
352 }
353
354 that1, ok := that.(*AuthenticationMechanismsMessage)
355 if !ok {
356 return false
357 }
358 if that1 == nil {
359 if this == nil {
360 return true
361 }
362 return false
363 } else if this == nil {
364 return false
365 }
366 if len(this.Mechanisms) != len(that1.Mechanisms) {
367 return false
368 }
369 for i := range this.Mechanisms {
370 if this.Mechanisms[i] != that1.Mechanisms[i] {
371 return false
372 }
373 }
374 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
375 return false
376 }
377 return true
378 }
379 func (this *AuthenticationStartMessage) VerboseEqual(that interface{}) error {
380 if that == nil {
381 if this == nil {
382 return nil
383 }
384 return fmt.Errorf("that == nil && this != nil")
385 }
386
387 that1, ok := that.(*AuthenticationStartMessage)
388 if !ok {
389 return fmt.Errorf("that is not of type *AuthenticationStartMessage")
390 }
391 if that1 == nil {
392 if this == nil {
393 return nil
394 }
395 return fmt.Errorf("that is type *AuthenticationStartMessage but is nil && this != nil")
396 } else if this == nil {
397 return fmt.Errorf("that is type *AuthenticationStartMessagebut is not nil && this == nil")
398 }
399 if this.Mechanism != nil && that1.Mechanism != nil {
400 if *this.Mechanism != *that1.Mechanism {
401 return fmt.Errorf("Mechanism this(%v) Not Equal that(%v)", *this.Mechanism, *that1.Mechanism)
402 }
403 } else if this.Mechanism != nil {
404 return fmt.Errorf("this.Mechanism == nil && that.Mechanism != nil")
405 } else if that1.Mechanism != nil {
406 return fmt.Errorf("Mechanism this(%v) Not Equal that(%v)", this.Mechanism, that1.Mechanism)
407 }
408 if !bytes.Equal(this.Data, that1.Data) {
409 return fmt.Errorf("Data this(%v) Not Equal that(%v)", this.Data, that1.Data)
410 }
411 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
412 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
413 }
414 return nil
415 }
416 func (this *AuthenticationStartMessage) Equal(that interface{}) bool {
417 if that == nil {
418 if this == nil {
419 return true
420 }
421 return false
422 }
423
424 that1, ok := that.(*AuthenticationStartMessage)
425 if !ok {
426 return false
427 }
428 if that1 == nil {
429 if this == nil {
430 return true
431 }
432 return false
433 } else if this == nil {
434 return false
435 }
436 if this.Mechanism != nil && that1.Mechanism != nil {
437 if *this.Mechanism != *that1.Mechanism {
438 return false
439 }
440 } else if this.Mechanism != nil {
441 return false
442 } else if that1.Mechanism != nil {
443 return false
444 }
445 if !bytes.Equal(this.Data, that1.Data) {
446 return false
447 }
448 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
449 return false
450 }
451 return true
452 }
453 func (this *AuthenticationStepMessage) VerboseEqual(that interface{}) error {
454 if that == nil {
455 if this == nil {
456 return nil
457 }
458 return fmt.Errorf("that == nil && this != nil")
459 }
460
461 that1, ok := that.(*AuthenticationStepMessage)
462 if !ok {
463 return fmt.Errorf("that is not of type *AuthenticationStepMessage")
464 }
465 if that1 == nil {
466 if this == nil {
467 return nil
468 }
469 return fmt.Errorf("that is type *AuthenticationStepMessage but is nil && this != nil")
470 } else if this == nil {
471 return fmt.Errorf("that is type *AuthenticationStepMessagebut is not nil && this == nil")
472 }
473 if !bytes.Equal(this.Data, that1.Data) {
474 return fmt.Errorf("Data this(%v) Not Equal that(%v)", this.Data, that1.Data)
475 }
476 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
477 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
478 }
479 return nil
480 }
481 func (this *AuthenticationStepMessage) Equal(that interface{}) bool {
482 if that == nil {
483 if this == nil {
484 return true
485 }
486 return false
487 }
488
489 that1, ok := that.(*AuthenticationStepMessage)
490 if !ok {
491 return false
492 }
493 if that1 == nil {
494 if this == nil {
495 return true
496 }
497 return false
498 } else if this == nil {
499 return false
500 }
501 if !bytes.Equal(this.Data, that1.Data) {
502 return false
503 }
504 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
505 return false
506 }
507 return true
508 }
509 func (this *AuthenticationCompletedMessage) VerboseEqual(that interface{}) error {
510 if that == nil {
511 if this == nil {
512 return nil
513 }
514 return fmt.Errorf("that == nil && this != nil")
515 }
516
517 that1, ok := that.(*AuthenticationCompletedMessage)
518 if !ok {
519 return fmt.Errorf("that is not of type *AuthenticationCompletedMessage")
520 }
521 if that1 == nil {
522 if this == nil {
523 return nil
524 }
525 return fmt.Errorf("that is type *AuthenticationCompletedMessage but is nil && this != nil")
526 } else if this == nil {
527 return fmt.Errorf("that is type *AuthenticationCompletedMessagebut is not nil && this == nil")
528 }
529 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
530 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
531 }
532 return nil
533 }
534 func (this *AuthenticationCompletedMessage) Equal(that interface{}) bool {
535 if that == nil {
536 if this == nil {
537 return true
538 }
539 return false
540 }
541
542 that1, ok := that.(*AuthenticationCompletedMessage)
543 if !ok {
544 return false
545 }
546 if that1 == nil {
547 if this == nil {
548 return true
549 }
550 return false
551 } else if this == nil {
552 return false
553 }
554 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
555 return false
556 }
557 return true
558 }
559 func (this *AuthenticationFailedMessage) VerboseEqual(that interface{}) error {
560 if that == nil {
561 if this == nil {
562 return nil
563 }
564 return fmt.Errorf("that == nil && this != nil")
565 }
566
567 that1, ok := that.(*AuthenticationFailedMessage)
568 if !ok {
569 return fmt.Errorf("that is not of type *AuthenticationFailedMessage")
570 }
571 if that1 == nil {
572 if this == nil {
573 return nil
574 }
575 return fmt.Errorf("that is type *AuthenticationFailedMessage but is nil && this != nil")
576 } else if this == nil {
577 return fmt.Errorf("that is type *AuthenticationFailedMessagebut is not nil && this == nil")
578 }
579 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
580 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
581 }
582 return nil
583 }
584 func (this *AuthenticationFailedMessage) Equal(that interface{}) bool {
585 if that == nil {
586 if this == nil {
587 return true
588 }
589 return false
590 }
591
592 that1, ok := that.(*AuthenticationFailedMessage)
593 if !ok {
594 return false
595 }
596 if that1 == nil {
597 if this == nil {
598 return true
599 }
600 return false
601 } else if this == nil {
602 return false
603 }
604 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
605 return false
606 }
607 return true
608 }
609 func (this *AuthenticationErrorMessage) VerboseEqual(that interface{}) error {
610 if that == nil {
611 if this == nil {
612 return nil
613 }
614 return fmt.Errorf("that == nil && this != nil")
615 }
616
617 that1, ok := that.(*AuthenticationErrorMessage)
618 if !ok {
619 return fmt.Errorf("that is not of type *AuthenticationErrorMessage")
620 }
621 if that1 == nil {
622 if this == nil {
623 return nil
624 }
625 return fmt.Errorf("that is type *AuthenticationErrorMessage but is nil && this != nil")
626 } else if this == nil {
627 return fmt.Errorf("that is type *AuthenticationErrorMessagebut is not nil && this == nil")
628 }
629 if this.Error != nil && that1.Error != nil {
630 if *this.Error != *that1.Error {
631 return fmt.Errorf("Error this(%v) Not Equal that(%v)", *this.Error, *that1.Error)
632 }
633 } else if this.Error != nil {
634 return fmt.Errorf("this.Error == nil && that.Error != nil")
635 } else if that1.Error != nil {
636 return fmt.Errorf("Error this(%v) Not Equal that(%v)", this.Error, that1.Error)
637 }
638 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
639 return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
640 }
641 return nil
642 }
643 func (this *AuthenticationErrorMessage) Equal(that interface{}) bool {
644 if that == nil {
645 if this == nil {
646 return true
647 }
648 return false
649 }
650
651 that1, ok := that.(*AuthenticationErrorMessage)
652 if !ok {
653 return false
654 }
655 if that1 == nil {
656 if this == nil {
657 return true
658 }
659 return false
660 } else if this == nil {
661 return false
662 }
663 if this.Error != nil && that1.Error != nil {
664 if *this.Error != *that1.Error {
665 return false
666 }
667 } else if this.Error != nil {
668 return false
669 } else if that1.Error != nil {
670 return false
671 }
672 if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
673 return false
674 }
675 return true
676 }
677 func (this *AuthenticateMessage) GoString() string {
678 if this == nil {
679 return "nil"
680 }
681 s := make([]string, 0, 5)
682 s = append(s, "&mesosproto.AuthenticateMessage{")
683 if this.Pid != nil {
684 s = append(s, "Pid: "+valueToGoStringAuthentication(this.Pid, "string")+",\n")
685 }
686 if this.XXX_unrecognized != nil {
687 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
688 }
689 s = append(s, "}")
690 return strings.Join(s, "")
691 }
692 func (this *AuthenticationMechanismsMessage) GoString() string {
693 if this == nil {
694 return "nil"
695 }
696 s := make([]string, 0, 5)
697 s = append(s, "&mesosproto.AuthenticationMechanismsMessage{")
698 if this.Mechanisms != nil {
699 s = append(s, "Mechanisms: "+fmt.Sprintf("%#v", this.Mechanisms)+",\n")
700 }
701 if this.XXX_unrecognized != nil {
702 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
703 }
704 s = append(s, "}")
705 return strings.Join(s, "")
706 }
707 func (this *AuthenticationStartMessage) GoString() string {
708 if this == nil {
709 return "nil"
710 }
711 s := make([]string, 0, 6)
712 s = append(s, "&mesosproto.AuthenticationStartMessage{")
713 if this.Mechanism != nil {
714 s = append(s, "Mechanism: "+valueToGoStringAuthentication(this.Mechanism, "string")+",\n")
715 }
716 if this.Data != nil {
717 s = append(s, "Data: "+valueToGoStringAuthentication(this.Data, "byte")+",\n")
718 }
719 if this.XXX_unrecognized != nil {
720 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
721 }
722 s = append(s, "}")
723 return strings.Join(s, "")
724 }
725 func (this *AuthenticationStepMessage) GoString() string {
726 if this == nil {
727 return "nil"
728 }
729 s := make([]string, 0, 5)
730 s = append(s, "&mesosproto.AuthenticationStepMessage{")
731 if this.Data != nil {
732 s = append(s, "Data: "+valueToGoStringAuthentication(this.Data, "byte")+",\n")
733 }
734 if this.XXX_unrecognized != nil {
735 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
736 }
737 s = append(s, "}")
738 return strings.Join(s, "")
739 }
740 func (this *AuthenticationCompletedMessage) GoString() string {
741 if this == nil {
742 return "nil"
743 }
744 s := make([]string, 0, 4)
745 s = append(s, "&mesosproto.AuthenticationCompletedMessage{")
746 if this.XXX_unrecognized != nil {
747 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
748 }
749 s = append(s, "}")
750 return strings.Join(s, "")
751 }
752 func (this *AuthenticationFailedMessage) GoString() string {
753 if this == nil {
754 return "nil"
755 }
756 s := make([]string, 0, 4)
757 s = append(s, "&mesosproto.AuthenticationFailedMessage{")
758 if this.XXX_unrecognized != nil {
759 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
760 }
761 s = append(s, "}")
762 return strings.Join(s, "")
763 }
764 func (this *AuthenticationErrorMessage) GoString() string {
765 if this == nil {
766 return "nil"
767 }
768 s := make([]string, 0, 5)
769 s = append(s, "&mesosproto.AuthenticationErrorMessage{")
770 if this.Error != nil {
771 s = append(s, "Error: "+valueToGoStringAuthentication(this.Error, "string")+",\n")
772 }
773 if this.XXX_unrecognized != nil {
774 s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
775 }
776 s = append(s, "}")
777 return strings.Join(s, "")
778 }
779 func valueToGoStringAuthentication(v interface{}, typ string) string {
780 rv := reflect.ValueOf(v)
781 if rv.IsNil() {
782 return "nil"
783 }
784 pv := reflect.Indirect(rv).Interface()
785 return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
786 }
787 func extensionToGoStringAuthentication(e map[int32]github_com_gogo_protobuf_proto.Extension) string {
788 if e == nil {
789 return "nil"
790 }
791 s := "map[int32]proto.Extension{"
792 keys := make([]int, 0, len(e))
793 for k := range e {
794 keys = append(keys, int(k))
795 }
796 sort.Ints(keys)
797 ss := []string{}
798 for _, k := range keys {
799 ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString())
800 }
801 s += strings.Join(ss, ",") + "}"
802 return s
803 }
804 func (m *AuthenticateMessage) Marshal() (data []byte, err error) {
805 size := m.Size()
806 data = make([]byte, size)
807 n, err := m.MarshalTo(data)
808 if err != nil {
809 return nil, err
810 }
811 return data[:n], nil
812 }
813
814 func (m *AuthenticateMessage) MarshalTo(data []byte) (int, error) {
815 var i int
816 _ = i
817 var l int
818 _ = l
819 if m.Pid == nil {
820 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("pid")
821 } else {
822 data[i] = 0xa
823 i++
824 i = encodeVarintAuthentication(data, i, uint64(len(*m.Pid)))
825 i += copy(data[i:], *m.Pid)
826 }
827 if m.XXX_unrecognized != nil {
828 i += copy(data[i:], m.XXX_unrecognized)
829 }
830 return i, nil
831 }
832
833 func (m *AuthenticationMechanismsMessage) Marshal() (data []byte, err error) {
834 size := m.Size()
835 data = make([]byte, size)
836 n, err := m.MarshalTo(data)
837 if err != nil {
838 return nil, err
839 }
840 return data[:n], nil
841 }
842
843 func (m *AuthenticationMechanismsMessage) MarshalTo(data []byte) (int, error) {
844 var i int
845 _ = i
846 var l int
847 _ = l
848 if len(m.Mechanisms) > 0 {
849 for _, s := range m.Mechanisms {
850 data[i] = 0xa
851 i++
852 l = len(s)
853 for l >= 1<<7 {
854 data[i] = uint8(uint64(l)&0x7f | 0x80)
855 l >>= 7
856 i++
857 }
858 data[i] = uint8(l)
859 i++
860 i += copy(data[i:], s)
861 }
862 }
863 if m.XXX_unrecognized != nil {
864 i += copy(data[i:], m.XXX_unrecognized)
865 }
866 return i, nil
867 }
868
869 func (m *AuthenticationStartMessage) Marshal() (data []byte, err error) {
870 size := m.Size()
871 data = make([]byte, size)
872 n, err := m.MarshalTo(data)
873 if err != nil {
874 return nil, err
875 }
876 return data[:n], nil
877 }
878
879 func (m *AuthenticationStartMessage) MarshalTo(data []byte) (int, error) {
880 var i int
881 _ = i
882 var l int
883 _ = l
884 if m.Mechanism == nil {
885 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("mechanism")
886 } else {
887 data[i] = 0xa
888 i++
889 i = encodeVarintAuthentication(data, i, uint64(len(*m.Mechanism)))
890 i += copy(data[i:], *m.Mechanism)
891 }
892 if m.Data != nil {
893 data[i] = 0x12
894 i++
895 i = encodeVarintAuthentication(data, i, uint64(len(m.Data)))
896 i += copy(data[i:], m.Data)
897 }
898 if m.XXX_unrecognized != nil {
899 i += copy(data[i:], m.XXX_unrecognized)
900 }
901 return i, nil
902 }
903
904 func (m *AuthenticationStepMessage) Marshal() (data []byte, err error) {
905 size := m.Size()
906 data = make([]byte, size)
907 n, err := m.MarshalTo(data)
908 if err != nil {
909 return nil, err
910 }
911 return data[:n], nil
912 }
913
914 func (m *AuthenticationStepMessage) MarshalTo(data []byte) (int, error) {
915 var i int
916 _ = i
917 var l int
918 _ = l
919 if m.Data == nil {
920 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("data")
921 } else {
922 data[i] = 0xa
923 i++
924 i = encodeVarintAuthentication(data, i, uint64(len(m.Data)))
925 i += copy(data[i:], m.Data)
926 }
927 if m.XXX_unrecognized != nil {
928 i += copy(data[i:], m.XXX_unrecognized)
929 }
930 return i, nil
931 }
932
933 func (m *AuthenticationCompletedMessage) Marshal() (data []byte, err error) {
934 size := m.Size()
935 data = make([]byte, size)
936 n, err := m.MarshalTo(data)
937 if err != nil {
938 return nil, err
939 }
940 return data[:n], nil
941 }
942
943 func (m *AuthenticationCompletedMessage) MarshalTo(data []byte) (int, error) {
944 var i int
945 _ = i
946 var l int
947 _ = l
948 if m.XXX_unrecognized != nil {
949 i += copy(data[i:], m.XXX_unrecognized)
950 }
951 return i, nil
952 }
953
954 func (m *AuthenticationFailedMessage) Marshal() (data []byte, err error) {
955 size := m.Size()
956 data = make([]byte, size)
957 n, err := m.MarshalTo(data)
958 if err != nil {
959 return nil, err
960 }
961 return data[:n], nil
962 }
963
964 func (m *AuthenticationFailedMessage) MarshalTo(data []byte) (int, error) {
965 var i int
966 _ = i
967 var l int
968 _ = l
969 if m.XXX_unrecognized != nil {
970 i += copy(data[i:], m.XXX_unrecognized)
971 }
972 return i, nil
973 }
974
975 func (m *AuthenticationErrorMessage) Marshal() (data []byte, err error) {
976 size := m.Size()
977 data = make([]byte, size)
978 n, err := m.MarshalTo(data)
979 if err != nil {
980 return nil, err
981 }
982 return data[:n], nil
983 }
984
985 func (m *AuthenticationErrorMessage) MarshalTo(data []byte) (int, error) {
986 var i int
987 _ = i
988 var l int
989 _ = l
990 if m.Error != nil {
991 data[i] = 0xa
992 i++
993 i = encodeVarintAuthentication(data, i, uint64(len(*m.Error)))
994 i += copy(data[i:], *m.Error)
995 }
996 if m.XXX_unrecognized != nil {
997 i += copy(data[i:], m.XXX_unrecognized)
998 }
999 return i, nil
1000 }
1001
1002 func encodeFixed64Authentication(data []byte, offset int, v uint64) int {
1003 data[offset] = uint8(v)
1004 data[offset+1] = uint8(v >> 8)
1005 data[offset+2] = uint8(v >> 16)
1006 data[offset+3] = uint8(v >> 24)
1007 data[offset+4] = uint8(v >> 32)
1008 data[offset+5] = uint8(v >> 40)
1009 data[offset+6] = uint8(v >> 48)
1010 data[offset+7] = uint8(v >> 56)
1011 return offset + 8
1012 }
1013 func encodeFixed32Authentication(data []byte, offset int, v uint32) int {
1014 data[offset] = uint8(v)
1015 data[offset+1] = uint8(v >> 8)
1016 data[offset+2] = uint8(v >> 16)
1017 data[offset+3] = uint8(v >> 24)
1018 return offset + 4
1019 }
1020 func encodeVarintAuthentication(data []byte, offset int, v uint64) int {
1021 for v >= 1<<7 {
1022 data[offset] = uint8(v&0x7f | 0x80)
1023 v >>= 7
1024 offset++
1025 }
1026 data[offset] = uint8(v)
1027 return offset + 1
1028 }
1029 func NewPopulatedAuthenticateMessage(r randyAuthentication, easy bool) *AuthenticateMessage {
1030 this := &AuthenticateMessage{}
1031 v1 := randStringAuthentication(r)
1032 this.Pid = &v1
1033 if !easy && r.Intn(10) != 0 {
1034 this.XXX_unrecognized = randUnrecognizedAuthentication(r, 2)
1035 }
1036 return this
1037 }
1038
1039 func NewPopulatedAuthenticationMechanismsMessage(r randyAuthentication, easy bool) *AuthenticationMechanismsMessage {
1040 this := &AuthenticationMechanismsMessage{}
1041 if r.Intn(10) != 0 {
1042 v2 := r.Intn(10)
1043 this.Mechanisms = make([]string, v2)
1044 for i := 0; i < v2; i++ {
1045 this.Mechanisms[i] = randStringAuthentication(r)
1046 }
1047 }
1048 if !easy && r.Intn(10) != 0 {
1049 this.XXX_unrecognized = randUnrecognizedAuthentication(r, 2)
1050 }
1051 return this
1052 }
1053
1054 func NewPopulatedAuthenticationStartMessage(r randyAuthentication, easy bool) *AuthenticationStartMessage {
1055 this := &AuthenticationStartMessage{}
1056 v3 := randStringAuthentication(r)
1057 this.Mechanism = &v3
1058 if r.Intn(10) != 0 {
1059 v4 := r.Intn(100)
1060 this.Data = make([]byte, v4)
1061 for i := 0; i < v4; i++ {
1062 this.Data[i] = byte(r.Intn(256))
1063 }
1064 }
1065 if !easy && r.Intn(10) != 0 {
1066 this.XXX_unrecognized = randUnrecognizedAuthentication(r, 3)
1067 }
1068 return this
1069 }
1070
1071 func NewPopulatedAuthenticationStepMessage(r randyAuthentication, easy bool) *AuthenticationStepMessage {
1072 this := &AuthenticationStepMessage{}
1073 v5 := r.Intn(100)
1074 this.Data = make([]byte, v5)
1075 for i := 0; i < v5; i++ {
1076 this.Data[i] = byte(r.Intn(256))
1077 }
1078 if !easy && r.Intn(10) != 0 {
1079 this.XXX_unrecognized = randUnrecognizedAuthentication(r, 2)
1080 }
1081 return this
1082 }
1083
1084 func NewPopulatedAuthenticationCompletedMessage(r randyAuthentication, easy bool) *AuthenticationCompletedMessage {
1085 this := &AuthenticationCompletedMessage{}
1086 if !easy && r.Intn(10) != 0 {
1087 this.XXX_unrecognized = randUnrecognizedAuthentication(r, 1)
1088 }
1089 return this
1090 }
1091
1092 func NewPopulatedAuthenticationFailedMessage(r randyAuthentication, easy bool) *AuthenticationFailedMessage {
1093 this := &AuthenticationFailedMessage{}
1094 if !easy && r.Intn(10) != 0 {
1095 this.XXX_unrecognized = randUnrecognizedAuthentication(r, 1)
1096 }
1097 return this
1098 }
1099
1100 func NewPopulatedAuthenticationErrorMessage(r randyAuthentication, easy bool) *AuthenticationErrorMessage {
1101 this := &AuthenticationErrorMessage{}
1102 if r.Intn(10) != 0 {
1103 v6 := randStringAuthentication(r)
1104 this.Error = &v6
1105 }
1106 if !easy && r.Intn(10) != 0 {
1107 this.XXX_unrecognized = randUnrecognizedAuthentication(r, 2)
1108 }
1109 return this
1110 }
1111
1112 type randyAuthentication interface {
1113 Float32() float32
1114 Float64() float64
1115 Int63() int64
1116 Int31() int32
1117 Uint32() uint32
1118 Intn(n int) int
1119 }
1120
1121 func randUTF8RuneAuthentication(r randyAuthentication) rune {
1122 ru := r.Intn(62)
1123 if ru < 10 {
1124 return rune(ru + 48)
1125 } else if ru < 36 {
1126 return rune(ru + 55)
1127 }
1128 return rune(ru + 61)
1129 }
1130 func randStringAuthentication(r randyAuthentication) string {
1131 v7 := r.Intn(100)
1132 tmps := make([]rune, v7)
1133 for i := 0; i < v7; i++ {
1134 tmps[i] = randUTF8RuneAuthentication(r)
1135 }
1136 return string(tmps)
1137 }
1138 func randUnrecognizedAuthentication(r randyAuthentication, maxFieldNumber int) (data []byte) {
1139 l := r.Intn(5)
1140 for i := 0; i < l; i++ {
1141 wire := r.Intn(4)
1142 if wire == 3 {
1143 wire = 5
1144 }
1145 fieldNumber := maxFieldNumber + r.Intn(100)
1146 data = randFieldAuthentication(data, r, fieldNumber, wire)
1147 }
1148 return data
1149 }
1150 func randFieldAuthentication(data []byte, r randyAuthentication, fieldNumber int, wire int) []byte {
1151 key := uint32(fieldNumber)<<3 | uint32(wire)
1152 switch wire {
1153 case 0:
1154 data = encodeVarintPopulateAuthentication(data, uint64(key))
1155 v8 := r.Int63()
1156 if r.Intn(2) == 0 {
1157 v8 *= -1
1158 }
1159 data = encodeVarintPopulateAuthentication(data, uint64(v8))
1160 case 1:
1161 data = encodeVarintPopulateAuthentication(data, uint64(key))
1162 data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
1163 case 2:
1164 data = encodeVarintPopulateAuthentication(data, uint64(key))
1165 ll := r.Intn(100)
1166 data = encodeVarintPopulateAuthentication(data, uint64(ll))
1167 for j := 0; j < ll; j++ {
1168 data = append(data, byte(r.Intn(256)))
1169 }
1170 default:
1171 data = encodeVarintPopulateAuthentication(data, uint64(key))
1172 data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
1173 }
1174 return data
1175 }
1176 func encodeVarintPopulateAuthentication(data []byte, v uint64) []byte {
1177 for v >= 1<<7 {
1178 data = append(data, uint8(uint64(v)&0x7f|0x80))
1179 v >>= 7
1180 }
1181 data = append(data, uint8(v))
1182 return data
1183 }
1184 func (m *AuthenticateMessage) Size() (n int) {
1185 var l int
1186 _ = l
1187 if m.Pid != nil {
1188 l = len(*m.Pid)
1189 n += 1 + l + sovAuthentication(uint64(l))
1190 }
1191 if m.XXX_unrecognized != nil {
1192 n += len(m.XXX_unrecognized)
1193 }
1194 return n
1195 }
1196
1197 func (m *AuthenticationMechanismsMessage) Size() (n int) {
1198 var l int
1199 _ = l
1200 if len(m.Mechanisms) > 0 {
1201 for _, s := range m.Mechanisms {
1202 l = len(s)
1203 n += 1 + l + sovAuthentication(uint64(l))
1204 }
1205 }
1206 if m.XXX_unrecognized != nil {
1207 n += len(m.XXX_unrecognized)
1208 }
1209 return n
1210 }
1211
1212 func (m *AuthenticationStartMessage) Size() (n int) {
1213 var l int
1214 _ = l
1215 if m.Mechanism != nil {
1216 l = len(*m.Mechanism)
1217 n += 1 + l + sovAuthentication(uint64(l))
1218 }
1219 if m.Data != nil {
1220 l = len(m.Data)
1221 n += 1 + l + sovAuthentication(uint64(l))
1222 }
1223 if m.XXX_unrecognized != nil {
1224 n += len(m.XXX_unrecognized)
1225 }
1226 return n
1227 }
1228
1229 func (m *AuthenticationStepMessage) Size() (n int) {
1230 var l int
1231 _ = l
1232 if m.Data != nil {
1233 l = len(m.Data)
1234 n += 1 + l + sovAuthentication(uint64(l))
1235 }
1236 if m.XXX_unrecognized != nil {
1237 n += len(m.XXX_unrecognized)
1238 }
1239 return n
1240 }
1241
1242 func (m *AuthenticationCompletedMessage) Size() (n int) {
1243 var l int
1244 _ = l
1245 if m.XXX_unrecognized != nil {
1246 n += len(m.XXX_unrecognized)
1247 }
1248 return n
1249 }
1250
1251 func (m *AuthenticationFailedMessage) Size() (n int) {
1252 var l int
1253 _ = l
1254 if m.XXX_unrecognized != nil {
1255 n += len(m.XXX_unrecognized)
1256 }
1257 return n
1258 }
1259
1260 func (m *AuthenticationErrorMessage) Size() (n int) {
1261 var l int
1262 _ = l
1263 if m.Error != nil {
1264 l = len(*m.Error)
1265 n += 1 + l + sovAuthentication(uint64(l))
1266 }
1267 if m.XXX_unrecognized != nil {
1268 n += len(m.XXX_unrecognized)
1269 }
1270 return n
1271 }
1272
1273 func sovAuthentication(x uint64) (n int) {
1274 for {
1275 n++
1276 x >>= 7
1277 if x == 0 {
1278 break
1279 }
1280 }
1281 return n
1282 }
1283 func sozAuthentication(x uint64) (n int) {
1284 return sovAuthentication(uint64((x << 1) ^ uint64((int64(x) >> 63))))
1285 }
1286 func (this *AuthenticateMessage) String() string {
1287 if this == nil {
1288 return "nil"
1289 }
1290 s := strings.Join([]string{`&AuthenticateMessage{`,
1291 `Pid:` + valueToStringAuthentication(this.Pid) + `,`,
1292 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
1293 `}`,
1294 }, "")
1295 return s
1296 }
1297 func (this *AuthenticationMechanismsMessage) String() string {
1298 if this == nil {
1299 return "nil"
1300 }
1301 s := strings.Join([]string{`&AuthenticationMechanismsMessage{`,
1302 `Mechanisms:` + fmt.Sprintf("%v", this.Mechanisms) + `,`,
1303 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
1304 `}`,
1305 }, "")
1306 return s
1307 }
1308 func (this *AuthenticationStartMessage) String() string {
1309 if this == nil {
1310 return "nil"
1311 }
1312 s := strings.Join([]string{`&AuthenticationStartMessage{`,
1313 `Mechanism:` + valueToStringAuthentication(this.Mechanism) + `,`,
1314 `Data:` + valueToStringAuthentication(this.Data) + `,`,
1315 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
1316 `}`,
1317 }, "")
1318 return s
1319 }
1320 func (this *AuthenticationStepMessage) String() string {
1321 if this == nil {
1322 return "nil"
1323 }
1324 s := strings.Join([]string{`&AuthenticationStepMessage{`,
1325 `Data:` + valueToStringAuthentication(this.Data) + `,`,
1326 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
1327 `}`,
1328 }, "")
1329 return s
1330 }
1331 func (this *AuthenticationCompletedMessage) String() string {
1332 if this == nil {
1333 return "nil"
1334 }
1335 s := strings.Join([]string{`&AuthenticationCompletedMessage{`,
1336 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
1337 `}`,
1338 }, "")
1339 return s
1340 }
1341 func (this *AuthenticationFailedMessage) String() string {
1342 if this == nil {
1343 return "nil"
1344 }
1345 s := strings.Join([]string{`&AuthenticationFailedMessage{`,
1346 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
1347 `}`,
1348 }, "")
1349 return s
1350 }
1351 func (this *AuthenticationErrorMessage) String() string {
1352 if this == nil {
1353 return "nil"
1354 }
1355 s := strings.Join([]string{`&AuthenticationErrorMessage{`,
1356 `Error:` + valueToStringAuthentication(this.Error) + `,`,
1357 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
1358 `}`,
1359 }, "")
1360 return s
1361 }
1362 func valueToStringAuthentication(v interface{}) string {
1363 rv := reflect.ValueOf(v)
1364 if rv.IsNil() {
1365 return "nil"
1366 }
1367 pv := reflect.Indirect(rv).Interface()
1368 return fmt.Sprintf("*%v", pv)
1369 }
1370 func (m *AuthenticateMessage) Unmarshal(data []byte) error {
1371 var hasFields [1]uint64
1372 l := len(data)
1373 iNdEx := 0
1374 for iNdEx < l {
1375 preIndex := iNdEx
1376 var wire uint64
1377 for shift := uint(0); ; shift += 7 {
1378 if shift >= 64 {
1379 return ErrIntOverflowAuthentication
1380 }
1381 if iNdEx >= l {
1382 return io.ErrUnexpectedEOF
1383 }
1384 b := data[iNdEx]
1385 iNdEx++
1386 wire |= (uint64(b) & 0x7F) << shift
1387 if b < 0x80 {
1388 break
1389 }
1390 }
1391 fieldNum := int32(wire >> 3)
1392 wireType := int(wire & 0x7)
1393 if wireType == 4 {
1394 return fmt.Errorf("proto: AuthenticateMessage: wiretype end group for non-group")
1395 }
1396 if fieldNum <= 0 {
1397 return fmt.Errorf("proto: AuthenticateMessage: illegal tag %d (wire type %d)", fieldNum, wire)
1398 }
1399 switch fieldNum {
1400 case 1:
1401 if wireType != 2 {
1402 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType)
1403 }
1404 var stringLen uint64
1405 for shift := uint(0); ; shift += 7 {
1406 if shift >= 64 {
1407 return ErrIntOverflowAuthentication
1408 }
1409 if iNdEx >= l {
1410 return io.ErrUnexpectedEOF
1411 }
1412 b := data[iNdEx]
1413 iNdEx++
1414 stringLen |= (uint64(b) & 0x7F) << shift
1415 if b < 0x80 {
1416 break
1417 }
1418 }
1419 intStringLen := int(stringLen)
1420 if intStringLen < 0 {
1421 return ErrInvalidLengthAuthentication
1422 }
1423 postIndex := iNdEx + intStringLen
1424 if postIndex > l {
1425 return io.ErrUnexpectedEOF
1426 }
1427 s := string(data[iNdEx:postIndex])
1428 m.Pid = &s
1429 iNdEx = postIndex
1430 hasFields[0] |= uint64(0x00000001)
1431 default:
1432 iNdEx = preIndex
1433 skippy, err := skipAuthentication(data[iNdEx:])
1434 if err != nil {
1435 return err
1436 }
1437 if skippy < 0 {
1438 return ErrInvalidLengthAuthentication
1439 }
1440 if (iNdEx + skippy) > l {
1441 return io.ErrUnexpectedEOF
1442 }
1443 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
1444 iNdEx += skippy
1445 }
1446 }
1447 if hasFields[0]&uint64(0x00000001) == 0 {
1448 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("pid")
1449 }
1450
1451 if iNdEx > l {
1452 return io.ErrUnexpectedEOF
1453 }
1454 return nil
1455 }
1456 func (m *AuthenticationMechanismsMessage) Unmarshal(data []byte) error {
1457 l := len(data)
1458 iNdEx := 0
1459 for iNdEx < l {
1460 preIndex := iNdEx
1461 var wire uint64
1462 for shift := uint(0); ; shift += 7 {
1463 if shift >= 64 {
1464 return ErrIntOverflowAuthentication
1465 }
1466 if iNdEx >= l {
1467 return io.ErrUnexpectedEOF
1468 }
1469 b := data[iNdEx]
1470 iNdEx++
1471 wire |= (uint64(b) & 0x7F) << shift
1472 if b < 0x80 {
1473 break
1474 }
1475 }
1476 fieldNum := int32(wire >> 3)
1477 wireType := int(wire & 0x7)
1478 if wireType == 4 {
1479 return fmt.Errorf("proto: AuthenticationMechanismsMessage: wiretype end group for non-group")
1480 }
1481 if fieldNum <= 0 {
1482 return fmt.Errorf("proto: AuthenticationMechanismsMessage: illegal tag %d (wire type %d)", fieldNum, wire)
1483 }
1484 switch fieldNum {
1485 case 1:
1486 if wireType != 2 {
1487 return fmt.Errorf("proto: wrong wireType = %d for field Mechanisms", wireType)
1488 }
1489 var stringLen uint64
1490 for shift := uint(0); ; shift += 7 {
1491 if shift >= 64 {
1492 return ErrIntOverflowAuthentication
1493 }
1494 if iNdEx >= l {
1495 return io.ErrUnexpectedEOF
1496 }
1497 b := data[iNdEx]
1498 iNdEx++
1499 stringLen |= (uint64(b) & 0x7F) << shift
1500 if b < 0x80 {
1501 break
1502 }
1503 }
1504 intStringLen := int(stringLen)
1505 if intStringLen < 0 {
1506 return ErrInvalidLengthAuthentication
1507 }
1508 postIndex := iNdEx + intStringLen
1509 if postIndex > l {
1510 return io.ErrUnexpectedEOF
1511 }
1512 m.Mechanisms = append(m.Mechanisms, string(data[iNdEx:postIndex]))
1513 iNdEx = postIndex
1514 default:
1515 iNdEx = preIndex
1516 skippy, err := skipAuthentication(data[iNdEx:])
1517 if err != nil {
1518 return err
1519 }
1520 if skippy < 0 {
1521 return ErrInvalidLengthAuthentication
1522 }
1523 if (iNdEx + skippy) > l {
1524 return io.ErrUnexpectedEOF
1525 }
1526 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
1527 iNdEx += skippy
1528 }
1529 }
1530
1531 if iNdEx > l {
1532 return io.ErrUnexpectedEOF
1533 }
1534 return nil
1535 }
1536 func (m *AuthenticationStartMessage) Unmarshal(data []byte) error {
1537 var hasFields [1]uint64
1538 l := len(data)
1539 iNdEx := 0
1540 for iNdEx < l {
1541 preIndex := iNdEx
1542 var wire uint64
1543 for shift := uint(0); ; shift += 7 {
1544 if shift >= 64 {
1545 return ErrIntOverflowAuthentication
1546 }
1547 if iNdEx >= l {
1548 return io.ErrUnexpectedEOF
1549 }
1550 b := data[iNdEx]
1551 iNdEx++
1552 wire |= (uint64(b) & 0x7F) << shift
1553 if b < 0x80 {
1554 break
1555 }
1556 }
1557 fieldNum := int32(wire >> 3)
1558 wireType := int(wire & 0x7)
1559 if wireType == 4 {
1560 return fmt.Errorf("proto: AuthenticationStartMessage: wiretype end group for non-group")
1561 }
1562 if fieldNum <= 0 {
1563 return fmt.Errorf("proto: AuthenticationStartMessage: illegal tag %d (wire type %d)", fieldNum, wire)
1564 }
1565 switch fieldNum {
1566 case 1:
1567 if wireType != 2 {
1568 return fmt.Errorf("proto: wrong wireType = %d for field Mechanism", wireType)
1569 }
1570 var stringLen uint64
1571 for shift := uint(0); ; shift += 7 {
1572 if shift >= 64 {
1573 return ErrIntOverflowAuthentication
1574 }
1575 if iNdEx >= l {
1576 return io.ErrUnexpectedEOF
1577 }
1578 b := data[iNdEx]
1579 iNdEx++
1580 stringLen |= (uint64(b) & 0x7F) << shift
1581 if b < 0x80 {
1582 break
1583 }
1584 }
1585 intStringLen := int(stringLen)
1586 if intStringLen < 0 {
1587 return ErrInvalidLengthAuthentication
1588 }
1589 postIndex := iNdEx + intStringLen
1590 if postIndex > l {
1591 return io.ErrUnexpectedEOF
1592 }
1593 s := string(data[iNdEx:postIndex])
1594 m.Mechanism = &s
1595 iNdEx = postIndex
1596 hasFields[0] |= uint64(0x00000001)
1597 case 2:
1598 if wireType != 2 {
1599 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
1600 }
1601 var byteLen int
1602 for shift := uint(0); ; shift += 7 {
1603 if shift >= 64 {
1604 return ErrIntOverflowAuthentication
1605 }
1606 if iNdEx >= l {
1607 return io.ErrUnexpectedEOF
1608 }
1609 b := data[iNdEx]
1610 iNdEx++
1611 byteLen |= (int(b) & 0x7F) << shift
1612 if b < 0x80 {
1613 break
1614 }
1615 }
1616 if byteLen < 0 {
1617 return ErrInvalidLengthAuthentication
1618 }
1619 postIndex := iNdEx + byteLen
1620 if postIndex > l {
1621 return io.ErrUnexpectedEOF
1622 }
1623 m.Data = append([]byte{}, data[iNdEx:postIndex]...)
1624 iNdEx = postIndex
1625 default:
1626 iNdEx = preIndex
1627 skippy, err := skipAuthentication(data[iNdEx:])
1628 if err != nil {
1629 return err
1630 }
1631 if skippy < 0 {
1632 return ErrInvalidLengthAuthentication
1633 }
1634 if (iNdEx + skippy) > l {
1635 return io.ErrUnexpectedEOF
1636 }
1637 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
1638 iNdEx += skippy
1639 }
1640 }
1641 if hasFields[0]&uint64(0x00000001) == 0 {
1642 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("mechanism")
1643 }
1644
1645 if iNdEx > l {
1646 return io.ErrUnexpectedEOF
1647 }
1648 return nil
1649 }
1650 func (m *AuthenticationStepMessage) Unmarshal(data []byte) error {
1651 var hasFields [1]uint64
1652 l := len(data)
1653 iNdEx := 0
1654 for iNdEx < l {
1655 preIndex := iNdEx
1656 var wire uint64
1657 for shift := uint(0); ; shift += 7 {
1658 if shift >= 64 {
1659 return ErrIntOverflowAuthentication
1660 }
1661 if iNdEx >= l {
1662 return io.ErrUnexpectedEOF
1663 }
1664 b := data[iNdEx]
1665 iNdEx++
1666 wire |= (uint64(b) & 0x7F) << shift
1667 if b < 0x80 {
1668 break
1669 }
1670 }
1671 fieldNum := int32(wire >> 3)
1672 wireType := int(wire & 0x7)
1673 if wireType == 4 {
1674 return fmt.Errorf("proto: AuthenticationStepMessage: wiretype end group for non-group")
1675 }
1676 if fieldNum <= 0 {
1677 return fmt.Errorf("proto: AuthenticationStepMessage: illegal tag %d (wire type %d)", fieldNum, wire)
1678 }
1679 switch fieldNum {
1680 case 1:
1681 if wireType != 2 {
1682 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
1683 }
1684 var byteLen int
1685 for shift := uint(0); ; shift += 7 {
1686 if shift >= 64 {
1687 return ErrIntOverflowAuthentication
1688 }
1689 if iNdEx >= l {
1690 return io.ErrUnexpectedEOF
1691 }
1692 b := data[iNdEx]
1693 iNdEx++
1694 byteLen |= (int(b) & 0x7F) << shift
1695 if b < 0x80 {
1696 break
1697 }
1698 }
1699 if byteLen < 0 {
1700 return ErrInvalidLengthAuthentication
1701 }
1702 postIndex := iNdEx + byteLen
1703 if postIndex > l {
1704 return io.ErrUnexpectedEOF
1705 }
1706 m.Data = append([]byte{}, data[iNdEx:postIndex]...)
1707 iNdEx = postIndex
1708 hasFields[0] |= uint64(0x00000001)
1709 default:
1710 iNdEx = preIndex
1711 skippy, err := skipAuthentication(data[iNdEx:])
1712 if err != nil {
1713 return err
1714 }
1715 if skippy < 0 {
1716 return ErrInvalidLengthAuthentication
1717 }
1718 if (iNdEx + skippy) > l {
1719 return io.ErrUnexpectedEOF
1720 }
1721 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
1722 iNdEx += skippy
1723 }
1724 }
1725 if hasFields[0]&uint64(0x00000001) == 0 {
1726 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("data")
1727 }
1728
1729 if iNdEx > l {
1730 return io.ErrUnexpectedEOF
1731 }
1732 return nil
1733 }
1734 func (m *AuthenticationCompletedMessage) Unmarshal(data []byte) error {
1735 l := len(data)
1736 iNdEx := 0
1737 for iNdEx < l {
1738 preIndex := iNdEx
1739 var wire uint64
1740 for shift := uint(0); ; shift += 7 {
1741 if shift >= 64 {
1742 return ErrIntOverflowAuthentication
1743 }
1744 if iNdEx >= l {
1745 return io.ErrUnexpectedEOF
1746 }
1747 b := data[iNdEx]
1748 iNdEx++
1749 wire |= (uint64(b) & 0x7F) << shift
1750 if b < 0x80 {
1751 break
1752 }
1753 }
1754 fieldNum := int32(wire >> 3)
1755 wireType := int(wire & 0x7)
1756 if wireType == 4 {
1757 return fmt.Errorf("proto: AuthenticationCompletedMessage: wiretype end group for non-group")
1758 }
1759 if fieldNum <= 0 {
1760 return fmt.Errorf("proto: AuthenticationCompletedMessage: illegal tag %d (wire type %d)", fieldNum, wire)
1761 }
1762 switch fieldNum {
1763 default:
1764 iNdEx = preIndex
1765 skippy, err := skipAuthentication(data[iNdEx:])
1766 if err != nil {
1767 return err
1768 }
1769 if skippy < 0 {
1770 return ErrInvalidLengthAuthentication
1771 }
1772 if (iNdEx + skippy) > l {
1773 return io.ErrUnexpectedEOF
1774 }
1775 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
1776 iNdEx += skippy
1777 }
1778 }
1779
1780 if iNdEx > l {
1781 return io.ErrUnexpectedEOF
1782 }
1783 return nil
1784 }
1785 func (m *AuthenticationFailedMessage) Unmarshal(data []byte) error {
1786 l := len(data)
1787 iNdEx := 0
1788 for iNdEx < l {
1789 preIndex := iNdEx
1790 var wire uint64
1791 for shift := uint(0); ; shift += 7 {
1792 if shift >= 64 {
1793 return ErrIntOverflowAuthentication
1794 }
1795 if iNdEx >= l {
1796 return io.ErrUnexpectedEOF
1797 }
1798 b := data[iNdEx]
1799 iNdEx++
1800 wire |= (uint64(b) & 0x7F) << shift
1801 if b < 0x80 {
1802 break
1803 }
1804 }
1805 fieldNum := int32(wire >> 3)
1806 wireType := int(wire & 0x7)
1807 if wireType == 4 {
1808 return fmt.Errorf("proto: AuthenticationFailedMessage: wiretype end group for non-group")
1809 }
1810 if fieldNum <= 0 {
1811 return fmt.Errorf("proto: AuthenticationFailedMessage: illegal tag %d (wire type %d)", fieldNum, wire)
1812 }
1813 switch fieldNum {
1814 default:
1815 iNdEx = preIndex
1816 skippy, err := skipAuthentication(data[iNdEx:])
1817 if err != nil {
1818 return err
1819 }
1820 if skippy < 0 {
1821 return ErrInvalidLengthAuthentication
1822 }
1823 if (iNdEx + skippy) > l {
1824 return io.ErrUnexpectedEOF
1825 }
1826 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
1827 iNdEx += skippy
1828 }
1829 }
1830
1831 if iNdEx > l {
1832 return io.ErrUnexpectedEOF
1833 }
1834 return nil
1835 }
1836 func (m *AuthenticationErrorMessage) Unmarshal(data []byte) error {
1837 l := len(data)
1838 iNdEx := 0
1839 for iNdEx < l {
1840 preIndex := iNdEx
1841 var wire uint64
1842 for shift := uint(0); ; shift += 7 {
1843 if shift >= 64 {
1844 return ErrIntOverflowAuthentication
1845 }
1846 if iNdEx >= l {
1847 return io.ErrUnexpectedEOF
1848 }
1849 b := data[iNdEx]
1850 iNdEx++
1851 wire |= (uint64(b) & 0x7F) << shift
1852 if b < 0x80 {
1853 break
1854 }
1855 }
1856 fieldNum := int32(wire >> 3)
1857 wireType := int(wire & 0x7)
1858 if wireType == 4 {
1859 return fmt.Errorf("proto: AuthenticationErrorMessage: wiretype end group for non-group")
1860 }
1861 if fieldNum <= 0 {
1862 return fmt.Errorf("proto: AuthenticationErrorMessage: illegal tag %d (wire type %d)", fieldNum, wire)
1863 }
1864 switch fieldNum {
1865 case 1:
1866 if wireType != 2 {
1867 return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
1868 }
1869 var stringLen uint64
1870 for shift := uint(0); ; shift += 7 {
1871 if shift >= 64 {
1872 return ErrIntOverflowAuthentication
1873 }
1874 if iNdEx >= l {
1875 return io.ErrUnexpectedEOF
1876 }
1877 b := data[iNdEx]
1878 iNdEx++
1879 stringLen |= (uint64(b) & 0x7F) << shift
1880 if b < 0x80 {
1881 break
1882 }
1883 }
1884 intStringLen := int(stringLen)
1885 if intStringLen < 0 {
1886 return ErrInvalidLengthAuthentication
1887 }
1888 postIndex := iNdEx + intStringLen
1889 if postIndex > l {
1890 return io.ErrUnexpectedEOF
1891 }
1892 s := string(data[iNdEx:postIndex])
1893 m.Error = &s
1894 iNdEx = postIndex
1895 default:
1896 iNdEx = preIndex
1897 skippy, err := skipAuthentication(data[iNdEx:])
1898 if err != nil {
1899 return err
1900 }
1901 if skippy < 0 {
1902 return ErrInvalidLengthAuthentication
1903 }
1904 if (iNdEx + skippy) > l {
1905 return io.ErrUnexpectedEOF
1906 }
1907 m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
1908 iNdEx += skippy
1909 }
1910 }
1911
1912 if iNdEx > l {
1913 return io.ErrUnexpectedEOF
1914 }
1915 return nil
1916 }
1917 func skipAuthentication(data []byte) (n int, err error) {
1918 l := len(data)
1919 iNdEx := 0
1920 for iNdEx < l {
1921 var wire uint64
1922 for shift := uint(0); ; shift += 7 {
1923 if shift >= 64 {
1924 return 0, ErrIntOverflowAuthentication
1925 }
1926 if iNdEx >= l {
1927 return 0, io.ErrUnexpectedEOF
1928 }
1929 b := data[iNdEx]
1930 iNdEx++
1931 wire |= (uint64(b) & 0x7F) << shift
1932 if b < 0x80 {
1933 break
1934 }
1935 }
1936 wireType := int(wire & 0x7)
1937 switch wireType {
1938 case 0:
1939 for shift := uint(0); ; shift += 7 {
1940 if shift >= 64 {
1941 return 0, ErrIntOverflowAuthentication
1942 }
1943 if iNdEx >= l {
1944 return 0, io.ErrUnexpectedEOF
1945 }
1946 iNdEx++
1947 if data[iNdEx-1] < 0x80 {
1948 break
1949 }
1950 }
1951 return iNdEx, nil
1952 case 1:
1953 iNdEx += 8
1954 return iNdEx, nil
1955 case 2:
1956 var length int
1957 for shift := uint(0); ; shift += 7 {
1958 if shift >= 64 {
1959 return 0, ErrIntOverflowAuthentication
1960 }
1961 if iNdEx >= l {
1962 return 0, io.ErrUnexpectedEOF
1963 }
1964 b := data[iNdEx]
1965 iNdEx++
1966 length |= (int(b) & 0x7F) << shift
1967 if b < 0x80 {
1968 break
1969 }
1970 }
1971 iNdEx += length
1972 if length < 0 {
1973 return 0, ErrInvalidLengthAuthentication
1974 }
1975 return iNdEx, nil
1976 case 3:
1977 for {
1978 var innerWire uint64
1979 var start int = iNdEx
1980 for shift := uint(0); ; shift += 7 {
1981 if shift >= 64 {
1982 return 0, ErrIntOverflowAuthentication
1983 }
1984 if iNdEx >= l {
1985 return 0, io.ErrUnexpectedEOF
1986 }
1987 b := data[iNdEx]
1988 iNdEx++
1989 innerWire |= (uint64(b) & 0x7F) << shift
1990 if b < 0x80 {
1991 break
1992 }
1993 }
1994 innerWireType := int(innerWire & 0x7)
1995 if innerWireType == 4 {
1996 break
1997 }
1998 next, err := skipAuthentication(data[start:])
1999 if err != nil {
2000 return 0, err
2001 }
2002 iNdEx = start + next
2003 }
2004 return iNdEx, nil
2005 case 4:
2006 return iNdEx, nil
2007 case 5:
2008 iNdEx += 4
2009 return iNdEx, nil
2010 default:
2011 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
2012 }
2013 }
2014 panic("unreachable")
2015 }
2016
2017 var (
2018 ErrInvalidLengthAuthentication = fmt.Errorf("proto: negative length found during unmarshaling")
2019 ErrIntOverflowAuthentication = fmt.Errorf("proto: integer overflow")
2020 )