forked from ha/doozer
/
msg.pb.go
146 lines (129 loc) · 3.28 KB
/
msg.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
// Code generated by protoc-gen-go from "msg.proto"
// DO NOT EDIT!
package doozer
import proto "goprotobuf.googlecode.com/hg/proto"
import "math"
import "os"
// Reference proto, math & os imports to suppress error if they are not otherwise used.
var _ = proto.GetString
var _ = math.Inf
var _ os.Error
type request_Verb int32
const (
request_GET = 1
request_SET = 2
request_DEL = 3
request_REV = 5
request_WAIT = 6
request_NOP = 7
request_WALK = 9
request_GETDIR = 14
request_STAT = 16
request_ACCESS = 99
)
var request_Verb_name = map[int32]string{
1: "GET",
2: "SET",
3: "DEL",
5: "REV",
6: "WAIT",
7: "NOP",
9: "WALK",
14: "GETDIR",
16: "STAT",
99: "ACCESS",
}
var request_Verb_value = map[string]int32{
"GET": 1,
"SET": 2,
"DEL": 3,
"REV": 5,
"WAIT": 6,
"NOP": 7,
"WALK": 9,
"GETDIR": 14,
"STAT": 16,
"ACCESS": 99,
}
func newRequest_Verb(x int32) *request_Verb {
e := request_Verb(x)
return &e
}
type response_Err int32
const (
response_OTHER = 127
response_TAG_IN_USE = 1
response_UNKNOWN_VERB = 2
response_READONLY = 3
response_TOO_LATE = 4
response_REV_MISMATCH = 5
response_BAD_PATH = 6
response_MISSING_ARG = 7
response_RANGE = 8
response_NOTDIR = 20
response_ISDIR = 21
response_NOENT = 22
)
var response_Err_name = map[int32]string{
127: "OTHER",
1: "TAG_IN_USE",
2: "UNKNOWN_VERB",
3: "READONLY",
4: "TOO_LATE",
5: "REV_MISMATCH",
6: "BAD_PATH",
7: "MISSING_ARG",
8: "RANGE",
20: "NOTDIR",
21: "ISDIR",
22: "NOENT",
}
var response_Err_value = map[string]int32{
"OTHER": 127,
"TAG_IN_USE": 1,
"UNKNOWN_VERB": 2,
"READONLY": 3,
"TOO_LATE": 4,
"REV_MISMATCH": 5,
"BAD_PATH": 6,
"MISSING_ARG": 7,
"RANGE": 8,
"NOTDIR": 20,
"ISDIR": 21,
"NOENT": 22,
}
func newResponse_Err(x int32) *response_Err {
e := response_Err(x)
return &e
}
type request struct {
Tag *int32 "PB(varint,1,opt,name=tag)"
Verb *request_Verb "PB(varint,2,opt,name=verb,enum=doozer.request_Verb)"
Path *string "PB(bytes,4,opt,name=path)"
Value []byte "PB(bytes,5,opt,name=value)"
OtherTag *int32 "PB(varint,6,opt,name=other_tag)"
Offset *int32 "PB(varint,7,opt,name=offset)"
Rev *int64 "PB(varint,9,opt,name=rev)"
XXX_unrecognized []byte
}
func (this *request) Reset() {
*this = request{}
}
type response struct {
Tag *int32 "PB(varint,1,opt,name=tag)"
Flags *int32 "PB(varint,2,opt,name=flags)"
Rev *int64 "PB(varint,3,opt,name=rev)"
Path *string "PB(bytes,5,opt,name=path)"
Value []byte "PB(bytes,6,opt,name=value)"
Len *int32 "PB(varint,8,opt,name=len)"
ErrCode *response_Err "PB(varint,100,opt,name=err_code,enum=doozer.response_Err)"
ErrDetail *string "PB(bytes,101,opt,name=err_detail)"
XXX_unrecognized []byte
}
func (this *response) Reset() {
*this = response{}
}
func init() {
proto.RegisterEnum("doozer.request_Verb", request_Verb_name, request_Verb_value)
proto.RegisterEnum("doozer.response_Err", response_Err_name, response_Err_value)
}