blob: 9f7c010277eb263e8b60cf72f389b995326286a3 (
plain)
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
|
////////////////////////////////////////////////////////////////////////////////
// Do not modify!
// Generated by codergen -go
////////////////////////////////////////////////////////////////////////////////
package adb
import "fmt"
func init() {
}
var ()
const _DeviceState_name = "offlinedeviceunauthorized"
var _DeviceState_map = map[DeviceState]string{
0: _DeviceState_name[0:7],
1: _DeviceState_name[7:13],
2: _DeviceState_name[13:25],
}
func (v DeviceState) String() string {
if s, ok := _DeviceState_map[v]; ok {
return s
}
return fmt.Sprintf("DeviceState(%d)", v)
}
func (v *DeviceState) Parse(s string) error {
for k, t := range _DeviceState_map {
if s == t {
*v = k
return nil
}
}
return fmt.Errorf("%s not in DeviceState", s)
}
|