-
Notifications
You must be signed in to change notification settings - Fork 0
/
msg.pb.go
147 lines (131 loc) · 4.38 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
147
// Code generated by protoc-gen-go from "msg.proto"
// DO NOT EDIT!
package doozer
import proto "code.google.com/p/goprotobuf/proto"
import "math"
// Reference proto & math imports to suppress error if they are not otherwise used.
var _ = proto.GetString
var _ = math.Inf
type request_Verb int32
const (
request_GET request_Verb = 1
request_SET request_Verb = 2
request_DEL request_Verb = 3
request_REV request_Verb = 5
request_WAIT request_Verb = 6
request_NOP request_Verb = 7
request_WALK request_Verb = 9
request_GETDIR request_Verb = 14
request_STAT request_Verb = 16
request_ACCESS request_Verb = 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 request_Verb) *request_Verb {
e := request_Verb(x)
return &e
}
func (x request_Verb) Error() string {
return proto.EnumName(request_Verb_name, int32(x))
}
type response_Err int32
const (
response_OTHER response_Err = 127
response_TAG_IN_USE response_Err = 1
response_UNKNOWN_VERB response_Err = 2
response_READONLY response_Err = 3
response_TOO_LATE response_Err = 4
response_REV_MISMATCH response_Err = 5
response_BAD_PATH response_Err = 6
response_MISSING_ARG response_Err = 7
response_RANGE response_Err = 8
response_NOTDIR response_Err = 20
response_ISDIR response_Err = 21
response_NOENT response_Err = 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 response_Err) *response_Err {
e := response_Err(x)
return &e
}
func (x response_Err) Error() string {
return proto.EnumName(response_Err_name, int32(x))
}
type request struct {
Tag *int32 `protobuf:"varint,1,opt,name=tag" json:"tag,omitempty"`
Verb *request_Verb `protobuf:"varint,2,opt,name=verb,enum=doozer.request_Verb" json:"verb,omitempty"`
Path *string `protobuf:"bytes,4,opt,name=path" json:"path,omitempty"`
Value []byte `protobuf:"bytes,5,opt,name=value" json:"value,omitempty"`
OtherTag *int32 `protobuf:"varint,6,opt,name=other_tag" json:"other_tag,omitempty"`
Offset *int32 `protobuf:"varint,7,opt,name=offset" json:"offset,omitempty"`
Rev *int64 `protobuf:"varint,9,opt,name=rev" json:"rev,omitempty"`
XXX_unrecognized []byte `json:",omitempty"`
}
func (this *request) Reset() { *this = request{} }
func (this *request) String() string { return proto.CompactTextString(this) }
type response struct {
Tag *int32 `protobuf:"varint,1,opt,name=tag" json:"tag,omitempty"`
Flags *int32 `protobuf:"varint,2,opt,name=flags" json:"flags,omitempty"`
Rev *int64 `protobuf:"varint,3,opt,name=rev" json:"rev,omitempty"`
Path *string `protobuf:"bytes,5,opt,name=path" json:"path,omitempty"`
Value []byte `protobuf:"bytes,6,opt,name=value" json:"value,omitempty"`
Len *int32 `protobuf:"varint,8,opt,name=len" json:"len,omitempty"`
ErrCode *response_Err `protobuf:"varint,100,opt,name=err_code,enum=doozer.response_Err" json:"err_code,omitempty"`
ErrDetail *string `protobuf:"bytes,101,opt,name=err_detail" json:"err_detail,omitempty"`
XXX_unrecognized []byte `json:",omitempty"`
}
func (this *response) Reset() { *this = response{} }
func (this *response) String() string { return proto.CompactTextString(this) }
func init() {
proto.RegisterEnum("doozer.request_Verb", request_Verb_name, request_Verb_value)
proto.RegisterEnum("doozer.response_Err", response_Err_name, response_Err_value)
}