blob: a0cff8ffd70ae7ec58e6e1ce6ffc03cb88931b77 [file] [log] [blame]
divyadesai81bb7ba2020-03-11 11:45:23 +00001// Code generated by protoc-gen-gogo. DO NOT EDIT.
2// source: rpc.proto
3
4package etcdserverpb
5
6import (
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007 context "context"
8 fmt "fmt"
divyadesai81bb7ba2020-03-11 11:45:23 +00009 io "io"
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010 math "math"
11 math_bits "math/bits"
12
13 authpb "github.com/coreos/etcd/auth/authpb"
14 mvccpb "github.com/coreos/etcd/mvcc/mvccpb"
15 _ "github.com/gogo/protobuf/gogoproto"
16 proto "github.com/golang/protobuf/proto"
17 _ "google.golang.org/genproto/googleapis/api/annotations"
18 grpc "google.golang.org/grpc"
19 codes "google.golang.org/grpc/codes"
20 status "google.golang.org/grpc/status"
divyadesai81bb7ba2020-03-11 11:45:23 +000021)
22
23// Reference imports to suppress errors if they are not otherwise used.
24var _ = proto.Marshal
25var _ = fmt.Errorf
26var _ = math.Inf
27
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000028// This is a compile-time assertion to ensure that this generated file
29// is compatible with the proto package it is being compiled against.
30// A compilation error at this line likely means your copy of the
31// proto package needs to be updated.
32const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
33
divyadesai81bb7ba2020-03-11 11:45:23 +000034type AlarmType int32
35
36const (
37 AlarmType_NONE AlarmType = 0
38 AlarmType_NOSPACE AlarmType = 1
39 AlarmType_CORRUPT AlarmType = 2
40)
41
42var AlarmType_name = map[int32]string{
43 0: "NONE",
44 1: "NOSPACE",
45 2: "CORRUPT",
46}
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000047
divyadesai81bb7ba2020-03-11 11:45:23 +000048var AlarmType_value = map[string]int32{
49 "NONE": 0,
50 "NOSPACE": 1,
51 "CORRUPT": 2,
52}
53
54func (x AlarmType) String() string {
55 return proto.EnumName(AlarmType_name, int32(x))
56}
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000057
58func (AlarmType) EnumDescriptor() ([]byte, []int) {
59 return fileDescriptor_77a6da22d6a3feb1, []int{0}
60}
divyadesai81bb7ba2020-03-11 11:45:23 +000061
62type RangeRequest_SortOrder int32
63
64const (
65 RangeRequest_NONE RangeRequest_SortOrder = 0
66 RangeRequest_ASCEND RangeRequest_SortOrder = 1
67 RangeRequest_DESCEND RangeRequest_SortOrder = 2
68)
69
70var RangeRequest_SortOrder_name = map[int32]string{
71 0: "NONE",
72 1: "ASCEND",
73 2: "DESCEND",
74}
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000075
divyadesai81bb7ba2020-03-11 11:45:23 +000076var RangeRequest_SortOrder_value = map[string]int32{
77 "NONE": 0,
78 "ASCEND": 1,
79 "DESCEND": 2,
80}
81
82func (x RangeRequest_SortOrder) String() string {
83 return proto.EnumName(RangeRequest_SortOrder_name, int32(x))
84}
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000085
86func (RangeRequest_SortOrder) EnumDescriptor() ([]byte, []int) {
87 return fileDescriptor_77a6da22d6a3feb1, []int{1, 0}
88}
divyadesai81bb7ba2020-03-11 11:45:23 +000089
90type RangeRequest_SortTarget int32
91
92const (
93 RangeRequest_KEY RangeRequest_SortTarget = 0
94 RangeRequest_VERSION RangeRequest_SortTarget = 1
95 RangeRequest_CREATE RangeRequest_SortTarget = 2
96 RangeRequest_MOD RangeRequest_SortTarget = 3
97 RangeRequest_VALUE RangeRequest_SortTarget = 4
98)
99
100var RangeRequest_SortTarget_name = map[int32]string{
101 0: "KEY",
102 1: "VERSION",
103 2: "CREATE",
104 3: "MOD",
105 4: "VALUE",
106}
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000107
divyadesai81bb7ba2020-03-11 11:45:23 +0000108var RangeRequest_SortTarget_value = map[string]int32{
109 "KEY": 0,
110 "VERSION": 1,
111 "CREATE": 2,
112 "MOD": 3,
113 "VALUE": 4,
114}
115
116func (x RangeRequest_SortTarget) String() string {
117 return proto.EnumName(RangeRequest_SortTarget_name, int32(x))
118}
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000119
120func (RangeRequest_SortTarget) EnumDescriptor() ([]byte, []int) {
121 return fileDescriptor_77a6da22d6a3feb1, []int{1, 1}
122}
divyadesai81bb7ba2020-03-11 11:45:23 +0000123
124type Compare_CompareResult int32
125
126const (
127 Compare_EQUAL Compare_CompareResult = 0
128 Compare_GREATER Compare_CompareResult = 1
129 Compare_LESS Compare_CompareResult = 2
130 Compare_NOT_EQUAL Compare_CompareResult = 3
131)
132
133var Compare_CompareResult_name = map[int32]string{
134 0: "EQUAL",
135 1: "GREATER",
136 2: "LESS",
137 3: "NOT_EQUAL",
138}
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000139
divyadesai81bb7ba2020-03-11 11:45:23 +0000140var Compare_CompareResult_value = map[string]int32{
141 "EQUAL": 0,
142 "GREATER": 1,
143 "LESS": 2,
144 "NOT_EQUAL": 3,
145}
146
147func (x Compare_CompareResult) String() string {
148 return proto.EnumName(Compare_CompareResult_name, int32(x))
149}
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000150
151func (Compare_CompareResult) EnumDescriptor() ([]byte, []int) {
152 return fileDescriptor_77a6da22d6a3feb1, []int{9, 0}
153}
divyadesai81bb7ba2020-03-11 11:45:23 +0000154
155type Compare_CompareTarget int32
156
157const (
158 Compare_VERSION Compare_CompareTarget = 0
159 Compare_CREATE Compare_CompareTarget = 1
160 Compare_MOD Compare_CompareTarget = 2
161 Compare_VALUE Compare_CompareTarget = 3
162 Compare_LEASE Compare_CompareTarget = 4
163)
164
165var Compare_CompareTarget_name = map[int32]string{
166 0: "VERSION",
167 1: "CREATE",
168 2: "MOD",
169 3: "VALUE",
170 4: "LEASE",
171}
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000172
divyadesai81bb7ba2020-03-11 11:45:23 +0000173var Compare_CompareTarget_value = map[string]int32{
174 "VERSION": 0,
175 "CREATE": 1,
176 "MOD": 2,
177 "VALUE": 3,
178 "LEASE": 4,
179}
180
181func (x Compare_CompareTarget) String() string {
182 return proto.EnumName(Compare_CompareTarget_name, int32(x))
183}
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000184
185func (Compare_CompareTarget) EnumDescriptor() ([]byte, []int) {
186 return fileDescriptor_77a6da22d6a3feb1, []int{9, 1}
187}
divyadesai81bb7ba2020-03-11 11:45:23 +0000188
189type WatchCreateRequest_FilterType int32
190
191const (
192 // filter out put event.
193 WatchCreateRequest_NOPUT WatchCreateRequest_FilterType = 0
194 // filter out delete event.
195 WatchCreateRequest_NODELETE WatchCreateRequest_FilterType = 1
196)
197
198var WatchCreateRequest_FilterType_name = map[int32]string{
199 0: "NOPUT",
200 1: "NODELETE",
201}
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000202
divyadesai81bb7ba2020-03-11 11:45:23 +0000203var WatchCreateRequest_FilterType_value = map[string]int32{
204 "NOPUT": 0,
205 "NODELETE": 1,
206}
207
208func (x WatchCreateRequest_FilterType) String() string {
209 return proto.EnumName(WatchCreateRequest_FilterType_name, int32(x))
210}
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000211
divyadesai81bb7ba2020-03-11 11:45:23 +0000212func (WatchCreateRequest_FilterType) EnumDescriptor() ([]byte, []int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000213 return fileDescriptor_77a6da22d6a3feb1, []int{21, 0}
divyadesai81bb7ba2020-03-11 11:45:23 +0000214}
215
216type AlarmRequest_AlarmAction int32
217
218const (
219 AlarmRequest_GET AlarmRequest_AlarmAction = 0
220 AlarmRequest_ACTIVATE AlarmRequest_AlarmAction = 1
221 AlarmRequest_DEACTIVATE AlarmRequest_AlarmAction = 2
222)
223
224var AlarmRequest_AlarmAction_name = map[int32]string{
225 0: "GET",
226 1: "ACTIVATE",
227 2: "DEACTIVATE",
228}
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000229
divyadesai81bb7ba2020-03-11 11:45:23 +0000230var AlarmRequest_AlarmAction_value = map[string]int32{
231 "GET": 0,
232 "ACTIVATE": 1,
233 "DEACTIVATE": 2,
234}
235
236func (x AlarmRequest_AlarmAction) String() string {
237 return proto.EnumName(AlarmRequest_AlarmAction_name, int32(x))
238}
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000239
divyadesai81bb7ba2020-03-11 11:45:23 +0000240func (AlarmRequest_AlarmAction) EnumDescriptor() ([]byte, []int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000241 return fileDescriptor_77a6da22d6a3feb1, []int{49, 0}
divyadesai81bb7ba2020-03-11 11:45:23 +0000242}
243
244type ResponseHeader struct {
245 // cluster_id is the ID of the cluster which sent the response.
246 ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
247 // member_id is the ID of the member which sent the response.
248 MemberId uint64 `protobuf:"varint,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"`
249 // revision is the key-value store revision when the request was applied.
250 // For watch progress responses, the header.revision indicates progress. All future events
251 // recieved in this stream are guaranteed to have a higher revision number than the
252 // header.revision number.
253 Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"`
254 // raft_term is the raft term when the request was applied.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000255 RaftTerm uint64 `protobuf:"varint,4,opt,name=raft_term,json=raftTerm,proto3" json:"raft_term,omitempty"`
256 XXX_NoUnkeyedLiteral struct{} `json:"-"`
257 XXX_unrecognized []byte `json:"-"`
258 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +0000259}
260
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000261func (m *ResponseHeader) Reset() { *m = ResponseHeader{} }
262func (m *ResponseHeader) String() string { return proto.CompactTextString(m) }
263func (*ResponseHeader) ProtoMessage() {}
264func (*ResponseHeader) Descriptor() ([]byte, []int) {
265 return fileDescriptor_77a6da22d6a3feb1, []int{0}
266}
267func (m *ResponseHeader) XXX_Unmarshal(b []byte) error {
268 return m.Unmarshal(b)
269}
270func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
271 if deterministic {
272 return xxx_messageInfo_ResponseHeader.Marshal(b, m, deterministic)
273 } else {
274 b = b[:cap(b)]
275 n, err := m.MarshalToSizedBuffer(b)
276 if err != nil {
277 return nil, err
278 }
279 return b[:n], nil
280 }
281}
282func (m *ResponseHeader) XXX_Merge(src proto.Message) {
283 xxx_messageInfo_ResponseHeader.Merge(m, src)
284}
285func (m *ResponseHeader) XXX_Size() int {
286 return m.Size()
287}
288func (m *ResponseHeader) XXX_DiscardUnknown() {
289 xxx_messageInfo_ResponseHeader.DiscardUnknown(m)
290}
291
292var xxx_messageInfo_ResponseHeader proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +0000293
294func (m *ResponseHeader) GetClusterId() uint64 {
295 if m != nil {
296 return m.ClusterId
297 }
298 return 0
299}
300
301func (m *ResponseHeader) GetMemberId() uint64 {
302 if m != nil {
303 return m.MemberId
304 }
305 return 0
306}
307
308func (m *ResponseHeader) GetRevision() int64 {
309 if m != nil {
310 return m.Revision
311 }
312 return 0
313}
314
315func (m *ResponseHeader) GetRaftTerm() uint64 {
316 if m != nil {
317 return m.RaftTerm
318 }
319 return 0
320}
321
322type RangeRequest struct {
323 // key is the first key for the range. If range_end is not given, the request only looks up key.
324 Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
325 // range_end is the upper bound on the requested range [key, range_end).
326 // If range_end is '\0', the range is all keys >= key.
327 // If range_end is key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"),
328 // then the range request gets all keys prefixed with key.
329 // If both key and range_end are '\0', then the range request returns all keys.
330 RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"`
331 // limit is a limit on the number of keys returned for the request. When limit is set to 0,
332 // it is treated as no limit.
333 Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
334 // revision is the point-in-time of the key-value store to use for the range.
335 // If revision is less or equal to zero, the range is over the newest key-value store.
336 // If the revision has been compacted, ErrCompacted is returned as a response.
337 Revision int64 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"`
338 // sort_order is the order for returned sorted results.
339 SortOrder RangeRequest_SortOrder `protobuf:"varint,5,opt,name=sort_order,json=sortOrder,proto3,enum=etcdserverpb.RangeRequest_SortOrder" json:"sort_order,omitempty"`
340 // sort_target is the key-value field to use for sorting.
341 SortTarget RangeRequest_SortTarget `protobuf:"varint,6,opt,name=sort_target,json=sortTarget,proto3,enum=etcdserverpb.RangeRequest_SortTarget" json:"sort_target,omitempty"`
342 // serializable sets the range request to use serializable member-local reads.
343 // Range requests are linearizable by default; linearizable requests have higher
344 // latency and lower throughput than serializable requests but reflect the current
345 // consensus of the cluster. For better performance, in exchange for possible stale reads,
346 // a serializable range request is served locally without needing to reach consensus
347 // with other nodes in the cluster.
348 Serializable bool `protobuf:"varint,7,opt,name=serializable,proto3" json:"serializable,omitempty"`
349 // keys_only when set returns only the keys and not the values.
350 KeysOnly bool `protobuf:"varint,8,opt,name=keys_only,json=keysOnly,proto3" json:"keys_only,omitempty"`
351 // count_only when set returns only the count of the keys in the range.
352 CountOnly bool `protobuf:"varint,9,opt,name=count_only,json=countOnly,proto3" json:"count_only,omitempty"`
353 // min_mod_revision is the lower bound for returned key mod revisions; all keys with
354 // lesser mod revisions will be filtered away.
355 MinModRevision int64 `protobuf:"varint,10,opt,name=min_mod_revision,json=minModRevision,proto3" json:"min_mod_revision,omitempty"`
356 // max_mod_revision is the upper bound for returned key mod revisions; all keys with
357 // greater mod revisions will be filtered away.
358 MaxModRevision int64 `protobuf:"varint,11,opt,name=max_mod_revision,json=maxModRevision,proto3" json:"max_mod_revision,omitempty"`
359 // min_create_revision is the lower bound for returned key create revisions; all keys with
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000360 // lesser create trevisions will be filtered away.
divyadesai81bb7ba2020-03-11 11:45:23 +0000361 MinCreateRevision int64 `protobuf:"varint,12,opt,name=min_create_revision,json=minCreateRevision,proto3" json:"min_create_revision,omitempty"`
362 // max_create_revision is the upper bound for returned key create revisions; all keys with
363 // greater create revisions will be filtered away.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000364 MaxCreateRevision int64 `protobuf:"varint,13,opt,name=max_create_revision,json=maxCreateRevision,proto3" json:"max_create_revision,omitempty"`
365 XXX_NoUnkeyedLiteral struct{} `json:"-"`
366 XXX_unrecognized []byte `json:"-"`
367 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +0000368}
369
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000370func (m *RangeRequest) Reset() { *m = RangeRequest{} }
371func (m *RangeRequest) String() string { return proto.CompactTextString(m) }
372func (*RangeRequest) ProtoMessage() {}
373func (*RangeRequest) Descriptor() ([]byte, []int) {
374 return fileDescriptor_77a6da22d6a3feb1, []int{1}
375}
376func (m *RangeRequest) XXX_Unmarshal(b []byte) error {
377 return m.Unmarshal(b)
378}
379func (m *RangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
380 if deterministic {
381 return xxx_messageInfo_RangeRequest.Marshal(b, m, deterministic)
382 } else {
383 b = b[:cap(b)]
384 n, err := m.MarshalToSizedBuffer(b)
385 if err != nil {
386 return nil, err
387 }
388 return b[:n], nil
389 }
390}
391func (m *RangeRequest) XXX_Merge(src proto.Message) {
392 xxx_messageInfo_RangeRequest.Merge(m, src)
393}
394func (m *RangeRequest) XXX_Size() int {
395 return m.Size()
396}
397func (m *RangeRequest) XXX_DiscardUnknown() {
398 xxx_messageInfo_RangeRequest.DiscardUnknown(m)
399}
400
401var xxx_messageInfo_RangeRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +0000402
403func (m *RangeRequest) GetKey() []byte {
404 if m != nil {
405 return m.Key
406 }
407 return nil
408}
409
410func (m *RangeRequest) GetRangeEnd() []byte {
411 if m != nil {
412 return m.RangeEnd
413 }
414 return nil
415}
416
417func (m *RangeRequest) GetLimit() int64 {
418 if m != nil {
419 return m.Limit
420 }
421 return 0
422}
423
424func (m *RangeRequest) GetRevision() int64 {
425 if m != nil {
426 return m.Revision
427 }
428 return 0
429}
430
431func (m *RangeRequest) GetSortOrder() RangeRequest_SortOrder {
432 if m != nil {
433 return m.SortOrder
434 }
435 return RangeRequest_NONE
436}
437
438func (m *RangeRequest) GetSortTarget() RangeRequest_SortTarget {
439 if m != nil {
440 return m.SortTarget
441 }
442 return RangeRequest_KEY
443}
444
445func (m *RangeRequest) GetSerializable() bool {
446 if m != nil {
447 return m.Serializable
448 }
449 return false
450}
451
452func (m *RangeRequest) GetKeysOnly() bool {
453 if m != nil {
454 return m.KeysOnly
455 }
456 return false
457}
458
459func (m *RangeRequest) GetCountOnly() bool {
460 if m != nil {
461 return m.CountOnly
462 }
463 return false
464}
465
466func (m *RangeRequest) GetMinModRevision() int64 {
467 if m != nil {
468 return m.MinModRevision
469 }
470 return 0
471}
472
473func (m *RangeRequest) GetMaxModRevision() int64 {
474 if m != nil {
475 return m.MaxModRevision
476 }
477 return 0
478}
479
480func (m *RangeRequest) GetMinCreateRevision() int64 {
481 if m != nil {
482 return m.MinCreateRevision
483 }
484 return 0
485}
486
487func (m *RangeRequest) GetMaxCreateRevision() int64 {
488 if m != nil {
489 return m.MaxCreateRevision
490 }
491 return 0
492}
493
494type RangeResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000495 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +0000496 // kvs is the list of key-value pairs matched by the range request.
497 // kvs is empty when count is requested.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000498 Kvs []*mvccpb.KeyValue `protobuf:"bytes,2,rep,name=kvs,proto3" json:"kvs,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +0000499 // more indicates if there are more keys to return in the requested range.
500 More bool `protobuf:"varint,3,opt,name=more,proto3" json:"more,omitempty"`
501 // count is set to the number of keys within the range when requested.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000502 Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
503 XXX_NoUnkeyedLiteral struct{} `json:"-"`
504 XXX_unrecognized []byte `json:"-"`
505 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +0000506}
507
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000508func (m *RangeResponse) Reset() { *m = RangeResponse{} }
509func (m *RangeResponse) String() string { return proto.CompactTextString(m) }
510func (*RangeResponse) ProtoMessage() {}
511func (*RangeResponse) Descriptor() ([]byte, []int) {
512 return fileDescriptor_77a6da22d6a3feb1, []int{2}
513}
514func (m *RangeResponse) XXX_Unmarshal(b []byte) error {
515 return m.Unmarshal(b)
516}
517func (m *RangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
518 if deterministic {
519 return xxx_messageInfo_RangeResponse.Marshal(b, m, deterministic)
520 } else {
521 b = b[:cap(b)]
522 n, err := m.MarshalToSizedBuffer(b)
523 if err != nil {
524 return nil, err
525 }
526 return b[:n], nil
527 }
528}
529func (m *RangeResponse) XXX_Merge(src proto.Message) {
530 xxx_messageInfo_RangeResponse.Merge(m, src)
531}
532func (m *RangeResponse) XXX_Size() int {
533 return m.Size()
534}
535func (m *RangeResponse) XXX_DiscardUnknown() {
536 xxx_messageInfo_RangeResponse.DiscardUnknown(m)
537}
538
539var xxx_messageInfo_RangeResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +0000540
541func (m *RangeResponse) GetHeader() *ResponseHeader {
542 if m != nil {
543 return m.Header
544 }
545 return nil
546}
547
548func (m *RangeResponse) GetKvs() []*mvccpb.KeyValue {
549 if m != nil {
550 return m.Kvs
551 }
552 return nil
553}
554
555func (m *RangeResponse) GetMore() bool {
556 if m != nil {
557 return m.More
558 }
559 return false
560}
561
562func (m *RangeResponse) GetCount() int64 {
563 if m != nil {
564 return m.Count
565 }
566 return 0
567}
568
569type PutRequest struct {
570 // key is the key, in bytes, to put into the key-value store.
571 Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
572 // value is the value, in bytes, to associate with the key in the key-value store.
573 Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
574 // lease is the lease ID to associate with the key in the key-value store. A lease
575 // value of 0 indicates no lease.
576 Lease int64 `protobuf:"varint,3,opt,name=lease,proto3" json:"lease,omitempty"`
577 // If prev_kv is set, etcd gets the previous key-value pair before changing it.
578 // The previous key-value pair will be returned in the put response.
579 PrevKv bool `protobuf:"varint,4,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"`
580 // If ignore_value is set, etcd updates the key using its current value.
581 // Returns an error if the key does not exist.
582 IgnoreValue bool `protobuf:"varint,5,opt,name=ignore_value,json=ignoreValue,proto3" json:"ignore_value,omitempty"`
583 // If ignore_lease is set, etcd updates the key using its current lease.
584 // Returns an error if the key does not exist.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000585 IgnoreLease bool `protobuf:"varint,6,opt,name=ignore_lease,json=ignoreLease,proto3" json:"ignore_lease,omitempty"`
586 XXX_NoUnkeyedLiteral struct{} `json:"-"`
587 XXX_unrecognized []byte `json:"-"`
588 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +0000589}
590
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000591func (m *PutRequest) Reset() { *m = PutRequest{} }
592func (m *PutRequest) String() string { return proto.CompactTextString(m) }
593func (*PutRequest) ProtoMessage() {}
594func (*PutRequest) Descriptor() ([]byte, []int) {
595 return fileDescriptor_77a6da22d6a3feb1, []int{3}
596}
597func (m *PutRequest) XXX_Unmarshal(b []byte) error {
598 return m.Unmarshal(b)
599}
600func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
601 if deterministic {
602 return xxx_messageInfo_PutRequest.Marshal(b, m, deterministic)
603 } else {
604 b = b[:cap(b)]
605 n, err := m.MarshalToSizedBuffer(b)
606 if err != nil {
607 return nil, err
608 }
609 return b[:n], nil
610 }
611}
612func (m *PutRequest) XXX_Merge(src proto.Message) {
613 xxx_messageInfo_PutRequest.Merge(m, src)
614}
615func (m *PutRequest) XXX_Size() int {
616 return m.Size()
617}
618func (m *PutRequest) XXX_DiscardUnknown() {
619 xxx_messageInfo_PutRequest.DiscardUnknown(m)
620}
621
622var xxx_messageInfo_PutRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +0000623
624func (m *PutRequest) GetKey() []byte {
625 if m != nil {
626 return m.Key
627 }
628 return nil
629}
630
631func (m *PutRequest) GetValue() []byte {
632 if m != nil {
633 return m.Value
634 }
635 return nil
636}
637
638func (m *PutRequest) GetLease() int64 {
639 if m != nil {
640 return m.Lease
641 }
642 return 0
643}
644
645func (m *PutRequest) GetPrevKv() bool {
646 if m != nil {
647 return m.PrevKv
648 }
649 return false
650}
651
652func (m *PutRequest) GetIgnoreValue() bool {
653 if m != nil {
654 return m.IgnoreValue
655 }
656 return false
657}
658
659func (m *PutRequest) GetIgnoreLease() bool {
660 if m != nil {
661 return m.IgnoreLease
662 }
663 return false
664}
665
666type PutResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000667 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +0000668 // if prev_kv is set in the request, the previous key-value pair will be returned.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000669 PrevKv *mvccpb.KeyValue `protobuf:"bytes,2,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"`
670 XXX_NoUnkeyedLiteral struct{} `json:"-"`
671 XXX_unrecognized []byte `json:"-"`
672 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +0000673}
674
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000675func (m *PutResponse) Reset() { *m = PutResponse{} }
676func (m *PutResponse) String() string { return proto.CompactTextString(m) }
677func (*PutResponse) ProtoMessage() {}
678func (*PutResponse) Descriptor() ([]byte, []int) {
679 return fileDescriptor_77a6da22d6a3feb1, []int{4}
680}
681func (m *PutResponse) XXX_Unmarshal(b []byte) error {
682 return m.Unmarshal(b)
683}
684func (m *PutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
685 if deterministic {
686 return xxx_messageInfo_PutResponse.Marshal(b, m, deterministic)
687 } else {
688 b = b[:cap(b)]
689 n, err := m.MarshalToSizedBuffer(b)
690 if err != nil {
691 return nil, err
692 }
693 return b[:n], nil
694 }
695}
696func (m *PutResponse) XXX_Merge(src proto.Message) {
697 xxx_messageInfo_PutResponse.Merge(m, src)
698}
699func (m *PutResponse) XXX_Size() int {
700 return m.Size()
701}
702func (m *PutResponse) XXX_DiscardUnknown() {
703 xxx_messageInfo_PutResponse.DiscardUnknown(m)
704}
705
706var xxx_messageInfo_PutResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +0000707
708func (m *PutResponse) GetHeader() *ResponseHeader {
709 if m != nil {
710 return m.Header
711 }
712 return nil
713}
714
715func (m *PutResponse) GetPrevKv() *mvccpb.KeyValue {
716 if m != nil {
717 return m.PrevKv
718 }
719 return nil
720}
721
722type DeleteRangeRequest struct {
723 // key is the first key to delete in the range.
724 Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
725 // range_end is the key following the last key to delete for the range [key, range_end).
726 // If range_end is not given, the range is defined to contain only the key argument.
727 // If range_end is one bit larger than the given key, then the range is all the keys
728 // with the prefix (the given key).
729 // If range_end is '\0', the range is all keys greater than or equal to the key argument.
730 RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"`
731 // If prev_kv is set, etcd gets the previous key-value pairs before deleting it.
732 // The previous key-value pairs will be returned in the delete response.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000733 PrevKv bool `protobuf:"varint,3,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"`
734 XXX_NoUnkeyedLiteral struct{} `json:"-"`
735 XXX_unrecognized []byte `json:"-"`
736 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +0000737}
738
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000739func (m *DeleteRangeRequest) Reset() { *m = DeleteRangeRequest{} }
740func (m *DeleteRangeRequest) String() string { return proto.CompactTextString(m) }
741func (*DeleteRangeRequest) ProtoMessage() {}
742func (*DeleteRangeRequest) Descriptor() ([]byte, []int) {
743 return fileDescriptor_77a6da22d6a3feb1, []int{5}
744}
745func (m *DeleteRangeRequest) XXX_Unmarshal(b []byte) error {
746 return m.Unmarshal(b)
747}
748func (m *DeleteRangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
749 if deterministic {
750 return xxx_messageInfo_DeleteRangeRequest.Marshal(b, m, deterministic)
751 } else {
752 b = b[:cap(b)]
753 n, err := m.MarshalToSizedBuffer(b)
754 if err != nil {
755 return nil, err
756 }
757 return b[:n], nil
758 }
759}
760func (m *DeleteRangeRequest) XXX_Merge(src proto.Message) {
761 xxx_messageInfo_DeleteRangeRequest.Merge(m, src)
762}
763func (m *DeleteRangeRequest) XXX_Size() int {
764 return m.Size()
765}
766func (m *DeleteRangeRequest) XXX_DiscardUnknown() {
767 xxx_messageInfo_DeleteRangeRequest.DiscardUnknown(m)
768}
769
770var xxx_messageInfo_DeleteRangeRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +0000771
772func (m *DeleteRangeRequest) GetKey() []byte {
773 if m != nil {
774 return m.Key
775 }
776 return nil
777}
778
779func (m *DeleteRangeRequest) GetRangeEnd() []byte {
780 if m != nil {
781 return m.RangeEnd
782 }
783 return nil
784}
785
786func (m *DeleteRangeRequest) GetPrevKv() bool {
787 if m != nil {
788 return m.PrevKv
789 }
790 return false
791}
792
793type DeleteRangeResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000794 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +0000795 // deleted is the number of keys deleted by the delete range request.
796 Deleted int64 `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"`
797 // if prev_kv is set in the request, the previous key-value pairs will be returned.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000798 PrevKvs []*mvccpb.KeyValue `protobuf:"bytes,3,rep,name=prev_kvs,json=prevKvs,proto3" json:"prev_kvs,omitempty"`
799 XXX_NoUnkeyedLiteral struct{} `json:"-"`
800 XXX_unrecognized []byte `json:"-"`
801 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +0000802}
803
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000804func (m *DeleteRangeResponse) Reset() { *m = DeleteRangeResponse{} }
805func (m *DeleteRangeResponse) String() string { return proto.CompactTextString(m) }
806func (*DeleteRangeResponse) ProtoMessage() {}
807func (*DeleteRangeResponse) Descriptor() ([]byte, []int) {
808 return fileDescriptor_77a6da22d6a3feb1, []int{6}
809}
810func (m *DeleteRangeResponse) XXX_Unmarshal(b []byte) error {
811 return m.Unmarshal(b)
812}
813func (m *DeleteRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
814 if deterministic {
815 return xxx_messageInfo_DeleteRangeResponse.Marshal(b, m, deterministic)
816 } else {
817 b = b[:cap(b)]
818 n, err := m.MarshalToSizedBuffer(b)
819 if err != nil {
820 return nil, err
821 }
822 return b[:n], nil
823 }
824}
825func (m *DeleteRangeResponse) XXX_Merge(src proto.Message) {
826 xxx_messageInfo_DeleteRangeResponse.Merge(m, src)
827}
828func (m *DeleteRangeResponse) XXX_Size() int {
829 return m.Size()
830}
831func (m *DeleteRangeResponse) XXX_DiscardUnknown() {
832 xxx_messageInfo_DeleteRangeResponse.DiscardUnknown(m)
833}
834
835var xxx_messageInfo_DeleteRangeResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +0000836
837func (m *DeleteRangeResponse) GetHeader() *ResponseHeader {
838 if m != nil {
839 return m.Header
840 }
841 return nil
842}
843
844func (m *DeleteRangeResponse) GetDeleted() int64 {
845 if m != nil {
846 return m.Deleted
847 }
848 return 0
849}
850
851func (m *DeleteRangeResponse) GetPrevKvs() []*mvccpb.KeyValue {
852 if m != nil {
853 return m.PrevKvs
854 }
855 return nil
856}
857
858type RequestOp struct {
859 // request is a union of request types accepted by a transaction.
860 //
861 // Types that are valid to be assigned to Request:
862 // *RequestOp_RequestRange
863 // *RequestOp_RequestPut
864 // *RequestOp_RequestDeleteRange
865 // *RequestOp_RequestTxn
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000866 Request isRequestOp_Request `protobuf_oneof:"request"`
867 XXX_NoUnkeyedLiteral struct{} `json:"-"`
868 XXX_unrecognized []byte `json:"-"`
869 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +0000870}
871
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000872func (m *RequestOp) Reset() { *m = RequestOp{} }
873func (m *RequestOp) String() string { return proto.CompactTextString(m) }
874func (*RequestOp) ProtoMessage() {}
875func (*RequestOp) Descriptor() ([]byte, []int) {
876 return fileDescriptor_77a6da22d6a3feb1, []int{7}
877}
878func (m *RequestOp) XXX_Unmarshal(b []byte) error {
879 return m.Unmarshal(b)
880}
881func (m *RequestOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
882 if deterministic {
883 return xxx_messageInfo_RequestOp.Marshal(b, m, deterministic)
884 } else {
885 b = b[:cap(b)]
886 n, err := m.MarshalToSizedBuffer(b)
887 if err != nil {
888 return nil, err
889 }
890 return b[:n], nil
891 }
892}
893func (m *RequestOp) XXX_Merge(src proto.Message) {
894 xxx_messageInfo_RequestOp.Merge(m, src)
895}
896func (m *RequestOp) XXX_Size() int {
897 return m.Size()
898}
899func (m *RequestOp) XXX_DiscardUnknown() {
900 xxx_messageInfo_RequestOp.DiscardUnknown(m)
901}
902
903var xxx_messageInfo_RequestOp proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +0000904
905type isRequestOp_Request interface {
906 isRequestOp_Request()
907 MarshalTo([]byte) (int, error)
908 Size() int
909}
910
911type RequestOp_RequestRange struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000912 RequestRange *RangeRequest `protobuf:"bytes,1,opt,name=request_range,json=requestRange,proto3,oneof"`
divyadesai81bb7ba2020-03-11 11:45:23 +0000913}
914type RequestOp_RequestPut struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000915 RequestPut *PutRequest `protobuf:"bytes,2,opt,name=request_put,json=requestPut,proto3,oneof"`
divyadesai81bb7ba2020-03-11 11:45:23 +0000916}
917type RequestOp_RequestDeleteRange struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000918 RequestDeleteRange *DeleteRangeRequest `protobuf:"bytes,3,opt,name=request_delete_range,json=requestDeleteRange,proto3,oneof"`
divyadesai81bb7ba2020-03-11 11:45:23 +0000919}
920type RequestOp_RequestTxn struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000921 RequestTxn *TxnRequest `protobuf:"bytes,4,opt,name=request_txn,json=requestTxn,proto3,oneof"`
divyadesai81bb7ba2020-03-11 11:45:23 +0000922}
923
924func (*RequestOp_RequestRange) isRequestOp_Request() {}
925func (*RequestOp_RequestPut) isRequestOp_Request() {}
926func (*RequestOp_RequestDeleteRange) isRequestOp_Request() {}
927func (*RequestOp_RequestTxn) isRequestOp_Request() {}
928
929func (m *RequestOp) GetRequest() isRequestOp_Request {
930 if m != nil {
931 return m.Request
932 }
933 return nil
934}
935
936func (m *RequestOp) GetRequestRange() *RangeRequest {
937 if x, ok := m.GetRequest().(*RequestOp_RequestRange); ok {
938 return x.RequestRange
939 }
940 return nil
941}
942
943func (m *RequestOp) GetRequestPut() *PutRequest {
944 if x, ok := m.GetRequest().(*RequestOp_RequestPut); ok {
945 return x.RequestPut
946 }
947 return nil
948}
949
950func (m *RequestOp) GetRequestDeleteRange() *DeleteRangeRequest {
951 if x, ok := m.GetRequest().(*RequestOp_RequestDeleteRange); ok {
952 return x.RequestDeleteRange
953 }
954 return nil
955}
956
957func (m *RequestOp) GetRequestTxn() *TxnRequest {
958 if x, ok := m.GetRequest().(*RequestOp_RequestTxn); ok {
959 return x.RequestTxn
960 }
961 return nil
962}
963
964// XXX_OneofFuncs is for the internal use of the proto package.
965func (*RequestOp) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
966 return _RequestOp_OneofMarshaler, _RequestOp_OneofUnmarshaler, _RequestOp_OneofSizer, []interface{}{
967 (*RequestOp_RequestRange)(nil),
968 (*RequestOp_RequestPut)(nil),
969 (*RequestOp_RequestDeleteRange)(nil),
970 (*RequestOp_RequestTxn)(nil),
971 }
972}
973
974func _RequestOp_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
975 m := msg.(*RequestOp)
976 // request
977 switch x := m.Request.(type) {
978 case *RequestOp_RequestRange:
979 _ = b.EncodeVarint(1<<3 | proto.WireBytes)
980 if err := b.EncodeMessage(x.RequestRange); err != nil {
981 return err
982 }
983 case *RequestOp_RequestPut:
984 _ = b.EncodeVarint(2<<3 | proto.WireBytes)
985 if err := b.EncodeMessage(x.RequestPut); err != nil {
986 return err
987 }
988 case *RequestOp_RequestDeleteRange:
989 _ = b.EncodeVarint(3<<3 | proto.WireBytes)
990 if err := b.EncodeMessage(x.RequestDeleteRange); err != nil {
991 return err
992 }
993 case *RequestOp_RequestTxn:
994 _ = b.EncodeVarint(4<<3 | proto.WireBytes)
995 if err := b.EncodeMessage(x.RequestTxn); err != nil {
996 return err
997 }
998 case nil:
999 default:
1000 return fmt.Errorf("RequestOp.Request has unexpected type %T", x)
1001 }
1002 return nil
1003}
1004
1005func _RequestOp_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
1006 m := msg.(*RequestOp)
1007 switch tag {
1008 case 1: // request.request_range
1009 if wire != proto.WireBytes {
1010 return true, proto.ErrInternalBadWireType
1011 }
1012 msg := new(RangeRequest)
1013 err := b.DecodeMessage(msg)
1014 m.Request = &RequestOp_RequestRange{msg}
1015 return true, err
1016 case 2: // request.request_put
1017 if wire != proto.WireBytes {
1018 return true, proto.ErrInternalBadWireType
1019 }
1020 msg := new(PutRequest)
1021 err := b.DecodeMessage(msg)
1022 m.Request = &RequestOp_RequestPut{msg}
1023 return true, err
1024 case 3: // request.request_delete_range
1025 if wire != proto.WireBytes {
1026 return true, proto.ErrInternalBadWireType
1027 }
1028 msg := new(DeleteRangeRequest)
1029 err := b.DecodeMessage(msg)
1030 m.Request = &RequestOp_RequestDeleteRange{msg}
1031 return true, err
1032 case 4: // request.request_txn
1033 if wire != proto.WireBytes {
1034 return true, proto.ErrInternalBadWireType
1035 }
1036 msg := new(TxnRequest)
1037 err := b.DecodeMessage(msg)
1038 m.Request = &RequestOp_RequestTxn{msg}
1039 return true, err
1040 default:
1041 return false, nil
1042 }
1043}
1044
1045func _RequestOp_OneofSizer(msg proto.Message) (n int) {
1046 m := msg.(*RequestOp)
1047 // request
1048 switch x := m.Request.(type) {
1049 case *RequestOp_RequestRange:
1050 s := proto.Size(x.RequestRange)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001051 n += 1 // tag and wire
divyadesai81bb7ba2020-03-11 11:45:23 +00001052 n += proto.SizeVarint(uint64(s))
1053 n += s
1054 case *RequestOp_RequestPut:
1055 s := proto.Size(x.RequestPut)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001056 n += 1 // tag and wire
divyadesai81bb7ba2020-03-11 11:45:23 +00001057 n += proto.SizeVarint(uint64(s))
1058 n += s
1059 case *RequestOp_RequestDeleteRange:
1060 s := proto.Size(x.RequestDeleteRange)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001061 n += 1 // tag and wire
divyadesai81bb7ba2020-03-11 11:45:23 +00001062 n += proto.SizeVarint(uint64(s))
1063 n += s
1064 case *RequestOp_RequestTxn:
1065 s := proto.Size(x.RequestTxn)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001066 n += 1 // tag and wire
divyadesai81bb7ba2020-03-11 11:45:23 +00001067 n += proto.SizeVarint(uint64(s))
1068 n += s
1069 case nil:
1070 default:
1071 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
1072 }
1073 return n
1074}
1075
1076type ResponseOp struct {
1077 // response is a union of response types returned by a transaction.
1078 //
1079 // Types that are valid to be assigned to Response:
1080 // *ResponseOp_ResponseRange
1081 // *ResponseOp_ResponsePut
1082 // *ResponseOp_ResponseDeleteRange
1083 // *ResponseOp_ResponseTxn
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001084 Response isResponseOp_Response `protobuf_oneof:"response"`
1085 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1086 XXX_unrecognized []byte `json:"-"`
1087 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00001088}
1089
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001090func (m *ResponseOp) Reset() { *m = ResponseOp{} }
1091func (m *ResponseOp) String() string { return proto.CompactTextString(m) }
1092func (*ResponseOp) ProtoMessage() {}
1093func (*ResponseOp) Descriptor() ([]byte, []int) {
1094 return fileDescriptor_77a6da22d6a3feb1, []int{8}
1095}
1096func (m *ResponseOp) XXX_Unmarshal(b []byte) error {
1097 return m.Unmarshal(b)
1098}
1099func (m *ResponseOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1100 if deterministic {
1101 return xxx_messageInfo_ResponseOp.Marshal(b, m, deterministic)
1102 } else {
1103 b = b[:cap(b)]
1104 n, err := m.MarshalToSizedBuffer(b)
1105 if err != nil {
1106 return nil, err
1107 }
1108 return b[:n], nil
1109 }
1110}
1111func (m *ResponseOp) XXX_Merge(src proto.Message) {
1112 xxx_messageInfo_ResponseOp.Merge(m, src)
1113}
1114func (m *ResponseOp) XXX_Size() int {
1115 return m.Size()
1116}
1117func (m *ResponseOp) XXX_DiscardUnknown() {
1118 xxx_messageInfo_ResponseOp.DiscardUnknown(m)
1119}
1120
1121var xxx_messageInfo_ResponseOp proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00001122
1123type isResponseOp_Response interface {
1124 isResponseOp_Response()
1125 MarshalTo([]byte) (int, error)
1126 Size() int
1127}
1128
1129type ResponseOp_ResponseRange struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001130 ResponseRange *RangeResponse `protobuf:"bytes,1,opt,name=response_range,json=responseRange,proto3,oneof"`
divyadesai81bb7ba2020-03-11 11:45:23 +00001131}
1132type ResponseOp_ResponsePut struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001133 ResponsePut *PutResponse `protobuf:"bytes,2,opt,name=response_put,json=responsePut,proto3,oneof"`
divyadesai81bb7ba2020-03-11 11:45:23 +00001134}
1135type ResponseOp_ResponseDeleteRange struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001136 ResponseDeleteRange *DeleteRangeResponse `protobuf:"bytes,3,opt,name=response_delete_range,json=responseDeleteRange,proto3,oneof"`
divyadesai81bb7ba2020-03-11 11:45:23 +00001137}
1138type ResponseOp_ResponseTxn struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001139 ResponseTxn *TxnResponse `protobuf:"bytes,4,opt,name=response_txn,json=responseTxn,proto3,oneof"`
divyadesai81bb7ba2020-03-11 11:45:23 +00001140}
1141
1142func (*ResponseOp_ResponseRange) isResponseOp_Response() {}
1143func (*ResponseOp_ResponsePut) isResponseOp_Response() {}
1144func (*ResponseOp_ResponseDeleteRange) isResponseOp_Response() {}
1145func (*ResponseOp_ResponseTxn) isResponseOp_Response() {}
1146
1147func (m *ResponseOp) GetResponse() isResponseOp_Response {
1148 if m != nil {
1149 return m.Response
1150 }
1151 return nil
1152}
1153
1154func (m *ResponseOp) GetResponseRange() *RangeResponse {
1155 if x, ok := m.GetResponse().(*ResponseOp_ResponseRange); ok {
1156 return x.ResponseRange
1157 }
1158 return nil
1159}
1160
1161func (m *ResponseOp) GetResponsePut() *PutResponse {
1162 if x, ok := m.GetResponse().(*ResponseOp_ResponsePut); ok {
1163 return x.ResponsePut
1164 }
1165 return nil
1166}
1167
1168func (m *ResponseOp) GetResponseDeleteRange() *DeleteRangeResponse {
1169 if x, ok := m.GetResponse().(*ResponseOp_ResponseDeleteRange); ok {
1170 return x.ResponseDeleteRange
1171 }
1172 return nil
1173}
1174
1175func (m *ResponseOp) GetResponseTxn() *TxnResponse {
1176 if x, ok := m.GetResponse().(*ResponseOp_ResponseTxn); ok {
1177 return x.ResponseTxn
1178 }
1179 return nil
1180}
1181
1182// XXX_OneofFuncs is for the internal use of the proto package.
1183func (*ResponseOp) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
1184 return _ResponseOp_OneofMarshaler, _ResponseOp_OneofUnmarshaler, _ResponseOp_OneofSizer, []interface{}{
1185 (*ResponseOp_ResponseRange)(nil),
1186 (*ResponseOp_ResponsePut)(nil),
1187 (*ResponseOp_ResponseDeleteRange)(nil),
1188 (*ResponseOp_ResponseTxn)(nil),
1189 }
1190}
1191
1192func _ResponseOp_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
1193 m := msg.(*ResponseOp)
1194 // response
1195 switch x := m.Response.(type) {
1196 case *ResponseOp_ResponseRange:
1197 _ = b.EncodeVarint(1<<3 | proto.WireBytes)
1198 if err := b.EncodeMessage(x.ResponseRange); err != nil {
1199 return err
1200 }
1201 case *ResponseOp_ResponsePut:
1202 _ = b.EncodeVarint(2<<3 | proto.WireBytes)
1203 if err := b.EncodeMessage(x.ResponsePut); err != nil {
1204 return err
1205 }
1206 case *ResponseOp_ResponseDeleteRange:
1207 _ = b.EncodeVarint(3<<3 | proto.WireBytes)
1208 if err := b.EncodeMessage(x.ResponseDeleteRange); err != nil {
1209 return err
1210 }
1211 case *ResponseOp_ResponseTxn:
1212 _ = b.EncodeVarint(4<<3 | proto.WireBytes)
1213 if err := b.EncodeMessage(x.ResponseTxn); err != nil {
1214 return err
1215 }
1216 case nil:
1217 default:
1218 return fmt.Errorf("ResponseOp.Response has unexpected type %T", x)
1219 }
1220 return nil
1221}
1222
1223func _ResponseOp_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
1224 m := msg.(*ResponseOp)
1225 switch tag {
1226 case 1: // response.response_range
1227 if wire != proto.WireBytes {
1228 return true, proto.ErrInternalBadWireType
1229 }
1230 msg := new(RangeResponse)
1231 err := b.DecodeMessage(msg)
1232 m.Response = &ResponseOp_ResponseRange{msg}
1233 return true, err
1234 case 2: // response.response_put
1235 if wire != proto.WireBytes {
1236 return true, proto.ErrInternalBadWireType
1237 }
1238 msg := new(PutResponse)
1239 err := b.DecodeMessage(msg)
1240 m.Response = &ResponseOp_ResponsePut{msg}
1241 return true, err
1242 case 3: // response.response_delete_range
1243 if wire != proto.WireBytes {
1244 return true, proto.ErrInternalBadWireType
1245 }
1246 msg := new(DeleteRangeResponse)
1247 err := b.DecodeMessage(msg)
1248 m.Response = &ResponseOp_ResponseDeleteRange{msg}
1249 return true, err
1250 case 4: // response.response_txn
1251 if wire != proto.WireBytes {
1252 return true, proto.ErrInternalBadWireType
1253 }
1254 msg := new(TxnResponse)
1255 err := b.DecodeMessage(msg)
1256 m.Response = &ResponseOp_ResponseTxn{msg}
1257 return true, err
1258 default:
1259 return false, nil
1260 }
1261}
1262
1263func _ResponseOp_OneofSizer(msg proto.Message) (n int) {
1264 m := msg.(*ResponseOp)
1265 // response
1266 switch x := m.Response.(type) {
1267 case *ResponseOp_ResponseRange:
1268 s := proto.Size(x.ResponseRange)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001269 n += 1 // tag and wire
divyadesai81bb7ba2020-03-11 11:45:23 +00001270 n += proto.SizeVarint(uint64(s))
1271 n += s
1272 case *ResponseOp_ResponsePut:
1273 s := proto.Size(x.ResponsePut)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001274 n += 1 // tag and wire
divyadesai81bb7ba2020-03-11 11:45:23 +00001275 n += proto.SizeVarint(uint64(s))
1276 n += s
1277 case *ResponseOp_ResponseDeleteRange:
1278 s := proto.Size(x.ResponseDeleteRange)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001279 n += 1 // tag and wire
divyadesai81bb7ba2020-03-11 11:45:23 +00001280 n += proto.SizeVarint(uint64(s))
1281 n += s
1282 case *ResponseOp_ResponseTxn:
1283 s := proto.Size(x.ResponseTxn)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001284 n += 1 // tag and wire
divyadesai81bb7ba2020-03-11 11:45:23 +00001285 n += proto.SizeVarint(uint64(s))
1286 n += s
1287 case nil:
1288 default:
1289 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
1290 }
1291 return n
1292}
1293
1294type Compare struct {
1295 // result is logical comparison operation for this comparison.
1296 Result Compare_CompareResult `protobuf:"varint,1,opt,name=result,proto3,enum=etcdserverpb.Compare_CompareResult" json:"result,omitempty"`
1297 // target is the key-value field to inspect for the comparison.
1298 Target Compare_CompareTarget `protobuf:"varint,2,opt,name=target,proto3,enum=etcdserverpb.Compare_CompareTarget" json:"target,omitempty"`
1299 // key is the subject key for the comparison operation.
1300 Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
1301 // Types that are valid to be assigned to TargetUnion:
1302 // *Compare_Version
1303 // *Compare_CreateRevision
1304 // *Compare_ModRevision
1305 // *Compare_Value
1306 // *Compare_Lease
1307 TargetUnion isCompare_TargetUnion `protobuf_oneof:"target_union"`
1308 // range_end compares the given target to all keys in the range [key, range_end).
1309 // See RangeRequest for more details on key ranges.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001310 RangeEnd []byte `protobuf:"bytes,64,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"`
1311 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1312 XXX_unrecognized []byte `json:"-"`
1313 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00001314}
1315
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001316func (m *Compare) Reset() { *m = Compare{} }
1317func (m *Compare) String() string { return proto.CompactTextString(m) }
1318func (*Compare) ProtoMessage() {}
1319func (*Compare) Descriptor() ([]byte, []int) {
1320 return fileDescriptor_77a6da22d6a3feb1, []int{9}
1321}
1322func (m *Compare) XXX_Unmarshal(b []byte) error {
1323 return m.Unmarshal(b)
1324}
1325func (m *Compare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1326 if deterministic {
1327 return xxx_messageInfo_Compare.Marshal(b, m, deterministic)
1328 } else {
1329 b = b[:cap(b)]
1330 n, err := m.MarshalToSizedBuffer(b)
1331 if err != nil {
1332 return nil, err
1333 }
1334 return b[:n], nil
1335 }
1336}
1337func (m *Compare) XXX_Merge(src proto.Message) {
1338 xxx_messageInfo_Compare.Merge(m, src)
1339}
1340func (m *Compare) XXX_Size() int {
1341 return m.Size()
1342}
1343func (m *Compare) XXX_DiscardUnknown() {
1344 xxx_messageInfo_Compare.DiscardUnknown(m)
1345}
1346
1347var xxx_messageInfo_Compare proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00001348
1349type isCompare_TargetUnion interface {
1350 isCompare_TargetUnion()
1351 MarshalTo([]byte) (int, error)
1352 Size() int
1353}
1354
1355type Compare_Version struct {
1356 Version int64 `protobuf:"varint,4,opt,name=version,proto3,oneof"`
1357}
1358type Compare_CreateRevision struct {
1359 CreateRevision int64 `protobuf:"varint,5,opt,name=create_revision,json=createRevision,proto3,oneof"`
1360}
1361type Compare_ModRevision struct {
1362 ModRevision int64 `protobuf:"varint,6,opt,name=mod_revision,json=modRevision,proto3,oneof"`
1363}
1364type Compare_Value struct {
1365 Value []byte `protobuf:"bytes,7,opt,name=value,proto3,oneof"`
1366}
1367type Compare_Lease struct {
1368 Lease int64 `protobuf:"varint,8,opt,name=lease,proto3,oneof"`
1369}
1370
1371func (*Compare_Version) isCompare_TargetUnion() {}
1372func (*Compare_CreateRevision) isCompare_TargetUnion() {}
1373func (*Compare_ModRevision) isCompare_TargetUnion() {}
1374func (*Compare_Value) isCompare_TargetUnion() {}
1375func (*Compare_Lease) isCompare_TargetUnion() {}
1376
1377func (m *Compare) GetTargetUnion() isCompare_TargetUnion {
1378 if m != nil {
1379 return m.TargetUnion
1380 }
1381 return nil
1382}
1383
1384func (m *Compare) GetResult() Compare_CompareResult {
1385 if m != nil {
1386 return m.Result
1387 }
1388 return Compare_EQUAL
1389}
1390
1391func (m *Compare) GetTarget() Compare_CompareTarget {
1392 if m != nil {
1393 return m.Target
1394 }
1395 return Compare_VERSION
1396}
1397
1398func (m *Compare) GetKey() []byte {
1399 if m != nil {
1400 return m.Key
1401 }
1402 return nil
1403}
1404
1405func (m *Compare) GetVersion() int64 {
1406 if x, ok := m.GetTargetUnion().(*Compare_Version); ok {
1407 return x.Version
1408 }
1409 return 0
1410}
1411
1412func (m *Compare) GetCreateRevision() int64 {
1413 if x, ok := m.GetTargetUnion().(*Compare_CreateRevision); ok {
1414 return x.CreateRevision
1415 }
1416 return 0
1417}
1418
1419func (m *Compare) GetModRevision() int64 {
1420 if x, ok := m.GetTargetUnion().(*Compare_ModRevision); ok {
1421 return x.ModRevision
1422 }
1423 return 0
1424}
1425
1426func (m *Compare) GetValue() []byte {
1427 if x, ok := m.GetTargetUnion().(*Compare_Value); ok {
1428 return x.Value
1429 }
1430 return nil
1431}
1432
1433func (m *Compare) GetLease() int64 {
1434 if x, ok := m.GetTargetUnion().(*Compare_Lease); ok {
1435 return x.Lease
1436 }
1437 return 0
1438}
1439
1440func (m *Compare) GetRangeEnd() []byte {
1441 if m != nil {
1442 return m.RangeEnd
1443 }
1444 return nil
1445}
1446
1447// XXX_OneofFuncs is for the internal use of the proto package.
1448func (*Compare) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
1449 return _Compare_OneofMarshaler, _Compare_OneofUnmarshaler, _Compare_OneofSizer, []interface{}{
1450 (*Compare_Version)(nil),
1451 (*Compare_CreateRevision)(nil),
1452 (*Compare_ModRevision)(nil),
1453 (*Compare_Value)(nil),
1454 (*Compare_Lease)(nil),
1455 }
1456}
1457
1458func _Compare_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
1459 m := msg.(*Compare)
1460 // target_union
1461 switch x := m.TargetUnion.(type) {
1462 case *Compare_Version:
1463 _ = b.EncodeVarint(4<<3 | proto.WireVarint)
1464 _ = b.EncodeVarint(uint64(x.Version))
1465 case *Compare_CreateRevision:
1466 _ = b.EncodeVarint(5<<3 | proto.WireVarint)
1467 _ = b.EncodeVarint(uint64(x.CreateRevision))
1468 case *Compare_ModRevision:
1469 _ = b.EncodeVarint(6<<3 | proto.WireVarint)
1470 _ = b.EncodeVarint(uint64(x.ModRevision))
1471 case *Compare_Value:
1472 _ = b.EncodeVarint(7<<3 | proto.WireBytes)
1473 _ = b.EncodeRawBytes(x.Value)
1474 case *Compare_Lease:
1475 _ = b.EncodeVarint(8<<3 | proto.WireVarint)
1476 _ = b.EncodeVarint(uint64(x.Lease))
1477 case nil:
1478 default:
1479 return fmt.Errorf("Compare.TargetUnion has unexpected type %T", x)
1480 }
1481 return nil
1482}
1483
1484func _Compare_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
1485 m := msg.(*Compare)
1486 switch tag {
1487 case 4: // target_union.version
1488 if wire != proto.WireVarint {
1489 return true, proto.ErrInternalBadWireType
1490 }
1491 x, err := b.DecodeVarint()
1492 m.TargetUnion = &Compare_Version{int64(x)}
1493 return true, err
1494 case 5: // target_union.create_revision
1495 if wire != proto.WireVarint {
1496 return true, proto.ErrInternalBadWireType
1497 }
1498 x, err := b.DecodeVarint()
1499 m.TargetUnion = &Compare_CreateRevision{int64(x)}
1500 return true, err
1501 case 6: // target_union.mod_revision
1502 if wire != proto.WireVarint {
1503 return true, proto.ErrInternalBadWireType
1504 }
1505 x, err := b.DecodeVarint()
1506 m.TargetUnion = &Compare_ModRevision{int64(x)}
1507 return true, err
1508 case 7: // target_union.value
1509 if wire != proto.WireBytes {
1510 return true, proto.ErrInternalBadWireType
1511 }
1512 x, err := b.DecodeRawBytes(true)
1513 m.TargetUnion = &Compare_Value{x}
1514 return true, err
1515 case 8: // target_union.lease
1516 if wire != proto.WireVarint {
1517 return true, proto.ErrInternalBadWireType
1518 }
1519 x, err := b.DecodeVarint()
1520 m.TargetUnion = &Compare_Lease{int64(x)}
1521 return true, err
1522 default:
1523 return false, nil
1524 }
1525}
1526
1527func _Compare_OneofSizer(msg proto.Message) (n int) {
1528 m := msg.(*Compare)
1529 // target_union
1530 switch x := m.TargetUnion.(type) {
1531 case *Compare_Version:
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001532 n += 1 // tag and wire
divyadesai81bb7ba2020-03-11 11:45:23 +00001533 n += proto.SizeVarint(uint64(x.Version))
1534 case *Compare_CreateRevision:
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001535 n += 1 // tag and wire
divyadesai81bb7ba2020-03-11 11:45:23 +00001536 n += proto.SizeVarint(uint64(x.CreateRevision))
1537 case *Compare_ModRevision:
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001538 n += 1 // tag and wire
divyadesai81bb7ba2020-03-11 11:45:23 +00001539 n += proto.SizeVarint(uint64(x.ModRevision))
1540 case *Compare_Value:
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001541 n += 1 // tag and wire
divyadesai81bb7ba2020-03-11 11:45:23 +00001542 n += proto.SizeVarint(uint64(len(x.Value)))
1543 n += len(x.Value)
1544 case *Compare_Lease:
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001545 n += 1 // tag and wire
divyadesai81bb7ba2020-03-11 11:45:23 +00001546 n += proto.SizeVarint(uint64(x.Lease))
1547 case nil:
1548 default:
1549 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
1550 }
1551 return n
1552}
1553
1554// From google paxosdb paper:
1555// Our implementation hinges around a powerful primitive which we call MultiOp. All other database
1556// operations except for iteration are implemented as a single call to MultiOp. A MultiOp is applied atomically
1557// and consists of three components:
1558// 1. A list of tests called guard. Each test in guard checks a single entry in the database. It may check
1559// for the absence or presence of a value, or compare with a given value. Two different tests in the guard
1560// may apply to the same or different entries in the database. All tests in the guard are applied and
1561// MultiOp returns the results. If all tests are true, MultiOp executes t op (see item 2 below), otherwise
1562// it executes f op (see item 3 below).
1563// 2. A list of database operations called t op. Each operation in the list is either an insert, delete, or
1564// lookup operation, and applies to a single database entry. Two different operations in the list may apply
1565// to the same or different entries in the database. These operations are executed
1566// if guard evaluates to
1567// true.
1568// 3. A list of database operations called f op. Like t op, but executed if guard evaluates to false.
1569type TxnRequest struct {
1570 // compare is a list of predicates representing a conjunction of terms.
1571 // If the comparisons succeed, then the success requests will be processed in order,
1572 // and the response will contain their respective responses in order.
1573 // If the comparisons fail, then the failure requests will be processed in order,
1574 // and the response will contain their respective responses in order.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001575 Compare []*Compare `protobuf:"bytes,1,rep,name=compare,proto3" json:"compare,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +00001576 // success is a list of requests which will be applied when compare evaluates to true.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001577 Success []*RequestOp `protobuf:"bytes,2,rep,name=success,proto3" json:"success,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +00001578 // failure is a list of requests which will be applied when compare evaluates to false.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001579 Failure []*RequestOp `protobuf:"bytes,3,rep,name=failure,proto3" json:"failure,omitempty"`
1580 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1581 XXX_unrecognized []byte `json:"-"`
1582 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00001583}
1584
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001585func (m *TxnRequest) Reset() { *m = TxnRequest{} }
1586func (m *TxnRequest) String() string { return proto.CompactTextString(m) }
1587func (*TxnRequest) ProtoMessage() {}
1588func (*TxnRequest) Descriptor() ([]byte, []int) {
1589 return fileDescriptor_77a6da22d6a3feb1, []int{10}
1590}
1591func (m *TxnRequest) XXX_Unmarshal(b []byte) error {
1592 return m.Unmarshal(b)
1593}
1594func (m *TxnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1595 if deterministic {
1596 return xxx_messageInfo_TxnRequest.Marshal(b, m, deterministic)
1597 } else {
1598 b = b[:cap(b)]
1599 n, err := m.MarshalToSizedBuffer(b)
1600 if err != nil {
1601 return nil, err
1602 }
1603 return b[:n], nil
1604 }
1605}
1606func (m *TxnRequest) XXX_Merge(src proto.Message) {
1607 xxx_messageInfo_TxnRequest.Merge(m, src)
1608}
1609func (m *TxnRequest) XXX_Size() int {
1610 return m.Size()
1611}
1612func (m *TxnRequest) XXX_DiscardUnknown() {
1613 xxx_messageInfo_TxnRequest.DiscardUnknown(m)
1614}
1615
1616var xxx_messageInfo_TxnRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00001617
1618func (m *TxnRequest) GetCompare() []*Compare {
1619 if m != nil {
1620 return m.Compare
1621 }
1622 return nil
1623}
1624
1625func (m *TxnRequest) GetSuccess() []*RequestOp {
1626 if m != nil {
1627 return m.Success
1628 }
1629 return nil
1630}
1631
1632func (m *TxnRequest) GetFailure() []*RequestOp {
1633 if m != nil {
1634 return m.Failure
1635 }
1636 return nil
1637}
1638
1639type TxnResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001640 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +00001641 // succeeded is set to true if the compare evaluated to true or false otherwise.
1642 Succeeded bool `protobuf:"varint,2,opt,name=succeeded,proto3" json:"succeeded,omitempty"`
1643 // responses is a list of responses corresponding to the results from applying
1644 // success if succeeded is true or failure if succeeded is false.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001645 Responses []*ResponseOp `protobuf:"bytes,3,rep,name=responses,proto3" json:"responses,omitempty"`
1646 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1647 XXX_unrecognized []byte `json:"-"`
1648 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00001649}
1650
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001651func (m *TxnResponse) Reset() { *m = TxnResponse{} }
1652func (m *TxnResponse) String() string { return proto.CompactTextString(m) }
1653func (*TxnResponse) ProtoMessage() {}
1654func (*TxnResponse) Descriptor() ([]byte, []int) {
1655 return fileDescriptor_77a6da22d6a3feb1, []int{11}
1656}
1657func (m *TxnResponse) XXX_Unmarshal(b []byte) error {
1658 return m.Unmarshal(b)
1659}
1660func (m *TxnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1661 if deterministic {
1662 return xxx_messageInfo_TxnResponse.Marshal(b, m, deterministic)
1663 } else {
1664 b = b[:cap(b)]
1665 n, err := m.MarshalToSizedBuffer(b)
1666 if err != nil {
1667 return nil, err
1668 }
1669 return b[:n], nil
1670 }
1671}
1672func (m *TxnResponse) XXX_Merge(src proto.Message) {
1673 xxx_messageInfo_TxnResponse.Merge(m, src)
1674}
1675func (m *TxnResponse) XXX_Size() int {
1676 return m.Size()
1677}
1678func (m *TxnResponse) XXX_DiscardUnknown() {
1679 xxx_messageInfo_TxnResponse.DiscardUnknown(m)
1680}
1681
1682var xxx_messageInfo_TxnResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00001683
1684func (m *TxnResponse) GetHeader() *ResponseHeader {
1685 if m != nil {
1686 return m.Header
1687 }
1688 return nil
1689}
1690
1691func (m *TxnResponse) GetSucceeded() bool {
1692 if m != nil {
1693 return m.Succeeded
1694 }
1695 return false
1696}
1697
1698func (m *TxnResponse) GetResponses() []*ResponseOp {
1699 if m != nil {
1700 return m.Responses
1701 }
1702 return nil
1703}
1704
1705// CompactionRequest compacts the key-value store up to a given revision. All superseded keys
1706// with a revision less than the compaction revision will be removed.
1707type CompactionRequest struct {
1708 // revision is the key-value store revision for the compaction operation.
1709 Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
1710 // physical is set so the RPC will wait until the compaction is physically
1711 // applied to the local database such that compacted entries are totally
1712 // removed from the backend database.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001713 Physical bool `protobuf:"varint,2,opt,name=physical,proto3" json:"physical,omitempty"`
1714 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1715 XXX_unrecognized []byte `json:"-"`
1716 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00001717}
1718
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001719func (m *CompactionRequest) Reset() { *m = CompactionRequest{} }
1720func (m *CompactionRequest) String() string { return proto.CompactTextString(m) }
1721func (*CompactionRequest) ProtoMessage() {}
1722func (*CompactionRequest) Descriptor() ([]byte, []int) {
1723 return fileDescriptor_77a6da22d6a3feb1, []int{12}
1724}
1725func (m *CompactionRequest) XXX_Unmarshal(b []byte) error {
1726 return m.Unmarshal(b)
1727}
1728func (m *CompactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1729 if deterministic {
1730 return xxx_messageInfo_CompactionRequest.Marshal(b, m, deterministic)
1731 } else {
1732 b = b[:cap(b)]
1733 n, err := m.MarshalToSizedBuffer(b)
1734 if err != nil {
1735 return nil, err
1736 }
1737 return b[:n], nil
1738 }
1739}
1740func (m *CompactionRequest) XXX_Merge(src proto.Message) {
1741 xxx_messageInfo_CompactionRequest.Merge(m, src)
1742}
1743func (m *CompactionRequest) XXX_Size() int {
1744 return m.Size()
1745}
1746func (m *CompactionRequest) XXX_DiscardUnknown() {
1747 xxx_messageInfo_CompactionRequest.DiscardUnknown(m)
1748}
1749
1750var xxx_messageInfo_CompactionRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00001751
1752func (m *CompactionRequest) GetRevision() int64 {
1753 if m != nil {
1754 return m.Revision
1755 }
1756 return 0
1757}
1758
1759func (m *CompactionRequest) GetPhysical() bool {
1760 if m != nil {
1761 return m.Physical
1762 }
1763 return false
1764}
1765
1766type CompactionResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001767 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
1768 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1769 XXX_unrecognized []byte `json:"-"`
1770 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00001771}
1772
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001773func (m *CompactionResponse) Reset() { *m = CompactionResponse{} }
1774func (m *CompactionResponse) String() string { return proto.CompactTextString(m) }
1775func (*CompactionResponse) ProtoMessage() {}
1776func (*CompactionResponse) Descriptor() ([]byte, []int) {
1777 return fileDescriptor_77a6da22d6a3feb1, []int{13}
1778}
1779func (m *CompactionResponse) XXX_Unmarshal(b []byte) error {
1780 return m.Unmarshal(b)
1781}
1782func (m *CompactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1783 if deterministic {
1784 return xxx_messageInfo_CompactionResponse.Marshal(b, m, deterministic)
1785 } else {
1786 b = b[:cap(b)]
1787 n, err := m.MarshalToSizedBuffer(b)
1788 if err != nil {
1789 return nil, err
1790 }
1791 return b[:n], nil
1792 }
1793}
1794func (m *CompactionResponse) XXX_Merge(src proto.Message) {
1795 xxx_messageInfo_CompactionResponse.Merge(m, src)
1796}
1797func (m *CompactionResponse) XXX_Size() int {
1798 return m.Size()
1799}
1800func (m *CompactionResponse) XXX_DiscardUnknown() {
1801 xxx_messageInfo_CompactionResponse.DiscardUnknown(m)
1802}
1803
1804var xxx_messageInfo_CompactionResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00001805
1806func (m *CompactionResponse) GetHeader() *ResponseHeader {
1807 if m != nil {
1808 return m.Header
1809 }
1810 return nil
1811}
1812
1813type HashRequest struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001814 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1815 XXX_unrecognized []byte `json:"-"`
1816 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00001817}
1818
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001819func (m *HashRequest) Reset() { *m = HashRequest{} }
1820func (m *HashRequest) String() string { return proto.CompactTextString(m) }
1821func (*HashRequest) ProtoMessage() {}
1822func (*HashRequest) Descriptor() ([]byte, []int) {
1823 return fileDescriptor_77a6da22d6a3feb1, []int{14}
1824}
1825func (m *HashRequest) XXX_Unmarshal(b []byte) error {
1826 return m.Unmarshal(b)
1827}
1828func (m *HashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1829 if deterministic {
1830 return xxx_messageInfo_HashRequest.Marshal(b, m, deterministic)
1831 } else {
1832 b = b[:cap(b)]
1833 n, err := m.MarshalToSizedBuffer(b)
1834 if err != nil {
1835 return nil, err
1836 }
1837 return b[:n], nil
1838 }
1839}
1840func (m *HashRequest) XXX_Merge(src proto.Message) {
1841 xxx_messageInfo_HashRequest.Merge(m, src)
1842}
1843func (m *HashRequest) XXX_Size() int {
1844 return m.Size()
1845}
1846func (m *HashRequest) XXX_DiscardUnknown() {
1847 xxx_messageInfo_HashRequest.DiscardUnknown(m)
1848}
1849
1850var xxx_messageInfo_HashRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00001851
1852type HashKVRequest struct {
1853 // revision is the key-value store revision for the hash operation.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001854 Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
1855 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1856 XXX_unrecognized []byte `json:"-"`
1857 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00001858}
1859
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001860func (m *HashKVRequest) Reset() { *m = HashKVRequest{} }
1861func (m *HashKVRequest) String() string { return proto.CompactTextString(m) }
1862func (*HashKVRequest) ProtoMessage() {}
1863func (*HashKVRequest) Descriptor() ([]byte, []int) {
1864 return fileDescriptor_77a6da22d6a3feb1, []int{15}
1865}
1866func (m *HashKVRequest) XXX_Unmarshal(b []byte) error {
1867 return m.Unmarshal(b)
1868}
1869func (m *HashKVRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1870 if deterministic {
1871 return xxx_messageInfo_HashKVRequest.Marshal(b, m, deterministic)
1872 } else {
1873 b = b[:cap(b)]
1874 n, err := m.MarshalToSizedBuffer(b)
1875 if err != nil {
1876 return nil, err
1877 }
1878 return b[:n], nil
1879 }
1880}
1881func (m *HashKVRequest) XXX_Merge(src proto.Message) {
1882 xxx_messageInfo_HashKVRequest.Merge(m, src)
1883}
1884func (m *HashKVRequest) XXX_Size() int {
1885 return m.Size()
1886}
1887func (m *HashKVRequest) XXX_DiscardUnknown() {
1888 xxx_messageInfo_HashKVRequest.DiscardUnknown(m)
1889}
1890
1891var xxx_messageInfo_HashKVRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00001892
1893func (m *HashKVRequest) GetRevision() int64 {
1894 if m != nil {
1895 return m.Revision
1896 }
1897 return 0
1898}
1899
1900type HashKVResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001901 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +00001902 // hash is the hash value computed from the responding member's MVCC keys up to a given revision.
1903 Hash uint32 `protobuf:"varint,2,opt,name=hash,proto3" json:"hash,omitempty"`
1904 // compact_revision is the compacted revision of key-value store when hash begins.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001905 CompactRevision int64 `protobuf:"varint,3,opt,name=compact_revision,json=compactRevision,proto3" json:"compact_revision,omitempty"`
1906 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1907 XXX_unrecognized []byte `json:"-"`
1908 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00001909}
1910
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001911func (m *HashKVResponse) Reset() { *m = HashKVResponse{} }
1912func (m *HashKVResponse) String() string { return proto.CompactTextString(m) }
1913func (*HashKVResponse) ProtoMessage() {}
1914func (*HashKVResponse) Descriptor() ([]byte, []int) {
1915 return fileDescriptor_77a6da22d6a3feb1, []int{16}
1916}
1917func (m *HashKVResponse) XXX_Unmarshal(b []byte) error {
1918 return m.Unmarshal(b)
1919}
1920func (m *HashKVResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1921 if deterministic {
1922 return xxx_messageInfo_HashKVResponse.Marshal(b, m, deterministic)
1923 } else {
1924 b = b[:cap(b)]
1925 n, err := m.MarshalToSizedBuffer(b)
1926 if err != nil {
1927 return nil, err
1928 }
1929 return b[:n], nil
1930 }
1931}
1932func (m *HashKVResponse) XXX_Merge(src proto.Message) {
1933 xxx_messageInfo_HashKVResponse.Merge(m, src)
1934}
1935func (m *HashKVResponse) XXX_Size() int {
1936 return m.Size()
1937}
1938func (m *HashKVResponse) XXX_DiscardUnknown() {
1939 xxx_messageInfo_HashKVResponse.DiscardUnknown(m)
1940}
1941
1942var xxx_messageInfo_HashKVResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00001943
1944func (m *HashKVResponse) GetHeader() *ResponseHeader {
1945 if m != nil {
1946 return m.Header
1947 }
1948 return nil
1949}
1950
1951func (m *HashKVResponse) GetHash() uint32 {
1952 if m != nil {
1953 return m.Hash
1954 }
1955 return 0
1956}
1957
1958func (m *HashKVResponse) GetCompactRevision() int64 {
1959 if m != nil {
1960 return m.CompactRevision
1961 }
1962 return 0
1963}
1964
1965type HashResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001966 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +00001967 // hash is the hash value computed from the responding member's KV's backend.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001968 Hash uint32 `protobuf:"varint,2,opt,name=hash,proto3" json:"hash,omitempty"`
1969 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1970 XXX_unrecognized []byte `json:"-"`
1971 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00001972}
1973
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00001974func (m *HashResponse) Reset() { *m = HashResponse{} }
1975func (m *HashResponse) String() string { return proto.CompactTextString(m) }
1976func (*HashResponse) ProtoMessage() {}
1977func (*HashResponse) Descriptor() ([]byte, []int) {
1978 return fileDescriptor_77a6da22d6a3feb1, []int{17}
1979}
1980func (m *HashResponse) XXX_Unmarshal(b []byte) error {
1981 return m.Unmarshal(b)
1982}
1983func (m *HashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1984 if deterministic {
1985 return xxx_messageInfo_HashResponse.Marshal(b, m, deterministic)
1986 } else {
1987 b = b[:cap(b)]
1988 n, err := m.MarshalToSizedBuffer(b)
1989 if err != nil {
1990 return nil, err
1991 }
1992 return b[:n], nil
1993 }
1994}
1995func (m *HashResponse) XXX_Merge(src proto.Message) {
1996 xxx_messageInfo_HashResponse.Merge(m, src)
1997}
1998func (m *HashResponse) XXX_Size() int {
1999 return m.Size()
2000}
2001func (m *HashResponse) XXX_DiscardUnknown() {
2002 xxx_messageInfo_HashResponse.DiscardUnknown(m)
2003}
2004
2005var xxx_messageInfo_HashResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00002006
2007func (m *HashResponse) GetHeader() *ResponseHeader {
2008 if m != nil {
2009 return m.Header
2010 }
2011 return nil
2012}
2013
2014func (m *HashResponse) GetHash() uint32 {
2015 if m != nil {
2016 return m.Hash
2017 }
2018 return 0
2019}
2020
2021type SnapshotRequest struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002022 XXX_NoUnkeyedLiteral struct{} `json:"-"`
2023 XXX_unrecognized []byte `json:"-"`
2024 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00002025}
2026
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002027func (m *SnapshotRequest) Reset() { *m = SnapshotRequest{} }
2028func (m *SnapshotRequest) String() string { return proto.CompactTextString(m) }
2029func (*SnapshotRequest) ProtoMessage() {}
2030func (*SnapshotRequest) Descriptor() ([]byte, []int) {
2031 return fileDescriptor_77a6da22d6a3feb1, []int{18}
2032}
2033func (m *SnapshotRequest) XXX_Unmarshal(b []byte) error {
2034 return m.Unmarshal(b)
2035}
2036func (m *SnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
2037 if deterministic {
2038 return xxx_messageInfo_SnapshotRequest.Marshal(b, m, deterministic)
2039 } else {
2040 b = b[:cap(b)]
2041 n, err := m.MarshalToSizedBuffer(b)
2042 if err != nil {
2043 return nil, err
2044 }
2045 return b[:n], nil
2046 }
2047}
2048func (m *SnapshotRequest) XXX_Merge(src proto.Message) {
2049 xxx_messageInfo_SnapshotRequest.Merge(m, src)
2050}
2051func (m *SnapshotRequest) XXX_Size() int {
2052 return m.Size()
2053}
2054func (m *SnapshotRequest) XXX_DiscardUnknown() {
2055 xxx_messageInfo_SnapshotRequest.DiscardUnknown(m)
2056}
2057
2058var xxx_messageInfo_SnapshotRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00002059
2060type SnapshotResponse struct {
2061 // header has the current key-value store information. The first header in the snapshot
2062 // stream indicates the point in time of the snapshot.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002063 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +00002064 // remaining_bytes is the number of blob bytes to be sent after this message
2065 RemainingBytes uint64 `protobuf:"varint,2,opt,name=remaining_bytes,json=remainingBytes,proto3" json:"remaining_bytes,omitempty"`
2066 // blob contains the next chunk of the snapshot in the snapshot stream.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002067 Blob []byte `protobuf:"bytes,3,opt,name=blob,proto3" json:"blob,omitempty"`
2068 XXX_NoUnkeyedLiteral struct{} `json:"-"`
2069 XXX_unrecognized []byte `json:"-"`
2070 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00002071}
2072
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002073func (m *SnapshotResponse) Reset() { *m = SnapshotResponse{} }
2074func (m *SnapshotResponse) String() string { return proto.CompactTextString(m) }
2075func (*SnapshotResponse) ProtoMessage() {}
2076func (*SnapshotResponse) Descriptor() ([]byte, []int) {
2077 return fileDescriptor_77a6da22d6a3feb1, []int{19}
2078}
2079func (m *SnapshotResponse) XXX_Unmarshal(b []byte) error {
2080 return m.Unmarshal(b)
2081}
2082func (m *SnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
2083 if deterministic {
2084 return xxx_messageInfo_SnapshotResponse.Marshal(b, m, deterministic)
2085 } else {
2086 b = b[:cap(b)]
2087 n, err := m.MarshalToSizedBuffer(b)
2088 if err != nil {
2089 return nil, err
2090 }
2091 return b[:n], nil
2092 }
2093}
2094func (m *SnapshotResponse) XXX_Merge(src proto.Message) {
2095 xxx_messageInfo_SnapshotResponse.Merge(m, src)
2096}
2097func (m *SnapshotResponse) XXX_Size() int {
2098 return m.Size()
2099}
2100func (m *SnapshotResponse) XXX_DiscardUnknown() {
2101 xxx_messageInfo_SnapshotResponse.DiscardUnknown(m)
2102}
2103
2104var xxx_messageInfo_SnapshotResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00002105
2106func (m *SnapshotResponse) GetHeader() *ResponseHeader {
2107 if m != nil {
2108 return m.Header
2109 }
2110 return nil
2111}
2112
2113func (m *SnapshotResponse) GetRemainingBytes() uint64 {
2114 if m != nil {
2115 return m.RemainingBytes
2116 }
2117 return 0
2118}
2119
2120func (m *SnapshotResponse) GetBlob() []byte {
2121 if m != nil {
2122 return m.Blob
2123 }
2124 return nil
2125}
2126
2127type WatchRequest struct {
2128 // request_union is a request to either create a new watcher or cancel an existing watcher.
2129 //
2130 // Types that are valid to be assigned to RequestUnion:
2131 // *WatchRequest_CreateRequest
2132 // *WatchRequest_CancelRequest
2133 // *WatchRequest_ProgressRequest
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002134 RequestUnion isWatchRequest_RequestUnion `protobuf_oneof:"request_union"`
2135 XXX_NoUnkeyedLiteral struct{} `json:"-"`
2136 XXX_unrecognized []byte `json:"-"`
2137 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00002138}
2139
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002140func (m *WatchRequest) Reset() { *m = WatchRequest{} }
2141func (m *WatchRequest) String() string { return proto.CompactTextString(m) }
2142func (*WatchRequest) ProtoMessage() {}
2143func (*WatchRequest) Descriptor() ([]byte, []int) {
2144 return fileDescriptor_77a6da22d6a3feb1, []int{20}
2145}
2146func (m *WatchRequest) XXX_Unmarshal(b []byte) error {
2147 return m.Unmarshal(b)
2148}
2149func (m *WatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
2150 if deterministic {
2151 return xxx_messageInfo_WatchRequest.Marshal(b, m, deterministic)
2152 } else {
2153 b = b[:cap(b)]
2154 n, err := m.MarshalToSizedBuffer(b)
2155 if err != nil {
2156 return nil, err
2157 }
2158 return b[:n], nil
2159 }
2160}
2161func (m *WatchRequest) XXX_Merge(src proto.Message) {
2162 xxx_messageInfo_WatchRequest.Merge(m, src)
2163}
2164func (m *WatchRequest) XXX_Size() int {
2165 return m.Size()
2166}
2167func (m *WatchRequest) XXX_DiscardUnknown() {
2168 xxx_messageInfo_WatchRequest.DiscardUnknown(m)
2169}
2170
2171var xxx_messageInfo_WatchRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00002172
2173type isWatchRequest_RequestUnion interface {
2174 isWatchRequest_RequestUnion()
2175 MarshalTo([]byte) (int, error)
2176 Size() int
2177}
2178
2179type WatchRequest_CreateRequest struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002180 CreateRequest *WatchCreateRequest `protobuf:"bytes,1,opt,name=create_request,json=createRequest,proto3,oneof"`
divyadesai81bb7ba2020-03-11 11:45:23 +00002181}
2182type WatchRequest_CancelRequest struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002183 CancelRequest *WatchCancelRequest `protobuf:"bytes,2,opt,name=cancel_request,json=cancelRequest,proto3,oneof"`
divyadesai81bb7ba2020-03-11 11:45:23 +00002184}
2185type WatchRequest_ProgressRequest struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002186 ProgressRequest *WatchProgressRequest `protobuf:"bytes,3,opt,name=progress_request,json=progressRequest,proto3,oneof"`
divyadesai81bb7ba2020-03-11 11:45:23 +00002187}
2188
2189func (*WatchRequest_CreateRequest) isWatchRequest_RequestUnion() {}
2190func (*WatchRequest_CancelRequest) isWatchRequest_RequestUnion() {}
2191func (*WatchRequest_ProgressRequest) isWatchRequest_RequestUnion() {}
2192
2193func (m *WatchRequest) GetRequestUnion() isWatchRequest_RequestUnion {
2194 if m != nil {
2195 return m.RequestUnion
2196 }
2197 return nil
2198}
2199
2200func (m *WatchRequest) GetCreateRequest() *WatchCreateRequest {
2201 if x, ok := m.GetRequestUnion().(*WatchRequest_CreateRequest); ok {
2202 return x.CreateRequest
2203 }
2204 return nil
2205}
2206
2207func (m *WatchRequest) GetCancelRequest() *WatchCancelRequest {
2208 if x, ok := m.GetRequestUnion().(*WatchRequest_CancelRequest); ok {
2209 return x.CancelRequest
2210 }
2211 return nil
2212}
2213
2214func (m *WatchRequest) GetProgressRequest() *WatchProgressRequest {
2215 if x, ok := m.GetRequestUnion().(*WatchRequest_ProgressRequest); ok {
2216 return x.ProgressRequest
2217 }
2218 return nil
2219}
2220
2221// XXX_OneofFuncs is for the internal use of the proto package.
2222func (*WatchRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
2223 return _WatchRequest_OneofMarshaler, _WatchRequest_OneofUnmarshaler, _WatchRequest_OneofSizer, []interface{}{
2224 (*WatchRequest_CreateRequest)(nil),
2225 (*WatchRequest_CancelRequest)(nil),
2226 (*WatchRequest_ProgressRequest)(nil),
2227 }
2228}
2229
2230func _WatchRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
2231 m := msg.(*WatchRequest)
2232 // request_union
2233 switch x := m.RequestUnion.(type) {
2234 case *WatchRequest_CreateRequest:
2235 _ = b.EncodeVarint(1<<3 | proto.WireBytes)
2236 if err := b.EncodeMessage(x.CreateRequest); err != nil {
2237 return err
2238 }
2239 case *WatchRequest_CancelRequest:
2240 _ = b.EncodeVarint(2<<3 | proto.WireBytes)
2241 if err := b.EncodeMessage(x.CancelRequest); err != nil {
2242 return err
2243 }
2244 case *WatchRequest_ProgressRequest:
2245 _ = b.EncodeVarint(3<<3 | proto.WireBytes)
2246 if err := b.EncodeMessage(x.ProgressRequest); err != nil {
2247 return err
2248 }
2249 case nil:
2250 default:
2251 return fmt.Errorf("WatchRequest.RequestUnion has unexpected type %T", x)
2252 }
2253 return nil
2254}
2255
2256func _WatchRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
2257 m := msg.(*WatchRequest)
2258 switch tag {
2259 case 1: // request_union.create_request
2260 if wire != proto.WireBytes {
2261 return true, proto.ErrInternalBadWireType
2262 }
2263 msg := new(WatchCreateRequest)
2264 err := b.DecodeMessage(msg)
2265 m.RequestUnion = &WatchRequest_CreateRequest{msg}
2266 return true, err
2267 case 2: // request_union.cancel_request
2268 if wire != proto.WireBytes {
2269 return true, proto.ErrInternalBadWireType
2270 }
2271 msg := new(WatchCancelRequest)
2272 err := b.DecodeMessage(msg)
2273 m.RequestUnion = &WatchRequest_CancelRequest{msg}
2274 return true, err
2275 case 3: // request_union.progress_request
2276 if wire != proto.WireBytes {
2277 return true, proto.ErrInternalBadWireType
2278 }
2279 msg := new(WatchProgressRequest)
2280 err := b.DecodeMessage(msg)
2281 m.RequestUnion = &WatchRequest_ProgressRequest{msg}
2282 return true, err
2283 default:
2284 return false, nil
2285 }
2286}
2287
2288func _WatchRequest_OneofSizer(msg proto.Message) (n int) {
2289 m := msg.(*WatchRequest)
2290 // request_union
2291 switch x := m.RequestUnion.(type) {
2292 case *WatchRequest_CreateRequest:
2293 s := proto.Size(x.CreateRequest)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002294 n += 1 // tag and wire
divyadesai81bb7ba2020-03-11 11:45:23 +00002295 n += proto.SizeVarint(uint64(s))
2296 n += s
2297 case *WatchRequest_CancelRequest:
2298 s := proto.Size(x.CancelRequest)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002299 n += 1 // tag and wire
divyadesai81bb7ba2020-03-11 11:45:23 +00002300 n += proto.SizeVarint(uint64(s))
2301 n += s
2302 case *WatchRequest_ProgressRequest:
2303 s := proto.Size(x.ProgressRequest)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002304 n += 1 // tag and wire
divyadesai81bb7ba2020-03-11 11:45:23 +00002305 n += proto.SizeVarint(uint64(s))
2306 n += s
2307 case nil:
2308 default:
2309 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
2310 }
2311 return n
2312}
2313
2314type WatchCreateRequest struct {
2315 // key is the key to register for watching.
2316 Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
2317 // range_end is the end of the range [key, range_end) to watch. If range_end is not given,
2318 // only the key argument is watched. If range_end is equal to '\0', all keys greater than
2319 // or equal to the key argument are watched.
2320 // If the range_end is one bit larger than the given key,
2321 // then all keys with the prefix (the given key) will be watched.
2322 RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"`
2323 // start_revision is an optional revision to watch from (inclusive). No start_revision is "now".
2324 StartRevision int64 `protobuf:"varint,3,opt,name=start_revision,json=startRevision,proto3" json:"start_revision,omitempty"`
2325 // progress_notify is set so that the etcd server will periodically send a WatchResponse with
2326 // no events to the new watcher if there are no recent events. It is useful when clients
2327 // wish to recover a disconnected watcher starting from a recent known revision.
2328 // The etcd server may decide how often it will send notifications based on current load.
2329 ProgressNotify bool `protobuf:"varint,4,opt,name=progress_notify,json=progressNotify,proto3" json:"progress_notify,omitempty"`
2330 // filters filter the events at server side before it sends back to the watcher.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002331 Filters []WatchCreateRequest_FilterType `protobuf:"varint,5,rep,packed,name=filters,proto3,enum=etcdserverpb.WatchCreateRequest_FilterType" json:"filters,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +00002332 // If prev_kv is set, created watcher gets the previous KV before the event happens.
2333 // If the previous KV is already compacted, nothing will be returned.
2334 PrevKv bool `protobuf:"varint,6,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"`
2335 // If watch_id is provided and non-zero, it will be assigned to this watcher.
2336 // Since creating a watcher in etcd is not a synchronous operation,
2337 // this can be used ensure that ordering is correct when creating multiple
2338 // watchers on the same stream. Creating a watcher with an ID already in
2339 // use on the stream will cause an error to be returned.
2340 WatchId int64 `protobuf:"varint,7,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"`
2341 // fragment enables splitting large revisions into multiple watch responses.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002342 Fragment bool `protobuf:"varint,8,opt,name=fragment,proto3" json:"fragment,omitempty"`
2343 XXX_NoUnkeyedLiteral struct{} `json:"-"`
2344 XXX_unrecognized []byte `json:"-"`
2345 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00002346}
2347
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002348func (m *WatchCreateRequest) Reset() { *m = WatchCreateRequest{} }
2349func (m *WatchCreateRequest) String() string { return proto.CompactTextString(m) }
2350func (*WatchCreateRequest) ProtoMessage() {}
2351func (*WatchCreateRequest) Descriptor() ([]byte, []int) {
2352 return fileDescriptor_77a6da22d6a3feb1, []int{21}
2353}
2354func (m *WatchCreateRequest) XXX_Unmarshal(b []byte) error {
2355 return m.Unmarshal(b)
2356}
2357func (m *WatchCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
2358 if deterministic {
2359 return xxx_messageInfo_WatchCreateRequest.Marshal(b, m, deterministic)
2360 } else {
2361 b = b[:cap(b)]
2362 n, err := m.MarshalToSizedBuffer(b)
2363 if err != nil {
2364 return nil, err
2365 }
2366 return b[:n], nil
2367 }
2368}
2369func (m *WatchCreateRequest) XXX_Merge(src proto.Message) {
2370 xxx_messageInfo_WatchCreateRequest.Merge(m, src)
2371}
2372func (m *WatchCreateRequest) XXX_Size() int {
2373 return m.Size()
2374}
2375func (m *WatchCreateRequest) XXX_DiscardUnknown() {
2376 xxx_messageInfo_WatchCreateRequest.DiscardUnknown(m)
2377}
2378
2379var xxx_messageInfo_WatchCreateRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00002380
2381func (m *WatchCreateRequest) GetKey() []byte {
2382 if m != nil {
2383 return m.Key
2384 }
2385 return nil
2386}
2387
2388func (m *WatchCreateRequest) GetRangeEnd() []byte {
2389 if m != nil {
2390 return m.RangeEnd
2391 }
2392 return nil
2393}
2394
2395func (m *WatchCreateRequest) GetStartRevision() int64 {
2396 if m != nil {
2397 return m.StartRevision
2398 }
2399 return 0
2400}
2401
2402func (m *WatchCreateRequest) GetProgressNotify() bool {
2403 if m != nil {
2404 return m.ProgressNotify
2405 }
2406 return false
2407}
2408
2409func (m *WatchCreateRequest) GetFilters() []WatchCreateRequest_FilterType {
2410 if m != nil {
2411 return m.Filters
2412 }
2413 return nil
2414}
2415
2416func (m *WatchCreateRequest) GetPrevKv() bool {
2417 if m != nil {
2418 return m.PrevKv
2419 }
2420 return false
2421}
2422
2423func (m *WatchCreateRequest) GetWatchId() int64 {
2424 if m != nil {
2425 return m.WatchId
2426 }
2427 return 0
2428}
2429
2430func (m *WatchCreateRequest) GetFragment() bool {
2431 if m != nil {
2432 return m.Fragment
2433 }
2434 return false
2435}
2436
2437type WatchCancelRequest struct {
2438 // watch_id is the watcher id to cancel so that no more events are transmitted.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002439 WatchId int64 `protobuf:"varint,1,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"`
2440 XXX_NoUnkeyedLiteral struct{} `json:"-"`
2441 XXX_unrecognized []byte `json:"-"`
2442 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00002443}
2444
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002445func (m *WatchCancelRequest) Reset() { *m = WatchCancelRequest{} }
2446func (m *WatchCancelRequest) String() string { return proto.CompactTextString(m) }
2447func (*WatchCancelRequest) ProtoMessage() {}
2448func (*WatchCancelRequest) Descriptor() ([]byte, []int) {
2449 return fileDescriptor_77a6da22d6a3feb1, []int{22}
2450}
2451func (m *WatchCancelRequest) XXX_Unmarshal(b []byte) error {
2452 return m.Unmarshal(b)
2453}
2454func (m *WatchCancelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
2455 if deterministic {
2456 return xxx_messageInfo_WatchCancelRequest.Marshal(b, m, deterministic)
2457 } else {
2458 b = b[:cap(b)]
2459 n, err := m.MarshalToSizedBuffer(b)
2460 if err != nil {
2461 return nil, err
2462 }
2463 return b[:n], nil
2464 }
2465}
2466func (m *WatchCancelRequest) XXX_Merge(src proto.Message) {
2467 xxx_messageInfo_WatchCancelRequest.Merge(m, src)
2468}
2469func (m *WatchCancelRequest) XXX_Size() int {
2470 return m.Size()
2471}
2472func (m *WatchCancelRequest) XXX_DiscardUnknown() {
2473 xxx_messageInfo_WatchCancelRequest.DiscardUnknown(m)
2474}
2475
2476var xxx_messageInfo_WatchCancelRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00002477
2478func (m *WatchCancelRequest) GetWatchId() int64 {
2479 if m != nil {
2480 return m.WatchId
2481 }
2482 return 0
2483}
2484
2485// Requests the a watch stream progress status be sent in the watch response stream as soon as
2486// possible.
2487type WatchProgressRequest struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002488 XXX_NoUnkeyedLiteral struct{} `json:"-"`
2489 XXX_unrecognized []byte `json:"-"`
2490 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00002491}
2492
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002493func (m *WatchProgressRequest) Reset() { *m = WatchProgressRequest{} }
2494func (m *WatchProgressRequest) String() string { return proto.CompactTextString(m) }
2495func (*WatchProgressRequest) ProtoMessage() {}
2496func (*WatchProgressRequest) Descriptor() ([]byte, []int) {
2497 return fileDescriptor_77a6da22d6a3feb1, []int{23}
2498}
2499func (m *WatchProgressRequest) XXX_Unmarshal(b []byte) error {
2500 return m.Unmarshal(b)
2501}
2502func (m *WatchProgressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
2503 if deterministic {
2504 return xxx_messageInfo_WatchProgressRequest.Marshal(b, m, deterministic)
2505 } else {
2506 b = b[:cap(b)]
2507 n, err := m.MarshalToSizedBuffer(b)
2508 if err != nil {
2509 return nil, err
2510 }
2511 return b[:n], nil
2512 }
2513}
2514func (m *WatchProgressRequest) XXX_Merge(src proto.Message) {
2515 xxx_messageInfo_WatchProgressRequest.Merge(m, src)
2516}
2517func (m *WatchProgressRequest) XXX_Size() int {
2518 return m.Size()
2519}
2520func (m *WatchProgressRequest) XXX_DiscardUnknown() {
2521 xxx_messageInfo_WatchProgressRequest.DiscardUnknown(m)
2522}
2523
2524var xxx_messageInfo_WatchProgressRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00002525
2526type WatchResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002527 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +00002528 // watch_id is the ID of the watcher that corresponds to the response.
2529 WatchId int64 `protobuf:"varint,2,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"`
2530 // created is set to true if the response is for a create watch request.
2531 // The client should record the watch_id and expect to receive events for
2532 // the created watcher from the same stream.
2533 // All events sent to the created watcher will attach with the same watch_id.
2534 Created bool `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"`
2535 // canceled is set to true if the response is for a cancel watch request.
2536 // No further events will be sent to the canceled watcher.
2537 Canceled bool `protobuf:"varint,4,opt,name=canceled,proto3" json:"canceled,omitempty"`
2538 // compact_revision is set to the minimum index if a watcher tries to watch
2539 // at a compacted index.
2540 //
2541 // This happens when creating a watcher at a compacted revision or the watcher cannot
2542 // catch up with the progress of the key-value store.
2543 //
2544 // The client should treat the watcher as canceled and should not try to create any
2545 // watcher with the same start_revision again.
2546 CompactRevision int64 `protobuf:"varint,5,opt,name=compact_revision,json=compactRevision,proto3" json:"compact_revision,omitempty"`
2547 // cancel_reason indicates the reason for canceling the watcher.
2548 CancelReason string `protobuf:"bytes,6,opt,name=cancel_reason,json=cancelReason,proto3" json:"cancel_reason,omitempty"`
2549 // framgment is true if large watch response was split over multiple responses.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002550 Fragment bool `protobuf:"varint,7,opt,name=fragment,proto3" json:"fragment,omitempty"`
2551 Events []*mvccpb.Event `protobuf:"bytes,11,rep,name=events,proto3" json:"events,omitempty"`
2552 XXX_NoUnkeyedLiteral struct{} `json:"-"`
2553 XXX_unrecognized []byte `json:"-"`
2554 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00002555}
2556
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002557func (m *WatchResponse) Reset() { *m = WatchResponse{} }
2558func (m *WatchResponse) String() string { return proto.CompactTextString(m) }
2559func (*WatchResponse) ProtoMessage() {}
2560func (*WatchResponse) Descriptor() ([]byte, []int) {
2561 return fileDescriptor_77a6da22d6a3feb1, []int{24}
2562}
2563func (m *WatchResponse) XXX_Unmarshal(b []byte) error {
2564 return m.Unmarshal(b)
2565}
2566func (m *WatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
2567 if deterministic {
2568 return xxx_messageInfo_WatchResponse.Marshal(b, m, deterministic)
2569 } else {
2570 b = b[:cap(b)]
2571 n, err := m.MarshalToSizedBuffer(b)
2572 if err != nil {
2573 return nil, err
2574 }
2575 return b[:n], nil
2576 }
2577}
2578func (m *WatchResponse) XXX_Merge(src proto.Message) {
2579 xxx_messageInfo_WatchResponse.Merge(m, src)
2580}
2581func (m *WatchResponse) XXX_Size() int {
2582 return m.Size()
2583}
2584func (m *WatchResponse) XXX_DiscardUnknown() {
2585 xxx_messageInfo_WatchResponse.DiscardUnknown(m)
2586}
2587
2588var xxx_messageInfo_WatchResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00002589
2590func (m *WatchResponse) GetHeader() *ResponseHeader {
2591 if m != nil {
2592 return m.Header
2593 }
2594 return nil
2595}
2596
2597func (m *WatchResponse) GetWatchId() int64 {
2598 if m != nil {
2599 return m.WatchId
2600 }
2601 return 0
2602}
2603
2604func (m *WatchResponse) GetCreated() bool {
2605 if m != nil {
2606 return m.Created
2607 }
2608 return false
2609}
2610
2611func (m *WatchResponse) GetCanceled() bool {
2612 if m != nil {
2613 return m.Canceled
2614 }
2615 return false
2616}
2617
2618func (m *WatchResponse) GetCompactRevision() int64 {
2619 if m != nil {
2620 return m.CompactRevision
2621 }
2622 return 0
2623}
2624
2625func (m *WatchResponse) GetCancelReason() string {
2626 if m != nil {
2627 return m.CancelReason
2628 }
2629 return ""
2630}
2631
2632func (m *WatchResponse) GetFragment() bool {
2633 if m != nil {
2634 return m.Fragment
2635 }
2636 return false
2637}
2638
2639func (m *WatchResponse) GetEvents() []*mvccpb.Event {
2640 if m != nil {
2641 return m.Events
2642 }
2643 return nil
2644}
2645
2646type LeaseGrantRequest struct {
2647 // TTL is the advisory time-to-live in seconds. Expired lease will return -1.
2648 TTL int64 `protobuf:"varint,1,opt,name=TTL,proto3" json:"TTL,omitempty"`
2649 // ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002650 ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
2651 XXX_NoUnkeyedLiteral struct{} `json:"-"`
2652 XXX_unrecognized []byte `json:"-"`
2653 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00002654}
2655
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002656func (m *LeaseGrantRequest) Reset() { *m = LeaseGrantRequest{} }
2657func (m *LeaseGrantRequest) String() string { return proto.CompactTextString(m) }
2658func (*LeaseGrantRequest) ProtoMessage() {}
2659func (*LeaseGrantRequest) Descriptor() ([]byte, []int) {
2660 return fileDescriptor_77a6da22d6a3feb1, []int{25}
2661}
2662func (m *LeaseGrantRequest) XXX_Unmarshal(b []byte) error {
2663 return m.Unmarshal(b)
2664}
2665func (m *LeaseGrantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
2666 if deterministic {
2667 return xxx_messageInfo_LeaseGrantRequest.Marshal(b, m, deterministic)
2668 } else {
2669 b = b[:cap(b)]
2670 n, err := m.MarshalToSizedBuffer(b)
2671 if err != nil {
2672 return nil, err
2673 }
2674 return b[:n], nil
2675 }
2676}
2677func (m *LeaseGrantRequest) XXX_Merge(src proto.Message) {
2678 xxx_messageInfo_LeaseGrantRequest.Merge(m, src)
2679}
2680func (m *LeaseGrantRequest) XXX_Size() int {
2681 return m.Size()
2682}
2683func (m *LeaseGrantRequest) XXX_DiscardUnknown() {
2684 xxx_messageInfo_LeaseGrantRequest.DiscardUnknown(m)
2685}
2686
2687var xxx_messageInfo_LeaseGrantRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00002688
2689func (m *LeaseGrantRequest) GetTTL() int64 {
2690 if m != nil {
2691 return m.TTL
2692 }
2693 return 0
2694}
2695
2696func (m *LeaseGrantRequest) GetID() int64 {
2697 if m != nil {
2698 return m.ID
2699 }
2700 return 0
2701}
2702
2703type LeaseGrantResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002704 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +00002705 // ID is the lease ID for the granted lease.
2706 ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
2707 // TTL is the server chosen lease time-to-live in seconds.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002708 TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"`
2709 Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
2710 XXX_NoUnkeyedLiteral struct{} `json:"-"`
2711 XXX_unrecognized []byte `json:"-"`
2712 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00002713}
2714
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002715func (m *LeaseGrantResponse) Reset() { *m = LeaseGrantResponse{} }
2716func (m *LeaseGrantResponse) String() string { return proto.CompactTextString(m) }
2717func (*LeaseGrantResponse) ProtoMessage() {}
2718func (*LeaseGrantResponse) Descriptor() ([]byte, []int) {
2719 return fileDescriptor_77a6da22d6a3feb1, []int{26}
2720}
2721func (m *LeaseGrantResponse) XXX_Unmarshal(b []byte) error {
2722 return m.Unmarshal(b)
2723}
2724func (m *LeaseGrantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
2725 if deterministic {
2726 return xxx_messageInfo_LeaseGrantResponse.Marshal(b, m, deterministic)
2727 } else {
2728 b = b[:cap(b)]
2729 n, err := m.MarshalToSizedBuffer(b)
2730 if err != nil {
2731 return nil, err
2732 }
2733 return b[:n], nil
2734 }
2735}
2736func (m *LeaseGrantResponse) XXX_Merge(src proto.Message) {
2737 xxx_messageInfo_LeaseGrantResponse.Merge(m, src)
2738}
2739func (m *LeaseGrantResponse) XXX_Size() int {
2740 return m.Size()
2741}
2742func (m *LeaseGrantResponse) XXX_DiscardUnknown() {
2743 xxx_messageInfo_LeaseGrantResponse.DiscardUnknown(m)
2744}
2745
2746var xxx_messageInfo_LeaseGrantResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00002747
2748func (m *LeaseGrantResponse) GetHeader() *ResponseHeader {
2749 if m != nil {
2750 return m.Header
2751 }
2752 return nil
2753}
2754
2755func (m *LeaseGrantResponse) GetID() int64 {
2756 if m != nil {
2757 return m.ID
2758 }
2759 return 0
2760}
2761
2762func (m *LeaseGrantResponse) GetTTL() int64 {
2763 if m != nil {
2764 return m.TTL
2765 }
2766 return 0
2767}
2768
2769func (m *LeaseGrantResponse) GetError() string {
2770 if m != nil {
2771 return m.Error
2772 }
2773 return ""
2774}
2775
2776type LeaseRevokeRequest struct {
2777 // ID is the lease ID to revoke. When the ID is revoked, all associated keys will be deleted.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002778 ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
2779 XXX_NoUnkeyedLiteral struct{} `json:"-"`
2780 XXX_unrecognized []byte `json:"-"`
2781 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00002782}
2783
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002784func (m *LeaseRevokeRequest) Reset() { *m = LeaseRevokeRequest{} }
2785func (m *LeaseRevokeRequest) String() string { return proto.CompactTextString(m) }
2786func (*LeaseRevokeRequest) ProtoMessage() {}
2787func (*LeaseRevokeRequest) Descriptor() ([]byte, []int) {
2788 return fileDescriptor_77a6da22d6a3feb1, []int{27}
2789}
2790func (m *LeaseRevokeRequest) XXX_Unmarshal(b []byte) error {
2791 return m.Unmarshal(b)
2792}
2793func (m *LeaseRevokeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
2794 if deterministic {
2795 return xxx_messageInfo_LeaseRevokeRequest.Marshal(b, m, deterministic)
2796 } else {
2797 b = b[:cap(b)]
2798 n, err := m.MarshalToSizedBuffer(b)
2799 if err != nil {
2800 return nil, err
2801 }
2802 return b[:n], nil
2803 }
2804}
2805func (m *LeaseRevokeRequest) XXX_Merge(src proto.Message) {
2806 xxx_messageInfo_LeaseRevokeRequest.Merge(m, src)
2807}
2808func (m *LeaseRevokeRequest) XXX_Size() int {
2809 return m.Size()
2810}
2811func (m *LeaseRevokeRequest) XXX_DiscardUnknown() {
2812 xxx_messageInfo_LeaseRevokeRequest.DiscardUnknown(m)
2813}
2814
2815var xxx_messageInfo_LeaseRevokeRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00002816
2817func (m *LeaseRevokeRequest) GetID() int64 {
2818 if m != nil {
2819 return m.ID
2820 }
2821 return 0
2822}
2823
2824type LeaseRevokeResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002825 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
2826 XXX_NoUnkeyedLiteral struct{} `json:"-"`
2827 XXX_unrecognized []byte `json:"-"`
2828 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00002829}
2830
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002831func (m *LeaseRevokeResponse) Reset() { *m = LeaseRevokeResponse{} }
2832func (m *LeaseRevokeResponse) String() string { return proto.CompactTextString(m) }
2833func (*LeaseRevokeResponse) ProtoMessage() {}
2834func (*LeaseRevokeResponse) Descriptor() ([]byte, []int) {
2835 return fileDescriptor_77a6da22d6a3feb1, []int{28}
2836}
2837func (m *LeaseRevokeResponse) XXX_Unmarshal(b []byte) error {
2838 return m.Unmarshal(b)
2839}
2840func (m *LeaseRevokeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
2841 if deterministic {
2842 return xxx_messageInfo_LeaseRevokeResponse.Marshal(b, m, deterministic)
2843 } else {
2844 b = b[:cap(b)]
2845 n, err := m.MarshalToSizedBuffer(b)
2846 if err != nil {
2847 return nil, err
2848 }
2849 return b[:n], nil
2850 }
2851}
2852func (m *LeaseRevokeResponse) XXX_Merge(src proto.Message) {
2853 xxx_messageInfo_LeaseRevokeResponse.Merge(m, src)
2854}
2855func (m *LeaseRevokeResponse) XXX_Size() int {
2856 return m.Size()
2857}
2858func (m *LeaseRevokeResponse) XXX_DiscardUnknown() {
2859 xxx_messageInfo_LeaseRevokeResponse.DiscardUnknown(m)
2860}
2861
2862var xxx_messageInfo_LeaseRevokeResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00002863
2864func (m *LeaseRevokeResponse) GetHeader() *ResponseHeader {
2865 if m != nil {
2866 return m.Header
2867 }
2868 return nil
2869}
2870
divyadesai81bb7ba2020-03-11 11:45:23 +00002871type LeaseKeepAliveRequest struct {
2872 // ID is the lease ID for the lease to keep alive.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002873 ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
2874 XXX_NoUnkeyedLiteral struct{} `json:"-"`
2875 XXX_unrecognized []byte `json:"-"`
2876 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00002877}
2878
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002879func (m *LeaseKeepAliveRequest) Reset() { *m = LeaseKeepAliveRequest{} }
2880func (m *LeaseKeepAliveRequest) String() string { return proto.CompactTextString(m) }
2881func (*LeaseKeepAliveRequest) ProtoMessage() {}
2882func (*LeaseKeepAliveRequest) Descriptor() ([]byte, []int) {
2883 return fileDescriptor_77a6da22d6a3feb1, []int{29}
2884}
2885func (m *LeaseKeepAliveRequest) XXX_Unmarshal(b []byte) error {
2886 return m.Unmarshal(b)
2887}
2888func (m *LeaseKeepAliveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
2889 if deterministic {
2890 return xxx_messageInfo_LeaseKeepAliveRequest.Marshal(b, m, deterministic)
2891 } else {
2892 b = b[:cap(b)]
2893 n, err := m.MarshalToSizedBuffer(b)
2894 if err != nil {
2895 return nil, err
2896 }
2897 return b[:n], nil
2898 }
2899}
2900func (m *LeaseKeepAliveRequest) XXX_Merge(src proto.Message) {
2901 xxx_messageInfo_LeaseKeepAliveRequest.Merge(m, src)
2902}
2903func (m *LeaseKeepAliveRequest) XXX_Size() int {
2904 return m.Size()
2905}
2906func (m *LeaseKeepAliveRequest) XXX_DiscardUnknown() {
2907 xxx_messageInfo_LeaseKeepAliveRequest.DiscardUnknown(m)
2908}
2909
2910var xxx_messageInfo_LeaseKeepAliveRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00002911
2912func (m *LeaseKeepAliveRequest) GetID() int64 {
2913 if m != nil {
2914 return m.ID
2915 }
2916 return 0
2917}
2918
2919type LeaseKeepAliveResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002920 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +00002921 // ID is the lease ID from the keep alive request.
2922 ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
2923 // TTL is the new time-to-live for the lease.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002924 TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"`
2925 XXX_NoUnkeyedLiteral struct{} `json:"-"`
2926 XXX_unrecognized []byte `json:"-"`
2927 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00002928}
2929
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002930func (m *LeaseKeepAliveResponse) Reset() { *m = LeaseKeepAliveResponse{} }
2931func (m *LeaseKeepAliveResponse) String() string { return proto.CompactTextString(m) }
2932func (*LeaseKeepAliveResponse) ProtoMessage() {}
2933func (*LeaseKeepAliveResponse) Descriptor() ([]byte, []int) {
2934 return fileDescriptor_77a6da22d6a3feb1, []int{30}
2935}
2936func (m *LeaseKeepAliveResponse) XXX_Unmarshal(b []byte) error {
2937 return m.Unmarshal(b)
2938}
2939func (m *LeaseKeepAliveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
2940 if deterministic {
2941 return xxx_messageInfo_LeaseKeepAliveResponse.Marshal(b, m, deterministic)
2942 } else {
2943 b = b[:cap(b)]
2944 n, err := m.MarshalToSizedBuffer(b)
2945 if err != nil {
2946 return nil, err
2947 }
2948 return b[:n], nil
2949 }
2950}
2951func (m *LeaseKeepAliveResponse) XXX_Merge(src proto.Message) {
2952 xxx_messageInfo_LeaseKeepAliveResponse.Merge(m, src)
2953}
2954func (m *LeaseKeepAliveResponse) XXX_Size() int {
2955 return m.Size()
2956}
2957func (m *LeaseKeepAliveResponse) XXX_DiscardUnknown() {
2958 xxx_messageInfo_LeaseKeepAliveResponse.DiscardUnknown(m)
2959}
2960
2961var xxx_messageInfo_LeaseKeepAliveResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00002962
2963func (m *LeaseKeepAliveResponse) GetHeader() *ResponseHeader {
2964 if m != nil {
2965 return m.Header
2966 }
2967 return nil
2968}
2969
2970func (m *LeaseKeepAliveResponse) GetID() int64 {
2971 if m != nil {
2972 return m.ID
2973 }
2974 return 0
2975}
2976
2977func (m *LeaseKeepAliveResponse) GetTTL() int64 {
2978 if m != nil {
2979 return m.TTL
2980 }
2981 return 0
2982}
2983
2984type LeaseTimeToLiveRequest struct {
2985 // ID is the lease ID for the lease.
2986 ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
2987 // keys is true to query all the keys attached to this lease.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002988 Keys bool `protobuf:"varint,2,opt,name=keys,proto3" json:"keys,omitempty"`
2989 XXX_NoUnkeyedLiteral struct{} `json:"-"`
2990 XXX_unrecognized []byte `json:"-"`
2991 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00002992}
2993
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00002994func (m *LeaseTimeToLiveRequest) Reset() { *m = LeaseTimeToLiveRequest{} }
2995func (m *LeaseTimeToLiveRequest) String() string { return proto.CompactTextString(m) }
2996func (*LeaseTimeToLiveRequest) ProtoMessage() {}
2997func (*LeaseTimeToLiveRequest) Descriptor() ([]byte, []int) {
2998 return fileDescriptor_77a6da22d6a3feb1, []int{31}
2999}
3000func (m *LeaseTimeToLiveRequest) XXX_Unmarshal(b []byte) error {
3001 return m.Unmarshal(b)
3002}
3003func (m *LeaseTimeToLiveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
3004 if deterministic {
3005 return xxx_messageInfo_LeaseTimeToLiveRequest.Marshal(b, m, deterministic)
3006 } else {
3007 b = b[:cap(b)]
3008 n, err := m.MarshalToSizedBuffer(b)
3009 if err != nil {
3010 return nil, err
3011 }
3012 return b[:n], nil
3013 }
3014}
3015func (m *LeaseTimeToLiveRequest) XXX_Merge(src proto.Message) {
3016 xxx_messageInfo_LeaseTimeToLiveRequest.Merge(m, src)
3017}
3018func (m *LeaseTimeToLiveRequest) XXX_Size() int {
3019 return m.Size()
3020}
3021func (m *LeaseTimeToLiveRequest) XXX_DiscardUnknown() {
3022 xxx_messageInfo_LeaseTimeToLiveRequest.DiscardUnknown(m)
3023}
3024
3025var xxx_messageInfo_LeaseTimeToLiveRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00003026
3027func (m *LeaseTimeToLiveRequest) GetID() int64 {
3028 if m != nil {
3029 return m.ID
3030 }
3031 return 0
3032}
3033
3034func (m *LeaseTimeToLiveRequest) GetKeys() bool {
3035 if m != nil {
3036 return m.Keys
3037 }
3038 return false
3039}
3040
3041type LeaseTimeToLiveResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003042 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003043 // ID is the lease ID from the keep alive request.
3044 ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
3045 // TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.
3046 TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"`
3047 // GrantedTTL is the initial granted time in seconds upon lease creation/renewal.
3048 GrantedTTL int64 `protobuf:"varint,4,opt,name=grantedTTL,proto3" json:"grantedTTL,omitempty"`
3049 // Keys is the list of keys attached to this lease.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003050 Keys [][]byte `protobuf:"bytes,5,rep,name=keys,proto3" json:"keys,omitempty"`
3051 XXX_NoUnkeyedLiteral struct{} `json:"-"`
3052 XXX_unrecognized []byte `json:"-"`
3053 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003054}
3055
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003056func (m *LeaseTimeToLiveResponse) Reset() { *m = LeaseTimeToLiveResponse{} }
3057func (m *LeaseTimeToLiveResponse) String() string { return proto.CompactTextString(m) }
3058func (*LeaseTimeToLiveResponse) ProtoMessage() {}
3059func (*LeaseTimeToLiveResponse) Descriptor() ([]byte, []int) {
3060 return fileDescriptor_77a6da22d6a3feb1, []int{32}
3061}
3062func (m *LeaseTimeToLiveResponse) XXX_Unmarshal(b []byte) error {
3063 return m.Unmarshal(b)
3064}
3065func (m *LeaseTimeToLiveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
3066 if deterministic {
3067 return xxx_messageInfo_LeaseTimeToLiveResponse.Marshal(b, m, deterministic)
3068 } else {
3069 b = b[:cap(b)]
3070 n, err := m.MarshalToSizedBuffer(b)
3071 if err != nil {
3072 return nil, err
3073 }
3074 return b[:n], nil
3075 }
3076}
3077func (m *LeaseTimeToLiveResponse) XXX_Merge(src proto.Message) {
3078 xxx_messageInfo_LeaseTimeToLiveResponse.Merge(m, src)
3079}
3080func (m *LeaseTimeToLiveResponse) XXX_Size() int {
3081 return m.Size()
3082}
3083func (m *LeaseTimeToLiveResponse) XXX_DiscardUnknown() {
3084 xxx_messageInfo_LeaseTimeToLiveResponse.DiscardUnknown(m)
3085}
3086
3087var xxx_messageInfo_LeaseTimeToLiveResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00003088
3089func (m *LeaseTimeToLiveResponse) GetHeader() *ResponseHeader {
3090 if m != nil {
3091 return m.Header
3092 }
3093 return nil
3094}
3095
3096func (m *LeaseTimeToLiveResponse) GetID() int64 {
3097 if m != nil {
3098 return m.ID
3099 }
3100 return 0
3101}
3102
3103func (m *LeaseTimeToLiveResponse) GetTTL() int64 {
3104 if m != nil {
3105 return m.TTL
3106 }
3107 return 0
3108}
3109
3110func (m *LeaseTimeToLiveResponse) GetGrantedTTL() int64 {
3111 if m != nil {
3112 return m.GrantedTTL
3113 }
3114 return 0
3115}
3116
3117func (m *LeaseTimeToLiveResponse) GetKeys() [][]byte {
3118 if m != nil {
3119 return m.Keys
3120 }
3121 return nil
3122}
3123
3124type LeaseLeasesRequest struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003125 XXX_NoUnkeyedLiteral struct{} `json:"-"`
3126 XXX_unrecognized []byte `json:"-"`
3127 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003128}
3129
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003130func (m *LeaseLeasesRequest) Reset() { *m = LeaseLeasesRequest{} }
3131func (m *LeaseLeasesRequest) String() string { return proto.CompactTextString(m) }
3132func (*LeaseLeasesRequest) ProtoMessage() {}
3133func (*LeaseLeasesRequest) Descriptor() ([]byte, []int) {
3134 return fileDescriptor_77a6da22d6a3feb1, []int{33}
3135}
3136func (m *LeaseLeasesRequest) XXX_Unmarshal(b []byte) error {
3137 return m.Unmarshal(b)
3138}
3139func (m *LeaseLeasesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
3140 if deterministic {
3141 return xxx_messageInfo_LeaseLeasesRequest.Marshal(b, m, deterministic)
3142 } else {
3143 b = b[:cap(b)]
3144 n, err := m.MarshalToSizedBuffer(b)
3145 if err != nil {
3146 return nil, err
3147 }
3148 return b[:n], nil
3149 }
3150}
3151func (m *LeaseLeasesRequest) XXX_Merge(src proto.Message) {
3152 xxx_messageInfo_LeaseLeasesRequest.Merge(m, src)
3153}
3154func (m *LeaseLeasesRequest) XXX_Size() int {
3155 return m.Size()
3156}
3157func (m *LeaseLeasesRequest) XXX_DiscardUnknown() {
3158 xxx_messageInfo_LeaseLeasesRequest.DiscardUnknown(m)
3159}
3160
3161var xxx_messageInfo_LeaseLeasesRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00003162
3163type LeaseStatus struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003164 ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
3165 XXX_NoUnkeyedLiteral struct{} `json:"-"`
3166 XXX_unrecognized []byte `json:"-"`
3167 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003168}
3169
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003170func (m *LeaseStatus) Reset() { *m = LeaseStatus{} }
3171func (m *LeaseStatus) String() string { return proto.CompactTextString(m) }
3172func (*LeaseStatus) ProtoMessage() {}
3173func (*LeaseStatus) Descriptor() ([]byte, []int) {
3174 return fileDescriptor_77a6da22d6a3feb1, []int{34}
3175}
3176func (m *LeaseStatus) XXX_Unmarshal(b []byte) error {
3177 return m.Unmarshal(b)
3178}
3179func (m *LeaseStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
3180 if deterministic {
3181 return xxx_messageInfo_LeaseStatus.Marshal(b, m, deterministic)
3182 } else {
3183 b = b[:cap(b)]
3184 n, err := m.MarshalToSizedBuffer(b)
3185 if err != nil {
3186 return nil, err
3187 }
3188 return b[:n], nil
3189 }
3190}
3191func (m *LeaseStatus) XXX_Merge(src proto.Message) {
3192 xxx_messageInfo_LeaseStatus.Merge(m, src)
3193}
3194func (m *LeaseStatus) XXX_Size() int {
3195 return m.Size()
3196}
3197func (m *LeaseStatus) XXX_DiscardUnknown() {
3198 xxx_messageInfo_LeaseStatus.DiscardUnknown(m)
3199}
3200
3201var xxx_messageInfo_LeaseStatus proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00003202
3203func (m *LeaseStatus) GetID() int64 {
3204 if m != nil {
3205 return m.ID
3206 }
3207 return 0
3208}
3209
3210type LeaseLeasesResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003211 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
3212 Leases []*LeaseStatus `protobuf:"bytes,2,rep,name=leases,proto3" json:"leases,omitempty"`
3213 XXX_NoUnkeyedLiteral struct{} `json:"-"`
3214 XXX_unrecognized []byte `json:"-"`
3215 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003216}
3217
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003218func (m *LeaseLeasesResponse) Reset() { *m = LeaseLeasesResponse{} }
3219func (m *LeaseLeasesResponse) String() string { return proto.CompactTextString(m) }
3220func (*LeaseLeasesResponse) ProtoMessage() {}
3221func (*LeaseLeasesResponse) Descriptor() ([]byte, []int) {
3222 return fileDescriptor_77a6da22d6a3feb1, []int{35}
3223}
3224func (m *LeaseLeasesResponse) XXX_Unmarshal(b []byte) error {
3225 return m.Unmarshal(b)
3226}
3227func (m *LeaseLeasesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
3228 if deterministic {
3229 return xxx_messageInfo_LeaseLeasesResponse.Marshal(b, m, deterministic)
3230 } else {
3231 b = b[:cap(b)]
3232 n, err := m.MarshalToSizedBuffer(b)
3233 if err != nil {
3234 return nil, err
3235 }
3236 return b[:n], nil
3237 }
3238}
3239func (m *LeaseLeasesResponse) XXX_Merge(src proto.Message) {
3240 xxx_messageInfo_LeaseLeasesResponse.Merge(m, src)
3241}
3242func (m *LeaseLeasesResponse) XXX_Size() int {
3243 return m.Size()
3244}
3245func (m *LeaseLeasesResponse) XXX_DiscardUnknown() {
3246 xxx_messageInfo_LeaseLeasesResponse.DiscardUnknown(m)
3247}
3248
3249var xxx_messageInfo_LeaseLeasesResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00003250
3251func (m *LeaseLeasesResponse) GetHeader() *ResponseHeader {
3252 if m != nil {
3253 return m.Header
3254 }
3255 return nil
3256}
3257
3258func (m *LeaseLeasesResponse) GetLeases() []*LeaseStatus {
3259 if m != nil {
3260 return m.Leases
3261 }
3262 return nil
3263}
3264
3265type Member struct {
3266 // ID is the member ID for this member.
3267 ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
3268 // name is the human-readable name of the member. If the member is not started, the name will be an empty string.
3269 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
3270 // peerURLs is the list of URLs the member exposes to the cluster for communication.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003271 PeerURLs []string `protobuf:"bytes,3,rep,name=peerURLs,proto3" json:"peerURLs,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003272 // clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003273 ClientURLs []string `protobuf:"bytes,4,rep,name=clientURLs,proto3" json:"clientURLs,omitempty"`
3274 XXX_NoUnkeyedLiteral struct{} `json:"-"`
3275 XXX_unrecognized []byte `json:"-"`
3276 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003277}
3278
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003279func (m *Member) Reset() { *m = Member{} }
3280func (m *Member) String() string { return proto.CompactTextString(m) }
3281func (*Member) ProtoMessage() {}
3282func (*Member) Descriptor() ([]byte, []int) {
3283 return fileDescriptor_77a6da22d6a3feb1, []int{36}
3284}
3285func (m *Member) XXX_Unmarshal(b []byte) error {
3286 return m.Unmarshal(b)
3287}
3288func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
3289 if deterministic {
3290 return xxx_messageInfo_Member.Marshal(b, m, deterministic)
3291 } else {
3292 b = b[:cap(b)]
3293 n, err := m.MarshalToSizedBuffer(b)
3294 if err != nil {
3295 return nil, err
3296 }
3297 return b[:n], nil
3298 }
3299}
3300func (m *Member) XXX_Merge(src proto.Message) {
3301 xxx_messageInfo_Member.Merge(m, src)
3302}
3303func (m *Member) XXX_Size() int {
3304 return m.Size()
3305}
3306func (m *Member) XXX_DiscardUnknown() {
3307 xxx_messageInfo_Member.DiscardUnknown(m)
3308}
3309
3310var xxx_messageInfo_Member proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00003311
3312func (m *Member) GetID() uint64 {
3313 if m != nil {
3314 return m.ID
3315 }
3316 return 0
3317}
3318
3319func (m *Member) GetName() string {
3320 if m != nil {
3321 return m.Name
3322 }
3323 return ""
3324}
3325
3326func (m *Member) GetPeerURLs() []string {
3327 if m != nil {
3328 return m.PeerURLs
3329 }
3330 return nil
3331}
3332
3333func (m *Member) GetClientURLs() []string {
3334 if m != nil {
3335 return m.ClientURLs
3336 }
3337 return nil
3338}
3339
divyadesai81bb7ba2020-03-11 11:45:23 +00003340type MemberAddRequest struct {
3341 // peerURLs is the list of URLs the added member will use to communicate with the cluster.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003342 PeerURLs []string `protobuf:"bytes,1,rep,name=peerURLs,proto3" json:"peerURLs,omitempty"`
3343 XXX_NoUnkeyedLiteral struct{} `json:"-"`
3344 XXX_unrecognized []byte `json:"-"`
3345 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003346}
3347
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003348func (m *MemberAddRequest) Reset() { *m = MemberAddRequest{} }
3349func (m *MemberAddRequest) String() string { return proto.CompactTextString(m) }
3350func (*MemberAddRequest) ProtoMessage() {}
3351func (*MemberAddRequest) Descriptor() ([]byte, []int) {
3352 return fileDescriptor_77a6da22d6a3feb1, []int{37}
3353}
3354func (m *MemberAddRequest) XXX_Unmarshal(b []byte) error {
3355 return m.Unmarshal(b)
3356}
3357func (m *MemberAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
3358 if deterministic {
3359 return xxx_messageInfo_MemberAddRequest.Marshal(b, m, deterministic)
3360 } else {
3361 b = b[:cap(b)]
3362 n, err := m.MarshalToSizedBuffer(b)
3363 if err != nil {
3364 return nil, err
3365 }
3366 return b[:n], nil
3367 }
3368}
3369func (m *MemberAddRequest) XXX_Merge(src proto.Message) {
3370 xxx_messageInfo_MemberAddRequest.Merge(m, src)
3371}
3372func (m *MemberAddRequest) XXX_Size() int {
3373 return m.Size()
3374}
3375func (m *MemberAddRequest) XXX_DiscardUnknown() {
3376 xxx_messageInfo_MemberAddRequest.DiscardUnknown(m)
3377}
3378
3379var xxx_messageInfo_MemberAddRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00003380
3381func (m *MemberAddRequest) GetPeerURLs() []string {
3382 if m != nil {
3383 return m.PeerURLs
3384 }
3385 return nil
3386}
3387
divyadesai81bb7ba2020-03-11 11:45:23 +00003388type MemberAddResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003389 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003390 // member is the member information for the added member.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003391 Member *Member `protobuf:"bytes,2,opt,name=member,proto3" json:"member,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003392 // members is a list of all members after adding the new member.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003393 Members []*Member `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"`
3394 XXX_NoUnkeyedLiteral struct{} `json:"-"`
3395 XXX_unrecognized []byte `json:"-"`
3396 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003397}
3398
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003399func (m *MemberAddResponse) Reset() { *m = MemberAddResponse{} }
3400func (m *MemberAddResponse) String() string { return proto.CompactTextString(m) }
3401func (*MemberAddResponse) ProtoMessage() {}
3402func (*MemberAddResponse) Descriptor() ([]byte, []int) {
3403 return fileDescriptor_77a6da22d6a3feb1, []int{38}
3404}
3405func (m *MemberAddResponse) XXX_Unmarshal(b []byte) error {
3406 return m.Unmarshal(b)
3407}
3408func (m *MemberAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
3409 if deterministic {
3410 return xxx_messageInfo_MemberAddResponse.Marshal(b, m, deterministic)
3411 } else {
3412 b = b[:cap(b)]
3413 n, err := m.MarshalToSizedBuffer(b)
3414 if err != nil {
3415 return nil, err
3416 }
3417 return b[:n], nil
3418 }
3419}
3420func (m *MemberAddResponse) XXX_Merge(src proto.Message) {
3421 xxx_messageInfo_MemberAddResponse.Merge(m, src)
3422}
3423func (m *MemberAddResponse) XXX_Size() int {
3424 return m.Size()
3425}
3426func (m *MemberAddResponse) XXX_DiscardUnknown() {
3427 xxx_messageInfo_MemberAddResponse.DiscardUnknown(m)
3428}
3429
3430var xxx_messageInfo_MemberAddResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00003431
3432func (m *MemberAddResponse) GetHeader() *ResponseHeader {
3433 if m != nil {
3434 return m.Header
3435 }
3436 return nil
3437}
3438
3439func (m *MemberAddResponse) GetMember() *Member {
3440 if m != nil {
3441 return m.Member
3442 }
3443 return nil
3444}
3445
3446func (m *MemberAddResponse) GetMembers() []*Member {
3447 if m != nil {
3448 return m.Members
3449 }
3450 return nil
3451}
3452
3453type MemberRemoveRequest struct {
3454 // ID is the member ID of the member to remove.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003455 ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
3456 XXX_NoUnkeyedLiteral struct{} `json:"-"`
3457 XXX_unrecognized []byte `json:"-"`
3458 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003459}
3460
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003461func (m *MemberRemoveRequest) Reset() { *m = MemberRemoveRequest{} }
3462func (m *MemberRemoveRequest) String() string { return proto.CompactTextString(m) }
3463func (*MemberRemoveRequest) ProtoMessage() {}
3464func (*MemberRemoveRequest) Descriptor() ([]byte, []int) {
3465 return fileDescriptor_77a6da22d6a3feb1, []int{39}
3466}
3467func (m *MemberRemoveRequest) XXX_Unmarshal(b []byte) error {
3468 return m.Unmarshal(b)
3469}
3470func (m *MemberRemoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
3471 if deterministic {
3472 return xxx_messageInfo_MemberRemoveRequest.Marshal(b, m, deterministic)
3473 } else {
3474 b = b[:cap(b)]
3475 n, err := m.MarshalToSizedBuffer(b)
3476 if err != nil {
3477 return nil, err
3478 }
3479 return b[:n], nil
3480 }
3481}
3482func (m *MemberRemoveRequest) XXX_Merge(src proto.Message) {
3483 xxx_messageInfo_MemberRemoveRequest.Merge(m, src)
3484}
3485func (m *MemberRemoveRequest) XXX_Size() int {
3486 return m.Size()
3487}
3488func (m *MemberRemoveRequest) XXX_DiscardUnknown() {
3489 xxx_messageInfo_MemberRemoveRequest.DiscardUnknown(m)
3490}
3491
3492var xxx_messageInfo_MemberRemoveRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00003493
3494func (m *MemberRemoveRequest) GetID() uint64 {
3495 if m != nil {
3496 return m.ID
3497 }
3498 return 0
3499}
3500
3501type MemberRemoveResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003502 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003503 // members is a list of all members after removing the member.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003504 Members []*Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
3505 XXX_NoUnkeyedLiteral struct{} `json:"-"`
3506 XXX_unrecognized []byte `json:"-"`
3507 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003508}
3509
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003510func (m *MemberRemoveResponse) Reset() { *m = MemberRemoveResponse{} }
3511func (m *MemberRemoveResponse) String() string { return proto.CompactTextString(m) }
3512func (*MemberRemoveResponse) ProtoMessage() {}
3513func (*MemberRemoveResponse) Descriptor() ([]byte, []int) {
3514 return fileDescriptor_77a6da22d6a3feb1, []int{40}
3515}
3516func (m *MemberRemoveResponse) XXX_Unmarshal(b []byte) error {
3517 return m.Unmarshal(b)
3518}
3519func (m *MemberRemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
3520 if deterministic {
3521 return xxx_messageInfo_MemberRemoveResponse.Marshal(b, m, deterministic)
3522 } else {
3523 b = b[:cap(b)]
3524 n, err := m.MarshalToSizedBuffer(b)
3525 if err != nil {
3526 return nil, err
3527 }
3528 return b[:n], nil
3529 }
3530}
3531func (m *MemberRemoveResponse) XXX_Merge(src proto.Message) {
3532 xxx_messageInfo_MemberRemoveResponse.Merge(m, src)
3533}
3534func (m *MemberRemoveResponse) XXX_Size() int {
3535 return m.Size()
3536}
3537func (m *MemberRemoveResponse) XXX_DiscardUnknown() {
3538 xxx_messageInfo_MemberRemoveResponse.DiscardUnknown(m)
3539}
3540
3541var xxx_messageInfo_MemberRemoveResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00003542
3543func (m *MemberRemoveResponse) GetHeader() *ResponseHeader {
3544 if m != nil {
3545 return m.Header
3546 }
3547 return nil
3548}
3549
3550func (m *MemberRemoveResponse) GetMembers() []*Member {
3551 if m != nil {
3552 return m.Members
3553 }
3554 return nil
3555}
3556
3557type MemberUpdateRequest struct {
3558 // ID is the member ID of the member to update.
3559 ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
3560 // peerURLs is the new list of URLs the member will use to communicate with the cluster.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003561 PeerURLs []string `protobuf:"bytes,2,rep,name=peerURLs,proto3" json:"peerURLs,omitempty"`
3562 XXX_NoUnkeyedLiteral struct{} `json:"-"`
3563 XXX_unrecognized []byte `json:"-"`
3564 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003565}
3566
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003567func (m *MemberUpdateRequest) Reset() { *m = MemberUpdateRequest{} }
3568func (m *MemberUpdateRequest) String() string { return proto.CompactTextString(m) }
3569func (*MemberUpdateRequest) ProtoMessage() {}
3570func (*MemberUpdateRequest) Descriptor() ([]byte, []int) {
3571 return fileDescriptor_77a6da22d6a3feb1, []int{41}
3572}
3573func (m *MemberUpdateRequest) XXX_Unmarshal(b []byte) error {
3574 return m.Unmarshal(b)
3575}
3576func (m *MemberUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
3577 if deterministic {
3578 return xxx_messageInfo_MemberUpdateRequest.Marshal(b, m, deterministic)
3579 } else {
3580 b = b[:cap(b)]
3581 n, err := m.MarshalToSizedBuffer(b)
3582 if err != nil {
3583 return nil, err
3584 }
3585 return b[:n], nil
3586 }
3587}
3588func (m *MemberUpdateRequest) XXX_Merge(src proto.Message) {
3589 xxx_messageInfo_MemberUpdateRequest.Merge(m, src)
3590}
3591func (m *MemberUpdateRequest) XXX_Size() int {
3592 return m.Size()
3593}
3594func (m *MemberUpdateRequest) XXX_DiscardUnknown() {
3595 xxx_messageInfo_MemberUpdateRequest.DiscardUnknown(m)
3596}
3597
3598var xxx_messageInfo_MemberUpdateRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00003599
3600func (m *MemberUpdateRequest) GetID() uint64 {
3601 if m != nil {
3602 return m.ID
3603 }
3604 return 0
3605}
3606
3607func (m *MemberUpdateRequest) GetPeerURLs() []string {
3608 if m != nil {
3609 return m.PeerURLs
3610 }
3611 return nil
3612}
3613
3614type MemberUpdateResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003615 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003616 // members is a list of all members after updating the member.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003617 Members []*Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
3618 XXX_NoUnkeyedLiteral struct{} `json:"-"`
3619 XXX_unrecognized []byte `json:"-"`
3620 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003621}
3622
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003623func (m *MemberUpdateResponse) Reset() { *m = MemberUpdateResponse{} }
3624func (m *MemberUpdateResponse) String() string { return proto.CompactTextString(m) }
3625func (*MemberUpdateResponse) ProtoMessage() {}
3626func (*MemberUpdateResponse) Descriptor() ([]byte, []int) {
3627 return fileDescriptor_77a6da22d6a3feb1, []int{42}
3628}
3629func (m *MemberUpdateResponse) XXX_Unmarshal(b []byte) error {
3630 return m.Unmarshal(b)
3631}
3632func (m *MemberUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
3633 if deterministic {
3634 return xxx_messageInfo_MemberUpdateResponse.Marshal(b, m, deterministic)
3635 } else {
3636 b = b[:cap(b)]
3637 n, err := m.MarshalToSizedBuffer(b)
3638 if err != nil {
3639 return nil, err
3640 }
3641 return b[:n], nil
3642 }
3643}
3644func (m *MemberUpdateResponse) XXX_Merge(src proto.Message) {
3645 xxx_messageInfo_MemberUpdateResponse.Merge(m, src)
3646}
3647func (m *MemberUpdateResponse) XXX_Size() int {
3648 return m.Size()
3649}
3650func (m *MemberUpdateResponse) XXX_DiscardUnknown() {
3651 xxx_messageInfo_MemberUpdateResponse.DiscardUnknown(m)
3652}
3653
3654var xxx_messageInfo_MemberUpdateResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00003655
3656func (m *MemberUpdateResponse) GetHeader() *ResponseHeader {
3657 if m != nil {
3658 return m.Header
3659 }
3660 return nil
3661}
3662
3663func (m *MemberUpdateResponse) GetMembers() []*Member {
3664 if m != nil {
3665 return m.Members
3666 }
3667 return nil
3668}
3669
3670type MemberListRequest struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003671 XXX_NoUnkeyedLiteral struct{} `json:"-"`
3672 XXX_unrecognized []byte `json:"-"`
3673 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003674}
3675
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003676func (m *MemberListRequest) Reset() { *m = MemberListRequest{} }
3677func (m *MemberListRequest) String() string { return proto.CompactTextString(m) }
3678func (*MemberListRequest) ProtoMessage() {}
3679func (*MemberListRequest) Descriptor() ([]byte, []int) {
3680 return fileDescriptor_77a6da22d6a3feb1, []int{43}
3681}
3682func (m *MemberListRequest) XXX_Unmarshal(b []byte) error {
3683 return m.Unmarshal(b)
3684}
3685func (m *MemberListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
3686 if deterministic {
3687 return xxx_messageInfo_MemberListRequest.Marshal(b, m, deterministic)
3688 } else {
3689 b = b[:cap(b)]
3690 n, err := m.MarshalToSizedBuffer(b)
3691 if err != nil {
3692 return nil, err
3693 }
3694 return b[:n], nil
3695 }
3696}
3697func (m *MemberListRequest) XXX_Merge(src proto.Message) {
3698 xxx_messageInfo_MemberListRequest.Merge(m, src)
3699}
3700func (m *MemberListRequest) XXX_Size() int {
3701 return m.Size()
3702}
3703func (m *MemberListRequest) XXX_DiscardUnknown() {
3704 xxx_messageInfo_MemberListRequest.DiscardUnknown(m)
3705}
3706
3707var xxx_messageInfo_MemberListRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00003708
3709type MemberListResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003710 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003711 // members is a list of all members associated with the cluster.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003712 Members []*Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`
3713 XXX_NoUnkeyedLiteral struct{} `json:"-"`
3714 XXX_unrecognized []byte `json:"-"`
3715 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003716}
3717
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003718func (m *MemberListResponse) Reset() { *m = MemberListResponse{} }
3719func (m *MemberListResponse) String() string { return proto.CompactTextString(m) }
3720func (*MemberListResponse) ProtoMessage() {}
3721func (*MemberListResponse) Descriptor() ([]byte, []int) {
3722 return fileDescriptor_77a6da22d6a3feb1, []int{44}
3723}
3724func (m *MemberListResponse) XXX_Unmarshal(b []byte) error {
3725 return m.Unmarshal(b)
3726}
3727func (m *MemberListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
3728 if deterministic {
3729 return xxx_messageInfo_MemberListResponse.Marshal(b, m, deterministic)
3730 } else {
3731 b = b[:cap(b)]
3732 n, err := m.MarshalToSizedBuffer(b)
3733 if err != nil {
3734 return nil, err
3735 }
3736 return b[:n], nil
3737 }
3738}
3739func (m *MemberListResponse) XXX_Merge(src proto.Message) {
3740 xxx_messageInfo_MemberListResponse.Merge(m, src)
3741}
3742func (m *MemberListResponse) XXX_Size() int {
3743 return m.Size()
3744}
3745func (m *MemberListResponse) XXX_DiscardUnknown() {
3746 xxx_messageInfo_MemberListResponse.DiscardUnknown(m)
3747}
3748
3749var xxx_messageInfo_MemberListResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00003750
3751func (m *MemberListResponse) GetHeader() *ResponseHeader {
3752 if m != nil {
3753 return m.Header
3754 }
3755 return nil
3756}
3757
3758func (m *MemberListResponse) GetMembers() []*Member {
3759 if m != nil {
3760 return m.Members
3761 }
3762 return nil
3763}
3764
divyadesai81bb7ba2020-03-11 11:45:23 +00003765type DefragmentRequest struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003766 XXX_NoUnkeyedLiteral struct{} `json:"-"`
3767 XXX_unrecognized []byte `json:"-"`
3768 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003769}
3770
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003771func (m *DefragmentRequest) Reset() { *m = DefragmentRequest{} }
3772func (m *DefragmentRequest) String() string { return proto.CompactTextString(m) }
3773func (*DefragmentRequest) ProtoMessage() {}
3774func (*DefragmentRequest) Descriptor() ([]byte, []int) {
3775 return fileDescriptor_77a6da22d6a3feb1, []int{45}
3776}
3777func (m *DefragmentRequest) XXX_Unmarshal(b []byte) error {
3778 return m.Unmarshal(b)
3779}
3780func (m *DefragmentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
3781 if deterministic {
3782 return xxx_messageInfo_DefragmentRequest.Marshal(b, m, deterministic)
3783 } else {
3784 b = b[:cap(b)]
3785 n, err := m.MarshalToSizedBuffer(b)
3786 if err != nil {
3787 return nil, err
3788 }
3789 return b[:n], nil
3790 }
3791}
3792func (m *DefragmentRequest) XXX_Merge(src proto.Message) {
3793 xxx_messageInfo_DefragmentRequest.Merge(m, src)
3794}
3795func (m *DefragmentRequest) XXX_Size() int {
3796 return m.Size()
3797}
3798func (m *DefragmentRequest) XXX_DiscardUnknown() {
3799 xxx_messageInfo_DefragmentRequest.DiscardUnknown(m)
3800}
3801
3802var xxx_messageInfo_DefragmentRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00003803
3804type DefragmentResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003805 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
3806 XXX_NoUnkeyedLiteral struct{} `json:"-"`
3807 XXX_unrecognized []byte `json:"-"`
3808 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003809}
3810
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003811func (m *DefragmentResponse) Reset() { *m = DefragmentResponse{} }
3812func (m *DefragmentResponse) String() string { return proto.CompactTextString(m) }
3813func (*DefragmentResponse) ProtoMessage() {}
3814func (*DefragmentResponse) Descriptor() ([]byte, []int) {
3815 return fileDescriptor_77a6da22d6a3feb1, []int{46}
3816}
3817func (m *DefragmentResponse) XXX_Unmarshal(b []byte) error {
3818 return m.Unmarshal(b)
3819}
3820func (m *DefragmentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
3821 if deterministic {
3822 return xxx_messageInfo_DefragmentResponse.Marshal(b, m, deterministic)
3823 } else {
3824 b = b[:cap(b)]
3825 n, err := m.MarshalToSizedBuffer(b)
3826 if err != nil {
3827 return nil, err
3828 }
3829 return b[:n], nil
3830 }
3831}
3832func (m *DefragmentResponse) XXX_Merge(src proto.Message) {
3833 xxx_messageInfo_DefragmentResponse.Merge(m, src)
3834}
3835func (m *DefragmentResponse) XXX_Size() int {
3836 return m.Size()
3837}
3838func (m *DefragmentResponse) XXX_DiscardUnknown() {
3839 xxx_messageInfo_DefragmentResponse.DiscardUnknown(m)
3840}
3841
3842var xxx_messageInfo_DefragmentResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00003843
3844func (m *DefragmentResponse) GetHeader() *ResponseHeader {
3845 if m != nil {
3846 return m.Header
3847 }
3848 return nil
3849}
3850
3851type MoveLeaderRequest struct {
3852 // targetID is the node ID for the new leader.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003853 TargetID uint64 `protobuf:"varint,1,opt,name=targetID,proto3" json:"targetID,omitempty"`
3854 XXX_NoUnkeyedLiteral struct{} `json:"-"`
3855 XXX_unrecognized []byte `json:"-"`
3856 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003857}
3858
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003859func (m *MoveLeaderRequest) Reset() { *m = MoveLeaderRequest{} }
3860func (m *MoveLeaderRequest) String() string { return proto.CompactTextString(m) }
3861func (*MoveLeaderRequest) ProtoMessage() {}
3862func (*MoveLeaderRequest) Descriptor() ([]byte, []int) {
3863 return fileDescriptor_77a6da22d6a3feb1, []int{47}
3864}
3865func (m *MoveLeaderRequest) XXX_Unmarshal(b []byte) error {
3866 return m.Unmarshal(b)
3867}
3868func (m *MoveLeaderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
3869 if deterministic {
3870 return xxx_messageInfo_MoveLeaderRequest.Marshal(b, m, deterministic)
3871 } else {
3872 b = b[:cap(b)]
3873 n, err := m.MarshalToSizedBuffer(b)
3874 if err != nil {
3875 return nil, err
3876 }
3877 return b[:n], nil
3878 }
3879}
3880func (m *MoveLeaderRequest) XXX_Merge(src proto.Message) {
3881 xxx_messageInfo_MoveLeaderRequest.Merge(m, src)
3882}
3883func (m *MoveLeaderRequest) XXX_Size() int {
3884 return m.Size()
3885}
3886func (m *MoveLeaderRequest) XXX_DiscardUnknown() {
3887 xxx_messageInfo_MoveLeaderRequest.DiscardUnknown(m)
3888}
3889
3890var xxx_messageInfo_MoveLeaderRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00003891
3892func (m *MoveLeaderRequest) GetTargetID() uint64 {
3893 if m != nil {
3894 return m.TargetID
3895 }
3896 return 0
3897}
3898
3899type MoveLeaderResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003900 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
3901 XXX_NoUnkeyedLiteral struct{} `json:"-"`
3902 XXX_unrecognized []byte `json:"-"`
3903 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003904}
3905
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003906func (m *MoveLeaderResponse) Reset() { *m = MoveLeaderResponse{} }
3907func (m *MoveLeaderResponse) String() string { return proto.CompactTextString(m) }
3908func (*MoveLeaderResponse) ProtoMessage() {}
3909func (*MoveLeaderResponse) Descriptor() ([]byte, []int) {
3910 return fileDescriptor_77a6da22d6a3feb1, []int{48}
3911}
3912func (m *MoveLeaderResponse) XXX_Unmarshal(b []byte) error {
3913 return m.Unmarshal(b)
3914}
3915func (m *MoveLeaderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
3916 if deterministic {
3917 return xxx_messageInfo_MoveLeaderResponse.Marshal(b, m, deterministic)
3918 } else {
3919 b = b[:cap(b)]
3920 n, err := m.MarshalToSizedBuffer(b)
3921 if err != nil {
3922 return nil, err
3923 }
3924 return b[:n], nil
3925 }
3926}
3927func (m *MoveLeaderResponse) XXX_Merge(src proto.Message) {
3928 xxx_messageInfo_MoveLeaderResponse.Merge(m, src)
3929}
3930func (m *MoveLeaderResponse) XXX_Size() int {
3931 return m.Size()
3932}
3933func (m *MoveLeaderResponse) XXX_DiscardUnknown() {
3934 xxx_messageInfo_MoveLeaderResponse.DiscardUnknown(m)
3935}
3936
3937var xxx_messageInfo_MoveLeaderResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00003938
3939func (m *MoveLeaderResponse) GetHeader() *ResponseHeader {
3940 if m != nil {
3941 return m.Header
3942 }
3943 return nil
3944}
3945
3946type AlarmRequest struct {
3947 // action is the kind of alarm request to issue. The action
3948 // may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a
3949 // raised alarm.
3950 Action AlarmRequest_AlarmAction `protobuf:"varint,1,opt,name=action,proto3,enum=etcdserverpb.AlarmRequest_AlarmAction" json:"action,omitempty"`
3951 // memberID is the ID of the member associated with the alarm. If memberID is 0, the
3952 // alarm request covers all members.
3953 MemberID uint64 `protobuf:"varint,2,opt,name=memberID,proto3" json:"memberID,omitempty"`
3954 // alarm is the type of alarm to consider for this request.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003955 Alarm AlarmType `protobuf:"varint,3,opt,name=alarm,proto3,enum=etcdserverpb.AlarmType" json:"alarm,omitempty"`
3956 XXX_NoUnkeyedLiteral struct{} `json:"-"`
3957 XXX_unrecognized []byte `json:"-"`
3958 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00003959}
3960
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00003961func (m *AlarmRequest) Reset() { *m = AlarmRequest{} }
3962func (m *AlarmRequest) String() string { return proto.CompactTextString(m) }
3963func (*AlarmRequest) ProtoMessage() {}
3964func (*AlarmRequest) Descriptor() ([]byte, []int) {
3965 return fileDescriptor_77a6da22d6a3feb1, []int{49}
3966}
3967func (m *AlarmRequest) XXX_Unmarshal(b []byte) error {
3968 return m.Unmarshal(b)
3969}
3970func (m *AlarmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
3971 if deterministic {
3972 return xxx_messageInfo_AlarmRequest.Marshal(b, m, deterministic)
3973 } else {
3974 b = b[:cap(b)]
3975 n, err := m.MarshalToSizedBuffer(b)
3976 if err != nil {
3977 return nil, err
3978 }
3979 return b[:n], nil
3980 }
3981}
3982func (m *AlarmRequest) XXX_Merge(src proto.Message) {
3983 xxx_messageInfo_AlarmRequest.Merge(m, src)
3984}
3985func (m *AlarmRequest) XXX_Size() int {
3986 return m.Size()
3987}
3988func (m *AlarmRequest) XXX_DiscardUnknown() {
3989 xxx_messageInfo_AlarmRequest.DiscardUnknown(m)
3990}
3991
3992var xxx_messageInfo_AlarmRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00003993
3994func (m *AlarmRequest) GetAction() AlarmRequest_AlarmAction {
3995 if m != nil {
3996 return m.Action
3997 }
3998 return AlarmRequest_GET
3999}
4000
4001func (m *AlarmRequest) GetMemberID() uint64 {
4002 if m != nil {
4003 return m.MemberID
4004 }
4005 return 0
4006}
4007
4008func (m *AlarmRequest) GetAlarm() AlarmType {
4009 if m != nil {
4010 return m.Alarm
4011 }
4012 return AlarmType_NONE
4013}
4014
4015type AlarmMember struct {
4016 // memberID is the ID of the member associated with the raised alarm.
4017 MemberID uint64 `protobuf:"varint,1,opt,name=memberID,proto3" json:"memberID,omitempty"`
4018 // alarm is the type of alarm which has been raised.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004019 Alarm AlarmType `protobuf:"varint,2,opt,name=alarm,proto3,enum=etcdserverpb.AlarmType" json:"alarm,omitempty"`
4020 XXX_NoUnkeyedLiteral struct{} `json:"-"`
4021 XXX_unrecognized []byte `json:"-"`
4022 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00004023}
4024
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004025func (m *AlarmMember) Reset() { *m = AlarmMember{} }
4026func (m *AlarmMember) String() string { return proto.CompactTextString(m) }
4027func (*AlarmMember) ProtoMessage() {}
4028func (*AlarmMember) Descriptor() ([]byte, []int) {
4029 return fileDescriptor_77a6da22d6a3feb1, []int{50}
4030}
4031func (m *AlarmMember) XXX_Unmarshal(b []byte) error {
4032 return m.Unmarshal(b)
4033}
4034func (m *AlarmMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
4035 if deterministic {
4036 return xxx_messageInfo_AlarmMember.Marshal(b, m, deterministic)
4037 } else {
4038 b = b[:cap(b)]
4039 n, err := m.MarshalToSizedBuffer(b)
4040 if err != nil {
4041 return nil, err
4042 }
4043 return b[:n], nil
4044 }
4045}
4046func (m *AlarmMember) XXX_Merge(src proto.Message) {
4047 xxx_messageInfo_AlarmMember.Merge(m, src)
4048}
4049func (m *AlarmMember) XXX_Size() int {
4050 return m.Size()
4051}
4052func (m *AlarmMember) XXX_DiscardUnknown() {
4053 xxx_messageInfo_AlarmMember.DiscardUnknown(m)
4054}
4055
4056var xxx_messageInfo_AlarmMember proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00004057
4058func (m *AlarmMember) GetMemberID() uint64 {
4059 if m != nil {
4060 return m.MemberID
4061 }
4062 return 0
4063}
4064
4065func (m *AlarmMember) GetAlarm() AlarmType {
4066 if m != nil {
4067 return m.Alarm
4068 }
4069 return AlarmType_NONE
4070}
4071
4072type AlarmResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004073 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +00004074 // alarms is a list of alarms associated with the alarm request.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004075 Alarms []*AlarmMember `protobuf:"bytes,2,rep,name=alarms,proto3" json:"alarms,omitempty"`
4076 XXX_NoUnkeyedLiteral struct{} `json:"-"`
4077 XXX_unrecognized []byte `json:"-"`
4078 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00004079}
4080
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004081func (m *AlarmResponse) Reset() { *m = AlarmResponse{} }
4082func (m *AlarmResponse) String() string { return proto.CompactTextString(m) }
4083func (*AlarmResponse) ProtoMessage() {}
4084func (*AlarmResponse) Descriptor() ([]byte, []int) {
4085 return fileDescriptor_77a6da22d6a3feb1, []int{51}
4086}
4087func (m *AlarmResponse) XXX_Unmarshal(b []byte) error {
4088 return m.Unmarshal(b)
4089}
4090func (m *AlarmResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
4091 if deterministic {
4092 return xxx_messageInfo_AlarmResponse.Marshal(b, m, deterministic)
4093 } else {
4094 b = b[:cap(b)]
4095 n, err := m.MarshalToSizedBuffer(b)
4096 if err != nil {
4097 return nil, err
4098 }
4099 return b[:n], nil
4100 }
4101}
4102func (m *AlarmResponse) XXX_Merge(src proto.Message) {
4103 xxx_messageInfo_AlarmResponse.Merge(m, src)
4104}
4105func (m *AlarmResponse) XXX_Size() int {
4106 return m.Size()
4107}
4108func (m *AlarmResponse) XXX_DiscardUnknown() {
4109 xxx_messageInfo_AlarmResponse.DiscardUnknown(m)
4110}
4111
4112var xxx_messageInfo_AlarmResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00004113
4114func (m *AlarmResponse) GetHeader() *ResponseHeader {
4115 if m != nil {
4116 return m.Header
4117 }
4118 return nil
4119}
4120
4121func (m *AlarmResponse) GetAlarms() []*AlarmMember {
4122 if m != nil {
4123 return m.Alarms
4124 }
4125 return nil
4126}
4127
4128type StatusRequest struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004129 XXX_NoUnkeyedLiteral struct{} `json:"-"`
4130 XXX_unrecognized []byte `json:"-"`
4131 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00004132}
4133
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004134func (m *StatusRequest) Reset() { *m = StatusRequest{} }
4135func (m *StatusRequest) String() string { return proto.CompactTextString(m) }
4136func (*StatusRequest) ProtoMessage() {}
4137func (*StatusRequest) Descriptor() ([]byte, []int) {
4138 return fileDescriptor_77a6da22d6a3feb1, []int{52}
4139}
4140func (m *StatusRequest) XXX_Unmarshal(b []byte) error {
4141 return m.Unmarshal(b)
4142}
4143func (m *StatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
4144 if deterministic {
4145 return xxx_messageInfo_StatusRequest.Marshal(b, m, deterministic)
4146 } else {
4147 b = b[:cap(b)]
4148 n, err := m.MarshalToSizedBuffer(b)
4149 if err != nil {
4150 return nil, err
4151 }
4152 return b[:n], nil
4153 }
4154}
4155func (m *StatusRequest) XXX_Merge(src proto.Message) {
4156 xxx_messageInfo_StatusRequest.Merge(m, src)
4157}
4158func (m *StatusRequest) XXX_Size() int {
4159 return m.Size()
4160}
4161func (m *StatusRequest) XXX_DiscardUnknown() {
4162 xxx_messageInfo_StatusRequest.DiscardUnknown(m)
4163}
4164
4165var xxx_messageInfo_StatusRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00004166
4167type StatusResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004168 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +00004169 // version is the cluster protocol version used by the responding member.
4170 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004171 // dbSize is the size of the backend database, in bytes, of the responding member.
divyadesai81bb7ba2020-03-11 11:45:23 +00004172 DbSize int64 `protobuf:"varint,3,opt,name=dbSize,proto3" json:"dbSize,omitempty"`
4173 // leader is the member ID which the responding member believes is the current leader.
4174 Leader uint64 `protobuf:"varint,4,opt,name=leader,proto3" json:"leader,omitempty"`
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004175 // raftIndex is the current raft index of the responding member.
divyadesai81bb7ba2020-03-11 11:45:23 +00004176 RaftIndex uint64 `protobuf:"varint,5,opt,name=raftIndex,proto3" json:"raftIndex,omitempty"`
4177 // raftTerm is the current raft term of the responding member.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004178 RaftTerm uint64 `protobuf:"varint,6,opt,name=raftTerm,proto3" json:"raftTerm,omitempty"`
4179 XXX_NoUnkeyedLiteral struct{} `json:"-"`
4180 XXX_unrecognized []byte `json:"-"`
4181 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00004182}
4183
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004184func (m *StatusResponse) Reset() { *m = StatusResponse{} }
4185func (m *StatusResponse) String() string { return proto.CompactTextString(m) }
4186func (*StatusResponse) ProtoMessage() {}
4187func (*StatusResponse) Descriptor() ([]byte, []int) {
4188 return fileDescriptor_77a6da22d6a3feb1, []int{53}
4189}
4190func (m *StatusResponse) XXX_Unmarshal(b []byte) error {
4191 return m.Unmarshal(b)
4192}
4193func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
4194 if deterministic {
4195 return xxx_messageInfo_StatusResponse.Marshal(b, m, deterministic)
4196 } else {
4197 b = b[:cap(b)]
4198 n, err := m.MarshalToSizedBuffer(b)
4199 if err != nil {
4200 return nil, err
4201 }
4202 return b[:n], nil
4203 }
4204}
4205func (m *StatusResponse) XXX_Merge(src proto.Message) {
4206 xxx_messageInfo_StatusResponse.Merge(m, src)
4207}
4208func (m *StatusResponse) XXX_Size() int {
4209 return m.Size()
4210}
4211func (m *StatusResponse) XXX_DiscardUnknown() {
4212 xxx_messageInfo_StatusResponse.DiscardUnknown(m)
4213}
4214
4215var xxx_messageInfo_StatusResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00004216
4217func (m *StatusResponse) GetHeader() *ResponseHeader {
4218 if m != nil {
4219 return m.Header
4220 }
4221 return nil
4222}
4223
4224func (m *StatusResponse) GetVersion() string {
4225 if m != nil {
4226 return m.Version
4227 }
4228 return ""
4229}
4230
4231func (m *StatusResponse) GetDbSize() int64 {
4232 if m != nil {
4233 return m.DbSize
4234 }
4235 return 0
4236}
4237
4238func (m *StatusResponse) GetLeader() uint64 {
4239 if m != nil {
4240 return m.Leader
4241 }
4242 return 0
4243}
4244
4245func (m *StatusResponse) GetRaftIndex() uint64 {
4246 if m != nil {
4247 return m.RaftIndex
4248 }
4249 return 0
4250}
4251
4252func (m *StatusResponse) GetRaftTerm() uint64 {
4253 if m != nil {
4254 return m.RaftTerm
4255 }
4256 return 0
4257}
4258
divyadesai81bb7ba2020-03-11 11:45:23 +00004259type AuthEnableRequest struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004260 XXX_NoUnkeyedLiteral struct{} `json:"-"`
4261 XXX_unrecognized []byte `json:"-"`
4262 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00004263}
4264
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004265func (m *AuthEnableRequest) Reset() { *m = AuthEnableRequest{} }
4266func (m *AuthEnableRequest) String() string { return proto.CompactTextString(m) }
4267func (*AuthEnableRequest) ProtoMessage() {}
4268func (*AuthEnableRequest) Descriptor() ([]byte, []int) {
4269 return fileDescriptor_77a6da22d6a3feb1, []int{54}
4270}
4271func (m *AuthEnableRequest) XXX_Unmarshal(b []byte) error {
4272 return m.Unmarshal(b)
4273}
4274func (m *AuthEnableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
4275 if deterministic {
4276 return xxx_messageInfo_AuthEnableRequest.Marshal(b, m, deterministic)
4277 } else {
4278 b = b[:cap(b)]
4279 n, err := m.MarshalToSizedBuffer(b)
4280 if err != nil {
4281 return nil, err
4282 }
4283 return b[:n], nil
4284 }
4285}
4286func (m *AuthEnableRequest) XXX_Merge(src proto.Message) {
4287 xxx_messageInfo_AuthEnableRequest.Merge(m, src)
4288}
4289func (m *AuthEnableRequest) XXX_Size() int {
4290 return m.Size()
4291}
4292func (m *AuthEnableRequest) XXX_DiscardUnknown() {
4293 xxx_messageInfo_AuthEnableRequest.DiscardUnknown(m)
4294}
4295
4296var xxx_messageInfo_AuthEnableRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00004297
4298type AuthDisableRequest struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004299 XXX_NoUnkeyedLiteral struct{} `json:"-"`
4300 XXX_unrecognized []byte `json:"-"`
4301 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00004302}
4303
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004304func (m *AuthDisableRequest) Reset() { *m = AuthDisableRequest{} }
4305func (m *AuthDisableRequest) String() string { return proto.CompactTextString(m) }
4306func (*AuthDisableRequest) ProtoMessage() {}
4307func (*AuthDisableRequest) Descriptor() ([]byte, []int) {
4308 return fileDescriptor_77a6da22d6a3feb1, []int{55}
4309}
4310func (m *AuthDisableRequest) XXX_Unmarshal(b []byte) error {
4311 return m.Unmarshal(b)
4312}
4313func (m *AuthDisableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
4314 if deterministic {
4315 return xxx_messageInfo_AuthDisableRequest.Marshal(b, m, deterministic)
4316 } else {
4317 b = b[:cap(b)]
4318 n, err := m.MarshalToSizedBuffer(b)
4319 if err != nil {
4320 return nil, err
4321 }
4322 return b[:n], nil
4323 }
4324}
4325func (m *AuthDisableRequest) XXX_Merge(src proto.Message) {
4326 xxx_messageInfo_AuthDisableRequest.Merge(m, src)
4327}
4328func (m *AuthDisableRequest) XXX_Size() int {
4329 return m.Size()
4330}
4331func (m *AuthDisableRequest) XXX_DiscardUnknown() {
4332 xxx_messageInfo_AuthDisableRequest.DiscardUnknown(m)
4333}
4334
4335var xxx_messageInfo_AuthDisableRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00004336
4337type AuthenticateRequest struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004338 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
4339 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
4340 XXX_NoUnkeyedLiteral struct{} `json:"-"`
4341 XXX_unrecognized []byte `json:"-"`
4342 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00004343}
4344
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004345func (m *AuthenticateRequest) Reset() { *m = AuthenticateRequest{} }
4346func (m *AuthenticateRequest) String() string { return proto.CompactTextString(m) }
4347func (*AuthenticateRequest) ProtoMessage() {}
4348func (*AuthenticateRequest) Descriptor() ([]byte, []int) {
4349 return fileDescriptor_77a6da22d6a3feb1, []int{56}
4350}
4351func (m *AuthenticateRequest) XXX_Unmarshal(b []byte) error {
4352 return m.Unmarshal(b)
4353}
4354func (m *AuthenticateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
4355 if deterministic {
4356 return xxx_messageInfo_AuthenticateRequest.Marshal(b, m, deterministic)
4357 } else {
4358 b = b[:cap(b)]
4359 n, err := m.MarshalToSizedBuffer(b)
4360 if err != nil {
4361 return nil, err
4362 }
4363 return b[:n], nil
4364 }
4365}
4366func (m *AuthenticateRequest) XXX_Merge(src proto.Message) {
4367 xxx_messageInfo_AuthenticateRequest.Merge(m, src)
4368}
4369func (m *AuthenticateRequest) XXX_Size() int {
4370 return m.Size()
4371}
4372func (m *AuthenticateRequest) XXX_DiscardUnknown() {
4373 xxx_messageInfo_AuthenticateRequest.DiscardUnknown(m)
4374}
4375
4376var xxx_messageInfo_AuthenticateRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00004377
4378func (m *AuthenticateRequest) GetName() string {
4379 if m != nil {
4380 return m.Name
4381 }
4382 return ""
4383}
4384
4385func (m *AuthenticateRequest) GetPassword() string {
4386 if m != nil {
4387 return m.Password
4388 }
4389 return ""
4390}
4391
4392type AuthUserAddRequest struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004393 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
4394 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
4395 XXX_NoUnkeyedLiteral struct{} `json:"-"`
4396 XXX_unrecognized []byte `json:"-"`
4397 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00004398}
4399
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004400func (m *AuthUserAddRequest) Reset() { *m = AuthUserAddRequest{} }
4401func (m *AuthUserAddRequest) String() string { return proto.CompactTextString(m) }
4402func (*AuthUserAddRequest) ProtoMessage() {}
4403func (*AuthUserAddRequest) Descriptor() ([]byte, []int) {
4404 return fileDescriptor_77a6da22d6a3feb1, []int{57}
4405}
4406func (m *AuthUserAddRequest) XXX_Unmarshal(b []byte) error {
4407 return m.Unmarshal(b)
4408}
4409func (m *AuthUserAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
4410 if deterministic {
4411 return xxx_messageInfo_AuthUserAddRequest.Marshal(b, m, deterministic)
4412 } else {
4413 b = b[:cap(b)]
4414 n, err := m.MarshalToSizedBuffer(b)
4415 if err != nil {
4416 return nil, err
4417 }
4418 return b[:n], nil
4419 }
4420}
4421func (m *AuthUserAddRequest) XXX_Merge(src proto.Message) {
4422 xxx_messageInfo_AuthUserAddRequest.Merge(m, src)
4423}
4424func (m *AuthUserAddRequest) XXX_Size() int {
4425 return m.Size()
4426}
4427func (m *AuthUserAddRequest) XXX_DiscardUnknown() {
4428 xxx_messageInfo_AuthUserAddRequest.DiscardUnknown(m)
4429}
4430
4431var xxx_messageInfo_AuthUserAddRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00004432
4433func (m *AuthUserAddRequest) GetName() string {
4434 if m != nil {
4435 return m.Name
4436 }
4437 return ""
4438}
4439
4440func (m *AuthUserAddRequest) GetPassword() string {
4441 if m != nil {
4442 return m.Password
4443 }
4444 return ""
4445}
4446
divyadesai81bb7ba2020-03-11 11:45:23 +00004447type AuthUserGetRequest struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004448 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
4449 XXX_NoUnkeyedLiteral struct{} `json:"-"`
4450 XXX_unrecognized []byte `json:"-"`
4451 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00004452}
4453
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004454func (m *AuthUserGetRequest) Reset() { *m = AuthUserGetRequest{} }
4455func (m *AuthUserGetRequest) String() string { return proto.CompactTextString(m) }
4456func (*AuthUserGetRequest) ProtoMessage() {}
4457func (*AuthUserGetRequest) Descriptor() ([]byte, []int) {
4458 return fileDescriptor_77a6da22d6a3feb1, []int{58}
4459}
4460func (m *AuthUserGetRequest) XXX_Unmarshal(b []byte) error {
4461 return m.Unmarshal(b)
4462}
4463func (m *AuthUserGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
4464 if deterministic {
4465 return xxx_messageInfo_AuthUserGetRequest.Marshal(b, m, deterministic)
4466 } else {
4467 b = b[:cap(b)]
4468 n, err := m.MarshalToSizedBuffer(b)
4469 if err != nil {
4470 return nil, err
4471 }
4472 return b[:n], nil
4473 }
4474}
4475func (m *AuthUserGetRequest) XXX_Merge(src proto.Message) {
4476 xxx_messageInfo_AuthUserGetRequest.Merge(m, src)
4477}
4478func (m *AuthUserGetRequest) XXX_Size() int {
4479 return m.Size()
4480}
4481func (m *AuthUserGetRequest) XXX_DiscardUnknown() {
4482 xxx_messageInfo_AuthUserGetRequest.DiscardUnknown(m)
4483}
4484
4485var xxx_messageInfo_AuthUserGetRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00004486
4487func (m *AuthUserGetRequest) GetName() string {
4488 if m != nil {
4489 return m.Name
4490 }
4491 return ""
4492}
4493
4494type AuthUserDeleteRequest struct {
4495 // name is the name of the user to delete.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004496 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
4497 XXX_NoUnkeyedLiteral struct{} `json:"-"`
4498 XXX_unrecognized []byte `json:"-"`
4499 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00004500}
4501
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004502func (m *AuthUserDeleteRequest) Reset() { *m = AuthUserDeleteRequest{} }
4503func (m *AuthUserDeleteRequest) String() string { return proto.CompactTextString(m) }
4504func (*AuthUserDeleteRequest) ProtoMessage() {}
4505func (*AuthUserDeleteRequest) Descriptor() ([]byte, []int) {
4506 return fileDescriptor_77a6da22d6a3feb1, []int{59}
4507}
4508func (m *AuthUserDeleteRequest) XXX_Unmarshal(b []byte) error {
4509 return m.Unmarshal(b)
4510}
4511func (m *AuthUserDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
4512 if deterministic {
4513 return xxx_messageInfo_AuthUserDeleteRequest.Marshal(b, m, deterministic)
4514 } else {
4515 b = b[:cap(b)]
4516 n, err := m.MarshalToSizedBuffer(b)
4517 if err != nil {
4518 return nil, err
4519 }
4520 return b[:n], nil
4521 }
4522}
4523func (m *AuthUserDeleteRequest) XXX_Merge(src proto.Message) {
4524 xxx_messageInfo_AuthUserDeleteRequest.Merge(m, src)
4525}
4526func (m *AuthUserDeleteRequest) XXX_Size() int {
4527 return m.Size()
4528}
4529func (m *AuthUserDeleteRequest) XXX_DiscardUnknown() {
4530 xxx_messageInfo_AuthUserDeleteRequest.DiscardUnknown(m)
4531}
4532
4533var xxx_messageInfo_AuthUserDeleteRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00004534
4535func (m *AuthUserDeleteRequest) GetName() string {
4536 if m != nil {
4537 return m.Name
4538 }
4539 return ""
4540}
4541
4542type AuthUserChangePasswordRequest struct {
4543 // name is the name of the user whose password is being changed.
4544 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
4545 // password is the new password for the user.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004546 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
4547 XXX_NoUnkeyedLiteral struct{} `json:"-"`
4548 XXX_unrecognized []byte `json:"-"`
4549 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00004550}
4551
4552func (m *AuthUserChangePasswordRequest) Reset() { *m = AuthUserChangePasswordRequest{} }
4553func (m *AuthUserChangePasswordRequest) String() string { return proto.CompactTextString(m) }
4554func (*AuthUserChangePasswordRequest) ProtoMessage() {}
4555func (*AuthUserChangePasswordRequest) Descriptor() ([]byte, []int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004556 return fileDescriptor_77a6da22d6a3feb1, []int{60}
divyadesai81bb7ba2020-03-11 11:45:23 +00004557}
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004558func (m *AuthUserChangePasswordRequest) XXX_Unmarshal(b []byte) error {
4559 return m.Unmarshal(b)
4560}
4561func (m *AuthUserChangePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
4562 if deterministic {
4563 return xxx_messageInfo_AuthUserChangePasswordRequest.Marshal(b, m, deterministic)
4564 } else {
4565 b = b[:cap(b)]
4566 n, err := m.MarshalToSizedBuffer(b)
4567 if err != nil {
4568 return nil, err
4569 }
4570 return b[:n], nil
4571 }
4572}
4573func (m *AuthUserChangePasswordRequest) XXX_Merge(src proto.Message) {
4574 xxx_messageInfo_AuthUserChangePasswordRequest.Merge(m, src)
4575}
4576func (m *AuthUserChangePasswordRequest) XXX_Size() int {
4577 return m.Size()
4578}
4579func (m *AuthUserChangePasswordRequest) XXX_DiscardUnknown() {
4580 xxx_messageInfo_AuthUserChangePasswordRequest.DiscardUnknown(m)
4581}
4582
4583var xxx_messageInfo_AuthUserChangePasswordRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00004584
4585func (m *AuthUserChangePasswordRequest) GetName() string {
4586 if m != nil {
4587 return m.Name
4588 }
4589 return ""
4590}
4591
4592func (m *AuthUserChangePasswordRequest) GetPassword() string {
4593 if m != nil {
4594 return m.Password
4595 }
4596 return ""
4597}
4598
4599type AuthUserGrantRoleRequest struct {
4600 // user is the name of the user which should be granted a given role.
4601 User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
4602 // role is the name of the role to grant to the user.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004603 Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
4604 XXX_NoUnkeyedLiteral struct{} `json:"-"`
4605 XXX_unrecognized []byte `json:"-"`
4606 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00004607}
4608
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004609func (m *AuthUserGrantRoleRequest) Reset() { *m = AuthUserGrantRoleRequest{} }
4610func (m *AuthUserGrantRoleRequest) String() string { return proto.CompactTextString(m) }
4611func (*AuthUserGrantRoleRequest) ProtoMessage() {}
4612func (*AuthUserGrantRoleRequest) Descriptor() ([]byte, []int) {
4613 return fileDescriptor_77a6da22d6a3feb1, []int{61}
4614}
4615func (m *AuthUserGrantRoleRequest) XXX_Unmarshal(b []byte) error {
4616 return m.Unmarshal(b)
4617}
4618func (m *AuthUserGrantRoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
4619 if deterministic {
4620 return xxx_messageInfo_AuthUserGrantRoleRequest.Marshal(b, m, deterministic)
4621 } else {
4622 b = b[:cap(b)]
4623 n, err := m.MarshalToSizedBuffer(b)
4624 if err != nil {
4625 return nil, err
4626 }
4627 return b[:n], nil
4628 }
4629}
4630func (m *AuthUserGrantRoleRequest) XXX_Merge(src proto.Message) {
4631 xxx_messageInfo_AuthUserGrantRoleRequest.Merge(m, src)
4632}
4633func (m *AuthUserGrantRoleRequest) XXX_Size() int {
4634 return m.Size()
4635}
4636func (m *AuthUserGrantRoleRequest) XXX_DiscardUnknown() {
4637 xxx_messageInfo_AuthUserGrantRoleRequest.DiscardUnknown(m)
4638}
4639
4640var xxx_messageInfo_AuthUserGrantRoleRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00004641
4642func (m *AuthUserGrantRoleRequest) GetUser() string {
4643 if m != nil {
4644 return m.User
4645 }
4646 return ""
4647}
4648
4649func (m *AuthUserGrantRoleRequest) GetRole() string {
4650 if m != nil {
4651 return m.Role
4652 }
4653 return ""
4654}
4655
4656type AuthUserRevokeRoleRequest struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004657 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
4658 Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
4659 XXX_NoUnkeyedLiteral struct{} `json:"-"`
4660 XXX_unrecognized []byte `json:"-"`
4661 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00004662}
4663
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004664func (m *AuthUserRevokeRoleRequest) Reset() { *m = AuthUserRevokeRoleRequest{} }
4665func (m *AuthUserRevokeRoleRequest) String() string { return proto.CompactTextString(m) }
4666func (*AuthUserRevokeRoleRequest) ProtoMessage() {}
4667func (*AuthUserRevokeRoleRequest) Descriptor() ([]byte, []int) {
4668 return fileDescriptor_77a6da22d6a3feb1, []int{62}
4669}
4670func (m *AuthUserRevokeRoleRequest) XXX_Unmarshal(b []byte) error {
4671 return m.Unmarshal(b)
4672}
4673func (m *AuthUserRevokeRoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
4674 if deterministic {
4675 return xxx_messageInfo_AuthUserRevokeRoleRequest.Marshal(b, m, deterministic)
4676 } else {
4677 b = b[:cap(b)]
4678 n, err := m.MarshalToSizedBuffer(b)
4679 if err != nil {
4680 return nil, err
4681 }
4682 return b[:n], nil
4683 }
4684}
4685func (m *AuthUserRevokeRoleRequest) XXX_Merge(src proto.Message) {
4686 xxx_messageInfo_AuthUserRevokeRoleRequest.Merge(m, src)
4687}
4688func (m *AuthUserRevokeRoleRequest) XXX_Size() int {
4689 return m.Size()
4690}
4691func (m *AuthUserRevokeRoleRequest) XXX_DiscardUnknown() {
4692 xxx_messageInfo_AuthUserRevokeRoleRequest.DiscardUnknown(m)
4693}
4694
4695var xxx_messageInfo_AuthUserRevokeRoleRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00004696
4697func (m *AuthUserRevokeRoleRequest) GetName() string {
4698 if m != nil {
4699 return m.Name
4700 }
4701 return ""
4702}
4703
4704func (m *AuthUserRevokeRoleRequest) GetRole() string {
4705 if m != nil {
4706 return m.Role
4707 }
4708 return ""
4709}
4710
4711type AuthRoleAddRequest struct {
4712 // name is the name of the role to add to the authentication system.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004713 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
4714 XXX_NoUnkeyedLiteral struct{} `json:"-"`
4715 XXX_unrecognized []byte `json:"-"`
4716 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00004717}
4718
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004719func (m *AuthRoleAddRequest) Reset() { *m = AuthRoleAddRequest{} }
4720func (m *AuthRoleAddRequest) String() string { return proto.CompactTextString(m) }
4721func (*AuthRoleAddRequest) ProtoMessage() {}
4722func (*AuthRoleAddRequest) Descriptor() ([]byte, []int) {
4723 return fileDescriptor_77a6da22d6a3feb1, []int{63}
4724}
4725func (m *AuthRoleAddRequest) XXX_Unmarshal(b []byte) error {
4726 return m.Unmarshal(b)
4727}
4728func (m *AuthRoleAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
4729 if deterministic {
4730 return xxx_messageInfo_AuthRoleAddRequest.Marshal(b, m, deterministic)
4731 } else {
4732 b = b[:cap(b)]
4733 n, err := m.MarshalToSizedBuffer(b)
4734 if err != nil {
4735 return nil, err
4736 }
4737 return b[:n], nil
4738 }
4739}
4740func (m *AuthRoleAddRequest) XXX_Merge(src proto.Message) {
4741 xxx_messageInfo_AuthRoleAddRequest.Merge(m, src)
4742}
4743func (m *AuthRoleAddRequest) XXX_Size() int {
4744 return m.Size()
4745}
4746func (m *AuthRoleAddRequest) XXX_DiscardUnknown() {
4747 xxx_messageInfo_AuthRoleAddRequest.DiscardUnknown(m)
4748}
4749
4750var xxx_messageInfo_AuthRoleAddRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00004751
4752func (m *AuthRoleAddRequest) GetName() string {
4753 if m != nil {
4754 return m.Name
4755 }
4756 return ""
4757}
4758
4759type AuthRoleGetRequest struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004760 Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
4761 XXX_NoUnkeyedLiteral struct{} `json:"-"`
4762 XXX_unrecognized []byte `json:"-"`
4763 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00004764}
4765
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004766func (m *AuthRoleGetRequest) Reset() { *m = AuthRoleGetRequest{} }
4767func (m *AuthRoleGetRequest) String() string { return proto.CompactTextString(m) }
4768func (*AuthRoleGetRequest) ProtoMessage() {}
4769func (*AuthRoleGetRequest) Descriptor() ([]byte, []int) {
4770 return fileDescriptor_77a6da22d6a3feb1, []int{64}
4771}
4772func (m *AuthRoleGetRequest) XXX_Unmarshal(b []byte) error {
4773 return m.Unmarshal(b)
4774}
4775func (m *AuthRoleGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
4776 if deterministic {
4777 return xxx_messageInfo_AuthRoleGetRequest.Marshal(b, m, deterministic)
4778 } else {
4779 b = b[:cap(b)]
4780 n, err := m.MarshalToSizedBuffer(b)
4781 if err != nil {
4782 return nil, err
4783 }
4784 return b[:n], nil
4785 }
4786}
4787func (m *AuthRoleGetRequest) XXX_Merge(src proto.Message) {
4788 xxx_messageInfo_AuthRoleGetRequest.Merge(m, src)
4789}
4790func (m *AuthRoleGetRequest) XXX_Size() int {
4791 return m.Size()
4792}
4793func (m *AuthRoleGetRequest) XXX_DiscardUnknown() {
4794 xxx_messageInfo_AuthRoleGetRequest.DiscardUnknown(m)
4795}
4796
4797var xxx_messageInfo_AuthRoleGetRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00004798
4799func (m *AuthRoleGetRequest) GetRole() string {
4800 if m != nil {
4801 return m.Role
4802 }
4803 return ""
4804}
4805
4806type AuthUserListRequest struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004807 XXX_NoUnkeyedLiteral struct{} `json:"-"`
4808 XXX_unrecognized []byte `json:"-"`
4809 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00004810}
4811
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004812func (m *AuthUserListRequest) Reset() { *m = AuthUserListRequest{} }
4813func (m *AuthUserListRequest) String() string { return proto.CompactTextString(m) }
4814func (*AuthUserListRequest) ProtoMessage() {}
4815func (*AuthUserListRequest) Descriptor() ([]byte, []int) {
4816 return fileDescriptor_77a6da22d6a3feb1, []int{65}
4817}
4818func (m *AuthUserListRequest) XXX_Unmarshal(b []byte) error {
4819 return m.Unmarshal(b)
4820}
4821func (m *AuthUserListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
4822 if deterministic {
4823 return xxx_messageInfo_AuthUserListRequest.Marshal(b, m, deterministic)
4824 } else {
4825 b = b[:cap(b)]
4826 n, err := m.MarshalToSizedBuffer(b)
4827 if err != nil {
4828 return nil, err
4829 }
4830 return b[:n], nil
4831 }
4832}
4833func (m *AuthUserListRequest) XXX_Merge(src proto.Message) {
4834 xxx_messageInfo_AuthUserListRequest.Merge(m, src)
4835}
4836func (m *AuthUserListRequest) XXX_Size() int {
4837 return m.Size()
4838}
4839func (m *AuthUserListRequest) XXX_DiscardUnknown() {
4840 xxx_messageInfo_AuthUserListRequest.DiscardUnknown(m)
4841}
4842
4843var xxx_messageInfo_AuthUserListRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00004844
4845type AuthRoleListRequest struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004846 XXX_NoUnkeyedLiteral struct{} `json:"-"`
4847 XXX_unrecognized []byte `json:"-"`
4848 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00004849}
4850
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004851func (m *AuthRoleListRequest) Reset() { *m = AuthRoleListRequest{} }
4852func (m *AuthRoleListRequest) String() string { return proto.CompactTextString(m) }
4853func (*AuthRoleListRequest) ProtoMessage() {}
4854func (*AuthRoleListRequest) Descriptor() ([]byte, []int) {
4855 return fileDescriptor_77a6da22d6a3feb1, []int{66}
4856}
4857func (m *AuthRoleListRequest) XXX_Unmarshal(b []byte) error {
4858 return m.Unmarshal(b)
4859}
4860func (m *AuthRoleListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
4861 if deterministic {
4862 return xxx_messageInfo_AuthRoleListRequest.Marshal(b, m, deterministic)
4863 } else {
4864 b = b[:cap(b)]
4865 n, err := m.MarshalToSizedBuffer(b)
4866 if err != nil {
4867 return nil, err
4868 }
4869 return b[:n], nil
4870 }
4871}
4872func (m *AuthRoleListRequest) XXX_Merge(src proto.Message) {
4873 xxx_messageInfo_AuthRoleListRequest.Merge(m, src)
4874}
4875func (m *AuthRoleListRequest) XXX_Size() int {
4876 return m.Size()
4877}
4878func (m *AuthRoleListRequest) XXX_DiscardUnknown() {
4879 xxx_messageInfo_AuthRoleListRequest.DiscardUnknown(m)
4880}
4881
4882var xxx_messageInfo_AuthRoleListRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00004883
4884type AuthRoleDeleteRequest struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004885 Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
4886 XXX_NoUnkeyedLiteral struct{} `json:"-"`
4887 XXX_unrecognized []byte `json:"-"`
4888 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00004889}
4890
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004891func (m *AuthRoleDeleteRequest) Reset() { *m = AuthRoleDeleteRequest{} }
4892func (m *AuthRoleDeleteRequest) String() string { return proto.CompactTextString(m) }
4893func (*AuthRoleDeleteRequest) ProtoMessage() {}
4894func (*AuthRoleDeleteRequest) Descriptor() ([]byte, []int) {
4895 return fileDescriptor_77a6da22d6a3feb1, []int{67}
4896}
4897func (m *AuthRoleDeleteRequest) XXX_Unmarshal(b []byte) error {
4898 return m.Unmarshal(b)
4899}
4900func (m *AuthRoleDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
4901 if deterministic {
4902 return xxx_messageInfo_AuthRoleDeleteRequest.Marshal(b, m, deterministic)
4903 } else {
4904 b = b[:cap(b)]
4905 n, err := m.MarshalToSizedBuffer(b)
4906 if err != nil {
4907 return nil, err
4908 }
4909 return b[:n], nil
4910 }
4911}
4912func (m *AuthRoleDeleteRequest) XXX_Merge(src proto.Message) {
4913 xxx_messageInfo_AuthRoleDeleteRequest.Merge(m, src)
4914}
4915func (m *AuthRoleDeleteRequest) XXX_Size() int {
4916 return m.Size()
4917}
4918func (m *AuthRoleDeleteRequest) XXX_DiscardUnknown() {
4919 xxx_messageInfo_AuthRoleDeleteRequest.DiscardUnknown(m)
4920}
4921
4922var xxx_messageInfo_AuthRoleDeleteRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00004923
4924func (m *AuthRoleDeleteRequest) GetRole() string {
4925 if m != nil {
4926 return m.Role
4927 }
4928 return ""
4929}
4930
4931type AuthRoleGrantPermissionRequest struct {
4932 // name is the name of the role which will be granted the permission.
4933 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
4934 // perm is the permission to grant to the role.
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004935 Perm *authpb.Permission `protobuf:"bytes,2,opt,name=perm,proto3" json:"perm,omitempty"`
4936 XXX_NoUnkeyedLiteral struct{} `json:"-"`
4937 XXX_unrecognized []byte `json:"-"`
4938 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00004939}
4940
4941func (m *AuthRoleGrantPermissionRequest) Reset() { *m = AuthRoleGrantPermissionRequest{} }
4942func (m *AuthRoleGrantPermissionRequest) String() string { return proto.CompactTextString(m) }
4943func (*AuthRoleGrantPermissionRequest) ProtoMessage() {}
4944func (*AuthRoleGrantPermissionRequest) Descriptor() ([]byte, []int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004945 return fileDescriptor_77a6da22d6a3feb1, []int{68}
divyadesai81bb7ba2020-03-11 11:45:23 +00004946}
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004947func (m *AuthRoleGrantPermissionRequest) XXX_Unmarshal(b []byte) error {
4948 return m.Unmarshal(b)
4949}
4950func (m *AuthRoleGrantPermissionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
4951 if deterministic {
4952 return xxx_messageInfo_AuthRoleGrantPermissionRequest.Marshal(b, m, deterministic)
4953 } else {
4954 b = b[:cap(b)]
4955 n, err := m.MarshalToSizedBuffer(b)
4956 if err != nil {
4957 return nil, err
4958 }
4959 return b[:n], nil
4960 }
4961}
4962func (m *AuthRoleGrantPermissionRequest) XXX_Merge(src proto.Message) {
4963 xxx_messageInfo_AuthRoleGrantPermissionRequest.Merge(m, src)
4964}
4965func (m *AuthRoleGrantPermissionRequest) XXX_Size() int {
4966 return m.Size()
4967}
4968func (m *AuthRoleGrantPermissionRequest) XXX_DiscardUnknown() {
4969 xxx_messageInfo_AuthRoleGrantPermissionRequest.DiscardUnknown(m)
4970}
4971
4972var xxx_messageInfo_AuthRoleGrantPermissionRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00004973
4974func (m *AuthRoleGrantPermissionRequest) GetName() string {
4975 if m != nil {
4976 return m.Name
4977 }
4978 return ""
4979}
4980
4981func (m *AuthRoleGrantPermissionRequest) GetPerm() *authpb.Permission {
4982 if m != nil {
4983 return m.Perm
4984 }
4985 return nil
4986}
4987
4988type AuthRoleRevokePermissionRequest struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004989 Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
4990 Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
4991 RangeEnd string `protobuf:"bytes,3,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"`
4992 XXX_NoUnkeyedLiteral struct{} `json:"-"`
4993 XXX_unrecognized []byte `json:"-"`
4994 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00004995}
4996
4997func (m *AuthRoleRevokePermissionRequest) Reset() { *m = AuthRoleRevokePermissionRequest{} }
4998func (m *AuthRoleRevokePermissionRequest) String() string { return proto.CompactTextString(m) }
4999func (*AuthRoleRevokePermissionRequest) ProtoMessage() {}
5000func (*AuthRoleRevokePermissionRequest) Descriptor() ([]byte, []int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005001 return fileDescriptor_77a6da22d6a3feb1, []int{69}
divyadesai81bb7ba2020-03-11 11:45:23 +00005002}
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005003func (m *AuthRoleRevokePermissionRequest) XXX_Unmarshal(b []byte) error {
5004 return m.Unmarshal(b)
5005}
5006func (m *AuthRoleRevokePermissionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
5007 if deterministic {
5008 return xxx_messageInfo_AuthRoleRevokePermissionRequest.Marshal(b, m, deterministic)
5009 } else {
5010 b = b[:cap(b)]
5011 n, err := m.MarshalToSizedBuffer(b)
5012 if err != nil {
5013 return nil, err
5014 }
5015 return b[:n], nil
5016 }
5017}
5018func (m *AuthRoleRevokePermissionRequest) XXX_Merge(src proto.Message) {
5019 xxx_messageInfo_AuthRoleRevokePermissionRequest.Merge(m, src)
5020}
5021func (m *AuthRoleRevokePermissionRequest) XXX_Size() int {
5022 return m.Size()
5023}
5024func (m *AuthRoleRevokePermissionRequest) XXX_DiscardUnknown() {
5025 xxx_messageInfo_AuthRoleRevokePermissionRequest.DiscardUnknown(m)
5026}
5027
5028var xxx_messageInfo_AuthRoleRevokePermissionRequest proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00005029
5030func (m *AuthRoleRevokePermissionRequest) GetRole() string {
5031 if m != nil {
5032 return m.Role
5033 }
5034 return ""
5035}
5036
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005037func (m *AuthRoleRevokePermissionRequest) GetKey() string {
divyadesai81bb7ba2020-03-11 11:45:23 +00005038 if m != nil {
5039 return m.Key
5040 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005041 return ""
divyadesai81bb7ba2020-03-11 11:45:23 +00005042}
5043
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005044func (m *AuthRoleRevokePermissionRequest) GetRangeEnd() string {
divyadesai81bb7ba2020-03-11 11:45:23 +00005045 if m != nil {
5046 return m.RangeEnd
5047 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005048 return ""
divyadesai81bb7ba2020-03-11 11:45:23 +00005049}
5050
5051type AuthEnableResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005052 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
5053 XXX_NoUnkeyedLiteral struct{} `json:"-"`
5054 XXX_unrecognized []byte `json:"-"`
5055 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00005056}
5057
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005058func (m *AuthEnableResponse) Reset() { *m = AuthEnableResponse{} }
5059func (m *AuthEnableResponse) String() string { return proto.CompactTextString(m) }
5060func (*AuthEnableResponse) ProtoMessage() {}
5061func (*AuthEnableResponse) Descriptor() ([]byte, []int) {
5062 return fileDescriptor_77a6da22d6a3feb1, []int{70}
5063}
5064func (m *AuthEnableResponse) XXX_Unmarshal(b []byte) error {
5065 return m.Unmarshal(b)
5066}
5067func (m *AuthEnableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
5068 if deterministic {
5069 return xxx_messageInfo_AuthEnableResponse.Marshal(b, m, deterministic)
5070 } else {
5071 b = b[:cap(b)]
5072 n, err := m.MarshalToSizedBuffer(b)
5073 if err != nil {
5074 return nil, err
5075 }
5076 return b[:n], nil
5077 }
5078}
5079func (m *AuthEnableResponse) XXX_Merge(src proto.Message) {
5080 xxx_messageInfo_AuthEnableResponse.Merge(m, src)
5081}
5082func (m *AuthEnableResponse) XXX_Size() int {
5083 return m.Size()
5084}
5085func (m *AuthEnableResponse) XXX_DiscardUnknown() {
5086 xxx_messageInfo_AuthEnableResponse.DiscardUnknown(m)
5087}
5088
5089var xxx_messageInfo_AuthEnableResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00005090
5091func (m *AuthEnableResponse) GetHeader() *ResponseHeader {
5092 if m != nil {
5093 return m.Header
5094 }
5095 return nil
5096}
5097
5098type AuthDisableResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005099 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
5100 XXX_NoUnkeyedLiteral struct{} `json:"-"`
5101 XXX_unrecognized []byte `json:"-"`
5102 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00005103}
5104
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005105func (m *AuthDisableResponse) Reset() { *m = AuthDisableResponse{} }
5106func (m *AuthDisableResponse) String() string { return proto.CompactTextString(m) }
5107func (*AuthDisableResponse) ProtoMessage() {}
5108func (*AuthDisableResponse) Descriptor() ([]byte, []int) {
5109 return fileDescriptor_77a6da22d6a3feb1, []int{71}
5110}
5111func (m *AuthDisableResponse) XXX_Unmarshal(b []byte) error {
5112 return m.Unmarshal(b)
5113}
5114func (m *AuthDisableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
5115 if deterministic {
5116 return xxx_messageInfo_AuthDisableResponse.Marshal(b, m, deterministic)
5117 } else {
5118 b = b[:cap(b)]
5119 n, err := m.MarshalToSizedBuffer(b)
5120 if err != nil {
5121 return nil, err
5122 }
5123 return b[:n], nil
5124 }
5125}
5126func (m *AuthDisableResponse) XXX_Merge(src proto.Message) {
5127 xxx_messageInfo_AuthDisableResponse.Merge(m, src)
5128}
5129func (m *AuthDisableResponse) XXX_Size() int {
5130 return m.Size()
5131}
5132func (m *AuthDisableResponse) XXX_DiscardUnknown() {
5133 xxx_messageInfo_AuthDisableResponse.DiscardUnknown(m)
5134}
5135
5136var xxx_messageInfo_AuthDisableResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00005137
5138func (m *AuthDisableResponse) GetHeader() *ResponseHeader {
5139 if m != nil {
5140 return m.Header
5141 }
5142 return nil
5143}
5144
5145type AuthenticateResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005146 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
divyadesai81bb7ba2020-03-11 11:45:23 +00005147 // token is an authorized token that can be used in succeeding RPCs
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005148 Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
5149 XXX_NoUnkeyedLiteral struct{} `json:"-"`
5150 XXX_unrecognized []byte `json:"-"`
5151 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00005152}
5153
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005154func (m *AuthenticateResponse) Reset() { *m = AuthenticateResponse{} }
5155func (m *AuthenticateResponse) String() string { return proto.CompactTextString(m) }
5156func (*AuthenticateResponse) ProtoMessage() {}
5157func (*AuthenticateResponse) Descriptor() ([]byte, []int) {
5158 return fileDescriptor_77a6da22d6a3feb1, []int{72}
5159}
5160func (m *AuthenticateResponse) XXX_Unmarshal(b []byte) error {
5161 return m.Unmarshal(b)
5162}
5163func (m *AuthenticateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
5164 if deterministic {
5165 return xxx_messageInfo_AuthenticateResponse.Marshal(b, m, deterministic)
5166 } else {
5167 b = b[:cap(b)]
5168 n, err := m.MarshalToSizedBuffer(b)
5169 if err != nil {
5170 return nil, err
5171 }
5172 return b[:n], nil
5173 }
5174}
5175func (m *AuthenticateResponse) XXX_Merge(src proto.Message) {
5176 xxx_messageInfo_AuthenticateResponse.Merge(m, src)
5177}
5178func (m *AuthenticateResponse) XXX_Size() int {
5179 return m.Size()
5180}
5181func (m *AuthenticateResponse) XXX_DiscardUnknown() {
5182 xxx_messageInfo_AuthenticateResponse.DiscardUnknown(m)
5183}
5184
5185var xxx_messageInfo_AuthenticateResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00005186
5187func (m *AuthenticateResponse) GetHeader() *ResponseHeader {
5188 if m != nil {
5189 return m.Header
5190 }
5191 return nil
5192}
5193
5194func (m *AuthenticateResponse) GetToken() string {
5195 if m != nil {
5196 return m.Token
5197 }
5198 return ""
5199}
5200
5201type AuthUserAddResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005202 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
5203 XXX_NoUnkeyedLiteral struct{} `json:"-"`
5204 XXX_unrecognized []byte `json:"-"`
5205 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00005206}
5207
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005208func (m *AuthUserAddResponse) Reset() { *m = AuthUserAddResponse{} }
5209func (m *AuthUserAddResponse) String() string { return proto.CompactTextString(m) }
5210func (*AuthUserAddResponse) ProtoMessage() {}
5211func (*AuthUserAddResponse) Descriptor() ([]byte, []int) {
5212 return fileDescriptor_77a6da22d6a3feb1, []int{73}
5213}
5214func (m *AuthUserAddResponse) XXX_Unmarshal(b []byte) error {
5215 return m.Unmarshal(b)
5216}
5217func (m *AuthUserAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
5218 if deterministic {
5219 return xxx_messageInfo_AuthUserAddResponse.Marshal(b, m, deterministic)
5220 } else {
5221 b = b[:cap(b)]
5222 n, err := m.MarshalToSizedBuffer(b)
5223 if err != nil {
5224 return nil, err
5225 }
5226 return b[:n], nil
5227 }
5228}
5229func (m *AuthUserAddResponse) XXX_Merge(src proto.Message) {
5230 xxx_messageInfo_AuthUserAddResponse.Merge(m, src)
5231}
5232func (m *AuthUserAddResponse) XXX_Size() int {
5233 return m.Size()
5234}
5235func (m *AuthUserAddResponse) XXX_DiscardUnknown() {
5236 xxx_messageInfo_AuthUserAddResponse.DiscardUnknown(m)
5237}
5238
5239var xxx_messageInfo_AuthUserAddResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00005240
5241func (m *AuthUserAddResponse) GetHeader() *ResponseHeader {
5242 if m != nil {
5243 return m.Header
5244 }
5245 return nil
5246}
5247
5248type AuthUserGetResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005249 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
5250 Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
5251 XXX_NoUnkeyedLiteral struct{} `json:"-"`
5252 XXX_unrecognized []byte `json:"-"`
5253 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00005254}
5255
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005256func (m *AuthUserGetResponse) Reset() { *m = AuthUserGetResponse{} }
5257func (m *AuthUserGetResponse) String() string { return proto.CompactTextString(m) }
5258func (*AuthUserGetResponse) ProtoMessage() {}
5259func (*AuthUserGetResponse) Descriptor() ([]byte, []int) {
5260 return fileDescriptor_77a6da22d6a3feb1, []int{74}
5261}
5262func (m *AuthUserGetResponse) XXX_Unmarshal(b []byte) error {
5263 return m.Unmarshal(b)
5264}
5265func (m *AuthUserGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
5266 if deterministic {
5267 return xxx_messageInfo_AuthUserGetResponse.Marshal(b, m, deterministic)
5268 } else {
5269 b = b[:cap(b)]
5270 n, err := m.MarshalToSizedBuffer(b)
5271 if err != nil {
5272 return nil, err
5273 }
5274 return b[:n], nil
5275 }
5276}
5277func (m *AuthUserGetResponse) XXX_Merge(src proto.Message) {
5278 xxx_messageInfo_AuthUserGetResponse.Merge(m, src)
5279}
5280func (m *AuthUserGetResponse) XXX_Size() int {
5281 return m.Size()
5282}
5283func (m *AuthUserGetResponse) XXX_DiscardUnknown() {
5284 xxx_messageInfo_AuthUserGetResponse.DiscardUnknown(m)
5285}
5286
5287var xxx_messageInfo_AuthUserGetResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00005288
5289func (m *AuthUserGetResponse) GetHeader() *ResponseHeader {
5290 if m != nil {
5291 return m.Header
5292 }
5293 return nil
5294}
5295
5296func (m *AuthUserGetResponse) GetRoles() []string {
5297 if m != nil {
5298 return m.Roles
5299 }
5300 return nil
5301}
5302
5303type AuthUserDeleteResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005304 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
5305 XXX_NoUnkeyedLiteral struct{} `json:"-"`
5306 XXX_unrecognized []byte `json:"-"`
5307 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00005308}
5309
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005310func (m *AuthUserDeleteResponse) Reset() { *m = AuthUserDeleteResponse{} }
5311func (m *AuthUserDeleteResponse) String() string { return proto.CompactTextString(m) }
5312func (*AuthUserDeleteResponse) ProtoMessage() {}
5313func (*AuthUserDeleteResponse) Descriptor() ([]byte, []int) {
5314 return fileDescriptor_77a6da22d6a3feb1, []int{75}
5315}
5316func (m *AuthUserDeleteResponse) XXX_Unmarshal(b []byte) error {
5317 return m.Unmarshal(b)
5318}
5319func (m *AuthUserDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
5320 if deterministic {
5321 return xxx_messageInfo_AuthUserDeleteResponse.Marshal(b, m, deterministic)
5322 } else {
5323 b = b[:cap(b)]
5324 n, err := m.MarshalToSizedBuffer(b)
5325 if err != nil {
5326 return nil, err
5327 }
5328 return b[:n], nil
5329 }
5330}
5331func (m *AuthUserDeleteResponse) XXX_Merge(src proto.Message) {
5332 xxx_messageInfo_AuthUserDeleteResponse.Merge(m, src)
5333}
5334func (m *AuthUserDeleteResponse) XXX_Size() int {
5335 return m.Size()
5336}
5337func (m *AuthUserDeleteResponse) XXX_DiscardUnknown() {
5338 xxx_messageInfo_AuthUserDeleteResponse.DiscardUnknown(m)
5339}
5340
5341var xxx_messageInfo_AuthUserDeleteResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00005342
5343func (m *AuthUserDeleteResponse) GetHeader() *ResponseHeader {
5344 if m != nil {
5345 return m.Header
5346 }
5347 return nil
5348}
5349
5350type AuthUserChangePasswordResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005351 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
5352 XXX_NoUnkeyedLiteral struct{} `json:"-"`
5353 XXX_unrecognized []byte `json:"-"`
5354 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00005355}
5356
5357func (m *AuthUserChangePasswordResponse) Reset() { *m = AuthUserChangePasswordResponse{} }
5358func (m *AuthUserChangePasswordResponse) String() string { return proto.CompactTextString(m) }
5359func (*AuthUserChangePasswordResponse) ProtoMessage() {}
5360func (*AuthUserChangePasswordResponse) Descriptor() ([]byte, []int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005361 return fileDescriptor_77a6da22d6a3feb1, []int{76}
divyadesai81bb7ba2020-03-11 11:45:23 +00005362}
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005363func (m *AuthUserChangePasswordResponse) XXX_Unmarshal(b []byte) error {
5364 return m.Unmarshal(b)
5365}
5366func (m *AuthUserChangePasswordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
5367 if deterministic {
5368 return xxx_messageInfo_AuthUserChangePasswordResponse.Marshal(b, m, deterministic)
5369 } else {
5370 b = b[:cap(b)]
5371 n, err := m.MarshalToSizedBuffer(b)
5372 if err != nil {
5373 return nil, err
5374 }
5375 return b[:n], nil
5376 }
5377}
5378func (m *AuthUserChangePasswordResponse) XXX_Merge(src proto.Message) {
5379 xxx_messageInfo_AuthUserChangePasswordResponse.Merge(m, src)
5380}
5381func (m *AuthUserChangePasswordResponse) XXX_Size() int {
5382 return m.Size()
5383}
5384func (m *AuthUserChangePasswordResponse) XXX_DiscardUnknown() {
5385 xxx_messageInfo_AuthUserChangePasswordResponse.DiscardUnknown(m)
5386}
5387
5388var xxx_messageInfo_AuthUserChangePasswordResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00005389
5390func (m *AuthUserChangePasswordResponse) GetHeader() *ResponseHeader {
5391 if m != nil {
5392 return m.Header
5393 }
5394 return nil
5395}
5396
5397type AuthUserGrantRoleResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005398 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
5399 XXX_NoUnkeyedLiteral struct{} `json:"-"`
5400 XXX_unrecognized []byte `json:"-"`
5401 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00005402}
5403
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005404func (m *AuthUserGrantRoleResponse) Reset() { *m = AuthUserGrantRoleResponse{} }
5405func (m *AuthUserGrantRoleResponse) String() string { return proto.CompactTextString(m) }
5406func (*AuthUserGrantRoleResponse) ProtoMessage() {}
5407func (*AuthUserGrantRoleResponse) Descriptor() ([]byte, []int) {
5408 return fileDescriptor_77a6da22d6a3feb1, []int{77}
5409}
5410func (m *AuthUserGrantRoleResponse) XXX_Unmarshal(b []byte) error {
5411 return m.Unmarshal(b)
5412}
5413func (m *AuthUserGrantRoleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
5414 if deterministic {
5415 return xxx_messageInfo_AuthUserGrantRoleResponse.Marshal(b, m, deterministic)
5416 } else {
5417 b = b[:cap(b)]
5418 n, err := m.MarshalToSizedBuffer(b)
5419 if err != nil {
5420 return nil, err
5421 }
5422 return b[:n], nil
5423 }
5424}
5425func (m *AuthUserGrantRoleResponse) XXX_Merge(src proto.Message) {
5426 xxx_messageInfo_AuthUserGrantRoleResponse.Merge(m, src)
5427}
5428func (m *AuthUserGrantRoleResponse) XXX_Size() int {
5429 return m.Size()
5430}
5431func (m *AuthUserGrantRoleResponse) XXX_DiscardUnknown() {
5432 xxx_messageInfo_AuthUserGrantRoleResponse.DiscardUnknown(m)
5433}
5434
5435var xxx_messageInfo_AuthUserGrantRoleResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00005436
5437func (m *AuthUserGrantRoleResponse) GetHeader() *ResponseHeader {
5438 if m != nil {
5439 return m.Header
5440 }
5441 return nil
5442}
5443
5444type AuthUserRevokeRoleResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005445 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
5446 XXX_NoUnkeyedLiteral struct{} `json:"-"`
5447 XXX_unrecognized []byte `json:"-"`
5448 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00005449}
5450
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005451func (m *AuthUserRevokeRoleResponse) Reset() { *m = AuthUserRevokeRoleResponse{} }
5452func (m *AuthUserRevokeRoleResponse) String() string { return proto.CompactTextString(m) }
5453func (*AuthUserRevokeRoleResponse) ProtoMessage() {}
5454func (*AuthUserRevokeRoleResponse) Descriptor() ([]byte, []int) {
5455 return fileDescriptor_77a6da22d6a3feb1, []int{78}
5456}
5457func (m *AuthUserRevokeRoleResponse) XXX_Unmarshal(b []byte) error {
5458 return m.Unmarshal(b)
5459}
5460func (m *AuthUserRevokeRoleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
5461 if deterministic {
5462 return xxx_messageInfo_AuthUserRevokeRoleResponse.Marshal(b, m, deterministic)
5463 } else {
5464 b = b[:cap(b)]
5465 n, err := m.MarshalToSizedBuffer(b)
5466 if err != nil {
5467 return nil, err
5468 }
5469 return b[:n], nil
5470 }
5471}
5472func (m *AuthUserRevokeRoleResponse) XXX_Merge(src proto.Message) {
5473 xxx_messageInfo_AuthUserRevokeRoleResponse.Merge(m, src)
5474}
5475func (m *AuthUserRevokeRoleResponse) XXX_Size() int {
5476 return m.Size()
5477}
5478func (m *AuthUserRevokeRoleResponse) XXX_DiscardUnknown() {
5479 xxx_messageInfo_AuthUserRevokeRoleResponse.DiscardUnknown(m)
5480}
5481
5482var xxx_messageInfo_AuthUserRevokeRoleResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00005483
5484func (m *AuthUserRevokeRoleResponse) GetHeader() *ResponseHeader {
5485 if m != nil {
5486 return m.Header
5487 }
5488 return nil
5489}
5490
5491type AuthRoleAddResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005492 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
5493 XXX_NoUnkeyedLiteral struct{} `json:"-"`
5494 XXX_unrecognized []byte `json:"-"`
5495 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00005496}
5497
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005498func (m *AuthRoleAddResponse) Reset() { *m = AuthRoleAddResponse{} }
5499func (m *AuthRoleAddResponse) String() string { return proto.CompactTextString(m) }
5500func (*AuthRoleAddResponse) ProtoMessage() {}
5501func (*AuthRoleAddResponse) Descriptor() ([]byte, []int) {
5502 return fileDescriptor_77a6da22d6a3feb1, []int{79}
5503}
5504func (m *AuthRoleAddResponse) XXX_Unmarshal(b []byte) error {
5505 return m.Unmarshal(b)
5506}
5507func (m *AuthRoleAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
5508 if deterministic {
5509 return xxx_messageInfo_AuthRoleAddResponse.Marshal(b, m, deterministic)
5510 } else {
5511 b = b[:cap(b)]
5512 n, err := m.MarshalToSizedBuffer(b)
5513 if err != nil {
5514 return nil, err
5515 }
5516 return b[:n], nil
5517 }
5518}
5519func (m *AuthRoleAddResponse) XXX_Merge(src proto.Message) {
5520 xxx_messageInfo_AuthRoleAddResponse.Merge(m, src)
5521}
5522func (m *AuthRoleAddResponse) XXX_Size() int {
5523 return m.Size()
5524}
5525func (m *AuthRoleAddResponse) XXX_DiscardUnknown() {
5526 xxx_messageInfo_AuthRoleAddResponse.DiscardUnknown(m)
5527}
5528
5529var xxx_messageInfo_AuthRoleAddResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00005530
5531func (m *AuthRoleAddResponse) GetHeader() *ResponseHeader {
5532 if m != nil {
5533 return m.Header
5534 }
5535 return nil
5536}
5537
5538type AuthRoleGetResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005539 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
5540 Perm []*authpb.Permission `protobuf:"bytes,2,rep,name=perm,proto3" json:"perm,omitempty"`
5541 XXX_NoUnkeyedLiteral struct{} `json:"-"`
5542 XXX_unrecognized []byte `json:"-"`
5543 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00005544}
5545
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005546func (m *AuthRoleGetResponse) Reset() { *m = AuthRoleGetResponse{} }
5547func (m *AuthRoleGetResponse) String() string { return proto.CompactTextString(m) }
5548func (*AuthRoleGetResponse) ProtoMessage() {}
5549func (*AuthRoleGetResponse) Descriptor() ([]byte, []int) {
5550 return fileDescriptor_77a6da22d6a3feb1, []int{80}
5551}
5552func (m *AuthRoleGetResponse) XXX_Unmarshal(b []byte) error {
5553 return m.Unmarshal(b)
5554}
5555func (m *AuthRoleGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
5556 if deterministic {
5557 return xxx_messageInfo_AuthRoleGetResponse.Marshal(b, m, deterministic)
5558 } else {
5559 b = b[:cap(b)]
5560 n, err := m.MarshalToSizedBuffer(b)
5561 if err != nil {
5562 return nil, err
5563 }
5564 return b[:n], nil
5565 }
5566}
5567func (m *AuthRoleGetResponse) XXX_Merge(src proto.Message) {
5568 xxx_messageInfo_AuthRoleGetResponse.Merge(m, src)
5569}
5570func (m *AuthRoleGetResponse) XXX_Size() int {
5571 return m.Size()
5572}
5573func (m *AuthRoleGetResponse) XXX_DiscardUnknown() {
5574 xxx_messageInfo_AuthRoleGetResponse.DiscardUnknown(m)
5575}
5576
5577var xxx_messageInfo_AuthRoleGetResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00005578
5579func (m *AuthRoleGetResponse) GetHeader() *ResponseHeader {
5580 if m != nil {
5581 return m.Header
5582 }
5583 return nil
5584}
5585
5586func (m *AuthRoleGetResponse) GetPerm() []*authpb.Permission {
5587 if m != nil {
5588 return m.Perm
5589 }
5590 return nil
5591}
5592
5593type AuthRoleListResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005594 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
5595 Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
5596 XXX_NoUnkeyedLiteral struct{} `json:"-"`
5597 XXX_unrecognized []byte `json:"-"`
5598 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00005599}
5600
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005601func (m *AuthRoleListResponse) Reset() { *m = AuthRoleListResponse{} }
5602func (m *AuthRoleListResponse) String() string { return proto.CompactTextString(m) }
5603func (*AuthRoleListResponse) ProtoMessage() {}
5604func (*AuthRoleListResponse) Descriptor() ([]byte, []int) {
5605 return fileDescriptor_77a6da22d6a3feb1, []int{81}
5606}
5607func (m *AuthRoleListResponse) XXX_Unmarshal(b []byte) error {
5608 return m.Unmarshal(b)
5609}
5610func (m *AuthRoleListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
5611 if deterministic {
5612 return xxx_messageInfo_AuthRoleListResponse.Marshal(b, m, deterministic)
5613 } else {
5614 b = b[:cap(b)]
5615 n, err := m.MarshalToSizedBuffer(b)
5616 if err != nil {
5617 return nil, err
5618 }
5619 return b[:n], nil
5620 }
5621}
5622func (m *AuthRoleListResponse) XXX_Merge(src proto.Message) {
5623 xxx_messageInfo_AuthRoleListResponse.Merge(m, src)
5624}
5625func (m *AuthRoleListResponse) XXX_Size() int {
5626 return m.Size()
5627}
5628func (m *AuthRoleListResponse) XXX_DiscardUnknown() {
5629 xxx_messageInfo_AuthRoleListResponse.DiscardUnknown(m)
5630}
5631
5632var xxx_messageInfo_AuthRoleListResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00005633
5634func (m *AuthRoleListResponse) GetHeader() *ResponseHeader {
5635 if m != nil {
5636 return m.Header
5637 }
5638 return nil
5639}
5640
5641func (m *AuthRoleListResponse) GetRoles() []string {
5642 if m != nil {
5643 return m.Roles
5644 }
5645 return nil
5646}
5647
5648type AuthUserListResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005649 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
5650 Users []string `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"`
5651 XXX_NoUnkeyedLiteral struct{} `json:"-"`
5652 XXX_unrecognized []byte `json:"-"`
5653 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00005654}
5655
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005656func (m *AuthUserListResponse) Reset() { *m = AuthUserListResponse{} }
5657func (m *AuthUserListResponse) String() string { return proto.CompactTextString(m) }
5658func (*AuthUserListResponse) ProtoMessage() {}
5659func (*AuthUserListResponse) Descriptor() ([]byte, []int) {
5660 return fileDescriptor_77a6da22d6a3feb1, []int{82}
5661}
5662func (m *AuthUserListResponse) XXX_Unmarshal(b []byte) error {
5663 return m.Unmarshal(b)
5664}
5665func (m *AuthUserListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
5666 if deterministic {
5667 return xxx_messageInfo_AuthUserListResponse.Marshal(b, m, deterministic)
5668 } else {
5669 b = b[:cap(b)]
5670 n, err := m.MarshalToSizedBuffer(b)
5671 if err != nil {
5672 return nil, err
5673 }
5674 return b[:n], nil
5675 }
5676}
5677func (m *AuthUserListResponse) XXX_Merge(src proto.Message) {
5678 xxx_messageInfo_AuthUserListResponse.Merge(m, src)
5679}
5680func (m *AuthUserListResponse) XXX_Size() int {
5681 return m.Size()
5682}
5683func (m *AuthUserListResponse) XXX_DiscardUnknown() {
5684 xxx_messageInfo_AuthUserListResponse.DiscardUnknown(m)
5685}
5686
5687var xxx_messageInfo_AuthUserListResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00005688
5689func (m *AuthUserListResponse) GetHeader() *ResponseHeader {
5690 if m != nil {
5691 return m.Header
5692 }
5693 return nil
5694}
5695
5696func (m *AuthUserListResponse) GetUsers() []string {
5697 if m != nil {
5698 return m.Users
5699 }
5700 return nil
5701}
5702
5703type AuthRoleDeleteResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005704 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
5705 XXX_NoUnkeyedLiteral struct{} `json:"-"`
5706 XXX_unrecognized []byte `json:"-"`
5707 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00005708}
5709
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005710func (m *AuthRoleDeleteResponse) Reset() { *m = AuthRoleDeleteResponse{} }
5711func (m *AuthRoleDeleteResponse) String() string { return proto.CompactTextString(m) }
5712func (*AuthRoleDeleteResponse) ProtoMessage() {}
5713func (*AuthRoleDeleteResponse) Descriptor() ([]byte, []int) {
5714 return fileDescriptor_77a6da22d6a3feb1, []int{83}
5715}
5716func (m *AuthRoleDeleteResponse) XXX_Unmarshal(b []byte) error {
5717 return m.Unmarshal(b)
5718}
5719func (m *AuthRoleDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
5720 if deterministic {
5721 return xxx_messageInfo_AuthRoleDeleteResponse.Marshal(b, m, deterministic)
5722 } else {
5723 b = b[:cap(b)]
5724 n, err := m.MarshalToSizedBuffer(b)
5725 if err != nil {
5726 return nil, err
5727 }
5728 return b[:n], nil
5729 }
5730}
5731func (m *AuthRoleDeleteResponse) XXX_Merge(src proto.Message) {
5732 xxx_messageInfo_AuthRoleDeleteResponse.Merge(m, src)
5733}
5734func (m *AuthRoleDeleteResponse) XXX_Size() int {
5735 return m.Size()
5736}
5737func (m *AuthRoleDeleteResponse) XXX_DiscardUnknown() {
5738 xxx_messageInfo_AuthRoleDeleteResponse.DiscardUnknown(m)
5739}
5740
5741var xxx_messageInfo_AuthRoleDeleteResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00005742
5743func (m *AuthRoleDeleteResponse) GetHeader() *ResponseHeader {
5744 if m != nil {
5745 return m.Header
5746 }
5747 return nil
5748}
5749
5750type AuthRoleGrantPermissionResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005751 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
5752 XXX_NoUnkeyedLiteral struct{} `json:"-"`
5753 XXX_unrecognized []byte `json:"-"`
5754 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00005755}
5756
5757func (m *AuthRoleGrantPermissionResponse) Reset() { *m = AuthRoleGrantPermissionResponse{} }
5758func (m *AuthRoleGrantPermissionResponse) String() string { return proto.CompactTextString(m) }
5759func (*AuthRoleGrantPermissionResponse) ProtoMessage() {}
5760func (*AuthRoleGrantPermissionResponse) Descriptor() ([]byte, []int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005761 return fileDescriptor_77a6da22d6a3feb1, []int{84}
divyadesai81bb7ba2020-03-11 11:45:23 +00005762}
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005763func (m *AuthRoleGrantPermissionResponse) XXX_Unmarshal(b []byte) error {
5764 return m.Unmarshal(b)
5765}
5766func (m *AuthRoleGrantPermissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
5767 if deterministic {
5768 return xxx_messageInfo_AuthRoleGrantPermissionResponse.Marshal(b, m, deterministic)
5769 } else {
5770 b = b[:cap(b)]
5771 n, err := m.MarshalToSizedBuffer(b)
5772 if err != nil {
5773 return nil, err
5774 }
5775 return b[:n], nil
5776 }
5777}
5778func (m *AuthRoleGrantPermissionResponse) XXX_Merge(src proto.Message) {
5779 xxx_messageInfo_AuthRoleGrantPermissionResponse.Merge(m, src)
5780}
5781func (m *AuthRoleGrantPermissionResponse) XXX_Size() int {
5782 return m.Size()
5783}
5784func (m *AuthRoleGrantPermissionResponse) XXX_DiscardUnknown() {
5785 xxx_messageInfo_AuthRoleGrantPermissionResponse.DiscardUnknown(m)
5786}
5787
5788var xxx_messageInfo_AuthRoleGrantPermissionResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00005789
5790func (m *AuthRoleGrantPermissionResponse) GetHeader() *ResponseHeader {
5791 if m != nil {
5792 return m.Header
5793 }
5794 return nil
5795}
5796
5797type AuthRoleRevokePermissionResponse struct {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005798 Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
5799 XXX_NoUnkeyedLiteral struct{} `json:"-"`
5800 XXX_unrecognized []byte `json:"-"`
5801 XXX_sizecache int32 `json:"-"`
divyadesai81bb7ba2020-03-11 11:45:23 +00005802}
5803
5804func (m *AuthRoleRevokePermissionResponse) Reset() { *m = AuthRoleRevokePermissionResponse{} }
5805func (m *AuthRoleRevokePermissionResponse) String() string { return proto.CompactTextString(m) }
5806func (*AuthRoleRevokePermissionResponse) ProtoMessage() {}
5807func (*AuthRoleRevokePermissionResponse) Descriptor() ([]byte, []int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005808 return fileDescriptor_77a6da22d6a3feb1, []int{85}
divyadesai81bb7ba2020-03-11 11:45:23 +00005809}
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005810func (m *AuthRoleRevokePermissionResponse) XXX_Unmarshal(b []byte) error {
5811 return m.Unmarshal(b)
5812}
5813func (m *AuthRoleRevokePermissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
5814 if deterministic {
5815 return xxx_messageInfo_AuthRoleRevokePermissionResponse.Marshal(b, m, deterministic)
5816 } else {
5817 b = b[:cap(b)]
5818 n, err := m.MarshalToSizedBuffer(b)
5819 if err != nil {
5820 return nil, err
5821 }
5822 return b[:n], nil
5823 }
5824}
5825func (m *AuthRoleRevokePermissionResponse) XXX_Merge(src proto.Message) {
5826 xxx_messageInfo_AuthRoleRevokePermissionResponse.Merge(m, src)
5827}
5828func (m *AuthRoleRevokePermissionResponse) XXX_Size() int {
5829 return m.Size()
5830}
5831func (m *AuthRoleRevokePermissionResponse) XXX_DiscardUnknown() {
5832 xxx_messageInfo_AuthRoleRevokePermissionResponse.DiscardUnknown(m)
5833}
5834
5835var xxx_messageInfo_AuthRoleRevokePermissionResponse proto.InternalMessageInfo
divyadesai81bb7ba2020-03-11 11:45:23 +00005836
5837func (m *AuthRoleRevokePermissionResponse) GetHeader() *ResponseHeader {
5838 if m != nil {
5839 return m.Header
5840 }
5841 return nil
5842}
5843
5844func init() {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005845 proto.RegisterEnum("etcdserverpb.AlarmType", AlarmType_name, AlarmType_value)
5846 proto.RegisterEnum("etcdserverpb.RangeRequest_SortOrder", RangeRequest_SortOrder_name, RangeRequest_SortOrder_value)
5847 proto.RegisterEnum("etcdserverpb.RangeRequest_SortTarget", RangeRequest_SortTarget_name, RangeRequest_SortTarget_value)
5848 proto.RegisterEnum("etcdserverpb.Compare_CompareResult", Compare_CompareResult_name, Compare_CompareResult_value)
5849 proto.RegisterEnum("etcdserverpb.Compare_CompareTarget", Compare_CompareTarget_name, Compare_CompareTarget_value)
5850 proto.RegisterEnum("etcdserverpb.WatchCreateRequest_FilterType", WatchCreateRequest_FilterType_name, WatchCreateRequest_FilterType_value)
5851 proto.RegisterEnum("etcdserverpb.AlarmRequest_AlarmAction", AlarmRequest_AlarmAction_name, AlarmRequest_AlarmAction_value)
divyadesai81bb7ba2020-03-11 11:45:23 +00005852 proto.RegisterType((*ResponseHeader)(nil), "etcdserverpb.ResponseHeader")
5853 proto.RegisterType((*RangeRequest)(nil), "etcdserverpb.RangeRequest")
5854 proto.RegisterType((*RangeResponse)(nil), "etcdserverpb.RangeResponse")
5855 proto.RegisterType((*PutRequest)(nil), "etcdserverpb.PutRequest")
5856 proto.RegisterType((*PutResponse)(nil), "etcdserverpb.PutResponse")
5857 proto.RegisterType((*DeleteRangeRequest)(nil), "etcdserverpb.DeleteRangeRequest")
5858 proto.RegisterType((*DeleteRangeResponse)(nil), "etcdserverpb.DeleteRangeResponse")
5859 proto.RegisterType((*RequestOp)(nil), "etcdserverpb.RequestOp")
5860 proto.RegisterType((*ResponseOp)(nil), "etcdserverpb.ResponseOp")
5861 proto.RegisterType((*Compare)(nil), "etcdserverpb.Compare")
5862 proto.RegisterType((*TxnRequest)(nil), "etcdserverpb.TxnRequest")
5863 proto.RegisterType((*TxnResponse)(nil), "etcdserverpb.TxnResponse")
5864 proto.RegisterType((*CompactionRequest)(nil), "etcdserverpb.CompactionRequest")
5865 proto.RegisterType((*CompactionResponse)(nil), "etcdserverpb.CompactionResponse")
5866 proto.RegisterType((*HashRequest)(nil), "etcdserverpb.HashRequest")
5867 proto.RegisterType((*HashKVRequest)(nil), "etcdserverpb.HashKVRequest")
5868 proto.RegisterType((*HashKVResponse)(nil), "etcdserverpb.HashKVResponse")
5869 proto.RegisterType((*HashResponse)(nil), "etcdserverpb.HashResponse")
5870 proto.RegisterType((*SnapshotRequest)(nil), "etcdserverpb.SnapshotRequest")
5871 proto.RegisterType((*SnapshotResponse)(nil), "etcdserverpb.SnapshotResponse")
5872 proto.RegisterType((*WatchRequest)(nil), "etcdserverpb.WatchRequest")
5873 proto.RegisterType((*WatchCreateRequest)(nil), "etcdserverpb.WatchCreateRequest")
5874 proto.RegisterType((*WatchCancelRequest)(nil), "etcdserverpb.WatchCancelRequest")
5875 proto.RegisterType((*WatchProgressRequest)(nil), "etcdserverpb.WatchProgressRequest")
5876 proto.RegisterType((*WatchResponse)(nil), "etcdserverpb.WatchResponse")
5877 proto.RegisterType((*LeaseGrantRequest)(nil), "etcdserverpb.LeaseGrantRequest")
5878 proto.RegisterType((*LeaseGrantResponse)(nil), "etcdserverpb.LeaseGrantResponse")
5879 proto.RegisterType((*LeaseRevokeRequest)(nil), "etcdserverpb.LeaseRevokeRequest")
5880 proto.RegisterType((*LeaseRevokeResponse)(nil), "etcdserverpb.LeaseRevokeResponse")
divyadesai81bb7ba2020-03-11 11:45:23 +00005881 proto.RegisterType((*LeaseKeepAliveRequest)(nil), "etcdserverpb.LeaseKeepAliveRequest")
5882 proto.RegisterType((*LeaseKeepAliveResponse)(nil), "etcdserverpb.LeaseKeepAliveResponse")
5883 proto.RegisterType((*LeaseTimeToLiveRequest)(nil), "etcdserverpb.LeaseTimeToLiveRequest")
5884 proto.RegisterType((*LeaseTimeToLiveResponse)(nil), "etcdserverpb.LeaseTimeToLiveResponse")
5885 proto.RegisterType((*LeaseLeasesRequest)(nil), "etcdserverpb.LeaseLeasesRequest")
5886 proto.RegisterType((*LeaseStatus)(nil), "etcdserverpb.LeaseStatus")
5887 proto.RegisterType((*LeaseLeasesResponse)(nil), "etcdserverpb.LeaseLeasesResponse")
5888 proto.RegisterType((*Member)(nil), "etcdserverpb.Member")
5889 proto.RegisterType((*MemberAddRequest)(nil), "etcdserverpb.MemberAddRequest")
5890 proto.RegisterType((*MemberAddResponse)(nil), "etcdserverpb.MemberAddResponse")
5891 proto.RegisterType((*MemberRemoveRequest)(nil), "etcdserverpb.MemberRemoveRequest")
5892 proto.RegisterType((*MemberRemoveResponse)(nil), "etcdserverpb.MemberRemoveResponse")
5893 proto.RegisterType((*MemberUpdateRequest)(nil), "etcdserverpb.MemberUpdateRequest")
5894 proto.RegisterType((*MemberUpdateResponse)(nil), "etcdserverpb.MemberUpdateResponse")
5895 proto.RegisterType((*MemberListRequest)(nil), "etcdserverpb.MemberListRequest")
5896 proto.RegisterType((*MemberListResponse)(nil), "etcdserverpb.MemberListResponse")
divyadesai81bb7ba2020-03-11 11:45:23 +00005897 proto.RegisterType((*DefragmentRequest)(nil), "etcdserverpb.DefragmentRequest")
5898 proto.RegisterType((*DefragmentResponse)(nil), "etcdserverpb.DefragmentResponse")
5899 proto.RegisterType((*MoveLeaderRequest)(nil), "etcdserverpb.MoveLeaderRequest")
5900 proto.RegisterType((*MoveLeaderResponse)(nil), "etcdserverpb.MoveLeaderResponse")
5901 proto.RegisterType((*AlarmRequest)(nil), "etcdserverpb.AlarmRequest")
5902 proto.RegisterType((*AlarmMember)(nil), "etcdserverpb.AlarmMember")
5903 proto.RegisterType((*AlarmResponse)(nil), "etcdserverpb.AlarmResponse")
5904 proto.RegisterType((*StatusRequest)(nil), "etcdserverpb.StatusRequest")
5905 proto.RegisterType((*StatusResponse)(nil), "etcdserverpb.StatusResponse")
5906 proto.RegisterType((*AuthEnableRequest)(nil), "etcdserverpb.AuthEnableRequest")
5907 proto.RegisterType((*AuthDisableRequest)(nil), "etcdserverpb.AuthDisableRequest")
5908 proto.RegisterType((*AuthenticateRequest)(nil), "etcdserverpb.AuthenticateRequest")
5909 proto.RegisterType((*AuthUserAddRequest)(nil), "etcdserverpb.AuthUserAddRequest")
5910 proto.RegisterType((*AuthUserGetRequest)(nil), "etcdserverpb.AuthUserGetRequest")
5911 proto.RegisterType((*AuthUserDeleteRequest)(nil), "etcdserverpb.AuthUserDeleteRequest")
5912 proto.RegisterType((*AuthUserChangePasswordRequest)(nil), "etcdserverpb.AuthUserChangePasswordRequest")
5913 proto.RegisterType((*AuthUserGrantRoleRequest)(nil), "etcdserverpb.AuthUserGrantRoleRequest")
5914 proto.RegisterType((*AuthUserRevokeRoleRequest)(nil), "etcdserverpb.AuthUserRevokeRoleRequest")
5915 proto.RegisterType((*AuthRoleAddRequest)(nil), "etcdserverpb.AuthRoleAddRequest")
5916 proto.RegisterType((*AuthRoleGetRequest)(nil), "etcdserverpb.AuthRoleGetRequest")
5917 proto.RegisterType((*AuthUserListRequest)(nil), "etcdserverpb.AuthUserListRequest")
5918 proto.RegisterType((*AuthRoleListRequest)(nil), "etcdserverpb.AuthRoleListRequest")
5919 proto.RegisterType((*AuthRoleDeleteRequest)(nil), "etcdserverpb.AuthRoleDeleteRequest")
5920 proto.RegisterType((*AuthRoleGrantPermissionRequest)(nil), "etcdserverpb.AuthRoleGrantPermissionRequest")
5921 proto.RegisterType((*AuthRoleRevokePermissionRequest)(nil), "etcdserverpb.AuthRoleRevokePermissionRequest")
5922 proto.RegisterType((*AuthEnableResponse)(nil), "etcdserverpb.AuthEnableResponse")
5923 proto.RegisterType((*AuthDisableResponse)(nil), "etcdserverpb.AuthDisableResponse")
5924 proto.RegisterType((*AuthenticateResponse)(nil), "etcdserverpb.AuthenticateResponse")
5925 proto.RegisterType((*AuthUserAddResponse)(nil), "etcdserverpb.AuthUserAddResponse")
5926 proto.RegisterType((*AuthUserGetResponse)(nil), "etcdserverpb.AuthUserGetResponse")
5927 proto.RegisterType((*AuthUserDeleteResponse)(nil), "etcdserverpb.AuthUserDeleteResponse")
5928 proto.RegisterType((*AuthUserChangePasswordResponse)(nil), "etcdserverpb.AuthUserChangePasswordResponse")
5929 proto.RegisterType((*AuthUserGrantRoleResponse)(nil), "etcdserverpb.AuthUserGrantRoleResponse")
5930 proto.RegisterType((*AuthUserRevokeRoleResponse)(nil), "etcdserverpb.AuthUserRevokeRoleResponse")
5931 proto.RegisterType((*AuthRoleAddResponse)(nil), "etcdserverpb.AuthRoleAddResponse")
5932 proto.RegisterType((*AuthRoleGetResponse)(nil), "etcdserverpb.AuthRoleGetResponse")
5933 proto.RegisterType((*AuthRoleListResponse)(nil), "etcdserverpb.AuthRoleListResponse")
5934 proto.RegisterType((*AuthUserListResponse)(nil), "etcdserverpb.AuthUserListResponse")
5935 proto.RegisterType((*AuthRoleDeleteResponse)(nil), "etcdserverpb.AuthRoleDeleteResponse")
5936 proto.RegisterType((*AuthRoleGrantPermissionResponse)(nil), "etcdserverpb.AuthRoleGrantPermissionResponse")
5937 proto.RegisterType((*AuthRoleRevokePermissionResponse)(nil), "etcdserverpb.AuthRoleRevokePermissionResponse")
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00005938}
5939
5940func init() { proto.RegisterFile("rpc.proto", fileDescriptor_77a6da22d6a3feb1) }
5941
5942var fileDescriptor_77a6da22d6a3feb1 = []byte{
5943 // 3711 bytes of a gzipped FileDescriptorProto
5944 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x5b, 0x5b, 0x73, 0x1b, 0x47,
5945 0x76, 0xe6, 0x00, 0x04, 0x40, 0x1c, 0x5c, 0x08, 0x35, 0x29, 0x09, 0x84, 0x24, 0x8a, 0x6a, 0xdd,
5946 0xa8, 0x8b, 0x09, 0x9b, 0x76, 0xf2, 0xa0, 0xa4, 0x5c, 0xa6, 0x48, 0x58, 0xa4, 0x49, 0x91, 0xf4,
5947 0x10, 0x94, 0x9d, 0x2a, 0x27, 0xac, 0x21, 0xd0, 0x22, 0x11, 0x02, 0x33, 0xc8, 0xcc, 0x00, 0x22,
5948 0x15, 0x57, 0x52, 0xe5, 0x38, 0xae, 0x3c, 0xc7, 0x55, 0xa9, 0x24, 0xaf, 0x5b, 0x5b, 0x2e, 0xff,
5949 0x82, 0xfd, 0x0b, 0x5b, 0xfb, 0xb2, 0xbb, 0xb5, 0x7f, 0x60, 0xcb, 0xbb, 0x2f, 0xfb, 0x0b, 0xf6,
5950 0xf2, 0xb4, 0xd5, 0xb7, 0x99, 0x9e, 0x1b, 0x48, 0x1b, 0xb6, 0x5f, 0xa8, 0xe9, 0xd3, 0xa7, 0xcf,
5951 0x39, 0x7d, 0xba, 0xcf, 0x39, 0xdd, 0x5f, 0x43, 0x90, 0xb7, 0xfb, 0xad, 0xa5, 0xbe, 0x6d, 0xb9,
5952 0x16, 0x2a, 0x12, 0xb7, 0xd5, 0x76, 0x88, 0x3d, 0x24, 0x76, 0xff, 0xb0, 0x36, 0x7b, 0x64, 0x1d,
5953 0x59, 0xac, 0xa3, 0x4e, 0xbf, 0x38, 0x4f, 0x6d, 0x8e, 0xf2, 0xd4, 0x7b, 0xc3, 0x56, 0x8b, 0xfd,
5954 0xe9, 0x1f, 0xd6, 0x4f, 0x86, 0xa2, 0xeb, 0x1a, 0xeb, 0x32, 0x06, 0xee, 0x31, 0xfb, 0xd3, 0x3f,
5955 0x64, 0xff, 0x88, 0xce, 0xeb, 0x47, 0x96, 0x75, 0xd4, 0x25, 0x75, 0xa3, 0xdf, 0xa9, 0x1b, 0xa6,
5956 0x69, 0xb9, 0x86, 0xdb, 0xb1, 0x4c, 0x87, 0xf7, 0xe2, 0xff, 0xd4, 0xa0, 0xac, 0x13, 0xa7, 0x6f,
5957 0x99, 0x0e, 0x59, 0x27, 0x46, 0x9b, 0xd8, 0xe8, 0x06, 0x40, 0xab, 0x3b, 0x70, 0x5c, 0x62, 0x1f,
5958 0x74, 0xda, 0x55, 0x6d, 0x41, 0x5b, 0x9c, 0xd4, 0xf3, 0x82, 0xb2, 0xd1, 0x46, 0xd7, 0x20, 0xdf,
5959 0x23, 0xbd, 0x43, 0xde, 0x9b, 0x62, 0xbd, 0x53, 0x9c, 0xb0, 0xd1, 0x46, 0x35, 0x98, 0xb2, 0xc9,
5960 0xb0, 0xe3, 0x74, 0x2c, 0xb3, 0x9a, 0x5e, 0xd0, 0x16, 0xd3, 0xba, 0xd7, 0xa6, 0x03, 0x6d, 0xe3,
5961 0xa5, 0x7b, 0xe0, 0x12, 0xbb, 0x57, 0x9d, 0xe4, 0x03, 0x29, 0xa1, 0x49, 0xec, 0x1e, 0xfe, 0x3c,
5962 0x03, 0x45, 0xdd, 0x30, 0x8f, 0x88, 0x4e, 0xfe, 0x65, 0x40, 0x1c, 0x17, 0x55, 0x20, 0x7d, 0x42,
5963 0xce, 0x98, 0xfa, 0xa2, 0x4e, 0x3f, 0xf9, 0x78, 0xf3, 0x88, 0x1c, 0x10, 0x93, 0x2b, 0x2e, 0xd2,
5964 0xf1, 0xe6, 0x11, 0x69, 0x98, 0x6d, 0x34, 0x0b, 0x99, 0x6e, 0xa7, 0xd7, 0x71, 0x85, 0x56, 0xde,
5965 0x08, 0x98, 0x33, 0x19, 0x32, 0x67, 0x15, 0xc0, 0xb1, 0x6c, 0xf7, 0xc0, 0xb2, 0xdb, 0xc4, 0xae,
5966 0x66, 0x16, 0xb4, 0xc5, 0xf2, 0xf2, 0x9d, 0x25, 0x75, 0x21, 0x96, 0x54, 0x83, 0x96, 0xf6, 0x2c,
5967 0xdb, 0xdd, 0xa1, 0xbc, 0x7a, 0xde, 0x91, 0x9f, 0xe8, 0x7d, 0x28, 0x30, 0x21, 0xae, 0x61, 0x1f,
5968 0x11, 0xb7, 0x9a, 0x65, 0x52, 0xee, 0x9e, 0x23, 0xa5, 0xc9, 0x98, 0x75, 0xa6, 0x9e, 0x7f, 0x23,
5969 0x0c, 0x45, 0x87, 0xd8, 0x1d, 0xa3, 0xdb, 0x79, 0x6d, 0x1c, 0x76, 0x49, 0x35, 0xb7, 0xa0, 0x2d,
5970 0x4e, 0xe9, 0x01, 0x1a, 0x9d, 0xff, 0x09, 0x39, 0x73, 0x0e, 0x2c, 0xb3, 0x7b, 0x56, 0x9d, 0x62,
5971 0x0c, 0x53, 0x94, 0xb0, 0x63, 0x76, 0xcf, 0xd8, 0xa2, 0x59, 0x03, 0xd3, 0xe5, 0xbd, 0x79, 0xd6,
5972 0x9b, 0x67, 0x14, 0xd6, 0xbd, 0x08, 0x95, 0x5e, 0xc7, 0x3c, 0xe8, 0x59, 0xed, 0x03, 0xcf, 0x21,
5973 0xc0, 0x1c, 0x52, 0xee, 0x75, 0xcc, 0xe7, 0x56, 0x5b, 0x97, 0x6e, 0xa1, 0x9c, 0xc6, 0x69, 0x90,
5974 0xb3, 0x20, 0x38, 0x8d, 0x53, 0x95, 0x73, 0x09, 0x66, 0xa8, 0xcc, 0x96, 0x4d, 0x0c, 0x97, 0xf8,
5975 0xcc, 0x45, 0xc6, 0x7c, 0xa9, 0xd7, 0x31, 0x57, 0x59, 0x4f, 0x80, 0xdf, 0x38, 0x8d, 0xf0, 0x97,
5976 0x04, 0xbf, 0x71, 0x1a, 0xe4, 0xc7, 0x4b, 0x90, 0xf7, 0x7c, 0x8e, 0xa6, 0x60, 0x72, 0x7b, 0x67,
5977 0xbb, 0x51, 0x99, 0x40, 0x00, 0xd9, 0x95, 0xbd, 0xd5, 0xc6, 0xf6, 0x5a, 0x45, 0x43, 0x05, 0xc8,
5978 0xad, 0x35, 0x78, 0x23, 0x85, 0x9f, 0x02, 0xf8, 0xde, 0x45, 0x39, 0x48, 0x6f, 0x36, 0xfe, 0xa1,
5979 0x32, 0x41, 0x79, 0x5e, 0x34, 0xf4, 0xbd, 0x8d, 0x9d, 0xed, 0x8a, 0x46, 0x07, 0xaf, 0xea, 0x8d,
5980 0x95, 0x66, 0xa3, 0x92, 0xa2, 0x1c, 0xcf, 0x77, 0xd6, 0x2a, 0x69, 0x94, 0x87, 0xcc, 0x8b, 0x95,
5981 0xad, 0xfd, 0x46, 0x65, 0x12, 0x7f, 0xa9, 0x41, 0x49, 0xac, 0x17, 0x8f, 0x09, 0xf4, 0x0e, 0x64,
5982 0x8f, 0x59, 0x5c, 0xb0, 0xad, 0x58, 0x58, 0xbe, 0x1e, 0x5a, 0xdc, 0x40, 0xec, 0xe8, 0x82, 0x17,
5983 0x61, 0x48, 0x9f, 0x0c, 0x9d, 0x6a, 0x6a, 0x21, 0xbd, 0x58, 0x58, 0xae, 0x2c, 0xf1, 0x80, 0x5d,
5984 0xda, 0x24, 0x67, 0x2f, 0x8c, 0xee, 0x80, 0xe8, 0xb4, 0x13, 0x21, 0x98, 0xec, 0x59, 0x36, 0x61,
5985 0x3b, 0x76, 0x4a, 0x67, 0xdf, 0x74, 0x1b, 0xb3, 0x45, 0x13, 0xbb, 0x95, 0x37, 0xf0, 0xd7, 0x1a,
5986 0xc0, 0xee, 0xc0, 0x4d, 0x0e, 0x8d, 0x59, 0xc8, 0x0c, 0xa9, 0x60, 0x11, 0x16, 0xbc, 0xc1, 0x62,
5987 0x82, 0x18, 0x0e, 0xf1, 0x62, 0x82, 0x36, 0xd0, 0x55, 0xc8, 0xf5, 0x6d, 0x32, 0x3c, 0x38, 0x19,
5988 0x32, 0x25, 0x53, 0x7a, 0x96, 0x36, 0x37, 0x87, 0xe8, 0x16, 0x14, 0x3b, 0x47, 0xa6, 0x65, 0x93,
5989 0x03, 0x2e, 0x2b, 0xc3, 0x7a, 0x0b, 0x9c, 0xc6, 0xec, 0x56, 0x58, 0xb8, 0xe0, 0xac, 0xca, 0xb2,
5990 0x45, 0x49, 0xd8, 0x84, 0x02, 0x33, 0x75, 0x2c, 0xf7, 0x3d, 0xf0, 0x6d, 0x4c, 0xb1, 0x61, 0x51,
5991 0x17, 0x0a, 0xab, 0xf1, 0x27, 0x80, 0xd6, 0x48, 0x97, 0xb8, 0x64, 0x9c, 0xec, 0xa1, 0xf8, 0x24,
5992 0xad, 0xfa, 0x04, 0xff, 0xb7, 0x06, 0x33, 0x01, 0xf1, 0x63, 0x4d, 0xab, 0x0a, 0xb9, 0x36, 0x13,
5993 0xc6, 0x2d, 0x48, 0xeb, 0xb2, 0x89, 0x1e, 0xc1, 0x94, 0x30, 0xc0, 0xa9, 0xa6, 0x13, 0x36, 0x4d,
5994 0x8e, 0xdb, 0xe4, 0xe0, 0xaf, 0x53, 0x90, 0x17, 0x13, 0xdd, 0xe9, 0xa3, 0x15, 0x28, 0xd9, 0xbc,
5995 0x71, 0xc0, 0xe6, 0x23, 0x2c, 0xaa, 0x25, 0x27, 0xa1, 0xf5, 0x09, 0xbd, 0x28, 0x86, 0x30, 0x32,
5996 0xfa, 0x3b, 0x28, 0x48, 0x11, 0xfd, 0x81, 0x2b, 0x5c, 0x5e, 0x0d, 0x0a, 0xf0, 0xf7, 0xdf, 0xfa,
5997 0x84, 0x0e, 0x82, 0x7d, 0x77, 0xe0, 0xa2, 0x26, 0xcc, 0xca, 0xc1, 0x7c, 0x36, 0xc2, 0x8c, 0x34,
5998 0x93, 0xb2, 0x10, 0x94, 0x12, 0x5d, 0xaa, 0xf5, 0x09, 0x1d, 0x89, 0xf1, 0x4a, 0xa7, 0x6a, 0x92,
5999 0x7b, 0xca, 0x93, 0x77, 0xc4, 0xa4, 0xe6, 0xa9, 0x19, 0x35, 0xa9, 0x79, 0x6a, 0x3e, 0xcd, 0x43,
6000 0x4e, 0xb4, 0xf0, 0xcf, 0x52, 0x00, 0x72, 0x35, 0x76, 0xfa, 0x68, 0x0d, 0xca, 0xb6, 0x68, 0x05,
6001 0xbc, 0x75, 0x2d, 0xd6, 0x5b, 0x62, 0x11, 0x27, 0xf4, 0x92, 0x1c, 0xc4, 0x8d, 0x7b, 0x17, 0x8a,
6002 0x9e, 0x14, 0xdf, 0x61, 0x73, 0x31, 0x0e, 0xf3, 0x24, 0x14, 0xe4, 0x00, 0xea, 0xb2, 0x8f, 0xe0,
6003 0xb2, 0x37, 0x3e, 0xc6, 0x67, 0xb7, 0x46, 0xf8, 0xcc, 0x13, 0x38, 0x23, 0x25, 0xa8, 0x5e, 0x53,
6004 0x0d, 0xf3, 0xdd, 0x36, 0x17, 0xe3, 0xb6, 0xa8, 0x61, 0xd4, 0x71, 0x40, 0xeb, 0x25, 0x6f, 0xe2,
6005 0x3f, 0xa4, 0x21, 0xb7, 0x6a, 0xf5, 0xfa, 0x86, 0x4d, 0x57, 0x23, 0x6b, 0x13, 0x67, 0xd0, 0x75,
6006 0x99, 0xbb, 0xca, 0xcb, 0xb7, 0x83, 0x12, 0x05, 0x9b, 0xfc, 0x57, 0x67, 0xac, 0xba, 0x18, 0x42,
6007 0x07, 0x8b, 0xf2, 0x98, 0xba, 0xc0, 0x60, 0x51, 0x1c, 0xc5, 0x10, 0x19, 0xc8, 0x69, 0x3f, 0x90,
6008 0x6b, 0x90, 0x1b, 0x12, 0xdb, 0x2f, 0xe9, 0xeb, 0x13, 0xba, 0x24, 0xa0, 0x07, 0x30, 0x1d, 0x2e,
6009 0x2f, 0x19, 0xc1, 0x53, 0x6e, 0x05, 0xab, 0xd1, 0x6d, 0x28, 0x06, 0x6a, 0x5c, 0x56, 0xf0, 0x15,
6010 0x7a, 0x4a, 0x89, 0xbb, 0x22, 0xf3, 0x2a, 0xad, 0xc7, 0xc5, 0xf5, 0x09, 0x99, 0x59, 0xaf, 0xc8,
6011 0xcc, 0x3a, 0x25, 0x46, 0x89, 0xdc, 0x1a, 0x48, 0x32, 0xef, 0x05, 0x93, 0x0c, 0x7e, 0x0f, 0x4a,
6012 0x01, 0x07, 0xd1, 0xba, 0xd3, 0xf8, 0x70, 0x7f, 0x65, 0x8b, 0x17, 0xa9, 0x67, 0xac, 0x2e, 0xe9,
6013 0x15, 0x8d, 0xd6, 0xba, 0xad, 0xc6, 0xde, 0x5e, 0x25, 0x85, 0x4a, 0x90, 0xdf, 0xde, 0x69, 0x1e,
6014 0x70, 0xae, 0x34, 0x7e, 0xe6, 0x49, 0x10, 0x45, 0x4e, 0xa9, 0x6d, 0x13, 0x4a, 0x6d, 0xd3, 0x64,
6015 0x6d, 0x4b, 0xf9, 0xb5, 0x8d, 0x95, 0xb9, 0xad, 0xc6, 0xca, 0x5e, 0xa3, 0x32, 0xf9, 0xb4, 0x0c,
6016 0x45, 0xee, 0xdf, 0x83, 0x81, 0x49, 0x4b, 0xed, 0x4f, 0x34, 0x00, 0x3f, 0x9a, 0x50, 0x1d, 0x72,
6017 0x2d, 0xae, 0xa7, 0xaa, 0xb1, 0x64, 0x74, 0x39, 0x76, 0xc9, 0x74, 0xc9, 0x85, 0xde, 0x82, 0x9c,
6018 0x33, 0x68, 0xb5, 0x88, 0x23, 0x4b, 0xde, 0xd5, 0x70, 0x3e, 0x14, 0xd9, 0x4a, 0x97, 0x7c, 0x74,
6019 0xc8, 0x4b, 0xa3, 0xd3, 0x1d, 0xb0, 0x02, 0x38, 0x7a, 0x88, 0xe0, 0xc3, 0xff, 0xa7, 0x41, 0x41,
6020 0xd9, 0xbc, 0xdf, 0x31, 0x09, 0x5f, 0x87, 0x3c, 0xb3, 0x81, 0xb4, 0x45, 0x1a, 0x9e, 0xd2, 0x7d,
6021 0x02, 0xfa, 0x5b, 0xc8, 0xcb, 0x08, 0x90, 0x99, 0xb8, 0x1a, 0x2f, 0x76, 0xa7, 0xaf, 0xfb, 0xac,
6022 0x78, 0x13, 0x2e, 0x31, 0xaf, 0xb4, 0xe8, 0xe1, 0x5a, 0xfa, 0x51, 0x3d, 0x7e, 0x6a, 0xa1, 0xe3,
6023 0x67, 0x0d, 0xa6, 0xfa, 0xc7, 0x67, 0x4e, 0xa7, 0x65, 0x74, 0x85, 0x15, 0x5e, 0x1b, 0x7f, 0x00,
6024 0x48, 0x15, 0x36, 0xce, 0x74, 0x71, 0x09, 0x0a, 0xeb, 0x86, 0x73, 0x2c, 0x4c, 0xc2, 0x8f, 0xa0,
6025 0x44, 0x9b, 0x9b, 0x2f, 0x2e, 0x60, 0x23, 0xbb, 0x1c, 0x48, 0xee, 0xb1, 0x7c, 0x8e, 0x60, 0xf2,
6026 0xd8, 0x70, 0x8e, 0xd9, 0x44, 0x4b, 0x3a, 0xfb, 0x46, 0x0f, 0xa0, 0xd2, 0xe2, 0x93, 0x3c, 0x08,
6027 0x5d, 0x19, 0xa6, 0x05, 0xdd, 0x3b, 0x09, 0x7e, 0x0c, 0x45, 0x3e, 0x87, 0xef, 0xdb, 0x08, 0x7c,
6028 0x09, 0xa6, 0xf7, 0x4c, 0xa3, 0xef, 0x1c, 0x5b, 0xb2, 0xba, 0xd1, 0x49, 0x57, 0x7c, 0xda, 0x58,
6029 0x1a, 0xef, 0xc3, 0xb4, 0x4d, 0x7a, 0x46, 0xc7, 0xec, 0x98, 0x47, 0x07, 0x87, 0x67, 0x2e, 0x71,
6030 0xc4, 0x85, 0xa9, 0xec, 0x91, 0x9f, 0x52, 0x2a, 0x35, 0xed, 0xb0, 0x6b, 0x1d, 0x8a, 0x34, 0xc7,
6031 0xbe, 0xf1, 0x17, 0x29, 0x28, 0x7e, 0x64, 0xb8, 0x2d, 0xb9, 0x74, 0x68, 0x03, 0xca, 0x5e, 0x72,
6032 0x63, 0x14, 0x61, 0x4b, 0xa8, 0xc4, 0xb2, 0x31, 0xf2, 0x28, 0x2d, 0xab, 0x63, 0xa9, 0xa5, 0x12,
6033 0x98, 0x28, 0xc3, 0x6c, 0x91, 0xae, 0x27, 0x2a, 0x95, 0x2c, 0x8a, 0x31, 0xaa, 0xa2, 0x54, 0x02,
6034 0xda, 0x81, 0x4a, 0xdf, 0xb6, 0x8e, 0x6c, 0xe2, 0x38, 0x9e, 0x30, 0x5e, 0xc6, 0x70, 0x8c, 0xb0,
6035 0x5d, 0xc1, 0xea, 0x8b, 0x9b, 0xee, 0x07, 0x49, 0x4f, 0xa7, 0xfd, 0xf3, 0x0c, 0x4f, 0x4e, 0xbf,
6036 0x4e, 0x01, 0x8a, 0x4e, 0xea, 0xdb, 0x1e, 0xf1, 0xee, 0x42, 0xd9, 0x71, 0x0d, 0x3b, 0xb2, 0xd9,
6037 0x4a, 0x8c, 0xea, 0x65, 0xfc, 0xfb, 0xe0, 0x19, 0x74, 0x60, 0x5a, 0x6e, 0xe7, 0xe5, 0x99, 0x38,
6038 0x25, 0x97, 0x25, 0x79, 0x9b, 0x51, 0x51, 0x03, 0x72, 0x2f, 0x3b, 0x5d, 0x97, 0xd8, 0x4e, 0x35,
6039 0xb3, 0x90, 0x5e, 0x2c, 0x2f, 0x3f, 0x3a, 0x6f, 0x19, 0x96, 0xde, 0x67, 0xfc, 0xcd, 0xb3, 0x3e,
6040 0xd1, 0xe5, 0x58, 0xf5, 0xe4, 0x99, 0x0d, 0x9c, 0xc6, 0xe7, 0x60, 0xea, 0x15, 0x15, 0x41, 0x6f,
6041 0xd9, 0x39, 0x7e, 0x58, 0x64, 0x6d, 0x7e, 0xc9, 0x7e, 0x69, 0x1b, 0x47, 0x3d, 0x62, 0xba, 0xf2,
6042 0x1e, 0x28, 0xdb, 0xf8, 0x2e, 0x80, 0xaf, 0x86, 0xa6, 0xfc, 0xed, 0x9d, 0xdd, 0xfd, 0x66, 0x65,
6043 0x02, 0x15, 0x61, 0x6a, 0x7b, 0x67, 0xad, 0xb1, 0xd5, 0xa0, 0xf5, 0x01, 0xd7, 0xa5, 0x4b, 0x03,
6044 0x6b, 0xa9, 0xea, 0xd4, 0x02, 0x3a, 0xf1, 0x15, 0x98, 0x8d, 0x5b, 0x40, 0x7a, 0x16, 0x2d, 0x89,
6045 0x5d, 0x3a, 0x56, 0xa8, 0xa8, 0xaa, 0x53, 0xc1, 0xe9, 0x56, 0x21, 0xc7, 0x77, 0x6f, 0x5b, 0x1c,
6046 0xce, 0x65, 0x93, 0x3a, 0x82, 0x6f, 0x46, 0xd2, 0x16, 0xab, 0xe4, 0xb5, 0x63, 0xd3, 0x4b, 0x26,
6047 0x36, 0xbd, 0xa0, 0xdb, 0x50, 0xf2, 0xa2, 0xc1, 0x70, 0xc4, 0x59, 0x20, 0xaf, 0x17, 0xe5, 0x46,
6048 0xa7, 0xb4, 0x80, 0xd3, 0x73, 0x41, 0xa7, 0xa3, 0xbb, 0x90, 0x25, 0x43, 0x62, 0xba, 0x4e, 0xb5,
6049 0xc0, 0x2a, 0x46, 0x49, 0x9e, 0xdd, 0x1b, 0x94, 0xaa, 0x8b, 0x4e, 0xfc, 0x37, 0x70, 0x89, 0xdd,
6050 0x91, 0x9e, 0xd9, 0x86, 0xa9, 0x5e, 0xe6, 0x9a, 0xcd, 0x2d, 0xe1, 0x6e, 0xfa, 0x89, 0xca, 0x90,
6051 0xda, 0x58, 0x13, 0x4e, 0x48, 0x6d, 0xac, 0xe1, 0xcf, 0x34, 0x40, 0xea, 0xb8, 0xb1, 0xfc, 0x1c,
6052 0x12, 0x2e, 0xd5, 0xa7, 0x7d, 0xf5, 0xb3, 0x90, 0x21, 0xb6, 0x6d, 0xd9, 0xcc, 0xa3, 0x79, 0x9d,
6053 0x37, 0xf0, 0x1d, 0x61, 0x83, 0x4e, 0x86, 0xd6, 0x89, 0x17, 0x83, 0x5c, 0x9a, 0xe6, 0x99, 0xba,
6054 0x09, 0x33, 0x01, 0xae, 0xb1, 0x2a, 0xd7, 0x7d, 0xb8, 0xcc, 0x84, 0x6d, 0x12, 0xd2, 0x5f, 0xe9,
6055 0x76, 0x86, 0x89, 0x5a, 0xfb, 0x70, 0x25, 0xcc, 0xf8, 0xc3, 0xfa, 0x08, 0xff, 0xbd, 0xd0, 0xd8,
6056 0xec, 0xf4, 0x48, 0xd3, 0xda, 0x4a, 0xb6, 0x8d, 0x66, 0xf6, 0x13, 0x72, 0xe6, 0x88, 0x12, 0xcf,
6057 0xbe, 0xf1, 0x4f, 0x35, 0xb8, 0x1a, 0x19, 0xfe, 0x03, 0xaf, 0xea, 0x3c, 0xc0, 0x11, 0xdd, 0x3e,
6058 0xa4, 0x4d, 0x3b, 0x38, 0xba, 0xa0, 0x50, 0x3c, 0x3b, 0x69, 0x2e, 0x2b, 0x0a, 0x3b, 0x67, 0xc5,
6059 0x9a, 0xb3, 0x3f, 0x5e, 0xc4, 0xdf, 0x80, 0x02, 0x23, 0xec, 0xb9, 0x86, 0x3b, 0x70, 0x22, 0x8b,
6060 0xf1, 0x6f, 0x62, 0x0b, 0xc8, 0x41, 0x63, 0xcd, 0xeb, 0x2d, 0xc8, 0xb2, 0x83, 0xb5, 0x3c, 0x56,
6061 0x86, 0x6e, 0x32, 0x8a, 0x1d, 0xba, 0x60, 0xc4, 0xc7, 0x90, 0x7d, 0xce, 0xd0, 0x48, 0xc5, 0xb2,
6062 0x49, 0xb9, 0x14, 0xa6, 0xd1, 0xe3, 0x18, 0x49, 0x5e, 0x67, 0xdf, 0xec, 0x14, 0x46, 0x88, 0xbd,
6063 0xaf, 0x6f, 0xf1, 0xd3, 0x5e, 0x5e, 0xf7, 0xda, 0xd4, 0x65, 0xad, 0x6e, 0x87, 0x98, 0x2e, 0xeb,
6064 0x9d, 0x64, 0xbd, 0x0a, 0x05, 0x2f, 0x41, 0x85, 0x6b, 0x5a, 0x69, 0xb7, 0x95, 0xd3, 0x94, 0x27,
6065 0x4f, 0x0b, 0xca, 0xc3, 0x5f, 0x69, 0x70, 0x49, 0x19, 0x30, 0x96, 0x63, 0x1e, 0x43, 0x96, 0x63,
6066 0xae, 0xa2, 0x70, 0xcf, 0x06, 0x47, 0x71, 0x35, 0xba, 0xe0, 0x41, 0x4b, 0x90, 0xe3, 0x5f, 0xf2,
6067 0x48, 0x1b, 0xcf, 0x2e, 0x99, 0xf0, 0x5d, 0x98, 0x11, 0x24, 0xd2, 0xb3, 0xe2, 0xf6, 0x36, 0x73,
6068 0x28, 0xfe, 0x14, 0x66, 0x83, 0x6c, 0x63, 0x4d, 0x49, 0x31, 0x32, 0x75, 0x11, 0x23, 0x57, 0xa4,
6069 0x91, 0xfb, 0xfd, 0xb6, 0x72, 0x2c, 0x08, 0xaf, 0xba, 0xba, 0x22, 0xa9, 0xd0, 0x8a, 0x78, 0x13,
6070 0x90, 0x22, 0x7e, 0xd4, 0x09, 0xcc, 0xc8, 0xed, 0xb0, 0xd5, 0x71, 0xbc, 0xd3, 0xe7, 0x6b, 0x40,
6071 0x2a, 0xf1, 0xc7, 0x36, 0x68, 0x8d, 0xc8, 0xa2, 0x26, 0x0d, 0xfa, 0x00, 0x90, 0x4a, 0x1c, 0x2b,
6072 0xa3, 0xd7, 0xe1, 0xd2, 0x73, 0x6b, 0x48, 0x53, 0x03, 0xa5, 0xfa, 0x21, 0xc3, 0xef, 0xa2, 0xde,
6073 0xb2, 0x79, 0x6d, 0xaa, 0x5c, 0x1d, 0x30, 0x96, 0xf2, 0x5f, 0x6a, 0x50, 0x5c, 0xe9, 0x1a, 0x76,
6074 0x4f, 0x2a, 0x7e, 0x17, 0xb2, 0xfc, 0x86, 0x25, 0x40, 0x8d, 0x7b, 0x41, 0x31, 0x2a, 0x2f, 0x6f,
6075 0xac, 0xf0, 0xfb, 0x98, 0x18, 0x45, 0x0d, 0x17, 0xef, 0x1e, 0x6b, 0xa1, 0x77, 0x90, 0x35, 0xf4,
6076 0x06, 0x64, 0x0c, 0x3a, 0x84, 0xa5, 0xe0, 0x72, 0xf8, 0x6e, 0xcb, 0xa4, 0xb1, 0x73, 0x20, 0xe7,
6077 0xc2, 0xef, 0x40, 0x41, 0xd1, 0x40, 0x6f, 0xef, 0xcf, 0x1a, 0xe2, 0xd0, 0xb6, 0xb2, 0xda, 0xdc,
6078 0x78, 0xc1, 0x2f, 0xf5, 0x65, 0x80, 0xb5, 0x86, 0xd7, 0x4e, 0xe1, 0x8f, 0xc5, 0x28, 0x91, 0xef,
6079 0x54, 0x7b, 0xb4, 0x24, 0x7b, 0x52, 0x17, 0xb2, 0xe7, 0x14, 0x4a, 0x62, 0xfa, 0xe3, 0xa6, 0x6f,
6080 0x26, 0x2f, 0x21, 0x7d, 0x2b, 0xc6, 0xeb, 0x82, 0x11, 0x4f, 0x43, 0x49, 0x24, 0x74, 0xb1, 0xff,
6081 0x7e, 0xa1, 0x41, 0x59, 0x52, 0xc6, 0x05, 0x5f, 0x25, 0x6e, 0xc4, 0x2b, 0x80, 0x87, 0x1a, 0x5d,
6082 0x81, 0x6c, 0xfb, 0x70, 0xaf, 0xf3, 0x5a, 0x02, 0xe5, 0xa2, 0x45, 0xe9, 0x5d, 0xae, 0x87, 0xbf,
6083 0x56, 0x89, 0x16, 0xba, 0xce, 0x1f, 0xb2, 0x36, 0xcc, 0x36, 0x39, 0x65, 0x67, 0xca, 0x49, 0xdd,
6084 0x27, 0xb0, 0x0b, 0xb5, 0x78, 0xd5, 0x62, 0x07, 0x49, 0xf5, 0x95, 0x6b, 0x06, 0x2e, 0xad, 0x0c,
6085 0xdc, 0xe3, 0x86, 0x69, 0x1c, 0x76, 0x65, 0xc6, 0xa2, 0x65, 0x96, 0x12, 0xd7, 0x3a, 0x8e, 0x4a,
6086 0x6d, 0xc0, 0x0c, 0xa5, 0x12, 0xd3, 0xed, 0xb4, 0x94, 0xf4, 0x26, 0x8b, 0x98, 0x16, 0x2a, 0x62,
6087 0x86, 0xe3, 0xbc, 0xb2, 0xec, 0xb6, 0x98, 0x9a, 0xd7, 0xc6, 0x6b, 0x5c, 0xf8, 0xbe, 0x13, 0x28,
6088 0x53, 0xdf, 0x56, 0xca, 0xa2, 0x2f, 0xe5, 0x19, 0x71, 0x47, 0x48, 0xc1, 0x8f, 0xe0, 0xb2, 0xe4,
6089 0x14, 0xc0, 0xe4, 0x08, 0xe6, 0x1d, 0xb8, 0x21, 0x99, 0x57, 0x8f, 0xe9, 0x45, 0x6d, 0x57, 0x28,
6090 0xfc, 0xae, 0x76, 0x3e, 0x85, 0xaa, 0x67, 0x27, 0x3b, 0x2c, 0x5b, 0x5d, 0xd5, 0x80, 0x81, 0x23,
6091 0xf6, 0x4c, 0x5e, 0x67, 0xdf, 0x94, 0x66, 0x5b, 0x5d, 0xef, 0x48, 0x40, 0xbf, 0xf1, 0x2a, 0xcc,
6092 0x49, 0x19, 0xe2, 0x18, 0x1b, 0x14, 0x12, 0x31, 0x28, 0x4e, 0x88, 0x70, 0x18, 0x1d, 0x3a, 0xda,
6093 0xed, 0x2a, 0x67, 0xd0, 0xb5, 0x4c, 0xa6, 0xa6, 0xc8, 0xbc, 0xcc, 0x77, 0x04, 0x35, 0x4c, 0xad,
6094 0x18, 0x82, 0x4c, 0x05, 0xa8, 0x64, 0xb1, 0x10, 0x94, 0x1c, 0x59, 0x88, 0x88, 0xe8, 0x4f, 0x60,
6095 0xde, 0x33, 0x82, 0xfa, 0x6d, 0x97, 0xd8, 0xbd, 0x8e, 0xe3, 0x28, 0x50, 0x56, 0xdc, 0xc4, 0xef,
6096 0xc1, 0x64, 0x9f, 0x88, 0x9c, 0x52, 0x58, 0x46, 0x4b, 0xfc, 0xed, 0x79, 0x49, 0x19, 0xcc, 0xfa,
6097 0x71, 0x1b, 0x6e, 0x4a, 0xe9, 0xdc, 0xa3, 0xb1, 0xe2, 0xc3, 0x46, 0xc9, 0x0b, 0x3e, 0x77, 0x6b,
6098 0xf4, 0x82, 0x9f, 0xe6, 0x6b, 0xef, 0xc1, 0xab, 0x1f, 0x70, 0x47, 0xca, 0xd8, 0x1a, 0xab, 0x56,
6099 0x6c, 0x72, 0x9f, 0x7a, 0x21, 0x39, 0x96, 0xb0, 0x43, 0x98, 0x0d, 0x46, 0xf2, 0x58, 0x69, 0x6c,
6100 0x16, 0x32, 0xae, 0x75, 0x42, 0x64, 0x12, 0xe3, 0x0d, 0x69, 0xb0, 0x17, 0xe6, 0x63, 0x19, 0x6c,
6101 0xf8, 0xc2, 0xd8, 0x96, 0x1c, 0xd7, 0x5e, 0xba, 0x9a, 0xf2, 0xf0, 0xc5, 0x1b, 0x78, 0x1b, 0xae,
6102 0x84, 0xd3, 0xc4, 0x58, 0x26, 0xbf, 0xe0, 0x1b, 0x38, 0x2e, 0x93, 0x8c, 0x25, 0xf7, 0x43, 0x3f,
6103 0x19, 0x28, 0x09, 0x65, 0x2c, 0x91, 0x3a, 0xd4, 0xe2, 0xf2, 0xcb, 0xf7, 0xb1, 0x5f, 0xbd, 0x74,
6104 0x33, 0x96, 0x30, 0xc7, 0x17, 0x36, 0xfe, 0xf2, 0xfb, 0x39, 0x22, 0x3d, 0x32, 0x47, 0x88, 0x20,
6105 0xf1, 0xb3, 0xd8, 0x0f, 0xb0, 0xe9, 0x84, 0x0e, 0x3f, 0x81, 0x8e, 0xab, 0x83, 0xd6, 0x10, 0x4f,
6106 0x07, 0x6b, 0xc8, 0x8d, 0xad, 0xa6, 0xdd, 0xb1, 0x16, 0xe3, 0x23, 0x3f, 0x77, 0x46, 0x32, 0xf3,
6107 0x58, 0x82, 0x3f, 0x86, 0x85, 0xe4, 0xa4, 0x3c, 0x8e, 0xe4, 0x87, 0x75, 0xc8, 0x7b, 0x07, 0x4a,
6108 0xe5, 0x77, 0x1b, 0x05, 0xc8, 0x6d, 0xef, 0xec, 0xed, 0xae, 0xac, 0x36, 0xf8, 0x0f, 0x37, 0x56,
6109 0x77, 0x74, 0x7d, 0x7f, 0xb7, 0x59, 0x49, 0x2d, 0xff, 0x29, 0x0d, 0xa9, 0xcd, 0x17, 0xe8, 0x1f,
6110 0x21, 0xc3, 0x5f, 0x31, 0x47, 0x3c, 0x5d, 0xd7, 0x46, 0x3d, 0xd4, 0xe2, 0x6b, 0x9f, 0xfd, 0xe6,
6111 0xf7, 0x5f, 0xa6, 0x2e, 0xe3, 0x4a, 0x7d, 0xf8, 0xf6, 0x21, 0x71, 0x8d, 0xfa, 0xc9, 0xb0, 0xce,
6112 0xea, 0xc3, 0x13, 0xed, 0x21, 0xda, 0x87, 0xf4, 0xee, 0xc0, 0x45, 0x89, 0xcf, 0xda, 0xb5, 0xe4,
6113 0xf7, 0x5b, 0x3c, 0xc7, 0x04, 0xcf, 0xe0, 0xb2, 0x22, 0xb8, 0x3f, 0x70, 0xa9, 0xd8, 0x01, 0x14,
6114 0xd4, 0x17, 0xd8, 0x73, 0xdf, 0xbb, 0x6b, 0xe7, 0xbf, 0xee, 0xe2, 0x5b, 0x4c, 0xdd, 0x35, 0x7c,
6115 0x45, 0x51, 0xc7, 0xdf, 0x89, 0xd5, 0xd9, 0x34, 0x4f, 0x4d, 0x94, 0xf8, 0x22, 0x5e, 0x4b, 0x7e,
6116 0xf4, 0x8d, 0x9d, 0x8d, 0x7b, 0x6a, 0x52, 0xb1, 0xa6, 0x78, 0xf3, 0x6d, 0xb9, 0xe8, 0x66, 0xcc,
6117 0x9b, 0x9f, 0xfa, 0xba, 0x55, 0x5b, 0x48, 0x66, 0x10, 0x8a, 0x16, 0x98, 0xa2, 0x1a, 0xbe, 0xac,
6118 0x28, 0x6a, 0x79, 0x6c, 0x4f, 0xb4, 0x87, 0xcb, 0x47, 0x90, 0x61, 0xe8, 0x31, 0xfa, 0x27, 0xf9,
6119 0x51, 0x8b, 0x81, 0xd1, 0x13, 0x16, 0x3f, 0x80, 0x3b, 0xe3, 0x2a, 0x53, 0x86, 0x70, 0x49, 0x2a,
6120 0x63, 0xf8, 0xf1, 0x13, 0xed, 0xe1, 0xa2, 0xf6, 0xa6, 0xb6, 0xfc, 0xc7, 0x49, 0xc8, 0x30, 0xb8,
6121 0x08, 0x59, 0x00, 0x3e, 0x9a, 0x1a, 0x9e, 0x65, 0x04, 0x9f, 0x0d, 0xcf, 0x32, 0x0a, 0xc4, 0xe2,
6122 0x79, 0xa6, 0xb8, 0x8a, 0x67, 0xa4, 0x62, 0x86, 0x44, 0xd5, 0x19, 0xb8, 0x46, 0x7d, 0x3a, 0x14,
6123 0x80, 0x19, 0x0f, 0x33, 0x14, 0x27, 0x30, 0x80, 0xaa, 0x86, 0x77, 0x48, 0x0c, 0xa2, 0x8a, 0x31,
6124 0xd3, 0x79, 0x1d, 0x5f, 0x55, 0x3c, 0xcb, 0xd5, 0xda, 0x8c, 0x91, 0xea, 0xfd, 0x0f, 0x0d, 0xca,
6125 0x41, 0x5c, 0x14, 0xdd, 0x8e, 0x91, 0x1c, 0x86, 0x57, 0x6b, 0x77, 0x46, 0x33, 0x25, 0x59, 0xc0,
6126 0xd5, 0x9f, 0x10, 0xd2, 0x37, 0x28, 0xa3, 0x70, 0x3c, 0xfa, 0x42, 0x83, 0xe9, 0x10, 0xd8, 0x89,
6127 0xe2, 0x34, 0x44, 0xa0, 0xd4, 0xda, 0xdd, 0x73, 0xb8, 0x84, 0x21, 0xf7, 0x98, 0x21, 0x0b, 0xf8,
6128 0x5a, 0xc4, 0x15, 0x6e, 0xa7, 0x47, 0x5c, 0x4b, 0x18, 0xe3, 0x2d, 0x03, 0x07, 0x26, 0x63, 0x97,
6129 0x21, 0x00, 0x74, 0xc6, 0x2e, 0x43, 0x10, 0xd5, 0x1c, 0xb1, 0x0c, 0x1c, 0x8d, 0xa4, 0x5b, 0xfc,
6130 0xcf, 0x69, 0xc8, 0xad, 0xf2, 0x5f, 0x4f, 0x22, 0x07, 0xf2, 0x1e, 0x02, 0x88, 0xe6, 0xe3, 0xd0,
6131 0x18, 0xff, 0xb6, 0x50, 0xbb, 0x99, 0xd8, 0x2f, 0xb4, 0xdf, 0x65, 0xda, 0x6f, 0xe2, 0x9a, 0xd4,
6132 0x2e, 0x7e, 0xa4, 0x59, 0xe7, 0xd7, 0xfe, 0xba, 0xd1, 0x6e, 0xd3, 0x89, 0xff, 0x3b, 0x14, 0x55,
6133 0x98, 0x0e, 0xdd, 0x8a, 0x45, 0x81, 0x54, 0xa4, 0xaf, 0x86, 0x47, 0xb1, 0x08, 0xed, 0x8b, 0x4c,
6134 0x3b, 0xc6, 0x37, 0x12, 0xb4, 0xdb, 0x8c, 0x3d, 0x60, 0x00, 0x87, 0xd9, 0xe2, 0x0d, 0x08, 0xa0,
6135 0x78, 0xf1, 0x06, 0x04, 0x51, 0xba, 0x73, 0x0d, 0x18, 0x30, 0x76, 0x6a, 0xc0, 0x2b, 0x00, 0x1f,
6136 0x54, 0x43, 0xb1, 0x7e, 0x55, 0xae, 0x4e, 0xe1, 0x90, 0x8f, 0xe2, 0x71, 0xd1, 0x3d, 0x17, 0x52,
6137 0xdd, 0xed, 0x38, 0x34, 0xf4, 0x97, 0xbf, 0xca, 0x42, 0xe1, 0xb9, 0xd1, 0x31, 0x5d, 0x62, 0x1a,
6138 0x66, 0x8b, 0xa0, 0x97, 0x90, 0x61, 0xa5, 0x31, 0x9c, 0xe5, 0x54, 0xac, 0x29, 0x9c, 0xe5, 0x02,
6139 0x40, 0x0c, 0xbe, 0xc3, 0x34, 0xcf, 0xe3, 0x39, 0xa9, 0xb9, 0xe7, 0x8b, 0xaf, 0x33, 0x0c, 0x85,
6140 0x4e, 0xf8, 0x9f, 0x21, 0x2b, 0xe0, 0xf9, 0x90, 0xb0, 0x00, 0xb6, 0x52, 0xbb, 0x1e, 0xdf, 0x99,
6141 0xb4, 0xbd, 0x54, 0x55, 0x0e, 0xe3, 0xa5, 0xba, 0x5e, 0x03, 0xf8, 0x00, 0x61, 0xd8, 0xb9, 0x11,
6142 0x3c, 0xb1, 0xb6, 0x90, 0xcc, 0x20, 0xf4, 0x3e, 0x60, 0x7a, 0x6f, 0xe3, 0xf9, 0x38, 0xbd, 0x6d,
6143 0x8f, 0x9f, 0xea, 0x3e, 0x84, 0xc9, 0x75, 0xc3, 0x39, 0x46, 0xa1, 0x62, 0xa7, 0xfc, 0xe0, 0xa1,
6144 0x56, 0x8b, 0xeb, 0x12, 0x9a, 0x6e, 0x33, 0x4d, 0x37, 0x70, 0x35, 0x4e, 0xd3, 0xb1, 0xe1, 0xd0,
6145 0xea, 0x81, 0x8e, 0x21, 0xcb, 0x7f, 0x03, 0x11, 0xf6, 0x65, 0xe0, 0x77, 0x14, 0x61, 0x5f, 0x06,
6146 0x7f, 0x36, 0x71, 0x31, 0x4d, 0x2e, 0x4c, 0xc9, 0x1f, 0x1e, 0xa0, 0x1b, 0xa1, 0xa5, 0x09, 0xfe,
6147 0x48, 0xa1, 0x36, 0x9f, 0xd4, 0x2d, 0xf4, 0xdd, 0x67, 0xfa, 0x6e, 0xe1, 0xeb, 0xb1, 0x6b, 0x27,
6148 0xb8, 0x9f, 0x68, 0x0f, 0xdf, 0xd4, 0x68, 0x99, 0x00, 0x1f, 0x64, 0x8d, 0x44, 0x47, 0x18, 0xaf,
6149 0x8d, 0x44, 0x47, 0x04, 0x9f, 0xc5, 0xcb, 0x4c, 0xf9, 0x63, 0x7c, 0x3f, 0x4e, 0xb9, 0x6b, 0x1b,
6150 0xa6, 0xf3, 0x92, 0xd8, 0x6f, 0x70, 0x30, 0xcd, 0x39, 0xee, 0xf4, 0x69, 0xa4, 0xfc, 0x65, 0x1a,
6151 0x26, 0xe9, 0x79, 0x94, 0x96, 0x67, 0xff, 0x1a, 0x1f, 0xb6, 0x26, 0x02, 0x9e, 0x85, 0xad, 0x89,
6152 0x22, 0x00, 0xd1, 0xf2, 0xcc, 0x7e, 0x27, 0x4f, 0x18, 0x13, 0xf5, 0xba, 0x03, 0x05, 0xe5, 0xae,
6153 0x8f, 0x62, 0x04, 0x06, 0x91, 0xb9, 0x70, 0x5d, 0x88, 0x01, 0x0a, 0xf0, 0x4d, 0xa6, 0x73, 0x0e,
6154 0xcf, 0x06, 0x74, 0xb6, 0x39, 0x17, 0x55, 0xfa, 0xaf, 0x50, 0x54, 0x31, 0x01, 0x14, 0x23, 0x33,
6155 0x84, 0xfc, 0x85, 0x53, 0x62, 0x1c, 0xa4, 0x10, 0xcd, 0x0e, 0xde, 0xff, 0x09, 0x90, 0xac, 0x54,
6156 0x79, 0x1f, 0x72, 0x02, 0x28, 0x88, 0x9b, 0x6d, 0x10, 0x2a, 0x8c, 0x9b, 0x6d, 0x08, 0x65, 0x88,
6157 0x1e, 0xf3, 0x98, 0x56, 0x7a, 0x1f, 0x92, 0x25, 0x48, 0x68, 0x7c, 0x46, 0xdc, 0x24, 0x8d, 0x3e,
6158 0xf6, 0x95, 0xa4, 0x51, 0xb9, 0x8b, 0x8e, 0xd2, 0x78, 0x44, 0x5c, 0x11, 0x4b, 0xf2, 0x9e, 0x87,
6159 0x12, 0x04, 0xaa, 0x29, 0x1f, 0x8f, 0x62, 0x49, 0x3a, 0x95, 0xfb, 0x4a, 0x45, 0xbe, 0x47, 0x9f,
6160 0x02, 0xf8, 0x90, 0x46, 0xf8, 0xb4, 0x15, 0x8b, 0x8b, 0x86, 0x4f, 0x5b, 0xf1, 0xa8, 0x48, 0x34,
6161 0x7f, 0xf8, 0xba, 0xf9, 0xc5, 0x80, 0x6a, 0xff, 0x1f, 0x0d, 0x50, 0x14, 0x01, 0x41, 0x8f, 0xe2,
6162 0x35, 0xc4, 0x22, 0xae, 0xb5, 0xc7, 0x17, 0x63, 0x4e, 0x2a, 0x11, 0xbe, 0x59, 0x2d, 0x36, 0xa2,
6163 0xff, 0x8a, 0x1a, 0xf6, 0xb9, 0x06, 0xa5, 0x00, 0x84, 0x82, 0xee, 0x25, 0xac, 0x71, 0x08, 0xb4,
6164 0xad, 0xdd, 0x3f, 0x97, 0x2f, 0xe9, 0x24, 0xa6, 0xec, 0x08, 0x79, 0x10, 0xff, 0x2f, 0x0d, 0xca,
6165 0x41, 0xd8, 0x05, 0x25, 0xc8, 0x8f, 0x00, 0xbf, 0xb5, 0xc5, 0xf3, 0x19, 0xcf, 0x5f, 0x2a, 0xff,
6166 0x6c, 0xde, 0x87, 0x9c, 0x00, 0x6b, 0xe2, 0x02, 0x22, 0x08, 0x1b, 0xc7, 0x05, 0x44, 0x08, 0xe9,
6167 0x49, 0x08, 0x08, 0xdb, 0xea, 0x12, 0x25, 0x04, 0x05, 0xa2, 0x93, 0xa4, 0x71, 0x74, 0x08, 0x86,
6168 0xe0, 0xa0, 0x51, 0x1a, 0xfd, 0x10, 0x94, 0x70, 0x0e, 0x4a, 0x10, 0x78, 0x4e, 0x08, 0x86, 0xd1,
6169 0xa0, 0x84, 0x10, 0x64, 0x4a, 0x95, 0x10, 0xf4, 0xc1, 0x97, 0xb8, 0x10, 0x8c, 0x20, 0xe2, 0x71,
6170 0x21, 0x18, 0xc5, 0x6f, 0x12, 0xd6, 0x95, 0xe9, 0x0e, 0x84, 0xe0, 0x4c, 0x0c, 0x56, 0x83, 0x1e,
6171 0x27, 0x38, 0x34, 0x16, 0x6c, 0xaf, 0xbd, 0x71, 0x41, 0xee, 0x91, 0x7b, 0x9f, 0x2f, 0x85, 0xdc,
6172 0xfb, 0xff, 0xaf, 0xc1, 0x6c, 0x1c, 0xd6, 0x83, 0x12, 0x74, 0x25, 0x00, 0xf5, 0xb5, 0xa5, 0x8b,
6173 0xb2, 0x9f, 0xef, 0x35, 0x2f, 0x1a, 0x9e, 0x56, 0x7e, 0xfe, 0xcd, 0xbc, 0xf6, 0xab, 0x6f, 0xe6,
6174 0xb5, 0xdf, 0x7e, 0x33, 0xaf, 0xfd, 0xef, 0xef, 0xe6, 0x27, 0x0e, 0xb3, 0xec, 0x7f, 0xa7, 0xbd,
6175 0xfd, 0xd7, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc8, 0x77, 0x6b, 0x63, 0x24, 0x37, 0x00, 0x00,
divyadesai81bb7ba2020-03-11 11:45:23 +00006176}
6177
6178// Reference imports to suppress errors if they are not otherwise used.
6179var _ context.Context
6180var _ grpc.ClientConn
6181
6182// This is a compile-time assertion to ensure that this generated file
6183// is compatible with the grpc package it is being compiled against.
6184const _ = grpc.SupportPackageIsVersion4
6185
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006186// KVClient is the client API for KV service.
6187//
6188// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
divyadesai81bb7ba2020-03-11 11:45:23 +00006189type KVClient interface {
6190 // Range gets the keys in the range from the key-value store.
6191 Range(ctx context.Context, in *RangeRequest, opts ...grpc.CallOption) (*RangeResponse, error)
6192 // Put puts the given key into the key-value store.
6193 // A put request increments the revision of the key-value store
6194 // and generates one event in the event history.
6195 Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error)
6196 // DeleteRange deletes the given range from the key-value store.
6197 // A delete request increments the revision of the key-value store
6198 // and generates a delete event in the event history for every deleted key.
6199 DeleteRange(ctx context.Context, in *DeleteRangeRequest, opts ...grpc.CallOption) (*DeleteRangeResponse, error)
6200 // Txn processes multiple requests in a single transaction.
6201 // A txn request increments the revision of the key-value store
6202 // and generates events with the same revision for every completed request.
6203 // It is not allowed to modify the same key several times within one txn.
6204 Txn(ctx context.Context, in *TxnRequest, opts ...grpc.CallOption) (*TxnResponse, error)
6205 // Compact compacts the event history in the etcd key-value store. The key-value
6206 // store should be periodically compacted or the event history will continue to grow
6207 // indefinitely.
6208 Compact(ctx context.Context, in *CompactionRequest, opts ...grpc.CallOption) (*CompactionResponse, error)
6209}
6210
6211type kVClient struct {
6212 cc *grpc.ClientConn
6213}
6214
6215func NewKVClient(cc *grpc.ClientConn) KVClient {
6216 return &kVClient{cc}
6217}
6218
6219func (c *kVClient) Range(ctx context.Context, in *RangeRequest, opts ...grpc.CallOption) (*RangeResponse, error) {
6220 out := new(RangeResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006221 err := c.cc.Invoke(ctx, "/etcdserverpb.KV/Range", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00006222 if err != nil {
6223 return nil, err
6224 }
6225 return out, nil
6226}
6227
6228func (c *kVClient) Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error) {
6229 out := new(PutResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006230 err := c.cc.Invoke(ctx, "/etcdserverpb.KV/Put", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00006231 if err != nil {
6232 return nil, err
6233 }
6234 return out, nil
6235}
6236
6237func (c *kVClient) DeleteRange(ctx context.Context, in *DeleteRangeRequest, opts ...grpc.CallOption) (*DeleteRangeResponse, error) {
6238 out := new(DeleteRangeResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006239 err := c.cc.Invoke(ctx, "/etcdserverpb.KV/DeleteRange", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00006240 if err != nil {
6241 return nil, err
6242 }
6243 return out, nil
6244}
6245
6246func (c *kVClient) Txn(ctx context.Context, in *TxnRequest, opts ...grpc.CallOption) (*TxnResponse, error) {
6247 out := new(TxnResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006248 err := c.cc.Invoke(ctx, "/etcdserverpb.KV/Txn", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00006249 if err != nil {
6250 return nil, err
6251 }
6252 return out, nil
6253}
6254
6255func (c *kVClient) Compact(ctx context.Context, in *CompactionRequest, opts ...grpc.CallOption) (*CompactionResponse, error) {
6256 out := new(CompactionResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006257 err := c.cc.Invoke(ctx, "/etcdserverpb.KV/Compact", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00006258 if err != nil {
6259 return nil, err
6260 }
6261 return out, nil
6262}
6263
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006264// KVServer is the server API for KV service.
divyadesai81bb7ba2020-03-11 11:45:23 +00006265type KVServer interface {
6266 // Range gets the keys in the range from the key-value store.
6267 Range(context.Context, *RangeRequest) (*RangeResponse, error)
6268 // Put puts the given key into the key-value store.
6269 // A put request increments the revision of the key-value store
6270 // and generates one event in the event history.
6271 Put(context.Context, *PutRequest) (*PutResponse, error)
6272 // DeleteRange deletes the given range from the key-value store.
6273 // A delete request increments the revision of the key-value store
6274 // and generates a delete event in the event history for every deleted key.
6275 DeleteRange(context.Context, *DeleteRangeRequest) (*DeleteRangeResponse, error)
6276 // Txn processes multiple requests in a single transaction.
6277 // A txn request increments the revision of the key-value store
6278 // and generates events with the same revision for every completed request.
6279 // It is not allowed to modify the same key several times within one txn.
6280 Txn(context.Context, *TxnRequest) (*TxnResponse, error)
6281 // Compact compacts the event history in the etcd key-value store. The key-value
6282 // store should be periodically compacted or the event history will continue to grow
6283 // indefinitely.
6284 Compact(context.Context, *CompactionRequest) (*CompactionResponse, error)
6285}
6286
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006287// UnimplementedKVServer can be embedded to have forward compatible implementations.
6288type UnimplementedKVServer struct {
6289}
6290
6291func (*UnimplementedKVServer) Range(ctx context.Context, req *RangeRequest) (*RangeResponse, error) {
6292 return nil, status.Errorf(codes.Unimplemented, "method Range not implemented")
6293}
6294func (*UnimplementedKVServer) Put(ctx context.Context, req *PutRequest) (*PutResponse, error) {
6295 return nil, status.Errorf(codes.Unimplemented, "method Put not implemented")
6296}
6297func (*UnimplementedKVServer) DeleteRange(ctx context.Context, req *DeleteRangeRequest) (*DeleteRangeResponse, error) {
6298 return nil, status.Errorf(codes.Unimplemented, "method DeleteRange not implemented")
6299}
6300func (*UnimplementedKVServer) Txn(ctx context.Context, req *TxnRequest) (*TxnResponse, error) {
6301 return nil, status.Errorf(codes.Unimplemented, "method Txn not implemented")
6302}
6303func (*UnimplementedKVServer) Compact(ctx context.Context, req *CompactionRequest) (*CompactionResponse, error) {
6304 return nil, status.Errorf(codes.Unimplemented, "method Compact not implemented")
6305}
6306
divyadesai81bb7ba2020-03-11 11:45:23 +00006307func RegisterKVServer(s *grpc.Server, srv KVServer) {
6308 s.RegisterService(&_KV_serviceDesc, srv)
6309}
6310
6311func _KV_Range_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
6312 in := new(RangeRequest)
6313 if err := dec(in); err != nil {
6314 return nil, err
6315 }
6316 if interceptor == nil {
6317 return srv.(KVServer).Range(ctx, in)
6318 }
6319 info := &grpc.UnaryServerInfo{
6320 Server: srv,
6321 FullMethod: "/etcdserverpb.KV/Range",
6322 }
6323 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
6324 return srv.(KVServer).Range(ctx, req.(*RangeRequest))
6325 }
6326 return interceptor(ctx, in, info, handler)
6327}
6328
6329func _KV_Put_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
6330 in := new(PutRequest)
6331 if err := dec(in); err != nil {
6332 return nil, err
6333 }
6334 if interceptor == nil {
6335 return srv.(KVServer).Put(ctx, in)
6336 }
6337 info := &grpc.UnaryServerInfo{
6338 Server: srv,
6339 FullMethod: "/etcdserverpb.KV/Put",
6340 }
6341 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
6342 return srv.(KVServer).Put(ctx, req.(*PutRequest))
6343 }
6344 return interceptor(ctx, in, info, handler)
6345}
6346
6347func _KV_DeleteRange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
6348 in := new(DeleteRangeRequest)
6349 if err := dec(in); err != nil {
6350 return nil, err
6351 }
6352 if interceptor == nil {
6353 return srv.(KVServer).DeleteRange(ctx, in)
6354 }
6355 info := &grpc.UnaryServerInfo{
6356 Server: srv,
6357 FullMethod: "/etcdserverpb.KV/DeleteRange",
6358 }
6359 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
6360 return srv.(KVServer).DeleteRange(ctx, req.(*DeleteRangeRequest))
6361 }
6362 return interceptor(ctx, in, info, handler)
6363}
6364
6365func _KV_Txn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
6366 in := new(TxnRequest)
6367 if err := dec(in); err != nil {
6368 return nil, err
6369 }
6370 if interceptor == nil {
6371 return srv.(KVServer).Txn(ctx, in)
6372 }
6373 info := &grpc.UnaryServerInfo{
6374 Server: srv,
6375 FullMethod: "/etcdserverpb.KV/Txn",
6376 }
6377 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
6378 return srv.(KVServer).Txn(ctx, req.(*TxnRequest))
6379 }
6380 return interceptor(ctx, in, info, handler)
6381}
6382
6383func _KV_Compact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
6384 in := new(CompactionRequest)
6385 if err := dec(in); err != nil {
6386 return nil, err
6387 }
6388 if interceptor == nil {
6389 return srv.(KVServer).Compact(ctx, in)
6390 }
6391 info := &grpc.UnaryServerInfo{
6392 Server: srv,
6393 FullMethod: "/etcdserverpb.KV/Compact",
6394 }
6395 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
6396 return srv.(KVServer).Compact(ctx, req.(*CompactionRequest))
6397 }
6398 return interceptor(ctx, in, info, handler)
6399}
6400
6401var _KV_serviceDesc = grpc.ServiceDesc{
6402 ServiceName: "etcdserverpb.KV",
6403 HandlerType: (*KVServer)(nil),
6404 Methods: []grpc.MethodDesc{
6405 {
6406 MethodName: "Range",
6407 Handler: _KV_Range_Handler,
6408 },
6409 {
6410 MethodName: "Put",
6411 Handler: _KV_Put_Handler,
6412 },
6413 {
6414 MethodName: "DeleteRange",
6415 Handler: _KV_DeleteRange_Handler,
6416 },
6417 {
6418 MethodName: "Txn",
6419 Handler: _KV_Txn_Handler,
6420 },
6421 {
6422 MethodName: "Compact",
6423 Handler: _KV_Compact_Handler,
6424 },
6425 },
6426 Streams: []grpc.StreamDesc{},
6427 Metadata: "rpc.proto",
6428}
6429
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006430// WatchClient is the client API for Watch service.
6431//
6432// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
divyadesai81bb7ba2020-03-11 11:45:23 +00006433type WatchClient interface {
6434 // Watch watches for events happening or that have happened. Both input and output
6435 // are streams; the input stream is for creating and canceling watchers and the output
6436 // stream sends events. One watch RPC can watch on multiple key ranges, streaming events
6437 // for several watches at once. The entire event history can be watched starting from the
6438 // last compaction revision.
6439 Watch(ctx context.Context, opts ...grpc.CallOption) (Watch_WatchClient, error)
6440}
6441
6442type watchClient struct {
6443 cc *grpc.ClientConn
6444}
6445
6446func NewWatchClient(cc *grpc.ClientConn) WatchClient {
6447 return &watchClient{cc}
6448}
6449
6450func (c *watchClient) Watch(ctx context.Context, opts ...grpc.CallOption) (Watch_WatchClient, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006451 stream, err := c.cc.NewStream(ctx, &_Watch_serviceDesc.Streams[0], "/etcdserverpb.Watch/Watch", opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00006452 if err != nil {
6453 return nil, err
6454 }
6455 x := &watchWatchClient{stream}
6456 return x, nil
6457}
6458
6459type Watch_WatchClient interface {
6460 Send(*WatchRequest) error
6461 Recv() (*WatchResponse, error)
6462 grpc.ClientStream
6463}
6464
6465type watchWatchClient struct {
6466 grpc.ClientStream
6467}
6468
6469func (x *watchWatchClient) Send(m *WatchRequest) error {
6470 return x.ClientStream.SendMsg(m)
6471}
6472
6473func (x *watchWatchClient) Recv() (*WatchResponse, error) {
6474 m := new(WatchResponse)
6475 if err := x.ClientStream.RecvMsg(m); err != nil {
6476 return nil, err
6477 }
6478 return m, nil
6479}
6480
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006481// WatchServer is the server API for Watch service.
divyadesai81bb7ba2020-03-11 11:45:23 +00006482type WatchServer interface {
6483 // Watch watches for events happening or that have happened. Both input and output
6484 // are streams; the input stream is for creating and canceling watchers and the output
6485 // stream sends events. One watch RPC can watch on multiple key ranges, streaming events
6486 // for several watches at once. The entire event history can be watched starting from the
6487 // last compaction revision.
6488 Watch(Watch_WatchServer) error
6489}
6490
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006491// UnimplementedWatchServer can be embedded to have forward compatible implementations.
6492type UnimplementedWatchServer struct {
6493}
6494
6495func (*UnimplementedWatchServer) Watch(srv Watch_WatchServer) error {
6496 return status.Errorf(codes.Unimplemented, "method Watch not implemented")
6497}
6498
divyadesai81bb7ba2020-03-11 11:45:23 +00006499func RegisterWatchServer(s *grpc.Server, srv WatchServer) {
6500 s.RegisterService(&_Watch_serviceDesc, srv)
6501}
6502
6503func _Watch_Watch_Handler(srv interface{}, stream grpc.ServerStream) error {
6504 return srv.(WatchServer).Watch(&watchWatchServer{stream})
6505}
6506
6507type Watch_WatchServer interface {
6508 Send(*WatchResponse) error
6509 Recv() (*WatchRequest, error)
6510 grpc.ServerStream
6511}
6512
6513type watchWatchServer struct {
6514 grpc.ServerStream
6515}
6516
6517func (x *watchWatchServer) Send(m *WatchResponse) error {
6518 return x.ServerStream.SendMsg(m)
6519}
6520
6521func (x *watchWatchServer) Recv() (*WatchRequest, error) {
6522 m := new(WatchRequest)
6523 if err := x.ServerStream.RecvMsg(m); err != nil {
6524 return nil, err
6525 }
6526 return m, nil
6527}
6528
6529var _Watch_serviceDesc = grpc.ServiceDesc{
6530 ServiceName: "etcdserverpb.Watch",
6531 HandlerType: (*WatchServer)(nil),
6532 Methods: []grpc.MethodDesc{},
6533 Streams: []grpc.StreamDesc{
6534 {
6535 StreamName: "Watch",
6536 Handler: _Watch_Watch_Handler,
6537 ServerStreams: true,
6538 ClientStreams: true,
6539 },
6540 },
6541 Metadata: "rpc.proto",
6542}
6543
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006544// LeaseClient is the client API for Lease service.
6545//
6546// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
divyadesai81bb7ba2020-03-11 11:45:23 +00006547type LeaseClient interface {
6548 // LeaseGrant creates a lease which expires if the server does not receive a keepAlive
6549 // within a given time to live period. All keys attached to the lease will be expired and
6550 // deleted if the lease expires. Each expired key generates a delete event in the event history.
6551 LeaseGrant(ctx context.Context, in *LeaseGrantRequest, opts ...grpc.CallOption) (*LeaseGrantResponse, error)
6552 // LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted.
6553 LeaseRevoke(ctx context.Context, in *LeaseRevokeRequest, opts ...grpc.CallOption) (*LeaseRevokeResponse, error)
6554 // LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client
6555 // to the server and streaming keep alive responses from the server to the client.
6556 LeaseKeepAlive(ctx context.Context, opts ...grpc.CallOption) (Lease_LeaseKeepAliveClient, error)
6557 // LeaseTimeToLive retrieves lease information.
6558 LeaseTimeToLive(ctx context.Context, in *LeaseTimeToLiveRequest, opts ...grpc.CallOption) (*LeaseTimeToLiveResponse, error)
6559 // LeaseLeases lists all existing leases.
6560 LeaseLeases(ctx context.Context, in *LeaseLeasesRequest, opts ...grpc.CallOption) (*LeaseLeasesResponse, error)
6561}
6562
6563type leaseClient struct {
6564 cc *grpc.ClientConn
6565}
6566
6567func NewLeaseClient(cc *grpc.ClientConn) LeaseClient {
6568 return &leaseClient{cc}
6569}
6570
6571func (c *leaseClient) LeaseGrant(ctx context.Context, in *LeaseGrantRequest, opts ...grpc.CallOption) (*LeaseGrantResponse, error) {
6572 out := new(LeaseGrantResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006573 err := c.cc.Invoke(ctx, "/etcdserverpb.Lease/LeaseGrant", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00006574 if err != nil {
6575 return nil, err
6576 }
6577 return out, nil
6578}
6579
6580func (c *leaseClient) LeaseRevoke(ctx context.Context, in *LeaseRevokeRequest, opts ...grpc.CallOption) (*LeaseRevokeResponse, error) {
6581 out := new(LeaseRevokeResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006582 err := c.cc.Invoke(ctx, "/etcdserverpb.Lease/LeaseRevoke", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00006583 if err != nil {
6584 return nil, err
6585 }
6586 return out, nil
6587}
6588
6589func (c *leaseClient) LeaseKeepAlive(ctx context.Context, opts ...grpc.CallOption) (Lease_LeaseKeepAliveClient, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006590 stream, err := c.cc.NewStream(ctx, &_Lease_serviceDesc.Streams[0], "/etcdserverpb.Lease/LeaseKeepAlive", opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00006591 if err != nil {
6592 return nil, err
6593 }
6594 x := &leaseLeaseKeepAliveClient{stream}
6595 return x, nil
6596}
6597
6598type Lease_LeaseKeepAliveClient interface {
6599 Send(*LeaseKeepAliveRequest) error
6600 Recv() (*LeaseKeepAliveResponse, error)
6601 grpc.ClientStream
6602}
6603
6604type leaseLeaseKeepAliveClient struct {
6605 grpc.ClientStream
6606}
6607
6608func (x *leaseLeaseKeepAliveClient) Send(m *LeaseKeepAliveRequest) error {
6609 return x.ClientStream.SendMsg(m)
6610}
6611
6612func (x *leaseLeaseKeepAliveClient) Recv() (*LeaseKeepAliveResponse, error) {
6613 m := new(LeaseKeepAliveResponse)
6614 if err := x.ClientStream.RecvMsg(m); err != nil {
6615 return nil, err
6616 }
6617 return m, nil
6618}
6619
6620func (c *leaseClient) LeaseTimeToLive(ctx context.Context, in *LeaseTimeToLiveRequest, opts ...grpc.CallOption) (*LeaseTimeToLiveResponse, error) {
6621 out := new(LeaseTimeToLiveResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006622 err := c.cc.Invoke(ctx, "/etcdserverpb.Lease/LeaseTimeToLive", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00006623 if err != nil {
6624 return nil, err
6625 }
6626 return out, nil
6627}
6628
6629func (c *leaseClient) LeaseLeases(ctx context.Context, in *LeaseLeasesRequest, opts ...grpc.CallOption) (*LeaseLeasesResponse, error) {
6630 out := new(LeaseLeasesResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006631 err := c.cc.Invoke(ctx, "/etcdserverpb.Lease/LeaseLeases", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00006632 if err != nil {
6633 return nil, err
6634 }
6635 return out, nil
6636}
6637
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006638// LeaseServer is the server API for Lease service.
divyadesai81bb7ba2020-03-11 11:45:23 +00006639type LeaseServer interface {
6640 // LeaseGrant creates a lease which expires if the server does not receive a keepAlive
6641 // within a given time to live period. All keys attached to the lease will be expired and
6642 // deleted if the lease expires. Each expired key generates a delete event in the event history.
6643 LeaseGrant(context.Context, *LeaseGrantRequest) (*LeaseGrantResponse, error)
6644 // LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted.
6645 LeaseRevoke(context.Context, *LeaseRevokeRequest) (*LeaseRevokeResponse, error)
6646 // LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client
6647 // to the server and streaming keep alive responses from the server to the client.
6648 LeaseKeepAlive(Lease_LeaseKeepAliveServer) error
6649 // LeaseTimeToLive retrieves lease information.
6650 LeaseTimeToLive(context.Context, *LeaseTimeToLiveRequest) (*LeaseTimeToLiveResponse, error)
6651 // LeaseLeases lists all existing leases.
6652 LeaseLeases(context.Context, *LeaseLeasesRequest) (*LeaseLeasesResponse, error)
6653}
6654
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006655// UnimplementedLeaseServer can be embedded to have forward compatible implementations.
6656type UnimplementedLeaseServer struct {
6657}
6658
6659func (*UnimplementedLeaseServer) LeaseGrant(ctx context.Context, req *LeaseGrantRequest) (*LeaseGrantResponse, error) {
6660 return nil, status.Errorf(codes.Unimplemented, "method LeaseGrant not implemented")
6661}
6662func (*UnimplementedLeaseServer) LeaseRevoke(ctx context.Context, req *LeaseRevokeRequest) (*LeaseRevokeResponse, error) {
6663 return nil, status.Errorf(codes.Unimplemented, "method LeaseRevoke not implemented")
6664}
6665func (*UnimplementedLeaseServer) LeaseKeepAlive(srv Lease_LeaseKeepAliveServer) error {
6666 return status.Errorf(codes.Unimplemented, "method LeaseKeepAlive not implemented")
6667}
6668func (*UnimplementedLeaseServer) LeaseTimeToLive(ctx context.Context, req *LeaseTimeToLiveRequest) (*LeaseTimeToLiveResponse, error) {
6669 return nil, status.Errorf(codes.Unimplemented, "method LeaseTimeToLive not implemented")
6670}
6671func (*UnimplementedLeaseServer) LeaseLeases(ctx context.Context, req *LeaseLeasesRequest) (*LeaseLeasesResponse, error) {
6672 return nil, status.Errorf(codes.Unimplemented, "method LeaseLeases not implemented")
6673}
6674
divyadesai81bb7ba2020-03-11 11:45:23 +00006675func RegisterLeaseServer(s *grpc.Server, srv LeaseServer) {
6676 s.RegisterService(&_Lease_serviceDesc, srv)
6677}
6678
6679func _Lease_LeaseGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
6680 in := new(LeaseGrantRequest)
6681 if err := dec(in); err != nil {
6682 return nil, err
6683 }
6684 if interceptor == nil {
6685 return srv.(LeaseServer).LeaseGrant(ctx, in)
6686 }
6687 info := &grpc.UnaryServerInfo{
6688 Server: srv,
6689 FullMethod: "/etcdserverpb.Lease/LeaseGrant",
6690 }
6691 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
6692 return srv.(LeaseServer).LeaseGrant(ctx, req.(*LeaseGrantRequest))
6693 }
6694 return interceptor(ctx, in, info, handler)
6695}
6696
6697func _Lease_LeaseRevoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
6698 in := new(LeaseRevokeRequest)
6699 if err := dec(in); err != nil {
6700 return nil, err
6701 }
6702 if interceptor == nil {
6703 return srv.(LeaseServer).LeaseRevoke(ctx, in)
6704 }
6705 info := &grpc.UnaryServerInfo{
6706 Server: srv,
6707 FullMethod: "/etcdserverpb.Lease/LeaseRevoke",
6708 }
6709 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
6710 return srv.(LeaseServer).LeaseRevoke(ctx, req.(*LeaseRevokeRequest))
6711 }
6712 return interceptor(ctx, in, info, handler)
6713}
6714
6715func _Lease_LeaseKeepAlive_Handler(srv interface{}, stream grpc.ServerStream) error {
6716 return srv.(LeaseServer).LeaseKeepAlive(&leaseLeaseKeepAliveServer{stream})
6717}
6718
6719type Lease_LeaseKeepAliveServer interface {
6720 Send(*LeaseKeepAliveResponse) error
6721 Recv() (*LeaseKeepAliveRequest, error)
6722 grpc.ServerStream
6723}
6724
6725type leaseLeaseKeepAliveServer struct {
6726 grpc.ServerStream
6727}
6728
6729func (x *leaseLeaseKeepAliveServer) Send(m *LeaseKeepAliveResponse) error {
6730 return x.ServerStream.SendMsg(m)
6731}
6732
6733func (x *leaseLeaseKeepAliveServer) Recv() (*LeaseKeepAliveRequest, error) {
6734 m := new(LeaseKeepAliveRequest)
6735 if err := x.ServerStream.RecvMsg(m); err != nil {
6736 return nil, err
6737 }
6738 return m, nil
6739}
6740
6741func _Lease_LeaseTimeToLive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
6742 in := new(LeaseTimeToLiveRequest)
6743 if err := dec(in); err != nil {
6744 return nil, err
6745 }
6746 if interceptor == nil {
6747 return srv.(LeaseServer).LeaseTimeToLive(ctx, in)
6748 }
6749 info := &grpc.UnaryServerInfo{
6750 Server: srv,
6751 FullMethod: "/etcdserverpb.Lease/LeaseTimeToLive",
6752 }
6753 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
6754 return srv.(LeaseServer).LeaseTimeToLive(ctx, req.(*LeaseTimeToLiveRequest))
6755 }
6756 return interceptor(ctx, in, info, handler)
6757}
6758
6759func _Lease_LeaseLeases_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
6760 in := new(LeaseLeasesRequest)
6761 if err := dec(in); err != nil {
6762 return nil, err
6763 }
6764 if interceptor == nil {
6765 return srv.(LeaseServer).LeaseLeases(ctx, in)
6766 }
6767 info := &grpc.UnaryServerInfo{
6768 Server: srv,
6769 FullMethod: "/etcdserverpb.Lease/LeaseLeases",
6770 }
6771 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
6772 return srv.(LeaseServer).LeaseLeases(ctx, req.(*LeaseLeasesRequest))
6773 }
6774 return interceptor(ctx, in, info, handler)
6775}
6776
6777var _Lease_serviceDesc = grpc.ServiceDesc{
6778 ServiceName: "etcdserverpb.Lease",
6779 HandlerType: (*LeaseServer)(nil),
6780 Methods: []grpc.MethodDesc{
6781 {
6782 MethodName: "LeaseGrant",
6783 Handler: _Lease_LeaseGrant_Handler,
6784 },
6785 {
6786 MethodName: "LeaseRevoke",
6787 Handler: _Lease_LeaseRevoke_Handler,
6788 },
6789 {
6790 MethodName: "LeaseTimeToLive",
6791 Handler: _Lease_LeaseTimeToLive_Handler,
6792 },
6793 {
6794 MethodName: "LeaseLeases",
6795 Handler: _Lease_LeaseLeases_Handler,
6796 },
6797 },
6798 Streams: []grpc.StreamDesc{
6799 {
6800 StreamName: "LeaseKeepAlive",
6801 Handler: _Lease_LeaseKeepAlive_Handler,
6802 ServerStreams: true,
6803 ClientStreams: true,
6804 },
6805 },
6806 Metadata: "rpc.proto",
6807}
6808
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006809// ClusterClient is the client API for Cluster service.
6810//
6811// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
divyadesai81bb7ba2020-03-11 11:45:23 +00006812type ClusterClient interface {
6813 // MemberAdd adds a member into the cluster.
6814 MemberAdd(ctx context.Context, in *MemberAddRequest, opts ...grpc.CallOption) (*MemberAddResponse, error)
6815 // MemberRemove removes an existing member from the cluster.
6816 MemberRemove(ctx context.Context, in *MemberRemoveRequest, opts ...grpc.CallOption) (*MemberRemoveResponse, error)
6817 // MemberUpdate updates the member configuration.
6818 MemberUpdate(ctx context.Context, in *MemberUpdateRequest, opts ...grpc.CallOption) (*MemberUpdateResponse, error)
6819 // MemberList lists all the members in the cluster.
6820 MemberList(ctx context.Context, in *MemberListRequest, opts ...grpc.CallOption) (*MemberListResponse, error)
divyadesai81bb7ba2020-03-11 11:45:23 +00006821}
6822
6823type clusterClient struct {
6824 cc *grpc.ClientConn
6825}
6826
6827func NewClusterClient(cc *grpc.ClientConn) ClusterClient {
6828 return &clusterClient{cc}
6829}
6830
6831func (c *clusterClient) MemberAdd(ctx context.Context, in *MemberAddRequest, opts ...grpc.CallOption) (*MemberAddResponse, error) {
6832 out := new(MemberAddResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006833 err := c.cc.Invoke(ctx, "/etcdserverpb.Cluster/MemberAdd", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00006834 if err != nil {
6835 return nil, err
6836 }
6837 return out, nil
6838}
6839
6840func (c *clusterClient) MemberRemove(ctx context.Context, in *MemberRemoveRequest, opts ...grpc.CallOption) (*MemberRemoveResponse, error) {
6841 out := new(MemberRemoveResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006842 err := c.cc.Invoke(ctx, "/etcdserverpb.Cluster/MemberRemove", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00006843 if err != nil {
6844 return nil, err
6845 }
6846 return out, nil
6847}
6848
6849func (c *clusterClient) MemberUpdate(ctx context.Context, in *MemberUpdateRequest, opts ...grpc.CallOption) (*MemberUpdateResponse, error) {
6850 out := new(MemberUpdateResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006851 err := c.cc.Invoke(ctx, "/etcdserverpb.Cluster/MemberUpdate", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00006852 if err != nil {
6853 return nil, err
6854 }
6855 return out, nil
6856}
6857
6858func (c *clusterClient) MemberList(ctx context.Context, in *MemberListRequest, opts ...grpc.CallOption) (*MemberListResponse, error) {
6859 out := new(MemberListResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006860 err := c.cc.Invoke(ctx, "/etcdserverpb.Cluster/MemberList", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00006861 if err != nil {
6862 return nil, err
6863 }
6864 return out, nil
6865}
6866
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006867// ClusterServer is the server API for Cluster service.
divyadesai81bb7ba2020-03-11 11:45:23 +00006868type ClusterServer interface {
6869 // MemberAdd adds a member into the cluster.
6870 MemberAdd(context.Context, *MemberAddRequest) (*MemberAddResponse, error)
6871 // MemberRemove removes an existing member from the cluster.
6872 MemberRemove(context.Context, *MemberRemoveRequest) (*MemberRemoveResponse, error)
6873 // MemberUpdate updates the member configuration.
6874 MemberUpdate(context.Context, *MemberUpdateRequest) (*MemberUpdateResponse, error)
6875 // MemberList lists all the members in the cluster.
6876 MemberList(context.Context, *MemberListRequest) (*MemberListResponse, error)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006877}
6878
6879// UnimplementedClusterServer can be embedded to have forward compatible implementations.
6880type UnimplementedClusterServer struct {
6881}
6882
6883func (*UnimplementedClusterServer) MemberAdd(ctx context.Context, req *MemberAddRequest) (*MemberAddResponse, error) {
6884 return nil, status.Errorf(codes.Unimplemented, "method MemberAdd not implemented")
6885}
6886func (*UnimplementedClusterServer) MemberRemove(ctx context.Context, req *MemberRemoveRequest) (*MemberRemoveResponse, error) {
6887 return nil, status.Errorf(codes.Unimplemented, "method MemberRemove not implemented")
6888}
6889func (*UnimplementedClusterServer) MemberUpdate(ctx context.Context, req *MemberUpdateRequest) (*MemberUpdateResponse, error) {
6890 return nil, status.Errorf(codes.Unimplemented, "method MemberUpdate not implemented")
6891}
6892func (*UnimplementedClusterServer) MemberList(ctx context.Context, req *MemberListRequest) (*MemberListResponse, error) {
6893 return nil, status.Errorf(codes.Unimplemented, "method MemberList not implemented")
divyadesai81bb7ba2020-03-11 11:45:23 +00006894}
6895
6896func RegisterClusterServer(s *grpc.Server, srv ClusterServer) {
6897 s.RegisterService(&_Cluster_serviceDesc, srv)
6898}
6899
6900func _Cluster_MemberAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
6901 in := new(MemberAddRequest)
6902 if err := dec(in); err != nil {
6903 return nil, err
6904 }
6905 if interceptor == nil {
6906 return srv.(ClusterServer).MemberAdd(ctx, in)
6907 }
6908 info := &grpc.UnaryServerInfo{
6909 Server: srv,
6910 FullMethod: "/etcdserverpb.Cluster/MemberAdd",
6911 }
6912 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
6913 return srv.(ClusterServer).MemberAdd(ctx, req.(*MemberAddRequest))
6914 }
6915 return interceptor(ctx, in, info, handler)
6916}
6917
6918func _Cluster_MemberRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
6919 in := new(MemberRemoveRequest)
6920 if err := dec(in); err != nil {
6921 return nil, err
6922 }
6923 if interceptor == nil {
6924 return srv.(ClusterServer).MemberRemove(ctx, in)
6925 }
6926 info := &grpc.UnaryServerInfo{
6927 Server: srv,
6928 FullMethod: "/etcdserverpb.Cluster/MemberRemove",
6929 }
6930 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
6931 return srv.(ClusterServer).MemberRemove(ctx, req.(*MemberRemoveRequest))
6932 }
6933 return interceptor(ctx, in, info, handler)
6934}
6935
6936func _Cluster_MemberUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
6937 in := new(MemberUpdateRequest)
6938 if err := dec(in); err != nil {
6939 return nil, err
6940 }
6941 if interceptor == nil {
6942 return srv.(ClusterServer).MemberUpdate(ctx, in)
6943 }
6944 info := &grpc.UnaryServerInfo{
6945 Server: srv,
6946 FullMethod: "/etcdserverpb.Cluster/MemberUpdate",
6947 }
6948 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
6949 return srv.(ClusterServer).MemberUpdate(ctx, req.(*MemberUpdateRequest))
6950 }
6951 return interceptor(ctx, in, info, handler)
6952}
6953
6954func _Cluster_MemberList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
6955 in := new(MemberListRequest)
6956 if err := dec(in); err != nil {
6957 return nil, err
6958 }
6959 if interceptor == nil {
6960 return srv.(ClusterServer).MemberList(ctx, in)
6961 }
6962 info := &grpc.UnaryServerInfo{
6963 Server: srv,
6964 FullMethod: "/etcdserverpb.Cluster/MemberList",
6965 }
6966 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
6967 return srv.(ClusterServer).MemberList(ctx, req.(*MemberListRequest))
6968 }
6969 return interceptor(ctx, in, info, handler)
6970}
6971
divyadesai81bb7ba2020-03-11 11:45:23 +00006972var _Cluster_serviceDesc = grpc.ServiceDesc{
6973 ServiceName: "etcdserverpb.Cluster",
6974 HandlerType: (*ClusterServer)(nil),
6975 Methods: []grpc.MethodDesc{
6976 {
6977 MethodName: "MemberAdd",
6978 Handler: _Cluster_MemberAdd_Handler,
6979 },
6980 {
6981 MethodName: "MemberRemove",
6982 Handler: _Cluster_MemberRemove_Handler,
6983 },
6984 {
6985 MethodName: "MemberUpdate",
6986 Handler: _Cluster_MemberUpdate_Handler,
6987 },
6988 {
6989 MethodName: "MemberList",
6990 Handler: _Cluster_MemberList_Handler,
6991 },
divyadesai81bb7ba2020-03-11 11:45:23 +00006992 },
6993 Streams: []grpc.StreamDesc{},
6994 Metadata: "rpc.proto",
6995}
6996
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00006997// MaintenanceClient is the client API for Maintenance service.
6998//
6999// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
divyadesai81bb7ba2020-03-11 11:45:23 +00007000type MaintenanceClient interface {
7001 // Alarm activates, deactivates, and queries alarms regarding cluster health.
7002 Alarm(ctx context.Context, in *AlarmRequest, opts ...grpc.CallOption) (*AlarmResponse, error)
7003 // Status gets the status of the member.
7004 Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error)
7005 // Defragment defragments a member's backend database to recover storage space.
7006 Defragment(ctx context.Context, in *DefragmentRequest, opts ...grpc.CallOption) (*DefragmentResponse, error)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007007 // Hash computes the hash of the KV's backend.
7008 // This is designed for testing; do not use this in production when there
7009 // are ongoing transactions.
divyadesai81bb7ba2020-03-11 11:45:23 +00007010 Hash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, error)
7011 // HashKV computes the hash of all MVCC keys up to a given revision.
divyadesai81bb7ba2020-03-11 11:45:23 +00007012 HashKV(ctx context.Context, in *HashKVRequest, opts ...grpc.CallOption) (*HashKVResponse, error)
7013 // Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
7014 Snapshot(ctx context.Context, in *SnapshotRequest, opts ...grpc.CallOption) (Maintenance_SnapshotClient, error)
7015 // MoveLeader requests current leader node to transfer its leadership to transferee.
7016 MoveLeader(ctx context.Context, in *MoveLeaderRequest, opts ...grpc.CallOption) (*MoveLeaderResponse, error)
7017}
7018
7019type maintenanceClient struct {
7020 cc *grpc.ClientConn
7021}
7022
7023func NewMaintenanceClient(cc *grpc.ClientConn) MaintenanceClient {
7024 return &maintenanceClient{cc}
7025}
7026
7027func (c *maintenanceClient) Alarm(ctx context.Context, in *AlarmRequest, opts ...grpc.CallOption) (*AlarmResponse, error) {
7028 out := new(AlarmResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007029 err := c.cc.Invoke(ctx, "/etcdserverpb.Maintenance/Alarm", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007030 if err != nil {
7031 return nil, err
7032 }
7033 return out, nil
7034}
7035
7036func (c *maintenanceClient) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) {
7037 out := new(StatusResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007038 err := c.cc.Invoke(ctx, "/etcdserverpb.Maintenance/Status", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007039 if err != nil {
7040 return nil, err
7041 }
7042 return out, nil
7043}
7044
7045func (c *maintenanceClient) Defragment(ctx context.Context, in *DefragmentRequest, opts ...grpc.CallOption) (*DefragmentResponse, error) {
7046 out := new(DefragmentResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007047 err := c.cc.Invoke(ctx, "/etcdserverpb.Maintenance/Defragment", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007048 if err != nil {
7049 return nil, err
7050 }
7051 return out, nil
7052}
7053
7054func (c *maintenanceClient) Hash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, error) {
7055 out := new(HashResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007056 err := c.cc.Invoke(ctx, "/etcdserverpb.Maintenance/Hash", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007057 if err != nil {
7058 return nil, err
7059 }
7060 return out, nil
7061}
7062
7063func (c *maintenanceClient) HashKV(ctx context.Context, in *HashKVRequest, opts ...grpc.CallOption) (*HashKVResponse, error) {
7064 out := new(HashKVResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007065 err := c.cc.Invoke(ctx, "/etcdserverpb.Maintenance/HashKV", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007066 if err != nil {
7067 return nil, err
7068 }
7069 return out, nil
7070}
7071
7072func (c *maintenanceClient) Snapshot(ctx context.Context, in *SnapshotRequest, opts ...grpc.CallOption) (Maintenance_SnapshotClient, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007073 stream, err := c.cc.NewStream(ctx, &_Maintenance_serviceDesc.Streams[0], "/etcdserverpb.Maintenance/Snapshot", opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007074 if err != nil {
7075 return nil, err
7076 }
7077 x := &maintenanceSnapshotClient{stream}
7078 if err := x.ClientStream.SendMsg(in); err != nil {
7079 return nil, err
7080 }
7081 if err := x.ClientStream.CloseSend(); err != nil {
7082 return nil, err
7083 }
7084 return x, nil
7085}
7086
7087type Maintenance_SnapshotClient interface {
7088 Recv() (*SnapshotResponse, error)
7089 grpc.ClientStream
7090}
7091
7092type maintenanceSnapshotClient struct {
7093 grpc.ClientStream
7094}
7095
7096func (x *maintenanceSnapshotClient) Recv() (*SnapshotResponse, error) {
7097 m := new(SnapshotResponse)
7098 if err := x.ClientStream.RecvMsg(m); err != nil {
7099 return nil, err
7100 }
7101 return m, nil
7102}
7103
7104func (c *maintenanceClient) MoveLeader(ctx context.Context, in *MoveLeaderRequest, opts ...grpc.CallOption) (*MoveLeaderResponse, error) {
7105 out := new(MoveLeaderResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007106 err := c.cc.Invoke(ctx, "/etcdserverpb.Maintenance/MoveLeader", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007107 if err != nil {
7108 return nil, err
7109 }
7110 return out, nil
7111}
7112
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007113// MaintenanceServer is the server API for Maintenance service.
divyadesai81bb7ba2020-03-11 11:45:23 +00007114type MaintenanceServer interface {
7115 // Alarm activates, deactivates, and queries alarms regarding cluster health.
7116 Alarm(context.Context, *AlarmRequest) (*AlarmResponse, error)
7117 // Status gets the status of the member.
7118 Status(context.Context, *StatusRequest) (*StatusResponse, error)
7119 // Defragment defragments a member's backend database to recover storage space.
7120 Defragment(context.Context, *DefragmentRequest) (*DefragmentResponse, error)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007121 // Hash computes the hash of the KV's backend.
7122 // This is designed for testing; do not use this in production when there
7123 // are ongoing transactions.
divyadesai81bb7ba2020-03-11 11:45:23 +00007124 Hash(context.Context, *HashRequest) (*HashResponse, error)
7125 // HashKV computes the hash of all MVCC keys up to a given revision.
divyadesai81bb7ba2020-03-11 11:45:23 +00007126 HashKV(context.Context, *HashKVRequest) (*HashKVResponse, error)
7127 // Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
7128 Snapshot(*SnapshotRequest, Maintenance_SnapshotServer) error
7129 // MoveLeader requests current leader node to transfer its leadership to transferee.
7130 MoveLeader(context.Context, *MoveLeaderRequest) (*MoveLeaderResponse, error)
7131}
7132
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007133// UnimplementedMaintenanceServer can be embedded to have forward compatible implementations.
7134type UnimplementedMaintenanceServer struct {
7135}
7136
7137func (*UnimplementedMaintenanceServer) Alarm(ctx context.Context, req *AlarmRequest) (*AlarmResponse, error) {
7138 return nil, status.Errorf(codes.Unimplemented, "method Alarm not implemented")
7139}
7140func (*UnimplementedMaintenanceServer) Status(ctx context.Context, req *StatusRequest) (*StatusResponse, error) {
7141 return nil, status.Errorf(codes.Unimplemented, "method Status not implemented")
7142}
7143func (*UnimplementedMaintenanceServer) Defragment(ctx context.Context, req *DefragmentRequest) (*DefragmentResponse, error) {
7144 return nil, status.Errorf(codes.Unimplemented, "method Defragment not implemented")
7145}
7146func (*UnimplementedMaintenanceServer) Hash(ctx context.Context, req *HashRequest) (*HashResponse, error) {
7147 return nil, status.Errorf(codes.Unimplemented, "method Hash not implemented")
7148}
7149func (*UnimplementedMaintenanceServer) HashKV(ctx context.Context, req *HashKVRequest) (*HashKVResponse, error) {
7150 return nil, status.Errorf(codes.Unimplemented, "method HashKV not implemented")
7151}
7152func (*UnimplementedMaintenanceServer) Snapshot(req *SnapshotRequest, srv Maintenance_SnapshotServer) error {
7153 return status.Errorf(codes.Unimplemented, "method Snapshot not implemented")
7154}
7155func (*UnimplementedMaintenanceServer) MoveLeader(ctx context.Context, req *MoveLeaderRequest) (*MoveLeaderResponse, error) {
7156 return nil, status.Errorf(codes.Unimplemented, "method MoveLeader not implemented")
7157}
7158
divyadesai81bb7ba2020-03-11 11:45:23 +00007159func RegisterMaintenanceServer(s *grpc.Server, srv MaintenanceServer) {
7160 s.RegisterService(&_Maintenance_serviceDesc, srv)
7161}
7162
7163func _Maintenance_Alarm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
7164 in := new(AlarmRequest)
7165 if err := dec(in); err != nil {
7166 return nil, err
7167 }
7168 if interceptor == nil {
7169 return srv.(MaintenanceServer).Alarm(ctx, in)
7170 }
7171 info := &grpc.UnaryServerInfo{
7172 Server: srv,
7173 FullMethod: "/etcdserverpb.Maintenance/Alarm",
7174 }
7175 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
7176 return srv.(MaintenanceServer).Alarm(ctx, req.(*AlarmRequest))
7177 }
7178 return interceptor(ctx, in, info, handler)
7179}
7180
7181func _Maintenance_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
7182 in := new(StatusRequest)
7183 if err := dec(in); err != nil {
7184 return nil, err
7185 }
7186 if interceptor == nil {
7187 return srv.(MaintenanceServer).Status(ctx, in)
7188 }
7189 info := &grpc.UnaryServerInfo{
7190 Server: srv,
7191 FullMethod: "/etcdserverpb.Maintenance/Status",
7192 }
7193 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
7194 return srv.(MaintenanceServer).Status(ctx, req.(*StatusRequest))
7195 }
7196 return interceptor(ctx, in, info, handler)
7197}
7198
7199func _Maintenance_Defragment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
7200 in := new(DefragmentRequest)
7201 if err := dec(in); err != nil {
7202 return nil, err
7203 }
7204 if interceptor == nil {
7205 return srv.(MaintenanceServer).Defragment(ctx, in)
7206 }
7207 info := &grpc.UnaryServerInfo{
7208 Server: srv,
7209 FullMethod: "/etcdserverpb.Maintenance/Defragment",
7210 }
7211 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
7212 return srv.(MaintenanceServer).Defragment(ctx, req.(*DefragmentRequest))
7213 }
7214 return interceptor(ctx, in, info, handler)
7215}
7216
7217func _Maintenance_Hash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
7218 in := new(HashRequest)
7219 if err := dec(in); err != nil {
7220 return nil, err
7221 }
7222 if interceptor == nil {
7223 return srv.(MaintenanceServer).Hash(ctx, in)
7224 }
7225 info := &grpc.UnaryServerInfo{
7226 Server: srv,
7227 FullMethod: "/etcdserverpb.Maintenance/Hash",
7228 }
7229 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
7230 return srv.(MaintenanceServer).Hash(ctx, req.(*HashRequest))
7231 }
7232 return interceptor(ctx, in, info, handler)
7233}
7234
7235func _Maintenance_HashKV_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
7236 in := new(HashKVRequest)
7237 if err := dec(in); err != nil {
7238 return nil, err
7239 }
7240 if interceptor == nil {
7241 return srv.(MaintenanceServer).HashKV(ctx, in)
7242 }
7243 info := &grpc.UnaryServerInfo{
7244 Server: srv,
7245 FullMethod: "/etcdserverpb.Maintenance/HashKV",
7246 }
7247 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
7248 return srv.(MaintenanceServer).HashKV(ctx, req.(*HashKVRequest))
7249 }
7250 return interceptor(ctx, in, info, handler)
7251}
7252
7253func _Maintenance_Snapshot_Handler(srv interface{}, stream grpc.ServerStream) error {
7254 m := new(SnapshotRequest)
7255 if err := stream.RecvMsg(m); err != nil {
7256 return err
7257 }
7258 return srv.(MaintenanceServer).Snapshot(m, &maintenanceSnapshotServer{stream})
7259}
7260
7261type Maintenance_SnapshotServer interface {
7262 Send(*SnapshotResponse) error
7263 grpc.ServerStream
7264}
7265
7266type maintenanceSnapshotServer struct {
7267 grpc.ServerStream
7268}
7269
7270func (x *maintenanceSnapshotServer) Send(m *SnapshotResponse) error {
7271 return x.ServerStream.SendMsg(m)
7272}
7273
7274func _Maintenance_MoveLeader_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
7275 in := new(MoveLeaderRequest)
7276 if err := dec(in); err != nil {
7277 return nil, err
7278 }
7279 if interceptor == nil {
7280 return srv.(MaintenanceServer).MoveLeader(ctx, in)
7281 }
7282 info := &grpc.UnaryServerInfo{
7283 Server: srv,
7284 FullMethod: "/etcdserverpb.Maintenance/MoveLeader",
7285 }
7286 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
7287 return srv.(MaintenanceServer).MoveLeader(ctx, req.(*MoveLeaderRequest))
7288 }
7289 return interceptor(ctx, in, info, handler)
7290}
7291
7292var _Maintenance_serviceDesc = grpc.ServiceDesc{
7293 ServiceName: "etcdserverpb.Maintenance",
7294 HandlerType: (*MaintenanceServer)(nil),
7295 Methods: []grpc.MethodDesc{
7296 {
7297 MethodName: "Alarm",
7298 Handler: _Maintenance_Alarm_Handler,
7299 },
7300 {
7301 MethodName: "Status",
7302 Handler: _Maintenance_Status_Handler,
7303 },
7304 {
7305 MethodName: "Defragment",
7306 Handler: _Maintenance_Defragment_Handler,
7307 },
7308 {
7309 MethodName: "Hash",
7310 Handler: _Maintenance_Hash_Handler,
7311 },
7312 {
7313 MethodName: "HashKV",
7314 Handler: _Maintenance_HashKV_Handler,
7315 },
7316 {
7317 MethodName: "MoveLeader",
7318 Handler: _Maintenance_MoveLeader_Handler,
7319 },
7320 },
7321 Streams: []grpc.StreamDesc{
7322 {
7323 StreamName: "Snapshot",
7324 Handler: _Maintenance_Snapshot_Handler,
7325 ServerStreams: true,
7326 },
7327 },
7328 Metadata: "rpc.proto",
7329}
7330
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007331// AuthClient is the client API for Auth service.
7332//
7333// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
divyadesai81bb7ba2020-03-11 11:45:23 +00007334type AuthClient interface {
7335 // AuthEnable enables authentication.
7336 AuthEnable(ctx context.Context, in *AuthEnableRequest, opts ...grpc.CallOption) (*AuthEnableResponse, error)
7337 // AuthDisable disables authentication.
7338 AuthDisable(ctx context.Context, in *AuthDisableRequest, opts ...grpc.CallOption) (*AuthDisableResponse, error)
7339 // Authenticate processes an authenticate request.
7340 Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007341 // UserAdd adds a new user.
divyadesai81bb7ba2020-03-11 11:45:23 +00007342 UserAdd(ctx context.Context, in *AuthUserAddRequest, opts ...grpc.CallOption) (*AuthUserAddResponse, error)
7343 // UserGet gets detailed user information.
7344 UserGet(ctx context.Context, in *AuthUserGetRequest, opts ...grpc.CallOption) (*AuthUserGetResponse, error)
7345 // UserList gets a list of all users.
7346 UserList(ctx context.Context, in *AuthUserListRequest, opts ...grpc.CallOption) (*AuthUserListResponse, error)
7347 // UserDelete deletes a specified user.
7348 UserDelete(ctx context.Context, in *AuthUserDeleteRequest, opts ...grpc.CallOption) (*AuthUserDeleteResponse, error)
7349 // UserChangePassword changes the password of a specified user.
7350 UserChangePassword(ctx context.Context, in *AuthUserChangePasswordRequest, opts ...grpc.CallOption) (*AuthUserChangePasswordResponse, error)
7351 // UserGrant grants a role to a specified user.
7352 UserGrantRole(ctx context.Context, in *AuthUserGrantRoleRequest, opts ...grpc.CallOption) (*AuthUserGrantRoleResponse, error)
7353 // UserRevokeRole revokes a role of specified user.
7354 UserRevokeRole(ctx context.Context, in *AuthUserRevokeRoleRequest, opts ...grpc.CallOption) (*AuthUserRevokeRoleResponse, error)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007355 // RoleAdd adds a new role.
divyadesai81bb7ba2020-03-11 11:45:23 +00007356 RoleAdd(ctx context.Context, in *AuthRoleAddRequest, opts ...grpc.CallOption) (*AuthRoleAddResponse, error)
7357 // RoleGet gets detailed role information.
7358 RoleGet(ctx context.Context, in *AuthRoleGetRequest, opts ...grpc.CallOption) (*AuthRoleGetResponse, error)
7359 // RoleList gets lists of all roles.
7360 RoleList(ctx context.Context, in *AuthRoleListRequest, opts ...grpc.CallOption) (*AuthRoleListResponse, error)
7361 // RoleDelete deletes a specified role.
7362 RoleDelete(ctx context.Context, in *AuthRoleDeleteRequest, opts ...grpc.CallOption) (*AuthRoleDeleteResponse, error)
7363 // RoleGrantPermission grants a permission of a specified key or range to a specified role.
7364 RoleGrantPermission(ctx context.Context, in *AuthRoleGrantPermissionRequest, opts ...grpc.CallOption) (*AuthRoleGrantPermissionResponse, error)
7365 // RoleRevokePermission revokes a key or range permission of a specified role.
7366 RoleRevokePermission(ctx context.Context, in *AuthRoleRevokePermissionRequest, opts ...grpc.CallOption) (*AuthRoleRevokePermissionResponse, error)
7367}
7368
7369type authClient struct {
7370 cc *grpc.ClientConn
7371}
7372
7373func NewAuthClient(cc *grpc.ClientConn) AuthClient {
7374 return &authClient{cc}
7375}
7376
7377func (c *authClient) AuthEnable(ctx context.Context, in *AuthEnableRequest, opts ...grpc.CallOption) (*AuthEnableResponse, error) {
7378 out := new(AuthEnableResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007379 err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/AuthEnable", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007380 if err != nil {
7381 return nil, err
7382 }
7383 return out, nil
7384}
7385
7386func (c *authClient) AuthDisable(ctx context.Context, in *AuthDisableRequest, opts ...grpc.CallOption) (*AuthDisableResponse, error) {
7387 out := new(AuthDisableResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007388 err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/AuthDisable", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007389 if err != nil {
7390 return nil, err
7391 }
7392 return out, nil
7393}
7394
7395func (c *authClient) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) {
7396 out := new(AuthenticateResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007397 err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/Authenticate", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007398 if err != nil {
7399 return nil, err
7400 }
7401 return out, nil
7402}
7403
7404func (c *authClient) UserAdd(ctx context.Context, in *AuthUserAddRequest, opts ...grpc.CallOption) (*AuthUserAddResponse, error) {
7405 out := new(AuthUserAddResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007406 err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/UserAdd", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007407 if err != nil {
7408 return nil, err
7409 }
7410 return out, nil
7411}
7412
7413func (c *authClient) UserGet(ctx context.Context, in *AuthUserGetRequest, opts ...grpc.CallOption) (*AuthUserGetResponse, error) {
7414 out := new(AuthUserGetResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007415 err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/UserGet", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007416 if err != nil {
7417 return nil, err
7418 }
7419 return out, nil
7420}
7421
7422func (c *authClient) UserList(ctx context.Context, in *AuthUserListRequest, opts ...grpc.CallOption) (*AuthUserListResponse, error) {
7423 out := new(AuthUserListResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007424 err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/UserList", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007425 if err != nil {
7426 return nil, err
7427 }
7428 return out, nil
7429}
7430
7431func (c *authClient) UserDelete(ctx context.Context, in *AuthUserDeleteRequest, opts ...grpc.CallOption) (*AuthUserDeleteResponse, error) {
7432 out := new(AuthUserDeleteResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007433 err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/UserDelete", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007434 if err != nil {
7435 return nil, err
7436 }
7437 return out, nil
7438}
7439
7440func (c *authClient) UserChangePassword(ctx context.Context, in *AuthUserChangePasswordRequest, opts ...grpc.CallOption) (*AuthUserChangePasswordResponse, error) {
7441 out := new(AuthUserChangePasswordResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007442 err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/UserChangePassword", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007443 if err != nil {
7444 return nil, err
7445 }
7446 return out, nil
7447}
7448
7449func (c *authClient) UserGrantRole(ctx context.Context, in *AuthUserGrantRoleRequest, opts ...grpc.CallOption) (*AuthUserGrantRoleResponse, error) {
7450 out := new(AuthUserGrantRoleResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007451 err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/UserGrantRole", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007452 if err != nil {
7453 return nil, err
7454 }
7455 return out, nil
7456}
7457
7458func (c *authClient) UserRevokeRole(ctx context.Context, in *AuthUserRevokeRoleRequest, opts ...grpc.CallOption) (*AuthUserRevokeRoleResponse, error) {
7459 out := new(AuthUserRevokeRoleResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007460 err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/UserRevokeRole", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007461 if err != nil {
7462 return nil, err
7463 }
7464 return out, nil
7465}
7466
7467func (c *authClient) RoleAdd(ctx context.Context, in *AuthRoleAddRequest, opts ...grpc.CallOption) (*AuthRoleAddResponse, error) {
7468 out := new(AuthRoleAddResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007469 err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/RoleAdd", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007470 if err != nil {
7471 return nil, err
7472 }
7473 return out, nil
7474}
7475
7476func (c *authClient) RoleGet(ctx context.Context, in *AuthRoleGetRequest, opts ...grpc.CallOption) (*AuthRoleGetResponse, error) {
7477 out := new(AuthRoleGetResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007478 err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/RoleGet", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007479 if err != nil {
7480 return nil, err
7481 }
7482 return out, nil
7483}
7484
7485func (c *authClient) RoleList(ctx context.Context, in *AuthRoleListRequest, opts ...grpc.CallOption) (*AuthRoleListResponse, error) {
7486 out := new(AuthRoleListResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007487 err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/RoleList", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007488 if err != nil {
7489 return nil, err
7490 }
7491 return out, nil
7492}
7493
7494func (c *authClient) RoleDelete(ctx context.Context, in *AuthRoleDeleteRequest, opts ...grpc.CallOption) (*AuthRoleDeleteResponse, error) {
7495 out := new(AuthRoleDeleteResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007496 err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/RoleDelete", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007497 if err != nil {
7498 return nil, err
7499 }
7500 return out, nil
7501}
7502
7503func (c *authClient) RoleGrantPermission(ctx context.Context, in *AuthRoleGrantPermissionRequest, opts ...grpc.CallOption) (*AuthRoleGrantPermissionResponse, error) {
7504 out := new(AuthRoleGrantPermissionResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007505 err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/RoleGrantPermission", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007506 if err != nil {
7507 return nil, err
7508 }
7509 return out, nil
7510}
7511
7512func (c *authClient) RoleRevokePermission(ctx context.Context, in *AuthRoleRevokePermissionRequest, opts ...grpc.CallOption) (*AuthRoleRevokePermissionResponse, error) {
7513 out := new(AuthRoleRevokePermissionResponse)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007514 err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/RoleRevokePermission", in, out, opts...)
divyadesai81bb7ba2020-03-11 11:45:23 +00007515 if err != nil {
7516 return nil, err
7517 }
7518 return out, nil
7519}
7520
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007521// AuthServer is the server API for Auth service.
divyadesai81bb7ba2020-03-11 11:45:23 +00007522type AuthServer interface {
7523 // AuthEnable enables authentication.
7524 AuthEnable(context.Context, *AuthEnableRequest) (*AuthEnableResponse, error)
7525 // AuthDisable disables authentication.
7526 AuthDisable(context.Context, *AuthDisableRequest) (*AuthDisableResponse, error)
7527 // Authenticate processes an authenticate request.
7528 Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007529 // UserAdd adds a new user.
divyadesai81bb7ba2020-03-11 11:45:23 +00007530 UserAdd(context.Context, *AuthUserAddRequest) (*AuthUserAddResponse, error)
7531 // UserGet gets detailed user information.
7532 UserGet(context.Context, *AuthUserGetRequest) (*AuthUserGetResponse, error)
7533 // UserList gets a list of all users.
7534 UserList(context.Context, *AuthUserListRequest) (*AuthUserListResponse, error)
7535 // UserDelete deletes a specified user.
7536 UserDelete(context.Context, *AuthUserDeleteRequest) (*AuthUserDeleteResponse, error)
7537 // UserChangePassword changes the password of a specified user.
7538 UserChangePassword(context.Context, *AuthUserChangePasswordRequest) (*AuthUserChangePasswordResponse, error)
7539 // UserGrant grants a role to a specified user.
7540 UserGrantRole(context.Context, *AuthUserGrantRoleRequest) (*AuthUserGrantRoleResponse, error)
7541 // UserRevokeRole revokes a role of specified user.
7542 UserRevokeRole(context.Context, *AuthUserRevokeRoleRequest) (*AuthUserRevokeRoleResponse, error)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007543 // RoleAdd adds a new role.
divyadesai81bb7ba2020-03-11 11:45:23 +00007544 RoleAdd(context.Context, *AuthRoleAddRequest) (*AuthRoleAddResponse, error)
7545 // RoleGet gets detailed role information.
7546 RoleGet(context.Context, *AuthRoleGetRequest) (*AuthRoleGetResponse, error)
7547 // RoleList gets lists of all roles.
7548 RoleList(context.Context, *AuthRoleListRequest) (*AuthRoleListResponse, error)
7549 // RoleDelete deletes a specified role.
7550 RoleDelete(context.Context, *AuthRoleDeleteRequest) (*AuthRoleDeleteResponse, error)
7551 // RoleGrantPermission grants a permission of a specified key or range to a specified role.
7552 RoleGrantPermission(context.Context, *AuthRoleGrantPermissionRequest) (*AuthRoleGrantPermissionResponse, error)
7553 // RoleRevokePermission revokes a key or range permission of a specified role.
7554 RoleRevokePermission(context.Context, *AuthRoleRevokePermissionRequest) (*AuthRoleRevokePermissionResponse, error)
7555}
7556
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007557// UnimplementedAuthServer can be embedded to have forward compatible implementations.
7558type UnimplementedAuthServer struct {
7559}
7560
7561func (*UnimplementedAuthServer) AuthEnable(ctx context.Context, req *AuthEnableRequest) (*AuthEnableResponse, error) {
7562 return nil, status.Errorf(codes.Unimplemented, "method AuthEnable not implemented")
7563}
7564func (*UnimplementedAuthServer) AuthDisable(ctx context.Context, req *AuthDisableRequest) (*AuthDisableResponse, error) {
7565 return nil, status.Errorf(codes.Unimplemented, "method AuthDisable not implemented")
7566}
7567func (*UnimplementedAuthServer) Authenticate(ctx context.Context, req *AuthenticateRequest) (*AuthenticateResponse, error) {
7568 return nil, status.Errorf(codes.Unimplemented, "method Authenticate not implemented")
7569}
7570func (*UnimplementedAuthServer) UserAdd(ctx context.Context, req *AuthUserAddRequest) (*AuthUserAddResponse, error) {
7571 return nil, status.Errorf(codes.Unimplemented, "method UserAdd not implemented")
7572}
7573func (*UnimplementedAuthServer) UserGet(ctx context.Context, req *AuthUserGetRequest) (*AuthUserGetResponse, error) {
7574 return nil, status.Errorf(codes.Unimplemented, "method UserGet not implemented")
7575}
7576func (*UnimplementedAuthServer) UserList(ctx context.Context, req *AuthUserListRequest) (*AuthUserListResponse, error) {
7577 return nil, status.Errorf(codes.Unimplemented, "method UserList not implemented")
7578}
7579func (*UnimplementedAuthServer) UserDelete(ctx context.Context, req *AuthUserDeleteRequest) (*AuthUserDeleteResponse, error) {
7580 return nil, status.Errorf(codes.Unimplemented, "method UserDelete not implemented")
7581}
7582func (*UnimplementedAuthServer) UserChangePassword(ctx context.Context, req *AuthUserChangePasswordRequest) (*AuthUserChangePasswordResponse, error) {
7583 return nil, status.Errorf(codes.Unimplemented, "method UserChangePassword not implemented")
7584}
7585func (*UnimplementedAuthServer) UserGrantRole(ctx context.Context, req *AuthUserGrantRoleRequest) (*AuthUserGrantRoleResponse, error) {
7586 return nil, status.Errorf(codes.Unimplemented, "method UserGrantRole not implemented")
7587}
7588func (*UnimplementedAuthServer) UserRevokeRole(ctx context.Context, req *AuthUserRevokeRoleRequest) (*AuthUserRevokeRoleResponse, error) {
7589 return nil, status.Errorf(codes.Unimplemented, "method UserRevokeRole not implemented")
7590}
7591func (*UnimplementedAuthServer) RoleAdd(ctx context.Context, req *AuthRoleAddRequest) (*AuthRoleAddResponse, error) {
7592 return nil, status.Errorf(codes.Unimplemented, "method RoleAdd not implemented")
7593}
7594func (*UnimplementedAuthServer) RoleGet(ctx context.Context, req *AuthRoleGetRequest) (*AuthRoleGetResponse, error) {
7595 return nil, status.Errorf(codes.Unimplemented, "method RoleGet not implemented")
7596}
7597func (*UnimplementedAuthServer) RoleList(ctx context.Context, req *AuthRoleListRequest) (*AuthRoleListResponse, error) {
7598 return nil, status.Errorf(codes.Unimplemented, "method RoleList not implemented")
7599}
7600func (*UnimplementedAuthServer) RoleDelete(ctx context.Context, req *AuthRoleDeleteRequest) (*AuthRoleDeleteResponse, error) {
7601 return nil, status.Errorf(codes.Unimplemented, "method RoleDelete not implemented")
7602}
7603func (*UnimplementedAuthServer) RoleGrantPermission(ctx context.Context, req *AuthRoleGrantPermissionRequest) (*AuthRoleGrantPermissionResponse, error) {
7604 return nil, status.Errorf(codes.Unimplemented, "method RoleGrantPermission not implemented")
7605}
7606func (*UnimplementedAuthServer) RoleRevokePermission(ctx context.Context, req *AuthRoleRevokePermissionRequest) (*AuthRoleRevokePermissionResponse, error) {
7607 return nil, status.Errorf(codes.Unimplemented, "method RoleRevokePermission not implemented")
7608}
7609
divyadesai81bb7ba2020-03-11 11:45:23 +00007610func RegisterAuthServer(s *grpc.Server, srv AuthServer) {
7611 s.RegisterService(&_Auth_serviceDesc, srv)
7612}
7613
7614func _Auth_AuthEnable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
7615 in := new(AuthEnableRequest)
7616 if err := dec(in); err != nil {
7617 return nil, err
7618 }
7619 if interceptor == nil {
7620 return srv.(AuthServer).AuthEnable(ctx, in)
7621 }
7622 info := &grpc.UnaryServerInfo{
7623 Server: srv,
7624 FullMethod: "/etcdserverpb.Auth/AuthEnable",
7625 }
7626 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
7627 return srv.(AuthServer).AuthEnable(ctx, req.(*AuthEnableRequest))
7628 }
7629 return interceptor(ctx, in, info, handler)
7630}
7631
7632func _Auth_AuthDisable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
7633 in := new(AuthDisableRequest)
7634 if err := dec(in); err != nil {
7635 return nil, err
7636 }
7637 if interceptor == nil {
7638 return srv.(AuthServer).AuthDisable(ctx, in)
7639 }
7640 info := &grpc.UnaryServerInfo{
7641 Server: srv,
7642 FullMethod: "/etcdserverpb.Auth/AuthDisable",
7643 }
7644 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
7645 return srv.(AuthServer).AuthDisable(ctx, req.(*AuthDisableRequest))
7646 }
7647 return interceptor(ctx, in, info, handler)
7648}
7649
7650func _Auth_Authenticate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
7651 in := new(AuthenticateRequest)
7652 if err := dec(in); err != nil {
7653 return nil, err
7654 }
7655 if interceptor == nil {
7656 return srv.(AuthServer).Authenticate(ctx, in)
7657 }
7658 info := &grpc.UnaryServerInfo{
7659 Server: srv,
7660 FullMethod: "/etcdserverpb.Auth/Authenticate",
7661 }
7662 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
7663 return srv.(AuthServer).Authenticate(ctx, req.(*AuthenticateRequest))
7664 }
7665 return interceptor(ctx, in, info, handler)
7666}
7667
7668func _Auth_UserAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
7669 in := new(AuthUserAddRequest)
7670 if err := dec(in); err != nil {
7671 return nil, err
7672 }
7673 if interceptor == nil {
7674 return srv.(AuthServer).UserAdd(ctx, in)
7675 }
7676 info := &grpc.UnaryServerInfo{
7677 Server: srv,
7678 FullMethod: "/etcdserverpb.Auth/UserAdd",
7679 }
7680 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
7681 return srv.(AuthServer).UserAdd(ctx, req.(*AuthUserAddRequest))
7682 }
7683 return interceptor(ctx, in, info, handler)
7684}
7685
7686func _Auth_UserGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
7687 in := new(AuthUserGetRequest)
7688 if err := dec(in); err != nil {
7689 return nil, err
7690 }
7691 if interceptor == nil {
7692 return srv.(AuthServer).UserGet(ctx, in)
7693 }
7694 info := &grpc.UnaryServerInfo{
7695 Server: srv,
7696 FullMethod: "/etcdserverpb.Auth/UserGet",
7697 }
7698 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
7699 return srv.(AuthServer).UserGet(ctx, req.(*AuthUserGetRequest))
7700 }
7701 return interceptor(ctx, in, info, handler)
7702}
7703
7704func _Auth_UserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
7705 in := new(AuthUserListRequest)
7706 if err := dec(in); err != nil {
7707 return nil, err
7708 }
7709 if interceptor == nil {
7710 return srv.(AuthServer).UserList(ctx, in)
7711 }
7712 info := &grpc.UnaryServerInfo{
7713 Server: srv,
7714 FullMethod: "/etcdserverpb.Auth/UserList",
7715 }
7716 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
7717 return srv.(AuthServer).UserList(ctx, req.(*AuthUserListRequest))
7718 }
7719 return interceptor(ctx, in, info, handler)
7720}
7721
7722func _Auth_UserDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
7723 in := new(AuthUserDeleteRequest)
7724 if err := dec(in); err != nil {
7725 return nil, err
7726 }
7727 if interceptor == nil {
7728 return srv.(AuthServer).UserDelete(ctx, in)
7729 }
7730 info := &grpc.UnaryServerInfo{
7731 Server: srv,
7732 FullMethod: "/etcdserverpb.Auth/UserDelete",
7733 }
7734 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
7735 return srv.(AuthServer).UserDelete(ctx, req.(*AuthUserDeleteRequest))
7736 }
7737 return interceptor(ctx, in, info, handler)
7738}
7739
7740func _Auth_UserChangePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
7741 in := new(AuthUserChangePasswordRequest)
7742 if err := dec(in); err != nil {
7743 return nil, err
7744 }
7745 if interceptor == nil {
7746 return srv.(AuthServer).UserChangePassword(ctx, in)
7747 }
7748 info := &grpc.UnaryServerInfo{
7749 Server: srv,
7750 FullMethod: "/etcdserverpb.Auth/UserChangePassword",
7751 }
7752 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
7753 return srv.(AuthServer).UserChangePassword(ctx, req.(*AuthUserChangePasswordRequest))
7754 }
7755 return interceptor(ctx, in, info, handler)
7756}
7757
7758func _Auth_UserGrantRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
7759 in := new(AuthUserGrantRoleRequest)
7760 if err := dec(in); err != nil {
7761 return nil, err
7762 }
7763 if interceptor == nil {
7764 return srv.(AuthServer).UserGrantRole(ctx, in)
7765 }
7766 info := &grpc.UnaryServerInfo{
7767 Server: srv,
7768 FullMethod: "/etcdserverpb.Auth/UserGrantRole",
7769 }
7770 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
7771 return srv.(AuthServer).UserGrantRole(ctx, req.(*AuthUserGrantRoleRequest))
7772 }
7773 return interceptor(ctx, in, info, handler)
7774}
7775
7776func _Auth_UserRevokeRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
7777 in := new(AuthUserRevokeRoleRequest)
7778 if err := dec(in); err != nil {
7779 return nil, err
7780 }
7781 if interceptor == nil {
7782 return srv.(AuthServer).UserRevokeRole(ctx, in)
7783 }
7784 info := &grpc.UnaryServerInfo{
7785 Server: srv,
7786 FullMethod: "/etcdserverpb.Auth/UserRevokeRole",
7787 }
7788 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
7789 return srv.(AuthServer).UserRevokeRole(ctx, req.(*AuthUserRevokeRoleRequest))
7790 }
7791 return interceptor(ctx, in, info, handler)
7792}
7793
7794func _Auth_RoleAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
7795 in := new(AuthRoleAddRequest)
7796 if err := dec(in); err != nil {
7797 return nil, err
7798 }
7799 if interceptor == nil {
7800 return srv.(AuthServer).RoleAdd(ctx, in)
7801 }
7802 info := &grpc.UnaryServerInfo{
7803 Server: srv,
7804 FullMethod: "/etcdserverpb.Auth/RoleAdd",
7805 }
7806 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
7807 return srv.(AuthServer).RoleAdd(ctx, req.(*AuthRoleAddRequest))
7808 }
7809 return interceptor(ctx, in, info, handler)
7810}
7811
7812func _Auth_RoleGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
7813 in := new(AuthRoleGetRequest)
7814 if err := dec(in); err != nil {
7815 return nil, err
7816 }
7817 if interceptor == nil {
7818 return srv.(AuthServer).RoleGet(ctx, in)
7819 }
7820 info := &grpc.UnaryServerInfo{
7821 Server: srv,
7822 FullMethod: "/etcdserverpb.Auth/RoleGet",
7823 }
7824 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
7825 return srv.(AuthServer).RoleGet(ctx, req.(*AuthRoleGetRequest))
7826 }
7827 return interceptor(ctx, in, info, handler)
7828}
7829
7830func _Auth_RoleList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
7831 in := new(AuthRoleListRequest)
7832 if err := dec(in); err != nil {
7833 return nil, err
7834 }
7835 if interceptor == nil {
7836 return srv.(AuthServer).RoleList(ctx, in)
7837 }
7838 info := &grpc.UnaryServerInfo{
7839 Server: srv,
7840 FullMethod: "/etcdserverpb.Auth/RoleList",
7841 }
7842 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
7843 return srv.(AuthServer).RoleList(ctx, req.(*AuthRoleListRequest))
7844 }
7845 return interceptor(ctx, in, info, handler)
7846}
7847
7848func _Auth_RoleDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
7849 in := new(AuthRoleDeleteRequest)
7850 if err := dec(in); err != nil {
7851 return nil, err
7852 }
7853 if interceptor == nil {
7854 return srv.(AuthServer).RoleDelete(ctx, in)
7855 }
7856 info := &grpc.UnaryServerInfo{
7857 Server: srv,
7858 FullMethod: "/etcdserverpb.Auth/RoleDelete",
7859 }
7860 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
7861 return srv.(AuthServer).RoleDelete(ctx, req.(*AuthRoleDeleteRequest))
7862 }
7863 return interceptor(ctx, in, info, handler)
7864}
7865
7866func _Auth_RoleGrantPermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
7867 in := new(AuthRoleGrantPermissionRequest)
7868 if err := dec(in); err != nil {
7869 return nil, err
7870 }
7871 if interceptor == nil {
7872 return srv.(AuthServer).RoleGrantPermission(ctx, in)
7873 }
7874 info := &grpc.UnaryServerInfo{
7875 Server: srv,
7876 FullMethod: "/etcdserverpb.Auth/RoleGrantPermission",
7877 }
7878 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
7879 return srv.(AuthServer).RoleGrantPermission(ctx, req.(*AuthRoleGrantPermissionRequest))
7880 }
7881 return interceptor(ctx, in, info, handler)
7882}
7883
7884func _Auth_RoleRevokePermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
7885 in := new(AuthRoleRevokePermissionRequest)
7886 if err := dec(in); err != nil {
7887 return nil, err
7888 }
7889 if interceptor == nil {
7890 return srv.(AuthServer).RoleRevokePermission(ctx, in)
7891 }
7892 info := &grpc.UnaryServerInfo{
7893 Server: srv,
7894 FullMethod: "/etcdserverpb.Auth/RoleRevokePermission",
7895 }
7896 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
7897 return srv.(AuthServer).RoleRevokePermission(ctx, req.(*AuthRoleRevokePermissionRequest))
7898 }
7899 return interceptor(ctx, in, info, handler)
7900}
7901
7902var _Auth_serviceDesc = grpc.ServiceDesc{
7903 ServiceName: "etcdserverpb.Auth",
7904 HandlerType: (*AuthServer)(nil),
7905 Methods: []grpc.MethodDesc{
7906 {
7907 MethodName: "AuthEnable",
7908 Handler: _Auth_AuthEnable_Handler,
7909 },
7910 {
7911 MethodName: "AuthDisable",
7912 Handler: _Auth_AuthDisable_Handler,
7913 },
7914 {
7915 MethodName: "Authenticate",
7916 Handler: _Auth_Authenticate_Handler,
7917 },
7918 {
7919 MethodName: "UserAdd",
7920 Handler: _Auth_UserAdd_Handler,
7921 },
7922 {
7923 MethodName: "UserGet",
7924 Handler: _Auth_UserGet_Handler,
7925 },
7926 {
7927 MethodName: "UserList",
7928 Handler: _Auth_UserList_Handler,
7929 },
7930 {
7931 MethodName: "UserDelete",
7932 Handler: _Auth_UserDelete_Handler,
7933 },
7934 {
7935 MethodName: "UserChangePassword",
7936 Handler: _Auth_UserChangePassword_Handler,
7937 },
7938 {
7939 MethodName: "UserGrantRole",
7940 Handler: _Auth_UserGrantRole_Handler,
7941 },
7942 {
7943 MethodName: "UserRevokeRole",
7944 Handler: _Auth_UserRevokeRole_Handler,
7945 },
7946 {
7947 MethodName: "RoleAdd",
7948 Handler: _Auth_RoleAdd_Handler,
7949 },
7950 {
7951 MethodName: "RoleGet",
7952 Handler: _Auth_RoleGet_Handler,
7953 },
7954 {
7955 MethodName: "RoleList",
7956 Handler: _Auth_RoleList_Handler,
7957 },
7958 {
7959 MethodName: "RoleDelete",
7960 Handler: _Auth_RoleDelete_Handler,
7961 },
7962 {
7963 MethodName: "RoleGrantPermission",
7964 Handler: _Auth_RoleGrantPermission_Handler,
7965 },
7966 {
7967 MethodName: "RoleRevokePermission",
7968 Handler: _Auth_RoleRevokePermission_Handler,
7969 },
7970 },
7971 Streams: []grpc.StreamDesc{},
7972 Metadata: "rpc.proto",
7973}
7974
7975func (m *ResponseHeader) Marshal() (dAtA []byte, err error) {
7976 size := m.Size()
7977 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007978 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00007979 if err != nil {
7980 return nil, err
7981 }
7982 return dAtA[:n], nil
7983}
7984
7985func (m *ResponseHeader) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007986 size := m.Size()
7987 return m.MarshalToSizedBuffer(dAtA[:size])
7988}
7989
7990func (m *ResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) {
7991 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00007992 _ = i
7993 var l int
7994 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00007995 if m.XXX_unrecognized != nil {
7996 i -= len(m.XXX_unrecognized)
7997 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00007998 }
7999 if m.RaftTerm != 0 {
divyadesai81bb7ba2020-03-11 11:45:23 +00008000 i = encodeVarintRpc(dAtA, i, uint64(m.RaftTerm))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008001 i--
8002 dAtA[i] = 0x20
divyadesai81bb7ba2020-03-11 11:45:23 +00008003 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008004 if m.Revision != 0 {
8005 i = encodeVarintRpc(dAtA, i, uint64(m.Revision))
8006 i--
8007 dAtA[i] = 0x18
8008 }
8009 if m.MemberId != 0 {
8010 i = encodeVarintRpc(dAtA, i, uint64(m.MemberId))
8011 i--
8012 dAtA[i] = 0x10
8013 }
8014 if m.ClusterId != 0 {
8015 i = encodeVarintRpc(dAtA, i, uint64(m.ClusterId))
8016 i--
8017 dAtA[i] = 0x8
8018 }
8019 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008020}
8021
8022func (m *RangeRequest) Marshal() (dAtA []byte, err error) {
8023 size := m.Size()
8024 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008025 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00008026 if err != nil {
8027 return nil, err
8028 }
8029 return dAtA[:n], nil
8030}
8031
8032func (m *RangeRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008033 size := m.Size()
8034 return m.MarshalToSizedBuffer(dAtA[:size])
8035}
8036
8037func (m *RangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8038 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008039 _ = i
8040 var l int
8041 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008042 if m.XXX_unrecognized != nil {
8043 i -= len(m.XXX_unrecognized)
8044 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00008045 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008046 if m.MaxCreateRevision != 0 {
8047 i = encodeVarintRpc(dAtA, i, uint64(m.MaxCreateRevision))
8048 i--
8049 dAtA[i] = 0x68
divyadesai81bb7ba2020-03-11 11:45:23 +00008050 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008051 if m.MinCreateRevision != 0 {
8052 i = encodeVarintRpc(dAtA, i, uint64(m.MinCreateRevision))
8053 i--
8054 dAtA[i] = 0x60
divyadesai81bb7ba2020-03-11 11:45:23 +00008055 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008056 if m.MaxModRevision != 0 {
8057 i = encodeVarintRpc(dAtA, i, uint64(m.MaxModRevision))
8058 i--
8059 dAtA[i] = 0x58
divyadesai81bb7ba2020-03-11 11:45:23 +00008060 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008061 if m.MinModRevision != 0 {
8062 i = encodeVarintRpc(dAtA, i, uint64(m.MinModRevision))
8063 i--
8064 dAtA[i] = 0x50
divyadesai81bb7ba2020-03-11 11:45:23 +00008065 }
8066 if m.CountOnly {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008067 i--
divyadesai81bb7ba2020-03-11 11:45:23 +00008068 if m.CountOnly {
8069 dAtA[i] = 1
8070 } else {
8071 dAtA[i] = 0
8072 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008073 i--
8074 dAtA[i] = 0x48
divyadesai81bb7ba2020-03-11 11:45:23 +00008075 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008076 if m.KeysOnly {
8077 i--
8078 if m.KeysOnly {
8079 dAtA[i] = 1
8080 } else {
8081 dAtA[i] = 0
8082 }
8083 i--
8084 dAtA[i] = 0x40
divyadesai81bb7ba2020-03-11 11:45:23 +00008085 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008086 if m.Serializable {
8087 i--
8088 if m.Serializable {
8089 dAtA[i] = 1
8090 } else {
8091 dAtA[i] = 0
8092 }
8093 i--
8094 dAtA[i] = 0x38
divyadesai81bb7ba2020-03-11 11:45:23 +00008095 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008096 if m.SortTarget != 0 {
8097 i = encodeVarintRpc(dAtA, i, uint64(m.SortTarget))
8098 i--
8099 dAtA[i] = 0x30
divyadesai81bb7ba2020-03-11 11:45:23 +00008100 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008101 if m.SortOrder != 0 {
8102 i = encodeVarintRpc(dAtA, i, uint64(m.SortOrder))
8103 i--
8104 dAtA[i] = 0x28
divyadesai81bb7ba2020-03-11 11:45:23 +00008105 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008106 if m.Revision != 0 {
8107 i = encodeVarintRpc(dAtA, i, uint64(m.Revision))
8108 i--
8109 dAtA[i] = 0x20
8110 }
8111 if m.Limit != 0 {
8112 i = encodeVarintRpc(dAtA, i, uint64(m.Limit))
8113 i--
8114 dAtA[i] = 0x18
8115 }
8116 if len(m.RangeEnd) > 0 {
8117 i -= len(m.RangeEnd)
8118 copy(dAtA[i:], m.RangeEnd)
8119 i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd)))
8120 i--
8121 dAtA[i] = 0x12
8122 }
8123 if len(m.Key) > 0 {
8124 i -= len(m.Key)
8125 copy(dAtA[i:], m.Key)
8126 i = encodeVarintRpc(dAtA, i, uint64(len(m.Key)))
8127 i--
8128 dAtA[i] = 0xa
8129 }
8130 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008131}
8132
8133func (m *RangeResponse) Marshal() (dAtA []byte, err error) {
8134 size := m.Size()
8135 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008136 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00008137 if err != nil {
8138 return nil, err
8139 }
8140 return dAtA[:n], nil
8141}
8142
8143func (m *RangeResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008144 size := m.Size()
8145 return m.MarshalToSizedBuffer(dAtA[:size])
8146}
8147
8148func (m *RangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8149 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008150 _ = i
8151 var l int
8152 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008153 if m.XXX_unrecognized != nil {
8154 i -= len(m.XXX_unrecognized)
8155 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00008156 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008157 if m.Count != 0 {
8158 i = encodeVarintRpc(dAtA, i, uint64(m.Count))
8159 i--
8160 dAtA[i] = 0x20
divyadesai81bb7ba2020-03-11 11:45:23 +00008161 }
8162 if m.More {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008163 i--
divyadesai81bb7ba2020-03-11 11:45:23 +00008164 if m.More {
8165 dAtA[i] = 1
8166 } else {
8167 dAtA[i] = 0
8168 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008169 i--
8170 dAtA[i] = 0x18
divyadesai81bb7ba2020-03-11 11:45:23 +00008171 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008172 if len(m.Kvs) > 0 {
8173 for iNdEx := len(m.Kvs) - 1; iNdEx >= 0; iNdEx-- {
8174 {
8175 size, err := m.Kvs[iNdEx].MarshalToSizedBuffer(dAtA[:i])
8176 if err != nil {
8177 return 0, err
8178 }
8179 i -= size
8180 i = encodeVarintRpc(dAtA, i, uint64(size))
8181 }
8182 i--
8183 dAtA[i] = 0x12
8184 }
divyadesai81bb7ba2020-03-11 11:45:23 +00008185 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008186 if m.Header != nil {
8187 {
8188 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
8189 if err != nil {
8190 return 0, err
8191 }
8192 i -= size
8193 i = encodeVarintRpc(dAtA, i, uint64(size))
8194 }
8195 i--
8196 dAtA[i] = 0xa
8197 }
8198 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008199}
8200
8201func (m *PutRequest) Marshal() (dAtA []byte, err error) {
8202 size := m.Size()
8203 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008204 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00008205 if err != nil {
8206 return nil, err
8207 }
8208 return dAtA[:n], nil
8209}
8210
8211func (m *PutRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008212 size := m.Size()
8213 return m.MarshalToSizedBuffer(dAtA[:size])
8214}
8215
8216func (m *PutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8217 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008218 _ = i
8219 var l int
8220 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008221 if m.XXX_unrecognized != nil {
8222 i -= len(m.XXX_unrecognized)
8223 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00008224 }
8225 if m.IgnoreLease {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008226 i--
divyadesai81bb7ba2020-03-11 11:45:23 +00008227 if m.IgnoreLease {
8228 dAtA[i] = 1
8229 } else {
8230 dAtA[i] = 0
8231 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008232 i--
8233 dAtA[i] = 0x30
divyadesai81bb7ba2020-03-11 11:45:23 +00008234 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008235 if m.IgnoreValue {
8236 i--
8237 if m.IgnoreValue {
8238 dAtA[i] = 1
8239 } else {
8240 dAtA[i] = 0
8241 }
8242 i--
8243 dAtA[i] = 0x28
8244 }
8245 if m.PrevKv {
8246 i--
8247 if m.PrevKv {
8248 dAtA[i] = 1
8249 } else {
8250 dAtA[i] = 0
8251 }
8252 i--
8253 dAtA[i] = 0x20
8254 }
8255 if m.Lease != 0 {
8256 i = encodeVarintRpc(dAtA, i, uint64(m.Lease))
8257 i--
8258 dAtA[i] = 0x18
8259 }
8260 if len(m.Value) > 0 {
8261 i -= len(m.Value)
8262 copy(dAtA[i:], m.Value)
8263 i = encodeVarintRpc(dAtA, i, uint64(len(m.Value)))
8264 i--
8265 dAtA[i] = 0x12
8266 }
8267 if len(m.Key) > 0 {
8268 i -= len(m.Key)
8269 copy(dAtA[i:], m.Key)
8270 i = encodeVarintRpc(dAtA, i, uint64(len(m.Key)))
8271 i--
8272 dAtA[i] = 0xa
8273 }
8274 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008275}
8276
8277func (m *PutResponse) Marshal() (dAtA []byte, err error) {
8278 size := m.Size()
8279 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008280 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00008281 if err != nil {
8282 return nil, err
8283 }
8284 return dAtA[:n], nil
8285}
8286
8287func (m *PutResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008288 size := m.Size()
8289 return m.MarshalToSizedBuffer(dAtA[:size])
8290}
8291
8292func (m *PutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8293 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008294 _ = i
8295 var l int
8296 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008297 if m.XXX_unrecognized != nil {
8298 i -= len(m.XXX_unrecognized)
8299 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00008300 }
8301 if m.PrevKv != nil {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008302 {
8303 size, err := m.PrevKv.MarshalToSizedBuffer(dAtA[:i])
8304 if err != nil {
8305 return 0, err
8306 }
8307 i -= size
8308 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +00008309 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008310 i--
8311 dAtA[i] = 0x12
divyadesai81bb7ba2020-03-11 11:45:23 +00008312 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008313 if m.Header != nil {
8314 {
8315 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
8316 if err != nil {
8317 return 0, err
8318 }
8319 i -= size
8320 i = encodeVarintRpc(dAtA, i, uint64(size))
8321 }
8322 i--
8323 dAtA[i] = 0xa
8324 }
8325 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008326}
8327
8328func (m *DeleteRangeRequest) Marshal() (dAtA []byte, err error) {
8329 size := m.Size()
8330 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008331 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00008332 if err != nil {
8333 return nil, err
8334 }
8335 return dAtA[:n], nil
8336}
8337
8338func (m *DeleteRangeRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008339 size := m.Size()
8340 return m.MarshalToSizedBuffer(dAtA[:size])
8341}
8342
8343func (m *DeleteRangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8344 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008345 _ = i
8346 var l int
8347 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008348 if m.XXX_unrecognized != nil {
8349 i -= len(m.XXX_unrecognized)
8350 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00008351 }
8352 if m.PrevKv {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008353 i--
divyadesai81bb7ba2020-03-11 11:45:23 +00008354 if m.PrevKv {
8355 dAtA[i] = 1
8356 } else {
8357 dAtA[i] = 0
8358 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008359 i--
8360 dAtA[i] = 0x18
divyadesai81bb7ba2020-03-11 11:45:23 +00008361 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008362 if len(m.RangeEnd) > 0 {
8363 i -= len(m.RangeEnd)
8364 copy(dAtA[i:], m.RangeEnd)
8365 i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd)))
8366 i--
8367 dAtA[i] = 0x12
8368 }
8369 if len(m.Key) > 0 {
8370 i -= len(m.Key)
8371 copy(dAtA[i:], m.Key)
8372 i = encodeVarintRpc(dAtA, i, uint64(len(m.Key)))
8373 i--
8374 dAtA[i] = 0xa
8375 }
8376 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008377}
8378
8379func (m *DeleteRangeResponse) Marshal() (dAtA []byte, err error) {
8380 size := m.Size()
8381 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008382 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00008383 if err != nil {
8384 return nil, err
8385 }
8386 return dAtA[:n], nil
8387}
8388
8389func (m *DeleteRangeResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008390 size := m.Size()
8391 return m.MarshalToSizedBuffer(dAtA[:size])
8392}
8393
8394func (m *DeleteRangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8395 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008396 _ = i
8397 var l int
8398 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008399 if m.XXX_unrecognized != nil {
8400 i -= len(m.XXX_unrecognized)
8401 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00008402 }
8403 if len(m.PrevKvs) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008404 for iNdEx := len(m.PrevKvs) - 1; iNdEx >= 0; iNdEx-- {
8405 {
8406 size, err := m.PrevKvs[iNdEx].MarshalToSizedBuffer(dAtA[:i])
8407 if err != nil {
8408 return 0, err
8409 }
8410 i -= size
8411 i = encodeVarintRpc(dAtA, i, uint64(size))
8412 }
8413 i--
divyadesai81bb7ba2020-03-11 11:45:23 +00008414 dAtA[i] = 0x1a
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008415 }
8416 }
8417 if m.Deleted != 0 {
8418 i = encodeVarintRpc(dAtA, i, uint64(m.Deleted))
8419 i--
8420 dAtA[i] = 0x10
8421 }
8422 if m.Header != nil {
8423 {
8424 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
divyadesai81bb7ba2020-03-11 11:45:23 +00008425 if err != nil {
8426 return 0, err
8427 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008428 i -= size
8429 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +00008430 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008431 i--
8432 dAtA[i] = 0xa
divyadesai81bb7ba2020-03-11 11:45:23 +00008433 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008434 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008435}
8436
8437func (m *RequestOp) Marshal() (dAtA []byte, err error) {
8438 size := m.Size()
8439 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008440 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00008441 if err != nil {
8442 return nil, err
8443 }
8444 return dAtA[:n], nil
8445}
8446
8447func (m *RequestOp) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008448 size := m.Size()
8449 return m.MarshalToSizedBuffer(dAtA[:size])
8450}
8451
8452func (m *RequestOp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8453 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008454 _ = i
8455 var l int
8456 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008457 if m.XXX_unrecognized != nil {
8458 i -= len(m.XXX_unrecognized)
8459 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00008460 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008461 if m.Request != nil {
8462 {
8463 size := m.Request.Size()
8464 i -= size
8465 if _, err := m.Request.MarshalTo(dAtA[i:]); err != nil {
8466 return 0, err
8467 }
8468 }
8469 }
8470 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008471}
8472
8473func (m *RequestOp_RequestRange) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008474 return m.MarshalToSizedBuffer(dAtA[:m.Size()])
8475}
8476
8477func (m *RequestOp_RequestRange) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8478 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008479 if m.RequestRange != nil {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008480 {
8481 size, err := m.RequestRange.MarshalToSizedBuffer(dAtA[:i])
8482 if err != nil {
8483 return 0, err
8484 }
8485 i -= size
8486 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +00008487 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008488 i--
8489 dAtA[i] = 0xa
divyadesai81bb7ba2020-03-11 11:45:23 +00008490 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008491 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008492}
8493func (m *RequestOp_RequestPut) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008494 return m.MarshalToSizedBuffer(dAtA[:m.Size()])
8495}
8496
8497func (m *RequestOp_RequestPut) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8498 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008499 if m.RequestPut != nil {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008500 {
8501 size, err := m.RequestPut.MarshalToSizedBuffer(dAtA[:i])
8502 if err != nil {
8503 return 0, err
8504 }
8505 i -= size
8506 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +00008507 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008508 i--
8509 dAtA[i] = 0x12
divyadesai81bb7ba2020-03-11 11:45:23 +00008510 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008511 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008512}
8513func (m *RequestOp_RequestDeleteRange) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008514 return m.MarshalToSizedBuffer(dAtA[:m.Size()])
8515}
8516
8517func (m *RequestOp_RequestDeleteRange) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8518 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008519 if m.RequestDeleteRange != nil {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008520 {
8521 size, err := m.RequestDeleteRange.MarshalToSizedBuffer(dAtA[:i])
8522 if err != nil {
8523 return 0, err
8524 }
8525 i -= size
8526 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +00008527 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008528 i--
8529 dAtA[i] = 0x1a
divyadesai81bb7ba2020-03-11 11:45:23 +00008530 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008531 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008532}
8533func (m *RequestOp_RequestTxn) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008534 return m.MarshalToSizedBuffer(dAtA[:m.Size()])
8535}
8536
8537func (m *RequestOp_RequestTxn) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8538 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008539 if m.RequestTxn != nil {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008540 {
8541 size, err := m.RequestTxn.MarshalToSizedBuffer(dAtA[:i])
8542 if err != nil {
8543 return 0, err
8544 }
8545 i -= size
8546 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +00008547 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008548 i--
8549 dAtA[i] = 0x22
divyadesai81bb7ba2020-03-11 11:45:23 +00008550 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008551 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008552}
8553func (m *ResponseOp) Marshal() (dAtA []byte, err error) {
8554 size := m.Size()
8555 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008556 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00008557 if err != nil {
8558 return nil, err
8559 }
8560 return dAtA[:n], nil
8561}
8562
8563func (m *ResponseOp) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008564 size := m.Size()
8565 return m.MarshalToSizedBuffer(dAtA[:size])
8566}
8567
8568func (m *ResponseOp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8569 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008570 _ = i
8571 var l int
8572 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008573 if m.XXX_unrecognized != nil {
8574 i -= len(m.XXX_unrecognized)
8575 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00008576 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008577 if m.Response != nil {
8578 {
8579 size := m.Response.Size()
8580 i -= size
8581 if _, err := m.Response.MarshalTo(dAtA[i:]); err != nil {
8582 return 0, err
8583 }
8584 }
8585 }
8586 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008587}
8588
8589func (m *ResponseOp_ResponseRange) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008590 return m.MarshalToSizedBuffer(dAtA[:m.Size()])
8591}
8592
8593func (m *ResponseOp_ResponseRange) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8594 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008595 if m.ResponseRange != nil {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008596 {
8597 size, err := m.ResponseRange.MarshalToSizedBuffer(dAtA[:i])
8598 if err != nil {
8599 return 0, err
8600 }
8601 i -= size
8602 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +00008603 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008604 i--
8605 dAtA[i] = 0xa
divyadesai81bb7ba2020-03-11 11:45:23 +00008606 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008607 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008608}
8609func (m *ResponseOp_ResponsePut) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008610 return m.MarshalToSizedBuffer(dAtA[:m.Size()])
8611}
8612
8613func (m *ResponseOp_ResponsePut) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8614 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008615 if m.ResponsePut != nil {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008616 {
8617 size, err := m.ResponsePut.MarshalToSizedBuffer(dAtA[:i])
8618 if err != nil {
8619 return 0, err
8620 }
8621 i -= size
8622 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +00008623 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008624 i--
8625 dAtA[i] = 0x12
divyadesai81bb7ba2020-03-11 11:45:23 +00008626 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008627 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008628}
8629func (m *ResponseOp_ResponseDeleteRange) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008630 return m.MarshalToSizedBuffer(dAtA[:m.Size()])
8631}
8632
8633func (m *ResponseOp_ResponseDeleteRange) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8634 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008635 if m.ResponseDeleteRange != nil {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008636 {
8637 size, err := m.ResponseDeleteRange.MarshalToSizedBuffer(dAtA[:i])
8638 if err != nil {
8639 return 0, err
8640 }
8641 i -= size
8642 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +00008643 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008644 i--
8645 dAtA[i] = 0x1a
divyadesai81bb7ba2020-03-11 11:45:23 +00008646 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008647 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008648}
8649func (m *ResponseOp_ResponseTxn) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008650 return m.MarshalToSizedBuffer(dAtA[:m.Size()])
8651}
8652
8653func (m *ResponseOp_ResponseTxn) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8654 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008655 if m.ResponseTxn != nil {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008656 {
8657 size, err := m.ResponseTxn.MarshalToSizedBuffer(dAtA[:i])
8658 if err != nil {
8659 return 0, err
8660 }
8661 i -= size
8662 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +00008663 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008664 i--
8665 dAtA[i] = 0x22
divyadesai81bb7ba2020-03-11 11:45:23 +00008666 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008667 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008668}
8669func (m *Compare) Marshal() (dAtA []byte, err error) {
8670 size := m.Size()
8671 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008672 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00008673 if err != nil {
8674 return nil, err
8675 }
8676 return dAtA[:n], nil
8677}
8678
8679func (m *Compare) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008680 size := m.Size()
8681 return m.MarshalToSizedBuffer(dAtA[:size])
8682}
8683
8684func (m *Compare) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8685 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008686 _ = i
8687 var l int
8688 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008689 if m.XXX_unrecognized != nil {
8690 i -= len(m.XXX_unrecognized)
8691 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00008692 }
8693 if len(m.RangeEnd) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008694 i -= len(m.RangeEnd)
8695 copy(dAtA[i:], m.RangeEnd)
divyadesai81bb7ba2020-03-11 11:45:23 +00008696 i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd)))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008697 i--
8698 dAtA[i] = 0x4
8699 i--
8700 dAtA[i] = 0x82
divyadesai81bb7ba2020-03-11 11:45:23 +00008701 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008702 if m.TargetUnion != nil {
8703 {
8704 size := m.TargetUnion.Size()
8705 i -= size
8706 if _, err := m.TargetUnion.MarshalTo(dAtA[i:]); err != nil {
8707 return 0, err
8708 }
8709 }
8710 }
8711 if len(m.Key) > 0 {
8712 i -= len(m.Key)
8713 copy(dAtA[i:], m.Key)
8714 i = encodeVarintRpc(dAtA, i, uint64(len(m.Key)))
8715 i--
8716 dAtA[i] = 0x1a
8717 }
8718 if m.Target != 0 {
8719 i = encodeVarintRpc(dAtA, i, uint64(m.Target))
8720 i--
8721 dAtA[i] = 0x10
8722 }
8723 if m.Result != 0 {
8724 i = encodeVarintRpc(dAtA, i, uint64(m.Result))
8725 i--
8726 dAtA[i] = 0x8
8727 }
8728 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008729}
8730
8731func (m *Compare_Version) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008732 return m.MarshalToSizedBuffer(dAtA[:m.Size()])
8733}
8734
8735func (m *Compare_Version) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8736 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008737 i = encodeVarintRpc(dAtA, i, uint64(m.Version))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008738 i--
8739 dAtA[i] = 0x20
8740 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008741}
8742func (m *Compare_CreateRevision) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008743 return m.MarshalToSizedBuffer(dAtA[:m.Size()])
8744}
8745
8746func (m *Compare_CreateRevision) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8747 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008748 i = encodeVarintRpc(dAtA, i, uint64(m.CreateRevision))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008749 i--
8750 dAtA[i] = 0x28
8751 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008752}
8753func (m *Compare_ModRevision) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008754 return m.MarshalToSizedBuffer(dAtA[:m.Size()])
8755}
8756
8757func (m *Compare_ModRevision) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8758 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008759 i = encodeVarintRpc(dAtA, i, uint64(m.ModRevision))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008760 i--
8761 dAtA[i] = 0x30
8762 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008763}
8764func (m *Compare_Value) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008765 return m.MarshalToSizedBuffer(dAtA[:m.Size()])
8766}
8767
8768func (m *Compare_Value) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8769 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008770 if m.Value != nil {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008771 i -= len(m.Value)
8772 copy(dAtA[i:], m.Value)
divyadesai81bb7ba2020-03-11 11:45:23 +00008773 i = encodeVarintRpc(dAtA, i, uint64(len(m.Value)))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008774 i--
8775 dAtA[i] = 0x3a
divyadesai81bb7ba2020-03-11 11:45:23 +00008776 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008777 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008778}
8779func (m *Compare_Lease) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008780 return m.MarshalToSizedBuffer(dAtA[:m.Size()])
8781}
8782
8783func (m *Compare_Lease) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8784 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008785 i = encodeVarintRpc(dAtA, i, uint64(m.Lease))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008786 i--
8787 dAtA[i] = 0x40
8788 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008789}
8790func (m *TxnRequest) Marshal() (dAtA []byte, err error) {
8791 size := m.Size()
8792 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008793 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00008794 if err != nil {
8795 return nil, err
8796 }
8797 return dAtA[:n], nil
8798}
8799
8800func (m *TxnRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008801 size := m.Size()
8802 return m.MarshalToSizedBuffer(dAtA[:size])
8803}
8804
8805func (m *TxnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8806 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008807 _ = i
8808 var l int
8809 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008810 if m.XXX_unrecognized != nil {
8811 i -= len(m.XXX_unrecognized)
8812 copy(dAtA[i:], m.XXX_unrecognized)
8813 }
8814 if len(m.Failure) > 0 {
8815 for iNdEx := len(m.Failure) - 1; iNdEx >= 0; iNdEx-- {
8816 {
8817 size, err := m.Failure[iNdEx].MarshalToSizedBuffer(dAtA[:i])
8818 if err != nil {
8819 return 0, err
8820 }
8821 i -= size
8822 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +00008823 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008824 i--
8825 dAtA[i] = 0x1a
divyadesai81bb7ba2020-03-11 11:45:23 +00008826 }
8827 }
8828 if len(m.Success) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008829 for iNdEx := len(m.Success) - 1; iNdEx >= 0; iNdEx-- {
8830 {
8831 size, err := m.Success[iNdEx].MarshalToSizedBuffer(dAtA[:i])
8832 if err != nil {
8833 return 0, err
8834 }
8835 i -= size
8836 i = encodeVarintRpc(dAtA, i, uint64(size))
8837 }
8838 i--
divyadesai81bb7ba2020-03-11 11:45:23 +00008839 dAtA[i] = 0x12
divyadesai81bb7ba2020-03-11 11:45:23 +00008840 }
8841 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008842 if len(m.Compare) > 0 {
8843 for iNdEx := len(m.Compare) - 1; iNdEx >= 0; iNdEx-- {
8844 {
8845 size, err := m.Compare[iNdEx].MarshalToSizedBuffer(dAtA[:i])
8846 if err != nil {
8847 return 0, err
8848 }
8849 i -= size
8850 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +00008851 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008852 i--
8853 dAtA[i] = 0xa
divyadesai81bb7ba2020-03-11 11:45:23 +00008854 }
8855 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008856 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008857}
8858
8859func (m *TxnResponse) Marshal() (dAtA []byte, err error) {
8860 size := m.Size()
8861 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008862 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00008863 if err != nil {
8864 return nil, err
8865 }
8866 return dAtA[:n], nil
8867}
8868
8869func (m *TxnResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008870 size := m.Size()
8871 return m.MarshalToSizedBuffer(dAtA[:size])
8872}
8873
8874func (m *TxnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8875 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008876 _ = i
8877 var l int
8878 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008879 if m.XXX_unrecognized != nil {
8880 i -= len(m.XXX_unrecognized)
8881 copy(dAtA[i:], m.XXX_unrecognized)
8882 }
8883 if len(m.Responses) > 0 {
8884 for iNdEx := len(m.Responses) - 1; iNdEx >= 0; iNdEx-- {
8885 {
8886 size, err := m.Responses[iNdEx].MarshalToSizedBuffer(dAtA[:i])
8887 if err != nil {
8888 return 0, err
8889 }
8890 i -= size
8891 i = encodeVarintRpc(dAtA, i, uint64(size))
8892 }
8893 i--
8894 dAtA[i] = 0x1a
divyadesai81bb7ba2020-03-11 11:45:23 +00008895 }
divyadesai81bb7ba2020-03-11 11:45:23 +00008896 }
8897 if m.Succeeded {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008898 i--
divyadesai81bb7ba2020-03-11 11:45:23 +00008899 if m.Succeeded {
8900 dAtA[i] = 1
8901 } else {
8902 dAtA[i] = 0
8903 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008904 i--
8905 dAtA[i] = 0x10
divyadesai81bb7ba2020-03-11 11:45:23 +00008906 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008907 if m.Header != nil {
8908 {
8909 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
divyadesai81bb7ba2020-03-11 11:45:23 +00008910 if err != nil {
8911 return 0, err
8912 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008913 i -= size
8914 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +00008915 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008916 i--
8917 dAtA[i] = 0xa
divyadesai81bb7ba2020-03-11 11:45:23 +00008918 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008919 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008920}
8921
8922func (m *CompactionRequest) Marshal() (dAtA []byte, err error) {
8923 size := m.Size()
8924 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008925 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00008926 if err != nil {
8927 return nil, err
8928 }
8929 return dAtA[:n], nil
8930}
8931
8932func (m *CompactionRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008933 size := m.Size()
8934 return m.MarshalToSizedBuffer(dAtA[:size])
8935}
8936
8937func (m *CompactionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8938 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008939 _ = i
8940 var l int
8941 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008942 if m.XXX_unrecognized != nil {
8943 i -= len(m.XXX_unrecognized)
8944 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00008945 }
8946 if m.Physical {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008947 i--
divyadesai81bb7ba2020-03-11 11:45:23 +00008948 if m.Physical {
8949 dAtA[i] = 1
8950 } else {
8951 dAtA[i] = 0
8952 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008953 i--
8954 dAtA[i] = 0x10
divyadesai81bb7ba2020-03-11 11:45:23 +00008955 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008956 if m.Revision != 0 {
8957 i = encodeVarintRpc(dAtA, i, uint64(m.Revision))
8958 i--
8959 dAtA[i] = 0x8
8960 }
8961 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00008962}
8963
8964func (m *CompactionResponse) Marshal() (dAtA []byte, err error) {
8965 size := m.Size()
8966 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008967 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00008968 if err != nil {
8969 return nil, err
8970 }
8971 return dAtA[:n], nil
8972}
8973
8974func (m *CompactionResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008975 size := m.Size()
8976 return m.MarshalToSizedBuffer(dAtA[:size])
8977}
8978
8979func (m *CompactionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
8980 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00008981 _ = i
8982 var l int
8983 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008984 if m.XXX_unrecognized != nil {
8985 i -= len(m.XXX_unrecognized)
8986 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00008987 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00008988 if m.Header != nil {
8989 {
8990 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
8991 if err != nil {
8992 return 0, err
8993 }
8994 i -= size
8995 i = encodeVarintRpc(dAtA, i, uint64(size))
8996 }
8997 i--
8998 dAtA[i] = 0xa
8999 }
9000 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009001}
9002
9003func (m *HashRequest) Marshal() (dAtA []byte, err error) {
9004 size := m.Size()
9005 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009006 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00009007 if err != nil {
9008 return nil, err
9009 }
9010 return dAtA[:n], nil
9011}
9012
9013func (m *HashRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009014 size := m.Size()
9015 return m.MarshalToSizedBuffer(dAtA[:size])
9016}
9017
9018func (m *HashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9019 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009020 _ = i
9021 var l int
9022 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009023 if m.XXX_unrecognized != nil {
9024 i -= len(m.XXX_unrecognized)
9025 copy(dAtA[i:], m.XXX_unrecognized)
9026 }
9027 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009028}
9029
9030func (m *HashKVRequest) Marshal() (dAtA []byte, err error) {
9031 size := m.Size()
9032 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009033 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00009034 if err != nil {
9035 return nil, err
9036 }
9037 return dAtA[:n], nil
9038}
9039
9040func (m *HashKVRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009041 size := m.Size()
9042 return m.MarshalToSizedBuffer(dAtA[:size])
9043}
9044
9045func (m *HashKVRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9046 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009047 _ = i
9048 var l int
9049 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009050 if m.XXX_unrecognized != nil {
9051 i -= len(m.XXX_unrecognized)
9052 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00009053 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009054 if m.Revision != 0 {
9055 i = encodeVarintRpc(dAtA, i, uint64(m.Revision))
9056 i--
9057 dAtA[i] = 0x8
9058 }
9059 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009060}
9061
9062func (m *HashKVResponse) Marshal() (dAtA []byte, err error) {
9063 size := m.Size()
9064 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009065 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00009066 if err != nil {
9067 return nil, err
9068 }
9069 return dAtA[:n], nil
9070}
9071
9072func (m *HashKVResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009073 size := m.Size()
9074 return m.MarshalToSizedBuffer(dAtA[:size])
9075}
9076
9077func (m *HashKVResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9078 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009079 _ = i
9080 var l int
9081 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009082 if m.XXX_unrecognized != nil {
9083 i -= len(m.XXX_unrecognized)
9084 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00009085 }
9086 if m.CompactRevision != 0 {
divyadesai81bb7ba2020-03-11 11:45:23 +00009087 i = encodeVarintRpc(dAtA, i, uint64(m.CompactRevision))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009088 i--
9089 dAtA[i] = 0x18
divyadesai81bb7ba2020-03-11 11:45:23 +00009090 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009091 if m.Hash != 0 {
9092 i = encodeVarintRpc(dAtA, i, uint64(m.Hash))
9093 i--
9094 dAtA[i] = 0x10
9095 }
9096 if m.Header != nil {
9097 {
9098 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
9099 if err != nil {
9100 return 0, err
9101 }
9102 i -= size
9103 i = encodeVarintRpc(dAtA, i, uint64(size))
9104 }
9105 i--
9106 dAtA[i] = 0xa
9107 }
9108 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009109}
9110
9111func (m *HashResponse) Marshal() (dAtA []byte, err error) {
9112 size := m.Size()
9113 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009114 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00009115 if err != nil {
9116 return nil, err
9117 }
9118 return dAtA[:n], nil
9119}
9120
9121func (m *HashResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009122 size := m.Size()
9123 return m.MarshalToSizedBuffer(dAtA[:size])
9124}
9125
9126func (m *HashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9127 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009128 _ = i
9129 var l int
9130 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009131 if m.XXX_unrecognized != nil {
9132 i -= len(m.XXX_unrecognized)
9133 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00009134 }
9135 if m.Hash != 0 {
divyadesai81bb7ba2020-03-11 11:45:23 +00009136 i = encodeVarintRpc(dAtA, i, uint64(m.Hash))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009137 i--
9138 dAtA[i] = 0x10
divyadesai81bb7ba2020-03-11 11:45:23 +00009139 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009140 if m.Header != nil {
9141 {
9142 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
9143 if err != nil {
9144 return 0, err
9145 }
9146 i -= size
9147 i = encodeVarintRpc(dAtA, i, uint64(size))
9148 }
9149 i--
9150 dAtA[i] = 0xa
9151 }
9152 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009153}
9154
9155func (m *SnapshotRequest) Marshal() (dAtA []byte, err error) {
9156 size := m.Size()
9157 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009158 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00009159 if err != nil {
9160 return nil, err
9161 }
9162 return dAtA[:n], nil
9163}
9164
9165func (m *SnapshotRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009166 size := m.Size()
9167 return m.MarshalToSizedBuffer(dAtA[:size])
9168}
9169
9170func (m *SnapshotRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9171 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009172 _ = i
9173 var l int
9174 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009175 if m.XXX_unrecognized != nil {
9176 i -= len(m.XXX_unrecognized)
9177 copy(dAtA[i:], m.XXX_unrecognized)
9178 }
9179 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009180}
9181
9182func (m *SnapshotResponse) Marshal() (dAtA []byte, err error) {
9183 size := m.Size()
9184 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009185 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00009186 if err != nil {
9187 return nil, err
9188 }
9189 return dAtA[:n], nil
9190}
9191
9192func (m *SnapshotResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009193 size := m.Size()
9194 return m.MarshalToSizedBuffer(dAtA[:size])
9195}
9196
9197func (m *SnapshotResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9198 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009199 _ = i
9200 var l int
9201 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009202 if m.XXX_unrecognized != nil {
9203 i -= len(m.XXX_unrecognized)
9204 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00009205 }
9206 if len(m.Blob) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009207 i -= len(m.Blob)
9208 copy(dAtA[i:], m.Blob)
divyadesai81bb7ba2020-03-11 11:45:23 +00009209 i = encodeVarintRpc(dAtA, i, uint64(len(m.Blob)))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009210 i--
9211 dAtA[i] = 0x1a
divyadesai81bb7ba2020-03-11 11:45:23 +00009212 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009213 if m.RemainingBytes != 0 {
9214 i = encodeVarintRpc(dAtA, i, uint64(m.RemainingBytes))
9215 i--
9216 dAtA[i] = 0x10
9217 }
9218 if m.Header != nil {
9219 {
9220 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
9221 if err != nil {
9222 return 0, err
9223 }
9224 i -= size
9225 i = encodeVarintRpc(dAtA, i, uint64(size))
9226 }
9227 i--
9228 dAtA[i] = 0xa
9229 }
9230 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009231}
9232
9233func (m *WatchRequest) Marshal() (dAtA []byte, err error) {
9234 size := m.Size()
9235 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009236 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00009237 if err != nil {
9238 return nil, err
9239 }
9240 return dAtA[:n], nil
9241}
9242
9243func (m *WatchRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009244 size := m.Size()
9245 return m.MarshalToSizedBuffer(dAtA[:size])
9246}
9247
9248func (m *WatchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9249 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009250 _ = i
9251 var l int
9252 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009253 if m.XXX_unrecognized != nil {
9254 i -= len(m.XXX_unrecognized)
9255 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00009256 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009257 if m.RequestUnion != nil {
9258 {
9259 size := m.RequestUnion.Size()
9260 i -= size
9261 if _, err := m.RequestUnion.MarshalTo(dAtA[i:]); err != nil {
9262 return 0, err
9263 }
9264 }
9265 }
9266 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009267}
9268
9269func (m *WatchRequest_CreateRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009270 return m.MarshalToSizedBuffer(dAtA[:m.Size()])
9271}
9272
9273func (m *WatchRequest_CreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9274 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009275 if m.CreateRequest != nil {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009276 {
9277 size, err := m.CreateRequest.MarshalToSizedBuffer(dAtA[:i])
9278 if err != nil {
9279 return 0, err
9280 }
9281 i -= size
9282 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +00009283 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009284 i--
9285 dAtA[i] = 0xa
divyadesai81bb7ba2020-03-11 11:45:23 +00009286 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009287 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009288}
9289func (m *WatchRequest_CancelRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009290 return m.MarshalToSizedBuffer(dAtA[:m.Size()])
9291}
9292
9293func (m *WatchRequest_CancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9294 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009295 if m.CancelRequest != nil {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009296 {
9297 size, err := m.CancelRequest.MarshalToSizedBuffer(dAtA[:i])
9298 if err != nil {
9299 return 0, err
9300 }
9301 i -= size
9302 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +00009303 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009304 i--
9305 dAtA[i] = 0x12
divyadesai81bb7ba2020-03-11 11:45:23 +00009306 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009307 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009308}
9309func (m *WatchRequest_ProgressRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009310 return m.MarshalToSizedBuffer(dAtA[:m.Size()])
9311}
9312
9313func (m *WatchRequest_ProgressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9314 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009315 if m.ProgressRequest != nil {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009316 {
9317 size, err := m.ProgressRequest.MarshalToSizedBuffer(dAtA[:i])
9318 if err != nil {
9319 return 0, err
9320 }
9321 i -= size
9322 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +00009323 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009324 i--
9325 dAtA[i] = 0x1a
divyadesai81bb7ba2020-03-11 11:45:23 +00009326 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009327 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009328}
9329func (m *WatchCreateRequest) Marshal() (dAtA []byte, err error) {
9330 size := m.Size()
9331 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009332 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00009333 if err != nil {
9334 return nil, err
9335 }
9336 return dAtA[:n], nil
9337}
9338
9339func (m *WatchCreateRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009340 size := m.Size()
9341 return m.MarshalToSizedBuffer(dAtA[:size])
9342}
9343
9344func (m *WatchCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9345 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009346 _ = i
9347 var l int
9348 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009349 if m.XXX_unrecognized != nil {
9350 i -= len(m.XXX_unrecognized)
9351 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00009352 }
9353 if m.Fragment {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009354 i--
divyadesai81bb7ba2020-03-11 11:45:23 +00009355 if m.Fragment {
9356 dAtA[i] = 1
9357 } else {
9358 dAtA[i] = 0
9359 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009360 i--
9361 dAtA[i] = 0x40
divyadesai81bb7ba2020-03-11 11:45:23 +00009362 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009363 if m.WatchId != 0 {
9364 i = encodeVarintRpc(dAtA, i, uint64(m.WatchId))
9365 i--
9366 dAtA[i] = 0x38
9367 }
9368 if m.PrevKv {
9369 i--
9370 if m.PrevKv {
9371 dAtA[i] = 1
9372 } else {
9373 dAtA[i] = 0
9374 }
9375 i--
9376 dAtA[i] = 0x30
9377 }
9378 if len(m.Filters) > 0 {
9379 dAtA22 := make([]byte, len(m.Filters)*10)
9380 var j21 int
9381 for _, num := range m.Filters {
9382 for num >= 1<<7 {
9383 dAtA22[j21] = uint8(uint64(num)&0x7f | 0x80)
9384 num >>= 7
9385 j21++
9386 }
9387 dAtA22[j21] = uint8(num)
9388 j21++
9389 }
9390 i -= j21
9391 copy(dAtA[i:], dAtA22[:j21])
9392 i = encodeVarintRpc(dAtA, i, uint64(j21))
9393 i--
9394 dAtA[i] = 0x2a
9395 }
9396 if m.ProgressNotify {
9397 i--
9398 if m.ProgressNotify {
9399 dAtA[i] = 1
9400 } else {
9401 dAtA[i] = 0
9402 }
9403 i--
9404 dAtA[i] = 0x20
9405 }
9406 if m.StartRevision != 0 {
9407 i = encodeVarintRpc(dAtA, i, uint64(m.StartRevision))
9408 i--
9409 dAtA[i] = 0x18
9410 }
9411 if len(m.RangeEnd) > 0 {
9412 i -= len(m.RangeEnd)
9413 copy(dAtA[i:], m.RangeEnd)
9414 i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd)))
9415 i--
9416 dAtA[i] = 0x12
9417 }
9418 if len(m.Key) > 0 {
9419 i -= len(m.Key)
9420 copy(dAtA[i:], m.Key)
9421 i = encodeVarintRpc(dAtA, i, uint64(len(m.Key)))
9422 i--
9423 dAtA[i] = 0xa
9424 }
9425 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009426}
9427
9428func (m *WatchCancelRequest) Marshal() (dAtA []byte, err error) {
9429 size := m.Size()
9430 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009431 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00009432 if err != nil {
9433 return nil, err
9434 }
9435 return dAtA[:n], nil
9436}
9437
9438func (m *WatchCancelRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009439 size := m.Size()
9440 return m.MarshalToSizedBuffer(dAtA[:size])
9441}
9442
9443func (m *WatchCancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9444 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009445 _ = i
9446 var l int
9447 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009448 if m.XXX_unrecognized != nil {
9449 i -= len(m.XXX_unrecognized)
9450 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00009451 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009452 if m.WatchId != 0 {
9453 i = encodeVarintRpc(dAtA, i, uint64(m.WatchId))
9454 i--
9455 dAtA[i] = 0x8
9456 }
9457 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009458}
9459
9460func (m *WatchProgressRequest) Marshal() (dAtA []byte, err error) {
9461 size := m.Size()
9462 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009463 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00009464 if err != nil {
9465 return nil, err
9466 }
9467 return dAtA[:n], nil
9468}
9469
9470func (m *WatchProgressRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009471 size := m.Size()
9472 return m.MarshalToSizedBuffer(dAtA[:size])
9473}
9474
9475func (m *WatchProgressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9476 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009477 _ = i
9478 var l int
9479 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009480 if m.XXX_unrecognized != nil {
9481 i -= len(m.XXX_unrecognized)
9482 copy(dAtA[i:], m.XXX_unrecognized)
9483 }
9484 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009485}
9486
9487func (m *WatchResponse) Marshal() (dAtA []byte, err error) {
9488 size := m.Size()
9489 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009490 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00009491 if err != nil {
9492 return nil, err
9493 }
9494 return dAtA[:n], nil
9495}
9496
9497func (m *WatchResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009498 size := m.Size()
9499 return m.MarshalToSizedBuffer(dAtA[:size])
9500}
9501
9502func (m *WatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9503 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009504 _ = i
9505 var l int
9506 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009507 if m.XXX_unrecognized != nil {
9508 i -= len(m.XXX_unrecognized)
9509 copy(dAtA[i:], m.XXX_unrecognized)
9510 }
9511 if len(m.Events) > 0 {
9512 for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- {
9513 {
9514 size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i])
9515 if err != nil {
9516 return 0, err
9517 }
9518 i -= size
9519 i = encodeVarintRpc(dAtA, i, uint64(size))
9520 }
9521 i--
9522 dAtA[i] = 0x5a
divyadesai81bb7ba2020-03-11 11:45:23 +00009523 }
divyadesai81bb7ba2020-03-11 11:45:23 +00009524 }
9525 if m.Fragment {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009526 i--
divyadesai81bb7ba2020-03-11 11:45:23 +00009527 if m.Fragment {
9528 dAtA[i] = 1
9529 } else {
9530 dAtA[i] = 0
9531 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009532 i--
9533 dAtA[i] = 0x38
divyadesai81bb7ba2020-03-11 11:45:23 +00009534 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009535 if len(m.CancelReason) > 0 {
9536 i -= len(m.CancelReason)
9537 copy(dAtA[i:], m.CancelReason)
9538 i = encodeVarintRpc(dAtA, i, uint64(len(m.CancelReason)))
9539 i--
9540 dAtA[i] = 0x32
9541 }
9542 if m.CompactRevision != 0 {
9543 i = encodeVarintRpc(dAtA, i, uint64(m.CompactRevision))
9544 i--
9545 dAtA[i] = 0x28
9546 }
9547 if m.Canceled {
9548 i--
9549 if m.Canceled {
9550 dAtA[i] = 1
9551 } else {
9552 dAtA[i] = 0
9553 }
9554 i--
9555 dAtA[i] = 0x20
9556 }
9557 if m.Created {
9558 i--
9559 if m.Created {
9560 dAtA[i] = 1
9561 } else {
9562 dAtA[i] = 0
9563 }
9564 i--
9565 dAtA[i] = 0x18
9566 }
9567 if m.WatchId != 0 {
9568 i = encodeVarintRpc(dAtA, i, uint64(m.WatchId))
9569 i--
9570 dAtA[i] = 0x10
9571 }
9572 if m.Header != nil {
9573 {
9574 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
divyadesai81bb7ba2020-03-11 11:45:23 +00009575 if err != nil {
9576 return 0, err
9577 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009578 i -= size
9579 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +00009580 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009581 i--
9582 dAtA[i] = 0xa
divyadesai81bb7ba2020-03-11 11:45:23 +00009583 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009584 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009585}
9586
9587func (m *LeaseGrantRequest) Marshal() (dAtA []byte, err error) {
9588 size := m.Size()
9589 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009590 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00009591 if err != nil {
9592 return nil, err
9593 }
9594 return dAtA[:n], nil
9595}
9596
9597func (m *LeaseGrantRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009598 size := m.Size()
9599 return m.MarshalToSizedBuffer(dAtA[:size])
9600}
9601
9602func (m *LeaseGrantRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9603 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009604 _ = i
9605 var l int
9606 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009607 if m.XXX_unrecognized != nil {
9608 i -= len(m.XXX_unrecognized)
9609 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00009610 }
9611 if m.ID != 0 {
divyadesai81bb7ba2020-03-11 11:45:23 +00009612 i = encodeVarintRpc(dAtA, i, uint64(m.ID))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009613 i--
9614 dAtA[i] = 0x10
divyadesai81bb7ba2020-03-11 11:45:23 +00009615 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009616 if m.TTL != 0 {
9617 i = encodeVarintRpc(dAtA, i, uint64(m.TTL))
9618 i--
9619 dAtA[i] = 0x8
9620 }
9621 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009622}
9623
9624func (m *LeaseGrantResponse) Marshal() (dAtA []byte, err error) {
9625 size := m.Size()
9626 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009627 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00009628 if err != nil {
9629 return nil, err
9630 }
9631 return dAtA[:n], nil
9632}
9633
9634func (m *LeaseGrantResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009635 size := m.Size()
9636 return m.MarshalToSizedBuffer(dAtA[:size])
9637}
9638
9639func (m *LeaseGrantResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9640 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009641 _ = i
9642 var l int
9643 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009644 if m.XXX_unrecognized != nil {
9645 i -= len(m.XXX_unrecognized)
9646 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00009647 }
9648 if len(m.Error) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009649 i -= len(m.Error)
9650 copy(dAtA[i:], m.Error)
divyadesai81bb7ba2020-03-11 11:45:23 +00009651 i = encodeVarintRpc(dAtA, i, uint64(len(m.Error)))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009652 i--
9653 dAtA[i] = 0x22
divyadesai81bb7ba2020-03-11 11:45:23 +00009654 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009655 if m.TTL != 0 {
9656 i = encodeVarintRpc(dAtA, i, uint64(m.TTL))
9657 i--
9658 dAtA[i] = 0x18
9659 }
9660 if m.ID != 0 {
9661 i = encodeVarintRpc(dAtA, i, uint64(m.ID))
9662 i--
9663 dAtA[i] = 0x10
9664 }
9665 if m.Header != nil {
9666 {
9667 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
9668 if err != nil {
9669 return 0, err
9670 }
9671 i -= size
9672 i = encodeVarintRpc(dAtA, i, uint64(size))
9673 }
9674 i--
9675 dAtA[i] = 0xa
9676 }
9677 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009678}
9679
9680func (m *LeaseRevokeRequest) Marshal() (dAtA []byte, err error) {
9681 size := m.Size()
9682 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009683 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00009684 if err != nil {
9685 return nil, err
9686 }
9687 return dAtA[:n], nil
9688}
9689
9690func (m *LeaseRevokeRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009691 size := m.Size()
9692 return m.MarshalToSizedBuffer(dAtA[:size])
9693}
9694
9695func (m *LeaseRevokeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9696 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009697 _ = i
9698 var l int
9699 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009700 if m.XXX_unrecognized != nil {
9701 i -= len(m.XXX_unrecognized)
9702 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00009703 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009704 if m.ID != 0 {
9705 i = encodeVarintRpc(dAtA, i, uint64(m.ID))
9706 i--
9707 dAtA[i] = 0x8
9708 }
9709 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009710}
9711
9712func (m *LeaseRevokeResponse) Marshal() (dAtA []byte, err error) {
9713 size := m.Size()
9714 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009715 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00009716 if err != nil {
9717 return nil, err
9718 }
9719 return dAtA[:n], nil
9720}
9721
9722func (m *LeaseRevokeResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009723 size := m.Size()
9724 return m.MarshalToSizedBuffer(dAtA[:size])
9725}
9726
9727func (m *LeaseRevokeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9728 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009729 _ = i
9730 var l int
9731 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009732 if m.XXX_unrecognized != nil {
9733 i -= len(m.XXX_unrecognized)
9734 copy(dAtA[i:], m.XXX_unrecognized)
9735 }
divyadesai81bb7ba2020-03-11 11:45:23 +00009736 if m.Header != nil {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009737 {
9738 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
divyadesai81bb7ba2020-03-11 11:45:23 +00009739 if err != nil {
9740 return 0, err
9741 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009742 i -= size
9743 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +00009744 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009745 i--
divyadesai81bb7ba2020-03-11 11:45:23 +00009746 dAtA[i] = 0xa
divyadesai81bb7ba2020-03-11 11:45:23 +00009747 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009748 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009749}
9750
9751func (m *LeaseKeepAliveRequest) Marshal() (dAtA []byte, err error) {
9752 size := m.Size()
9753 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009754 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00009755 if err != nil {
9756 return nil, err
9757 }
9758 return dAtA[:n], nil
9759}
9760
9761func (m *LeaseKeepAliveRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009762 size := m.Size()
9763 return m.MarshalToSizedBuffer(dAtA[:size])
9764}
9765
9766func (m *LeaseKeepAliveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9767 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009768 _ = i
9769 var l int
9770 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009771 if m.XXX_unrecognized != nil {
9772 i -= len(m.XXX_unrecognized)
9773 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00009774 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009775 if m.ID != 0 {
9776 i = encodeVarintRpc(dAtA, i, uint64(m.ID))
9777 i--
9778 dAtA[i] = 0x8
9779 }
9780 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009781}
9782
9783func (m *LeaseKeepAliveResponse) Marshal() (dAtA []byte, err error) {
9784 size := m.Size()
9785 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009786 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00009787 if err != nil {
9788 return nil, err
9789 }
9790 return dAtA[:n], nil
9791}
9792
9793func (m *LeaseKeepAliveResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009794 size := m.Size()
9795 return m.MarshalToSizedBuffer(dAtA[:size])
9796}
9797
9798func (m *LeaseKeepAliveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9799 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009800 _ = i
9801 var l int
9802 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009803 if m.XXX_unrecognized != nil {
9804 i -= len(m.XXX_unrecognized)
9805 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00009806 }
9807 if m.TTL != 0 {
divyadesai81bb7ba2020-03-11 11:45:23 +00009808 i = encodeVarintRpc(dAtA, i, uint64(m.TTL))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009809 i--
9810 dAtA[i] = 0x18
divyadesai81bb7ba2020-03-11 11:45:23 +00009811 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009812 if m.ID != 0 {
9813 i = encodeVarintRpc(dAtA, i, uint64(m.ID))
9814 i--
9815 dAtA[i] = 0x10
9816 }
9817 if m.Header != nil {
9818 {
9819 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
9820 if err != nil {
9821 return 0, err
9822 }
9823 i -= size
9824 i = encodeVarintRpc(dAtA, i, uint64(size))
9825 }
9826 i--
9827 dAtA[i] = 0xa
9828 }
9829 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009830}
9831
9832func (m *LeaseTimeToLiveRequest) Marshal() (dAtA []byte, err error) {
9833 size := m.Size()
9834 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009835 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00009836 if err != nil {
9837 return nil, err
9838 }
9839 return dAtA[:n], nil
9840}
9841
9842func (m *LeaseTimeToLiveRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009843 size := m.Size()
9844 return m.MarshalToSizedBuffer(dAtA[:size])
9845}
9846
9847func (m *LeaseTimeToLiveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9848 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009849 _ = i
9850 var l int
9851 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009852 if m.XXX_unrecognized != nil {
9853 i -= len(m.XXX_unrecognized)
9854 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00009855 }
9856 if m.Keys {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009857 i--
divyadesai81bb7ba2020-03-11 11:45:23 +00009858 if m.Keys {
9859 dAtA[i] = 1
9860 } else {
9861 dAtA[i] = 0
9862 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009863 i--
9864 dAtA[i] = 0x10
divyadesai81bb7ba2020-03-11 11:45:23 +00009865 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009866 if m.ID != 0 {
9867 i = encodeVarintRpc(dAtA, i, uint64(m.ID))
9868 i--
9869 dAtA[i] = 0x8
9870 }
9871 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009872}
9873
9874func (m *LeaseTimeToLiveResponse) Marshal() (dAtA []byte, err error) {
9875 size := m.Size()
9876 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009877 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00009878 if err != nil {
9879 return nil, err
9880 }
9881 return dAtA[:n], nil
9882}
9883
9884func (m *LeaseTimeToLiveResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009885 size := m.Size()
9886 return m.MarshalToSizedBuffer(dAtA[:size])
9887}
9888
9889func (m *LeaseTimeToLiveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9890 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009891 _ = i
9892 var l int
9893 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009894 if m.XXX_unrecognized != nil {
9895 i -= len(m.XXX_unrecognized)
9896 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00009897 }
9898 if len(m.Keys) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009899 for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- {
9900 i -= len(m.Keys[iNdEx])
9901 copy(dAtA[i:], m.Keys[iNdEx])
9902 i = encodeVarintRpc(dAtA, i, uint64(len(m.Keys[iNdEx])))
9903 i--
divyadesai81bb7ba2020-03-11 11:45:23 +00009904 dAtA[i] = 0x2a
divyadesai81bb7ba2020-03-11 11:45:23 +00009905 }
9906 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009907 if m.GrantedTTL != 0 {
9908 i = encodeVarintRpc(dAtA, i, uint64(m.GrantedTTL))
9909 i--
9910 dAtA[i] = 0x20
9911 }
9912 if m.TTL != 0 {
9913 i = encodeVarintRpc(dAtA, i, uint64(m.TTL))
9914 i--
9915 dAtA[i] = 0x18
9916 }
9917 if m.ID != 0 {
9918 i = encodeVarintRpc(dAtA, i, uint64(m.ID))
9919 i--
9920 dAtA[i] = 0x10
9921 }
9922 if m.Header != nil {
9923 {
9924 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
9925 if err != nil {
9926 return 0, err
9927 }
9928 i -= size
9929 i = encodeVarintRpc(dAtA, i, uint64(size))
9930 }
9931 i--
9932 dAtA[i] = 0xa
9933 }
9934 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009935}
9936
9937func (m *LeaseLeasesRequest) Marshal() (dAtA []byte, err error) {
9938 size := m.Size()
9939 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009940 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00009941 if err != nil {
9942 return nil, err
9943 }
9944 return dAtA[:n], nil
9945}
9946
9947func (m *LeaseLeasesRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009948 size := m.Size()
9949 return m.MarshalToSizedBuffer(dAtA[:size])
9950}
9951
9952func (m *LeaseLeasesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9953 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009954 _ = i
9955 var l int
9956 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009957 if m.XXX_unrecognized != nil {
9958 i -= len(m.XXX_unrecognized)
9959 copy(dAtA[i:], m.XXX_unrecognized)
9960 }
9961 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009962}
9963
9964func (m *LeaseStatus) Marshal() (dAtA []byte, err error) {
9965 size := m.Size()
9966 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009967 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +00009968 if err != nil {
9969 return nil, err
9970 }
9971 return dAtA[:n], nil
9972}
9973
9974func (m *LeaseStatus) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009975 size := m.Size()
9976 return m.MarshalToSizedBuffer(dAtA[:size])
9977}
9978
9979func (m *LeaseStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
9980 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +00009981 _ = i
9982 var l int
9983 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009984 if m.XXX_unrecognized != nil {
9985 i -= len(m.XXX_unrecognized)
9986 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +00009987 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009988 if m.ID != 0 {
9989 i = encodeVarintRpc(dAtA, i, uint64(m.ID))
9990 i--
9991 dAtA[i] = 0x8
9992 }
9993 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +00009994}
9995
9996func (m *LeaseLeasesResponse) Marshal() (dAtA []byte, err error) {
9997 size := m.Size()
9998 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00009999 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010000 if err != nil {
10001 return nil, err
10002 }
10003 return dAtA[:n], nil
10004}
10005
10006func (m *LeaseLeasesResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010007 size := m.Size()
10008 return m.MarshalToSizedBuffer(dAtA[:size])
10009}
10010
10011func (m *LeaseLeasesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10012 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010013 _ = i
10014 var l int
10015 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010016 if m.XXX_unrecognized != nil {
10017 i -= len(m.XXX_unrecognized)
10018 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000010019 }
10020 if len(m.Leases) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010021 for iNdEx := len(m.Leases) - 1; iNdEx >= 0; iNdEx-- {
10022 {
10023 size, err := m.Leases[iNdEx].MarshalToSizedBuffer(dAtA[:i])
10024 if err != nil {
10025 return 0, err
10026 }
10027 i -= size
10028 i = encodeVarintRpc(dAtA, i, uint64(size))
10029 }
10030 i--
divyadesai81bb7ba2020-03-11 11:45:23 +000010031 dAtA[i] = 0x12
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010032 }
10033 }
10034 if m.Header != nil {
10035 {
10036 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
divyadesai81bb7ba2020-03-11 11:45:23 +000010037 if err != nil {
10038 return 0, err
10039 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010040 i -= size
10041 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +000010042 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010043 i--
10044 dAtA[i] = 0xa
divyadesai81bb7ba2020-03-11 11:45:23 +000010045 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010046 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010047}
10048
10049func (m *Member) Marshal() (dAtA []byte, err error) {
10050 size := m.Size()
10051 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010052 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010053 if err != nil {
10054 return nil, err
10055 }
10056 return dAtA[:n], nil
10057}
10058
10059func (m *Member) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010060 size := m.Size()
10061 return m.MarshalToSizedBuffer(dAtA[:size])
10062}
10063
10064func (m *Member) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10065 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010066 _ = i
10067 var l int
10068 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010069 if m.XXX_unrecognized != nil {
10070 i -= len(m.XXX_unrecognized)
10071 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000010072 }
10073 if len(m.ClientURLs) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010074 for iNdEx := len(m.ClientURLs) - 1; iNdEx >= 0; iNdEx-- {
10075 i -= len(m.ClientURLs[iNdEx])
10076 copy(dAtA[i:], m.ClientURLs[iNdEx])
10077 i = encodeVarintRpc(dAtA, i, uint64(len(m.ClientURLs[iNdEx])))
10078 i--
divyadesai81bb7ba2020-03-11 11:45:23 +000010079 dAtA[i] = 0x22
divyadesai81bb7ba2020-03-11 11:45:23 +000010080 }
10081 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010082 if len(m.PeerURLs) > 0 {
10083 for iNdEx := len(m.PeerURLs) - 1; iNdEx >= 0; iNdEx-- {
10084 i -= len(m.PeerURLs[iNdEx])
10085 copy(dAtA[i:], m.PeerURLs[iNdEx])
10086 i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerURLs[iNdEx])))
10087 i--
10088 dAtA[i] = 0x1a
divyadesai81bb7ba2020-03-11 11:45:23 +000010089 }
divyadesai81bb7ba2020-03-11 11:45:23 +000010090 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010091 if len(m.Name) > 0 {
10092 i -= len(m.Name)
10093 copy(dAtA[i:], m.Name)
10094 i = encodeVarintRpc(dAtA, i, uint64(len(m.Name)))
10095 i--
10096 dAtA[i] = 0x12
10097 }
10098 if m.ID != 0 {
10099 i = encodeVarintRpc(dAtA, i, uint64(m.ID))
10100 i--
10101 dAtA[i] = 0x8
10102 }
10103 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010104}
10105
10106func (m *MemberAddRequest) Marshal() (dAtA []byte, err error) {
10107 size := m.Size()
10108 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010109 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010110 if err != nil {
10111 return nil, err
10112 }
10113 return dAtA[:n], nil
10114}
10115
10116func (m *MemberAddRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010117 size := m.Size()
10118 return m.MarshalToSizedBuffer(dAtA[:size])
10119}
10120
10121func (m *MemberAddRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10122 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010123 _ = i
10124 var l int
10125 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010126 if m.XXX_unrecognized != nil {
10127 i -= len(m.XXX_unrecognized)
10128 copy(dAtA[i:], m.XXX_unrecognized)
10129 }
divyadesai81bb7ba2020-03-11 11:45:23 +000010130 if len(m.PeerURLs) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010131 for iNdEx := len(m.PeerURLs) - 1; iNdEx >= 0; iNdEx-- {
10132 i -= len(m.PeerURLs[iNdEx])
10133 copy(dAtA[i:], m.PeerURLs[iNdEx])
10134 i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerURLs[iNdEx])))
10135 i--
divyadesai81bb7ba2020-03-11 11:45:23 +000010136 dAtA[i] = 0xa
divyadesai81bb7ba2020-03-11 11:45:23 +000010137 }
10138 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010139 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010140}
10141
10142func (m *MemberAddResponse) Marshal() (dAtA []byte, err error) {
10143 size := m.Size()
10144 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010145 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010146 if err != nil {
10147 return nil, err
10148 }
10149 return dAtA[:n], nil
10150}
10151
10152func (m *MemberAddResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010153 size := m.Size()
10154 return m.MarshalToSizedBuffer(dAtA[:size])
10155}
10156
10157func (m *MemberAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10158 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010159 _ = i
10160 var l int
10161 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010162 if m.XXX_unrecognized != nil {
10163 i -= len(m.XXX_unrecognized)
10164 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000010165 }
10166 if len(m.Members) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010167 for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- {
10168 {
10169 size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i])
10170 if err != nil {
10171 return 0, err
10172 }
10173 i -= size
10174 i = encodeVarintRpc(dAtA, i, uint64(size))
10175 }
10176 i--
divyadesai81bb7ba2020-03-11 11:45:23 +000010177 dAtA[i] = 0x1a
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010178 }
10179 }
10180 if m.Member != nil {
10181 {
10182 size, err := m.Member.MarshalToSizedBuffer(dAtA[:i])
divyadesai81bb7ba2020-03-11 11:45:23 +000010183 if err != nil {
10184 return 0, err
10185 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010186 i -= size
10187 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +000010188 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010189 i--
10190 dAtA[i] = 0x12
divyadesai81bb7ba2020-03-11 11:45:23 +000010191 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010192 if m.Header != nil {
10193 {
10194 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
10195 if err != nil {
10196 return 0, err
10197 }
10198 i -= size
10199 i = encodeVarintRpc(dAtA, i, uint64(size))
10200 }
10201 i--
10202 dAtA[i] = 0xa
10203 }
10204 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010205}
10206
10207func (m *MemberRemoveRequest) Marshal() (dAtA []byte, err error) {
10208 size := m.Size()
10209 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010210 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010211 if err != nil {
10212 return nil, err
10213 }
10214 return dAtA[:n], nil
10215}
10216
10217func (m *MemberRemoveRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010218 size := m.Size()
10219 return m.MarshalToSizedBuffer(dAtA[:size])
10220}
10221
10222func (m *MemberRemoveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10223 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010224 _ = i
10225 var l int
10226 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010227 if m.XXX_unrecognized != nil {
10228 i -= len(m.XXX_unrecognized)
10229 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000010230 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010231 if m.ID != 0 {
10232 i = encodeVarintRpc(dAtA, i, uint64(m.ID))
10233 i--
10234 dAtA[i] = 0x8
10235 }
10236 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010237}
10238
10239func (m *MemberRemoveResponse) Marshal() (dAtA []byte, err error) {
10240 size := m.Size()
10241 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010242 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010243 if err != nil {
10244 return nil, err
10245 }
10246 return dAtA[:n], nil
10247}
10248
10249func (m *MemberRemoveResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010250 size := m.Size()
10251 return m.MarshalToSizedBuffer(dAtA[:size])
10252}
10253
10254func (m *MemberRemoveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10255 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010256 _ = i
10257 var l int
10258 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010259 if m.XXX_unrecognized != nil {
10260 i -= len(m.XXX_unrecognized)
10261 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000010262 }
10263 if len(m.Members) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010264 for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- {
10265 {
10266 size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i])
10267 if err != nil {
10268 return 0, err
10269 }
10270 i -= size
10271 i = encodeVarintRpc(dAtA, i, uint64(size))
10272 }
10273 i--
divyadesai81bb7ba2020-03-11 11:45:23 +000010274 dAtA[i] = 0x12
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010275 }
10276 }
10277 if m.Header != nil {
10278 {
10279 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
divyadesai81bb7ba2020-03-11 11:45:23 +000010280 if err != nil {
10281 return 0, err
10282 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010283 i -= size
10284 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +000010285 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010286 i--
10287 dAtA[i] = 0xa
divyadesai81bb7ba2020-03-11 11:45:23 +000010288 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010289 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010290}
10291
10292func (m *MemberUpdateRequest) Marshal() (dAtA []byte, err error) {
10293 size := m.Size()
10294 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010295 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010296 if err != nil {
10297 return nil, err
10298 }
10299 return dAtA[:n], nil
10300}
10301
10302func (m *MemberUpdateRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010303 size := m.Size()
10304 return m.MarshalToSizedBuffer(dAtA[:size])
10305}
10306
10307func (m *MemberUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10308 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010309 _ = i
10310 var l int
10311 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010312 if m.XXX_unrecognized != nil {
10313 i -= len(m.XXX_unrecognized)
10314 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000010315 }
10316 if len(m.PeerURLs) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010317 for iNdEx := len(m.PeerURLs) - 1; iNdEx >= 0; iNdEx-- {
10318 i -= len(m.PeerURLs[iNdEx])
10319 copy(dAtA[i:], m.PeerURLs[iNdEx])
10320 i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerURLs[iNdEx])))
10321 i--
divyadesai81bb7ba2020-03-11 11:45:23 +000010322 dAtA[i] = 0x12
divyadesai81bb7ba2020-03-11 11:45:23 +000010323 }
10324 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010325 if m.ID != 0 {
10326 i = encodeVarintRpc(dAtA, i, uint64(m.ID))
10327 i--
10328 dAtA[i] = 0x8
10329 }
10330 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010331}
10332
10333func (m *MemberUpdateResponse) Marshal() (dAtA []byte, err error) {
10334 size := m.Size()
10335 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010336 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010337 if err != nil {
10338 return nil, err
10339 }
10340 return dAtA[:n], nil
10341}
10342
10343func (m *MemberUpdateResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010344 size := m.Size()
10345 return m.MarshalToSizedBuffer(dAtA[:size])
10346}
10347
10348func (m *MemberUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10349 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010350 _ = i
10351 var l int
10352 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010353 if m.XXX_unrecognized != nil {
10354 i -= len(m.XXX_unrecognized)
10355 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000010356 }
10357 if len(m.Members) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010358 for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- {
10359 {
10360 size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i])
10361 if err != nil {
10362 return 0, err
10363 }
10364 i -= size
10365 i = encodeVarintRpc(dAtA, i, uint64(size))
10366 }
10367 i--
divyadesai81bb7ba2020-03-11 11:45:23 +000010368 dAtA[i] = 0x12
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010369 }
10370 }
10371 if m.Header != nil {
10372 {
10373 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
divyadesai81bb7ba2020-03-11 11:45:23 +000010374 if err != nil {
10375 return 0, err
10376 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010377 i -= size
10378 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +000010379 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010380 i--
10381 dAtA[i] = 0xa
divyadesai81bb7ba2020-03-11 11:45:23 +000010382 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010383 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010384}
10385
10386func (m *MemberListRequest) Marshal() (dAtA []byte, err error) {
10387 size := m.Size()
10388 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010389 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010390 if err != nil {
10391 return nil, err
10392 }
10393 return dAtA[:n], nil
10394}
10395
10396func (m *MemberListRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010397 size := m.Size()
10398 return m.MarshalToSizedBuffer(dAtA[:size])
10399}
10400
10401func (m *MemberListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10402 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010403 _ = i
10404 var l int
10405 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010406 if m.XXX_unrecognized != nil {
10407 i -= len(m.XXX_unrecognized)
10408 copy(dAtA[i:], m.XXX_unrecognized)
10409 }
10410 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010411}
10412
10413func (m *MemberListResponse) Marshal() (dAtA []byte, err error) {
10414 size := m.Size()
10415 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010416 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010417 if err != nil {
10418 return nil, err
10419 }
10420 return dAtA[:n], nil
10421}
10422
10423func (m *MemberListResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010424 size := m.Size()
10425 return m.MarshalToSizedBuffer(dAtA[:size])
10426}
10427
10428func (m *MemberListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10429 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010430 _ = i
10431 var l int
10432 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010433 if m.XXX_unrecognized != nil {
10434 i -= len(m.XXX_unrecognized)
10435 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000010436 }
10437 if len(m.Members) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010438 for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- {
10439 {
10440 size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i])
10441 if err != nil {
10442 return 0, err
10443 }
10444 i -= size
10445 i = encodeVarintRpc(dAtA, i, uint64(size))
10446 }
10447 i--
divyadesai81bb7ba2020-03-11 11:45:23 +000010448 dAtA[i] = 0x12
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010449 }
10450 }
10451 if m.Header != nil {
10452 {
10453 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
divyadesai81bb7ba2020-03-11 11:45:23 +000010454 if err != nil {
10455 return 0, err
10456 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010457 i -= size
10458 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +000010459 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010460 i--
divyadesai81bb7ba2020-03-11 11:45:23 +000010461 dAtA[i] = 0xa
divyadesai81bb7ba2020-03-11 11:45:23 +000010462 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010463 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010464}
10465
10466func (m *DefragmentRequest) Marshal() (dAtA []byte, err error) {
10467 size := m.Size()
10468 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010469 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010470 if err != nil {
10471 return nil, err
10472 }
10473 return dAtA[:n], nil
10474}
10475
10476func (m *DefragmentRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010477 size := m.Size()
10478 return m.MarshalToSizedBuffer(dAtA[:size])
10479}
10480
10481func (m *DefragmentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10482 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010483 _ = i
10484 var l int
10485 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010486 if m.XXX_unrecognized != nil {
10487 i -= len(m.XXX_unrecognized)
10488 copy(dAtA[i:], m.XXX_unrecognized)
10489 }
10490 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010491}
10492
10493func (m *DefragmentResponse) Marshal() (dAtA []byte, err error) {
10494 size := m.Size()
10495 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010496 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010497 if err != nil {
10498 return nil, err
10499 }
10500 return dAtA[:n], nil
10501}
10502
10503func (m *DefragmentResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010504 size := m.Size()
10505 return m.MarshalToSizedBuffer(dAtA[:size])
10506}
10507
10508func (m *DefragmentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10509 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010510 _ = i
10511 var l int
10512 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010513 if m.XXX_unrecognized != nil {
10514 i -= len(m.XXX_unrecognized)
10515 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000010516 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010517 if m.Header != nil {
10518 {
10519 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
10520 if err != nil {
10521 return 0, err
10522 }
10523 i -= size
10524 i = encodeVarintRpc(dAtA, i, uint64(size))
10525 }
10526 i--
10527 dAtA[i] = 0xa
10528 }
10529 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010530}
10531
10532func (m *MoveLeaderRequest) Marshal() (dAtA []byte, err error) {
10533 size := m.Size()
10534 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010535 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010536 if err != nil {
10537 return nil, err
10538 }
10539 return dAtA[:n], nil
10540}
10541
10542func (m *MoveLeaderRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010543 size := m.Size()
10544 return m.MarshalToSizedBuffer(dAtA[:size])
10545}
10546
10547func (m *MoveLeaderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10548 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010549 _ = i
10550 var l int
10551 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010552 if m.XXX_unrecognized != nil {
10553 i -= len(m.XXX_unrecognized)
10554 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000010555 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010556 if m.TargetID != 0 {
10557 i = encodeVarintRpc(dAtA, i, uint64(m.TargetID))
10558 i--
10559 dAtA[i] = 0x8
10560 }
10561 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010562}
10563
10564func (m *MoveLeaderResponse) Marshal() (dAtA []byte, err error) {
10565 size := m.Size()
10566 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010567 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010568 if err != nil {
10569 return nil, err
10570 }
10571 return dAtA[:n], nil
10572}
10573
10574func (m *MoveLeaderResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010575 size := m.Size()
10576 return m.MarshalToSizedBuffer(dAtA[:size])
10577}
10578
10579func (m *MoveLeaderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10580 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010581 _ = i
10582 var l int
10583 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010584 if m.XXX_unrecognized != nil {
10585 i -= len(m.XXX_unrecognized)
10586 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000010587 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010588 if m.Header != nil {
10589 {
10590 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
10591 if err != nil {
10592 return 0, err
10593 }
10594 i -= size
10595 i = encodeVarintRpc(dAtA, i, uint64(size))
10596 }
10597 i--
10598 dAtA[i] = 0xa
10599 }
10600 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010601}
10602
10603func (m *AlarmRequest) Marshal() (dAtA []byte, err error) {
10604 size := m.Size()
10605 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010606 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010607 if err != nil {
10608 return nil, err
10609 }
10610 return dAtA[:n], nil
10611}
10612
10613func (m *AlarmRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010614 size := m.Size()
10615 return m.MarshalToSizedBuffer(dAtA[:size])
10616}
10617
10618func (m *AlarmRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10619 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010620 _ = i
10621 var l int
10622 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010623 if m.XXX_unrecognized != nil {
10624 i -= len(m.XXX_unrecognized)
10625 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000010626 }
10627 if m.Alarm != 0 {
divyadesai81bb7ba2020-03-11 11:45:23 +000010628 i = encodeVarintRpc(dAtA, i, uint64(m.Alarm))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010629 i--
10630 dAtA[i] = 0x18
divyadesai81bb7ba2020-03-11 11:45:23 +000010631 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010632 if m.MemberID != 0 {
10633 i = encodeVarintRpc(dAtA, i, uint64(m.MemberID))
10634 i--
10635 dAtA[i] = 0x10
10636 }
10637 if m.Action != 0 {
10638 i = encodeVarintRpc(dAtA, i, uint64(m.Action))
10639 i--
10640 dAtA[i] = 0x8
10641 }
10642 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010643}
10644
10645func (m *AlarmMember) Marshal() (dAtA []byte, err error) {
10646 size := m.Size()
10647 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010648 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010649 if err != nil {
10650 return nil, err
10651 }
10652 return dAtA[:n], nil
10653}
10654
10655func (m *AlarmMember) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010656 size := m.Size()
10657 return m.MarshalToSizedBuffer(dAtA[:size])
10658}
10659
10660func (m *AlarmMember) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10661 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010662 _ = i
10663 var l int
10664 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010665 if m.XXX_unrecognized != nil {
10666 i -= len(m.XXX_unrecognized)
10667 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000010668 }
10669 if m.Alarm != 0 {
divyadesai81bb7ba2020-03-11 11:45:23 +000010670 i = encodeVarintRpc(dAtA, i, uint64(m.Alarm))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010671 i--
10672 dAtA[i] = 0x10
divyadesai81bb7ba2020-03-11 11:45:23 +000010673 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010674 if m.MemberID != 0 {
10675 i = encodeVarintRpc(dAtA, i, uint64(m.MemberID))
10676 i--
10677 dAtA[i] = 0x8
10678 }
10679 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010680}
10681
10682func (m *AlarmResponse) Marshal() (dAtA []byte, err error) {
10683 size := m.Size()
10684 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010685 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010686 if err != nil {
10687 return nil, err
10688 }
10689 return dAtA[:n], nil
10690}
10691
10692func (m *AlarmResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010693 size := m.Size()
10694 return m.MarshalToSizedBuffer(dAtA[:size])
10695}
10696
10697func (m *AlarmResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10698 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010699 _ = i
10700 var l int
10701 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010702 if m.XXX_unrecognized != nil {
10703 i -= len(m.XXX_unrecognized)
10704 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000010705 }
10706 if len(m.Alarms) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010707 for iNdEx := len(m.Alarms) - 1; iNdEx >= 0; iNdEx-- {
10708 {
10709 size, err := m.Alarms[iNdEx].MarshalToSizedBuffer(dAtA[:i])
10710 if err != nil {
10711 return 0, err
10712 }
10713 i -= size
10714 i = encodeVarintRpc(dAtA, i, uint64(size))
10715 }
10716 i--
divyadesai81bb7ba2020-03-11 11:45:23 +000010717 dAtA[i] = 0x12
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010718 }
10719 }
10720 if m.Header != nil {
10721 {
10722 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
divyadesai81bb7ba2020-03-11 11:45:23 +000010723 if err != nil {
10724 return 0, err
10725 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010726 i -= size
10727 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +000010728 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010729 i--
10730 dAtA[i] = 0xa
divyadesai81bb7ba2020-03-11 11:45:23 +000010731 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010732 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010733}
10734
10735func (m *StatusRequest) Marshal() (dAtA []byte, err error) {
10736 size := m.Size()
10737 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010738 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010739 if err != nil {
10740 return nil, err
10741 }
10742 return dAtA[:n], nil
10743}
10744
10745func (m *StatusRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010746 size := m.Size()
10747 return m.MarshalToSizedBuffer(dAtA[:size])
10748}
10749
10750func (m *StatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10751 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010752 _ = i
10753 var l int
10754 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010755 if m.XXX_unrecognized != nil {
10756 i -= len(m.XXX_unrecognized)
10757 copy(dAtA[i:], m.XXX_unrecognized)
10758 }
10759 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010760}
10761
10762func (m *StatusResponse) Marshal() (dAtA []byte, err error) {
10763 size := m.Size()
10764 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010765 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010766 if err != nil {
10767 return nil, err
10768 }
10769 return dAtA[:n], nil
10770}
10771
10772func (m *StatusResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010773 size := m.Size()
10774 return m.MarshalToSizedBuffer(dAtA[:size])
10775}
10776
10777func (m *StatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10778 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010779 _ = i
10780 var l int
10781 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010782 if m.XXX_unrecognized != nil {
10783 i -= len(m.XXX_unrecognized)
10784 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000010785 }
10786 if m.RaftTerm != 0 {
divyadesai81bb7ba2020-03-11 11:45:23 +000010787 i = encodeVarintRpc(dAtA, i, uint64(m.RaftTerm))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010788 i--
10789 dAtA[i] = 0x30
divyadesai81bb7ba2020-03-11 11:45:23 +000010790 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010791 if m.RaftIndex != 0 {
10792 i = encodeVarintRpc(dAtA, i, uint64(m.RaftIndex))
10793 i--
10794 dAtA[i] = 0x28
divyadesai81bb7ba2020-03-11 11:45:23 +000010795 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010796 if m.Leader != 0 {
10797 i = encodeVarintRpc(dAtA, i, uint64(m.Leader))
10798 i--
10799 dAtA[i] = 0x20
10800 }
10801 if m.DbSize != 0 {
10802 i = encodeVarintRpc(dAtA, i, uint64(m.DbSize))
10803 i--
10804 dAtA[i] = 0x18
10805 }
10806 if len(m.Version) > 0 {
10807 i -= len(m.Version)
10808 copy(dAtA[i:], m.Version)
10809 i = encodeVarintRpc(dAtA, i, uint64(len(m.Version)))
10810 i--
10811 dAtA[i] = 0x12
10812 }
10813 if m.Header != nil {
10814 {
10815 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
10816 if err != nil {
10817 return 0, err
divyadesai81bb7ba2020-03-11 11:45:23 +000010818 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010819 i -= size
10820 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +000010821 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010822 i--
10823 dAtA[i] = 0xa
divyadesai81bb7ba2020-03-11 11:45:23 +000010824 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010825 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010826}
10827
10828func (m *AuthEnableRequest) Marshal() (dAtA []byte, err error) {
10829 size := m.Size()
10830 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010831 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010832 if err != nil {
10833 return nil, err
10834 }
10835 return dAtA[:n], nil
10836}
10837
10838func (m *AuthEnableRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010839 size := m.Size()
10840 return m.MarshalToSizedBuffer(dAtA[:size])
10841}
10842
10843func (m *AuthEnableRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10844 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010845 _ = i
10846 var l int
10847 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010848 if m.XXX_unrecognized != nil {
10849 i -= len(m.XXX_unrecognized)
10850 copy(dAtA[i:], m.XXX_unrecognized)
10851 }
10852 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010853}
10854
10855func (m *AuthDisableRequest) Marshal() (dAtA []byte, err error) {
10856 size := m.Size()
10857 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010858 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010859 if err != nil {
10860 return nil, err
10861 }
10862 return dAtA[:n], nil
10863}
10864
10865func (m *AuthDisableRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010866 size := m.Size()
10867 return m.MarshalToSizedBuffer(dAtA[:size])
10868}
10869
10870func (m *AuthDisableRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10871 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010872 _ = i
10873 var l int
10874 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010875 if m.XXX_unrecognized != nil {
10876 i -= len(m.XXX_unrecognized)
10877 copy(dAtA[i:], m.XXX_unrecognized)
10878 }
10879 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010880}
10881
10882func (m *AuthenticateRequest) Marshal() (dAtA []byte, err error) {
10883 size := m.Size()
10884 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010885 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010886 if err != nil {
10887 return nil, err
10888 }
10889 return dAtA[:n], nil
10890}
10891
10892func (m *AuthenticateRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010893 size := m.Size()
10894 return m.MarshalToSizedBuffer(dAtA[:size])
10895}
10896
10897func (m *AuthenticateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10898 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010899 _ = i
10900 var l int
10901 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010902 if m.XXX_unrecognized != nil {
10903 i -= len(m.XXX_unrecognized)
10904 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000010905 }
10906 if len(m.Password) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010907 i -= len(m.Password)
10908 copy(dAtA[i:], m.Password)
divyadesai81bb7ba2020-03-11 11:45:23 +000010909 i = encodeVarintRpc(dAtA, i, uint64(len(m.Password)))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010910 i--
10911 dAtA[i] = 0x12
divyadesai81bb7ba2020-03-11 11:45:23 +000010912 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010913 if len(m.Name) > 0 {
10914 i -= len(m.Name)
10915 copy(dAtA[i:], m.Name)
10916 i = encodeVarintRpc(dAtA, i, uint64(len(m.Name)))
10917 i--
10918 dAtA[i] = 0xa
10919 }
10920 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010921}
10922
10923func (m *AuthUserAddRequest) Marshal() (dAtA []byte, err error) {
10924 size := m.Size()
10925 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010926 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010927 if err != nil {
10928 return nil, err
10929 }
10930 return dAtA[:n], nil
10931}
10932
10933func (m *AuthUserAddRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010934 size := m.Size()
10935 return m.MarshalToSizedBuffer(dAtA[:size])
10936}
10937
10938func (m *AuthUserAddRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10939 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010940 _ = i
10941 var l int
10942 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010943 if m.XXX_unrecognized != nil {
10944 i -= len(m.XXX_unrecognized)
10945 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000010946 }
10947 if len(m.Password) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010948 i -= len(m.Password)
10949 copy(dAtA[i:], m.Password)
divyadesai81bb7ba2020-03-11 11:45:23 +000010950 i = encodeVarintRpc(dAtA, i, uint64(len(m.Password)))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010951 i--
10952 dAtA[i] = 0x12
divyadesai81bb7ba2020-03-11 11:45:23 +000010953 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010954 if len(m.Name) > 0 {
10955 i -= len(m.Name)
10956 copy(dAtA[i:], m.Name)
10957 i = encodeVarintRpc(dAtA, i, uint64(len(m.Name)))
10958 i--
10959 dAtA[i] = 0xa
divyadesai81bb7ba2020-03-11 11:45:23 +000010960 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010961 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010962}
10963
10964func (m *AuthUserGetRequest) Marshal() (dAtA []byte, err error) {
10965 size := m.Size()
10966 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010967 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000010968 if err != nil {
10969 return nil, err
10970 }
10971 return dAtA[:n], nil
10972}
10973
10974func (m *AuthUserGetRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010975 size := m.Size()
10976 return m.MarshalToSizedBuffer(dAtA[:size])
10977}
10978
10979func (m *AuthUserGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
10980 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000010981 _ = i
10982 var l int
10983 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010984 if m.XXX_unrecognized != nil {
10985 i -= len(m.XXX_unrecognized)
10986 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000010987 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000010988 if len(m.Name) > 0 {
10989 i -= len(m.Name)
10990 copy(dAtA[i:], m.Name)
10991 i = encodeVarintRpc(dAtA, i, uint64(len(m.Name)))
10992 i--
10993 dAtA[i] = 0xa
10994 }
10995 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000010996}
10997
10998func (m *AuthUserDeleteRequest) Marshal() (dAtA []byte, err error) {
10999 size := m.Size()
11000 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011001 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011002 if err != nil {
11003 return nil, err
11004 }
11005 return dAtA[:n], nil
11006}
11007
11008func (m *AuthUserDeleteRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011009 size := m.Size()
11010 return m.MarshalToSizedBuffer(dAtA[:size])
11011}
11012
11013func (m *AuthUserDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11014 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011015 _ = i
11016 var l int
11017 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011018 if m.XXX_unrecognized != nil {
11019 i -= len(m.XXX_unrecognized)
11020 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011021 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011022 if len(m.Name) > 0 {
11023 i -= len(m.Name)
11024 copy(dAtA[i:], m.Name)
11025 i = encodeVarintRpc(dAtA, i, uint64(len(m.Name)))
11026 i--
11027 dAtA[i] = 0xa
11028 }
11029 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011030}
11031
11032func (m *AuthUserChangePasswordRequest) Marshal() (dAtA []byte, err error) {
11033 size := m.Size()
11034 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011035 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011036 if err != nil {
11037 return nil, err
11038 }
11039 return dAtA[:n], nil
11040}
11041
11042func (m *AuthUserChangePasswordRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011043 size := m.Size()
11044 return m.MarshalToSizedBuffer(dAtA[:size])
11045}
11046
11047func (m *AuthUserChangePasswordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11048 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011049 _ = i
11050 var l int
11051 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011052 if m.XXX_unrecognized != nil {
11053 i -= len(m.XXX_unrecognized)
11054 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011055 }
11056 if len(m.Password) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011057 i -= len(m.Password)
11058 copy(dAtA[i:], m.Password)
divyadesai81bb7ba2020-03-11 11:45:23 +000011059 i = encodeVarintRpc(dAtA, i, uint64(len(m.Password)))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011060 i--
11061 dAtA[i] = 0x12
divyadesai81bb7ba2020-03-11 11:45:23 +000011062 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011063 if len(m.Name) > 0 {
11064 i -= len(m.Name)
11065 copy(dAtA[i:], m.Name)
11066 i = encodeVarintRpc(dAtA, i, uint64(len(m.Name)))
11067 i--
11068 dAtA[i] = 0xa
11069 }
11070 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011071}
11072
11073func (m *AuthUserGrantRoleRequest) Marshal() (dAtA []byte, err error) {
11074 size := m.Size()
11075 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011076 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011077 if err != nil {
11078 return nil, err
11079 }
11080 return dAtA[:n], nil
11081}
11082
11083func (m *AuthUserGrantRoleRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011084 size := m.Size()
11085 return m.MarshalToSizedBuffer(dAtA[:size])
11086}
11087
11088func (m *AuthUserGrantRoleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11089 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011090 _ = i
11091 var l int
11092 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011093 if m.XXX_unrecognized != nil {
11094 i -= len(m.XXX_unrecognized)
11095 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011096 }
11097 if len(m.Role) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011098 i -= len(m.Role)
11099 copy(dAtA[i:], m.Role)
divyadesai81bb7ba2020-03-11 11:45:23 +000011100 i = encodeVarintRpc(dAtA, i, uint64(len(m.Role)))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011101 i--
11102 dAtA[i] = 0x12
divyadesai81bb7ba2020-03-11 11:45:23 +000011103 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011104 if len(m.User) > 0 {
11105 i -= len(m.User)
11106 copy(dAtA[i:], m.User)
11107 i = encodeVarintRpc(dAtA, i, uint64(len(m.User)))
11108 i--
11109 dAtA[i] = 0xa
11110 }
11111 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011112}
11113
11114func (m *AuthUserRevokeRoleRequest) Marshal() (dAtA []byte, err error) {
11115 size := m.Size()
11116 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011117 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011118 if err != nil {
11119 return nil, err
11120 }
11121 return dAtA[:n], nil
11122}
11123
11124func (m *AuthUserRevokeRoleRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011125 size := m.Size()
11126 return m.MarshalToSizedBuffer(dAtA[:size])
11127}
11128
11129func (m *AuthUserRevokeRoleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11130 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011131 _ = i
11132 var l int
11133 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011134 if m.XXX_unrecognized != nil {
11135 i -= len(m.XXX_unrecognized)
11136 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011137 }
11138 if len(m.Role) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011139 i -= len(m.Role)
11140 copy(dAtA[i:], m.Role)
divyadesai81bb7ba2020-03-11 11:45:23 +000011141 i = encodeVarintRpc(dAtA, i, uint64(len(m.Role)))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011142 i--
11143 dAtA[i] = 0x12
divyadesai81bb7ba2020-03-11 11:45:23 +000011144 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011145 if len(m.Name) > 0 {
11146 i -= len(m.Name)
11147 copy(dAtA[i:], m.Name)
11148 i = encodeVarintRpc(dAtA, i, uint64(len(m.Name)))
11149 i--
11150 dAtA[i] = 0xa
11151 }
11152 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011153}
11154
11155func (m *AuthRoleAddRequest) Marshal() (dAtA []byte, err error) {
11156 size := m.Size()
11157 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011158 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011159 if err != nil {
11160 return nil, err
11161 }
11162 return dAtA[:n], nil
11163}
11164
11165func (m *AuthRoleAddRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011166 size := m.Size()
11167 return m.MarshalToSizedBuffer(dAtA[:size])
11168}
11169
11170func (m *AuthRoleAddRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11171 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011172 _ = i
11173 var l int
11174 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011175 if m.XXX_unrecognized != nil {
11176 i -= len(m.XXX_unrecognized)
11177 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011178 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011179 if len(m.Name) > 0 {
11180 i -= len(m.Name)
11181 copy(dAtA[i:], m.Name)
11182 i = encodeVarintRpc(dAtA, i, uint64(len(m.Name)))
11183 i--
11184 dAtA[i] = 0xa
11185 }
11186 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011187}
11188
11189func (m *AuthRoleGetRequest) Marshal() (dAtA []byte, err error) {
11190 size := m.Size()
11191 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011192 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011193 if err != nil {
11194 return nil, err
11195 }
11196 return dAtA[:n], nil
11197}
11198
11199func (m *AuthRoleGetRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011200 size := m.Size()
11201 return m.MarshalToSizedBuffer(dAtA[:size])
11202}
11203
11204func (m *AuthRoleGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11205 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011206 _ = i
11207 var l int
11208 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011209 if m.XXX_unrecognized != nil {
11210 i -= len(m.XXX_unrecognized)
11211 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011212 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011213 if len(m.Role) > 0 {
11214 i -= len(m.Role)
11215 copy(dAtA[i:], m.Role)
11216 i = encodeVarintRpc(dAtA, i, uint64(len(m.Role)))
11217 i--
11218 dAtA[i] = 0xa
11219 }
11220 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011221}
11222
11223func (m *AuthUserListRequest) Marshal() (dAtA []byte, err error) {
11224 size := m.Size()
11225 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011226 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011227 if err != nil {
11228 return nil, err
11229 }
11230 return dAtA[:n], nil
11231}
11232
11233func (m *AuthUserListRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011234 size := m.Size()
11235 return m.MarshalToSizedBuffer(dAtA[:size])
11236}
11237
11238func (m *AuthUserListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11239 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011240 _ = i
11241 var l int
11242 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011243 if m.XXX_unrecognized != nil {
11244 i -= len(m.XXX_unrecognized)
11245 copy(dAtA[i:], m.XXX_unrecognized)
11246 }
11247 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011248}
11249
11250func (m *AuthRoleListRequest) Marshal() (dAtA []byte, err error) {
11251 size := m.Size()
11252 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011253 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011254 if err != nil {
11255 return nil, err
11256 }
11257 return dAtA[:n], nil
11258}
11259
11260func (m *AuthRoleListRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011261 size := m.Size()
11262 return m.MarshalToSizedBuffer(dAtA[:size])
11263}
11264
11265func (m *AuthRoleListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11266 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011267 _ = i
11268 var l int
11269 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011270 if m.XXX_unrecognized != nil {
11271 i -= len(m.XXX_unrecognized)
11272 copy(dAtA[i:], m.XXX_unrecognized)
11273 }
11274 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011275}
11276
11277func (m *AuthRoleDeleteRequest) Marshal() (dAtA []byte, err error) {
11278 size := m.Size()
11279 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011280 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011281 if err != nil {
11282 return nil, err
11283 }
11284 return dAtA[:n], nil
11285}
11286
11287func (m *AuthRoleDeleteRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011288 size := m.Size()
11289 return m.MarshalToSizedBuffer(dAtA[:size])
11290}
11291
11292func (m *AuthRoleDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11293 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011294 _ = i
11295 var l int
11296 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011297 if m.XXX_unrecognized != nil {
11298 i -= len(m.XXX_unrecognized)
11299 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011300 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011301 if len(m.Role) > 0 {
11302 i -= len(m.Role)
11303 copy(dAtA[i:], m.Role)
11304 i = encodeVarintRpc(dAtA, i, uint64(len(m.Role)))
11305 i--
11306 dAtA[i] = 0xa
11307 }
11308 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011309}
11310
11311func (m *AuthRoleGrantPermissionRequest) Marshal() (dAtA []byte, err error) {
11312 size := m.Size()
11313 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011314 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011315 if err != nil {
11316 return nil, err
11317 }
11318 return dAtA[:n], nil
11319}
11320
11321func (m *AuthRoleGrantPermissionRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011322 size := m.Size()
11323 return m.MarshalToSizedBuffer(dAtA[:size])
11324}
11325
11326func (m *AuthRoleGrantPermissionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11327 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011328 _ = i
11329 var l int
11330 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011331 if m.XXX_unrecognized != nil {
11332 i -= len(m.XXX_unrecognized)
11333 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011334 }
11335 if m.Perm != nil {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011336 {
11337 size, err := m.Perm.MarshalToSizedBuffer(dAtA[:i])
11338 if err != nil {
11339 return 0, err
11340 }
11341 i -= size
11342 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +000011343 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011344 i--
11345 dAtA[i] = 0x12
divyadesai81bb7ba2020-03-11 11:45:23 +000011346 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011347 if len(m.Name) > 0 {
11348 i -= len(m.Name)
11349 copy(dAtA[i:], m.Name)
11350 i = encodeVarintRpc(dAtA, i, uint64(len(m.Name)))
11351 i--
11352 dAtA[i] = 0xa
11353 }
11354 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011355}
11356
11357func (m *AuthRoleRevokePermissionRequest) Marshal() (dAtA []byte, err error) {
11358 size := m.Size()
11359 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011360 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011361 if err != nil {
11362 return nil, err
11363 }
11364 return dAtA[:n], nil
11365}
11366
11367func (m *AuthRoleRevokePermissionRequest) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011368 size := m.Size()
11369 return m.MarshalToSizedBuffer(dAtA[:size])
11370}
11371
11372func (m *AuthRoleRevokePermissionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11373 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011374 _ = i
11375 var l int
11376 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011377 if m.XXX_unrecognized != nil {
11378 i -= len(m.XXX_unrecognized)
11379 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011380 }
11381 if len(m.RangeEnd) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011382 i -= len(m.RangeEnd)
11383 copy(dAtA[i:], m.RangeEnd)
divyadesai81bb7ba2020-03-11 11:45:23 +000011384 i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd)))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011385 i--
11386 dAtA[i] = 0x1a
divyadesai81bb7ba2020-03-11 11:45:23 +000011387 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011388 if len(m.Key) > 0 {
11389 i -= len(m.Key)
11390 copy(dAtA[i:], m.Key)
11391 i = encodeVarintRpc(dAtA, i, uint64(len(m.Key)))
11392 i--
11393 dAtA[i] = 0x12
11394 }
11395 if len(m.Role) > 0 {
11396 i -= len(m.Role)
11397 copy(dAtA[i:], m.Role)
11398 i = encodeVarintRpc(dAtA, i, uint64(len(m.Role)))
11399 i--
11400 dAtA[i] = 0xa
11401 }
11402 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011403}
11404
11405func (m *AuthEnableResponse) Marshal() (dAtA []byte, err error) {
11406 size := m.Size()
11407 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011408 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011409 if err != nil {
11410 return nil, err
11411 }
11412 return dAtA[:n], nil
11413}
11414
11415func (m *AuthEnableResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011416 size := m.Size()
11417 return m.MarshalToSizedBuffer(dAtA[:size])
11418}
11419
11420func (m *AuthEnableResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11421 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011422 _ = i
11423 var l int
11424 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011425 if m.XXX_unrecognized != nil {
11426 i -= len(m.XXX_unrecognized)
11427 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011428 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011429 if m.Header != nil {
11430 {
11431 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
11432 if err != nil {
11433 return 0, err
11434 }
11435 i -= size
11436 i = encodeVarintRpc(dAtA, i, uint64(size))
11437 }
11438 i--
11439 dAtA[i] = 0xa
11440 }
11441 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011442}
11443
11444func (m *AuthDisableResponse) Marshal() (dAtA []byte, err error) {
11445 size := m.Size()
11446 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011447 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011448 if err != nil {
11449 return nil, err
11450 }
11451 return dAtA[:n], nil
11452}
11453
11454func (m *AuthDisableResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011455 size := m.Size()
11456 return m.MarshalToSizedBuffer(dAtA[:size])
11457}
11458
11459func (m *AuthDisableResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11460 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011461 _ = i
11462 var l int
11463 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011464 if m.XXX_unrecognized != nil {
11465 i -= len(m.XXX_unrecognized)
11466 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011467 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011468 if m.Header != nil {
11469 {
11470 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
11471 if err != nil {
11472 return 0, err
11473 }
11474 i -= size
11475 i = encodeVarintRpc(dAtA, i, uint64(size))
11476 }
11477 i--
11478 dAtA[i] = 0xa
11479 }
11480 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011481}
11482
11483func (m *AuthenticateResponse) Marshal() (dAtA []byte, err error) {
11484 size := m.Size()
11485 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011486 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011487 if err != nil {
11488 return nil, err
11489 }
11490 return dAtA[:n], nil
11491}
11492
11493func (m *AuthenticateResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011494 size := m.Size()
11495 return m.MarshalToSizedBuffer(dAtA[:size])
11496}
11497
11498func (m *AuthenticateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11499 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011500 _ = i
11501 var l int
11502 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011503 if m.XXX_unrecognized != nil {
11504 i -= len(m.XXX_unrecognized)
11505 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011506 }
11507 if len(m.Token) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011508 i -= len(m.Token)
11509 copy(dAtA[i:], m.Token)
divyadesai81bb7ba2020-03-11 11:45:23 +000011510 i = encodeVarintRpc(dAtA, i, uint64(len(m.Token)))
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011511 i--
11512 dAtA[i] = 0x12
divyadesai81bb7ba2020-03-11 11:45:23 +000011513 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011514 if m.Header != nil {
11515 {
11516 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
11517 if err != nil {
11518 return 0, err
11519 }
11520 i -= size
11521 i = encodeVarintRpc(dAtA, i, uint64(size))
11522 }
11523 i--
11524 dAtA[i] = 0xa
11525 }
11526 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011527}
11528
11529func (m *AuthUserAddResponse) Marshal() (dAtA []byte, err error) {
11530 size := m.Size()
11531 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011532 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011533 if err != nil {
11534 return nil, err
11535 }
11536 return dAtA[:n], nil
11537}
11538
11539func (m *AuthUserAddResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011540 size := m.Size()
11541 return m.MarshalToSizedBuffer(dAtA[:size])
11542}
11543
11544func (m *AuthUserAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11545 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011546 _ = i
11547 var l int
11548 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011549 if m.XXX_unrecognized != nil {
11550 i -= len(m.XXX_unrecognized)
11551 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011552 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011553 if m.Header != nil {
11554 {
11555 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
11556 if err != nil {
11557 return 0, err
11558 }
11559 i -= size
11560 i = encodeVarintRpc(dAtA, i, uint64(size))
11561 }
11562 i--
11563 dAtA[i] = 0xa
11564 }
11565 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011566}
11567
11568func (m *AuthUserGetResponse) Marshal() (dAtA []byte, err error) {
11569 size := m.Size()
11570 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011571 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011572 if err != nil {
11573 return nil, err
11574 }
11575 return dAtA[:n], nil
11576}
11577
11578func (m *AuthUserGetResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011579 size := m.Size()
11580 return m.MarshalToSizedBuffer(dAtA[:size])
11581}
11582
11583func (m *AuthUserGetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11584 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011585 _ = i
11586 var l int
11587 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011588 if m.XXX_unrecognized != nil {
11589 i -= len(m.XXX_unrecognized)
11590 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011591 }
11592 if len(m.Roles) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011593 for iNdEx := len(m.Roles) - 1; iNdEx >= 0; iNdEx-- {
11594 i -= len(m.Roles[iNdEx])
11595 copy(dAtA[i:], m.Roles[iNdEx])
11596 i = encodeVarintRpc(dAtA, i, uint64(len(m.Roles[iNdEx])))
11597 i--
divyadesai81bb7ba2020-03-11 11:45:23 +000011598 dAtA[i] = 0x12
divyadesai81bb7ba2020-03-11 11:45:23 +000011599 }
11600 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011601 if m.Header != nil {
11602 {
11603 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
11604 if err != nil {
11605 return 0, err
11606 }
11607 i -= size
11608 i = encodeVarintRpc(dAtA, i, uint64(size))
11609 }
11610 i--
11611 dAtA[i] = 0xa
11612 }
11613 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011614}
11615
11616func (m *AuthUserDeleteResponse) Marshal() (dAtA []byte, err error) {
11617 size := m.Size()
11618 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011619 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011620 if err != nil {
11621 return nil, err
11622 }
11623 return dAtA[:n], nil
11624}
11625
11626func (m *AuthUserDeleteResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011627 size := m.Size()
11628 return m.MarshalToSizedBuffer(dAtA[:size])
11629}
11630
11631func (m *AuthUserDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11632 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011633 _ = i
11634 var l int
11635 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011636 if m.XXX_unrecognized != nil {
11637 i -= len(m.XXX_unrecognized)
11638 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011639 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011640 if m.Header != nil {
11641 {
11642 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
11643 if err != nil {
11644 return 0, err
11645 }
11646 i -= size
11647 i = encodeVarintRpc(dAtA, i, uint64(size))
11648 }
11649 i--
11650 dAtA[i] = 0xa
11651 }
11652 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011653}
11654
11655func (m *AuthUserChangePasswordResponse) Marshal() (dAtA []byte, err error) {
11656 size := m.Size()
11657 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011658 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011659 if err != nil {
11660 return nil, err
11661 }
11662 return dAtA[:n], nil
11663}
11664
11665func (m *AuthUserChangePasswordResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011666 size := m.Size()
11667 return m.MarshalToSizedBuffer(dAtA[:size])
11668}
11669
11670func (m *AuthUserChangePasswordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11671 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011672 _ = i
11673 var l int
11674 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011675 if m.XXX_unrecognized != nil {
11676 i -= len(m.XXX_unrecognized)
11677 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011678 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011679 if m.Header != nil {
11680 {
11681 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
11682 if err != nil {
11683 return 0, err
11684 }
11685 i -= size
11686 i = encodeVarintRpc(dAtA, i, uint64(size))
11687 }
11688 i--
11689 dAtA[i] = 0xa
11690 }
11691 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011692}
11693
11694func (m *AuthUserGrantRoleResponse) Marshal() (dAtA []byte, err error) {
11695 size := m.Size()
11696 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011697 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011698 if err != nil {
11699 return nil, err
11700 }
11701 return dAtA[:n], nil
11702}
11703
11704func (m *AuthUserGrantRoleResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011705 size := m.Size()
11706 return m.MarshalToSizedBuffer(dAtA[:size])
11707}
11708
11709func (m *AuthUserGrantRoleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11710 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011711 _ = i
11712 var l int
11713 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011714 if m.XXX_unrecognized != nil {
11715 i -= len(m.XXX_unrecognized)
11716 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011717 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011718 if m.Header != nil {
11719 {
11720 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
11721 if err != nil {
11722 return 0, err
11723 }
11724 i -= size
11725 i = encodeVarintRpc(dAtA, i, uint64(size))
11726 }
11727 i--
11728 dAtA[i] = 0xa
11729 }
11730 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011731}
11732
11733func (m *AuthUserRevokeRoleResponse) Marshal() (dAtA []byte, err error) {
11734 size := m.Size()
11735 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011736 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011737 if err != nil {
11738 return nil, err
11739 }
11740 return dAtA[:n], nil
11741}
11742
11743func (m *AuthUserRevokeRoleResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011744 size := m.Size()
11745 return m.MarshalToSizedBuffer(dAtA[:size])
11746}
11747
11748func (m *AuthUserRevokeRoleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11749 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011750 _ = i
11751 var l int
11752 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011753 if m.XXX_unrecognized != nil {
11754 i -= len(m.XXX_unrecognized)
11755 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011756 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011757 if m.Header != nil {
11758 {
11759 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
11760 if err != nil {
11761 return 0, err
11762 }
11763 i -= size
11764 i = encodeVarintRpc(dAtA, i, uint64(size))
11765 }
11766 i--
11767 dAtA[i] = 0xa
11768 }
11769 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011770}
11771
11772func (m *AuthRoleAddResponse) Marshal() (dAtA []byte, err error) {
11773 size := m.Size()
11774 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011775 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011776 if err != nil {
11777 return nil, err
11778 }
11779 return dAtA[:n], nil
11780}
11781
11782func (m *AuthRoleAddResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011783 size := m.Size()
11784 return m.MarshalToSizedBuffer(dAtA[:size])
11785}
11786
11787func (m *AuthRoleAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11788 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011789 _ = i
11790 var l int
11791 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011792 if m.XXX_unrecognized != nil {
11793 i -= len(m.XXX_unrecognized)
11794 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011795 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011796 if m.Header != nil {
11797 {
11798 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
11799 if err != nil {
11800 return 0, err
11801 }
11802 i -= size
11803 i = encodeVarintRpc(dAtA, i, uint64(size))
11804 }
11805 i--
11806 dAtA[i] = 0xa
11807 }
11808 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011809}
11810
11811func (m *AuthRoleGetResponse) Marshal() (dAtA []byte, err error) {
11812 size := m.Size()
11813 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011814 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011815 if err != nil {
11816 return nil, err
11817 }
11818 return dAtA[:n], nil
11819}
11820
11821func (m *AuthRoleGetResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011822 size := m.Size()
11823 return m.MarshalToSizedBuffer(dAtA[:size])
11824}
11825
11826func (m *AuthRoleGetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11827 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011828 _ = i
11829 var l int
11830 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011831 if m.XXX_unrecognized != nil {
11832 i -= len(m.XXX_unrecognized)
11833 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011834 }
11835 if len(m.Perm) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011836 for iNdEx := len(m.Perm) - 1; iNdEx >= 0; iNdEx-- {
11837 {
11838 size, err := m.Perm[iNdEx].MarshalToSizedBuffer(dAtA[:i])
11839 if err != nil {
11840 return 0, err
11841 }
11842 i -= size
11843 i = encodeVarintRpc(dAtA, i, uint64(size))
11844 }
11845 i--
divyadesai81bb7ba2020-03-11 11:45:23 +000011846 dAtA[i] = 0x12
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011847 }
11848 }
11849 if m.Header != nil {
11850 {
11851 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
divyadesai81bb7ba2020-03-11 11:45:23 +000011852 if err != nil {
11853 return 0, err
11854 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011855 i -= size
11856 i = encodeVarintRpc(dAtA, i, uint64(size))
divyadesai81bb7ba2020-03-11 11:45:23 +000011857 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011858 i--
11859 dAtA[i] = 0xa
divyadesai81bb7ba2020-03-11 11:45:23 +000011860 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011861 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011862}
11863
11864func (m *AuthRoleListResponse) Marshal() (dAtA []byte, err error) {
11865 size := m.Size()
11866 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011867 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011868 if err != nil {
11869 return nil, err
11870 }
11871 return dAtA[:n], nil
11872}
11873
11874func (m *AuthRoleListResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011875 size := m.Size()
11876 return m.MarshalToSizedBuffer(dAtA[:size])
11877}
11878
11879func (m *AuthRoleListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11880 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011881 _ = i
11882 var l int
11883 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011884 if m.XXX_unrecognized != nil {
11885 i -= len(m.XXX_unrecognized)
11886 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011887 }
11888 if len(m.Roles) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011889 for iNdEx := len(m.Roles) - 1; iNdEx >= 0; iNdEx-- {
11890 i -= len(m.Roles[iNdEx])
11891 copy(dAtA[i:], m.Roles[iNdEx])
11892 i = encodeVarintRpc(dAtA, i, uint64(len(m.Roles[iNdEx])))
11893 i--
divyadesai81bb7ba2020-03-11 11:45:23 +000011894 dAtA[i] = 0x12
divyadesai81bb7ba2020-03-11 11:45:23 +000011895 }
11896 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011897 if m.Header != nil {
11898 {
11899 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
11900 if err != nil {
11901 return 0, err
11902 }
11903 i -= size
11904 i = encodeVarintRpc(dAtA, i, uint64(size))
11905 }
11906 i--
11907 dAtA[i] = 0xa
11908 }
11909 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011910}
11911
11912func (m *AuthUserListResponse) Marshal() (dAtA []byte, err error) {
11913 size := m.Size()
11914 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011915 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011916 if err != nil {
11917 return nil, err
11918 }
11919 return dAtA[:n], nil
11920}
11921
11922func (m *AuthUserListResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011923 size := m.Size()
11924 return m.MarshalToSizedBuffer(dAtA[:size])
11925}
11926
11927func (m *AuthUserListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11928 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011929 _ = i
11930 var l int
11931 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011932 if m.XXX_unrecognized != nil {
11933 i -= len(m.XXX_unrecognized)
11934 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011935 }
11936 if len(m.Users) > 0 {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011937 for iNdEx := len(m.Users) - 1; iNdEx >= 0; iNdEx-- {
11938 i -= len(m.Users[iNdEx])
11939 copy(dAtA[i:], m.Users[iNdEx])
11940 i = encodeVarintRpc(dAtA, i, uint64(len(m.Users[iNdEx])))
11941 i--
divyadesai81bb7ba2020-03-11 11:45:23 +000011942 dAtA[i] = 0x12
divyadesai81bb7ba2020-03-11 11:45:23 +000011943 }
11944 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011945 if m.Header != nil {
11946 {
11947 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
11948 if err != nil {
11949 return 0, err
11950 }
11951 i -= size
11952 i = encodeVarintRpc(dAtA, i, uint64(size))
11953 }
11954 i--
11955 dAtA[i] = 0xa
11956 }
11957 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011958}
11959
11960func (m *AuthRoleDeleteResponse) Marshal() (dAtA []byte, err error) {
11961 size := m.Size()
11962 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011963 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000011964 if err != nil {
11965 return nil, err
11966 }
11967 return dAtA[:n], nil
11968}
11969
11970func (m *AuthRoleDeleteResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011971 size := m.Size()
11972 return m.MarshalToSizedBuffer(dAtA[:size])
11973}
11974
11975func (m *AuthRoleDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
11976 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000011977 _ = i
11978 var l int
11979 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011980 if m.XXX_unrecognized != nil {
11981 i -= len(m.XXX_unrecognized)
11982 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000011983 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000011984 if m.Header != nil {
11985 {
11986 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
11987 if err != nil {
11988 return 0, err
11989 }
11990 i -= size
11991 i = encodeVarintRpc(dAtA, i, uint64(size))
11992 }
11993 i--
11994 dAtA[i] = 0xa
11995 }
11996 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000011997}
11998
11999func (m *AuthRoleGrantPermissionResponse) Marshal() (dAtA []byte, err error) {
12000 size := m.Size()
12001 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012002 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000012003 if err != nil {
12004 return nil, err
12005 }
12006 return dAtA[:n], nil
12007}
12008
12009func (m *AuthRoleGrantPermissionResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012010 size := m.Size()
12011 return m.MarshalToSizedBuffer(dAtA[:size])
12012}
12013
12014func (m *AuthRoleGrantPermissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
12015 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000012016 _ = i
12017 var l int
12018 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012019 if m.XXX_unrecognized != nil {
12020 i -= len(m.XXX_unrecognized)
12021 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000012022 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012023 if m.Header != nil {
12024 {
12025 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
12026 if err != nil {
12027 return 0, err
12028 }
12029 i -= size
12030 i = encodeVarintRpc(dAtA, i, uint64(size))
12031 }
12032 i--
12033 dAtA[i] = 0xa
12034 }
12035 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000012036}
12037
12038func (m *AuthRoleRevokePermissionResponse) Marshal() (dAtA []byte, err error) {
12039 size := m.Size()
12040 dAtA = make([]byte, size)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012041 n, err := m.MarshalToSizedBuffer(dAtA[:size])
divyadesai81bb7ba2020-03-11 11:45:23 +000012042 if err != nil {
12043 return nil, err
12044 }
12045 return dAtA[:n], nil
12046}
12047
12048func (m *AuthRoleRevokePermissionResponse) MarshalTo(dAtA []byte) (int, error) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012049 size := m.Size()
12050 return m.MarshalToSizedBuffer(dAtA[:size])
12051}
12052
12053func (m *AuthRoleRevokePermissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
12054 i := len(dAtA)
divyadesai81bb7ba2020-03-11 11:45:23 +000012055 _ = i
12056 var l int
12057 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012058 if m.XXX_unrecognized != nil {
12059 i -= len(m.XXX_unrecognized)
12060 copy(dAtA[i:], m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000012061 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012062 if m.Header != nil {
12063 {
12064 size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
12065 if err != nil {
12066 return 0, err
12067 }
12068 i -= size
12069 i = encodeVarintRpc(dAtA, i, uint64(size))
12070 }
12071 i--
12072 dAtA[i] = 0xa
12073 }
12074 return len(dAtA) - i, nil
divyadesai81bb7ba2020-03-11 11:45:23 +000012075}
12076
12077func encodeVarintRpc(dAtA []byte, offset int, v uint64) int {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012078 offset -= sovRpc(v)
12079 base := offset
divyadesai81bb7ba2020-03-11 11:45:23 +000012080 for v >= 1<<7 {
12081 dAtA[offset] = uint8(v&0x7f | 0x80)
12082 v >>= 7
12083 offset++
12084 }
12085 dAtA[offset] = uint8(v)
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012086 return base
divyadesai81bb7ba2020-03-11 11:45:23 +000012087}
12088func (m *ResponseHeader) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012089 if m == nil {
12090 return 0
12091 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012092 var l int
12093 _ = l
12094 if m.ClusterId != 0 {
12095 n += 1 + sovRpc(uint64(m.ClusterId))
12096 }
12097 if m.MemberId != 0 {
12098 n += 1 + sovRpc(uint64(m.MemberId))
12099 }
12100 if m.Revision != 0 {
12101 n += 1 + sovRpc(uint64(m.Revision))
12102 }
12103 if m.RaftTerm != 0 {
12104 n += 1 + sovRpc(uint64(m.RaftTerm))
12105 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012106 if m.XXX_unrecognized != nil {
12107 n += len(m.XXX_unrecognized)
12108 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012109 return n
12110}
12111
12112func (m *RangeRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012113 if m == nil {
12114 return 0
12115 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012116 var l int
12117 _ = l
12118 l = len(m.Key)
12119 if l > 0 {
12120 n += 1 + l + sovRpc(uint64(l))
12121 }
12122 l = len(m.RangeEnd)
12123 if l > 0 {
12124 n += 1 + l + sovRpc(uint64(l))
12125 }
12126 if m.Limit != 0 {
12127 n += 1 + sovRpc(uint64(m.Limit))
12128 }
12129 if m.Revision != 0 {
12130 n += 1 + sovRpc(uint64(m.Revision))
12131 }
12132 if m.SortOrder != 0 {
12133 n += 1 + sovRpc(uint64(m.SortOrder))
12134 }
12135 if m.SortTarget != 0 {
12136 n += 1 + sovRpc(uint64(m.SortTarget))
12137 }
12138 if m.Serializable {
12139 n += 2
12140 }
12141 if m.KeysOnly {
12142 n += 2
12143 }
12144 if m.CountOnly {
12145 n += 2
12146 }
12147 if m.MinModRevision != 0 {
12148 n += 1 + sovRpc(uint64(m.MinModRevision))
12149 }
12150 if m.MaxModRevision != 0 {
12151 n += 1 + sovRpc(uint64(m.MaxModRevision))
12152 }
12153 if m.MinCreateRevision != 0 {
12154 n += 1 + sovRpc(uint64(m.MinCreateRevision))
12155 }
12156 if m.MaxCreateRevision != 0 {
12157 n += 1 + sovRpc(uint64(m.MaxCreateRevision))
12158 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012159 if m.XXX_unrecognized != nil {
12160 n += len(m.XXX_unrecognized)
12161 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012162 return n
12163}
12164
12165func (m *RangeResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012166 if m == nil {
12167 return 0
12168 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012169 var l int
12170 _ = l
12171 if m.Header != nil {
12172 l = m.Header.Size()
12173 n += 1 + l + sovRpc(uint64(l))
12174 }
12175 if len(m.Kvs) > 0 {
12176 for _, e := range m.Kvs {
12177 l = e.Size()
12178 n += 1 + l + sovRpc(uint64(l))
12179 }
12180 }
12181 if m.More {
12182 n += 2
12183 }
12184 if m.Count != 0 {
12185 n += 1 + sovRpc(uint64(m.Count))
12186 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012187 if m.XXX_unrecognized != nil {
12188 n += len(m.XXX_unrecognized)
12189 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012190 return n
12191}
12192
12193func (m *PutRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012194 if m == nil {
12195 return 0
12196 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012197 var l int
12198 _ = l
12199 l = len(m.Key)
12200 if l > 0 {
12201 n += 1 + l + sovRpc(uint64(l))
12202 }
12203 l = len(m.Value)
12204 if l > 0 {
12205 n += 1 + l + sovRpc(uint64(l))
12206 }
12207 if m.Lease != 0 {
12208 n += 1 + sovRpc(uint64(m.Lease))
12209 }
12210 if m.PrevKv {
12211 n += 2
12212 }
12213 if m.IgnoreValue {
12214 n += 2
12215 }
12216 if m.IgnoreLease {
12217 n += 2
12218 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012219 if m.XXX_unrecognized != nil {
12220 n += len(m.XXX_unrecognized)
12221 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012222 return n
12223}
12224
12225func (m *PutResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012226 if m == nil {
12227 return 0
12228 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012229 var l int
12230 _ = l
12231 if m.Header != nil {
12232 l = m.Header.Size()
12233 n += 1 + l + sovRpc(uint64(l))
12234 }
12235 if m.PrevKv != nil {
12236 l = m.PrevKv.Size()
12237 n += 1 + l + sovRpc(uint64(l))
12238 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012239 if m.XXX_unrecognized != nil {
12240 n += len(m.XXX_unrecognized)
12241 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012242 return n
12243}
12244
12245func (m *DeleteRangeRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012246 if m == nil {
12247 return 0
12248 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012249 var l int
12250 _ = l
12251 l = len(m.Key)
12252 if l > 0 {
12253 n += 1 + l + sovRpc(uint64(l))
12254 }
12255 l = len(m.RangeEnd)
12256 if l > 0 {
12257 n += 1 + l + sovRpc(uint64(l))
12258 }
12259 if m.PrevKv {
12260 n += 2
12261 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012262 if m.XXX_unrecognized != nil {
12263 n += len(m.XXX_unrecognized)
12264 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012265 return n
12266}
12267
12268func (m *DeleteRangeResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012269 if m == nil {
12270 return 0
12271 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012272 var l int
12273 _ = l
12274 if m.Header != nil {
12275 l = m.Header.Size()
12276 n += 1 + l + sovRpc(uint64(l))
12277 }
12278 if m.Deleted != 0 {
12279 n += 1 + sovRpc(uint64(m.Deleted))
12280 }
12281 if len(m.PrevKvs) > 0 {
12282 for _, e := range m.PrevKvs {
12283 l = e.Size()
12284 n += 1 + l + sovRpc(uint64(l))
12285 }
12286 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012287 if m.XXX_unrecognized != nil {
12288 n += len(m.XXX_unrecognized)
12289 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012290 return n
12291}
12292
12293func (m *RequestOp) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012294 if m == nil {
12295 return 0
12296 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012297 var l int
12298 _ = l
12299 if m.Request != nil {
12300 n += m.Request.Size()
12301 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012302 if m.XXX_unrecognized != nil {
12303 n += len(m.XXX_unrecognized)
12304 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012305 return n
12306}
12307
12308func (m *RequestOp_RequestRange) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012309 if m == nil {
12310 return 0
12311 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012312 var l int
12313 _ = l
12314 if m.RequestRange != nil {
12315 l = m.RequestRange.Size()
12316 n += 1 + l + sovRpc(uint64(l))
12317 }
12318 return n
12319}
12320func (m *RequestOp_RequestPut) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012321 if m == nil {
12322 return 0
12323 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012324 var l int
12325 _ = l
12326 if m.RequestPut != nil {
12327 l = m.RequestPut.Size()
12328 n += 1 + l + sovRpc(uint64(l))
12329 }
12330 return n
12331}
12332func (m *RequestOp_RequestDeleteRange) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012333 if m == nil {
12334 return 0
12335 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012336 var l int
12337 _ = l
12338 if m.RequestDeleteRange != nil {
12339 l = m.RequestDeleteRange.Size()
12340 n += 1 + l + sovRpc(uint64(l))
12341 }
12342 return n
12343}
12344func (m *RequestOp_RequestTxn) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012345 if m == nil {
12346 return 0
12347 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012348 var l int
12349 _ = l
12350 if m.RequestTxn != nil {
12351 l = m.RequestTxn.Size()
12352 n += 1 + l + sovRpc(uint64(l))
12353 }
12354 return n
12355}
12356func (m *ResponseOp) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012357 if m == nil {
12358 return 0
12359 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012360 var l int
12361 _ = l
12362 if m.Response != nil {
12363 n += m.Response.Size()
12364 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012365 if m.XXX_unrecognized != nil {
12366 n += len(m.XXX_unrecognized)
12367 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012368 return n
12369}
12370
12371func (m *ResponseOp_ResponseRange) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012372 if m == nil {
12373 return 0
12374 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012375 var l int
12376 _ = l
12377 if m.ResponseRange != nil {
12378 l = m.ResponseRange.Size()
12379 n += 1 + l + sovRpc(uint64(l))
12380 }
12381 return n
12382}
12383func (m *ResponseOp_ResponsePut) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012384 if m == nil {
12385 return 0
12386 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012387 var l int
12388 _ = l
12389 if m.ResponsePut != nil {
12390 l = m.ResponsePut.Size()
12391 n += 1 + l + sovRpc(uint64(l))
12392 }
12393 return n
12394}
12395func (m *ResponseOp_ResponseDeleteRange) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012396 if m == nil {
12397 return 0
12398 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012399 var l int
12400 _ = l
12401 if m.ResponseDeleteRange != nil {
12402 l = m.ResponseDeleteRange.Size()
12403 n += 1 + l + sovRpc(uint64(l))
12404 }
12405 return n
12406}
12407func (m *ResponseOp_ResponseTxn) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012408 if m == nil {
12409 return 0
12410 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012411 var l int
12412 _ = l
12413 if m.ResponseTxn != nil {
12414 l = m.ResponseTxn.Size()
12415 n += 1 + l + sovRpc(uint64(l))
12416 }
12417 return n
12418}
12419func (m *Compare) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012420 if m == nil {
12421 return 0
12422 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012423 var l int
12424 _ = l
12425 if m.Result != 0 {
12426 n += 1 + sovRpc(uint64(m.Result))
12427 }
12428 if m.Target != 0 {
12429 n += 1 + sovRpc(uint64(m.Target))
12430 }
12431 l = len(m.Key)
12432 if l > 0 {
12433 n += 1 + l + sovRpc(uint64(l))
12434 }
12435 if m.TargetUnion != nil {
12436 n += m.TargetUnion.Size()
12437 }
12438 l = len(m.RangeEnd)
12439 if l > 0 {
12440 n += 2 + l + sovRpc(uint64(l))
12441 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012442 if m.XXX_unrecognized != nil {
12443 n += len(m.XXX_unrecognized)
12444 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012445 return n
12446}
12447
12448func (m *Compare_Version) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012449 if m == nil {
12450 return 0
12451 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012452 var l int
12453 _ = l
12454 n += 1 + sovRpc(uint64(m.Version))
12455 return n
12456}
12457func (m *Compare_CreateRevision) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012458 if m == nil {
12459 return 0
12460 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012461 var l int
12462 _ = l
12463 n += 1 + sovRpc(uint64(m.CreateRevision))
12464 return n
12465}
12466func (m *Compare_ModRevision) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012467 if m == nil {
12468 return 0
12469 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012470 var l int
12471 _ = l
12472 n += 1 + sovRpc(uint64(m.ModRevision))
12473 return n
12474}
12475func (m *Compare_Value) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012476 if m == nil {
12477 return 0
12478 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012479 var l int
12480 _ = l
12481 if m.Value != nil {
12482 l = len(m.Value)
12483 n += 1 + l + sovRpc(uint64(l))
12484 }
12485 return n
12486}
12487func (m *Compare_Lease) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012488 if m == nil {
12489 return 0
12490 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012491 var l int
12492 _ = l
12493 n += 1 + sovRpc(uint64(m.Lease))
12494 return n
12495}
12496func (m *TxnRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012497 if m == nil {
12498 return 0
12499 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012500 var l int
12501 _ = l
12502 if len(m.Compare) > 0 {
12503 for _, e := range m.Compare {
12504 l = e.Size()
12505 n += 1 + l + sovRpc(uint64(l))
12506 }
12507 }
12508 if len(m.Success) > 0 {
12509 for _, e := range m.Success {
12510 l = e.Size()
12511 n += 1 + l + sovRpc(uint64(l))
12512 }
12513 }
12514 if len(m.Failure) > 0 {
12515 for _, e := range m.Failure {
12516 l = e.Size()
12517 n += 1 + l + sovRpc(uint64(l))
12518 }
12519 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012520 if m.XXX_unrecognized != nil {
12521 n += len(m.XXX_unrecognized)
12522 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012523 return n
12524}
12525
12526func (m *TxnResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012527 if m == nil {
12528 return 0
12529 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012530 var l int
12531 _ = l
12532 if m.Header != nil {
12533 l = m.Header.Size()
12534 n += 1 + l + sovRpc(uint64(l))
12535 }
12536 if m.Succeeded {
12537 n += 2
12538 }
12539 if len(m.Responses) > 0 {
12540 for _, e := range m.Responses {
12541 l = e.Size()
12542 n += 1 + l + sovRpc(uint64(l))
12543 }
12544 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012545 if m.XXX_unrecognized != nil {
12546 n += len(m.XXX_unrecognized)
12547 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012548 return n
12549}
12550
12551func (m *CompactionRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012552 if m == nil {
12553 return 0
12554 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012555 var l int
12556 _ = l
12557 if m.Revision != 0 {
12558 n += 1 + sovRpc(uint64(m.Revision))
12559 }
12560 if m.Physical {
12561 n += 2
12562 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012563 if m.XXX_unrecognized != nil {
12564 n += len(m.XXX_unrecognized)
12565 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012566 return n
12567}
12568
12569func (m *CompactionResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012570 if m == nil {
12571 return 0
12572 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012573 var l int
12574 _ = l
12575 if m.Header != nil {
12576 l = m.Header.Size()
12577 n += 1 + l + sovRpc(uint64(l))
12578 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012579 if m.XXX_unrecognized != nil {
12580 n += len(m.XXX_unrecognized)
12581 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012582 return n
12583}
12584
12585func (m *HashRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012586 if m == nil {
12587 return 0
12588 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012589 var l int
12590 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012591 if m.XXX_unrecognized != nil {
12592 n += len(m.XXX_unrecognized)
12593 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012594 return n
12595}
12596
12597func (m *HashKVRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012598 if m == nil {
12599 return 0
12600 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012601 var l int
12602 _ = l
12603 if m.Revision != 0 {
12604 n += 1 + sovRpc(uint64(m.Revision))
12605 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012606 if m.XXX_unrecognized != nil {
12607 n += len(m.XXX_unrecognized)
12608 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012609 return n
12610}
12611
12612func (m *HashKVResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012613 if m == nil {
12614 return 0
12615 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012616 var l int
12617 _ = l
12618 if m.Header != nil {
12619 l = m.Header.Size()
12620 n += 1 + l + sovRpc(uint64(l))
12621 }
12622 if m.Hash != 0 {
12623 n += 1 + sovRpc(uint64(m.Hash))
12624 }
12625 if m.CompactRevision != 0 {
12626 n += 1 + sovRpc(uint64(m.CompactRevision))
12627 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012628 if m.XXX_unrecognized != nil {
12629 n += len(m.XXX_unrecognized)
12630 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012631 return n
12632}
12633
12634func (m *HashResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012635 if m == nil {
12636 return 0
12637 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012638 var l int
12639 _ = l
12640 if m.Header != nil {
12641 l = m.Header.Size()
12642 n += 1 + l + sovRpc(uint64(l))
12643 }
12644 if m.Hash != 0 {
12645 n += 1 + sovRpc(uint64(m.Hash))
12646 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012647 if m.XXX_unrecognized != nil {
12648 n += len(m.XXX_unrecognized)
12649 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012650 return n
12651}
12652
12653func (m *SnapshotRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012654 if m == nil {
12655 return 0
12656 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012657 var l int
12658 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012659 if m.XXX_unrecognized != nil {
12660 n += len(m.XXX_unrecognized)
12661 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012662 return n
12663}
12664
12665func (m *SnapshotResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012666 if m == nil {
12667 return 0
12668 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012669 var l int
12670 _ = l
12671 if m.Header != nil {
12672 l = m.Header.Size()
12673 n += 1 + l + sovRpc(uint64(l))
12674 }
12675 if m.RemainingBytes != 0 {
12676 n += 1 + sovRpc(uint64(m.RemainingBytes))
12677 }
12678 l = len(m.Blob)
12679 if l > 0 {
12680 n += 1 + l + sovRpc(uint64(l))
12681 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012682 if m.XXX_unrecognized != nil {
12683 n += len(m.XXX_unrecognized)
12684 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012685 return n
12686}
12687
12688func (m *WatchRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012689 if m == nil {
12690 return 0
12691 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012692 var l int
12693 _ = l
12694 if m.RequestUnion != nil {
12695 n += m.RequestUnion.Size()
12696 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012697 if m.XXX_unrecognized != nil {
12698 n += len(m.XXX_unrecognized)
12699 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012700 return n
12701}
12702
12703func (m *WatchRequest_CreateRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012704 if m == nil {
12705 return 0
12706 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012707 var l int
12708 _ = l
12709 if m.CreateRequest != nil {
12710 l = m.CreateRequest.Size()
12711 n += 1 + l + sovRpc(uint64(l))
12712 }
12713 return n
12714}
12715func (m *WatchRequest_CancelRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012716 if m == nil {
12717 return 0
12718 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012719 var l int
12720 _ = l
12721 if m.CancelRequest != nil {
12722 l = m.CancelRequest.Size()
12723 n += 1 + l + sovRpc(uint64(l))
12724 }
12725 return n
12726}
12727func (m *WatchRequest_ProgressRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012728 if m == nil {
12729 return 0
12730 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012731 var l int
12732 _ = l
12733 if m.ProgressRequest != nil {
12734 l = m.ProgressRequest.Size()
12735 n += 1 + l + sovRpc(uint64(l))
12736 }
12737 return n
12738}
12739func (m *WatchCreateRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012740 if m == nil {
12741 return 0
12742 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012743 var l int
12744 _ = l
12745 l = len(m.Key)
12746 if l > 0 {
12747 n += 1 + l + sovRpc(uint64(l))
12748 }
12749 l = len(m.RangeEnd)
12750 if l > 0 {
12751 n += 1 + l + sovRpc(uint64(l))
12752 }
12753 if m.StartRevision != 0 {
12754 n += 1 + sovRpc(uint64(m.StartRevision))
12755 }
12756 if m.ProgressNotify {
12757 n += 2
12758 }
12759 if len(m.Filters) > 0 {
12760 l = 0
12761 for _, e := range m.Filters {
12762 l += sovRpc(uint64(e))
12763 }
12764 n += 1 + sovRpc(uint64(l)) + l
12765 }
12766 if m.PrevKv {
12767 n += 2
12768 }
12769 if m.WatchId != 0 {
12770 n += 1 + sovRpc(uint64(m.WatchId))
12771 }
12772 if m.Fragment {
12773 n += 2
12774 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012775 if m.XXX_unrecognized != nil {
12776 n += len(m.XXX_unrecognized)
12777 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012778 return n
12779}
12780
12781func (m *WatchCancelRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012782 if m == nil {
12783 return 0
12784 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012785 var l int
12786 _ = l
12787 if m.WatchId != 0 {
12788 n += 1 + sovRpc(uint64(m.WatchId))
12789 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012790 if m.XXX_unrecognized != nil {
12791 n += len(m.XXX_unrecognized)
12792 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012793 return n
12794}
12795
12796func (m *WatchProgressRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012797 if m == nil {
12798 return 0
12799 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012800 var l int
12801 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012802 if m.XXX_unrecognized != nil {
12803 n += len(m.XXX_unrecognized)
12804 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012805 return n
12806}
12807
12808func (m *WatchResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012809 if m == nil {
12810 return 0
12811 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012812 var l int
12813 _ = l
12814 if m.Header != nil {
12815 l = m.Header.Size()
12816 n += 1 + l + sovRpc(uint64(l))
12817 }
12818 if m.WatchId != 0 {
12819 n += 1 + sovRpc(uint64(m.WatchId))
12820 }
12821 if m.Created {
12822 n += 2
12823 }
12824 if m.Canceled {
12825 n += 2
12826 }
12827 if m.CompactRevision != 0 {
12828 n += 1 + sovRpc(uint64(m.CompactRevision))
12829 }
12830 l = len(m.CancelReason)
12831 if l > 0 {
12832 n += 1 + l + sovRpc(uint64(l))
12833 }
12834 if m.Fragment {
12835 n += 2
12836 }
12837 if len(m.Events) > 0 {
12838 for _, e := range m.Events {
12839 l = e.Size()
12840 n += 1 + l + sovRpc(uint64(l))
12841 }
12842 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012843 if m.XXX_unrecognized != nil {
12844 n += len(m.XXX_unrecognized)
12845 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012846 return n
12847}
12848
12849func (m *LeaseGrantRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012850 if m == nil {
12851 return 0
12852 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012853 var l int
12854 _ = l
12855 if m.TTL != 0 {
12856 n += 1 + sovRpc(uint64(m.TTL))
12857 }
12858 if m.ID != 0 {
12859 n += 1 + sovRpc(uint64(m.ID))
12860 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012861 if m.XXX_unrecognized != nil {
12862 n += len(m.XXX_unrecognized)
12863 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012864 return n
12865}
12866
12867func (m *LeaseGrantResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012868 if m == nil {
12869 return 0
12870 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012871 var l int
12872 _ = l
12873 if m.Header != nil {
12874 l = m.Header.Size()
12875 n += 1 + l + sovRpc(uint64(l))
12876 }
12877 if m.ID != 0 {
12878 n += 1 + sovRpc(uint64(m.ID))
12879 }
12880 if m.TTL != 0 {
12881 n += 1 + sovRpc(uint64(m.TTL))
12882 }
12883 l = len(m.Error)
12884 if l > 0 {
12885 n += 1 + l + sovRpc(uint64(l))
12886 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012887 if m.XXX_unrecognized != nil {
12888 n += len(m.XXX_unrecognized)
12889 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012890 return n
12891}
12892
12893func (m *LeaseRevokeRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012894 if m == nil {
12895 return 0
12896 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012897 var l int
12898 _ = l
12899 if m.ID != 0 {
12900 n += 1 + sovRpc(uint64(m.ID))
12901 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012902 if m.XXX_unrecognized != nil {
12903 n += len(m.XXX_unrecognized)
12904 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012905 return n
12906}
12907
12908func (m *LeaseRevokeResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012909 if m == nil {
12910 return 0
12911 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012912 var l int
12913 _ = l
12914 if m.Header != nil {
12915 l = m.Header.Size()
12916 n += 1 + l + sovRpc(uint64(l))
12917 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012918 if m.XXX_unrecognized != nil {
12919 n += len(m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000012920 }
12921 return n
12922}
12923
12924func (m *LeaseKeepAliveRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012925 if m == nil {
12926 return 0
12927 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012928 var l int
12929 _ = l
12930 if m.ID != 0 {
12931 n += 1 + sovRpc(uint64(m.ID))
12932 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012933 if m.XXX_unrecognized != nil {
12934 n += len(m.XXX_unrecognized)
12935 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012936 return n
12937}
12938
12939func (m *LeaseKeepAliveResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012940 if m == nil {
12941 return 0
12942 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012943 var l int
12944 _ = l
12945 if m.Header != nil {
12946 l = m.Header.Size()
12947 n += 1 + l + sovRpc(uint64(l))
12948 }
12949 if m.ID != 0 {
12950 n += 1 + sovRpc(uint64(m.ID))
12951 }
12952 if m.TTL != 0 {
12953 n += 1 + sovRpc(uint64(m.TTL))
12954 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012955 if m.XXX_unrecognized != nil {
12956 n += len(m.XXX_unrecognized)
12957 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012958 return n
12959}
12960
12961func (m *LeaseTimeToLiveRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012962 if m == nil {
12963 return 0
12964 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012965 var l int
12966 _ = l
12967 if m.ID != 0 {
12968 n += 1 + sovRpc(uint64(m.ID))
12969 }
12970 if m.Keys {
12971 n += 2
12972 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012973 if m.XXX_unrecognized != nil {
12974 n += len(m.XXX_unrecognized)
12975 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012976 return n
12977}
12978
12979func (m *LeaseTimeToLiveResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000012980 if m == nil {
12981 return 0
12982 }
divyadesai81bb7ba2020-03-11 11:45:23 +000012983 var l int
12984 _ = l
12985 if m.Header != nil {
12986 l = m.Header.Size()
12987 n += 1 + l + sovRpc(uint64(l))
12988 }
12989 if m.ID != 0 {
12990 n += 1 + sovRpc(uint64(m.ID))
12991 }
12992 if m.TTL != 0 {
12993 n += 1 + sovRpc(uint64(m.TTL))
12994 }
12995 if m.GrantedTTL != 0 {
12996 n += 1 + sovRpc(uint64(m.GrantedTTL))
12997 }
12998 if len(m.Keys) > 0 {
12999 for _, b := range m.Keys {
13000 l = len(b)
13001 n += 1 + l + sovRpc(uint64(l))
13002 }
13003 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013004 if m.XXX_unrecognized != nil {
13005 n += len(m.XXX_unrecognized)
13006 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013007 return n
13008}
13009
13010func (m *LeaseLeasesRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013011 if m == nil {
13012 return 0
13013 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013014 var l int
13015 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013016 if m.XXX_unrecognized != nil {
13017 n += len(m.XXX_unrecognized)
13018 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013019 return n
13020}
13021
13022func (m *LeaseStatus) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013023 if m == nil {
13024 return 0
13025 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013026 var l int
13027 _ = l
13028 if m.ID != 0 {
13029 n += 1 + sovRpc(uint64(m.ID))
13030 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013031 if m.XXX_unrecognized != nil {
13032 n += len(m.XXX_unrecognized)
13033 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013034 return n
13035}
13036
13037func (m *LeaseLeasesResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013038 if m == nil {
13039 return 0
13040 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013041 var l int
13042 _ = l
13043 if m.Header != nil {
13044 l = m.Header.Size()
13045 n += 1 + l + sovRpc(uint64(l))
13046 }
13047 if len(m.Leases) > 0 {
13048 for _, e := range m.Leases {
13049 l = e.Size()
13050 n += 1 + l + sovRpc(uint64(l))
13051 }
13052 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013053 if m.XXX_unrecognized != nil {
13054 n += len(m.XXX_unrecognized)
13055 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013056 return n
13057}
13058
13059func (m *Member) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013060 if m == nil {
13061 return 0
13062 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013063 var l int
13064 _ = l
13065 if m.ID != 0 {
13066 n += 1 + sovRpc(uint64(m.ID))
13067 }
13068 l = len(m.Name)
13069 if l > 0 {
13070 n += 1 + l + sovRpc(uint64(l))
13071 }
13072 if len(m.PeerURLs) > 0 {
13073 for _, s := range m.PeerURLs {
13074 l = len(s)
13075 n += 1 + l + sovRpc(uint64(l))
13076 }
13077 }
13078 if len(m.ClientURLs) > 0 {
13079 for _, s := range m.ClientURLs {
13080 l = len(s)
13081 n += 1 + l + sovRpc(uint64(l))
13082 }
13083 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013084 if m.XXX_unrecognized != nil {
13085 n += len(m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000013086 }
13087 return n
13088}
13089
13090func (m *MemberAddRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013091 if m == nil {
13092 return 0
13093 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013094 var l int
13095 _ = l
13096 if len(m.PeerURLs) > 0 {
13097 for _, s := range m.PeerURLs {
13098 l = len(s)
13099 n += 1 + l + sovRpc(uint64(l))
13100 }
13101 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013102 if m.XXX_unrecognized != nil {
13103 n += len(m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000013104 }
13105 return n
13106}
13107
13108func (m *MemberAddResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013109 if m == nil {
13110 return 0
13111 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013112 var l int
13113 _ = l
13114 if m.Header != nil {
13115 l = m.Header.Size()
13116 n += 1 + l + sovRpc(uint64(l))
13117 }
13118 if m.Member != nil {
13119 l = m.Member.Size()
13120 n += 1 + l + sovRpc(uint64(l))
13121 }
13122 if len(m.Members) > 0 {
13123 for _, e := range m.Members {
13124 l = e.Size()
13125 n += 1 + l + sovRpc(uint64(l))
13126 }
13127 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013128 if m.XXX_unrecognized != nil {
13129 n += len(m.XXX_unrecognized)
13130 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013131 return n
13132}
13133
13134func (m *MemberRemoveRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013135 if m == nil {
13136 return 0
13137 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013138 var l int
13139 _ = l
13140 if m.ID != 0 {
13141 n += 1 + sovRpc(uint64(m.ID))
13142 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013143 if m.XXX_unrecognized != nil {
13144 n += len(m.XXX_unrecognized)
13145 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013146 return n
13147}
13148
13149func (m *MemberRemoveResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013150 if m == nil {
13151 return 0
13152 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013153 var l int
13154 _ = l
13155 if m.Header != nil {
13156 l = m.Header.Size()
13157 n += 1 + l + sovRpc(uint64(l))
13158 }
13159 if len(m.Members) > 0 {
13160 for _, e := range m.Members {
13161 l = e.Size()
13162 n += 1 + l + sovRpc(uint64(l))
13163 }
13164 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013165 if m.XXX_unrecognized != nil {
13166 n += len(m.XXX_unrecognized)
13167 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013168 return n
13169}
13170
13171func (m *MemberUpdateRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013172 if m == nil {
13173 return 0
13174 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013175 var l int
13176 _ = l
13177 if m.ID != 0 {
13178 n += 1 + sovRpc(uint64(m.ID))
13179 }
13180 if len(m.PeerURLs) > 0 {
13181 for _, s := range m.PeerURLs {
13182 l = len(s)
13183 n += 1 + l + sovRpc(uint64(l))
13184 }
13185 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013186 if m.XXX_unrecognized != nil {
13187 n += len(m.XXX_unrecognized)
13188 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013189 return n
13190}
13191
13192func (m *MemberUpdateResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013193 if m == nil {
13194 return 0
13195 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013196 var l int
13197 _ = l
13198 if m.Header != nil {
13199 l = m.Header.Size()
13200 n += 1 + l + sovRpc(uint64(l))
13201 }
13202 if len(m.Members) > 0 {
13203 for _, e := range m.Members {
13204 l = e.Size()
13205 n += 1 + l + sovRpc(uint64(l))
13206 }
13207 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013208 if m.XXX_unrecognized != nil {
13209 n += len(m.XXX_unrecognized)
13210 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013211 return n
13212}
13213
13214func (m *MemberListRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013215 if m == nil {
13216 return 0
13217 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013218 var l int
13219 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013220 if m.XXX_unrecognized != nil {
13221 n += len(m.XXX_unrecognized)
13222 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013223 return n
13224}
13225
13226func (m *MemberListResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013227 if m == nil {
13228 return 0
13229 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013230 var l int
13231 _ = l
13232 if m.Header != nil {
13233 l = m.Header.Size()
13234 n += 1 + l + sovRpc(uint64(l))
13235 }
13236 if len(m.Members) > 0 {
13237 for _, e := range m.Members {
13238 l = e.Size()
13239 n += 1 + l + sovRpc(uint64(l))
13240 }
13241 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013242 if m.XXX_unrecognized != nil {
13243 n += len(m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000013244 }
13245 return n
13246}
13247
13248func (m *DefragmentRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013249 if m == nil {
13250 return 0
13251 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013252 var l int
13253 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013254 if m.XXX_unrecognized != nil {
13255 n += len(m.XXX_unrecognized)
13256 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013257 return n
13258}
13259
13260func (m *DefragmentResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013261 if m == nil {
13262 return 0
13263 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013264 var l int
13265 _ = l
13266 if m.Header != nil {
13267 l = m.Header.Size()
13268 n += 1 + l + sovRpc(uint64(l))
13269 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013270 if m.XXX_unrecognized != nil {
13271 n += len(m.XXX_unrecognized)
13272 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013273 return n
13274}
13275
13276func (m *MoveLeaderRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013277 if m == nil {
13278 return 0
13279 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013280 var l int
13281 _ = l
13282 if m.TargetID != 0 {
13283 n += 1 + sovRpc(uint64(m.TargetID))
13284 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013285 if m.XXX_unrecognized != nil {
13286 n += len(m.XXX_unrecognized)
13287 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013288 return n
13289}
13290
13291func (m *MoveLeaderResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013292 if m == nil {
13293 return 0
13294 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013295 var l int
13296 _ = l
13297 if m.Header != nil {
13298 l = m.Header.Size()
13299 n += 1 + l + sovRpc(uint64(l))
13300 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013301 if m.XXX_unrecognized != nil {
13302 n += len(m.XXX_unrecognized)
13303 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013304 return n
13305}
13306
13307func (m *AlarmRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013308 if m == nil {
13309 return 0
13310 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013311 var l int
13312 _ = l
13313 if m.Action != 0 {
13314 n += 1 + sovRpc(uint64(m.Action))
13315 }
13316 if m.MemberID != 0 {
13317 n += 1 + sovRpc(uint64(m.MemberID))
13318 }
13319 if m.Alarm != 0 {
13320 n += 1 + sovRpc(uint64(m.Alarm))
13321 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013322 if m.XXX_unrecognized != nil {
13323 n += len(m.XXX_unrecognized)
13324 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013325 return n
13326}
13327
13328func (m *AlarmMember) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013329 if m == nil {
13330 return 0
13331 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013332 var l int
13333 _ = l
13334 if m.MemberID != 0 {
13335 n += 1 + sovRpc(uint64(m.MemberID))
13336 }
13337 if m.Alarm != 0 {
13338 n += 1 + sovRpc(uint64(m.Alarm))
13339 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013340 if m.XXX_unrecognized != nil {
13341 n += len(m.XXX_unrecognized)
13342 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013343 return n
13344}
13345
13346func (m *AlarmResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013347 if m == nil {
13348 return 0
13349 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013350 var l int
13351 _ = l
13352 if m.Header != nil {
13353 l = m.Header.Size()
13354 n += 1 + l + sovRpc(uint64(l))
13355 }
13356 if len(m.Alarms) > 0 {
13357 for _, e := range m.Alarms {
13358 l = e.Size()
13359 n += 1 + l + sovRpc(uint64(l))
13360 }
13361 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013362 if m.XXX_unrecognized != nil {
13363 n += len(m.XXX_unrecognized)
13364 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013365 return n
13366}
13367
13368func (m *StatusRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013369 if m == nil {
13370 return 0
13371 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013372 var l int
13373 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013374 if m.XXX_unrecognized != nil {
13375 n += len(m.XXX_unrecognized)
13376 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013377 return n
13378}
13379
13380func (m *StatusResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013381 if m == nil {
13382 return 0
13383 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013384 var l int
13385 _ = l
13386 if m.Header != nil {
13387 l = m.Header.Size()
13388 n += 1 + l + sovRpc(uint64(l))
13389 }
13390 l = len(m.Version)
13391 if l > 0 {
13392 n += 1 + l + sovRpc(uint64(l))
13393 }
13394 if m.DbSize != 0 {
13395 n += 1 + sovRpc(uint64(m.DbSize))
13396 }
13397 if m.Leader != 0 {
13398 n += 1 + sovRpc(uint64(m.Leader))
13399 }
13400 if m.RaftIndex != 0 {
13401 n += 1 + sovRpc(uint64(m.RaftIndex))
13402 }
13403 if m.RaftTerm != 0 {
13404 n += 1 + sovRpc(uint64(m.RaftTerm))
13405 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013406 if m.XXX_unrecognized != nil {
13407 n += len(m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000013408 }
13409 return n
13410}
13411
13412func (m *AuthEnableRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013413 if m == nil {
13414 return 0
13415 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013416 var l int
13417 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013418 if m.XXX_unrecognized != nil {
13419 n += len(m.XXX_unrecognized)
13420 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013421 return n
13422}
13423
13424func (m *AuthDisableRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013425 if m == nil {
13426 return 0
13427 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013428 var l int
13429 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013430 if m.XXX_unrecognized != nil {
13431 n += len(m.XXX_unrecognized)
13432 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013433 return n
13434}
13435
13436func (m *AuthenticateRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013437 if m == nil {
13438 return 0
13439 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013440 var l int
13441 _ = l
13442 l = len(m.Name)
13443 if l > 0 {
13444 n += 1 + l + sovRpc(uint64(l))
13445 }
13446 l = len(m.Password)
13447 if l > 0 {
13448 n += 1 + l + sovRpc(uint64(l))
13449 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013450 if m.XXX_unrecognized != nil {
13451 n += len(m.XXX_unrecognized)
13452 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013453 return n
13454}
13455
13456func (m *AuthUserAddRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013457 if m == nil {
13458 return 0
13459 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013460 var l int
13461 _ = l
13462 l = len(m.Name)
13463 if l > 0 {
13464 n += 1 + l + sovRpc(uint64(l))
13465 }
13466 l = len(m.Password)
13467 if l > 0 {
13468 n += 1 + l + sovRpc(uint64(l))
13469 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013470 if m.XXX_unrecognized != nil {
13471 n += len(m.XXX_unrecognized)
divyadesai81bb7ba2020-03-11 11:45:23 +000013472 }
13473 return n
13474}
13475
13476func (m *AuthUserGetRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013477 if m == nil {
13478 return 0
13479 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013480 var l int
13481 _ = l
13482 l = len(m.Name)
13483 if l > 0 {
13484 n += 1 + l + sovRpc(uint64(l))
13485 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013486 if m.XXX_unrecognized != nil {
13487 n += len(m.XXX_unrecognized)
13488 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013489 return n
13490}
13491
13492func (m *AuthUserDeleteRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013493 if m == nil {
13494 return 0
13495 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013496 var l int
13497 _ = l
13498 l = len(m.Name)
13499 if l > 0 {
13500 n += 1 + l + sovRpc(uint64(l))
13501 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013502 if m.XXX_unrecognized != nil {
13503 n += len(m.XXX_unrecognized)
13504 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013505 return n
13506}
13507
13508func (m *AuthUserChangePasswordRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013509 if m == nil {
13510 return 0
13511 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013512 var l int
13513 _ = l
13514 l = len(m.Name)
13515 if l > 0 {
13516 n += 1 + l + sovRpc(uint64(l))
13517 }
13518 l = len(m.Password)
13519 if l > 0 {
13520 n += 1 + l + sovRpc(uint64(l))
13521 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013522 if m.XXX_unrecognized != nil {
13523 n += len(m.XXX_unrecognized)
13524 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013525 return n
13526}
13527
13528func (m *AuthUserGrantRoleRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013529 if m == nil {
13530 return 0
13531 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013532 var l int
13533 _ = l
13534 l = len(m.User)
13535 if l > 0 {
13536 n += 1 + l + sovRpc(uint64(l))
13537 }
13538 l = len(m.Role)
13539 if l > 0 {
13540 n += 1 + l + sovRpc(uint64(l))
13541 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013542 if m.XXX_unrecognized != nil {
13543 n += len(m.XXX_unrecognized)
13544 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013545 return n
13546}
13547
13548func (m *AuthUserRevokeRoleRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013549 if m == nil {
13550 return 0
13551 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013552 var l int
13553 _ = l
13554 l = len(m.Name)
13555 if l > 0 {
13556 n += 1 + l + sovRpc(uint64(l))
13557 }
13558 l = len(m.Role)
13559 if l > 0 {
13560 n += 1 + l + sovRpc(uint64(l))
13561 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013562 if m.XXX_unrecognized != nil {
13563 n += len(m.XXX_unrecognized)
13564 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013565 return n
13566}
13567
13568func (m *AuthRoleAddRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013569 if m == nil {
13570 return 0
13571 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013572 var l int
13573 _ = l
13574 l = len(m.Name)
13575 if l > 0 {
13576 n += 1 + l + sovRpc(uint64(l))
13577 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013578 if m.XXX_unrecognized != nil {
13579 n += len(m.XXX_unrecognized)
13580 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013581 return n
13582}
13583
13584func (m *AuthRoleGetRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013585 if m == nil {
13586 return 0
13587 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013588 var l int
13589 _ = l
13590 l = len(m.Role)
13591 if l > 0 {
13592 n += 1 + l + sovRpc(uint64(l))
13593 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013594 if m.XXX_unrecognized != nil {
13595 n += len(m.XXX_unrecognized)
13596 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013597 return n
13598}
13599
13600func (m *AuthUserListRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013601 if m == nil {
13602 return 0
13603 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013604 var l int
13605 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013606 if m.XXX_unrecognized != nil {
13607 n += len(m.XXX_unrecognized)
13608 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013609 return n
13610}
13611
13612func (m *AuthRoleListRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013613 if m == nil {
13614 return 0
13615 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013616 var l int
13617 _ = l
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013618 if m.XXX_unrecognized != nil {
13619 n += len(m.XXX_unrecognized)
13620 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013621 return n
13622}
13623
13624func (m *AuthRoleDeleteRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013625 if m == nil {
13626 return 0
13627 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013628 var l int
13629 _ = l
13630 l = len(m.Role)
13631 if l > 0 {
13632 n += 1 + l + sovRpc(uint64(l))
13633 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013634 if m.XXX_unrecognized != nil {
13635 n += len(m.XXX_unrecognized)
13636 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013637 return n
13638}
13639
13640func (m *AuthRoleGrantPermissionRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013641 if m == nil {
13642 return 0
13643 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013644 var l int
13645 _ = l
13646 l = len(m.Name)
13647 if l > 0 {
13648 n += 1 + l + sovRpc(uint64(l))
13649 }
13650 if m.Perm != nil {
13651 l = m.Perm.Size()
13652 n += 1 + l + sovRpc(uint64(l))
13653 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013654 if m.XXX_unrecognized != nil {
13655 n += len(m.XXX_unrecognized)
13656 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013657 return n
13658}
13659
13660func (m *AuthRoleRevokePermissionRequest) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013661 if m == nil {
13662 return 0
13663 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013664 var l int
13665 _ = l
13666 l = len(m.Role)
13667 if l > 0 {
13668 n += 1 + l + sovRpc(uint64(l))
13669 }
13670 l = len(m.Key)
13671 if l > 0 {
13672 n += 1 + l + sovRpc(uint64(l))
13673 }
13674 l = len(m.RangeEnd)
13675 if l > 0 {
13676 n += 1 + l + sovRpc(uint64(l))
13677 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013678 if m.XXX_unrecognized != nil {
13679 n += len(m.XXX_unrecognized)
13680 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013681 return n
13682}
13683
13684func (m *AuthEnableResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013685 if m == nil {
13686 return 0
13687 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013688 var l int
13689 _ = l
13690 if m.Header != nil {
13691 l = m.Header.Size()
13692 n += 1 + l + sovRpc(uint64(l))
13693 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013694 if m.XXX_unrecognized != nil {
13695 n += len(m.XXX_unrecognized)
13696 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013697 return n
13698}
13699
13700func (m *AuthDisableResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013701 if m == nil {
13702 return 0
13703 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013704 var l int
13705 _ = l
13706 if m.Header != nil {
13707 l = m.Header.Size()
13708 n += 1 + l + sovRpc(uint64(l))
13709 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013710 if m.XXX_unrecognized != nil {
13711 n += len(m.XXX_unrecognized)
13712 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013713 return n
13714}
13715
13716func (m *AuthenticateResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013717 if m == nil {
13718 return 0
13719 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013720 var l int
13721 _ = l
13722 if m.Header != nil {
13723 l = m.Header.Size()
13724 n += 1 + l + sovRpc(uint64(l))
13725 }
13726 l = len(m.Token)
13727 if l > 0 {
13728 n += 1 + l + sovRpc(uint64(l))
13729 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013730 if m.XXX_unrecognized != nil {
13731 n += len(m.XXX_unrecognized)
13732 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013733 return n
13734}
13735
13736func (m *AuthUserAddResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013737 if m == nil {
13738 return 0
13739 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013740 var l int
13741 _ = l
13742 if m.Header != nil {
13743 l = m.Header.Size()
13744 n += 1 + l + sovRpc(uint64(l))
13745 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013746 if m.XXX_unrecognized != nil {
13747 n += len(m.XXX_unrecognized)
13748 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013749 return n
13750}
13751
13752func (m *AuthUserGetResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013753 if m == nil {
13754 return 0
13755 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013756 var l int
13757 _ = l
13758 if m.Header != nil {
13759 l = m.Header.Size()
13760 n += 1 + l + sovRpc(uint64(l))
13761 }
13762 if len(m.Roles) > 0 {
13763 for _, s := range m.Roles {
13764 l = len(s)
13765 n += 1 + l + sovRpc(uint64(l))
13766 }
13767 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013768 if m.XXX_unrecognized != nil {
13769 n += len(m.XXX_unrecognized)
13770 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013771 return n
13772}
13773
13774func (m *AuthUserDeleteResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013775 if m == nil {
13776 return 0
13777 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013778 var l int
13779 _ = l
13780 if m.Header != nil {
13781 l = m.Header.Size()
13782 n += 1 + l + sovRpc(uint64(l))
13783 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013784 if m.XXX_unrecognized != nil {
13785 n += len(m.XXX_unrecognized)
13786 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013787 return n
13788}
13789
13790func (m *AuthUserChangePasswordResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013791 if m == nil {
13792 return 0
13793 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013794 var l int
13795 _ = l
13796 if m.Header != nil {
13797 l = m.Header.Size()
13798 n += 1 + l + sovRpc(uint64(l))
13799 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013800 if m.XXX_unrecognized != nil {
13801 n += len(m.XXX_unrecognized)
13802 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013803 return n
13804}
13805
13806func (m *AuthUserGrantRoleResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013807 if m == nil {
13808 return 0
13809 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013810 var l int
13811 _ = l
13812 if m.Header != nil {
13813 l = m.Header.Size()
13814 n += 1 + l + sovRpc(uint64(l))
13815 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013816 if m.XXX_unrecognized != nil {
13817 n += len(m.XXX_unrecognized)
13818 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013819 return n
13820}
13821
13822func (m *AuthUserRevokeRoleResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013823 if m == nil {
13824 return 0
13825 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013826 var l int
13827 _ = l
13828 if m.Header != nil {
13829 l = m.Header.Size()
13830 n += 1 + l + sovRpc(uint64(l))
13831 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013832 if m.XXX_unrecognized != nil {
13833 n += len(m.XXX_unrecognized)
13834 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013835 return n
13836}
13837
13838func (m *AuthRoleAddResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013839 if m == nil {
13840 return 0
13841 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013842 var l int
13843 _ = l
13844 if m.Header != nil {
13845 l = m.Header.Size()
13846 n += 1 + l + sovRpc(uint64(l))
13847 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013848 if m.XXX_unrecognized != nil {
13849 n += len(m.XXX_unrecognized)
13850 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013851 return n
13852}
13853
13854func (m *AuthRoleGetResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013855 if m == nil {
13856 return 0
13857 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013858 var l int
13859 _ = l
13860 if m.Header != nil {
13861 l = m.Header.Size()
13862 n += 1 + l + sovRpc(uint64(l))
13863 }
13864 if len(m.Perm) > 0 {
13865 for _, e := range m.Perm {
13866 l = e.Size()
13867 n += 1 + l + sovRpc(uint64(l))
13868 }
13869 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013870 if m.XXX_unrecognized != nil {
13871 n += len(m.XXX_unrecognized)
13872 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013873 return n
13874}
13875
13876func (m *AuthRoleListResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013877 if m == nil {
13878 return 0
13879 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013880 var l int
13881 _ = l
13882 if m.Header != nil {
13883 l = m.Header.Size()
13884 n += 1 + l + sovRpc(uint64(l))
13885 }
13886 if len(m.Roles) > 0 {
13887 for _, s := range m.Roles {
13888 l = len(s)
13889 n += 1 + l + sovRpc(uint64(l))
13890 }
13891 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013892 if m.XXX_unrecognized != nil {
13893 n += len(m.XXX_unrecognized)
13894 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013895 return n
13896}
13897
13898func (m *AuthUserListResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013899 if m == nil {
13900 return 0
13901 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013902 var l int
13903 _ = l
13904 if m.Header != nil {
13905 l = m.Header.Size()
13906 n += 1 + l + sovRpc(uint64(l))
13907 }
13908 if len(m.Users) > 0 {
13909 for _, s := range m.Users {
13910 l = len(s)
13911 n += 1 + l + sovRpc(uint64(l))
13912 }
13913 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013914 if m.XXX_unrecognized != nil {
13915 n += len(m.XXX_unrecognized)
13916 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013917 return n
13918}
13919
13920func (m *AuthRoleDeleteResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013921 if m == nil {
13922 return 0
13923 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013924 var l int
13925 _ = l
13926 if m.Header != nil {
13927 l = m.Header.Size()
13928 n += 1 + l + sovRpc(uint64(l))
13929 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013930 if m.XXX_unrecognized != nil {
13931 n += len(m.XXX_unrecognized)
13932 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013933 return n
13934}
13935
13936func (m *AuthRoleGrantPermissionResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013937 if m == nil {
13938 return 0
13939 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013940 var l int
13941 _ = l
13942 if m.Header != nil {
13943 l = m.Header.Size()
13944 n += 1 + l + sovRpc(uint64(l))
13945 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013946 if m.XXX_unrecognized != nil {
13947 n += len(m.XXX_unrecognized)
13948 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013949 return n
13950}
13951
13952func (m *AuthRoleRevokePermissionResponse) Size() (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013953 if m == nil {
13954 return 0
13955 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013956 var l int
13957 _ = l
13958 if m.Header != nil {
13959 l = m.Header.Size()
13960 n += 1 + l + sovRpc(uint64(l))
13961 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013962 if m.XXX_unrecognized != nil {
13963 n += len(m.XXX_unrecognized)
13964 }
divyadesai81bb7ba2020-03-11 11:45:23 +000013965 return n
13966}
13967
13968func sovRpc(x uint64) (n int) {
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013969 return (math_bits.Len64(x|1) + 6) / 7
divyadesai81bb7ba2020-03-11 11:45:23 +000013970}
13971func sozRpc(x uint64) (n int) {
13972 return sovRpc(uint64((x << 1) ^ uint64((int64(x) >> 63))))
13973}
13974func (m *ResponseHeader) Unmarshal(dAtA []byte) error {
13975 l := len(dAtA)
13976 iNdEx := 0
13977 for iNdEx < l {
13978 preIndex := iNdEx
13979 var wire uint64
13980 for shift := uint(0); ; shift += 7 {
13981 if shift >= 64 {
13982 return ErrIntOverflowRpc
13983 }
13984 if iNdEx >= l {
13985 return io.ErrUnexpectedEOF
13986 }
13987 b := dAtA[iNdEx]
13988 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000013989 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000013990 if b < 0x80 {
13991 break
13992 }
13993 }
13994 fieldNum := int32(wire >> 3)
13995 wireType := int(wire & 0x7)
13996 if wireType == 4 {
13997 return fmt.Errorf("proto: ResponseHeader: wiretype end group for non-group")
13998 }
13999 if fieldNum <= 0 {
14000 return fmt.Errorf("proto: ResponseHeader: illegal tag %d (wire type %d)", fieldNum, wire)
14001 }
14002 switch fieldNum {
14003 case 1:
14004 if wireType != 0 {
14005 return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType)
14006 }
14007 m.ClusterId = 0
14008 for shift := uint(0); ; shift += 7 {
14009 if shift >= 64 {
14010 return ErrIntOverflowRpc
14011 }
14012 if iNdEx >= l {
14013 return io.ErrUnexpectedEOF
14014 }
14015 b := dAtA[iNdEx]
14016 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014017 m.ClusterId |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014018 if b < 0x80 {
14019 break
14020 }
14021 }
14022 case 2:
14023 if wireType != 0 {
14024 return fmt.Errorf("proto: wrong wireType = %d for field MemberId", wireType)
14025 }
14026 m.MemberId = 0
14027 for shift := uint(0); ; shift += 7 {
14028 if shift >= 64 {
14029 return ErrIntOverflowRpc
14030 }
14031 if iNdEx >= l {
14032 return io.ErrUnexpectedEOF
14033 }
14034 b := dAtA[iNdEx]
14035 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014036 m.MemberId |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014037 if b < 0x80 {
14038 break
14039 }
14040 }
14041 case 3:
14042 if wireType != 0 {
14043 return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType)
14044 }
14045 m.Revision = 0
14046 for shift := uint(0); ; shift += 7 {
14047 if shift >= 64 {
14048 return ErrIntOverflowRpc
14049 }
14050 if iNdEx >= l {
14051 return io.ErrUnexpectedEOF
14052 }
14053 b := dAtA[iNdEx]
14054 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014055 m.Revision |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014056 if b < 0x80 {
14057 break
14058 }
14059 }
14060 case 4:
14061 if wireType != 0 {
14062 return fmt.Errorf("proto: wrong wireType = %d for field RaftTerm", wireType)
14063 }
14064 m.RaftTerm = 0
14065 for shift := uint(0); ; shift += 7 {
14066 if shift >= 64 {
14067 return ErrIntOverflowRpc
14068 }
14069 if iNdEx >= l {
14070 return io.ErrUnexpectedEOF
14071 }
14072 b := dAtA[iNdEx]
14073 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014074 m.RaftTerm |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014075 if b < 0x80 {
14076 break
14077 }
14078 }
14079 default:
14080 iNdEx = preIndex
14081 skippy, err := skipRpc(dAtA[iNdEx:])
14082 if err != nil {
14083 return err
14084 }
14085 if skippy < 0 {
14086 return ErrInvalidLengthRpc
14087 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014088 if (iNdEx + skippy) < 0 {
14089 return ErrInvalidLengthRpc
14090 }
divyadesai81bb7ba2020-03-11 11:45:23 +000014091 if (iNdEx + skippy) > l {
14092 return io.ErrUnexpectedEOF
14093 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014094 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000014095 iNdEx += skippy
14096 }
14097 }
14098
14099 if iNdEx > l {
14100 return io.ErrUnexpectedEOF
14101 }
14102 return nil
14103}
14104func (m *RangeRequest) Unmarshal(dAtA []byte) error {
14105 l := len(dAtA)
14106 iNdEx := 0
14107 for iNdEx < l {
14108 preIndex := iNdEx
14109 var wire uint64
14110 for shift := uint(0); ; shift += 7 {
14111 if shift >= 64 {
14112 return ErrIntOverflowRpc
14113 }
14114 if iNdEx >= l {
14115 return io.ErrUnexpectedEOF
14116 }
14117 b := dAtA[iNdEx]
14118 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014119 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014120 if b < 0x80 {
14121 break
14122 }
14123 }
14124 fieldNum := int32(wire >> 3)
14125 wireType := int(wire & 0x7)
14126 if wireType == 4 {
14127 return fmt.Errorf("proto: RangeRequest: wiretype end group for non-group")
14128 }
14129 if fieldNum <= 0 {
14130 return fmt.Errorf("proto: RangeRequest: illegal tag %d (wire type %d)", fieldNum, wire)
14131 }
14132 switch fieldNum {
14133 case 1:
14134 if wireType != 2 {
14135 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
14136 }
14137 var byteLen int
14138 for shift := uint(0); ; shift += 7 {
14139 if shift >= 64 {
14140 return ErrIntOverflowRpc
14141 }
14142 if iNdEx >= l {
14143 return io.ErrUnexpectedEOF
14144 }
14145 b := dAtA[iNdEx]
14146 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014147 byteLen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014148 if b < 0x80 {
14149 break
14150 }
14151 }
14152 if byteLen < 0 {
14153 return ErrInvalidLengthRpc
14154 }
14155 postIndex := iNdEx + byteLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014156 if postIndex < 0 {
14157 return ErrInvalidLengthRpc
14158 }
divyadesai81bb7ba2020-03-11 11:45:23 +000014159 if postIndex > l {
14160 return io.ErrUnexpectedEOF
14161 }
14162 m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
14163 if m.Key == nil {
14164 m.Key = []byte{}
14165 }
14166 iNdEx = postIndex
14167 case 2:
14168 if wireType != 2 {
14169 return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType)
14170 }
14171 var byteLen int
14172 for shift := uint(0); ; shift += 7 {
14173 if shift >= 64 {
14174 return ErrIntOverflowRpc
14175 }
14176 if iNdEx >= l {
14177 return io.ErrUnexpectedEOF
14178 }
14179 b := dAtA[iNdEx]
14180 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014181 byteLen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014182 if b < 0x80 {
14183 break
14184 }
14185 }
14186 if byteLen < 0 {
14187 return ErrInvalidLengthRpc
14188 }
14189 postIndex := iNdEx + byteLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014190 if postIndex < 0 {
14191 return ErrInvalidLengthRpc
14192 }
divyadesai81bb7ba2020-03-11 11:45:23 +000014193 if postIndex > l {
14194 return io.ErrUnexpectedEOF
14195 }
14196 m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...)
14197 if m.RangeEnd == nil {
14198 m.RangeEnd = []byte{}
14199 }
14200 iNdEx = postIndex
14201 case 3:
14202 if wireType != 0 {
14203 return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
14204 }
14205 m.Limit = 0
14206 for shift := uint(0); ; shift += 7 {
14207 if shift >= 64 {
14208 return ErrIntOverflowRpc
14209 }
14210 if iNdEx >= l {
14211 return io.ErrUnexpectedEOF
14212 }
14213 b := dAtA[iNdEx]
14214 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014215 m.Limit |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014216 if b < 0x80 {
14217 break
14218 }
14219 }
14220 case 4:
14221 if wireType != 0 {
14222 return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType)
14223 }
14224 m.Revision = 0
14225 for shift := uint(0); ; shift += 7 {
14226 if shift >= 64 {
14227 return ErrIntOverflowRpc
14228 }
14229 if iNdEx >= l {
14230 return io.ErrUnexpectedEOF
14231 }
14232 b := dAtA[iNdEx]
14233 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014234 m.Revision |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014235 if b < 0x80 {
14236 break
14237 }
14238 }
14239 case 5:
14240 if wireType != 0 {
14241 return fmt.Errorf("proto: wrong wireType = %d for field SortOrder", wireType)
14242 }
14243 m.SortOrder = 0
14244 for shift := uint(0); ; shift += 7 {
14245 if shift >= 64 {
14246 return ErrIntOverflowRpc
14247 }
14248 if iNdEx >= l {
14249 return io.ErrUnexpectedEOF
14250 }
14251 b := dAtA[iNdEx]
14252 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014253 m.SortOrder |= RangeRequest_SortOrder(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014254 if b < 0x80 {
14255 break
14256 }
14257 }
14258 case 6:
14259 if wireType != 0 {
14260 return fmt.Errorf("proto: wrong wireType = %d for field SortTarget", wireType)
14261 }
14262 m.SortTarget = 0
14263 for shift := uint(0); ; shift += 7 {
14264 if shift >= 64 {
14265 return ErrIntOverflowRpc
14266 }
14267 if iNdEx >= l {
14268 return io.ErrUnexpectedEOF
14269 }
14270 b := dAtA[iNdEx]
14271 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014272 m.SortTarget |= RangeRequest_SortTarget(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014273 if b < 0x80 {
14274 break
14275 }
14276 }
14277 case 7:
14278 if wireType != 0 {
14279 return fmt.Errorf("proto: wrong wireType = %d for field Serializable", wireType)
14280 }
14281 var v int
14282 for shift := uint(0); ; shift += 7 {
14283 if shift >= 64 {
14284 return ErrIntOverflowRpc
14285 }
14286 if iNdEx >= l {
14287 return io.ErrUnexpectedEOF
14288 }
14289 b := dAtA[iNdEx]
14290 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014291 v |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014292 if b < 0x80 {
14293 break
14294 }
14295 }
14296 m.Serializable = bool(v != 0)
14297 case 8:
14298 if wireType != 0 {
14299 return fmt.Errorf("proto: wrong wireType = %d for field KeysOnly", wireType)
14300 }
14301 var v int
14302 for shift := uint(0); ; shift += 7 {
14303 if shift >= 64 {
14304 return ErrIntOverflowRpc
14305 }
14306 if iNdEx >= l {
14307 return io.ErrUnexpectedEOF
14308 }
14309 b := dAtA[iNdEx]
14310 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014311 v |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014312 if b < 0x80 {
14313 break
14314 }
14315 }
14316 m.KeysOnly = bool(v != 0)
14317 case 9:
14318 if wireType != 0 {
14319 return fmt.Errorf("proto: wrong wireType = %d for field CountOnly", wireType)
14320 }
14321 var v int
14322 for shift := uint(0); ; shift += 7 {
14323 if shift >= 64 {
14324 return ErrIntOverflowRpc
14325 }
14326 if iNdEx >= l {
14327 return io.ErrUnexpectedEOF
14328 }
14329 b := dAtA[iNdEx]
14330 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014331 v |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014332 if b < 0x80 {
14333 break
14334 }
14335 }
14336 m.CountOnly = bool(v != 0)
14337 case 10:
14338 if wireType != 0 {
14339 return fmt.Errorf("proto: wrong wireType = %d for field MinModRevision", wireType)
14340 }
14341 m.MinModRevision = 0
14342 for shift := uint(0); ; shift += 7 {
14343 if shift >= 64 {
14344 return ErrIntOverflowRpc
14345 }
14346 if iNdEx >= l {
14347 return io.ErrUnexpectedEOF
14348 }
14349 b := dAtA[iNdEx]
14350 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014351 m.MinModRevision |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014352 if b < 0x80 {
14353 break
14354 }
14355 }
14356 case 11:
14357 if wireType != 0 {
14358 return fmt.Errorf("proto: wrong wireType = %d for field MaxModRevision", wireType)
14359 }
14360 m.MaxModRevision = 0
14361 for shift := uint(0); ; shift += 7 {
14362 if shift >= 64 {
14363 return ErrIntOverflowRpc
14364 }
14365 if iNdEx >= l {
14366 return io.ErrUnexpectedEOF
14367 }
14368 b := dAtA[iNdEx]
14369 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014370 m.MaxModRevision |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014371 if b < 0x80 {
14372 break
14373 }
14374 }
14375 case 12:
14376 if wireType != 0 {
14377 return fmt.Errorf("proto: wrong wireType = %d for field MinCreateRevision", wireType)
14378 }
14379 m.MinCreateRevision = 0
14380 for shift := uint(0); ; shift += 7 {
14381 if shift >= 64 {
14382 return ErrIntOverflowRpc
14383 }
14384 if iNdEx >= l {
14385 return io.ErrUnexpectedEOF
14386 }
14387 b := dAtA[iNdEx]
14388 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014389 m.MinCreateRevision |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014390 if b < 0x80 {
14391 break
14392 }
14393 }
14394 case 13:
14395 if wireType != 0 {
14396 return fmt.Errorf("proto: wrong wireType = %d for field MaxCreateRevision", wireType)
14397 }
14398 m.MaxCreateRevision = 0
14399 for shift := uint(0); ; shift += 7 {
14400 if shift >= 64 {
14401 return ErrIntOverflowRpc
14402 }
14403 if iNdEx >= l {
14404 return io.ErrUnexpectedEOF
14405 }
14406 b := dAtA[iNdEx]
14407 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014408 m.MaxCreateRevision |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014409 if b < 0x80 {
14410 break
14411 }
14412 }
14413 default:
14414 iNdEx = preIndex
14415 skippy, err := skipRpc(dAtA[iNdEx:])
14416 if err != nil {
14417 return err
14418 }
14419 if skippy < 0 {
14420 return ErrInvalidLengthRpc
14421 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014422 if (iNdEx + skippy) < 0 {
14423 return ErrInvalidLengthRpc
14424 }
divyadesai81bb7ba2020-03-11 11:45:23 +000014425 if (iNdEx + skippy) > l {
14426 return io.ErrUnexpectedEOF
14427 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014428 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000014429 iNdEx += skippy
14430 }
14431 }
14432
14433 if iNdEx > l {
14434 return io.ErrUnexpectedEOF
14435 }
14436 return nil
14437}
14438func (m *RangeResponse) Unmarshal(dAtA []byte) error {
14439 l := len(dAtA)
14440 iNdEx := 0
14441 for iNdEx < l {
14442 preIndex := iNdEx
14443 var wire uint64
14444 for shift := uint(0); ; shift += 7 {
14445 if shift >= 64 {
14446 return ErrIntOverflowRpc
14447 }
14448 if iNdEx >= l {
14449 return io.ErrUnexpectedEOF
14450 }
14451 b := dAtA[iNdEx]
14452 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014453 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014454 if b < 0x80 {
14455 break
14456 }
14457 }
14458 fieldNum := int32(wire >> 3)
14459 wireType := int(wire & 0x7)
14460 if wireType == 4 {
14461 return fmt.Errorf("proto: RangeResponse: wiretype end group for non-group")
14462 }
14463 if fieldNum <= 0 {
14464 return fmt.Errorf("proto: RangeResponse: illegal tag %d (wire type %d)", fieldNum, wire)
14465 }
14466 switch fieldNum {
14467 case 1:
14468 if wireType != 2 {
14469 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
14470 }
14471 var msglen int
14472 for shift := uint(0); ; shift += 7 {
14473 if shift >= 64 {
14474 return ErrIntOverflowRpc
14475 }
14476 if iNdEx >= l {
14477 return io.ErrUnexpectedEOF
14478 }
14479 b := dAtA[iNdEx]
14480 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014481 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014482 if b < 0x80 {
14483 break
14484 }
14485 }
14486 if msglen < 0 {
14487 return ErrInvalidLengthRpc
14488 }
14489 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014490 if postIndex < 0 {
14491 return ErrInvalidLengthRpc
14492 }
divyadesai81bb7ba2020-03-11 11:45:23 +000014493 if postIndex > l {
14494 return io.ErrUnexpectedEOF
14495 }
14496 if m.Header == nil {
14497 m.Header = &ResponseHeader{}
14498 }
14499 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
14500 return err
14501 }
14502 iNdEx = postIndex
14503 case 2:
14504 if wireType != 2 {
14505 return fmt.Errorf("proto: wrong wireType = %d for field Kvs", wireType)
14506 }
14507 var msglen int
14508 for shift := uint(0); ; shift += 7 {
14509 if shift >= 64 {
14510 return ErrIntOverflowRpc
14511 }
14512 if iNdEx >= l {
14513 return io.ErrUnexpectedEOF
14514 }
14515 b := dAtA[iNdEx]
14516 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014517 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014518 if b < 0x80 {
14519 break
14520 }
14521 }
14522 if msglen < 0 {
14523 return ErrInvalidLengthRpc
14524 }
14525 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014526 if postIndex < 0 {
14527 return ErrInvalidLengthRpc
14528 }
divyadesai81bb7ba2020-03-11 11:45:23 +000014529 if postIndex > l {
14530 return io.ErrUnexpectedEOF
14531 }
14532 m.Kvs = append(m.Kvs, &mvccpb.KeyValue{})
14533 if err := m.Kvs[len(m.Kvs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
14534 return err
14535 }
14536 iNdEx = postIndex
14537 case 3:
14538 if wireType != 0 {
14539 return fmt.Errorf("proto: wrong wireType = %d for field More", wireType)
14540 }
14541 var v int
14542 for shift := uint(0); ; shift += 7 {
14543 if shift >= 64 {
14544 return ErrIntOverflowRpc
14545 }
14546 if iNdEx >= l {
14547 return io.ErrUnexpectedEOF
14548 }
14549 b := dAtA[iNdEx]
14550 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014551 v |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014552 if b < 0x80 {
14553 break
14554 }
14555 }
14556 m.More = bool(v != 0)
14557 case 4:
14558 if wireType != 0 {
14559 return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType)
14560 }
14561 m.Count = 0
14562 for shift := uint(0); ; shift += 7 {
14563 if shift >= 64 {
14564 return ErrIntOverflowRpc
14565 }
14566 if iNdEx >= l {
14567 return io.ErrUnexpectedEOF
14568 }
14569 b := dAtA[iNdEx]
14570 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014571 m.Count |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014572 if b < 0x80 {
14573 break
14574 }
14575 }
14576 default:
14577 iNdEx = preIndex
14578 skippy, err := skipRpc(dAtA[iNdEx:])
14579 if err != nil {
14580 return err
14581 }
14582 if skippy < 0 {
14583 return ErrInvalidLengthRpc
14584 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014585 if (iNdEx + skippy) < 0 {
14586 return ErrInvalidLengthRpc
14587 }
divyadesai81bb7ba2020-03-11 11:45:23 +000014588 if (iNdEx + skippy) > l {
14589 return io.ErrUnexpectedEOF
14590 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014591 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000014592 iNdEx += skippy
14593 }
14594 }
14595
14596 if iNdEx > l {
14597 return io.ErrUnexpectedEOF
14598 }
14599 return nil
14600}
14601func (m *PutRequest) Unmarshal(dAtA []byte) error {
14602 l := len(dAtA)
14603 iNdEx := 0
14604 for iNdEx < l {
14605 preIndex := iNdEx
14606 var wire uint64
14607 for shift := uint(0); ; shift += 7 {
14608 if shift >= 64 {
14609 return ErrIntOverflowRpc
14610 }
14611 if iNdEx >= l {
14612 return io.ErrUnexpectedEOF
14613 }
14614 b := dAtA[iNdEx]
14615 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014616 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014617 if b < 0x80 {
14618 break
14619 }
14620 }
14621 fieldNum := int32(wire >> 3)
14622 wireType := int(wire & 0x7)
14623 if wireType == 4 {
14624 return fmt.Errorf("proto: PutRequest: wiretype end group for non-group")
14625 }
14626 if fieldNum <= 0 {
14627 return fmt.Errorf("proto: PutRequest: illegal tag %d (wire type %d)", fieldNum, wire)
14628 }
14629 switch fieldNum {
14630 case 1:
14631 if wireType != 2 {
14632 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
14633 }
14634 var byteLen int
14635 for shift := uint(0); ; shift += 7 {
14636 if shift >= 64 {
14637 return ErrIntOverflowRpc
14638 }
14639 if iNdEx >= l {
14640 return io.ErrUnexpectedEOF
14641 }
14642 b := dAtA[iNdEx]
14643 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014644 byteLen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014645 if b < 0x80 {
14646 break
14647 }
14648 }
14649 if byteLen < 0 {
14650 return ErrInvalidLengthRpc
14651 }
14652 postIndex := iNdEx + byteLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014653 if postIndex < 0 {
14654 return ErrInvalidLengthRpc
14655 }
divyadesai81bb7ba2020-03-11 11:45:23 +000014656 if postIndex > l {
14657 return io.ErrUnexpectedEOF
14658 }
14659 m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
14660 if m.Key == nil {
14661 m.Key = []byte{}
14662 }
14663 iNdEx = postIndex
14664 case 2:
14665 if wireType != 2 {
14666 return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
14667 }
14668 var byteLen int
14669 for shift := uint(0); ; shift += 7 {
14670 if shift >= 64 {
14671 return ErrIntOverflowRpc
14672 }
14673 if iNdEx >= l {
14674 return io.ErrUnexpectedEOF
14675 }
14676 b := dAtA[iNdEx]
14677 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014678 byteLen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014679 if b < 0x80 {
14680 break
14681 }
14682 }
14683 if byteLen < 0 {
14684 return ErrInvalidLengthRpc
14685 }
14686 postIndex := iNdEx + byteLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014687 if postIndex < 0 {
14688 return ErrInvalidLengthRpc
14689 }
divyadesai81bb7ba2020-03-11 11:45:23 +000014690 if postIndex > l {
14691 return io.ErrUnexpectedEOF
14692 }
14693 m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...)
14694 if m.Value == nil {
14695 m.Value = []byte{}
14696 }
14697 iNdEx = postIndex
14698 case 3:
14699 if wireType != 0 {
14700 return fmt.Errorf("proto: wrong wireType = %d for field Lease", wireType)
14701 }
14702 m.Lease = 0
14703 for shift := uint(0); ; shift += 7 {
14704 if shift >= 64 {
14705 return ErrIntOverflowRpc
14706 }
14707 if iNdEx >= l {
14708 return io.ErrUnexpectedEOF
14709 }
14710 b := dAtA[iNdEx]
14711 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014712 m.Lease |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014713 if b < 0x80 {
14714 break
14715 }
14716 }
14717 case 4:
14718 if wireType != 0 {
14719 return fmt.Errorf("proto: wrong wireType = %d for field PrevKv", wireType)
14720 }
14721 var v int
14722 for shift := uint(0); ; shift += 7 {
14723 if shift >= 64 {
14724 return ErrIntOverflowRpc
14725 }
14726 if iNdEx >= l {
14727 return io.ErrUnexpectedEOF
14728 }
14729 b := dAtA[iNdEx]
14730 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014731 v |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014732 if b < 0x80 {
14733 break
14734 }
14735 }
14736 m.PrevKv = bool(v != 0)
14737 case 5:
14738 if wireType != 0 {
14739 return fmt.Errorf("proto: wrong wireType = %d for field IgnoreValue", wireType)
14740 }
14741 var v int
14742 for shift := uint(0); ; shift += 7 {
14743 if shift >= 64 {
14744 return ErrIntOverflowRpc
14745 }
14746 if iNdEx >= l {
14747 return io.ErrUnexpectedEOF
14748 }
14749 b := dAtA[iNdEx]
14750 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014751 v |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014752 if b < 0x80 {
14753 break
14754 }
14755 }
14756 m.IgnoreValue = bool(v != 0)
14757 case 6:
14758 if wireType != 0 {
14759 return fmt.Errorf("proto: wrong wireType = %d for field IgnoreLease", wireType)
14760 }
14761 var v int
14762 for shift := uint(0); ; shift += 7 {
14763 if shift >= 64 {
14764 return ErrIntOverflowRpc
14765 }
14766 if iNdEx >= l {
14767 return io.ErrUnexpectedEOF
14768 }
14769 b := dAtA[iNdEx]
14770 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014771 v |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014772 if b < 0x80 {
14773 break
14774 }
14775 }
14776 m.IgnoreLease = bool(v != 0)
14777 default:
14778 iNdEx = preIndex
14779 skippy, err := skipRpc(dAtA[iNdEx:])
14780 if err != nil {
14781 return err
14782 }
14783 if skippy < 0 {
14784 return ErrInvalidLengthRpc
14785 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014786 if (iNdEx + skippy) < 0 {
14787 return ErrInvalidLengthRpc
14788 }
divyadesai81bb7ba2020-03-11 11:45:23 +000014789 if (iNdEx + skippy) > l {
14790 return io.ErrUnexpectedEOF
14791 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014792 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000014793 iNdEx += skippy
14794 }
14795 }
14796
14797 if iNdEx > l {
14798 return io.ErrUnexpectedEOF
14799 }
14800 return nil
14801}
14802func (m *PutResponse) Unmarshal(dAtA []byte) error {
14803 l := len(dAtA)
14804 iNdEx := 0
14805 for iNdEx < l {
14806 preIndex := iNdEx
14807 var wire uint64
14808 for shift := uint(0); ; shift += 7 {
14809 if shift >= 64 {
14810 return ErrIntOverflowRpc
14811 }
14812 if iNdEx >= l {
14813 return io.ErrUnexpectedEOF
14814 }
14815 b := dAtA[iNdEx]
14816 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014817 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014818 if b < 0x80 {
14819 break
14820 }
14821 }
14822 fieldNum := int32(wire >> 3)
14823 wireType := int(wire & 0x7)
14824 if wireType == 4 {
14825 return fmt.Errorf("proto: PutResponse: wiretype end group for non-group")
14826 }
14827 if fieldNum <= 0 {
14828 return fmt.Errorf("proto: PutResponse: illegal tag %d (wire type %d)", fieldNum, wire)
14829 }
14830 switch fieldNum {
14831 case 1:
14832 if wireType != 2 {
14833 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
14834 }
14835 var msglen int
14836 for shift := uint(0); ; shift += 7 {
14837 if shift >= 64 {
14838 return ErrIntOverflowRpc
14839 }
14840 if iNdEx >= l {
14841 return io.ErrUnexpectedEOF
14842 }
14843 b := dAtA[iNdEx]
14844 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014845 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014846 if b < 0x80 {
14847 break
14848 }
14849 }
14850 if msglen < 0 {
14851 return ErrInvalidLengthRpc
14852 }
14853 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014854 if postIndex < 0 {
14855 return ErrInvalidLengthRpc
14856 }
divyadesai81bb7ba2020-03-11 11:45:23 +000014857 if postIndex > l {
14858 return io.ErrUnexpectedEOF
14859 }
14860 if m.Header == nil {
14861 m.Header = &ResponseHeader{}
14862 }
14863 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
14864 return err
14865 }
14866 iNdEx = postIndex
14867 case 2:
14868 if wireType != 2 {
14869 return fmt.Errorf("proto: wrong wireType = %d for field PrevKv", wireType)
14870 }
14871 var msglen int
14872 for shift := uint(0); ; shift += 7 {
14873 if shift >= 64 {
14874 return ErrIntOverflowRpc
14875 }
14876 if iNdEx >= l {
14877 return io.ErrUnexpectedEOF
14878 }
14879 b := dAtA[iNdEx]
14880 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014881 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014882 if b < 0x80 {
14883 break
14884 }
14885 }
14886 if msglen < 0 {
14887 return ErrInvalidLengthRpc
14888 }
14889 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014890 if postIndex < 0 {
14891 return ErrInvalidLengthRpc
14892 }
divyadesai81bb7ba2020-03-11 11:45:23 +000014893 if postIndex > l {
14894 return io.ErrUnexpectedEOF
14895 }
14896 if m.PrevKv == nil {
14897 m.PrevKv = &mvccpb.KeyValue{}
14898 }
14899 if err := m.PrevKv.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
14900 return err
14901 }
14902 iNdEx = postIndex
14903 default:
14904 iNdEx = preIndex
14905 skippy, err := skipRpc(dAtA[iNdEx:])
14906 if err != nil {
14907 return err
14908 }
14909 if skippy < 0 {
14910 return ErrInvalidLengthRpc
14911 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014912 if (iNdEx + skippy) < 0 {
14913 return ErrInvalidLengthRpc
14914 }
divyadesai81bb7ba2020-03-11 11:45:23 +000014915 if (iNdEx + skippy) > l {
14916 return io.ErrUnexpectedEOF
14917 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014918 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000014919 iNdEx += skippy
14920 }
14921 }
14922
14923 if iNdEx > l {
14924 return io.ErrUnexpectedEOF
14925 }
14926 return nil
14927}
14928func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error {
14929 l := len(dAtA)
14930 iNdEx := 0
14931 for iNdEx < l {
14932 preIndex := iNdEx
14933 var wire uint64
14934 for shift := uint(0); ; shift += 7 {
14935 if shift >= 64 {
14936 return ErrIntOverflowRpc
14937 }
14938 if iNdEx >= l {
14939 return io.ErrUnexpectedEOF
14940 }
14941 b := dAtA[iNdEx]
14942 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014943 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014944 if b < 0x80 {
14945 break
14946 }
14947 }
14948 fieldNum := int32(wire >> 3)
14949 wireType := int(wire & 0x7)
14950 if wireType == 4 {
14951 return fmt.Errorf("proto: DeleteRangeRequest: wiretype end group for non-group")
14952 }
14953 if fieldNum <= 0 {
14954 return fmt.Errorf("proto: DeleteRangeRequest: illegal tag %d (wire type %d)", fieldNum, wire)
14955 }
14956 switch fieldNum {
14957 case 1:
14958 if wireType != 2 {
14959 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
14960 }
14961 var byteLen int
14962 for shift := uint(0); ; shift += 7 {
14963 if shift >= 64 {
14964 return ErrIntOverflowRpc
14965 }
14966 if iNdEx >= l {
14967 return io.ErrUnexpectedEOF
14968 }
14969 b := dAtA[iNdEx]
14970 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014971 byteLen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000014972 if b < 0x80 {
14973 break
14974 }
14975 }
14976 if byteLen < 0 {
14977 return ErrInvalidLengthRpc
14978 }
14979 postIndex := iNdEx + byteLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000014980 if postIndex < 0 {
14981 return ErrInvalidLengthRpc
14982 }
divyadesai81bb7ba2020-03-11 11:45:23 +000014983 if postIndex > l {
14984 return io.ErrUnexpectedEOF
14985 }
14986 m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
14987 if m.Key == nil {
14988 m.Key = []byte{}
14989 }
14990 iNdEx = postIndex
14991 case 2:
14992 if wireType != 2 {
14993 return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType)
14994 }
14995 var byteLen int
14996 for shift := uint(0); ; shift += 7 {
14997 if shift >= 64 {
14998 return ErrIntOverflowRpc
14999 }
15000 if iNdEx >= l {
15001 return io.ErrUnexpectedEOF
15002 }
15003 b := dAtA[iNdEx]
15004 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015005 byteLen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015006 if b < 0x80 {
15007 break
15008 }
15009 }
15010 if byteLen < 0 {
15011 return ErrInvalidLengthRpc
15012 }
15013 postIndex := iNdEx + byteLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015014 if postIndex < 0 {
15015 return ErrInvalidLengthRpc
15016 }
divyadesai81bb7ba2020-03-11 11:45:23 +000015017 if postIndex > l {
15018 return io.ErrUnexpectedEOF
15019 }
15020 m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...)
15021 if m.RangeEnd == nil {
15022 m.RangeEnd = []byte{}
15023 }
15024 iNdEx = postIndex
15025 case 3:
15026 if wireType != 0 {
15027 return fmt.Errorf("proto: wrong wireType = %d for field PrevKv", wireType)
15028 }
15029 var v int
15030 for shift := uint(0); ; shift += 7 {
15031 if shift >= 64 {
15032 return ErrIntOverflowRpc
15033 }
15034 if iNdEx >= l {
15035 return io.ErrUnexpectedEOF
15036 }
15037 b := dAtA[iNdEx]
15038 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015039 v |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015040 if b < 0x80 {
15041 break
15042 }
15043 }
15044 m.PrevKv = bool(v != 0)
15045 default:
15046 iNdEx = preIndex
15047 skippy, err := skipRpc(dAtA[iNdEx:])
15048 if err != nil {
15049 return err
15050 }
15051 if skippy < 0 {
15052 return ErrInvalidLengthRpc
15053 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015054 if (iNdEx + skippy) < 0 {
15055 return ErrInvalidLengthRpc
15056 }
divyadesai81bb7ba2020-03-11 11:45:23 +000015057 if (iNdEx + skippy) > l {
15058 return io.ErrUnexpectedEOF
15059 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015060 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000015061 iNdEx += skippy
15062 }
15063 }
15064
15065 if iNdEx > l {
15066 return io.ErrUnexpectedEOF
15067 }
15068 return nil
15069}
15070func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error {
15071 l := len(dAtA)
15072 iNdEx := 0
15073 for iNdEx < l {
15074 preIndex := iNdEx
15075 var wire uint64
15076 for shift := uint(0); ; shift += 7 {
15077 if shift >= 64 {
15078 return ErrIntOverflowRpc
15079 }
15080 if iNdEx >= l {
15081 return io.ErrUnexpectedEOF
15082 }
15083 b := dAtA[iNdEx]
15084 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015085 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015086 if b < 0x80 {
15087 break
15088 }
15089 }
15090 fieldNum := int32(wire >> 3)
15091 wireType := int(wire & 0x7)
15092 if wireType == 4 {
15093 return fmt.Errorf("proto: DeleteRangeResponse: wiretype end group for non-group")
15094 }
15095 if fieldNum <= 0 {
15096 return fmt.Errorf("proto: DeleteRangeResponse: illegal tag %d (wire type %d)", fieldNum, wire)
15097 }
15098 switch fieldNum {
15099 case 1:
15100 if wireType != 2 {
15101 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
15102 }
15103 var msglen int
15104 for shift := uint(0); ; shift += 7 {
15105 if shift >= 64 {
15106 return ErrIntOverflowRpc
15107 }
15108 if iNdEx >= l {
15109 return io.ErrUnexpectedEOF
15110 }
15111 b := dAtA[iNdEx]
15112 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015113 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015114 if b < 0x80 {
15115 break
15116 }
15117 }
15118 if msglen < 0 {
15119 return ErrInvalidLengthRpc
15120 }
15121 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015122 if postIndex < 0 {
15123 return ErrInvalidLengthRpc
15124 }
divyadesai81bb7ba2020-03-11 11:45:23 +000015125 if postIndex > l {
15126 return io.ErrUnexpectedEOF
15127 }
15128 if m.Header == nil {
15129 m.Header = &ResponseHeader{}
15130 }
15131 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
15132 return err
15133 }
15134 iNdEx = postIndex
15135 case 2:
15136 if wireType != 0 {
15137 return fmt.Errorf("proto: wrong wireType = %d for field Deleted", wireType)
15138 }
15139 m.Deleted = 0
15140 for shift := uint(0); ; shift += 7 {
15141 if shift >= 64 {
15142 return ErrIntOverflowRpc
15143 }
15144 if iNdEx >= l {
15145 return io.ErrUnexpectedEOF
15146 }
15147 b := dAtA[iNdEx]
15148 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015149 m.Deleted |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015150 if b < 0x80 {
15151 break
15152 }
15153 }
15154 case 3:
15155 if wireType != 2 {
15156 return fmt.Errorf("proto: wrong wireType = %d for field PrevKvs", wireType)
15157 }
15158 var msglen int
15159 for shift := uint(0); ; shift += 7 {
15160 if shift >= 64 {
15161 return ErrIntOverflowRpc
15162 }
15163 if iNdEx >= l {
15164 return io.ErrUnexpectedEOF
15165 }
15166 b := dAtA[iNdEx]
15167 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015168 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015169 if b < 0x80 {
15170 break
15171 }
15172 }
15173 if msglen < 0 {
15174 return ErrInvalidLengthRpc
15175 }
15176 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015177 if postIndex < 0 {
15178 return ErrInvalidLengthRpc
15179 }
divyadesai81bb7ba2020-03-11 11:45:23 +000015180 if postIndex > l {
15181 return io.ErrUnexpectedEOF
15182 }
15183 m.PrevKvs = append(m.PrevKvs, &mvccpb.KeyValue{})
15184 if err := m.PrevKvs[len(m.PrevKvs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
15185 return err
15186 }
15187 iNdEx = postIndex
15188 default:
15189 iNdEx = preIndex
15190 skippy, err := skipRpc(dAtA[iNdEx:])
15191 if err != nil {
15192 return err
15193 }
15194 if skippy < 0 {
15195 return ErrInvalidLengthRpc
15196 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015197 if (iNdEx + skippy) < 0 {
15198 return ErrInvalidLengthRpc
15199 }
divyadesai81bb7ba2020-03-11 11:45:23 +000015200 if (iNdEx + skippy) > l {
15201 return io.ErrUnexpectedEOF
15202 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015203 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000015204 iNdEx += skippy
15205 }
15206 }
15207
15208 if iNdEx > l {
15209 return io.ErrUnexpectedEOF
15210 }
15211 return nil
15212}
15213func (m *RequestOp) Unmarshal(dAtA []byte) error {
15214 l := len(dAtA)
15215 iNdEx := 0
15216 for iNdEx < l {
15217 preIndex := iNdEx
15218 var wire uint64
15219 for shift := uint(0); ; shift += 7 {
15220 if shift >= 64 {
15221 return ErrIntOverflowRpc
15222 }
15223 if iNdEx >= l {
15224 return io.ErrUnexpectedEOF
15225 }
15226 b := dAtA[iNdEx]
15227 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015228 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015229 if b < 0x80 {
15230 break
15231 }
15232 }
15233 fieldNum := int32(wire >> 3)
15234 wireType := int(wire & 0x7)
15235 if wireType == 4 {
15236 return fmt.Errorf("proto: RequestOp: wiretype end group for non-group")
15237 }
15238 if fieldNum <= 0 {
15239 return fmt.Errorf("proto: RequestOp: illegal tag %d (wire type %d)", fieldNum, wire)
15240 }
15241 switch fieldNum {
15242 case 1:
15243 if wireType != 2 {
15244 return fmt.Errorf("proto: wrong wireType = %d for field RequestRange", wireType)
15245 }
15246 var msglen int
15247 for shift := uint(0); ; shift += 7 {
15248 if shift >= 64 {
15249 return ErrIntOverflowRpc
15250 }
15251 if iNdEx >= l {
15252 return io.ErrUnexpectedEOF
15253 }
15254 b := dAtA[iNdEx]
15255 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015256 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015257 if b < 0x80 {
15258 break
15259 }
15260 }
15261 if msglen < 0 {
15262 return ErrInvalidLengthRpc
15263 }
15264 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015265 if postIndex < 0 {
15266 return ErrInvalidLengthRpc
15267 }
divyadesai81bb7ba2020-03-11 11:45:23 +000015268 if postIndex > l {
15269 return io.ErrUnexpectedEOF
15270 }
15271 v := &RangeRequest{}
15272 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
15273 return err
15274 }
15275 m.Request = &RequestOp_RequestRange{v}
15276 iNdEx = postIndex
15277 case 2:
15278 if wireType != 2 {
15279 return fmt.Errorf("proto: wrong wireType = %d for field RequestPut", wireType)
15280 }
15281 var msglen int
15282 for shift := uint(0); ; shift += 7 {
15283 if shift >= 64 {
15284 return ErrIntOverflowRpc
15285 }
15286 if iNdEx >= l {
15287 return io.ErrUnexpectedEOF
15288 }
15289 b := dAtA[iNdEx]
15290 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015291 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015292 if b < 0x80 {
15293 break
15294 }
15295 }
15296 if msglen < 0 {
15297 return ErrInvalidLengthRpc
15298 }
15299 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015300 if postIndex < 0 {
15301 return ErrInvalidLengthRpc
15302 }
divyadesai81bb7ba2020-03-11 11:45:23 +000015303 if postIndex > l {
15304 return io.ErrUnexpectedEOF
15305 }
15306 v := &PutRequest{}
15307 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
15308 return err
15309 }
15310 m.Request = &RequestOp_RequestPut{v}
15311 iNdEx = postIndex
15312 case 3:
15313 if wireType != 2 {
15314 return fmt.Errorf("proto: wrong wireType = %d for field RequestDeleteRange", wireType)
15315 }
15316 var msglen int
15317 for shift := uint(0); ; shift += 7 {
15318 if shift >= 64 {
15319 return ErrIntOverflowRpc
15320 }
15321 if iNdEx >= l {
15322 return io.ErrUnexpectedEOF
15323 }
15324 b := dAtA[iNdEx]
15325 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015326 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015327 if b < 0x80 {
15328 break
15329 }
15330 }
15331 if msglen < 0 {
15332 return ErrInvalidLengthRpc
15333 }
15334 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015335 if postIndex < 0 {
15336 return ErrInvalidLengthRpc
15337 }
divyadesai81bb7ba2020-03-11 11:45:23 +000015338 if postIndex > l {
15339 return io.ErrUnexpectedEOF
15340 }
15341 v := &DeleteRangeRequest{}
15342 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
15343 return err
15344 }
15345 m.Request = &RequestOp_RequestDeleteRange{v}
15346 iNdEx = postIndex
15347 case 4:
15348 if wireType != 2 {
15349 return fmt.Errorf("proto: wrong wireType = %d for field RequestTxn", wireType)
15350 }
15351 var msglen int
15352 for shift := uint(0); ; shift += 7 {
15353 if shift >= 64 {
15354 return ErrIntOverflowRpc
15355 }
15356 if iNdEx >= l {
15357 return io.ErrUnexpectedEOF
15358 }
15359 b := dAtA[iNdEx]
15360 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015361 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015362 if b < 0x80 {
15363 break
15364 }
15365 }
15366 if msglen < 0 {
15367 return ErrInvalidLengthRpc
15368 }
15369 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015370 if postIndex < 0 {
15371 return ErrInvalidLengthRpc
15372 }
divyadesai81bb7ba2020-03-11 11:45:23 +000015373 if postIndex > l {
15374 return io.ErrUnexpectedEOF
15375 }
15376 v := &TxnRequest{}
15377 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
15378 return err
15379 }
15380 m.Request = &RequestOp_RequestTxn{v}
15381 iNdEx = postIndex
15382 default:
15383 iNdEx = preIndex
15384 skippy, err := skipRpc(dAtA[iNdEx:])
15385 if err != nil {
15386 return err
15387 }
15388 if skippy < 0 {
15389 return ErrInvalidLengthRpc
15390 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015391 if (iNdEx + skippy) < 0 {
15392 return ErrInvalidLengthRpc
15393 }
divyadesai81bb7ba2020-03-11 11:45:23 +000015394 if (iNdEx + skippy) > l {
15395 return io.ErrUnexpectedEOF
15396 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015397 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000015398 iNdEx += skippy
15399 }
15400 }
15401
15402 if iNdEx > l {
15403 return io.ErrUnexpectedEOF
15404 }
15405 return nil
15406}
15407func (m *ResponseOp) Unmarshal(dAtA []byte) error {
15408 l := len(dAtA)
15409 iNdEx := 0
15410 for iNdEx < l {
15411 preIndex := iNdEx
15412 var wire uint64
15413 for shift := uint(0); ; shift += 7 {
15414 if shift >= 64 {
15415 return ErrIntOverflowRpc
15416 }
15417 if iNdEx >= l {
15418 return io.ErrUnexpectedEOF
15419 }
15420 b := dAtA[iNdEx]
15421 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015422 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015423 if b < 0x80 {
15424 break
15425 }
15426 }
15427 fieldNum := int32(wire >> 3)
15428 wireType := int(wire & 0x7)
15429 if wireType == 4 {
15430 return fmt.Errorf("proto: ResponseOp: wiretype end group for non-group")
15431 }
15432 if fieldNum <= 0 {
15433 return fmt.Errorf("proto: ResponseOp: illegal tag %d (wire type %d)", fieldNum, wire)
15434 }
15435 switch fieldNum {
15436 case 1:
15437 if wireType != 2 {
15438 return fmt.Errorf("proto: wrong wireType = %d for field ResponseRange", wireType)
15439 }
15440 var msglen int
15441 for shift := uint(0); ; shift += 7 {
15442 if shift >= 64 {
15443 return ErrIntOverflowRpc
15444 }
15445 if iNdEx >= l {
15446 return io.ErrUnexpectedEOF
15447 }
15448 b := dAtA[iNdEx]
15449 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015450 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015451 if b < 0x80 {
15452 break
15453 }
15454 }
15455 if msglen < 0 {
15456 return ErrInvalidLengthRpc
15457 }
15458 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015459 if postIndex < 0 {
15460 return ErrInvalidLengthRpc
15461 }
divyadesai81bb7ba2020-03-11 11:45:23 +000015462 if postIndex > l {
15463 return io.ErrUnexpectedEOF
15464 }
15465 v := &RangeResponse{}
15466 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
15467 return err
15468 }
15469 m.Response = &ResponseOp_ResponseRange{v}
15470 iNdEx = postIndex
15471 case 2:
15472 if wireType != 2 {
15473 return fmt.Errorf("proto: wrong wireType = %d for field ResponsePut", wireType)
15474 }
15475 var msglen int
15476 for shift := uint(0); ; shift += 7 {
15477 if shift >= 64 {
15478 return ErrIntOverflowRpc
15479 }
15480 if iNdEx >= l {
15481 return io.ErrUnexpectedEOF
15482 }
15483 b := dAtA[iNdEx]
15484 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015485 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015486 if b < 0x80 {
15487 break
15488 }
15489 }
15490 if msglen < 0 {
15491 return ErrInvalidLengthRpc
15492 }
15493 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015494 if postIndex < 0 {
15495 return ErrInvalidLengthRpc
15496 }
divyadesai81bb7ba2020-03-11 11:45:23 +000015497 if postIndex > l {
15498 return io.ErrUnexpectedEOF
15499 }
15500 v := &PutResponse{}
15501 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
15502 return err
15503 }
15504 m.Response = &ResponseOp_ResponsePut{v}
15505 iNdEx = postIndex
15506 case 3:
15507 if wireType != 2 {
15508 return fmt.Errorf("proto: wrong wireType = %d for field ResponseDeleteRange", wireType)
15509 }
15510 var msglen int
15511 for shift := uint(0); ; shift += 7 {
15512 if shift >= 64 {
15513 return ErrIntOverflowRpc
15514 }
15515 if iNdEx >= l {
15516 return io.ErrUnexpectedEOF
15517 }
15518 b := dAtA[iNdEx]
15519 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015520 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015521 if b < 0x80 {
15522 break
15523 }
15524 }
15525 if msglen < 0 {
15526 return ErrInvalidLengthRpc
15527 }
15528 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015529 if postIndex < 0 {
15530 return ErrInvalidLengthRpc
15531 }
divyadesai81bb7ba2020-03-11 11:45:23 +000015532 if postIndex > l {
15533 return io.ErrUnexpectedEOF
15534 }
15535 v := &DeleteRangeResponse{}
15536 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
15537 return err
15538 }
15539 m.Response = &ResponseOp_ResponseDeleteRange{v}
15540 iNdEx = postIndex
15541 case 4:
15542 if wireType != 2 {
15543 return fmt.Errorf("proto: wrong wireType = %d for field ResponseTxn", wireType)
15544 }
15545 var msglen int
15546 for shift := uint(0); ; shift += 7 {
15547 if shift >= 64 {
15548 return ErrIntOverflowRpc
15549 }
15550 if iNdEx >= l {
15551 return io.ErrUnexpectedEOF
15552 }
15553 b := dAtA[iNdEx]
15554 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015555 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015556 if b < 0x80 {
15557 break
15558 }
15559 }
15560 if msglen < 0 {
15561 return ErrInvalidLengthRpc
15562 }
15563 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015564 if postIndex < 0 {
15565 return ErrInvalidLengthRpc
15566 }
divyadesai81bb7ba2020-03-11 11:45:23 +000015567 if postIndex > l {
15568 return io.ErrUnexpectedEOF
15569 }
15570 v := &TxnResponse{}
15571 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
15572 return err
15573 }
15574 m.Response = &ResponseOp_ResponseTxn{v}
15575 iNdEx = postIndex
15576 default:
15577 iNdEx = preIndex
15578 skippy, err := skipRpc(dAtA[iNdEx:])
15579 if err != nil {
15580 return err
15581 }
15582 if skippy < 0 {
15583 return ErrInvalidLengthRpc
15584 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015585 if (iNdEx + skippy) < 0 {
15586 return ErrInvalidLengthRpc
15587 }
divyadesai81bb7ba2020-03-11 11:45:23 +000015588 if (iNdEx + skippy) > l {
15589 return io.ErrUnexpectedEOF
15590 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015591 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000015592 iNdEx += skippy
15593 }
15594 }
15595
15596 if iNdEx > l {
15597 return io.ErrUnexpectedEOF
15598 }
15599 return nil
15600}
15601func (m *Compare) Unmarshal(dAtA []byte) error {
15602 l := len(dAtA)
15603 iNdEx := 0
15604 for iNdEx < l {
15605 preIndex := iNdEx
15606 var wire uint64
15607 for shift := uint(0); ; shift += 7 {
15608 if shift >= 64 {
15609 return ErrIntOverflowRpc
15610 }
15611 if iNdEx >= l {
15612 return io.ErrUnexpectedEOF
15613 }
15614 b := dAtA[iNdEx]
15615 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015616 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015617 if b < 0x80 {
15618 break
15619 }
15620 }
15621 fieldNum := int32(wire >> 3)
15622 wireType := int(wire & 0x7)
15623 if wireType == 4 {
15624 return fmt.Errorf("proto: Compare: wiretype end group for non-group")
15625 }
15626 if fieldNum <= 0 {
15627 return fmt.Errorf("proto: Compare: illegal tag %d (wire type %d)", fieldNum, wire)
15628 }
15629 switch fieldNum {
15630 case 1:
15631 if wireType != 0 {
15632 return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
15633 }
15634 m.Result = 0
15635 for shift := uint(0); ; shift += 7 {
15636 if shift >= 64 {
15637 return ErrIntOverflowRpc
15638 }
15639 if iNdEx >= l {
15640 return io.ErrUnexpectedEOF
15641 }
15642 b := dAtA[iNdEx]
15643 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015644 m.Result |= Compare_CompareResult(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015645 if b < 0x80 {
15646 break
15647 }
15648 }
15649 case 2:
15650 if wireType != 0 {
15651 return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType)
15652 }
15653 m.Target = 0
15654 for shift := uint(0); ; shift += 7 {
15655 if shift >= 64 {
15656 return ErrIntOverflowRpc
15657 }
15658 if iNdEx >= l {
15659 return io.ErrUnexpectedEOF
15660 }
15661 b := dAtA[iNdEx]
15662 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015663 m.Target |= Compare_CompareTarget(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015664 if b < 0x80 {
15665 break
15666 }
15667 }
15668 case 3:
15669 if wireType != 2 {
15670 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
15671 }
15672 var byteLen int
15673 for shift := uint(0); ; shift += 7 {
15674 if shift >= 64 {
15675 return ErrIntOverflowRpc
15676 }
15677 if iNdEx >= l {
15678 return io.ErrUnexpectedEOF
15679 }
15680 b := dAtA[iNdEx]
15681 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015682 byteLen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015683 if b < 0x80 {
15684 break
15685 }
15686 }
15687 if byteLen < 0 {
15688 return ErrInvalidLengthRpc
15689 }
15690 postIndex := iNdEx + byteLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015691 if postIndex < 0 {
15692 return ErrInvalidLengthRpc
15693 }
divyadesai81bb7ba2020-03-11 11:45:23 +000015694 if postIndex > l {
15695 return io.ErrUnexpectedEOF
15696 }
15697 m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
15698 if m.Key == nil {
15699 m.Key = []byte{}
15700 }
15701 iNdEx = postIndex
15702 case 4:
15703 if wireType != 0 {
15704 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
15705 }
15706 var v int64
15707 for shift := uint(0); ; shift += 7 {
15708 if shift >= 64 {
15709 return ErrIntOverflowRpc
15710 }
15711 if iNdEx >= l {
15712 return io.ErrUnexpectedEOF
15713 }
15714 b := dAtA[iNdEx]
15715 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015716 v |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015717 if b < 0x80 {
15718 break
15719 }
15720 }
15721 m.TargetUnion = &Compare_Version{v}
15722 case 5:
15723 if wireType != 0 {
15724 return fmt.Errorf("proto: wrong wireType = %d for field CreateRevision", wireType)
15725 }
15726 var v int64
15727 for shift := uint(0); ; shift += 7 {
15728 if shift >= 64 {
15729 return ErrIntOverflowRpc
15730 }
15731 if iNdEx >= l {
15732 return io.ErrUnexpectedEOF
15733 }
15734 b := dAtA[iNdEx]
15735 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015736 v |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015737 if b < 0x80 {
15738 break
15739 }
15740 }
15741 m.TargetUnion = &Compare_CreateRevision{v}
15742 case 6:
15743 if wireType != 0 {
15744 return fmt.Errorf("proto: wrong wireType = %d for field ModRevision", wireType)
15745 }
15746 var v int64
15747 for shift := uint(0); ; shift += 7 {
15748 if shift >= 64 {
15749 return ErrIntOverflowRpc
15750 }
15751 if iNdEx >= l {
15752 return io.ErrUnexpectedEOF
15753 }
15754 b := dAtA[iNdEx]
15755 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015756 v |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015757 if b < 0x80 {
15758 break
15759 }
15760 }
15761 m.TargetUnion = &Compare_ModRevision{v}
15762 case 7:
15763 if wireType != 2 {
15764 return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
15765 }
15766 var byteLen int
15767 for shift := uint(0); ; shift += 7 {
15768 if shift >= 64 {
15769 return ErrIntOverflowRpc
15770 }
15771 if iNdEx >= l {
15772 return io.ErrUnexpectedEOF
15773 }
15774 b := dAtA[iNdEx]
15775 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015776 byteLen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015777 if b < 0x80 {
15778 break
15779 }
15780 }
15781 if byteLen < 0 {
15782 return ErrInvalidLengthRpc
15783 }
15784 postIndex := iNdEx + byteLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015785 if postIndex < 0 {
15786 return ErrInvalidLengthRpc
15787 }
divyadesai81bb7ba2020-03-11 11:45:23 +000015788 if postIndex > l {
15789 return io.ErrUnexpectedEOF
15790 }
15791 v := make([]byte, postIndex-iNdEx)
15792 copy(v, dAtA[iNdEx:postIndex])
15793 m.TargetUnion = &Compare_Value{v}
15794 iNdEx = postIndex
15795 case 8:
15796 if wireType != 0 {
15797 return fmt.Errorf("proto: wrong wireType = %d for field Lease", wireType)
15798 }
15799 var v int64
15800 for shift := uint(0); ; shift += 7 {
15801 if shift >= 64 {
15802 return ErrIntOverflowRpc
15803 }
15804 if iNdEx >= l {
15805 return io.ErrUnexpectedEOF
15806 }
15807 b := dAtA[iNdEx]
15808 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015809 v |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015810 if b < 0x80 {
15811 break
15812 }
15813 }
15814 m.TargetUnion = &Compare_Lease{v}
15815 case 64:
15816 if wireType != 2 {
15817 return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType)
15818 }
15819 var byteLen int
15820 for shift := uint(0); ; shift += 7 {
15821 if shift >= 64 {
15822 return ErrIntOverflowRpc
15823 }
15824 if iNdEx >= l {
15825 return io.ErrUnexpectedEOF
15826 }
15827 b := dAtA[iNdEx]
15828 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015829 byteLen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015830 if b < 0x80 {
15831 break
15832 }
15833 }
15834 if byteLen < 0 {
15835 return ErrInvalidLengthRpc
15836 }
15837 postIndex := iNdEx + byteLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015838 if postIndex < 0 {
15839 return ErrInvalidLengthRpc
15840 }
divyadesai81bb7ba2020-03-11 11:45:23 +000015841 if postIndex > l {
15842 return io.ErrUnexpectedEOF
15843 }
15844 m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...)
15845 if m.RangeEnd == nil {
15846 m.RangeEnd = []byte{}
15847 }
15848 iNdEx = postIndex
15849 default:
15850 iNdEx = preIndex
15851 skippy, err := skipRpc(dAtA[iNdEx:])
15852 if err != nil {
15853 return err
15854 }
15855 if skippy < 0 {
15856 return ErrInvalidLengthRpc
15857 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015858 if (iNdEx + skippy) < 0 {
15859 return ErrInvalidLengthRpc
15860 }
divyadesai81bb7ba2020-03-11 11:45:23 +000015861 if (iNdEx + skippy) > l {
15862 return io.ErrUnexpectedEOF
15863 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015864 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000015865 iNdEx += skippy
15866 }
15867 }
15868
15869 if iNdEx > l {
15870 return io.ErrUnexpectedEOF
15871 }
15872 return nil
15873}
15874func (m *TxnRequest) Unmarshal(dAtA []byte) error {
15875 l := len(dAtA)
15876 iNdEx := 0
15877 for iNdEx < l {
15878 preIndex := iNdEx
15879 var wire uint64
15880 for shift := uint(0); ; shift += 7 {
15881 if shift >= 64 {
15882 return ErrIntOverflowRpc
15883 }
15884 if iNdEx >= l {
15885 return io.ErrUnexpectedEOF
15886 }
15887 b := dAtA[iNdEx]
15888 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015889 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015890 if b < 0x80 {
15891 break
15892 }
15893 }
15894 fieldNum := int32(wire >> 3)
15895 wireType := int(wire & 0x7)
15896 if wireType == 4 {
15897 return fmt.Errorf("proto: TxnRequest: wiretype end group for non-group")
15898 }
15899 if fieldNum <= 0 {
15900 return fmt.Errorf("proto: TxnRequest: illegal tag %d (wire type %d)", fieldNum, wire)
15901 }
15902 switch fieldNum {
15903 case 1:
15904 if wireType != 2 {
15905 return fmt.Errorf("proto: wrong wireType = %d for field Compare", wireType)
15906 }
15907 var msglen int
15908 for shift := uint(0); ; shift += 7 {
15909 if shift >= 64 {
15910 return ErrIntOverflowRpc
15911 }
15912 if iNdEx >= l {
15913 return io.ErrUnexpectedEOF
15914 }
15915 b := dAtA[iNdEx]
15916 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015917 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015918 if b < 0x80 {
15919 break
15920 }
15921 }
15922 if msglen < 0 {
15923 return ErrInvalidLengthRpc
15924 }
15925 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015926 if postIndex < 0 {
15927 return ErrInvalidLengthRpc
15928 }
divyadesai81bb7ba2020-03-11 11:45:23 +000015929 if postIndex > l {
15930 return io.ErrUnexpectedEOF
15931 }
15932 m.Compare = append(m.Compare, &Compare{})
15933 if err := m.Compare[len(m.Compare)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
15934 return err
15935 }
15936 iNdEx = postIndex
15937 case 2:
15938 if wireType != 2 {
15939 return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType)
15940 }
15941 var msglen int
15942 for shift := uint(0); ; shift += 7 {
15943 if shift >= 64 {
15944 return ErrIntOverflowRpc
15945 }
15946 if iNdEx >= l {
15947 return io.ErrUnexpectedEOF
15948 }
15949 b := dAtA[iNdEx]
15950 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015951 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015952 if b < 0x80 {
15953 break
15954 }
15955 }
15956 if msglen < 0 {
15957 return ErrInvalidLengthRpc
15958 }
15959 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015960 if postIndex < 0 {
15961 return ErrInvalidLengthRpc
15962 }
divyadesai81bb7ba2020-03-11 11:45:23 +000015963 if postIndex > l {
15964 return io.ErrUnexpectedEOF
15965 }
15966 m.Success = append(m.Success, &RequestOp{})
15967 if err := m.Success[len(m.Success)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
15968 return err
15969 }
15970 iNdEx = postIndex
15971 case 3:
15972 if wireType != 2 {
15973 return fmt.Errorf("proto: wrong wireType = %d for field Failure", wireType)
15974 }
15975 var msglen int
15976 for shift := uint(0); ; shift += 7 {
15977 if shift >= 64 {
15978 return ErrIntOverflowRpc
15979 }
15980 if iNdEx >= l {
15981 return io.ErrUnexpectedEOF
15982 }
15983 b := dAtA[iNdEx]
15984 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015985 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000015986 if b < 0x80 {
15987 break
15988 }
15989 }
15990 if msglen < 0 {
15991 return ErrInvalidLengthRpc
15992 }
15993 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000015994 if postIndex < 0 {
15995 return ErrInvalidLengthRpc
15996 }
divyadesai81bb7ba2020-03-11 11:45:23 +000015997 if postIndex > l {
15998 return io.ErrUnexpectedEOF
15999 }
16000 m.Failure = append(m.Failure, &RequestOp{})
16001 if err := m.Failure[len(m.Failure)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
16002 return err
16003 }
16004 iNdEx = postIndex
16005 default:
16006 iNdEx = preIndex
16007 skippy, err := skipRpc(dAtA[iNdEx:])
16008 if err != nil {
16009 return err
16010 }
16011 if skippy < 0 {
16012 return ErrInvalidLengthRpc
16013 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016014 if (iNdEx + skippy) < 0 {
16015 return ErrInvalidLengthRpc
16016 }
divyadesai81bb7ba2020-03-11 11:45:23 +000016017 if (iNdEx + skippy) > l {
16018 return io.ErrUnexpectedEOF
16019 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016020 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000016021 iNdEx += skippy
16022 }
16023 }
16024
16025 if iNdEx > l {
16026 return io.ErrUnexpectedEOF
16027 }
16028 return nil
16029}
16030func (m *TxnResponse) Unmarshal(dAtA []byte) error {
16031 l := len(dAtA)
16032 iNdEx := 0
16033 for iNdEx < l {
16034 preIndex := iNdEx
16035 var wire uint64
16036 for shift := uint(0); ; shift += 7 {
16037 if shift >= 64 {
16038 return ErrIntOverflowRpc
16039 }
16040 if iNdEx >= l {
16041 return io.ErrUnexpectedEOF
16042 }
16043 b := dAtA[iNdEx]
16044 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016045 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016046 if b < 0x80 {
16047 break
16048 }
16049 }
16050 fieldNum := int32(wire >> 3)
16051 wireType := int(wire & 0x7)
16052 if wireType == 4 {
16053 return fmt.Errorf("proto: TxnResponse: wiretype end group for non-group")
16054 }
16055 if fieldNum <= 0 {
16056 return fmt.Errorf("proto: TxnResponse: illegal tag %d (wire type %d)", fieldNum, wire)
16057 }
16058 switch fieldNum {
16059 case 1:
16060 if wireType != 2 {
16061 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
16062 }
16063 var msglen int
16064 for shift := uint(0); ; shift += 7 {
16065 if shift >= 64 {
16066 return ErrIntOverflowRpc
16067 }
16068 if iNdEx >= l {
16069 return io.ErrUnexpectedEOF
16070 }
16071 b := dAtA[iNdEx]
16072 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016073 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016074 if b < 0x80 {
16075 break
16076 }
16077 }
16078 if msglen < 0 {
16079 return ErrInvalidLengthRpc
16080 }
16081 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016082 if postIndex < 0 {
16083 return ErrInvalidLengthRpc
16084 }
divyadesai81bb7ba2020-03-11 11:45:23 +000016085 if postIndex > l {
16086 return io.ErrUnexpectedEOF
16087 }
16088 if m.Header == nil {
16089 m.Header = &ResponseHeader{}
16090 }
16091 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
16092 return err
16093 }
16094 iNdEx = postIndex
16095 case 2:
16096 if wireType != 0 {
16097 return fmt.Errorf("proto: wrong wireType = %d for field Succeeded", wireType)
16098 }
16099 var v int
16100 for shift := uint(0); ; shift += 7 {
16101 if shift >= 64 {
16102 return ErrIntOverflowRpc
16103 }
16104 if iNdEx >= l {
16105 return io.ErrUnexpectedEOF
16106 }
16107 b := dAtA[iNdEx]
16108 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016109 v |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016110 if b < 0x80 {
16111 break
16112 }
16113 }
16114 m.Succeeded = bool(v != 0)
16115 case 3:
16116 if wireType != 2 {
16117 return fmt.Errorf("proto: wrong wireType = %d for field Responses", wireType)
16118 }
16119 var msglen int
16120 for shift := uint(0); ; shift += 7 {
16121 if shift >= 64 {
16122 return ErrIntOverflowRpc
16123 }
16124 if iNdEx >= l {
16125 return io.ErrUnexpectedEOF
16126 }
16127 b := dAtA[iNdEx]
16128 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016129 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016130 if b < 0x80 {
16131 break
16132 }
16133 }
16134 if msglen < 0 {
16135 return ErrInvalidLengthRpc
16136 }
16137 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016138 if postIndex < 0 {
16139 return ErrInvalidLengthRpc
16140 }
divyadesai81bb7ba2020-03-11 11:45:23 +000016141 if postIndex > l {
16142 return io.ErrUnexpectedEOF
16143 }
16144 m.Responses = append(m.Responses, &ResponseOp{})
16145 if err := m.Responses[len(m.Responses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
16146 return err
16147 }
16148 iNdEx = postIndex
16149 default:
16150 iNdEx = preIndex
16151 skippy, err := skipRpc(dAtA[iNdEx:])
16152 if err != nil {
16153 return err
16154 }
16155 if skippy < 0 {
16156 return ErrInvalidLengthRpc
16157 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016158 if (iNdEx + skippy) < 0 {
16159 return ErrInvalidLengthRpc
16160 }
divyadesai81bb7ba2020-03-11 11:45:23 +000016161 if (iNdEx + skippy) > l {
16162 return io.ErrUnexpectedEOF
16163 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016164 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000016165 iNdEx += skippy
16166 }
16167 }
16168
16169 if iNdEx > l {
16170 return io.ErrUnexpectedEOF
16171 }
16172 return nil
16173}
16174func (m *CompactionRequest) Unmarshal(dAtA []byte) error {
16175 l := len(dAtA)
16176 iNdEx := 0
16177 for iNdEx < l {
16178 preIndex := iNdEx
16179 var wire uint64
16180 for shift := uint(0); ; shift += 7 {
16181 if shift >= 64 {
16182 return ErrIntOverflowRpc
16183 }
16184 if iNdEx >= l {
16185 return io.ErrUnexpectedEOF
16186 }
16187 b := dAtA[iNdEx]
16188 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016189 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016190 if b < 0x80 {
16191 break
16192 }
16193 }
16194 fieldNum := int32(wire >> 3)
16195 wireType := int(wire & 0x7)
16196 if wireType == 4 {
16197 return fmt.Errorf("proto: CompactionRequest: wiretype end group for non-group")
16198 }
16199 if fieldNum <= 0 {
16200 return fmt.Errorf("proto: CompactionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
16201 }
16202 switch fieldNum {
16203 case 1:
16204 if wireType != 0 {
16205 return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType)
16206 }
16207 m.Revision = 0
16208 for shift := uint(0); ; shift += 7 {
16209 if shift >= 64 {
16210 return ErrIntOverflowRpc
16211 }
16212 if iNdEx >= l {
16213 return io.ErrUnexpectedEOF
16214 }
16215 b := dAtA[iNdEx]
16216 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016217 m.Revision |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016218 if b < 0x80 {
16219 break
16220 }
16221 }
16222 case 2:
16223 if wireType != 0 {
16224 return fmt.Errorf("proto: wrong wireType = %d for field Physical", wireType)
16225 }
16226 var v int
16227 for shift := uint(0); ; shift += 7 {
16228 if shift >= 64 {
16229 return ErrIntOverflowRpc
16230 }
16231 if iNdEx >= l {
16232 return io.ErrUnexpectedEOF
16233 }
16234 b := dAtA[iNdEx]
16235 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016236 v |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016237 if b < 0x80 {
16238 break
16239 }
16240 }
16241 m.Physical = bool(v != 0)
16242 default:
16243 iNdEx = preIndex
16244 skippy, err := skipRpc(dAtA[iNdEx:])
16245 if err != nil {
16246 return err
16247 }
16248 if skippy < 0 {
16249 return ErrInvalidLengthRpc
16250 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016251 if (iNdEx + skippy) < 0 {
16252 return ErrInvalidLengthRpc
16253 }
divyadesai81bb7ba2020-03-11 11:45:23 +000016254 if (iNdEx + skippy) > l {
16255 return io.ErrUnexpectedEOF
16256 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016257 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000016258 iNdEx += skippy
16259 }
16260 }
16261
16262 if iNdEx > l {
16263 return io.ErrUnexpectedEOF
16264 }
16265 return nil
16266}
16267func (m *CompactionResponse) Unmarshal(dAtA []byte) error {
16268 l := len(dAtA)
16269 iNdEx := 0
16270 for iNdEx < l {
16271 preIndex := iNdEx
16272 var wire uint64
16273 for shift := uint(0); ; shift += 7 {
16274 if shift >= 64 {
16275 return ErrIntOverflowRpc
16276 }
16277 if iNdEx >= l {
16278 return io.ErrUnexpectedEOF
16279 }
16280 b := dAtA[iNdEx]
16281 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016282 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016283 if b < 0x80 {
16284 break
16285 }
16286 }
16287 fieldNum := int32(wire >> 3)
16288 wireType := int(wire & 0x7)
16289 if wireType == 4 {
16290 return fmt.Errorf("proto: CompactionResponse: wiretype end group for non-group")
16291 }
16292 if fieldNum <= 0 {
16293 return fmt.Errorf("proto: CompactionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
16294 }
16295 switch fieldNum {
16296 case 1:
16297 if wireType != 2 {
16298 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
16299 }
16300 var msglen int
16301 for shift := uint(0); ; shift += 7 {
16302 if shift >= 64 {
16303 return ErrIntOverflowRpc
16304 }
16305 if iNdEx >= l {
16306 return io.ErrUnexpectedEOF
16307 }
16308 b := dAtA[iNdEx]
16309 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016310 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016311 if b < 0x80 {
16312 break
16313 }
16314 }
16315 if msglen < 0 {
16316 return ErrInvalidLengthRpc
16317 }
16318 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016319 if postIndex < 0 {
16320 return ErrInvalidLengthRpc
16321 }
divyadesai81bb7ba2020-03-11 11:45:23 +000016322 if postIndex > l {
16323 return io.ErrUnexpectedEOF
16324 }
16325 if m.Header == nil {
16326 m.Header = &ResponseHeader{}
16327 }
16328 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
16329 return err
16330 }
16331 iNdEx = postIndex
16332 default:
16333 iNdEx = preIndex
16334 skippy, err := skipRpc(dAtA[iNdEx:])
16335 if err != nil {
16336 return err
16337 }
16338 if skippy < 0 {
16339 return ErrInvalidLengthRpc
16340 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016341 if (iNdEx + skippy) < 0 {
16342 return ErrInvalidLengthRpc
16343 }
divyadesai81bb7ba2020-03-11 11:45:23 +000016344 if (iNdEx + skippy) > l {
16345 return io.ErrUnexpectedEOF
16346 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016347 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000016348 iNdEx += skippy
16349 }
16350 }
16351
16352 if iNdEx > l {
16353 return io.ErrUnexpectedEOF
16354 }
16355 return nil
16356}
16357func (m *HashRequest) Unmarshal(dAtA []byte) error {
16358 l := len(dAtA)
16359 iNdEx := 0
16360 for iNdEx < l {
16361 preIndex := iNdEx
16362 var wire uint64
16363 for shift := uint(0); ; shift += 7 {
16364 if shift >= 64 {
16365 return ErrIntOverflowRpc
16366 }
16367 if iNdEx >= l {
16368 return io.ErrUnexpectedEOF
16369 }
16370 b := dAtA[iNdEx]
16371 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016372 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016373 if b < 0x80 {
16374 break
16375 }
16376 }
16377 fieldNum := int32(wire >> 3)
16378 wireType := int(wire & 0x7)
16379 if wireType == 4 {
16380 return fmt.Errorf("proto: HashRequest: wiretype end group for non-group")
16381 }
16382 if fieldNum <= 0 {
16383 return fmt.Errorf("proto: HashRequest: illegal tag %d (wire type %d)", fieldNum, wire)
16384 }
16385 switch fieldNum {
16386 default:
16387 iNdEx = preIndex
16388 skippy, err := skipRpc(dAtA[iNdEx:])
16389 if err != nil {
16390 return err
16391 }
16392 if skippy < 0 {
16393 return ErrInvalidLengthRpc
16394 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016395 if (iNdEx + skippy) < 0 {
16396 return ErrInvalidLengthRpc
16397 }
divyadesai81bb7ba2020-03-11 11:45:23 +000016398 if (iNdEx + skippy) > l {
16399 return io.ErrUnexpectedEOF
16400 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016401 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000016402 iNdEx += skippy
16403 }
16404 }
16405
16406 if iNdEx > l {
16407 return io.ErrUnexpectedEOF
16408 }
16409 return nil
16410}
16411func (m *HashKVRequest) Unmarshal(dAtA []byte) error {
16412 l := len(dAtA)
16413 iNdEx := 0
16414 for iNdEx < l {
16415 preIndex := iNdEx
16416 var wire uint64
16417 for shift := uint(0); ; shift += 7 {
16418 if shift >= 64 {
16419 return ErrIntOverflowRpc
16420 }
16421 if iNdEx >= l {
16422 return io.ErrUnexpectedEOF
16423 }
16424 b := dAtA[iNdEx]
16425 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016426 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016427 if b < 0x80 {
16428 break
16429 }
16430 }
16431 fieldNum := int32(wire >> 3)
16432 wireType := int(wire & 0x7)
16433 if wireType == 4 {
16434 return fmt.Errorf("proto: HashKVRequest: wiretype end group for non-group")
16435 }
16436 if fieldNum <= 0 {
16437 return fmt.Errorf("proto: HashKVRequest: illegal tag %d (wire type %d)", fieldNum, wire)
16438 }
16439 switch fieldNum {
16440 case 1:
16441 if wireType != 0 {
16442 return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType)
16443 }
16444 m.Revision = 0
16445 for shift := uint(0); ; shift += 7 {
16446 if shift >= 64 {
16447 return ErrIntOverflowRpc
16448 }
16449 if iNdEx >= l {
16450 return io.ErrUnexpectedEOF
16451 }
16452 b := dAtA[iNdEx]
16453 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016454 m.Revision |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016455 if b < 0x80 {
16456 break
16457 }
16458 }
16459 default:
16460 iNdEx = preIndex
16461 skippy, err := skipRpc(dAtA[iNdEx:])
16462 if err != nil {
16463 return err
16464 }
16465 if skippy < 0 {
16466 return ErrInvalidLengthRpc
16467 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016468 if (iNdEx + skippy) < 0 {
16469 return ErrInvalidLengthRpc
16470 }
divyadesai81bb7ba2020-03-11 11:45:23 +000016471 if (iNdEx + skippy) > l {
16472 return io.ErrUnexpectedEOF
16473 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016474 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000016475 iNdEx += skippy
16476 }
16477 }
16478
16479 if iNdEx > l {
16480 return io.ErrUnexpectedEOF
16481 }
16482 return nil
16483}
16484func (m *HashKVResponse) Unmarshal(dAtA []byte) error {
16485 l := len(dAtA)
16486 iNdEx := 0
16487 for iNdEx < l {
16488 preIndex := iNdEx
16489 var wire uint64
16490 for shift := uint(0); ; shift += 7 {
16491 if shift >= 64 {
16492 return ErrIntOverflowRpc
16493 }
16494 if iNdEx >= l {
16495 return io.ErrUnexpectedEOF
16496 }
16497 b := dAtA[iNdEx]
16498 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016499 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016500 if b < 0x80 {
16501 break
16502 }
16503 }
16504 fieldNum := int32(wire >> 3)
16505 wireType := int(wire & 0x7)
16506 if wireType == 4 {
16507 return fmt.Errorf("proto: HashKVResponse: wiretype end group for non-group")
16508 }
16509 if fieldNum <= 0 {
16510 return fmt.Errorf("proto: HashKVResponse: illegal tag %d (wire type %d)", fieldNum, wire)
16511 }
16512 switch fieldNum {
16513 case 1:
16514 if wireType != 2 {
16515 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
16516 }
16517 var msglen int
16518 for shift := uint(0); ; shift += 7 {
16519 if shift >= 64 {
16520 return ErrIntOverflowRpc
16521 }
16522 if iNdEx >= l {
16523 return io.ErrUnexpectedEOF
16524 }
16525 b := dAtA[iNdEx]
16526 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016527 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016528 if b < 0x80 {
16529 break
16530 }
16531 }
16532 if msglen < 0 {
16533 return ErrInvalidLengthRpc
16534 }
16535 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016536 if postIndex < 0 {
16537 return ErrInvalidLengthRpc
16538 }
divyadesai81bb7ba2020-03-11 11:45:23 +000016539 if postIndex > l {
16540 return io.ErrUnexpectedEOF
16541 }
16542 if m.Header == nil {
16543 m.Header = &ResponseHeader{}
16544 }
16545 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
16546 return err
16547 }
16548 iNdEx = postIndex
16549 case 2:
16550 if wireType != 0 {
16551 return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
16552 }
16553 m.Hash = 0
16554 for shift := uint(0); ; shift += 7 {
16555 if shift >= 64 {
16556 return ErrIntOverflowRpc
16557 }
16558 if iNdEx >= l {
16559 return io.ErrUnexpectedEOF
16560 }
16561 b := dAtA[iNdEx]
16562 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016563 m.Hash |= uint32(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016564 if b < 0x80 {
16565 break
16566 }
16567 }
16568 case 3:
16569 if wireType != 0 {
16570 return fmt.Errorf("proto: wrong wireType = %d for field CompactRevision", wireType)
16571 }
16572 m.CompactRevision = 0
16573 for shift := uint(0); ; shift += 7 {
16574 if shift >= 64 {
16575 return ErrIntOverflowRpc
16576 }
16577 if iNdEx >= l {
16578 return io.ErrUnexpectedEOF
16579 }
16580 b := dAtA[iNdEx]
16581 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016582 m.CompactRevision |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016583 if b < 0x80 {
16584 break
16585 }
16586 }
16587 default:
16588 iNdEx = preIndex
16589 skippy, err := skipRpc(dAtA[iNdEx:])
16590 if err != nil {
16591 return err
16592 }
16593 if skippy < 0 {
16594 return ErrInvalidLengthRpc
16595 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016596 if (iNdEx + skippy) < 0 {
16597 return ErrInvalidLengthRpc
16598 }
divyadesai81bb7ba2020-03-11 11:45:23 +000016599 if (iNdEx + skippy) > l {
16600 return io.ErrUnexpectedEOF
16601 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016602 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000016603 iNdEx += skippy
16604 }
16605 }
16606
16607 if iNdEx > l {
16608 return io.ErrUnexpectedEOF
16609 }
16610 return nil
16611}
16612func (m *HashResponse) Unmarshal(dAtA []byte) error {
16613 l := len(dAtA)
16614 iNdEx := 0
16615 for iNdEx < l {
16616 preIndex := iNdEx
16617 var wire uint64
16618 for shift := uint(0); ; shift += 7 {
16619 if shift >= 64 {
16620 return ErrIntOverflowRpc
16621 }
16622 if iNdEx >= l {
16623 return io.ErrUnexpectedEOF
16624 }
16625 b := dAtA[iNdEx]
16626 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016627 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016628 if b < 0x80 {
16629 break
16630 }
16631 }
16632 fieldNum := int32(wire >> 3)
16633 wireType := int(wire & 0x7)
16634 if wireType == 4 {
16635 return fmt.Errorf("proto: HashResponse: wiretype end group for non-group")
16636 }
16637 if fieldNum <= 0 {
16638 return fmt.Errorf("proto: HashResponse: illegal tag %d (wire type %d)", fieldNum, wire)
16639 }
16640 switch fieldNum {
16641 case 1:
16642 if wireType != 2 {
16643 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
16644 }
16645 var msglen int
16646 for shift := uint(0); ; shift += 7 {
16647 if shift >= 64 {
16648 return ErrIntOverflowRpc
16649 }
16650 if iNdEx >= l {
16651 return io.ErrUnexpectedEOF
16652 }
16653 b := dAtA[iNdEx]
16654 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016655 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016656 if b < 0x80 {
16657 break
16658 }
16659 }
16660 if msglen < 0 {
16661 return ErrInvalidLengthRpc
16662 }
16663 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016664 if postIndex < 0 {
16665 return ErrInvalidLengthRpc
16666 }
divyadesai81bb7ba2020-03-11 11:45:23 +000016667 if postIndex > l {
16668 return io.ErrUnexpectedEOF
16669 }
16670 if m.Header == nil {
16671 m.Header = &ResponseHeader{}
16672 }
16673 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
16674 return err
16675 }
16676 iNdEx = postIndex
16677 case 2:
16678 if wireType != 0 {
16679 return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
16680 }
16681 m.Hash = 0
16682 for shift := uint(0); ; shift += 7 {
16683 if shift >= 64 {
16684 return ErrIntOverflowRpc
16685 }
16686 if iNdEx >= l {
16687 return io.ErrUnexpectedEOF
16688 }
16689 b := dAtA[iNdEx]
16690 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016691 m.Hash |= uint32(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016692 if b < 0x80 {
16693 break
16694 }
16695 }
16696 default:
16697 iNdEx = preIndex
16698 skippy, err := skipRpc(dAtA[iNdEx:])
16699 if err != nil {
16700 return err
16701 }
16702 if skippy < 0 {
16703 return ErrInvalidLengthRpc
16704 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016705 if (iNdEx + skippy) < 0 {
16706 return ErrInvalidLengthRpc
16707 }
divyadesai81bb7ba2020-03-11 11:45:23 +000016708 if (iNdEx + skippy) > l {
16709 return io.ErrUnexpectedEOF
16710 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016711 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000016712 iNdEx += skippy
16713 }
16714 }
16715
16716 if iNdEx > l {
16717 return io.ErrUnexpectedEOF
16718 }
16719 return nil
16720}
16721func (m *SnapshotRequest) Unmarshal(dAtA []byte) error {
16722 l := len(dAtA)
16723 iNdEx := 0
16724 for iNdEx < l {
16725 preIndex := iNdEx
16726 var wire uint64
16727 for shift := uint(0); ; shift += 7 {
16728 if shift >= 64 {
16729 return ErrIntOverflowRpc
16730 }
16731 if iNdEx >= l {
16732 return io.ErrUnexpectedEOF
16733 }
16734 b := dAtA[iNdEx]
16735 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016736 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016737 if b < 0x80 {
16738 break
16739 }
16740 }
16741 fieldNum := int32(wire >> 3)
16742 wireType := int(wire & 0x7)
16743 if wireType == 4 {
16744 return fmt.Errorf("proto: SnapshotRequest: wiretype end group for non-group")
16745 }
16746 if fieldNum <= 0 {
16747 return fmt.Errorf("proto: SnapshotRequest: illegal tag %d (wire type %d)", fieldNum, wire)
16748 }
16749 switch fieldNum {
16750 default:
16751 iNdEx = preIndex
16752 skippy, err := skipRpc(dAtA[iNdEx:])
16753 if err != nil {
16754 return err
16755 }
16756 if skippy < 0 {
16757 return ErrInvalidLengthRpc
16758 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016759 if (iNdEx + skippy) < 0 {
16760 return ErrInvalidLengthRpc
16761 }
divyadesai81bb7ba2020-03-11 11:45:23 +000016762 if (iNdEx + skippy) > l {
16763 return io.ErrUnexpectedEOF
16764 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016765 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000016766 iNdEx += skippy
16767 }
16768 }
16769
16770 if iNdEx > l {
16771 return io.ErrUnexpectedEOF
16772 }
16773 return nil
16774}
16775func (m *SnapshotResponse) Unmarshal(dAtA []byte) error {
16776 l := len(dAtA)
16777 iNdEx := 0
16778 for iNdEx < l {
16779 preIndex := iNdEx
16780 var wire uint64
16781 for shift := uint(0); ; shift += 7 {
16782 if shift >= 64 {
16783 return ErrIntOverflowRpc
16784 }
16785 if iNdEx >= l {
16786 return io.ErrUnexpectedEOF
16787 }
16788 b := dAtA[iNdEx]
16789 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016790 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016791 if b < 0x80 {
16792 break
16793 }
16794 }
16795 fieldNum := int32(wire >> 3)
16796 wireType := int(wire & 0x7)
16797 if wireType == 4 {
16798 return fmt.Errorf("proto: SnapshotResponse: wiretype end group for non-group")
16799 }
16800 if fieldNum <= 0 {
16801 return fmt.Errorf("proto: SnapshotResponse: illegal tag %d (wire type %d)", fieldNum, wire)
16802 }
16803 switch fieldNum {
16804 case 1:
16805 if wireType != 2 {
16806 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
16807 }
16808 var msglen int
16809 for shift := uint(0); ; shift += 7 {
16810 if shift >= 64 {
16811 return ErrIntOverflowRpc
16812 }
16813 if iNdEx >= l {
16814 return io.ErrUnexpectedEOF
16815 }
16816 b := dAtA[iNdEx]
16817 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016818 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016819 if b < 0x80 {
16820 break
16821 }
16822 }
16823 if msglen < 0 {
16824 return ErrInvalidLengthRpc
16825 }
16826 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016827 if postIndex < 0 {
16828 return ErrInvalidLengthRpc
16829 }
divyadesai81bb7ba2020-03-11 11:45:23 +000016830 if postIndex > l {
16831 return io.ErrUnexpectedEOF
16832 }
16833 if m.Header == nil {
16834 m.Header = &ResponseHeader{}
16835 }
16836 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
16837 return err
16838 }
16839 iNdEx = postIndex
16840 case 2:
16841 if wireType != 0 {
16842 return fmt.Errorf("proto: wrong wireType = %d for field RemainingBytes", wireType)
16843 }
16844 m.RemainingBytes = 0
16845 for shift := uint(0); ; shift += 7 {
16846 if shift >= 64 {
16847 return ErrIntOverflowRpc
16848 }
16849 if iNdEx >= l {
16850 return io.ErrUnexpectedEOF
16851 }
16852 b := dAtA[iNdEx]
16853 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016854 m.RemainingBytes |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016855 if b < 0x80 {
16856 break
16857 }
16858 }
16859 case 3:
16860 if wireType != 2 {
16861 return fmt.Errorf("proto: wrong wireType = %d for field Blob", wireType)
16862 }
16863 var byteLen int
16864 for shift := uint(0); ; shift += 7 {
16865 if shift >= 64 {
16866 return ErrIntOverflowRpc
16867 }
16868 if iNdEx >= l {
16869 return io.ErrUnexpectedEOF
16870 }
16871 b := dAtA[iNdEx]
16872 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016873 byteLen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016874 if b < 0x80 {
16875 break
16876 }
16877 }
16878 if byteLen < 0 {
16879 return ErrInvalidLengthRpc
16880 }
16881 postIndex := iNdEx + byteLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016882 if postIndex < 0 {
16883 return ErrInvalidLengthRpc
16884 }
divyadesai81bb7ba2020-03-11 11:45:23 +000016885 if postIndex > l {
16886 return io.ErrUnexpectedEOF
16887 }
16888 m.Blob = append(m.Blob[:0], dAtA[iNdEx:postIndex]...)
16889 if m.Blob == nil {
16890 m.Blob = []byte{}
16891 }
16892 iNdEx = postIndex
16893 default:
16894 iNdEx = preIndex
16895 skippy, err := skipRpc(dAtA[iNdEx:])
16896 if err != nil {
16897 return err
16898 }
16899 if skippy < 0 {
16900 return ErrInvalidLengthRpc
16901 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016902 if (iNdEx + skippy) < 0 {
16903 return ErrInvalidLengthRpc
16904 }
divyadesai81bb7ba2020-03-11 11:45:23 +000016905 if (iNdEx + skippy) > l {
16906 return io.ErrUnexpectedEOF
16907 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016908 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000016909 iNdEx += skippy
16910 }
16911 }
16912
16913 if iNdEx > l {
16914 return io.ErrUnexpectedEOF
16915 }
16916 return nil
16917}
16918func (m *WatchRequest) Unmarshal(dAtA []byte) error {
16919 l := len(dAtA)
16920 iNdEx := 0
16921 for iNdEx < l {
16922 preIndex := iNdEx
16923 var wire uint64
16924 for shift := uint(0); ; shift += 7 {
16925 if shift >= 64 {
16926 return ErrIntOverflowRpc
16927 }
16928 if iNdEx >= l {
16929 return io.ErrUnexpectedEOF
16930 }
16931 b := dAtA[iNdEx]
16932 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016933 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016934 if b < 0x80 {
16935 break
16936 }
16937 }
16938 fieldNum := int32(wire >> 3)
16939 wireType := int(wire & 0x7)
16940 if wireType == 4 {
16941 return fmt.Errorf("proto: WatchRequest: wiretype end group for non-group")
16942 }
16943 if fieldNum <= 0 {
16944 return fmt.Errorf("proto: WatchRequest: illegal tag %d (wire type %d)", fieldNum, wire)
16945 }
16946 switch fieldNum {
16947 case 1:
16948 if wireType != 2 {
16949 return fmt.Errorf("proto: wrong wireType = %d for field CreateRequest", wireType)
16950 }
16951 var msglen int
16952 for shift := uint(0); ; shift += 7 {
16953 if shift >= 64 {
16954 return ErrIntOverflowRpc
16955 }
16956 if iNdEx >= l {
16957 return io.ErrUnexpectedEOF
16958 }
16959 b := dAtA[iNdEx]
16960 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016961 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016962 if b < 0x80 {
16963 break
16964 }
16965 }
16966 if msglen < 0 {
16967 return ErrInvalidLengthRpc
16968 }
16969 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016970 if postIndex < 0 {
16971 return ErrInvalidLengthRpc
16972 }
divyadesai81bb7ba2020-03-11 11:45:23 +000016973 if postIndex > l {
16974 return io.ErrUnexpectedEOF
16975 }
16976 v := &WatchCreateRequest{}
16977 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
16978 return err
16979 }
16980 m.RequestUnion = &WatchRequest_CreateRequest{v}
16981 iNdEx = postIndex
16982 case 2:
16983 if wireType != 2 {
16984 return fmt.Errorf("proto: wrong wireType = %d for field CancelRequest", wireType)
16985 }
16986 var msglen int
16987 for shift := uint(0); ; shift += 7 {
16988 if shift >= 64 {
16989 return ErrIntOverflowRpc
16990 }
16991 if iNdEx >= l {
16992 return io.ErrUnexpectedEOF
16993 }
16994 b := dAtA[iNdEx]
16995 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000016996 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000016997 if b < 0x80 {
16998 break
16999 }
17000 }
17001 if msglen < 0 {
17002 return ErrInvalidLengthRpc
17003 }
17004 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017005 if postIndex < 0 {
17006 return ErrInvalidLengthRpc
17007 }
divyadesai81bb7ba2020-03-11 11:45:23 +000017008 if postIndex > l {
17009 return io.ErrUnexpectedEOF
17010 }
17011 v := &WatchCancelRequest{}
17012 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
17013 return err
17014 }
17015 m.RequestUnion = &WatchRequest_CancelRequest{v}
17016 iNdEx = postIndex
17017 case 3:
17018 if wireType != 2 {
17019 return fmt.Errorf("proto: wrong wireType = %d for field ProgressRequest", wireType)
17020 }
17021 var msglen int
17022 for shift := uint(0); ; shift += 7 {
17023 if shift >= 64 {
17024 return ErrIntOverflowRpc
17025 }
17026 if iNdEx >= l {
17027 return io.ErrUnexpectedEOF
17028 }
17029 b := dAtA[iNdEx]
17030 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017031 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017032 if b < 0x80 {
17033 break
17034 }
17035 }
17036 if msglen < 0 {
17037 return ErrInvalidLengthRpc
17038 }
17039 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017040 if postIndex < 0 {
17041 return ErrInvalidLengthRpc
17042 }
divyadesai81bb7ba2020-03-11 11:45:23 +000017043 if postIndex > l {
17044 return io.ErrUnexpectedEOF
17045 }
17046 v := &WatchProgressRequest{}
17047 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
17048 return err
17049 }
17050 m.RequestUnion = &WatchRequest_ProgressRequest{v}
17051 iNdEx = postIndex
17052 default:
17053 iNdEx = preIndex
17054 skippy, err := skipRpc(dAtA[iNdEx:])
17055 if err != nil {
17056 return err
17057 }
17058 if skippy < 0 {
17059 return ErrInvalidLengthRpc
17060 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017061 if (iNdEx + skippy) < 0 {
17062 return ErrInvalidLengthRpc
17063 }
divyadesai81bb7ba2020-03-11 11:45:23 +000017064 if (iNdEx + skippy) > l {
17065 return io.ErrUnexpectedEOF
17066 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017067 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000017068 iNdEx += skippy
17069 }
17070 }
17071
17072 if iNdEx > l {
17073 return io.ErrUnexpectedEOF
17074 }
17075 return nil
17076}
17077func (m *WatchCreateRequest) Unmarshal(dAtA []byte) error {
17078 l := len(dAtA)
17079 iNdEx := 0
17080 for iNdEx < l {
17081 preIndex := iNdEx
17082 var wire uint64
17083 for shift := uint(0); ; shift += 7 {
17084 if shift >= 64 {
17085 return ErrIntOverflowRpc
17086 }
17087 if iNdEx >= l {
17088 return io.ErrUnexpectedEOF
17089 }
17090 b := dAtA[iNdEx]
17091 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017092 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017093 if b < 0x80 {
17094 break
17095 }
17096 }
17097 fieldNum := int32(wire >> 3)
17098 wireType := int(wire & 0x7)
17099 if wireType == 4 {
17100 return fmt.Errorf("proto: WatchCreateRequest: wiretype end group for non-group")
17101 }
17102 if fieldNum <= 0 {
17103 return fmt.Errorf("proto: WatchCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
17104 }
17105 switch fieldNum {
17106 case 1:
17107 if wireType != 2 {
17108 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
17109 }
17110 var byteLen int
17111 for shift := uint(0); ; shift += 7 {
17112 if shift >= 64 {
17113 return ErrIntOverflowRpc
17114 }
17115 if iNdEx >= l {
17116 return io.ErrUnexpectedEOF
17117 }
17118 b := dAtA[iNdEx]
17119 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017120 byteLen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017121 if b < 0x80 {
17122 break
17123 }
17124 }
17125 if byteLen < 0 {
17126 return ErrInvalidLengthRpc
17127 }
17128 postIndex := iNdEx + byteLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017129 if postIndex < 0 {
17130 return ErrInvalidLengthRpc
17131 }
divyadesai81bb7ba2020-03-11 11:45:23 +000017132 if postIndex > l {
17133 return io.ErrUnexpectedEOF
17134 }
17135 m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
17136 if m.Key == nil {
17137 m.Key = []byte{}
17138 }
17139 iNdEx = postIndex
17140 case 2:
17141 if wireType != 2 {
17142 return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType)
17143 }
17144 var byteLen int
17145 for shift := uint(0); ; shift += 7 {
17146 if shift >= 64 {
17147 return ErrIntOverflowRpc
17148 }
17149 if iNdEx >= l {
17150 return io.ErrUnexpectedEOF
17151 }
17152 b := dAtA[iNdEx]
17153 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017154 byteLen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017155 if b < 0x80 {
17156 break
17157 }
17158 }
17159 if byteLen < 0 {
17160 return ErrInvalidLengthRpc
17161 }
17162 postIndex := iNdEx + byteLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017163 if postIndex < 0 {
17164 return ErrInvalidLengthRpc
17165 }
divyadesai81bb7ba2020-03-11 11:45:23 +000017166 if postIndex > l {
17167 return io.ErrUnexpectedEOF
17168 }
17169 m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...)
17170 if m.RangeEnd == nil {
17171 m.RangeEnd = []byte{}
17172 }
17173 iNdEx = postIndex
17174 case 3:
17175 if wireType != 0 {
17176 return fmt.Errorf("proto: wrong wireType = %d for field StartRevision", wireType)
17177 }
17178 m.StartRevision = 0
17179 for shift := uint(0); ; shift += 7 {
17180 if shift >= 64 {
17181 return ErrIntOverflowRpc
17182 }
17183 if iNdEx >= l {
17184 return io.ErrUnexpectedEOF
17185 }
17186 b := dAtA[iNdEx]
17187 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017188 m.StartRevision |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017189 if b < 0x80 {
17190 break
17191 }
17192 }
17193 case 4:
17194 if wireType != 0 {
17195 return fmt.Errorf("proto: wrong wireType = %d for field ProgressNotify", wireType)
17196 }
17197 var v int
17198 for shift := uint(0); ; shift += 7 {
17199 if shift >= 64 {
17200 return ErrIntOverflowRpc
17201 }
17202 if iNdEx >= l {
17203 return io.ErrUnexpectedEOF
17204 }
17205 b := dAtA[iNdEx]
17206 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017207 v |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017208 if b < 0x80 {
17209 break
17210 }
17211 }
17212 m.ProgressNotify = bool(v != 0)
17213 case 5:
17214 if wireType == 0 {
17215 var v WatchCreateRequest_FilterType
17216 for shift := uint(0); ; shift += 7 {
17217 if shift >= 64 {
17218 return ErrIntOverflowRpc
17219 }
17220 if iNdEx >= l {
17221 return io.ErrUnexpectedEOF
17222 }
17223 b := dAtA[iNdEx]
17224 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017225 v |= WatchCreateRequest_FilterType(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017226 if b < 0x80 {
17227 break
17228 }
17229 }
17230 m.Filters = append(m.Filters, v)
17231 } else if wireType == 2 {
17232 var packedLen int
17233 for shift := uint(0); ; shift += 7 {
17234 if shift >= 64 {
17235 return ErrIntOverflowRpc
17236 }
17237 if iNdEx >= l {
17238 return io.ErrUnexpectedEOF
17239 }
17240 b := dAtA[iNdEx]
17241 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017242 packedLen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017243 if b < 0x80 {
17244 break
17245 }
17246 }
17247 if packedLen < 0 {
17248 return ErrInvalidLengthRpc
17249 }
17250 postIndex := iNdEx + packedLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017251 if postIndex < 0 {
17252 return ErrInvalidLengthRpc
17253 }
divyadesai81bb7ba2020-03-11 11:45:23 +000017254 if postIndex > l {
17255 return io.ErrUnexpectedEOF
17256 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017257 var elementCount int
17258 if elementCount != 0 && len(m.Filters) == 0 {
17259 m.Filters = make([]WatchCreateRequest_FilterType, 0, elementCount)
17260 }
divyadesai81bb7ba2020-03-11 11:45:23 +000017261 for iNdEx < postIndex {
17262 var v WatchCreateRequest_FilterType
17263 for shift := uint(0); ; shift += 7 {
17264 if shift >= 64 {
17265 return ErrIntOverflowRpc
17266 }
17267 if iNdEx >= l {
17268 return io.ErrUnexpectedEOF
17269 }
17270 b := dAtA[iNdEx]
17271 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017272 v |= WatchCreateRequest_FilterType(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017273 if b < 0x80 {
17274 break
17275 }
17276 }
17277 m.Filters = append(m.Filters, v)
17278 }
17279 } else {
17280 return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType)
17281 }
17282 case 6:
17283 if wireType != 0 {
17284 return fmt.Errorf("proto: wrong wireType = %d for field PrevKv", wireType)
17285 }
17286 var v int
17287 for shift := uint(0); ; shift += 7 {
17288 if shift >= 64 {
17289 return ErrIntOverflowRpc
17290 }
17291 if iNdEx >= l {
17292 return io.ErrUnexpectedEOF
17293 }
17294 b := dAtA[iNdEx]
17295 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017296 v |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017297 if b < 0x80 {
17298 break
17299 }
17300 }
17301 m.PrevKv = bool(v != 0)
17302 case 7:
17303 if wireType != 0 {
17304 return fmt.Errorf("proto: wrong wireType = %d for field WatchId", wireType)
17305 }
17306 m.WatchId = 0
17307 for shift := uint(0); ; shift += 7 {
17308 if shift >= 64 {
17309 return ErrIntOverflowRpc
17310 }
17311 if iNdEx >= l {
17312 return io.ErrUnexpectedEOF
17313 }
17314 b := dAtA[iNdEx]
17315 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017316 m.WatchId |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017317 if b < 0x80 {
17318 break
17319 }
17320 }
17321 case 8:
17322 if wireType != 0 {
17323 return fmt.Errorf("proto: wrong wireType = %d for field Fragment", wireType)
17324 }
17325 var v int
17326 for shift := uint(0); ; shift += 7 {
17327 if shift >= 64 {
17328 return ErrIntOverflowRpc
17329 }
17330 if iNdEx >= l {
17331 return io.ErrUnexpectedEOF
17332 }
17333 b := dAtA[iNdEx]
17334 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017335 v |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017336 if b < 0x80 {
17337 break
17338 }
17339 }
17340 m.Fragment = bool(v != 0)
17341 default:
17342 iNdEx = preIndex
17343 skippy, err := skipRpc(dAtA[iNdEx:])
17344 if err != nil {
17345 return err
17346 }
17347 if skippy < 0 {
17348 return ErrInvalidLengthRpc
17349 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017350 if (iNdEx + skippy) < 0 {
17351 return ErrInvalidLengthRpc
17352 }
divyadesai81bb7ba2020-03-11 11:45:23 +000017353 if (iNdEx + skippy) > l {
17354 return io.ErrUnexpectedEOF
17355 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017356 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000017357 iNdEx += skippy
17358 }
17359 }
17360
17361 if iNdEx > l {
17362 return io.ErrUnexpectedEOF
17363 }
17364 return nil
17365}
17366func (m *WatchCancelRequest) Unmarshal(dAtA []byte) error {
17367 l := len(dAtA)
17368 iNdEx := 0
17369 for iNdEx < l {
17370 preIndex := iNdEx
17371 var wire uint64
17372 for shift := uint(0); ; shift += 7 {
17373 if shift >= 64 {
17374 return ErrIntOverflowRpc
17375 }
17376 if iNdEx >= l {
17377 return io.ErrUnexpectedEOF
17378 }
17379 b := dAtA[iNdEx]
17380 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017381 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017382 if b < 0x80 {
17383 break
17384 }
17385 }
17386 fieldNum := int32(wire >> 3)
17387 wireType := int(wire & 0x7)
17388 if wireType == 4 {
17389 return fmt.Errorf("proto: WatchCancelRequest: wiretype end group for non-group")
17390 }
17391 if fieldNum <= 0 {
17392 return fmt.Errorf("proto: WatchCancelRequest: illegal tag %d (wire type %d)", fieldNum, wire)
17393 }
17394 switch fieldNum {
17395 case 1:
17396 if wireType != 0 {
17397 return fmt.Errorf("proto: wrong wireType = %d for field WatchId", wireType)
17398 }
17399 m.WatchId = 0
17400 for shift := uint(0); ; shift += 7 {
17401 if shift >= 64 {
17402 return ErrIntOverflowRpc
17403 }
17404 if iNdEx >= l {
17405 return io.ErrUnexpectedEOF
17406 }
17407 b := dAtA[iNdEx]
17408 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017409 m.WatchId |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017410 if b < 0x80 {
17411 break
17412 }
17413 }
17414 default:
17415 iNdEx = preIndex
17416 skippy, err := skipRpc(dAtA[iNdEx:])
17417 if err != nil {
17418 return err
17419 }
17420 if skippy < 0 {
17421 return ErrInvalidLengthRpc
17422 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017423 if (iNdEx + skippy) < 0 {
17424 return ErrInvalidLengthRpc
17425 }
divyadesai81bb7ba2020-03-11 11:45:23 +000017426 if (iNdEx + skippy) > l {
17427 return io.ErrUnexpectedEOF
17428 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017429 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000017430 iNdEx += skippy
17431 }
17432 }
17433
17434 if iNdEx > l {
17435 return io.ErrUnexpectedEOF
17436 }
17437 return nil
17438}
17439func (m *WatchProgressRequest) Unmarshal(dAtA []byte) error {
17440 l := len(dAtA)
17441 iNdEx := 0
17442 for iNdEx < l {
17443 preIndex := iNdEx
17444 var wire uint64
17445 for shift := uint(0); ; shift += 7 {
17446 if shift >= 64 {
17447 return ErrIntOverflowRpc
17448 }
17449 if iNdEx >= l {
17450 return io.ErrUnexpectedEOF
17451 }
17452 b := dAtA[iNdEx]
17453 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017454 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017455 if b < 0x80 {
17456 break
17457 }
17458 }
17459 fieldNum := int32(wire >> 3)
17460 wireType := int(wire & 0x7)
17461 if wireType == 4 {
17462 return fmt.Errorf("proto: WatchProgressRequest: wiretype end group for non-group")
17463 }
17464 if fieldNum <= 0 {
17465 return fmt.Errorf("proto: WatchProgressRequest: illegal tag %d (wire type %d)", fieldNum, wire)
17466 }
17467 switch fieldNum {
17468 default:
17469 iNdEx = preIndex
17470 skippy, err := skipRpc(dAtA[iNdEx:])
17471 if err != nil {
17472 return err
17473 }
17474 if skippy < 0 {
17475 return ErrInvalidLengthRpc
17476 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017477 if (iNdEx + skippy) < 0 {
17478 return ErrInvalidLengthRpc
17479 }
divyadesai81bb7ba2020-03-11 11:45:23 +000017480 if (iNdEx + skippy) > l {
17481 return io.ErrUnexpectedEOF
17482 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017483 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000017484 iNdEx += skippy
17485 }
17486 }
17487
17488 if iNdEx > l {
17489 return io.ErrUnexpectedEOF
17490 }
17491 return nil
17492}
17493func (m *WatchResponse) Unmarshal(dAtA []byte) error {
17494 l := len(dAtA)
17495 iNdEx := 0
17496 for iNdEx < l {
17497 preIndex := iNdEx
17498 var wire uint64
17499 for shift := uint(0); ; shift += 7 {
17500 if shift >= 64 {
17501 return ErrIntOverflowRpc
17502 }
17503 if iNdEx >= l {
17504 return io.ErrUnexpectedEOF
17505 }
17506 b := dAtA[iNdEx]
17507 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017508 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017509 if b < 0x80 {
17510 break
17511 }
17512 }
17513 fieldNum := int32(wire >> 3)
17514 wireType := int(wire & 0x7)
17515 if wireType == 4 {
17516 return fmt.Errorf("proto: WatchResponse: wiretype end group for non-group")
17517 }
17518 if fieldNum <= 0 {
17519 return fmt.Errorf("proto: WatchResponse: illegal tag %d (wire type %d)", fieldNum, wire)
17520 }
17521 switch fieldNum {
17522 case 1:
17523 if wireType != 2 {
17524 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
17525 }
17526 var msglen int
17527 for shift := uint(0); ; shift += 7 {
17528 if shift >= 64 {
17529 return ErrIntOverflowRpc
17530 }
17531 if iNdEx >= l {
17532 return io.ErrUnexpectedEOF
17533 }
17534 b := dAtA[iNdEx]
17535 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017536 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017537 if b < 0x80 {
17538 break
17539 }
17540 }
17541 if msglen < 0 {
17542 return ErrInvalidLengthRpc
17543 }
17544 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017545 if postIndex < 0 {
17546 return ErrInvalidLengthRpc
17547 }
divyadesai81bb7ba2020-03-11 11:45:23 +000017548 if postIndex > l {
17549 return io.ErrUnexpectedEOF
17550 }
17551 if m.Header == nil {
17552 m.Header = &ResponseHeader{}
17553 }
17554 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
17555 return err
17556 }
17557 iNdEx = postIndex
17558 case 2:
17559 if wireType != 0 {
17560 return fmt.Errorf("proto: wrong wireType = %d for field WatchId", wireType)
17561 }
17562 m.WatchId = 0
17563 for shift := uint(0); ; shift += 7 {
17564 if shift >= 64 {
17565 return ErrIntOverflowRpc
17566 }
17567 if iNdEx >= l {
17568 return io.ErrUnexpectedEOF
17569 }
17570 b := dAtA[iNdEx]
17571 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017572 m.WatchId |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017573 if b < 0x80 {
17574 break
17575 }
17576 }
17577 case 3:
17578 if wireType != 0 {
17579 return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
17580 }
17581 var v int
17582 for shift := uint(0); ; shift += 7 {
17583 if shift >= 64 {
17584 return ErrIntOverflowRpc
17585 }
17586 if iNdEx >= l {
17587 return io.ErrUnexpectedEOF
17588 }
17589 b := dAtA[iNdEx]
17590 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017591 v |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017592 if b < 0x80 {
17593 break
17594 }
17595 }
17596 m.Created = bool(v != 0)
17597 case 4:
17598 if wireType != 0 {
17599 return fmt.Errorf("proto: wrong wireType = %d for field Canceled", wireType)
17600 }
17601 var v int
17602 for shift := uint(0); ; shift += 7 {
17603 if shift >= 64 {
17604 return ErrIntOverflowRpc
17605 }
17606 if iNdEx >= l {
17607 return io.ErrUnexpectedEOF
17608 }
17609 b := dAtA[iNdEx]
17610 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017611 v |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017612 if b < 0x80 {
17613 break
17614 }
17615 }
17616 m.Canceled = bool(v != 0)
17617 case 5:
17618 if wireType != 0 {
17619 return fmt.Errorf("proto: wrong wireType = %d for field CompactRevision", wireType)
17620 }
17621 m.CompactRevision = 0
17622 for shift := uint(0); ; shift += 7 {
17623 if shift >= 64 {
17624 return ErrIntOverflowRpc
17625 }
17626 if iNdEx >= l {
17627 return io.ErrUnexpectedEOF
17628 }
17629 b := dAtA[iNdEx]
17630 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017631 m.CompactRevision |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017632 if b < 0x80 {
17633 break
17634 }
17635 }
17636 case 6:
17637 if wireType != 2 {
17638 return fmt.Errorf("proto: wrong wireType = %d for field CancelReason", wireType)
17639 }
17640 var stringLen uint64
17641 for shift := uint(0); ; shift += 7 {
17642 if shift >= 64 {
17643 return ErrIntOverflowRpc
17644 }
17645 if iNdEx >= l {
17646 return io.ErrUnexpectedEOF
17647 }
17648 b := dAtA[iNdEx]
17649 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017650 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017651 if b < 0x80 {
17652 break
17653 }
17654 }
17655 intStringLen := int(stringLen)
17656 if intStringLen < 0 {
17657 return ErrInvalidLengthRpc
17658 }
17659 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017660 if postIndex < 0 {
17661 return ErrInvalidLengthRpc
17662 }
divyadesai81bb7ba2020-03-11 11:45:23 +000017663 if postIndex > l {
17664 return io.ErrUnexpectedEOF
17665 }
17666 m.CancelReason = string(dAtA[iNdEx:postIndex])
17667 iNdEx = postIndex
17668 case 7:
17669 if wireType != 0 {
17670 return fmt.Errorf("proto: wrong wireType = %d for field Fragment", wireType)
17671 }
17672 var v int
17673 for shift := uint(0); ; shift += 7 {
17674 if shift >= 64 {
17675 return ErrIntOverflowRpc
17676 }
17677 if iNdEx >= l {
17678 return io.ErrUnexpectedEOF
17679 }
17680 b := dAtA[iNdEx]
17681 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017682 v |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017683 if b < 0x80 {
17684 break
17685 }
17686 }
17687 m.Fragment = bool(v != 0)
17688 case 11:
17689 if wireType != 2 {
17690 return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType)
17691 }
17692 var msglen int
17693 for shift := uint(0); ; shift += 7 {
17694 if shift >= 64 {
17695 return ErrIntOverflowRpc
17696 }
17697 if iNdEx >= l {
17698 return io.ErrUnexpectedEOF
17699 }
17700 b := dAtA[iNdEx]
17701 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017702 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017703 if b < 0x80 {
17704 break
17705 }
17706 }
17707 if msglen < 0 {
17708 return ErrInvalidLengthRpc
17709 }
17710 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017711 if postIndex < 0 {
17712 return ErrInvalidLengthRpc
17713 }
divyadesai81bb7ba2020-03-11 11:45:23 +000017714 if postIndex > l {
17715 return io.ErrUnexpectedEOF
17716 }
17717 m.Events = append(m.Events, &mvccpb.Event{})
17718 if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
17719 return err
17720 }
17721 iNdEx = postIndex
17722 default:
17723 iNdEx = preIndex
17724 skippy, err := skipRpc(dAtA[iNdEx:])
17725 if err != nil {
17726 return err
17727 }
17728 if skippy < 0 {
17729 return ErrInvalidLengthRpc
17730 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017731 if (iNdEx + skippy) < 0 {
17732 return ErrInvalidLengthRpc
17733 }
divyadesai81bb7ba2020-03-11 11:45:23 +000017734 if (iNdEx + skippy) > l {
17735 return io.ErrUnexpectedEOF
17736 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017737 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000017738 iNdEx += skippy
17739 }
17740 }
17741
17742 if iNdEx > l {
17743 return io.ErrUnexpectedEOF
17744 }
17745 return nil
17746}
17747func (m *LeaseGrantRequest) Unmarshal(dAtA []byte) error {
17748 l := len(dAtA)
17749 iNdEx := 0
17750 for iNdEx < l {
17751 preIndex := iNdEx
17752 var wire uint64
17753 for shift := uint(0); ; shift += 7 {
17754 if shift >= 64 {
17755 return ErrIntOverflowRpc
17756 }
17757 if iNdEx >= l {
17758 return io.ErrUnexpectedEOF
17759 }
17760 b := dAtA[iNdEx]
17761 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017762 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017763 if b < 0x80 {
17764 break
17765 }
17766 }
17767 fieldNum := int32(wire >> 3)
17768 wireType := int(wire & 0x7)
17769 if wireType == 4 {
17770 return fmt.Errorf("proto: LeaseGrantRequest: wiretype end group for non-group")
17771 }
17772 if fieldNum <= 0 {
17773 return fmt.Errorf("proto: LeaseGrantRequest: illegal tag %d (wire type %d)", fieldNum, wire)
17774 }
17775 switch fieldNum {
17776 case 1:
17777 if wireType != 0 {
17778 return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType)
17779 }
17780 m.TTL = 0
17781 for shift := uint(0); ; shift += 7 {
17782 if shift >= 64 {
17783 return ErrIntOverflowRpc
17784 }
17785 if iNdEx >= l {
17786 return io.ErrUnexpectedEOF
17787 }
17788 b := dAtA[iNdEx]
17789 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017790 m.TTL |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017791 if b < 0x80 {
17792 break
17793 }
17794 }
17795 case 2:
17796 if wireType != 0 {
17797 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
17798 }
17799 m.ID = 0
17800 for shift := uint(0); ; shift += 7 {
17801 if shift >= 64 {
17802 return ErrIntOverflowRpc
17803 }
17804 if iNdEx >= l {
17805 return io.ErrUnexpectedEOF
17806 }
17807 b := dAtA[iNdEx]
17808 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017809 m.ID |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017810 if b < 0x80 {
17811 break
17812 }
17813 }
17814 default:
17815 iNdEx = preIndex
17816 skippy, err := skipRpc(dAtA[iNdEx:])
17817 if err != nil {
17818 return err
17819 }
17820 if skippy < 0 {
17821 return ErrInvalidLengthRpc
17822 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017823 if (iNdEx + skippy) < 0 {
17824 return ErrInvalidLengthRpc
17825 }
divyadesai81bb7ba2020-03-11 11:45:23 +000017826 if (iNdEx + skippy) > l {
17827 return io.ErrUnexpectedEOF
17828 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017829 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000017830 iNdEx += skippy
17831 }
17832 }
17833
17834 if iNdEx > l {
17835 return io.ErrUnexpectedEOF
17836 }
17837 return nil
17838}
17839func (m *LeaseGrantResponse) Unmarshal(dAtA []byte) error {
17840 l := len(dAtA)
17841 iNdEx := 0
17842 for iNdEx < l {
17843 preIndex := iNdEx
17844 var wire uint64
17845 for shift := uint(0); ; shift += 7 {
17846 if shift >= 64 {
17847 return ErrIntOverflowRpc
17848 }
17849 if iNdEx >= l {
17850 return io.ErrUnexpectedEOF
17851 }
17852 b := dAtA[iNdEx]
17853 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017854 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017855 if b < 0x80 {
17856 break
17857 }
17858 }
17859 fieldNum := int32(wire >> 3)
17860 wireType := int(wire & 0x7)
17861 if wireType == 4 {
17862 return fmt.Errorf("proto: LeaseGrantResponse: wiretype end group for non-group")
17863 }
17864 if fieldNum <= 0 {
17865 return fmt.Errorf("proto: LeaseGrantResponse: illegal tag %d (wire type %d)", fieldNum, wire)
17866 }
17867 switch fieldNum {
17868 case 1:
17869 if wireType != 2 {
17870 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
17871 }
17872 var msglen int
17873 for shift := uint(0); ; shift += 7 {
17874 if shift >= 64 {
17875 return ErrIntOverflowRpc
17876 }
17877 if iNdEx >= l {
17878 return io.ErrUnexpectedEOF
17879 }
17880 b := dAtA[iNdEx]
17881 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017882 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017883 if b < 0x80 {
17884 break
17885 }
17886 }
17887 if msglen < 0 {
17888 return ErrInvalidLengthRpc
17889 }
17890 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017891 if postIndex < 0 {
17892 return ErrInvalidLengthRpc
17893 }
divyadesai81bb7ba2020-03-11 11:45:23 +000017894 if postIndex > l {
17895 return io.ErrUnexpectedEOF
17896 }
17897 if m.Header == nil {
17898 m.Header = &ResponseHeader{}
17899 }
17900 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
17901 return err
17902 }
17903 iNdEx = postIndex
17904 case 2:
17905 if wireType != 0 {
17906 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
17907 }
17908 m.ID = 0
17909 for shift := uint(0); ; shift += 7 {
17910 if shift >= 64 {
17911 return ErrIntOverflowRpc
17912 }
17913 if iNdEx >= l {
17914 return io.ErrUnexpectedEOF
17915 }
17916 b := dAtA[iNdEx]
17917 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017918 m.ID |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017919 if b < 0x80 {
17920 break
17921 }
17922 }
17923 case 3:
17924 if wireType != 0 {
17925 return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType)
17926 }
17927 m.TTL = 0
17928 for shift := uint(0); ; shift += 7 {
17929 if shift >= 64 {
17930 return ErrIntOverflowRpc
17931 }
17932 if iNdEx >= l {
17933 return io.ErrUnexpectedEOF
17934 }
17935 b := dAtA[iNdEx]
17936 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017937 m.TTL |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017938 if b < 0x80 {
17939 break
17940 }
17941 }
17942 case 4:
17943 if wireType != 2 {
17944 return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
17945 }
17946 var stringLen uint64
17947 for shift := uint(0); ; shift += 7 {
17948 if shift >= 64 {
17949 return ErrIntOverflowRpc
17950 }
17951 if iNdEx >= l {
17952 return io.ErrUnexpectedEOF
17953 }
17954 b := dAtA[iNdEx]
17955 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017956 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000017957 if b < 0x80 {
17958 break
17959 }
17960 }
17961 intStringLen := int(stringLen)
17962 if intStringLen < 0 {
17963 return ErrInvalidLengthRpc
17964 }
17965 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017966 if postIndex < 0 {
17967 return ErrInvalidLengthRpc
17968 }
divyadesai81bb7ba2020-03-11 11:45:23 +000017969 if postIndex > l {
17970 return io.ErrUnexpectedEOF
17971 }
17972 m.Error = string(dAtA[iNdEx:postIndex])
17973 iNdEx = postIndex
17974 default:
17975 iNdEx = preIndex
17976 skippy, err := skipRpc(dAtA[iNdEx:])
17977 if err != nil {
17978 return err
17979 }
17980 if skippy < 0 {
17981 return ErrInvalidLengthRpc
17982 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017983 if (iNdEx + skippy) < 0 {
17984 return ErrInvalidLengthRpc
17985 }
divyadesai81bb7ba2020-03-11 11:45:23 +000017986 if (iNdEx + skippy) > l {
17987 return io.ErrUnexpectedEOF
17988 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000017989 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000017990 iNdEx += skippy
17991 }
17992 }
17993
17994 if iNdEx > l {
17995 return io.ErrUnexpectedEOF
17996 }
17997 return nil
17998}
17999func (m *LeaseRevokeRequest) Unmarshal(dAtA []byte) error {
18000 l := len(dAtA)
18001 iNdEx := 0
18002 for iNdEx < l {
18003 preIndex := iNdEx
18004 var wire uint64
18005 for shift := uint(0); ; shift += 7 {
18006 if shift >= 64 {
18007 return ErrIntOverflowRpc
18008 }
18009 if iNdEx >= l {
18010 return io.ErrUnexpectedEOF
18011 }
18012 b := dAtA[iNdEx]
18013 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018014 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018015 if b < 0x80 {
18016 break
18017 }
18018 }
18019 fieldNum := int32(wire >> 3)
18020 wireType := int(wire & 0x7)
18021 if wireType == 4 {
18022 return fmt.Errorf("proto: LeaseRevokeRequest: wiretype end group for non-group")
18023 }
18024 if fieldNum <= 0 {
18025 return fmt.Errorf("proto: LeaseRevokeRequest: illegal tag %d (wire type %d)", fieldNum, wire)
18026 }
18027 switch fieldNum {
18028 case 1:
18029 if wireType != 0 {
18030 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
18031 }
18032 m.ID = 0
18033 for shift := uint(0); ; shift += 7 {
18034 if shift >= 64 {
18035 return ErrIntOverflowRpc
18036 }
18037 if iNdEx >= l {
18038 return io.ErrUnexpectedEOF
18039 }
18040 b := dAtA[iNdEx]
18041 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018042 m.ID |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018043 if b < 0x80 {
18044 break
18045 }
18046 }
18047 default:
18048 iNdEx = preIndex
18049 skippy, err := skipRpc(dAtA[iNdEx:])
18050 if err != nil {
18051 return err
18052 }
18053 if skippy < 0 {
18054 return ErrInvalidLengthRpc
18055 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018056 if (iNdEx + skippy) < 0 {
18057 return ErrInvalidLengthRpc
18058 }
divyadesai81bb7ba2020-03-11 11:45:23 +000018059 if (iNdEx + skippy) > l {
18060 return io.ErrUnexpectedEOF
18061 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018062 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000018063 iNdEx += skippy
18064 }
18065 }
18066
18067 if iNdEx > l {
18068 return io.ErrUnexpectedEOF
18069 }
18070 return nil
18071}
18072func (m *LeaseRevokeResponse) Unmarshal(dAtA []byte) error {
18073 l := len(dAtA)
18074 iNdEx := 0
18075 for iNdEx < l {
18076 preIndex := iNdEx
18077 var wire uint64
18078 for shift := uint(0); ; shift += 7 {
18079 if shift >= 64 {
18080 return ErrIntOverflowRpc
18081 }
18082 if iNdEx >= l {
18083 return io.ErrUnexpectedEOF
18084 }
18085 b := dAtA[iNdEx]
18086 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018087 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018088 if b < 0x80 {
18089 break
18090 }
18091 }
18092 fieldNum := int32(wire >> 3)
18093 wireType := int(wire & 0x7)
18094 if wireType == 4 {
18095 return fmt.Errorf("proto: LeaseRevokeResponse: wiretype end group for non-group")
18096 }
18097 if fieldNum <= 0 {
18098 return fmt.Errorf("proto: LeaseRevokeResponse: illegal tag %d (wire type %d)", fieldNum, wire)
18099 }
18100 switch fieldNum {
18101 case 1:
18102 if wireType != 2 {
18103 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
18104 }
18105 var msglen int
18106 for shift := uint(0); ; shift += 7 {
18107 if shift >= 64 {
18108 return ErrIntOverflowRpc
18109 }
18110 if iNdEx >= l {
18111 return io.ErrUnexpectedEOF
18112 }
18113 b := dAtA[iNdEx]
18114 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018115 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018116 if b < 0x80 {
18117 break
18118 }
18119 }
18120 if msglen < 0 {
18121 return ErrInvalidLengthRpc
18122 }
18123 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018124 if postIndex < 0 {
18125 return ErrInvalidLengthRpc
18126 }
divyadesai81bb7ba2020-03-11 11:45:23 +000018127 if postIndex > l {
18128 return io.ErrUnexpectedEOF
18129 }
18130 if m.Header == nil {
18131 m.Header = &ResponseHeader{}
18132 }
18133 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
18134 return err
18135 }
18136 iNdEx = postIndex
18137 default:
18138 iNdEx = preIndex
18139 skippy, err := skipRpc(dAtA[iNdEx:])
18140 if err != nil {
18141 return err
18142 }
18143 if skippy < 0 {
18144 return ErrInvalidLengthRpc
18145 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018146 if (iNdEx + skippy) < 0 {
divyadesai81bb7ba2020-03-11 11:45:23 +000018147 return ErrInvalidLengthRpc
18148 }
18149 if (iNdEx + skippy) > l {
18150 return io.ErrUnexpectedEOF
18151 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018152 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000018153 iNdEx += skippy
18154 }
18155 }
18156
18157 if iNdEx > l {
18158 return io.ErrUnexpectedEOF
18159 }
18160 return nil
18161}
18162func (m *LeaseKeepAliveRequest) Unmarshal(dAtA []byte) error {
18163 l := len(dAtA)
18164 iNdEx := 0
18165 for iNdEx < l {
18166 preIndex := iNdEx
18167 var wire uint64
18168 for shift := uint(0); ; shift += 7 {
18169 if shift >= 64 {
18170 return ErrIntOverflowRpc
18171 }
18172 if iNdEx >= l {
18173 return io.ErrUnexpectedEOF
18174 }
18175 b := dAtA[iNdEx]
18176 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018177 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018178 if b < 0x80 {
18179 break
18180 }
18181 }
18182 fieldNum := int32(wire >> 3)
18183 wireType := int(wire & 0x7)
18184 if wireType == 4 {
18185 return fmt.Errorf("proto: LeaseKeepAliveRequest: wiretype end group for non-group")
18186 }
18187 if fieldNum <= 0 {
18188 return fmt.Errorf("proto: LeaseKeepAliveRequest: illegal tag %d (wire type %d)", fieldNum, wire)
18189 }
18190 switch fieldNum {
18191 case 1:
18192 if wireType != 0 {
18193 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
18194 }
18195 m.ID = 0
18196 for shift := uint(0); ; shift += 7 {
18197 if shift >= 64 {
18198 return ErrIntOverflowRpc
18199 }
18200 if iNdEx >= l {
18201 return io.ErrUnexpectedEOF
18202 }
18203 b := dAtA[iNdEx]
18204 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018205 m.ID |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018206 if b < 0x80 {
18207 break
18208 }
18209 }
18210 default:
18211 iNdEx = preIndex
18212 skippy, err := skipRpc(dAtA[iNdEx:])
18213 if err != nil {
18214 return err
18215 }
18216 if skippy < 0 {
18217 return ErrInvalidLengthRpc
18218 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018219 if (iNdEx + skippy) < 0 {
18220 return ErrInvalidLengthRpc
18221 }
divyadesai81bb7ba2020-03-11 11:45:23 +000018222 if (iNdEx + skippy) > l {
18223 return io.ErrUnexpectedEOF
18224 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018225 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000018226 iNdEx += skippy
18227 }
18228 }
18229
18230 if iNdEx > l {
18231 return io.ErrUnexpectedEOF
18232 }
18233 return nil
18234}
18235func (m *LeaseKeepAliveResponse) Unmarshal(dAtA []byte) error {
18236 l := len(dAtA)
18237 iNdEx := 0
18238 for iNdEx < l {
18239 preIndex := iNdEx
18240 var wire uint64
18241 for shift := uint(0); ; shift += 7 {
18242 if shift >= 64 {
18243 return ErrIntOverflowRpc
18244 }
18245 if iNdEx >= l {
18246 return io.ErrUnexpectedEOF
18247 }
18248 b := dAtA[iNdEx]
18249 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018250 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018251 if b < 0x80 {
18252 break
18253 }
18254 }
18255 fieldNum := int32(wire >> 3)
18256 wireType := int(wire & 0x7)
18257 if wireType == 4 {
18258 return fmt.Errorf("proto: LeaseKeepAliveResponse: wiretype end group for non-group")
18259 }
18260 if fieldNum <= 0 {
18261 return fmt.Errorf("proto: LeaseKeepAliveResponse: illegal tag %d (wire type %d)", fieldNum, wire)
18262 }
18263 switch fieldNum {
18264 case 1:
18265 if wireType != 2 {
18266 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
18267 }
18268 var msglen int
18269 for shift := uint(0); ; shift += 7 {
18270 if shift >= 64 {
18271 return ErrIntOverflowRpc
18272 }
18273 if iNdEx >= l {
18274 return io.ErrUnexpectedEOF
18275 }
18276 b := dAtA[iNdEx]
18277 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018278 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018279 if b < 0x80 {
18280 break
18281 }
18282 }
18283 if msglen < 0 {
18284 return ErrInvalidLengthRpc
18285 }
18286 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018287 if postIndex < 0 {
18288 return ErrInvalidLengthRpc
18289 }
divyadesai81bb7ba2020-03-11 11:45:23 +000018290 if postIndex > l {
18291 return io.ErrUnexpectedEOF
18292 }
18293 if m.Header == nil {
18294 m.Header = &ResponseHeader{}
18295 }
18296 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
18297 return err
18298 }
18299 iNdEx = postIndex
18300 case 2:
18301 if wireType != 0 {
18302 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
18303 }
18304 m.ID = 0
18305 for shift := uint(0); ; shift += 7 {
18306 if shift >= 64 {
18307 return ErrIntOverflowRpc
18308 }
18309 if iNdEx >= l {
18310 return io.ErrUnexpectedEOF
18311 }
18312 b := dAtA[iNdEx]
18313 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018314 m.ID |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018315 if b < 0x80 {
18316 break
18317 }
18318 }
18319 case 3:
18320 if wireType != 0 {
18321 return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType)
18322 }
18323 m.TTL = 0
18324 for shift := uint(0); ; shift += 7 {
18325 if shift >= 64 {
18326 return ErrIntOverflowRpc
18327 }
18328 if iNdEx >= l {
18329 return io.ErrUnexpectedEOF
18330 }
18331 b := dAtA[iNdEx]
18332 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018333 m.TTL |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018334 if b < 0x80 {
18335 break
18336 }
18337 }
18338 default:
18339 iNdEx = preIndex
18340 skippy, err := skipRpc(dAtA[iNdEx:])
18341 if err != nil {
18342 return err
18343 }
18344 if skippy < 0 {
18345 return ErrInvalidLengthRpc
18346 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018347 if (iNdEx + skippy) < 0 {
18348 return ErrInvalidLengthRpc
18349 }
divyadesai81bb7ba2020-03-11 11:45:23 +000018350 if (iNdEx + skippy) > l {
18351 return io.ErrUnexpectedEOF
18352 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018353 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000018354 iNdEx += skippy
18355 }
18356 }
18357
18358 if iNdEx > l {
18359 return io.ErrUnexpectedEOF
18360 }
18361 return nil
18362}
18363func (m *LeaseTimeToLiveRequest) Unmarshal(dAtA []byte) error {
18364 l := len(dAtA)
18365 iNdEx := 0
18366 for iNdEx < l {
18367 preIndex := iNdEx
18368 var wire uint64
18369 for shift := uint(0); ; shift += 7 {
18370 if shift >= 64 {
18371 return ErrIntOverflowRpc
18372 }
18373 if iNdEx >= l {
18374 return io.ErrUnexpectedEOF
18375 }
18376 b := dAtA[iNdEx]
18377 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018378 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018379 if b < 0x80 {
18380 break
18381 }
18382 }
18383 fieldNum := int32(wire >> 3)
18384 wireType := int(wire & 0x7)
18385 if wireType == 4 {
18386 return fmt.Errorf("proto: LeaseTimeToLiveRequest: wiretype end group for non-group")
18387 }
18388 if fieldNum <= 0 {
18389 return fmt.Errorf("proto: LeaseTimeToLiveRequest: illegal tag %d (wire type %d)", fieldNum, wire)
18390 }
18391 switch fieldNum {
18392 case 1:
18393 if wireType != 0 {
18394 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
18395 }
18396 m.ID = 0
18397 for shift := uint(0); ; shift += 7 {
18398 if shift >= 64 {
18399 return ErrIntOverflowRpc
18400 }
18401 if iNdEx >= l {
18402 return io.ErrUnexpectedEOF
18403 }
18404 b := dAtA[iNdEx]
18405 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018406 m.ID |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018407 if b < 0x80 {
18408 break
18409 }
18410 }
18411 case 2:
18412 if wireType != 0 {
18413 return fmt.Errorf("proto: wrong wireType = %d for field Keys", wireType)
18414 }
18415 var v int
18416 for shift := uint(0); ; shift += 7 {
18417 if shift >= 64 {
18418 return ErrIntOverflowRpc
18419 }
18420 if iNdEx >= l {
18421 return io.ErrUnexpectedEOF
18422 }
18423 b := dAtA[iNdEx]
18424 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018425 v |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018426 if b < 0x80 {
18427 break
18428 }
18429 }
18430 m.Keys = bool(v != 0)
18431 default:
18432 iNdEx = preIndex
18433 skippy, err := skipRpc(dAtA[iNdEx:])
18434 if err != nil {
18435 return err
18436 }
18437 if skippy < 0 {
18438 return ErrInvalidLengthRpc
18439 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018440 if (iNdEx + skippy) < 0 {
18441 return ErrInvalidLengthRpc
18442 }
divyadesai81bb7ba2020-03-11 11:45:23 +000018443 if (iNdEx + skippy) > l {
18444 return io.ErrUnexpectedEOF
18445 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018446 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000018447 iNdEx += skippy
18448 }
18449 }
18450
18451 if iNdEx > l {
18452 return io.ErrUnexpectedEOF
18453 }
18454 return nil
18455}
18456func (m *LeaseTimeToLiveResponse) Unmarshal(dAtA []byte) error {
18457 l := len(dAtA)
18458 iNdEx := 0
18459 for iNdEx < l {
18460 preIndex := iNdEx
18461 var wire uint64
18462 for shift := uint(0); ; shift += 7 {
18463 if shift >= 64 {
18464 return ErrIntOverflowRpc
18465 }
18466 if iNdEx >= l {
18467 return io.ErrUnexpectedEOF
18468 }
18469 b := dAtA[iNdEx]
18470 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018471 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018472 if b < 0x80 {
18473 break
18474 }
18475 }
18476 fieldNum := int32(wire >> 3)
18477 wireType := int(wire & 0x7)
18478 if wireType == 4 {
18479 return fmt.Errorf("proto: LeaseTimeToLiveResponse: wiretype end group for non-group")
18480 }
18481 if fieldNum <= 0 {
18482 return fmt.Errorf("proto: LeaseTimeToLiveResponse: illegal tag %d (wire type %d)", fieldNum, wire)
18483 }
18484 switch fieldNum {
18485 case 1:
18486 if wireType != 2 {
18487 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
18488 }
18489 var msglen int
18490 for shift := uint(0); ; shift += 7 {
18491 if shift >= 64 {
18492 return ErrIntOverflowRpc
18493 }
18494 if iNdEx >= l {
18495 return io.ErrUnexpectedEOF
18496 }
18497 b := dAtA[iNdEx]
18498 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018499 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018500 if b < 0x80 {
18501 break
18502 }
18503 }
18504 if msglen < 0 {
18505 return ErrInvalidLengthRpc
18506 }
18507 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018508 if postIndex < 0 {
18509 return ErrInvalidLengthRpc
18510 }
divyadesai81bb7ba2020-03-11 11:45:23 +000018511 if postIndex > l {
18512 return io.ErrUnexpectedEOF
18513 }
18514 if m.Header == nil {
18515 m.Header = &ResponseHeader{}
18516 }
18517 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
18518 return err
18519 }
18520 iNdEx = postIndex
18521 case 2:
18522 if wireType != 0 {
18523 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
18524 }
18525 m.ID = 0
18526 for shift := uint(0); ; shift += 7 {
18527 if shift >= 64 {
18528 return ErrIntOverflowRpc
18529 }
18530 if iNdEx >= l {
18531 return io.ErrUnexpectedEOF
18532 }
18533 b := dAtA[iNdEx]
18534 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018535 m.ID |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018536 if b < 0x80 {
18537 break
18538 }
18539 }
18540 case 3:
18541 if wireType != 0 {
18542 return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType)
18543 }
18544 m.TTL = 0
18545 for shift := uint(0); ; shift += 7 {
18546 if shift >= 64 {
18547 return ErrIntOverflowRpc
18548 }
18549 if iNdEx >= l {
18550 return io.ErrUnexpectedEOF
18551 }
18552 b := dAtA[iNdEx]
18553 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018554 m.TTL |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018555 if b < 0x80 {
18556 break
18557 }
18558 }
18559 case 4:
18560 if wireType != 0 {
18561 return fmt.Errorf("proto: wrong wireType = %d for field GrantedTTL", wireType)
18562 }
18563 m.GrantedTTL = 0
18564 for shift := uint(0); ; shift += 7 {
18565 if shift >= 64 {
18566 return ErrIntOverflowRpc
18567 }
18568 if iNdEx >= l {
18569 return io.ErrUnexpectedEOF
18570 }
18571 b := dAtA[iNdEx]
18572 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018573 m.GrantedTTL |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018574 if b < 0x80 {
18575 break
18576 }
18577 }
18578 case 5:
18579 if wireType != 2 {
18580 return fmt.Errorf("proto: wrong wireType = %d for field Keys", wireType)
18581 }
18582 var byteLen int
18583 for shift := uint(0); ; shift += 7 {
18584 if shift >= 64 {
18585 return ErrIntOverflowRpc
18586 }
18587 if iNdEx >= l {
18588 return io.ErrUnexpectedEOF
18589 }
18590 b := dAtA[iNdEx]
18591 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018592 byteLen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018593 if b < 0x80 {
18594 break
18595 }
18596 }
18597 if byteLen < 0 {
18598 return ErrInvalidLengthRpc
18599 }
18600 postIndex := iNdEx + byteLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018601 if postIndex < 0 {
18602 return ErrInvalidLengthRpc
18603 }
divyadesai81bb7ba2020-03-11 11:45:23 +000018604 if postIndex > l {
18605 return io.ErrUnexpectedEOF
18606 }
18607 m.Keys = append(m.Keys, make([]byte, postIndex-iNdEx))
18608 copy(m.Keys[len(m.Keys)-1], dAtA[iNdEx:postIndex])
18609 iNdEx = postIndex
18610 default:
18611 iNdEx = preIndex
18612 skippy, err := skipRpc(dAtA[iNdEx:])
18613 if err != nil {
18614 return err
18615 }
18616 if skippy < 0 {
18617 return ErrInvalidLengthRpc
18618 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018619 if (iNdEx + skippy) < 0 {
18620 return ErrInvalidLengthRpc
18621 }
divyadesai81bb7ba2020-03-11 11:45:23 +000018622 if (iNdEx + skippy) > l {
18623 return io.ErrUnexpectedEOF
18624 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018625 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000018626 iNdEx += skippy
18627 }
18628 }
18629
18630 if iNdEx > l {
18631 return io.ErrUnexpectedEOF
18632 }
18633 return nil
18634}
18635func (m *LeaseLeasesRequest) Unmarshal(dAtA []byte) error {
18636 l := len(dAtA)
18637 iNdEx := 0
18638 for iNdEx < l {
18639 preIndex := iNdEx
18640 var wire uint64
18641 for shift := uint(0); ; shift += 7 {
18642 if shift >= 64 {
18643 return ErrIntOverflowRpc
18644 }
18645 if iNdEx >= l {
18646 return io.ErrUnexpectedEOF
18647 }
18648 b := dAtA[iNdEx]
18649 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018650 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018651 if b < 0x80 {
18652 break
18653 }
18654 }
18655 fieldNum := int32(wire >> 3)
18656 wireType := int(wire & 0x7)
18657 if wireType == 4 {
18658 return fmt.Errorf("proto: LeaseLeasesRequest: wiretype end group for non-group")
18659 }
18660 if fieldNum <= 0 {
18661 return fmt.Errorf("proto: LeaseLeasesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
18662 }
18663 switch fieldNum {
18664 default:
18665 iNdEx = preIndex
18666 skippy, err := skipRpc(dAtA[iNdEx:])
18667 if err != nil {
18668 return err
18669 }
18670 if skippy < 0 {
18671 return ErrInvalidLengthRpc
18672 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018673 if (iNdEx + skippy) < 0 {
18674 return ErrInvalidLengthRpc
18675 }
divyadesai81bb7ba2020-03-11 11:45:23 +000018676 if (iNdEx + skippy) > l {
18677 return io.ErrUnexpectedEOF
18678 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018679 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000018680 iNdEx += skippy
18681 }
18682 }
18683
18684 if iNdEx > l {
18685 return io.ErrUnexpectedEOF
18686 }
18687 return nil
18688}
18689func (m *LeaseStatus) Unmarshal(dAtA []byte) error {
18690 l := len(dAtA)
18691 iNdEx := 0
18692 for iNdEx < l {
18693 preIndex := iNdEx
18694 var wire uint64
18695 for shift := uint(0); ; shift += 7 {
18696 if shift >= 64 {
18697 return ErrIntOverflowRpc
18698 }
18699 if iNdEx >= l {
18700 return io.ErrUnexpectedEOF
18701 }
18702 b := dAtA[iNdEx]
18703 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018704 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018705 if b < 0x80 {
18706 break
18707 }
18708 }
18709 fieldNum := int32(wire >> 3)
18710 wireType := int(wire & 0x7)
18711 if wireType == 4 {
18712 return fmt.Errorf("proto: LeaseStatus: wiretype end group for non-group")
18713 }
18714 if fieldNum <= 0 {
18715 return fmt.Errorf("proto: LeaseStatus: illegal tag %d (wire type %d)", fieldNum, wire)
18716 }
18717 switch fieldNum {
18718 case 1:
18719 if wireType != 0 {
18720 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
18721 }
18722 m.ID = 0
18723 for shift := uint(0); ; shift += 7 {
18724 if shift >= 64 {
18725 return ErrIntOverflowRpc
18726 }
18727 if iNdEx >= l {
18728 return io.ErrUnexpectedEOF
18729 }
18730 b := dAtA[iNdEx]
18731 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018732 m.ID |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018733 if b < 0x80 {
18734 break
18735 }
18736 }
18737 default:
18738 iNdEx = preIndex
18739 skippy, err := skipRpc(dAtA[iNdEx:])
18740 if err != nil {
18741 return err
18742 }
18743 if skippy < 0 {
18744 return ErrInvalidLengthRpc
18745 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018746 if (iNdEx + skippy) < 0 {
18747 return ErrInvalidLengthRpc
18748 }
divyadesai81bb7ba2020-03-11 11:45:23 +000018749 if (iNdEx + skippy) > l {
18750 return io.ErrUnexpectedEOF
18751 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018752 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000018753 iNdEx += skippy
18754 }
18755 }
18756
18757 if iNdEx > l {
18758 return io.ErrUnexpectedEOF
18759 }
18760 return nil
18761}
18762func (m *LeaseLeasesResponse) Unmarshal(dAtA []byte) error {
18763 l := len(dAtA)
18764 iNdEx := 0
18765 for iNdEx < l {
18766 preIndex := iNdEx
18767 var wire uint64
18768 for shift := uint(0); ; shift += 7 {
18769 if shift >= 64 {
18770 return ErrIntOverflowRpc
18771 }
18772 if iNdEx >= l {
18773 return io.ErrUnexpectedEOF
18774 }
18775 b := dAtA[iNdEx]
18776 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018777 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018778 if b < 0x80 {
18779 break
18780 }
18781 }
18782 fieldNum := int32(wire >> 3)
18783 wireType := int(wire & 0x7)
18784 if wireType == 4 {
18785 return fmt.Errorf("proto: LeaseLeasesResponse: wiretype end group for non-group")
18786 }
18787 if fieldNum <= 0 {
18788 return fmt.Errorf("proto: LeaseLeasesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
18789 }
18790 switch fieldNum {
18791 case 1:
18792 if wireType != 2 {
18793 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
18794 }
18795 var msglen int
18796 for shift := uint(0); ; shift += 7 {
18797 if shift >= 64 {
18798 return ErrIntOverflowRpc
18799 }
18800 if iNdEx >= l {
18801 return io.ErrUnexpectedEOF
18802 }
18803 b := dAtA[iNdEx]
18804 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018805 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018806 if b < 0x80 {
18807 break
18808 }
18809 }
18810 if msglen < 0 {
18811 return ErrInvalidLengthRpc
18812 }
18813 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018814 if postIndex < 0 {
18815 return ErrInvalidLengthRpc
18816 }
divyadesai81bb7ba2020-03-11 11:45:23 +000018817 if postIndex > l {
18818 return io.ErrUnexpectedEOF
18819 }
18820 if m.Header == nil {
18821 m.Header = &ResponseHeader{}
18822 }
18823 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
18824 return err
18825 }
18826 iNdEx = postIndex
18827 case 2:
18828 if wireType != 2 {
18829 return fmt.Errorf("proto: wrong wireType = %d for field Leases", wireType)
18830 }
18831 var msglen int
18832 for shift := uint(0); ; shift += 7 {
18833 if shift >= 64 {
18834 return ErrIntOverflowRpc
18835 }
18836 if iNdEx >= l {
18837 return io.ErrUnexpectedEOF
18838 }
18839 b := dAtA[iNdEx]
18840 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018841 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018842 if b < 0x80 {
18843 break
18844 }
18845 }
18846 if msglen < 0 {
18847 return ErrInvalidLengthRpc
18848 }
18849 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018850 if postIndex < 0 {
18851 return ErrInvalidLengthRpc
18852 }
divyadesai81bb7ba2020-03-11 11:45:23 +000018853 if postIndex > l {
18854 return io.ErrUnexpectedEOF
18855 }
18856 m.Leases = append(m.Leases, &LeaseStatus{})
18857 if err := m.Leases[len(m.Leases)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
18858 return err
18859 }
18860 iNdEx = postIndex
18861 default:
18862 iNdEx = preIndex
18863 skippy, err := skipRpc(dAtA[iNdEx:])
18864 if err != nil {
18865 return err
18866 }
18867 if skippy < 0 {
18868 return ErrInvalidLengthRpc
18869 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018870 if (iNdEx + skippy) < 0 {
18871 return ErrInvalidLengthRpc
18872 }
divyadesai81bb7ba2020-03-11 11:45:23 +000018873 if (iNdEx + skippy) > l {
18874 return io.ErrUnexpectedEOF
18875 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018876 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000018877 iNdEx += skippy
18878 }
18879 }
18880
18881 if iNdEx > l {
18882 return io.ErrUnexpectedEOF
18883 }
18884 return nil
18885}
18886func (m *Member) Unmarshal(dAtA []byte) error {
18887 l := len(dAtA)
18888 iNdEx := 0
18889 for iNdEx < l {
18890 preIndex := iNdEx
18891 var wire uint64
18892 for shift := uint(0); ; shift += 7 {
18893 if shift >= 64 {
18894 return ErrIntOverflowRpc
18895 }
18896 if iNdEx >= l {
18897 return io.ErrUnexpectedEOF
18898 }
18899 b := dAtA[iNdEx]
18900 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018901 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018902 if b < 0x80 {
18903 break
18904 }
18905 }
18906 fieldNum := int32(wire >> 3)
18907 wireType := int(wire & 0x7)
18908 if wireType == 4 {
18909 return fmt.Errorf("proto: Member: wiretype end group for non-group")
18910 }
18911 if fieldNum <= 0 {
18912 return fmt.Errorf("proto: Member: illegal tag %d (wire type %d)", fieldNum, wire)
18913 }
18914 switch fieldNum {
18915 case 1:
18916 if wireType != 0 {
18917 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
18918 }
18919 m.ID = 0
18920 for shift := uint(0); ; shift += 7 {
18921 if shift >= 64 {
18922 return ErrIntOverflowRpc
18923 }
18924 if iNdEx >= l {
18925 return io.ErrUnexpectedEOF
18926 }
18927 b := dAtA[iNdEx]
18928 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018929 m.ID |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018930 if b < 0x80 {
18931 break
18932 }
18933 }
18934 case 2:
18935 if wireType != 2 {
18936 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
18937 }
18938 var stringLen uint64
18939 for shift := uint(0); ; shift += 7 {
18940 if shift >= 64 {
18941 return ErrIntOverflowRpc
18942 }
18943 if iNdEx >= l {
18944 return io.ErrUnexpectedEOF
18945 }
18946 b := dAtA[iNdEx]
18947 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018948 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018949 if b < 0x80 {
18950 break
18951 }
18952 }
18953 intStringLen := int(stringLen)
18954 if intStringLen < 0 {
18955 return ErrInvalidLengthRpc
18956 }
18957 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018958 if postIndex < 0 {
18959 return ErrInvalidLengthRpc
18960 }
divyadesai81bb7ba2020-03-11 11:45:23 +000018961 if postIndex > l {
18962 return io.ErrUnexpectedEOF
18963 }
18964 m.Name = string(dAtA[iNdEx:postIndex])
18965 iNdEx = postIndex
18966 case 3:
18967 if wireType != 2 {
18968 return fmt.Errorf("proto: wrong wireType = %d for field PeerURLs", wireType)
18969 }
18970 var stringLen uint64
18971 for shift := uint(0); ; shift += 7 {
18972 if shift >= 64 {
18973 return ErrIntOverflowRpc
18974 }
18975 if iNdEx >= l {
18976 return io.ErrUnexpectedEOF
18977 }
18978 b := dAtA[iNdEx]
18979 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018980 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000018981 if b < 0x80 {
18982 break
18983 }
18984 }
18985 intStringLen := int(stringLen)
18986 if intStringLen < 0 {
18987 return ErrInvalidLengthRpc
18988 }
18989 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000018990 if postIndex < 0 {
18991 return ErrInvalidLengthRpc
18992 }
divyadesai81bb7ba2020-03-11 11:45:23 +000018993 if postIndex > l {
18994 return io.ErrUnexpectedEOF
18995 }
18996 m.PeerURLs = append(m.PeerURLs, string(dAtA[iNdEx:postIndex]))
18997 iNdEx = postIndex
18998 case 4:
18999 if wireType != 2 {
19000 return fmt.Errorf("proto: wrong wireType = %d for field ClientURLs", wireType)
19001 }
19002 var stringLen uint64
19003 for shift := uint(0); ; shift += 7 {
19004 if shift >= 64 {
19005 return ErrIntOverflowRpc
19006 }
19007 if iNdEx >= l {
19008 return io.ErrUnexpectedEOF
19009 }
19010 b := dAtA[iNdEx]
19011 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019012 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019013 if b < 0x80 {
19014 break
19015 }
19016 }
19017 intStringLen := int(stringLen)
19018 if intStringLen < 0 {
19019 return ErrInvalidLengthRpc
19020 }
19021 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019022 if postIndex < 0 {
19023 return ErrInvalidLengthRpc
19024 }
divyadesai81bb7ba2020-03-11 11:45:23 +000019025 if postIndex > l {
19026 return io.ErrUnexpectedEOF
19027 }
19028 m.ClientURLs = append(m.ClientURLs, string(dAtA[iNdEx:postIndex]))
19029 iNdEx = postIndex
divyadesai81bb7ba2020-03-11 11:45:23 +000019030 default:
19031 iNdEx = preIndex
19032 skippy, err := skipRpc(dAtA[iNdEx:])
19033 if err != nil {
19034 return err
19035 }
19036 if skippy < 0 {
19037 return ErrInvalidLengthRpc
19038 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019039 if (iNdEx + skippy) < 0 {
19040 return ErrInvalidLengthRpc
19041 }
divyadesai81bb7ba2020-03-11 11:45:23 +000019042 if (iNdEx + skippy) > l {
19043 return io.ErrUnexpectedEOF
19044 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019045 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000019046 iNdEx += skippy
19047 }
19048 }
19049
19050 if iNdEx > l {
19051 return io.ErrUnexpectedEOF
19052 }
19053 return nil
19054}
19055func (m *MemberAddRequest) Unmarshal(dAtA []byte) error {
19056 l := len(dAtA)
19057 iNdEx := 0
19058 for iNdEx < l {
19059 preIndex := iNdEx
19060 var wire uint64
19061 for shift := uint(0); ; shift += 7 {
19062 if shift >= 64 {
19063 return ErrIntOverflowRpc
19064 }
19065 if iNdEx >= l {
19066 return io.ErrUnexpectedEOF
19067 }
19068 b := dAtA[iNdEx]
19069 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019070 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019071 if b < 0x80 {
19072 break
19073 }
19074 }
19075 fieldNum := int32(wire >> 3)
19076 wireType := int(wire & 0x7)
19077 if wireType == 4 {
19078 return fmt.Errorf("proto: MemberAddRequest: wiretype end group for non-group")
19079 }
19080 if fieldNum <= 0 {
19081 return fmt.Errorf("proto: MemberAddRequest: illegal tag %d (wire type %d)", fieldNum, wire)
19082 }
19083 switch fieldNum {
19084 case 1:
19085 if wireType != 2 {
19086 return fmt.Errorf("proto: wrong wireType = %d for field PeerURLs", wireType)
19087 }
19088 var stringLen uint64
19089 for shift := uint(0); ; shift += 7 {
19090 if shift >= 64 {
19091 return ErrIntOverflowRpc
19092 }
19093 if iNdEx >= l {
19094 return io.ErrUnexpectedEOF
19095 }
19096 b := dAtA[iNdEx]
19097 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019098 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019099 if b < 0x80 {
19100 break
19101 }
19102 }
19103 intStringLen := int(stringLen)
19104 if intStringLen < 0 {
19105 return ErrInvalidLengthRpc
19106 }
19107 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019108 if postIndex < 0 {
19109 return ErrInvalidLengthRpc
19110 }
divyadesai81bb7ba2020-03-11 11:45:23 +000019111 if postIndex > l {
19112 return io.ErrUnexpectedEOF
19113 }
19114 m.PeerURLs = append(m.PeerURLs, string(dAtA[iNdEx:postIndex]))
19115 iNdEx = postIndex
divyadesai81bb7ba2020-03-11 11:45:23 +000019116 default:
19117 iNdEx = preIndex
19118 skippy, err := skipRpc(dAtA[iNdEx:])
19119 if err != nil {
19120 return err
19121 }
19122 if skippy < 0 {
19123 return ErrInvalidLengthRpc
19124 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019125 if (iNdEx + skippy) < 0 {
19126 return ErrInvalidLengthRpc
19127 }
divyadesai81bb7ba2020-03-11 11:45:23 +000019128 if (iNdEx + skippy) > l {
19129 return io.ErrUnexpectedEOF
19130 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019131 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000019132 iNdEx += skippy
19133 }
19134 }
19135
19136 if iNdEx > l {
19137 return io.ErrUnexpectedEOF
19138 }
19139 return nil
19140}
19141func (m *MemberAddResponse) Unmarshal(dAtA []byte) error {
19142 l := len(dAtA)
19143 iNdEx := 0
19144 for iNdEx < l {
19145 preIndex := iNdEx
19146 var wire uint64
19147 for shift := uint(0); ; shift += 7 {
19148 if shift >= 64 {
19149 return ErrIntOverflowRpc
19150 }
19151 if iNdEx >= l {
19152 return io.ErrUnexpectedEOF
19153 }
19154 b := dAtA[iNdEx]
19155 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019156 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019157 if b < 0x80 {
19158 break
19159 }
19160 }
19161 fieldNum := int32(wire >> 3)
19162 wireType := int(wire & 0x7)
19163 if wireType == 4 {
19164 return fmt.Errorf("proto: MemberAddResponse: wiretype end group for non-group")
19165 }
19166 if fieldNum <= 0 {
19167 return fmt.Errorf("proto: MemberAddResponse: illegal tag %d (wire type %d)", fieldNum, wire)
19168 }
19169 switch fieldNum {
19170 case 1:
19171 if wireType != 2 {
19172 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
19173 }
19174 var msglen int
19175 for shift := uint(0); ; shift += 7 {
19176 if shift >= 64 {
19177 return ErrIntOverflowRpc
19178 }
19179 if iNdEx >= l {
19180 return io.ErrUnexpectedEOF
19181 }
19182 b := dAtA[iNdEx]
19183 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019184 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019185 if b < 0x80 {
19186 break
19187 }
19188 }
19189 if msglen < 0 {
19190 return ErrInvalidLengthRpc
19191 }
19192 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019193 if postIndex < 0 {
19194 return ErrInvalidLengthRpc
19195 }
divyadesai81bb7ba2020-03-11 11:45:23 +000019196 if postIndex > l {
19197 return io.ErrUnexpectedEOF
19198 }
19199 if m.Header == nil {
19200 m.Header = &ResponseHeader{}
19201 }
19202 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
19203 return err
19204 }
19205 iNdEx = postIndex
19206 case 2:
19207 if wireType != 2 {
19208 return fmt.Errorf("proto: wrong wireType = %d for field Member", wireType)
19209 }
19210 var msglen int
19211 for shift := uint(0); ; shift += 7 {
19212 if shift >= 64 {
19213 return ErrIntOverflowRpc
19214 }
19215 if iNdEx >= l {
19216 return io.ErrUnexpectedEOF
19217 }
19218 b := dAtA[iNdEx]
19219 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019220 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019221 if b < 0x80 {
19222 break
19223 }
19224 }
19225 if msglen < 0 {
19226 return ErrInvalidLengthRpc
19227 }
19228 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019229 if postIndex < 0 {
19230 return ErrInvalidLengthRpc
19231 }
divyadesai81bb7ba2020-03-11 11:45:23 +000019232 if postIndex > l {
19233 return io.ErrUnexpectedEOF
19234 }
19235 if m.Member == nil {
19236 m.Member = &Member{}
19237 }
19238 if err := m.Member.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
19239 return err
19240 }
19241 iNdEx = postIndex
19242 case 3:
19243 if wireType != 2 {
19244 return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType)
19245 }
19246 var msglen int
19247 for shift := uint(0); ; shift += 7 {
19248 if shift >= 64 {
19249 return ErrIntOverflowRpc
19250 }
19251 if iNdEx >= l {
19252 return io.ErrUnexpectedEOF
19253 }
19254 b := dAtA[iNdEx]
19255 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019256 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019257 if b < 0x80 {
19258 break
19259 }
19260 }
19261 if msglen < 0 {
19262 return ErrInvalidLengthRpc
19263 }
19264 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019265 if postIndex < 0 {
19266 return ErrInvalidLengthRpc
19267 }
divyadesai81bb7ba2020-03-11 11:45:23 +000019268 if postIndex > l {
19269 return io.ErrUnexpectedEOF
19270 }
19271 m.Members = append(m.Members, &Member{})
19272 if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
19273 return err
19274 }
19275 iNdEx = postIndex
19276 default:
19277 iNdEx = preIndex
19278 skippy, err := skipRpc(dAtA[iNdEx:])
19279 if err != nil {
19280 return err
19281 }
19282 if skippy < 0 {
19283 return ErrInvalidLengthRpc
19284 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019285 if (iNdEx + skippy) < 0 {
19286 return ErrInvalidLengthRpc
19287 }
divyadesai81bb7ba2020-03-11 11:45:23 +000019288 if (iNdEx + skippy) > l {
19289 return io.ErrUnexpectedEOF
19290 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019291 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000019292 iNdEx += skippy
19293 }
19294 }
19295
19296 if iNdEx > l {
19297 return io.ErrUnexpectedEOF
19298 }
19299 return nil
19300}
19301func (m *MemberRemoveRequest) Unmarshal(dAtA []byte) error {
19302 l := len(dAtA)
19303 iNdEx := 0
19304 for iNdEx < l {
19305 preIndex := iNdEx
19306 var wire uint64
19307 for shift := uint(0); ; shift += 7 {
19308 if shift >= 64 {
19309 return ErrIntOverflowRpc
19310 }
19311 if iNdEx >= l {
19312 return io.ErrUnexpectedEOF
19313 }
19314 b := dAtA[iNdEx]
19315 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019316 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019317 if b < 0x80 {
19318 break
19319 }
19320 }
19321 fieldNum := int32(wire >> 3)
19322 wireType := int(wire & 0x7)
19323 if wireType == 4 {
19324 return fmt.Errorf("proto: MemberRemoveRequest: wiretype end group for non-group")
19325 }
19326 if fieldNum <= 0 {
19327 return fmt.Errorf("proto: MemberRemoveRequest: illegal tag %d (wire type %d)", fieldNum, wire)
19328 }
19329 switch fieldNum {
19330 case 1:
19331 if wireType != 0 {
19332 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
19333 }
19334 m.ID = 0
19335 for shift := uint(0); ; shift += 7 {
19336 if shift >= 64 {
19337 return ErrIntOverflowRpc
19338 }
19339 if iNdEx >= l {
19340 return io.ErrUnexpectedEOF
19341 }
19342 b := dAtA[iNdEx]
19343 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019344 m.ID |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019345 if b < 0x80 {
19346 break
19347 }
19348 }
19349 default:
19350 iNdEx = preIndex
19351 skippy, err := skipRpc(dAtA[iNdEx:])
19352 if err != nil {
19353 return err
19354 }
19355 if skippy < 0 {
19356 return ErrInvalidLengthRpc
19357 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019358 if (iNdEx + skippy) < 0 {
19359 return ErrInvalidLengthRpc
19360 }
divyadesai81bb7ba2020-03-11 11:45:23 +000019361 if (iNdEx + skippy) > l {
19362 return io.ErrUnexpectedEOF
19363 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019364 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000019365 iNdEx += skippy
19366 }
19367 }
19368
19369 if iNdEx > l {
19370 return io.ErrUnexpectedEOF
19371 }
19372 return nil
19373}
19374func (m *MemberRemoveResponse) Unmarshal(dAtA []byte) error {
19375 l := len(dAtA)
19376 iNdEx := 0
19377 for iNdEx < l {
19378 preIndex := iNdEx
19379 var wire uint64
19380 for shift := uint(0); ; shift += 7 {
19381 if shift >= 64 {
19382 return ErrIntOverflowRpc
19383 }
19384 if iNdEx >= l {
19385 return io.ErrUnexpectedEOF
19386 }
19387 b := dAtA[iNdEx]
19388 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019389 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019390 if b < 0x80 {
19391 break
19392 }
19393 }
19394 fieldNum := int32(wire >> 3)
19395 wireType := int(wire & 0x7)
19396 if wireType == 4 {
19397 return fmt.Errorf("proto: MemberRemoveResponse: wiretype end group for non-group")
19398 }
19399 if fieldNum <= 0 {
19400 return fmt.Errorf("proto: MemberRemoveResponse: illegal tag %d (wire type %d)", fieldNum, wire)
19401 }
19402 switch fieldNum {
19403 case 1:
19404 if wireType != 2 {
19405 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
19406 }
19407 var msglen int
19408 for shift := uint(0); ; shift += 7 {
19409 if shift >= 64 {
19410 return ErrIntOverflowRpc
19411 }
19412 if iNdEx >= l {
19413 return io.ErrUnexpectedEOF
19414 }
19415 b := dAtA[iNdEx]
19416 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019417 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019418 if b < 0x80 {
19419 break
19420 }
19421 }
19422 if msglen < 0 {
19423 return ErrInvalidLengthRpc
19424 }
19425 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019426 if postIndex < 0 {
19427 return ErrInvalidLengthRpc
19428 }
divyadesai81bb7ba2020-03-11 11:45:23 +000019429 if postIndex > l {
19430 return io.ErrUnexpectedEOF
19431 }
19432 if m.Header == nil {
19433 m.Header = &ResponseHeader{}
19434 }
19435 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
19436 return err
19437 }
19438 iNdEx = postIndex
19439 case 2:
19440 if wireType != 2 {
19441 return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType)
19442 }
19443 var msglen int
19444 for shift := uint(0); ; shift += 7 {
19445 if shift >= 64 {
19446 return ErrIntOverflowRpc
19447 }
19448 if iNdEx >= l {
19449 return io.ErrUnexpectedEOF
19450 }
19451 b := dAtA[iNdEx]
19452 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019453 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019454 if b < 0x80 {
19455 break
19456 }
19457 }
19458 if msglen < 0 {
19459 return ErrInvalidLengthRpc
19460 }
19461 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019462 if postIndex < 0 {
19463 return ErrInvalidLengthRpc
19464 }
divyadesai81bb7ba2020-03-11 11:45:23 +000019465 if postIndex > l {
19466 return io.ErrUnexpectedEOF
19467 }
19468 m.Members = append(m.Members, &Member{})
19469 if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
19470 return err
19471 }
19472 iNdEx = postIndex
19473 default:
19474 iNdEx = preIndex
19475 skippy, err := skipRpc(dAtA[iNdEx:])
19476 if err != nil {
19477 return err
19478 }
19479 if skippy < 0 {
19480 return ErrInvalidLengthRpc
19481 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019482 if (iNdEx + skippy) < 0 {
19483 return ErrInvalidLengthRpc
19484 }
divyadesai81bb7ba2020-03-11 11:45:23 +000019485 if (iNdEx + skippy) > l {
19486 return io.ErrUnexpectedEOF
19487 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019488 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000019489 iNdEx += skippy
19490 }
19491 }
19492
19493 if iNdEx > l {
19494 return io.ErrUnexpectedEOF
19495 }
19496 return nil
19497}
19498func (m *MemberUpdateRequest) Unmarshal(dAtA []byte) error {
19499 l := len(dAtA)
19500 iNdEx := 0
19501 for iNdEx < l {
19502 preIndex := iNdEx
19503 var wire uint64
19504 for shift := uint(0); ; shift += 7 {
19505 if shift >= 64 {
19506 return ErrIntOverflowRpc
19507 }
19508 if iNdEx >= l {
19509 return io.ErrUnexpectedEOF
19510 }
19511 b := dAtA[iNdEx]
19512 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019513 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019514 if b < 0x80 {
19515 break
19516 }
19517 }
19518 fieldNum := int32(wire >> 3)
19519 wireType := int(wire & 0x7)
19520 if wireType == 4 {
19521 return fmt.Errorf("proto: MemberUpdateRequest: wiretype end group for non-group")
19522 }
19523 if fieldNum <= 0 {
19524 return fmt.Errorf("proto: MemberUpdateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
19525 }
19526 switch fieldNum {
19527 case 1:
19528 if wireType != 0 {
19529 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
19530 }
19531 m.ID = 0
19532 for shift := uint(0); ; shift += 7 {
19533 if shift >= 64 {
19534 return ErrIntOverflowRpc
19535 }
19536 if iNdEx >= l {
19537 return io.ErrUnexpectedEOF
19538 }
19539 b := dAtA[iNdEx]
19540 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019541 m.ID |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019542 if b < 0x80 {
19543 break
19544 }
19545 }
19546 case 2:
19547 if wireType != 2 {
19548 return fmt.Errorf("proto: wrong wireType = %d for field PeerURLs", wireType)
19549 }
19550 var stringLen uint64
19551 for shift := uint(0); ; shift += 7 {
19552 if shift >= 64 {
19553 return ErrIntOverflowRpc
19554 }
19555 if iNdEx >= l {
19556 return io.ErrUnexpectedEOF
19557 }
19558 b := dAtA[iNdEx]
19559 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019560 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019561 if b < 0x80 {
19562 break
19563 }
19564 }
19565 intStringLen := int(stringLen)
19566 if intStringLen < 0 {
19567 return ErrInvalidLengthRpc
19568 }
19569 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019570 if postIndex < 0 {
19571 return ErrInvalidLengthRpc
19572 }
divyadesai81bb7ba2020-03-11 11:45:23 +000019573 if postIndex > l {
19574 return io.ErrUnexpectedEOF
19575 }
19576 m.PeerURLs = append(m.PeerURLs, string(dAtA[iNdEx:postIndex]))
19577 iNdEx = postIndex
19578 default:
19579 iNdEx = preIndex
19580 skippy, err := skipRpc(dAtA[iNdEx:])
19581 if err != nil {
19582 return err
19583 }
19584 if skippy < 0 {
19585 return ErrInvalidLengthRpc
19586 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019587 if (iNdEx + skippy) < 0 {
19588 return ErrInvalidLengthRpc
19589 }
divyadesai81bb7ba2020-03-11 11:45:23 +000019590 if (iNdEx + skippy) > l {
19591 return io.ErrUnexpectedEOF
19592 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019593 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000019594 iNdEx += skippy
19595 }
19596 }
19597
19598 if iNdEx > l {
19599 return io.ErrUnexpectedEOF
19600 }
19601 return nil
19602}
19603func (m *MemberUpdateResponse) Unmarshal(dAtA []byte) error {
19604 l := len(dAtA)
19605 iNdEx := 0
19606 for iNdEx < l {
19607 preIndex := iNdEx
19608 var wire uint64
19609 for shift := uint(0); ; shift += 7 {
19610 if shift >= 64 {
19611 return ErrIntOverflowRpc
19612 }
19613 if iNdEx >= l {
19614 return io.ErrUnexpectedEOF
19615 }
19616 b := dAtA[iNdEx]
19617 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019618 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019619 if b < 0x80 {
19620 break
19621 }
19622 }
19623 fieldNum := int32(wire >> 3)
19624 wireType := int(wire & 0x7)
19625 if wireType == 4 {
19626 return fmt.Errorf("proto: MemberUpdateResponse: wiretype end group for non-group")
19627 }
19628 if fieldNum <= 0 {
19629 return fmt.Errorf("proto: MemberUpdateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
19630 }
19631 switch fieldNum {
19632 case 1:
19633 if wireType != 2 {
19634 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
19635 }
19636 var msglen int
19637 for shift := uint(0); ; shift += 7 {
19638 if shift >= 64 {
19639 return ErrIntOverflowRpc
19640 }
19641 if iNdEx >= l {
19642 return io.ErrUnexpectedEOF
19643 }
19644 b := dAtA[iNdEx]
19645 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019646 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019647 if b < 0x80 {
19648 break
19649 }
19650 }
19651 if msglen < 0 {
19652 return ErrInvalidLengthRpc
19653 }
19654 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019655 if postIndex < 0 {
19656 return ErrInvalidLengthRpc
19657 }
divyadesai81bb7ba2020-03-11 11:45:23 +000019658 if postIndex > l {
19659 return io.ErrUnexpectedEOF
19660 }
19661 if m.Header == nil {
19662 m.Header = &ResponseHeader{}
19663 }
19664 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
19665 return err
19666 }
19667 iNdEx = postIndex
19668 case 2:
19669 if wireType != 2 {
19670 return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType)
19671 }
19672 var msglen int
19673 for shift := uint(0); ; shift += 7 {
19674 if shift >= 64 {
19675 return ErrIntOverflowRpc
19676 }
19677 if iNdEx >= l {
19678 return io.ErrUnexpectedEOF
19679 }
19680 b := dAtA[iNdEx]
19681 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019682 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019683 if b < 0x80 {
19684 break
19685 }
19686 }
19687 if msglen < 0 {
19688 return ErrInvalidLengthRpc
19689 }
19690 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019691 if postIndex < 0 {
19692 return ErrInvalidLengthRpc
19693 }
divyadesai81bb7ba2020-03-11 11:45:23 +000019694 if postIndex > l {
19695 return io.ErrUnexpectedEOF
19696 }
19697 m.Members = append(m.Members, &Member{})
19698 if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
19699 return err
19700 }
19701 iNdEx = postIndex
19702 default:
19703 iNdEx = preIndex
19704 skippy, err := skipRpc(dAtA[iNdEx:])
19705 if err != nil {
19706 return err
19707 }
19708 if skippy < 0 {
19709 return ErrInvalidLengthRpc
19710 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019711 if (iNdEx + skippy) < 0 {
19712 return ErrInvalidLengthRpc
19713 }
divyadesai81bb7ba2020-03-11 11:45:23 +000019714 if (iNdEx + skippy) > l {
19715 return io.ErrUnexpectedEOF
19716 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019717 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000019718 iNdEx += skippy
19719 }
19720 }
19721
19722 if iNdEx > l {
19723 return io.ErrUnexpectedEOF
19724 }
19725 return nil
19726}
19727func (m *MemberListRequest) Unmarshal(dAtA []byte) error {
19728 l := len(dAtA)
19729 iNdEx := 0
19730 for iNdEx < l {
19731 preIndex := iNdEx
19732 var wire uint64
19733 for shift := uint(0); ; shift += 7 {
19734 if shift >= 64 {
19735 return ErrIntOverflowRpc
19736 }
19737 if iNdEx >= l {
19738 return io.ErrUnexpectedEOF
19739 }
19740 b := dAtA[iNdEx]
19741 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019742 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019743 if b < 0x80 {
19744 break
19745 }
19746 }
19747 fieldNum := int32(wire >> 3)
19748 wireType := int(wire & 0x7)
19749 if wireType == 4 {
19750 return fmt.Errorf("proto: MemberListRequest: wiretype end group for non-group")
19751 }
19752 if fieldNum <= 0 {
19753 return fmt.Errorf("proto: MemberListRequest: illegal tag %d (wire type %d)", fieldNum, wire)
19754 }
19755 switch fieldNum {
19756 default:
19757 iNdEx = preIndex
19758 skippy, err := skipRpc(dAtA[iNdEx:])
19759 if err != nil {
19760 return err
19761 }
19762 if skippy < 0 {
19763 return ErrInvalidLengthRpc
19764 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019765 if (iNdEx + skippy) < 0 {
19766 return ErrInvalidLengthRpc
19767 }
divyadesai81bb7ba2020-03-11 11:45:23 +000019768 if (iNdEx + skippy) > l {
19769 return io.ErrUnexpectedEOF
19770 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019771 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000019772 iNdEx += skippy
19773 }
19774 }
19775
19776 if iNdEx > l {
19777 return io.ErrUnexpectedEOF
19778 }
19779 return nil
19780}
19781func (m *MemberListResponse) Unmarshal(dAtA []byte) error {
19782 l := len(dAtA)
19783 iNdEx := 0
19784 for iNdEx < l {
19785 preIndex := iNdEx
19786 var wire uint64
19787 for shift := uint(0); ; shift += 7 {
19788 if shift >= 64 {
19789 return ErrIntOverflowRpc
19790 }
19791 if iNdEx >= l {
19792 return io.ErrUnexpectedEOF
19793 }
19794 b := dAtA[iNdEx]
19795 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019796 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019797 if b < 0x80 {
19798 break
19799 }
19800 }
19801 fieldNum := int32(wire >> 3)
19802 wireType := int(wire & 0x7)
19803 if wireType == 4 {
19804 return fmt.Errorf("proto: MemberListResponse: wiretype end group for non-group")
19805 }
19806 if fieldNum <= 0 {
19807 return fmt.Errorf("proto: MemberListResponse: illegal tag %d (wire type %d)", fieldNum, wire)
19808 }
19809 switch fieldNum {
19810 case 1:
19811 if wireType != 2 {
19812 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
19813 }
19814 var msglen int
19815 for shift := uint(0); ; shift += 7 {
19816 if shift >= 64 {
19817 return ErrIntOverflowRpc
19818 }
19819 if iNdEx >= l {
19820 return io.ErrUnexpectedEOF
19821 }
19822 b := dAtA[iNdEx]
19823 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019824 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019825 if b < 0x80 {
19826 break
19827 }
19828 }
19829 if msglen < 0 {
19830 return ErrInvalidLengthRpc
19831 }
19832 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019833 if postIndex < 0 {
19834 return ErrInvalidLengthRpc
19835 }
divyadesai81bb7ba2020-03-11 11:45:23 +000019836 if postIndex > l {
19837 return io.ErrUnexpectedEOF
19838 }
19839 if m.Header == nil {
19840 m.Header = &ResponseHeader{}
19841 }
19842 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
19843 return err
19844 }
19845 iNdEx = postIndex
19846 case 2:
19847 if wireType != 2 {
19848 return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType)
19849 }
19850 var msglen int
19851 for shift := uint(0); ; shift += 7 {
19852 if shift >= 64 {
19853 return ErrIntOverflowRpc
19854 }
19855 if iNdEx >= l {
19856 return io.ErrUnexpectedEOF
19857 }
19858 b := dAtA[iNdEx]
19859 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019860 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019861 if b < 0x80 {
19862 break
19863 }
19864 }
19865 if msglen < 0 {
19866 return ErrInvalidLengthRpc
19867 }
19868 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019869 if postIndex < 0 {
19870 return ErrInvalidLengthRpc
19871 }
divyadesai81bb7ba2020-03-11 11:45:23 +000019872 if postIndex > l {
19873 return io.ErrUnexpectedEOF
19874 }
19875 m.Members = append(m.Members, &Member{})
19876 if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
19877 return err
19878 }
19879 iNdEx = postIndex
19880 default:
19881 iNdEx = preIndex
19882 skippy, err := skipRpc(dAtA[iNdEx:])
19883 if err != nil {
19884 return err
19885 }
19886 if skippy < 0 {
19887 return ErrInvalidLengthRpc
19888 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019889 if (iNdEx + skippy) < 0 {
divyadesai81bb7ba2020-03-11 11:45:23 +000019890 return ErrInvalidLengthRpc
19891 }
19892 if (iNdEx + skippy) > l {
19893 return io.ErrUnexpectedEOF
19894 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019895 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000019896 iNdEx += skippy
19897 }
19898 }
19899
19900 if iNdEx > l {
19901 return io.ErrUnexpectedEOF
19902 }
19903 return nil
19904}
19905func (m *DefragmentRequest) Unmarshal(dAtA []byte) error {
19906 l := len(dAtA)
19907 iNdEx := 0
19908 for iNdEx < l {
19909 preIndex := iNdEx
19910 var wire uint64
19911 for shift := uint(0); ; shift += 7 {
19912 if shift >= 64 {
19913 return ErrIntOverflowRpc
19914 }
19915 if iNdEx >= l {
19916 return io.ErrUnexpectedEOF
19917 }
19918 b := dAtA[iNdEx]
19919 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019920 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019921 if b < 0x80 {
19922 break
19923 }
19924 }
19925 fieldNum := int32(wire >> 3)
19926 wireType := int(wire & 0x7)
19927 if wireType == 4 {
19928 return fmt.Errorf("proto: DefragmentRequest: wiretype end group for non-group")
19929 }
19930 if fieldNum <= 0 {
19931 return fmt.Errorf("proto: DefragmentRequest: illegal tag %d (wire type %d)", fieldNum, wire)
19932 }
19933 switch fieldNum {
19934 default:
19935 iNdEx = preIndex
19936 skippy, err := skipRpc(dAtA[iNdEx:])
19937 if err != nil {
19938 return err
19939 }
19940 if skippy < 0 {
19941 return ErrInvalidLengthRpc
19942 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019943 if (iNdEx + skippy) < 0 {
19944 return ErrInvalidLengthRpc
19945 }
divyadesai81bb7ba2020-03-11 11:45:23 +000019946 if (iNdEx + skippy) > l {
19947 return io.ErrUnexpectedEOF
19948 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019949 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000019950 iNdEx += skippy
19951 }
19952 }
19953
19954 if iNdEx > l {
19955 return io.ErrUnexpectedEOF
19956 }
19957 return nil
19958}
19959func (m *DefragmentResponse) Unmarshal(dAtA []byte) error {
19960 l := len(dAtA)
19961 iNdEx := 0
19962 for iNdEx < l {
19963 preIndex := iNdEx
19964 var wire uint64
19965 for shift := uint(0); ; shift += 7 {
19966 if shift >= 64 {
19967 return ErrIntOverflowRpc
19968 }
19969 if iNdEx >= l {
19970 return io.ErrUnexpectedEOF
19971 }
19972 b := dAtA[iNdEx]
19973 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000019974 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000019975 if b < 0x80 {
19976 break
19977 }
19978 }
19979 fieldNum := int32(wire >> 3)
19980 wireType := int(wire & 0x7)
19981 if wireType == 4 {
19982 return fmt.Errorf("proto: DefragmentResponse: wiretype end group for non-group")
19983 }
19984 if fieldNum <= 0 {
19985 return fmt.Errorf("proto: DefragmentResponse: illegal tag %d (wire type %d)", fieldNum, wire)
19986 }
19987 switch fieldNum {
19988 case 1:
19989 if wireType != 2 {
19990 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
19991 }
19992 var msglen int
19993 for shift := uint(0); ; shift += 7 {
19994 if shift >= 64 {
19995 return ErrIntOverflowRpc
19996 }
19997 if iNdEx >= l {
19998 return io.ErrUnexpectedEOF
19999 }
20000 b := dAtA[iNdEx]
20001 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020002 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020003 if b < 0x80 {
20004 break
20005 }
20006 }
20007 if msglen < 0 {
20008 return ErrInvalidLengthRpc
20009 }
20010 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020011 if postIndex < 0 {
20012 return ErrInvalidLengthRpc
20013 }
divyadesai81bb7ba2020-03-11 11:45:23 +000020014 if postIndex > l {
20015 return io.ErrUnexpectedEOF
20016 }
20017 if m.Header == nil {
20018 m.Header = &ResponseHeader{}
20019 }
20020 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
20021 return err
20022 }
20023 iNdEx = postIndex
20024 default:
20025 iNdEx = preIndex
20026 skippy, err := skipRpc(dAtA[iNdEx:])
20027 if err != nil {
20028 return err
20029 }
20030 if skippy < 0 {
20031 return ErrInvalidLengthRpc
20032 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020033 if (iNdEx + skippy) < 0 {
20034 return ErrInvalidLengthRpc
20035 }
divyadesai81bb7ba2020-03-11 11:45:23 +000020036 if (iNdEx + skippy) > l {
20037 return io.ErrUnexpectedEOF
20038 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020039 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000020040 iNdEx += skippy
20041 }
20042 }
20043
20044 if iNdEx > l {
20045 return io.ErrUnexpectedEOF
20046 }
20047 return nil
20048}
20049func (m *MoveLeaderRequest) Unmarshal(dAtA []byte) error {
20050 l := len(dAtA)
20051 iNdEx := 0
20052 for iNdEx < l {
20053 preIndex := iNdEx
20054 var wire uint64
20055 for shift := uint(0); ; shift += 7 {
20056 if shift >= 64 {
20057 return ErrIntOverflowRpc
20058 }
20059 if iNdEx >= l {
20060 return io.ErrUnexpectedEOF
20061 }
20062 b := dAtA[iNdEx]
20063 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020064 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020065 if b < 0x80 {
20066 break
20067 }
20068 }
20069 fieldNum := int32(wire >> 3)
20070 wireType := int(wire & 0x7)
20071 if wireType == 4 {
20072 return fmt.Errorf("proto: MoveLeaderRequest: wiretype end group for non-group")
20073 }
20074 if fieldNum <= 0 {
20075 return fmt.Errorf("proto: MoveLeaderRequest: illegal tag %d (wire type %d)", fieldNum, wire)
20076 }
20077 switch fieldNum {
20078 case 1:
20079 if wireType != 0 {
20080 return fmt.Errorf("proto: wrong wireType = %d for field TargetID", wireType)
20081 }
20082 m.TargetID = 0
20083 for shift := uint(0); ; shift += 7 {
20084 if shift >= 64 {
20085 return ErrIntOverflowRpc
20086 }
20087 if iNdEx >= l {
20088 return io.ErrUnexpectedEOF
20089 }
20090 b := dAtA[iNdEx]
20091 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020092 m.TargetID |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020093 if b < 0x80 {
20094 break
20095 }
20096 }
20097 default:
20098 iNdEx = preIndex
20099 skippy, err := skipRpc(dAtA[iNdEx:])
20100 if err != nil {
20101 return err
20102 }
20103 if skippy < 0 {
20104 return ErrInvalidLengthRpc
20105 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020106 if (iNdEx + skippy) < 0 {
20107 return ErrInvalidLengthRpc
20108 }
divyadesai81bb7ba2020-03-11 11:45:23 +000020109 if (iNdEx + skippy) > l {
20110 return io.ErrUnexpectedEOF
20111 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020112 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000020113 iNdEx += skippy
20114 }
20115 }
20116
20117 if iNdEx > l {
20118 return io.ErrUnexpectedEOF
20119 }
20120 return nil
20121}
20122func (m *MoveLeaderResponse) Unmarshal(dAtA []byte) error {
20123 l := len(dAtA)
20124 iNdEx := 0
20125 for iNdEx < l {
20126 preIndex := iNdEx
20127 var wire uint64
20128 for shift := uint(0); ; shift += 7 {
20129 if shift >= 64 {
20130 return ErrIntOverflowRpc
20131 }
20132 if iNdEx >= l {
20133 return io.ErrUnexpectedEOF
20134 }
20135 b := dAtA[iNdEx]
20136 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020137 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020138 if b < 0x80 {
20139 break
20140 }
20141 }
20142 fieldNum := int32(wire >> 3)
20143 wireType := int(wire & 0x7)
20144 if wireType == 4 {
20145 return fmt.Errorf("proto: MoveLeaderResponse: wiretype end group for non-group")
20146 }
20147 if fieldNum <= 0 {
20148 return fmt.Errorf("proto: MoveLeaderResponse: illegal tag %d (wire type %d)", fieldNum, wire)
20149 }
20150 switch fieldNum {
20151 case 1:
20152 if wireType != 2 {
20153 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
20154 }
20155 var msglen int
20156 for shift := uint(0); ; shift += 7 {
20157 if shift >= 64 {
20158 return ErrIntOverflowRpc
20159 }
20160 if iNdEx >= l {
20161 return io.ErrUnexpectedEOF
20162 }
20163 b := dAtA[iNdEx]
20164 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020165 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020166 if b < 0x80 {
20167 break
20168 }
20169 }
20170 if msglen < 0 {
20171 return ErrInvalidLengthRpc
20172 }
20173 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020174 if postIndex < 0 {
20175 return ErrInvalidLengthRpc
20176 }
divyadesai81bb7ba2020-03-11 11:45:23 +000020177 if postIndex > l {
20178 return io.ErrUnexpectedEOF
20179 }
20180 if m.Header == nil {
20181 m.Header = &ResponseHeader{}
20182 }
20183 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
20184 return err
20185 }
20186 iNdEx = postIndex
20187 default:
20188 iNdEx = preIndex
20189 skippy, err := skipRpc(dAtA[iNdEx:])
20190 if err != nil {
20191 return err
20192 }
20193 if skippy < 0 {
20194 return ErrInvalidLengthRpc
20195 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020196 if (iNdEx + skippy) < 0 {
20197 return ErrInvalidLengthRpc
20198 }
divyadesai81bb7ba2020-03-11 11:45:23 +000020199 if (iNdEx + skippy) > l {
20200 return io.ErrUnexpectedEOF
20201 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020202 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000020203 iNdEx += skippy
20204 }
20205 }
20206
20207 if iNdEx > l {
20208 return io.ErrUnexpectedEOF
20209 }
20210 return nil
20211}
20212func (m *AlarmRequest) Unmarshal(dAtA []byte) error {
20213 l := len(dAtA)
20214 iNdEx := 0
20215 for iNdEx < l {
20216 preIndex := iNdEx
20217 var wire uint64
20218 for shift := uint(0); ; shift += 7 {
20219 if shift >= 64 {
20220 return ErrIntOverflowRpc
20221 }
20222 if iNdEx >= l {
20223 return io.ErrUnexpectedEOF
20224 }
20225 b := dAtA[iNdEx]
20226 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020227 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020228 if b < 0x80 {
20229 break
20230 }
20231 }
20232 fieldNum := int32(wire >> 3)
20233 wireType := int(wire & 0x7)
20234 if wireType == 4 {
20235 return fmt.Errorf("proto: AlarmRequest: wiretype end group for non-group")
20236 }
20237 if fieldNum <= 0 {
20238 return fmt.Errorf("proto: AlarmRequest: illegal tag %d (wire type %d)", fieldNum, wire)
20239 }
20240 switch fieldNum {
20241 case 1:
20242 if wireType != 0 {
20243 return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType)
20244 }
20245 m.Action = 0
20246 for shift := uint(0); ; shift += 7 {
20247 if shift >= 64 {
20248 return ErrIntOverflowRpc
20249 }
20250 if iNdEx >= l {
20251 return io.ErrUnexpectedEOF
20252 }
20253 b := dAtA[iNdEx]
20254 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020255 m.Action |= AlarmRequest_AlarmAction(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020256 if b < 0x80 {
20257 break
20258 }
20259 }
20260 case 2:
20261 if wireType != 0 {
20262 return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType)
20263 }
20264 m.MemberID = 0
20265 for shift := uint(0); ; shift += 7 {
20266 if shift >= 64 {
20267 return ErrIntOverflowRpc
20268 }
20269 if iNdEx >= l {
20270 return io.ErrUnexpectedEOF
20271 }
20272 b := dAtA[iNdEx]
20273 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020274 m.MemberID |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020275 if b < 0x80 {
20276 break
20277 }
20278 }
20279 case 3:
20280 if wireType != 0 {
20281 return fmt.Errorf("proto: wrong wireType = %d for field Alarm", wireType)
20282 }
20283 m.Alarm = 0
20284 for shift := uint(0); ; shift += 7 {
20285 if shift >= 64 {
20286 return ErrIntOverflowRpc
20287 }
20288 if iNdEx >= l {
20289 return io.ErrUnexpectedEOF
20290 }
20291 b := dAtA[iNdEx]
20292 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020293 m.Alarm |= AlarmType(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020294 if b < 0x80 {
20295 break
20296 }
20297 }
20298 default:
20299 iNdEx = preIndex
20300 skippy, err := skipRpc(dAtA[iNdEx:])
20301 if err != nil {
20302 return err
20303 }
20304 if skippy < 0 {
20305 return ErrInvalidLengthRpc
20306 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020307 if (iNdEx + skippy) < 0 {
20308 return ErrInvalidLengthRpc
20309 }
divyadesai81bb7ba2020-03-11 11:45:23 +000020310 if (iNdEx + skippy) > l {
20311 return io.ErrUnexpectedEOF
20312 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020313 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000020314 iNdEx += skippy
20315 }
20316 }
20317
20318 if iNdEx > l {
20319 return io.ErrUnexpectedEOF
20320 }
20321 return nil
20322}
20323func (m *AlarmMember) Unmarshal(dAtA []byte) error {
20324 l := len(dAtA)
20325 iNdEx := 0
20326 for iNdEx < l {
20327 preIndex := iNdEx
20328 var wire uint64
20329 for shift := uint(0); ; shift += 7 {
20330 if shift >= 64 {
20331 return ErrIntOverflowRpc
20332 }
20333 if iNdEx >= l {
20334 return io.ErrUnexpectedEOF
20335 }
20336 b := dAtA[iNdEx]
20337 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020338 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020339 if b < 0x80 {
20340 break
20341 }
20342 }
20343 fieldNum := int32(wire >> 3)
20344 wireType := int(wire & 0x7)
20345 if wireType == 4 {
20346 return fmt.Errorf("proto: AlarmMember: wiretype end group for non-group")
20347 }
20348 if fieldNum <= 0 {
20349 return fmt.Errorf("proto: AlarmMember: illegal tag %d (wire type %d)", fieldNum, wire)
20350 }
20351 switch fieldNum {
20352 case 1:
20353 if wireType != 0 {
20354 return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType)
20355 }
20356 m.MemberID = 0
20357 for shift := uint(0); ; shift += 7 {
20358 if shift >= 64 {
20359 return ErrIntOverflowRpc
20360 }
20361 if iNdEx >= l {
20362 return io.ErrUnexpectedEOF
20363 }
20364 b := dAtA[iNdEx]
20365 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020366 m.MemberID |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020367 if b < 0x80 {
20368 break
20369 }
20370 }
20371 case 2:
20372 if wireType != 0 {
20373 return fmt.Errorf("proto: wrong wireType = %d for field Alarm", wireType)
20374 }
20375 m.Alarm = 0
20376 for shift := uint(0); ; shift += 7 {
20377 if shift >= 64 {
20378 return ErrIntOverflowRpc
20379 }
20380 if iNdEx >= l {
20381 return io.ErrUnexpectedEOF
20382 }
20383 b := dAtA[iNdEx]
20384 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020385 m.Alarm |= AlarmType(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020386 if b < 0x80 {
20387 break
20388 }
20389 }
20390 default:
20391 iNdEx = preIndex
20392 skippy, err := skipRpc(dAtA[iNdEx:])
20393 if err != nil {
20394 return err
20395 }
20396 if skippy < 0 {
20397 return ErrInvalidLengthRpc
20398 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020399 if (iNdEx + skippy) < 0 {
20400 return ErrInvalidLengthRpc
20401 }
divyadesai81bb7ba2020-03-11 11:45:23 +000020402 if (iNdEx + skippy) > l {
20403 return io.ErrUnexpectedEOF
20404 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020405 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000020406 iNdEx += skippy
20407 }
20408 }
20409
20410 if iNdEx > l {
20411 return io.ErrUnexpectedEOF
20412 }
20413 return nil
20414}
20415func (m *AlarmResponse) Unmarshal(dAtA []byte) error {
20416 l := len(dAtA)
20417 iNdEx := 0
20418 for iNdEx < l {
20419 preIndex := iNdEx
20420 var wire uint64
20421 for shift := uint(0); ; shift += 7 {
20422 if shift >= 64 {
20423 return ErrIntOverflowRpc
20424 }
20425 if iNdEx >= l {
20426 return io.ErrUnexpectedEOF
20427 }
20428 b := dAtA[iNdEx]
20429 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020430 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020431 if b < 0x80 {
20432 break
20433 }
20434 }
20435 fieldNum := int32(wire >> 3)
20436 wireType := int(wire & 0x7)
20437 if wireType == 4 {
20438 return fmt.Errorf("proto: AlarmResponse: wiretype end group for non-group")
20439 }
20440 if fieldNum <= 0 {
20441 return fmt.Errorf("proto: AlarmResponse: illegal tag %d (wire type %d)", fieldNum, wire)
20442 }
20443 switch fieldNum {
20444 case 1:
20445 if wireType != 2 {
20446 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
20447 }
20448 var msglen int
20449 for shift := uint(0); ; shift += 7 {
20450 if shift >= 64 {
20451 return ErrIntOverflowRpc
20452 }
20453 if iNdEx >= l {
20454 return io.ErrUnexpectedEOF
20455 }
20456 b := dAtA[iNdEx]
20457 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020458 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020459 if b < 0x80 {
20460 break
20461 }
20462 }
20463 if msglen < 0 {
20464 return ErrInvalidLengthRpc
20465 }
20466 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020467 if postIndex < 0 {
20468 return ErrInvalidLengthRpc
20469 }
divyadesai81bb7ba2020-03-11 11:45:23 +000020470 if postIndex > l {
20471 return io.ErrUnexpectedEOF
20472 }
20473 if m.Header == nil {
20474 m.Header = &ResponseHeader{}
20475 }
20476 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
20477 return err
20478 }
20479 iNdEx = postIndex
20480 case 2:
20481 if wireType != 2 {
20482 return fmt.Errorf("proto: wrong wireType = %d for field Alarms", wireType)
20483 }
20484 var msglen int
20485 for shift := uint(0); ; shift += 7 {
20486 if shift >= 64 {
20487 return ErrIntOverflowRpc
20488 }
20489 if iNdEx >= l {
20490 return io.ErrUnexpectedEOF
20491 }
20492 b := dAtA[iNdEx]
20493 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020494 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020495 if b < 0x80 {
20496 break
20497 }
20498 }
20499 if msglen < 0 {
20500 return ErrInvalidLengthRpc
20501 }
20502 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020503 if postIndex < 0 {
20504 return ErrInvalidLengthRpc
20505 }
divyadesai81bb7ba2020-03-11 11:45:23 +000020506 if postIndex > l {
20507 return io.ErrUnexpectedEOF
20508 }
20509 m.Alarms = append(m.Alarms, &AlarmMember{})
20510 if err := m.Alarms[len(m.Alarms)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
20511 return err
20512 }
20513 iNdEx = postIndex
20514 default:
20515 iNdEx = preIndex
20516 skippy, err := skipRpc(dAtA[iNdEx:])
20517 if err != nil {
20518 return err
20519 }
20520 if skippy < 0 {
20521 return ErrInvalidLengthRpc
20522 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020523 if (iNdEx + skippy) < 0 {
20524 return ErrInvalidLengthRpc
20525 }
divyadesai81bb7ba2020-03-11 11:45:23 +000020526 if (iNdEx + skippy) > l {
20527 return io.ErrUnexpectedEOF
20528 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020529 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000020530 iNdEx += skippy
20531 }
20532 }
20533
20534 if iNdEx > l {
20535 return io.ErrUnexpectedEOF
20536 }
20537 return nil
20538}
20539func (m *StatusRequest) Unmarshal(dAtA []byte) error {
20540 l := len(dAtA)
20541 iNdEx := 0
20542 for iNdEx < l {
20543 preIndex := iNdEx
20544 var wire uint64
20545 for shift := uint(0); ; shift += 7 {
20546 if shift >= 64 {
20547 return ErrIntOverflowRpc
20548 }
20549 if iNdEx >= l {
20550 return io.ErrUnexpectedEOF
20551 }
20552 b := dAtA[iNdEx]
20553 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020554 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020555 if b < 0x80 {
20556 break
20557 }
20558 }
20559 fieldNum := int32(wire >> 3)
20560 wireType := int(wire & 0x7)
20561 if wireType == 4 {
20562 return fmt.Errorf("proto: StatusRequest: wiretype end group for non-group")
20563 }
20564 if fieldNum <= 0 {
20565 return fmt.Errorf("proto: StatusRequest: illegal tag %d (wire type %d)", fieldNum, wire)
20566 }
20567 switch fieldNum {
20568 default:
20569 iNdEx = preIndex
20570 skippy, err := skipRpc(dAtA[iNdEx:])
20571 if err != nil {
20572 return err
20573 }
20574 if skippy < 0 {
20575 return ErrInvalidLengthRpc
20576 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020577 if (iNdEx + skippy) < 0 {
20578 return ErrInvalidLengthRpc
20579 }
divyadesai81bb7ba2020-03-11 11:45:23 +000020580 if (iNdEx + skippy) > l {
20581 return io.ErrUnexpectedEOF
20582 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020583 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000020584 iNdEx += skippy
20585 }
20586 }
20587
20588 if iNdEx > l {
20589 return io.ErrUnexpectedEOF
20590 }
20591 return nil
20592}
20593func (m *StatusResponse) Unmarshal(dAtA []byte) error {
20594 l := len(dAtA)
20595 iNdEx := 0
20596 for iNdEx < l {
20597 preIndex := iNdEx
20598 var wire uint64
20599 for shift := uint(0); ; shift += 7 {
20600 if shift >= 64 {
20601 return ErrIntOverflowRpc
20602 }
20603 if iNdEx >= l {
20604 return io.ErrUnexpectedEOF
20605 }
20606 b := dAtA[iNdEx]
20607 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020608 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020609 if b < 0x80 {
20610 break
20611 }
20612 }
20613 fieldNum := int32(wire >> 3)
20614 wireType := int(wire & 0x7)
20615 if wireType == 4 {
20616 return fmt.Errorf("proto: StatusResponse: wiretype end group for non-group")
20617 }
20618 if fieldNum <= 0 {
20619 return fmt.Errorf("proto: StatusResponse: illegal tag %d (wire type %d)", fieldNum, wire)
20620 }
20621 switch fieldNum {
20622 case 1:
20623 if wireType != 2 {
20624 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
20625 }
20626 var msglen int
20627 for shift := uint(0); ; shift += 7 {
20628 if shift >= 64 {
20629 return ErrIntOverflowRpc
20630 }
20631 if iNdEx >= l {
20632 return io.ErrUnexpectedEOF
20633 }
20634 b := dAtA[iNdEx]
20635 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020636 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020637 if b < 0x80 {
20638 break
20639 }
20640 }
20641 if msglen < 0 {
20642 return ErrInvalidLengthRpc
20643 }
20644 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020645 if postIndex < 0 {
20646 return ErrInvalidLengthRpc
20647 }
divyadesai81bb7ba2020-03-11 11:45:23 +000020648 if postIndex > l {
20649 return io.ErrUnexpectedEOF
20650 }
20651 if m.Header == nil {
20652 m.Header = &ResponseHeader{}
20653 }
20654 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
20655 return err
20656 }
20657 iNdEx = postIndex
20658 case 2:
20659 if wireType != 2 {
20660 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
20661 }
20662 var stringLen uint64
20663 for shift := uint(0); ; shift += 7 {
20664 if shift >= 64 {
20665 return ErrIntOverflowRpc
20666 }
20667 if iNdEx >= l {
20668 return io.ErrUnexpectedEOF
20669 }
20670 b := dAtA[iNdEx]
20671 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020672 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020673 if b < 0x80 {
20674 break
20675 }
20676 }
20677 intStringLen := int(stringLen)
20678 if intStringLen < 0 {
20679 return ErrInvalidLengthRpc
20680 }
20681 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020682 if postIndex < 0 {
20683 return ErrInvalidLengthRpc
20684 }
divyadesai81bb7ba2020-03-11 11:45:23 +000020685 if postIndex > l {
20686 return io.ErrUnexpectedEOF
20687 }
20688 m.Version = string(dAtA[iNdEx:postIndex])
20689 iNdEx = postIndex
20690 case 3:
20691 if wireType != 0 {
20692 return fmt.Errorf("proto: wrong wireType = %d for field DbSize", wireType)
20693 }
20694 m.DbSize = 0
20695 for shift := uint(0); ; shift += 7 {
20696 if shift >= 64 {
20697 return ErrIntOverflowRpc
20698 }
20699 if iNdEx >= l {
20700 return io.ErrUnexpectedEOF
20701 }
20702 b := dAtA[iNdEx]
20703 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020704 m.DbSize |= int64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020705 if b < 0x80 {
20706 break
20707 }
20708 }
20709 case 4:
20710 if wireType != 0 {
20711 return fmt.Errorf("proto: wrong wireType = %d for field Leader", wireType)
20712 }
20713 m.Leader = 0
20714 for shift := uint(0); ; shift += 7 {
20715 if shift >= 64 {
20716 return ErrIntOverflowRpc
20717 }
20718 if iNdEx >= l {
20719 return io.ErrUnexpectedEOF
20720 }
20721 b := dAtA[iNdEx]
20722 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020723 m.Leader |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020724 if b < 0x80 {
20725 break
20726 }
20727 }
20728 case 5:
20729 if wireType != 0 {
20730 return fmt.Errorf("proto: wrong wireType = %d for field RaftIndex", wireType)
20731 }
20732 m.RaftIndex = 0
20733 for shift := uint(0); ; shift += 7 {
20734 if shift >= 64 {
20735 return ErrIntOverflowRpc
20736 }
20737 if iNdEx >= l {
20738 return io.ErrUnexpectedEOF
20739 }
20740 b := dAtA[iNdEx]
20741 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020742 m.RaftIndex |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020743 if b < 0x80 {
20744 break
20745 }
20746 }
20747 case 6:
20748 if wireType != 0 {
20749 return fmt.Errorf("proto: wrong wireType = %d for field RaftTerm", wireType)
20750 }
20751 m.RaftTerm = 0
20752 for shift := uint(0); ; shift += 7 {
20753 if shift >= 64 {
20754 return ErrIntOverflowRpc
20755 }
20756 if iNdEx >= l {
20757 return io.ErrUnexpectedEOF
20758 }
20759 b := dAtA[iNdEx]
20760 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020761 m.RaftTerm |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020762 if b < 0x80 {
20763 break
20764 }
20765 }
divyadesai81bb7ba2020-03-11 11:45:23 +000020766 default:
20767 iNdEx = preIndex
20768 skippy, err := skipRpc(dAtA[iNdEx:])
20769 if err != nil {
20770 return err
20771 }
20772 if skippy < 0 {
20773 return ErrInvalidLengthRpc
20774 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020775 if (iNdEx + skippy) < 0 {
20776 return ErrInvalidLengthRpc
20777 }
divyadesai81bb7ba2020-03-11 11:45:23 +000020778 if (iNdEx + skippy) > l {
20779 return io.ErrUnexpectedEOF
20780 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020781 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000020782 iNdEx += skippy
20783 }
20784 }
20785
20786 if iNdEx > l {
20787 return io.ErrUnexpectedEOF
20788 }
20789 return nil
20790}
20791func (m *AuthEnableRequest) Unmarshal(dAtA []byte) error {
20792 l := len(dAtA)
20793 iNdEx := 0
20794 for iNdEx < l {
20795 preIndex := iNdEx
20796 var wire uint64
20797 for shift := uint(0); ; shift += 7 {
20798 if shift >= 64 {
20799 return ErrIntOverflowRpc
20800 }
20801 if iNdEx >= l {
20802 return io.ErrUnexpectedEOF
20803 }
20804 b := dAtA[iNdEx]
20805 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020806 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020807 if b < 0x80 {
20808 break
20809 }
20810 }
20811 fieldNum := int32(wire >> 3)
20812 wireType := int(wire & 0x7)
20813 if wireType == 4 {
20814 return fmt.Errorf("proto: AuthEnableRequest: wiretype end group for non-group")
20815 }
20816 if fieldNum <= 0 {
20817 return fmt.Errorf("proto: AuthEnableRequest: illegal tag %d (wire type %d)", fieldNum, wire)
20818 }
20819 switch fieldNum {
20820 default:
20821 iNdEx = preIndex
20822 skippy, err := skipRpc(dAtA[iNdEx:])
20823 if err != nil {
20824 return err
20825 }
20826 if skippy < 0 {
20827 return ErrInvalidLengthRpc
20828 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020829 if (iNdEx + skippy) < 0 {
20830 return ErrInvalidLengthRpc
20831 }
divyadesai81bb7ba2020-03-11 11:45:23 +000020832 if (iNdEx + skippy) > l {
20833 return io.ErrUnexpectedEOF
20834 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020835 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000020836 iNdEx += skippy
20837 }
20838 }
20839
20840 if iNdEx > l {
20841 return io.ErrUnexpectedEOF
20842 }
20843 return nil
20844}
20845func (m *AuthDisableRequest) Unmarshal(dAtA []byte) error {
20846 l := len(dAtA)
20847 iNdEx := 0
20848 for iNdEx < l {
20849 preIndex := iNdEx
20850 var wire uint64
20851 for shift := uint(0); ; shift += 7 {
20852 if shift >= 64 {
20853 return ErrIntOverflowRpc
20854 }
20855 if iNdEx >= l {
20856 return io.ErrUnexpectedEOF
20857 }
20858 b := dAtA[iNdEx]
20859 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020860 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020861 if b < 0x80 {
20862 break
20863 }
20864 }
20865 fieldNum := int32(wire >> 3)
20866 wireType := int(wire & 0x7)
20867 if wireType == 4 {
20868 return fmt.Errorf("proto: AuthDisableRequest: wiretype end group for non-group")
20869 }
20870 if fieldNum <= 0 {
20871 return fmt.Errorf("proto: AuthDisableRequest: illegal tag %d (wire type %d)", fieldNum, wire)
20872 }
20873 switch fieldNum {
20874 default:
20875 iNdEx = preIndex
20876 skippy, err := skipRpc(dAtA[iNdEx:])
20877 if err != nil {
20878 return err
20879 }
20880 if skippy < 0 {
20881 return ErrInvalidLengthRpc
20882 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020883 if (iNdEx + skippy) < 0 {
20884 return ErrInvalidLengthRpc
20885 }
divyadesai81bb7ba2020-03-11 11:45:23 +000020886 if (iNdEx + skippy) > l {
20887 return io.ErrUnexpectedEOF
20888 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020889 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000020890 iNdEx += skippy
20891 }
20892 }
20893
20894 if iNdEx > l {
20895 return io.ErrUnexpectedEOF
20896 }
20897 return nil
20898}
20899func (m *AuthenticateRequest) Unmarshal(dAtA []byte) error {
20900 l := len(dAtA)
20901 iNdEx := 0
20902 for iNdEx < l {
20903 preIndex := iNdEx
20904 var wire uint64
20905 for shift := uint(0); ; shift += 7 {
20906 if shift >= 64 {
20907 return ErrIntOverflowRpc
20908 }
20909 if iNdEx >= l {
20910 return io.ErrUnexpectedEOF
20911 }
20912 b := dAtA[iNdEx]
20913 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020914 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020915 if b < 0x80 {
20916 break
20917 }
20918 }
20919 fieldNum := int32(wire >> 3)
20920 wireType := int(wire & 0x7)
20921 if wireType == 4 {
20922 return fmt.Errorf("proto: AuthenticateRequest: wiretype end group for non-group")
20923 }
20924 if fieldNum <= 0 {
20925 return fmt.Errorf("proto: AuthenticateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
20926 }
20927 switch fieldNum {
20928 case 1:
20929 if wireType != 2 {
20930 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
20931 }
20932 var stringLen uint64
20933 for shift := uint(0); ; shift += 7 {
20934 if shift >= 64 {
20935 return ErrIntOverflowRpc
20936 }
20937 if iNdEx >= l {
20938 return io.ErrUnexpectedEOF
20939 }
20940 b := dAtA[iNdEx]
20941 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020942 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020943 if b < 0x80 {
20944 break
20945 }
20946 }
20947 intStringLen := int(stringLen)
20948 if intStringLen < 0 {
20949 return ErrInvalidLengthRpc
20950 }
20951 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020952 if postIndex < 0 {
20953 return ErrInvalidLengthRpc
20954 }
divyadesai81bb7ba2020-03-11 11:45:23 +000020955 if postIndex > l {
20956 return io.ErrUnexpectedEOF
20957 }
20958 m.Name = string(dAtA[iNdEx:postIndex])
20959 iNdEx = postIndex
20960 case 2:
20961 if wireType != 2 {
20962 return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
20963 }
20964 var stringLen uint64
20965 for shift := uint(0); ; shift += 7 {
20966 if shift >= 64 {
20967 return ErrIntOverflowRpc
20968 }
20969 if iNdEx >= l {
20970 return io.ErrUnexpectedEOF
20971 }
20972 b := dAtA[iNdEx]
20973 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020974 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000020975 if b < 0x80 {
20976 break
20977 }
20978 }
20979 intStringLen := int(stringLen)
20980 if intStringLen < 0 {
20981 return ErrInvalidLengthRpc
20982 }
20983 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000020984 if postIndex < 0 {
20985 return ErrInvalidLengthRpc
20986 }
divyadesai81bb7ba2020-03-11 11:45:23 +000020987 if postIndex > l {
20988 return io.ErrUnexpectedEOF
20989 }
20990 m.Password = string(dAtA[iNdEx:postIndex])
20991 iNdEx = postIndex
20992 default:
20993 iNdEx = preIndex
20994 skippy, err := skipRpc(dAtA[iNdEx:])
20995 if err != nil {
20996 return err
20997 }
20998 if skippy < 0 {
20999 return ErrInvalidLengthRpc
21000 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021001 if (iNdEx + skippy) < 0 {
21002 return ErrInvalidLengthRpc
21003 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021004 if (iNdEx + skippy) > l {
21005 return io.ErrUnexpectedEOF
21006 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021007 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000021008 iNdEx += skippy
21009 }
21010 }
21011
21012 if iNdEx > l {
21013 return io.ErrUnexpectedEOF
21014 }
21015 return nil
21016}
21017func (m *AuthUserAddRequest) Unmarshal(dAtA []byte) error {
21018 l := len(dAtA)
21019 iNdEx := 0
21020 for iNdEx < l {
21021 preIndex := iNdEx
21022 var wire uint64
21023 for shift := uint(0); ; shift += 7 {
21024 if shift >= 64 {
21025 return ErrIntOverflowRpc
21026 }
21027 if iNdEx >= l {
21028 return io.ErrUnexpectedEOF
21029 }
21030 b := dAtA[iNdEx]
21031 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021032 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021033 if b < 0x80 {
21034 break
21035 }
21036 }
21037 fieldNum := int32(wire >> 3)
21038 wireType := int(wire & 0x7)
21039 if wireType == 4 {
21040 return fmt.Errorf("proto: AuthUserAddRequest: wiretype end group for non-group")
21041 }
21042 if fieldNum <= 0 {
21043 return fmt.Errorf("proto: AuthUserAddRequest: illegal tag %d (wire type %d)", fieldNum, wire)
21044 }
21045 switch fieldNum {
21046 case 1:
21047 if wireType != 2 {
21048 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
21049 }
21050 var stringLen uint64
21051 for shift := uint(0); ; shift += 7 {
21052 if shift >= 64 {
21053 return ErrIntOverflowRpc
21054 }
21055 if iNdEx >= l {
21056 return io.ErrUnexpectedEOF
21057 }
21058 b := dAtA[iNdEx]
21059 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021060 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021061 if b < 0x80 {
21062 break
21063 }
21064 }
21065 intStringLen := int(stringLen)
21066 if intStringLen < 0 {
21067 return ErrInvalidLengthRpc
21068 }
21069 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021070 if postIndex < 0 {
21071 return ErrInvalidLengthRpc
21072 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021073 if postIndex > l {
21074 return io.ErrUnexpectedEOF
21075 }
21076 m.Name = string(dAtA[iNdEx:postIndex])
21077 iNdEx = postIndex
21078 case 2:
21079 if wireType != 2 {
21080 return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
21081 }
21082 var stringLen uint64
21083 for shift := uint(0); ; shift += 7 {
21084 if shift >= 64 {
21085 return ErrIntOverflowRpc
21086 }
21087 if iNdEx >= l {
21088 return io.ErrUnexpectedEOF
21089 }
21090 b := dAtA[iNdEx]
21091 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021092 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021093 if b < 0x80 {
21094 break
21095 }
21096 }
21097 intStringLen := int(stringLen)
21098 if intStringLen < 0 {
21099 return ErrInvalidLengthRpc
21100 }
21101 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021102 if postIndex < 0 {
21103 return ErrInvalidLengthRpc
21104 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021105 if postIndex > l {
21106 return io.ErrUnexpectedEOF
21107 }
21108 m.Password = string(dAtA[iNdEx:postIndex])
21109 iNdEx = postIndex
divyadesai81bb7ba2020-03-11 11:45:23 +000021110 default:
21111 iNdEx = preIndex
21112 skippy, err := skipRpc(dAtA[iNdEx:])
21113 if err != nil {
21114 return err
21115 }
21116 if skippy < 0 {
21117 return ErrInvalidLengthRpc
21118 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021119 if (iNdEx + skippy) < 0 {
21120 return ErrInvalidLengthRpc
21121 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021122 if (iNdEx + skippy) > l {
21123 return io.ErrUnexpectedEOF
21124 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021125 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000021126 iNdEx += skippy
21127 }
21128 }
21129
21130 if iNdEx > l {
21131 return io.ErrUnexpectedEOF
21132 }
21133 return nil
21134}
21135func (m *AuthUserGetRequest) Unmarshal(dAtA []byte) error {
21136 l := len(dAtA)
21137 iNdEx := 0
21138 for iNdEx < l {
21139 preIndex := iNdEx
21140 var wire uint64
21141 for shift := uint(0); ; shift += 7 {
21142 if shift >= 64 {
21143 return ErrIntOverflowRpc
21144 }
21145 if iNdEx >= l {
21146 return io.ErrUnexpectedEOF
21147 }
21148 b := dAtA[iNdEx]
21149 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021150 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021151 if b < 0x80 {
21152 break
21153 }
21154 }
21155 fieldNum := int32(wire >> 3)
21156 wireType := int(wire & 0x7)
21157 if wireType == 4 {
21158 return fmt.Errorf("proto: AuthUserGetRequest: wiretype end group for non-group")
21159 }
21160 if fieldNum <= 0 {
21161 return fmt.Errorf("proto: AuthUserGetRequest: illegal tag %d (wire type %d)", fieldNum, wire)
21162 }
21163 switch fieldNum {
21164 case 1:
21165 if wireType != 2 {
21166 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
21167 }
21168 var stringLen uint64
21169 for shift := uint(0); ; shift += 7 {
21170 if shift >= 64 {
21171 return ErrIntOverflowRpc
21172 }
21173 if iNdEx >= l {
21174 return io.ErrUnexpectedEOF
21175 }
21176 b := dAtA[iNdEx]
21177 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021178 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021179 if b < 0x80 {
21180 break
21181 }
21182 }
21183 intStringLen := int(stringLen)
21184 if intStringLen < 0 {
21185 return ErrInvalidLengthRpc
21186 }
21187 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021188 if postIndex < 0 {
21189 return ErrInvalidLengthRpc
21190 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021191 if postIndex > l {
21192 return io.ErrUnexpectedEOF
21193 }
21194 m.Name = string(dAtA[iNdEx:postIndex])
21195 iNdEx = postIndex
21196 default:
21197 iNdEx = preIndex
21198 skippy, err := skipRpc(dAtA[iNdEx:])
21199 if err != nil {
21200 return err
21201 }
21202 if skippy < 0 {
21203 return ErrInvalidLengthRpc
21204 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021205 if (iNdEx + skippy) < 0 {
21206 return ErrInvalidLengthRpc
21207 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021208 if (iNdEx + skippy) > l {
21209 return io.ErrUnexpectedEOF
21210 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021211 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000021212 iNdEx += skippy
21213 }
21214 }
21215
21216 if iNdEx > l {
21217 return io.ErrUnexpectedEOF
21218 }
21219 return nil
21220}
21221func (m *AuthUserDeleteRequest) Unmarshal(dAtA []byte) error {
21222 l := len(dAtA)
21223 iNdEx := 0
21224 for iNdEx < l {
21225 preIndex := iNdEx
21226 var wire uint64
21227 for shift := uint(0); ; shift += 7 {
21228 if shift >= 64 {
21229 return ErrIntOverflowRpc
21230 }
21231 if iNdEx >= l {
21232 return io.ErrUnexpectedEOF
21233 }
21234 b := dAtA[iNdEx]
21235 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021236 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021237 if b < 0x80 {
21238 break
21239 }
21240 }
21241 fieldNum := int32(wire >> 3)
21242 wireType := int(wire & 0x7)
21243 if wireType == 4 {
21244 return fmt.Errorf("proto: AuthUserDeleteRequest: wiretype end group for non-group")
21245 }
21246 if fieldNum <= 0 {
21247 return fmt.Errorf("proto: AuthUserDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
21248 }
21249 switch fieldNum {
21250 case 1:
21251 if wireType != 2 {
21252 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
21253 }
21254 var stringLen uint64
21255 for shift := uint(0); ; shift += 7 {
21256 if shift >= 64 {
21257 return ErrIntOverflowRpc
21258 }
21259 if iNdEx >= l {
21260 return io.ErrUnexpectedEOF
21261 }
21262 b := dAtA[iNdEx]
21263 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021264 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021265 if b < 0x80 {
21266 break
21267 }
21268 }
21269 intStringLen := int(stringLen)
21270 if intStringLen < 0 {
21271 return ErrInvalidLengthRpc
21272 }
21273 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021274 if postIndex < 0 {
21275 return ErrInvalidLengthRpc
21276 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021277 if postIndex > l {
21278 return io.ErrUnexpectedEOF
21279 }
21280 m.Name = string(dAtA[iNdEx:postIndex])
21281 iNdEx = postIndex
21282 default:
21283 iNdEx = preIndex
21284 skippy, err := skipRpc(dAtA[iNdEx:])
21285 if err != nil {
21286 return err
21287 }
21288 if skippy < 0 {
21289 return ErrInvalidLengthRpc
21290 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021291 if (iNdEx + skippy) < 0 {
21292 return ErrInvalidLengthRpc
21293 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021294 if (iNdEx + skippy) > l {
21295 return io.ErrUnexpectedEOF
21296 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021297 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000021298 iNdEx += skippy
21299 }
21300 }
21301
21302 if iNdEx > l {
21303 return io.ErrUnexpectedEOF
21304 }
21305 return nil
21306}
21307func (m *AuthUserChangePasswordRequest) Unmarshal(dAtA []byte) error {
21308 l := len(dAtA)
21309 iNdEx := 0
21310 for iNdEx < l {
21311 preIndex := iNdEx
21312 var wire uint64
21313 for shift := uint(0); ; shift += 7 {
21314 if shift >= 64 {
21315 return ErrIntOverflowRpc
21316 }
21317 if iNdEx >= l {
21318 return io.ErrUnexpectedEOF
21319 }
21320 b := dAtA[iNdEx]
21321 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021322 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021323 if b < 0x80 {
21324 break
21325 }
21326 }
21327 fieldNum := int32(wire >> 3)
21328 wireType := int(wire & 0x7)
21329 if wireType == 4 {
21330 return fmt.Errorf("proto: AuthUserChangePasswordRequest: wiretype end group for non-group")
21331 }
21332 if fieldNum <= 0 {
21333 return fmt.Errorf("proto: AuthUserChangePasswordRequest: illegal tag %d (wire type %d)", fieldNum, wire)
21334 }
21335 switch fieldNum {
21336 case 1:
21337 if wireType != 2 {
21338 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
21339 }
21340 var stringLen uint64
21341 for shift := uint(0); ; shift += 7 {
21342 if shift >= 64 {
21343 return ErrIntOverflowRpc
21344 }
21345 if iNdEx >= l {
21346 return io.ErrUnexpectedEOF
21347 }
21348 b := dAtA[iNdEx]
21349 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021350 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021351 if b < 0x80 {
21352 break
21353 }
21354 }
21355 intStringLen := int(stringLen)
21356 if intStringLen < 0 {
21357 return ErrInvalidLengthRpc
21358 }
21359 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021360 if postIndex < 0 {
21361 return ErrInvalidLengthRpc
21362 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021363 if postIndex > l {
21364 return io.ErrUnexpectedEOF
21365 }
21366 m.Name = string(dAtA[iNdEx:postIndex])
21367 iNdEx = postIndex
21368 case 2:
21369 if wireType != 2 {
21370 return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
21371 }
21372 var stringLen uint64
21373 for shift := uint(0); ; shift += 7 {
21374 if shift >= 64 {
21375 return ErrIntOverflowRpc
21376 }
21377 if iNdEx >= l {
21378 return io.ErrUnexpectedEOF
21379 }
21380 b := dAtA[iNdEx]
21381 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021382 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021383 if b < 0x80 {
21384 break
21385 }
21386 }
21387 intStringLen := int(stringLen)
21388 if intStringLen < 0 {
21389 return ErrInvalidLengthRpc
21390 }
21391 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021392 if postIndex < 0 {
21393 return ErrInvalidLengthRpc
21394 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021395 if postIndex > l {
21396 return io.ErrUnexpectedEOF
21397 }
21398 m.Password = string(dAtA[iNdEx:postIndex])
21399 iNdEx = postIndex
21400 default:
21401 iNdEx = preIndex
21402 skippy, err := skipRpc(dAtA[iNdEx:])
21403 if err != nil {
21404 return err
21405 }
21406 if skippy < 0 {
21407 return ErrInvalidLengthRpc
21408 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021409 if (iNdEx + skippy) < 0 {
21410 return ErrInvalidLengthRpc
21411 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021412 if (iNdEx + skippy) > l {
21413 return io.ErrUnexpectedEOF
21414 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021415 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000021416 iNdEx += skippy
21417 }
21418 }
21419
21420 if iNdEx > l {
21421 return io.ErrUnexpectedEOF
21422 }
21423 return nil
21424}
21425func (m *AuthUserGrantRoleRequest) Unmarshal(dAtA []byte) error {
21426 l := len(dAtA)
21427 iNdEx := 0
21428 for iNdEx < l {
21429 preIndex := iNdEx
21430 var wire uint64
21431 for shift := uint(0); ; shift += 7 {
21432 if shift >= 64 {
21433 return ErrIntOverflowRpc
21434 }
21435 if iNdEx >= l {
21436 return io.ErrUnexpectedEOF
21437 }
21438 b := dAtA[iNdEx]
21439 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021440 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021441 if b < 0x80 {
21442 break
21443 }
21444 }
21445 fieldNum := int32(wire >> 3)
21446 wireType := int(wire & 0x7)
21447 if wireType == 4 {
21448 return fmt.Errorf("proto: AuthUserGrantRoleRequest: wiretype end group for non-group")
21449 }
21450 if fieldNum <= 0 {
21451 return fmt.Errorf("proto: AuthUserGrantRoleRequest: illegal tag %d (wire type %d)", fieldNum, wire)
21452 }
21453 switch fieldNum {
21454 case 1:
21455 if wireType != 2 {
21456 return fmt.Errorf("proto: wrong wireType = %d for field User", wireType)
21457 }
21458 var stringLen uint64
21459 for shift := uint(0); ; shift += 7 {
21460 if shift >= 64 {
21461 return ErrIntOverflowRpc
21462 }
21463 if iNdEx >= l {
21464 return io.ErrUnexpectedEOF
21465 }
21466 b := dAtA[iNdEx]
21467 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021468 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021469 if b < 0x80 {
21470 break
21471 }
21472 }
21473 intStringLen := int(stringLen)
21474 if intStringLen < 0 {
21475 return ErrInvalidLengthRpc
21476 }
21477 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021478 if postIndex < 0 {
21479 return ErrInvalidLengthRpc
21480 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021481 if postIndex > l {
21482 return io.ErrUnexpectedEOF
21483 }
21484 m.User = string(dAtA[iNdEx:postIndex])
21485 iNdEx = postIndex
21486 case 2:
21487 if wireType != 2 {
21488 return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
21489 }
21490 var stringLen uint64
21491 for shift := uint(0); ; shift += 7 {
21492 if shift >= 64 {
21493 return ErrIntOverflowRpc
21494 }
21495 if iNdEx >= l {
21496 return io.ErrUnexpectedEOF
21497 }
21498 b := dAtA[iNdEx]
21499 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021500 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021501 if b < 0x80 {
21502 break
21503 }
21504 }
21505 intStringLen := int(stringLen)
21506 if intStringLen < 0 {
21507 return ErrInvalidLengthRpc
21508 }
21509 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021510 if postIndex < 0 {
21511 return ErrInvalidLengthRpc
21512 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021513 if postIndex > l {
21514 return io.ErrUnexpectedEOF
21515 }
21516 m.Role = string(dAtA[iNdEx:postIndex])
21517 iNdEx = postIndex
21518 default:
21519 iNdEx = preIndex
21520 skippy, err := skipRpc(dAtA[iNdEx:])
21521 if err != nil {
21522 return err
21523 }
21524 if skippy < 0 {
21525 return ErrInvalidLengthRpc
21526 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021527 if (iNdEx + skippy) < 0 {
21528 return ErrInvalidLengthRpc
21529 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021530 if (iNdEx + skippy) > l {
21531 return io.ErrUnexpectedEOF
21532 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021533 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000021534 iNdEx += skippy
21535 }
21536 }
21537
21538 if iNdEx > l {
21539 return io.ErrUnexpectedEOF
21540 }
21541 return nil
21542}
21543func (m *AuthUserRevokeRoleRequest) Unmarshal(dAtA []byte) error {
21544 l := len(dAtA)
21545 iNdEx := 0
21546 for iNdEx < l {
21547 preIndex := iNdEx
21548 var wire uint64
21549 for shift := uint(0); ; shift += 7 {
21550 if shift >= 64 {
21551 return ErrIntOverflowRpc
21552 }
21553 if iNdEx >= l {
21554 return io.ErrUnexpectedEOF
21555 }
21556 b := dAtA[iNdEx]
21557 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021558 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021559 if b < 0x80 {
21560 break
21561 }
21562 }
21563 fieldNum := int32(wire >> 3)
21564 wireType := int(wire & 0x7)
21565 if wireType == 4 {
21566 return fmt.Errorf("proto: AuthUserRevokeRoleRequest: wiretype end group for non-group")
21567 }
21568 if fieldNum <= 0 {
21569 return fmt.Errorf("proto: AuthUserRevokeRoleRequest: illegal tag %d (wire type %d)", fieldNum, wire)
21570 }
21571 switch fieldNum {
21572 case 1:
21573 if wireType != 2 {
21574 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
21575 }
21576 var stringLen uint64
21577 for shift := uint(0); ; shift += 7 {
21578 if shift >= 64 {
21579 return ErrIntOverflowRpc
21580 }
21581 if iNdEx >= l {
21582 return io.ErrUnexpectedEOF
21583 }
21584 b := dAtA[iNdEx]
21585 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021586 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021587 if b < 0x80 {
21588 break
21589 }
21590 }
21591 intStringLen := int(stringLen)
21592 if intStringLen < 0 {
21593 return ErrInvalidLengthRpc
21594 }
21595 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021596 if postIndex < 0 {
21597 return ErrInvalidLengthRpc
21598 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021599 if postIndex > l {
21600 return io.ErrUnexpectedEOF
21601 }
21602 m.Name = string(dAtA[iNdEx:postIndex])
21603 iNdEx = postIndex
21604 case 2:
21605 if wireType != 2 {
21606 return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
21607 }
21608 var stringLen uint64
21609 for shift := uint(0); ; shift += 7 {
21610 if shift >= 64 {
21611 return ErrIntOverflowRpc
21612 }
21613 if iNdEx >= l {
21614 return io.ErrUnexpectedEOF
21615 }
21616 b := dAtA[iNdEx]
21617 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021618 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021619 if b < 0x80 {
21620 break
21621 }
21622 }
21623 intStringLen := int(stringLen)
21624 if intStringLen < 0 {
21625 return ErrInvalidLengthRpc
21626 }
21627 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021628 if postIndex < 0 {
21629 return ErrInvalidLengthRpc
21630 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021631 if postIndex > l {
21632 return io.ErrUnexpectedEOF
21633 }
21634 m.Role = string(dAtA[iNdEx:postIndex])
21635 iNdEx = postIndex
21636 default:
21637 iNdEx = preIndex
21638 skippy, err := skipRpc(dAtA[iNdEx:])
21639 if err != nil {
21640 return err
21641 }
21642 if skippy < 0 {
21643 return ErrInvalidLengthRpc
21644 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021645 if (iNdEx + skippy) < 0 {
21646 return ErrInvalidLengthRpc
21647 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021648 if (iNdEx + skippy) > l {
21649 return io.ErrUnexpectedEOF
21650 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021651 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000021652 iNdEx += skippy
21653 }
21654 }
21655
21656 if iNdEx > l {
21657 return io.ErrUnexpectedEOF
21658 }
21659 return nil
21660}
21661func (m *AuthRoleAddRequest) Unmarshal(dAtA []byte) error {
21662 l := len(dAtA)
21663 iNdEx := 0
21664 for iNdEx < l {
21665 preIndex := iNdEx
21666 var wire uint64
21667 for shift := uint(0); ; shift += 7 {
21668 if shift >= 64 {
21669 return ErrIntOverflowRpc
21670 }
21671 if iNdEx >= l {
21672 return io.ErrUnexpectedEOF
21673 }
21674 b := dAtA[iNdEx]
21675 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021676 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021677 if b < 0x80 {
21678 break
21679 }
21680 }
21681 fieldNum := int32(wire >> 3)
21682 wireType := int(wire & 0x7)
21683 if wireType == 4 {
21684 return fmt.Errorf("proto: AuthRoleAddRequest: wiretype end group for non-group")
21685 }
21686 if fieldNum <= 0 {
21687 return fmt.Errorf("proto: AuthRoleAddRequest: illegal tag %d (wire type %d)", fieldNum, wire)
21688 }
21689 switch fieldNum {
21690 case 1:
21691 if wireType != 2 {
21692 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
21693 }
21694 var stringLen uint64
21695 for shift := uint(0); ; shift += 7 {
21696 if shift >= 64 {
21697 return ErrIntOverflowRpc
21698 }
21699 if iNdEx >= l {
21700 return io.ErrUnexpectedEOF
21701 }
21702 b := dAtA[iNdEx]
21703 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021704 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021705 if b < 0x80 {
21706 break
21707 }
21708 }
21709 intStringLen := int(stringLen)
21710 if intStringLen < 0 {
21711 return ErrInvalidLengthRpc
21712 }
21713 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021714 if postIndex < 0 {
21715 return ErrInvalidLengthRpc
21716 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021717 if postIndex > l {
21718 return io.ErrUnexpectedEOF
21719 }
21720 m.Name = string(dAtA[iNdEx:postIndex])
21721 iNdEx = postIndex
21722 default:
21723 iNdEx = preIndex
21724 skippy, err := skipRpc(dAtA[iNdEx:])
21725 if err != nil {
21726 return err
21727 }
21728 if skippy < 0 {
21729 return ErrInvalidLengthRpc
21730 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021731 if (iNdEx + skippy) < 0 {
21732 return ErrInvalidLengthRpc
21733 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021734 if (iNdEx + skippy) > l {
21735 return io.ErrUnexpectedEOF
21736 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021737 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000021738 iNdEx += skippy
21739 }
21740 }
21741
21742 if iNdEx > l {
21743 return io.ErrUnexpectedEOF
21744 }
21745 return nil
21746}
21747func (m *AuthRoleGetRequest) Unmarshal(dAtA []byte) error {
21748 l := len(dAtA)
21749 iNdEx := 0
21750 for iNdEx < l {
21751 preIndex := iNdEx
21752 var wire uint64
21753 for shift := uint(0); ; shift += 7 {
21754 if shift >= 64 {
21755 return ErrIntOverflowRpc
21756 }
21757 if iNdEx >= l {
21758 return io.ErrUnexpectedEOF
21759 }
21760 b := dAtA[iNdEx]
21761 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021762 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021763 if b < 0x80 {
21764 break
21765 }
21766 }
21767 fieldNum := int32(wire >> 3)
21768 wireType := int(wire & 0x7)
21769 if wireType == 4 {
21770 return fmt.Errorf("proto: AuthRoleGetRequest: wiretype end group for non-group")
21771 }
21772 if fieldNum <= 0 {
21773 return fmt.Errorf("proto: AuthRoleGetRequest: illegal tag %d (wire type %d)", fieldNum, wire)
21774 }
21775 switch fieldNum {
21776 case 1:
21777 if wireType != 2 {
21778 return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
21779 }
21780 var stringLen uint64
21781 for shift := uint(0); ; shift += 7 {
21782 if shift >= 64 {
21783 return ErrIntOverflowRpc
21784 }
21785 if iNdEx >= l {
21786 return io.ErrUnexpectedEOF
21787 }
21788 b := dAtA[iNdEx]
21789 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021790 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021791 if b < 0x80 {
21792 break
21793 }
21794 }
21795 intStringLen := int(stringLen)
21796 if intStringLen < 0 {
21797 return ErrInvalidLengthRpc
21798 }
21799 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021800 if postIndex < 0 {
21801 return ErrInvalidLengthRpc
21802 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021803 if postIndex > l {
21804 return io.ErrUnexpectedEOF
21805 }
21806 m.Role = string(dAtA[iNdEx:postIndex])
21807 iNdEx = postIndex
21808 default:
21809 iNdEx = preIndex
21810 skippy, err := skipRpc(dAtA[iNdEx:])
21811 if err != nil {
21812 return err
21813 }
21814 if skippy < 0 {
21815 return ErrInvalidLengthRpc
21816 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021817 if (iNdEx + skippy) < 0 {
21818 return ErrInvalidLengthRpc
21819 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021820 if (iNdEx + skippy) > l {
21821 return io.ErrUnexpectedEOF
21822 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021823 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000021824 iNdEx += skippy
21825 }
21826 }
21827
21828 if iNdEx > l {
21829 return io.ErrUnexpectedEOF
21830 }
21831 return nil
21832}
21833func (m *AuthUserListRequest) Unmarshal(dAtA []byte) error {
21834 l := len(dAtA)
21835 iNdEx := 0
21836 for iNdEx < l {
21837 preIndex := iNdEx
21838 var wire uint64
21839 for shift := uint(0); ; shift += 7 {
21840 if shift >= 64 {
21841 return ErrIntOverflowRpc
21842 }
21843 if iNdEx >= l {
21844 return io.ErrUnexpectedEOF
21845 }
21846 b := dAtA[iNdEx]
21847 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021848 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021849 if b < 0x80 {
21850 break
21851 }
21852 }
21853 fieldNum := int32(wire >> 3)
21854 wireType := int(wire & 0x7)
21855 if wireType == 4 {
21856 return fmt.Errorf("proto: AuthUserListRequest: wiretype end group for non-group")
21857 }
21858 if fieldNum <= 0 {
21859 return fmt.Errorf("proto: AuthUserListRequest: illegal tag %d (wire type %d)", fieldNum, wire)
21860 }
21861 switch fieldNum {
21862 default:
21863 iNdEx = preIndex
21864 skippy, err := skipRpc(dAtA[iNdEx:])
21865 if err != nil {
21866 return err
21867 }
21868 if skippy < 0 {
21869 return ErrInvalidLengthRpc
21870 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021871 if (iNdEx + skippy) < 0 {
21872 return ErrInvalidLengthRpc
21873 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021874 if (iNdEx + skippy) > l {
21875 return io.ErrUnexpectedEOF
21876 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021877 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000021878 iNdEx += skippy
21879 }
21880 }
21881
21882 if iNdEx > l {
21883 return io.ErrUnexpectedEOF
21884 }
21885 return nil
21886}
21887func (m *AuthRoleListRequest) Unmarshal(dAtA []byte) error {
21888 l := len(dAtA)
21889 iNdEx := 0
21890 for iNdEx < l {
21891 preIndex := iNdEx
21892 var wire uint64
21893 for shift := uint(0); ; shift += 7 {
21894 if shift >= 64 {
21895 return ErrIntOverflowRpc
21896 }
21897 if iNdEx >= l {
21898 return io.ErrUnexpectedEOF
21899 }
21900 b := dAtA[iNdEx]
21901 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021902 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021903 if b < 0x80 {
21904 break
21905 }
21906 }
21907 fieldNum := int32(wire >> 3)
21908 wireType := int(wire & 0x7)
21909 if wireType == 4 {
21910 return fmt.Errorf("proto: AuthRoleListRequest: wiretype end group for non-group")
21911 }
21912 if fieldNum <= 0 {
21913 return fmt.Errorf("proto: AuthRoleListRequest: illegal tag %d (wire type %d)", fieldNum, wire)
21914 }
21915 switch fieldNum {
21916 default:
21917 iNdEx = preIndex
21918 skippy, err := skipRpc(dAtA[iNdEx:])
21919 if err != nil {
21920 return err
21921 }
21922 if skippy < 0 {
21923 return ErrInvalidLengthRpc
21924 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021925 if (iNdEx + skippy) < 0 {
21926 return ErrInvalidLengthRpc
21927 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021928 if (iNdEx + skippy) > l {
21929 return io.ErrUnexpectedEOF
21930 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021931 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000021932 iNdEx += skippy
21933 }
21934 }
21935
21936 if iNdEx > l {
21937 return io.ErrUnexpectedEOF
21938 }
21939 return nil
21940}
21941func (m *AuthRoleDeleteRequest) Unmarshal(dAtA []byte) error {
21942 l := len(dAtA)
21943 iNdEx := 0
21944 for iNdEx < l {
21945 preIndex := iNdEx
21946 var wire uint64
21947 for shift := uint(0); ; shift += 7 {
21948 if shift >= 64 {
21949 return ErrIntOverflowRpc
21950 }
21951 if iNdEx >= l {
21952 return io.ErrUnexpectedEOF
21953 }
21954 b := dAtA[iNdEx]
21955 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021956 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021957 if b < 0x80 {
21958 break
21959 }
21960 }
21961 fieldNum := int32(wire >> 3)
21962 wireType := int(wire & 0x7)
21963 if wireType == 4 {
21964 return fmt.Errorf("proto: AuthRoleDeleteRequest: wiretype end group for non-group")
21965 }
21966 if fieldNum <= 0 {
21967 return fmt.Errorf("proto: AuthRoleDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
21968 }
21969 switch fieldNum {
21970 case 1:
21971 if wireType != 2 {
21972 return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
21973 }
21974 var stringLen uint64
21975 for shift := uint(0); ; shift += 7 {
21976 if shift >= 64 {
21977 return ErrIntOverflowRpc
21978 }
21979 if iNdEx >= l {
21980 return io.ErrUnexpectedEOF
21981 }
21982 b := dAtA[iNdEx]
21983 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021984 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000021985 if b < 0x80 {
21986 break
21987 }
21988 }
21989 intStringLen := int(stringLen)
21990 if intStringLen < 0 {
21991 return ErrInvalidLengthRpc
21992 }
21993 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000021994 if postIndex < 0 {
21995 return ErrInvalidLengthRpc
21996 }
divyadesai81bb7ba2020-03-11 11:45:23 +000021997 if postIndex > l {
21998 return io.ErrUnexpectedEOF
21999 }
22000 m.Role = string(dAtA[iNdEx:postIndex])
22001 iNdEx = postIndex
22002 default:
22003 iNdEx = preIndex
22004 skippy, err := skipRpc(dAtA[iNdEx:])
22005 if err != nil {
22006 return err
22007 }
22008 if skippy < 0 {
22009 return ErrInvalidLengthRpc
22010 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022011 if (iNdEx + skippy) < 0 {
22012 return ErrInvalidLengthRpc
22013 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022014 if (iNdEx + skippy) > l {
22015 return io.ErrUnexpectedEOF
22016 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022017 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000022018 iNdEx += skippy
22019 }
22020 }
22021
22022 if iNdEx > l {
22023 return io.ErrUnexpectedEOF
22024 }
22025 return nil
22026}
22027func (m *AuthRoleGrantPermissionRequest) Unmarshal(dAtA []byte) error {
22028 l := len(dAtA)
22029 iNdEx := 0
22030 for iNdEx < l {
22031 preIndex := iNdEx
22032 var wire uint64
22033 for shift := uint(0); ; shift += 7 {
22034 if shift >= 64 {
22035 return ErrIntOverflowRpc
22036 }
22037 if iNdEx >= l {
22038 return io.ErrUnexpectedEOF
22039 }
22040 b := dAtA[iNdEx]
22041 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022042 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022043 if b < 0x80 {
22044 break
22045 }
22046 }
22047 fieldNum := int32(wire >> 3)
22048 wireType := int(wire & 0x7)
22049 if wireType == 4 {
22050 return fmt.Errorf("proto: AuthRoleGrantPermissionRequest: wiretype end group for non-group")
22051 }
22052 if fieldNum <= 0 {
22053 return fmt.Errorf("proto: AuthRoleGrantPermissionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
22054 }
22055 switch fieldNum {
22056 case 1:
22057 if wireType != 2 {
22058 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
22059 }
22060 var stringLen uint64
22061 for shift := uint(0); ; shift += 7 {
22062 if shift >= 64 {
22063 return ErrIntOverflowRpc
22064 }
22065 if iNdEx >= l {
22066 return io.ErrUnexpectedEOF
22067 }
22068 b := dAtA[iNdEx]
22069 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022070 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022071 if b < 0x80 {
22072 break
22073 }
22074 }
22075 intStringLen := int(stringLen)
22076 if intStringLen < 0 {
22077 return ErrInvalidLengthRpc
22078 }
22079 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022080 if postIndex < 0 {
22081 return ErrInvalidLengthRpc
22082 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022083 if postIndex > l {
22084 return io.ErrUnexpectedEOF
22085 }
22086 m.Name = string(dAtA[iNdEx:postIndex])
22087 iNdEx = postIndex
22088 case 2:
22089 if wireType != 2 {
22090 return fmt.Errorf("proto: wrong wireType = %d for field Perm", wireType)
22091 }
22092 var msglen int
22093 for shift := uint(0); ; shift += 7 {
22094 if shift >= 64 {
22095 return ErrIntOverflowRpc
22096 }
22097 if iNdEx >= l {
22098 return io.ErrUnexpectedEOF
22099 }
22100 b := dAtA[iNdEx]
22101 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022102 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022103 if b < 0x80 {
22104 break
22105 }
22106 }
22107 if msglen < 0 {
22108 return ErrInvalidLengthRpc
22109 }
22110 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022111 if postIndex < 0 {
22112 return ErrInvalidLengthRpc
22113 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022114 if postIndex > l {
22115 return io.ErrUnexpectedEOF
22116 }
22117 if m.Perm == nil {
22118 m.Perm = &authpb.Permission{}
22119 }
22120 if err := m.Perm.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
22121 return err
22122 }
22123 iNdEx = postIndex
22124 default:
22125 iNdEx = preIndex
22126 skippy, err := skipRpc(dAtA[iNdEx:])
22127 if err != nil {
22128 return err
22129 }
22130 if skippy < 0 {
22131 return ErrInvalidLengthRpc
22132 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022133 if (iNdEx + skippy) < 0 {
22134 return ErrInvalidLengthRpc
22135 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022136 if (iNdEx + skippy) > l {
22137 return io.ErrUnexpectedEOF
22138 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022139 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000022140 iNdEx += skippy
22141 }
22142 }
22143
22144 if iNdEx > l {
22145 return io.ErrUnexpectedEOF
22146 }
22147 return nil
22148}
22149func (m *AuthRoleRevokePermissionRequest) Unmarshal(dAtA []byte) error {
22150 l := len(dAtA)
22151 iNdEx := 0
22152 for iNdEx < l {
22153 preIndex := iNdEx
22154 var wire uint64
22155 for shift := uint(0); ; shift += 7 {
22156 if shift >= 64 {
22157 return ErrIntOverflowRpc
22158 }
22159 if iNdEx >= l {
22160 return io.ErrUnexpectedEOF
22161 }
22162 b := dAtA[iNdEx]
22163 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022164 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022165 if b < 0x80 {
22166 break
22167 }
22168 }
22169 fieldNum := int32(wire >> 3)
22170 wireType := int(wire & 0x7)
22171 if wireType == 4 {
22172 return fmt.Errorf("proto: AuthRoleRevokePermissionRequest: wiretype end group for non-group")
22173 }
22174 if fieldNum <= 0 {
22175 return fmt.Errorf("proto: AuthRoleRevokePermissionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
22176 }
22177 switch fieldNum {
22178 case 1:
22179 if wireType != 2 {
22180 return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType)
22181 }
22182 var stringLen uint64
22183 for shift := uint(0); ; shift += 7 {
22184 if shift >= 64 {
22185 return ErrIntOverflowRpc
22186 }
22187 if iNdEx >= l {
22188 return io.ErrUnexpectedEOF
22189 }
22190 b := dAtA[iNdEx]
22191 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022192 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022193 if b < 0x80 {
22194 break
22195 }
22196 }
22197 intStringLen := int(stringLen)
22198 if intStringLen < 0 {
22199 return ErrInvalidLengthRpc
22200 }
22201 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022202 if postIndex < 0 {
22203 return ErrInvalidLengthRpc
22204 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022205 if postIndex > l {
22206 return io.ErrUnexpectedEOF
22207 }
22208 m.Role = string(dAtA[iNdEx:postIndex])
22209 iNdEx = postIndex
22210 case 2:
22211 if wireType != 2 {
22212 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
22213 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022214 var stringLen uint64
divyadesai81bb7ba2020-03-11 11:45:23 +000022215 for shift := uint(0); ; shift += 7 {
22216 if shift >= 64 {
22217 return ErrIntOverflowRpc
22218 }
22219 if iNdEx >= l {
22220 return io.ErrUnexpectedEOF
22221 }
22222 b := dAtA[iNdEx]
22223 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022224 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022225 if b < 0x80 {
22226 break
22227 }
22228 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022229 intStringLen := int(stringLen)
22230 if intStringLen < 0 {
divyadesai81bb7ba2020-03-11 11:45:23 +000022231 return ErrInvalidLengthRpc
22232 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022233 postIndex := iNdEx + intStringLen
22234 if postIndex < 0 {
22235 return ErrInvalidLengthRpc
22236 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022237 if postIndex > l {
22238 return io.ErrUnexpectedEOF
22239 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022240 m.Key = string(dAtA[iNdEx:postIndex])
divyadesai81bb7ba2020-03-11 11:45:23 +000022241 iNdEx = postIndex
22242 case 3:
22243 if wireType != 2 {
22244 return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType)
22245 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022246 var stringLen uint64
divyadesai81bb7ba2020-03-11 11:45:23 +000022247 for shift := uint(0); ; shift += 7 {
22248 if shift >= 64 {
22249 return ErrIntOverflowRpc
22250 }
22251 if iNdEx >= l {
22252 return io.ErrUnexpectedEOF
22253 }
22254 b := dAtA[iNdEx]
22255 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022256 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022257 if b < 0x80 {
22258 break
22259 }
22260 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022261 intStringLen := int(stringLen)
22262 if intStringLen < 0 {
divyadesai81bb7ba2020-03-11 11:45:23 +000022263 return ErrInvalidLengthRpc
22264 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022265 postIndex := iNdEx + intStringLen
22266 if postIndex < 0 {
22267 return ErrInvalidLengthRpc
22268 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022269 if postIndex > l {
22270 return io.ErrUnexpectedEOF
22271 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022272 m.RangeEnd = string(dAtA[iNdEx:postIndex])
divyadesai81bb7ba2020-03-11 11:45:23 +000022273 iNdEx = postIndex
22274 default:
22275 iNdEx = preIndex
22276 skippy, err := skipRpc(dAtA[iNdEx:])
22277 if err != nil {
22278 return err
22279 }
22280 if skippy < 0 {
22281 return ErrInvalidLengthRpc
22282 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022283 if (iNdEx + skippy) < 0 {
22284 return ErrInvalidLengthRpc
22285 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022286 if (iNdEx + skippy) > l {
22287 return io.ErrUnexpectedEOF
22288 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022289 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000022290 iNdEx += skippy
22291 }
22292 }
22293
22294 if iNdEx > l {
22295 return io.ErrUnexpectedEOF
22296 }
22297 return nil
22298}
22299func (m *AuthEnableResponse) Unmarshal(dAtA []byte) error {
22300 l := len(dAtA)
22301 iNdEx := 0
22302 for iNdEx < l {
22303 preIndex := iNdEx
22304 var wire uint64
22305 for shift := uint(0); ; shift += 7 {
22306 if shift >= 64 {
22307 return ErrIntOverflowRpc
22308 }
22309 if iNdEx >= l {
22310 return io.ErrUnexpectedEOF
22311 }
22312 b := dAtA[iNdEx]
22313 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022314 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022315 if b < 0x80 {
22316 break
22317 }
22318 }
22319 fieldNum := int32(wire >> 3)
22320 wireType := int(wire & 0x7)
22321 if wireType == 4 {
22322 return fmt.Errorf("proto: AuthEnableResponse: wiretype end group for non-group")
22323 }
22324 if fieldNum <= 0 {
22325 return fmt.Errorf("proto: AuthEnableResponse: illegal tag %d (wire type %d)", fieldNum, wire)
22326 }
22327 switch fieldNum {
22328 case 1:
22329 if wireType != 2 {
22330 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
22331 }
22332 var msglen int
22333 for shift := uint(0); ; shift += 7 {
22334 if shift >= 64 {
22335 return ErrIntOverflowRpc
22336 }
22337 if iNdEx >= l {
22338 return io.ErrUnexpectedEOF
22339 }
22340 b := dAtA[iNdEx]
22341 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022342 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022343 if b < 0x80 {
22344 break
22345 }
22346 }
22347 if msglen < 0 {
22348 return ErrInvalidLengthRpc
22349 }
22350 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022351 if postIndex < 0 {
22352 return ErrInvalidLengthRpc
22353 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022354 if postIndex > l {
22355 return io.ErrUnexpectedEOF
22356 }
22357 if m.Header == nil {
22358 m.Header = &ResponseHeader{}
22359 }
22360 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
22361 return err
22362 }
22363 iNdEx = postIndex
22364 default:
22365 iNdEx = preIndex
22366 skippy, err := skipRpc(dAtA[iNdEx:])
22367 if err != nil {
22368 return err
22369 }
22370 if skippy < 0 {
22371 return ErrInvalidLengthRpc
22372 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022373 if (iNdEx + skippy) < 0 {
22374 return ErrInvalidLengthRpc
22375 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022376 if (iNdEx + skippy) > l {
22377 return io.ErrUnexpectedEOF
22378 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022379 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000022380 iNdEx += skippy
22381 }
22382 }
22383
22384 if iNdEx > l {
22385 return io.ErrUnexpectedEOF
22386 }
22387 return nil
22388}
22389func (m *AuthDisableResponse) Unmarshal(dAtA []byte) error {
22390 l := len(dAtA)
22391 iNdEx := 0
22392 for iNdEx < l {
22393 preIndex := iNdEx
22394 var wire uint64
22395 for shift := uint(0); ; shift += 7 {
22396 if shift >= 64 {
22397 return ErrIntOverflowRpc
22398 }
22399 if iNdEx >= l {
22400 return io.ErrUnexpectedEOF
22401 }
22402 b := dAtA[iNdEx]
22403 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022404 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022405 if b < 0x80 {
22406 break
22407 }
22408 }
22409 fieldNum := int32(wire >> 3)
22410 wireType := int(wire & 0x7)
22411 if wireType == 4 {
22412 return fmt.Errorf("proto: AuthDisableResponse: wiretype end group for non-group")
22413 }
22414 if fieldNum <= 0 {
22415 return fmt.Errorf("proto: AuthDisableResponse: illegal tag %d (wire type %d)", fieldNum, wire)
22416 }
22417 switch fieldNum {
22418 case 1:
22419 if wireType != 2 {
22420 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
22421 }
22422 var msglen int
22423 for shift := uint(0); ; shift += 7 {
22424 if shift >= 64 {
22425 return ErrIntOverflowRpc
22426 }
22427 if iNdEx >= l {
22428 return io.ErrUnexpectedEOF
22429 }
22430 b := dAtA[iNdEx]
22431 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022432 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022433 if b < 0x80 {
22434 break
22435 }
22436 }
22437 if msglen < 0 {
22438 return ErrInvalidLengthRpc
22439 }
22440 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022441 if postIndex < 0 {
22442 return ErrInvalidLengthRpc
22443 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022444 if postIndex > l {
22445 return io.ErrUnexpectedEOF
22446 }
22447 if m.Header == nil {
22448 m.Header = &ResponseHeader{}
22449 }
22450 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
22451 return err
22452 }
22453 iNdEx = postIndex
22454 default:
22455 iNdEx = preIndex
22456 skippy, err := skipRpc(dAtA[iNdEx:])
22457 if err != nil {
22458 return err
22459 }
22460 if skippy < 0 {
22461 return ErrInvalidLengthRpc
22462 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022463 if (iNdEx + skippy) < 0 {
22464 return ErrInvalidLengthRpc
22465 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022466 if (iNdEx + skippy) > l {
22467 return io.ErrUnexpectedEOF
22468 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022469 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000022470 iNdEx += skippy
22471 }
22472 }
22473
22474 if iNdEx > l {
22475 return io.ErrUnexpectedEOF
22476 }
22477 return nil
22478}
22479func (m *AuthenticateResponse) Unmarshal(dAtA []byte) error {
22480 l := len(dAtA)
22481 iNdEx := 0
22482 for iNdEx < l {
22483 preIndex := iNdEx
22484 var wire uint64
22485 for shift := uint(0); ; shift += 7 {
22486 if shift >= 64 {
22487 return ErrIntOverflowRpc
22488 }
22489 if iNdEx >= l {
22490 return io.ErrUnexpectedEOF
22491 }
22492 b := dAtA[iNdEx]
22493 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022494 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022495 if b < 0x80 {
22496 break
22497 }
22498 }
22499 fieldNum := int32(wire >> 3)
22500 wireType := int(wire & 0x7)
22501 if wireType == 4 {
22502 return fmt.Errorf("proto: AuthenticateResponse: wiretype end group for non-group")
22503 }
22504 if fieldNum <= 0 {
22505 return fmt.Errorf("proto: AuthenticateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
22506 }
22507 switch fieldNum {
22508 case 1:
22509 if wireType != 2 {
22510 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
22511 }
22512 var msglen int
22513 for shift := uint(0); ; shift += 7 {
22514 if shift >= 64 {
22515 return ErrIntOverflowRpc
22516 }
22517 if iNdEx >= l {
22518 return io.ErrUnexpectedEOF
22519 }
22520 b := dAtA[iNdEx]
22521 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022522 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022523 if b < 0x80 {
22524 break
22525 }
22526 }
22527 if msglen < 0 {
22528 return ErrInvalidLengthRpc
22529 }
22530 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022531 if postIndex < 0 {
22532 return ErrInvalidLengthRpc
22533 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022534 if postIndex > l {
22535 return io.ErrUnexpectedEOF
22536 }
22537 if m.Header == nil {
22538 m.Header = &ResponseHeader{}
22539 }
22540 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
22541 return err
22542 }
22543 iNdEx = postIndex
22544 case 2:
22545 if wireType != 2 {
22546 return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
22547 }
22548 var stringLen uint64
22549 for shift := uint(0); ; shift += 7 {
22550 if shift >= 64 {
22551 return ErrIntOverflowRpc
22552 }
22553 if iNdEx >= l {
22554 return io.ErrUnexpectedEOF
22555 }
22556 b := dAtA[iNdEx]
22557 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022558 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022559 if b < 0x80 {
22560 break
22561 }
22562 }
22563 intStringLen := int(stringLen)
22564 if intStringLen < 0 {
22565 return ErrInvalidLengthRpc
22566 }
22567 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022568 if postIndex < 0 {
22569 return ErrInvalidLengthRpc
22570 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022571 if postIndex > l {
22572 return io.ErrUnexpectedEOF
22573 }
22574 m.Token = string(dAtA[iNdEx:postIndex])
22575 iNdEx = postIndex
22576 default:
22577 iNdEx = preIndex
22578 skippy, err := skipRpc(dAtA[iNdEx:])
22579 if err != nil {
22580 return err
22581 }
22582 if skippy < 0 {
22583 return ErrInvalidLengthRpc
22584 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022585 if (iNdEx + skippy) < 0 {
22586 return ErrInvalidLengthRpc
22587 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022588 if (iNdEx + skippy) > l {
22589 return io.ErrUnexpectedEOF
22590 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022591 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000022592 iNdEx += skippy
22593 }
22594 }
22595
22596 if iNdEx > l {
22597 return io.ErrUnexpectedEOF
22598 }
22599 return nil
22600}
22601func (m *AuthUserAddResponse) Unmarshal(dAtA []byte) error {
22602 l := len(dAtA)
22603 iNdEx := 0
22604 for iNdEx < l {
22605 preIndex := iNdEx
22606 var wire uint64
22607 for shift := uint(0); ; shift += 7 {
22608 if shift >= 64 {
22609 return ErrIntOverflowRpc
22610 }
22611 if iNdEx >= l {
22612 return io.ErrUnexpectedEOF
22613 }
22614 b := dAtA[iNdEx]
22615 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022616 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022617 if b < 0x80 {
22618 break
22619 }
22620 }
22621 fieldNum := int32(wire >> 3)
22622 wireType := int(wire & 0x7)
22623 if wireType == 4 {
22624 return fmt.Errorf("proto: AuthUserAddResponse: wiretype end group for non-group")
22625 }
22626 if fieldNum <= 0 {
22627 return fmt.Errorf("proto: AuthUserAddResponse: illegal tag %d (wire type %d)", fieldNum, wire)
22628 }
22629 switch fieldNum {
22630 case 1:
22631 if wireType != 2 {
22632 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
22633 }
22634 var msglen int
22635 for shift := uint(0); ; shift += 7 {
22636 if shift >= 64 {
22637 return ErrIntOverflowRpc
22638 }
22639 if iNdEx >= l {
22640 return io.ErrUnexpectedEOF
22641 }
22642 b := dAtA[iNdEx]
22643 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022644 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022645 if b < 0x80 {
22646 break
22647 }
22648 }
22649 if msglen < 0 {
22650 return ErrInvalidLengthRpc
22651 }
22652 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022653 if postIndex < 0 {
22654 return ErrInvalidLengthRpc
22655 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022656 if postIndex > l {
22657 return io.ErrUnexpectedEOF
22658 }
22659 if m.Header == nil {
22660 m.Header = &ResponseHeader{}
22661 }
22662 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
22663 return err
22664 }
22665 iNdEx = postIndex
22666 default:
22667 iNdEx = preIndex
22668 skippy, err := skipRpc(dAtA[iNdEx:])
22669 if err != nil {
22670 return err
22671 }
22672 if skippy < 0 {
22673 return ErrInvalidLengthRpc
22674 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022675 if (iNdEx + skippy) < 0 {
22676 return ErrInvalidLengthRpc
22677 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022678 if (iNdEx + skippy) > l {
22679 return io.ErrUnexpectedEOF
22680 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022681 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000022682 iNdEx += skippy
22683 }
22684 }
22685
22686 if iNdEx > l {
22687 return io.ErrUnexpectedEOF
22688 }
22689 return nil
22690}
22691func (m *AuthUserGetResponse) Unmarshal(dAtA []byte) error {
22692 l := len(dAtA)
22693 iNdEx := 0
22694 for iNdEx < l {
22695 preIndex := iNdEx
22696 var wire uint64
22697 for shift := uint(0); ; shift += 7 {
22698 if shift >= 64 {
22699 return ErrIntOverflowRpc
22700 }
22701 if iNdEx >= l {
22702 return io.ErrUnexpectedEOF
22703 }
22704 b := dAtA[iNdEx]
22705 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022706 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022707 if b < 0x80 {
22708 break
22709 }
22710 }
22711 fieldNum := int32(wire >> 3)
22712 wireType := int(wire & 0x7)
22713 if wireType == 4 {
22714 return fmt.Errorf("proto: AuthUserGetResponse: wiretype end group for non-group")
22715 }
22716 if fieldNum <= 0 {
22717 return fmt.Errorf("proto: AuthUserGetResponse: illegal tag %d (wire type %d)", fieldNum, wire)
22718 }
22719 switch fieldNum {
22720 case 1:
22721 if wireType != 2 {
22722 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
22723 }
22724 var msglen int
22725 for shift := uint(0); ; shift += 7 {
22726 if shift >= 64 {
22727 return ErrIntOverflowRpc
22728 }
22729 if iNdEx >= l {
22730 return io.ErrUnexpectedEOF
22731 }
22732 b := dAtA[iNdEx]
22733 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022734 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022735 if b < 0x80 {
22736 break
22737 }
22738 }
22739 if msglen < 0 {
22740 return ErrInvalidLengthRpc
22741 }
22742 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022743 if postIndex < 0 {
22744 return ErrInvalidLengthRpc
22745 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022746 if postIndex > l {
22747 return io.ErrUnexpectedEOF
22748 }
22749 if m.Header == nil {
22750 m.Header = &ResponseHeader{}
22751 }
22752 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
22753 return err
22754 }
22755 iNdEx = postIndex
22756 case 2:
22757 if wireType != 2 {
22758 return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType)
22759 }
22760 var stringLen uint64
22761 for shift := uint(0); ; shift += 7 {
22762 if shift >= 64 {
22763 return ErrIntOverflowRpc
22764 }
22765 if iNdEx >= l {
22766 return io.ErrUnexpectedEOF
22767 }
22768 b := dAtA[iNdEx]
22769 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022770 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022771 if b < 0x80 {
22772 break
22773 }
22774 }
22775 intStringLen := int(stringLen)
22776 if intStringLen < 0 {
22777 return ErrInvalidLengthRpc
22778 }
22779 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022780 if postIndex < 0 {
22781 return ErrInvalidLengthRpc
22782 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022783 if postIndex > l {
22784 return io.ErrUnexpectedEOF
22785 }
22786 m.Roles = append(m.Roles, string(dAtA[iNdEx:postIndex]))
22787 iNdEx = postIndex
22788 default:
22789 iNdEx = preIndex
22790 skippy, err := skipRpc(dAtA[iNdEx:])
22791 if err != nil {
22792 return err
22793 }
22794 if skippy < 0 {
22795 return ErrInvalidLengthRpc
22796 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022797 if (iNdEx + skippy) < 0 {
22798 return ErrInvalidLengthRpc
22799 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022800 if (iNdEx + skippy) > l {
22801 return io.ErrUnexpectedEOF
22802 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022803 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000022804 iNdEx += skippy
22805 }
22806 }
22807
22808 if iNdEx > l {
22809 return io.ErrUnexpectedEOF
22810 }
22811 return nil
22812}
22813func (m *AuthUserDeleteResponse) Unmarshal(dAtA []byte) error {
22814 l := len(dAtA)
22815 iNdEx := 0
22816 for iNdEx < l {
22817 preIndex := iNdEx
22818 var wire uint64
22819 for shift := uint(0); ; shift += 7 {
22820 if shift >= 64 {
22821 return ErrIntOverflowRpc
22822 }
22823 if iNdEx >= l {
22824 return io.ErrUnexpectedEOF
22825 }
22826 b := dAtA[iNdEx]
22827 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022828 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022829 if b < 0x80 {
22830 break
22831 }
22832 }
22833 fieldNum := int32(wire >> 3)
22834 wireType := int(wire & 0x7)
22835 if wireType == 4 {
22836 return fmt.Errorf("proto: AuthUserDeleteResponse: wiretype end group for non-group")
22837 }
22838 if fieldNum <= 0 {
22839 return fmt.Errorf("proto: AuthUserDeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
22840 }
22841 switch fieldNum {
22842 case 1:
22843 if wireType != 2 {
22844 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
22845 }
22846 var msglen int
22847 for shift := uint(0); ; shift += 7 {
22848 if shift >= 64 {
22849 return ErrIntOverflowRpc
22850 }
22851 if iNdEx >= l {
22852 return io.ErrUnexpectedEOF
22853 }
22854 b := dAtA[iNdEx]
22855 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022856 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022857 if b < 0x80 {
22858 break
22859 }
22860 }
22861 if msglen < 0 {
22862 return ErrInvalidLengthRpc
22863 }
22864 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022865 if postIndex < 0 {
22866 return ErrInvalidLengthRpc
22867 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022868 if postIndex > l {
22869 return io.ErrUnexpectedEOF
22870 }
22871 if m.Header == nil {
22872 m.Header = &ResponseHeader{}
22873 }
22874 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
22875 return err
22876 }
22877 iNdEx = postIndex
22878 default:
22879 iNdEx = preIndex
22880 skippy, err := skipRpc(dAtA[iNdEx:])
22881 if err != nil {
22882 return err
22883 }
22884 if skippy < 0 {
22885 return ErrInvalidLengthRpc
22886 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022887 if (iNdEx + skippy) < 0 {
22888 return ErrInvalidLengthRpc
22889 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022890 if (iNdEx + skippy) > l {
22891 return io.ErrUnexpectedEOF
22892 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022893 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000022894 iNdEx += skippy
22895 }
22896 }
22897
22898 if iNdEx > l {
22899 return io.ErrUnexpectedEOF
22900 }
22901 return nil
22902}
22903func (m *AuthUserChangePasswordResponse) Unmarshal(dAtA []byte) error {
22904 l := len(dAtA)
22905 iNdEx := 0
22906 for iNdEx < l {
22907 preIndex := iNdEx
22908 var wire uint64
22909 for shift := uint(0); ; shift += 7 {
22910 if shift >= 64 {
22911 return ErrIntOverflowRpc
22912 }
22913 if iNdEx >= l {
22914 return io.ErrUnexpectedEOF
22915 }
22916 b := dAtA[iNdEx]
22917 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022918 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022919 if b < 0x80 {
22920 break
22921 }
22922 }
22923 fieldNum := int32(wire >> 3)
22924 wireType := int(wire & 0x7)
22925 if wireType == 4 {
22926 return fmt.Errorf("proto: AuthUserChangePasswordResponse: wiretype end group for non-group")
22927 }
22928 if fieldNum <= 0 {
22929 return fmt.Errorf("proto: AuthUserChangePasswordResponse: illegal tag %d (wire type %d)", fieldNum, wire)
22930 }
22931 switch fieldNum {
22932 case 1:
22933 if wireType != 2 {
22934 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
22935 }
22936 var msglen int
22937 for shift := uint(0); ; shift += 7 {
22938 if shift >= 64 {
22939 return ErrIntOverflowRpc
22940 }
22941 if iNdEx >= l {
22942 return io.ErrUnexpectedEOF
22943 }
22944 b := dAtA[iNdEx]
22945 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022946 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000022947 if b < 0x80 {
22948 break
22949 }
22950 }
22951 if msglen < 0 {
22952 return ErrInvalidLengthRpc
22953 }
22954 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022955 if postIndex < 0 {
22956 return ErrInvalidLengthRpc
22957 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022958 if postIndex > l {
22959 return io.ErrUnexpectedEOF
22960 }
22961 if m.Header == nil {
22962 m.Header = &ResponseHeader{}
22963 }
22964 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
22965 return err
22966 }
22967 iNdEx = postIndex
22968 default:
22969 iNdEx = preIndex
22970 skippy, err := skipRpc(dAtA[iNdEx:])
22971 if err != nil {
22972 return err
22973 }
22974 if skippy < 0 {
22975 return ErrInvalidLengthRpc
22976 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022977 if (iNdEx + skippy) < 0 {
22978 return ErrInvalidLengthRpc
22979 }
divyadesai81bb7ba2020-03-11 11:45:23 +000022980 if (iNdEx + skippy) > l {
22981 return io.ErrUnexpectedEOF
22982 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000022983 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000022984 iNdEx += skippy
22985 }
22986 }
22987
22988 if iNdEx > l {
22989 return io.ErrUnexpectedEOF
22990 }
22991 return nil
22992}
22993func (m *AuthUserGrantRoleResponse) Unmarshal(dAtA []byte) error {
22994 l := len(dAtA)
22995 iNdEx := 0
22996 for iNdEx < l {
22997 preIndex := iNdEx
22998 var wire uint64
22999 for shift := uint(0); ; shift += 7 {
23000 if shift >= 64 {
23001 return ErrIntOverflowRpc
23002 }
23003 if iNdEx >= l {
23004 return io.ErrUnexpectedEOF
23005 }
23006 b := dAtA[iNdEx]
23007 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023008 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000023009 if b < 0x80 {
23010 break
23011 }
23012 }
23013 fieldNum := int32(wire >> 3)
23014 wireType := int(wire & 0x7)
23015 if wireType == 4 {
23016 return fmt.Errorf("proto: AuthUserGrantRoleResponse: wiretype end group for non-group")
23017 }
23018 if fieldNum <= 0 {
23019 return fmt.Errorf("proto: AuthUserGrantRoleResponse: illegal tag %d (wire type %d)", fieldNum, wire)
23020 }
23021 switch fieldNum {
23022 case 1:
23023 if wireType != 2 {
23024 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
23025 }
23026 var msglen int
23027 for shift := uint(0); ; shift += 7 {
23028 if shift >= 64 {
23029 return ErrIntOverflowRpc
23030 }
23031 if iNdEx >= l {
23032 return io.ErrUnexpectedEOF
23033 }
23034 b := dAtA[iNdEx]
23035 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023036 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000023037 if b < 0x80 {
23038 break
23039 }
23040 }
23041 if msglen < 0 {
23042 return ErrInvalidLengthRpc
23043 }
23044 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023045 if postIndex < 0 {
23046 return ErrInvalidLengthRpc
23047 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023048 if postIndex > l {
23049 return io.ErrUnexpectedEOF
23050 }
23051 if m.Header == nil {
23052 m.Header = &ResponseHeader{}
23053 }
23054 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
23055 return err
23056 }
23057 iNdEx = postIndex
23058 default:
23059 iNdEx = preIndex
23060 skippy, err := skipRpc(dAtA[iNdEx:])
23061 if err != nil {
23062 return err
23063 }
23064 if skippy < 0 {
23065 return ErrInvalidLengthRpc
23066 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023067 if (iNdEx + skippy) < 0 {
23068 return ErrInvalidLengthRpc
23069 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023070 if (iNdEx + skippy) > l {
23071 return io.ErrUnexpectedEOF
23072 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023073 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000023074 iNdEx += skippy
23075 }
23076 }
23077
23078 if iNdEx > l {
23079 return io.ErrUnexpectedEOF
23080 }
23081 return nil
23082}
23083func (m *AuthUserRevokeRoleResponse) Unmarshal(dAtA []byte) error {
23084 l := len(dAtA)
23085 iNdEx := 0
23086 for iNdEx < l {
23087 preIndex := iNdEx
23088 var wire uint64
23089 for shift := uint(0); ; shift += 7 {
23090 if shift >= 64 {
23091 return ErrIntOverflowRpc
23092 }
23093 if iNdEx >= l {
23094 return io.ErrUnexpectedEOF
23095 }
23096 b := dAtA[iNdEx]
23097 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023098 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000023099 if b < 0x80 {
23100 break
23101 }
23102 }
23103 fieldNum := int32(wire >> 3)
23104 wireType := int(wire & 0x7)
23105 if wireType == 4 {
23106 return fmt.Errorf("proto: AuthUserRevokeRoleResponse: wiretype end group for non-group")
23107 }
23108 if fieldNum <= 0 {
23109 return fmt.Errorf("proto: AuthUserRevokeRoleResponse: illegal tag %d (wire type %d)", fieldNum, wire)
23110 }
23111 switch fieldNum {
23112 case 1:
23113 if wireType != 2 {
23114 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
23115 }
23116 var msglen int
23117 for shift := uint(0); ; shift += 7 {
23118 if shift >= 64 {
23119 return ErrIntOverflowRpc
23120 }
23121 if iNdEx >= l {
23122 return io.ErrUnexpectedEOF
23123 }
23124 b := dAtA[iNdEx]
23125 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023126 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000023127 if b < 0x80 {
23128 break
23129 }
23130 }
23131 if msglen < 0 {
23132 return ErrInvalidLengthRpc
23133 }
23134 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023135 if postIndex < 0 {
23136 return ErrInvalidLengthRpc
23137 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023138 if postIndex > l {
23139 return io.ErrUnexpectedEOF
23140 }
23141 if m.Header == nil {
23142 m.Header = &ResponseHeader{}
23143 }
23144 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
23145 return err
23146 }
23147 iNdEx = postIndex
23148 default:
23149 iNdEx = preIndex
23150 skippy, err := skipRpc(dAtA[iNdEx:])
23151 if err != nil {
23152 return err
23153 }
23154 if skippy < 0 {
23155 return ErrInvalidLengthRpc
23156 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023157 if (iNdEx + skippy) < 0 {
23158 return ErrInvalidLengthRpc
23159 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023160 if (iNdEx + skippy) > l {
23161 return io.ErrUnexpectedEOF
23162 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023163 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000023164 iNdEx += skippy
23165 }
23166 }
23167
23168 if iNdEx > l {
23169 return io.ErrUnexpectedEOF
23170 }
23171 return nil
23172}
23173func (m *AuthRoleAddResponse) Unmarshal(dAtA []byte) error {
23174 l := len(dAtA)
23175 iNdEx := 0
23176 for iNdEx < l {
23177 preIndex := iNdEx
23178 var wire uint64
23179 for shift := uint(0); ; shift += 7 {
23180 if shift >= 64 {
23181 return ErrIntOverflowRpc
23182 }
23183 if iNdEx >= l {
23184 return io.ErrUnexpectedEOF
23185 }
23186 b := dAtA[iNdEx]
23187 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023188 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000023189 if b < 0x80 {
23190 break
23191 }
23192 }
23193 fieldNum := int32(wire >> 3)
23194 wireType := int(wire & 0x7)
23195 if wireType == 4 {
23196 return fmt.Errorf("proto: AuthRoleAddResponse: wiretype end group for non-group")
23197 }
23198 if fieldNum <= 0 {
23199 return fmt.Errorf("proto: AuthRoleAddResponse: illegal tag %d (wire type %d)", fieldNum, wire)
23200 }
23201 switch fieldNum {
23202 case 1:
23203 if wireType != 2 {
23204 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
23205 }
23206 var msglen int
23207 for shift := uint(0); ; shift += 7 {
23208 if shift >= 64 {
23209 return ErrIntOverflowRpc
23210 }
23211 if iNdEx >= l {
23212 return io.ErrUnexpectedEOF
23213 }
23214 b := dAtA[iNdEx]
23215 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023216 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000023217 if b < 0x80 {
23218 break
23219 }
23220 }
23221 if msglen < 0 {
23222 return ErrInvalidLengthRpc
23223 }
23224 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023225 if postIndex < 0 {
23226 return ErrInvalidLengthRpc
23227 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023228 if postIndex > l {
23229 return io.ErrUnexpectedEOF
23230 }
23231 if m.Header == nil {
23232 m.Header = &ResponseHeader{}
23233 }
23234 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
23235 return err
23236 }
23237 iNdEx = postIndex
23238 default:
23239 iNdEx = preIndex
23240 skippy, err := skipRpc(dAtA[iNdEx:])
23241 if err != nil {
23242 return err
23243 }
23244 if skippy < 0 {
23245 return ErrInvalidLengthRpc
23246 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023247 if (iNdEx + skippy) < 0 {
23248 return ErrInvalidLengthRpc
23249 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023250 if (iNdEx + skippy) > l {
23251 return io.ErrUnexpectedEOF
23252 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023253 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000023254 iNdEx += skippy
23255 }
23256 }
23257
23258 if iNdEx > l {
23259 return io.ErrUnexpectedEOF
23260 }
23261 return nil
23262}
23263func (m *AuthRoleGetResponse) Unmarshal(dAtA []byte) error {
23264 l := len(dAtA)
23265 iNdEx := 0
23266 for iNdEx < l {
23267 preIndex := iNdEx
23268 var wire uint64
23269 for shift := uint(0); ; shift += 7 {
23270 if shift >= 64 {
23271 return ErrIntOverflowRpc
23272 }
23273 if iNdEx >= l {
23274 return io.ErrUnexpectedEOF
23275 }
23276 b := dAtA[iNdEx]
23277 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023278 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000023279 if b < 0x80 {
23280 break
23281 }
23282 }
23283 fieldNum := int32(wire >> 3)
23284 wireType := int(wire & 0x7)
23285 if wireType == 4 {
23286 return fmt.Errorf("proto: AuthRoleGetResponse: wiretype end group for non-group")
23287 }
23288 if fieldNum <= 0 {
23289 return fmt.Errorf("proto: AuthRoleGetResponse: illegal tag %d (wire type %d)", fieldNum, wire)
23290 }
23291 switch fieldNum {
23292 case 1:
23293 if wireType != 2 {
23294 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
23295 }
23296 var msglen int
23297 for shift := uint(0); ; shift += 7 {
23298 if shift >= 64 {
23299 return ErrIntOverflowRpc
23300 }
23301 if iNdEx >= l {
23302 return io.ErrUnexpectedEOF
23303 }
23304 b := dAtA[iNdEx]
23305 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023306 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000023307 if b < 0x80 {
23308 break
23309 }
23310 }
23311 if msglen < 0 {
23312 return ErrInvalidLengthRpc
23313 }
23314 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023315 if postIndex < 0 {
23316 return ErrInvalidLengthRpc
23317 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023318 if postIndex > l {
23319 return io.ErrUnexpectedEOF
23320 }
23321 if m.Header == nil {
23322 m.Header = &ResponseHeader{}
23323 }
23324 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
23325 return err
23326 }
23327 iNdEx = postIndex
23328 case 2:
23329 if wireType != 2 {
23330 return fmt.Errorf("proto: wrong wireType = %d for field Perm", wireType)
23331 }
23332 var msglen int
23333 for shift := uint(0); ; shift += 7 {
23334 if shift >= 64 {
23335 return ErrIntOverflowRpc
23336 }
23337 if iNdEx >= l {
23338 return io.ErrUnexpectedEOF
23339 }
23340 b := dAtA[iNdEx]
23341 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023342 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000023343 if b < 0x80 {
23344 break
23345 }
23346 }
23347 if msglen < 0 {
23348 return ErrInvalidLengthRpc
23349 }
23350 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023351 if postIndex < 0 {
23352 return ErrInvalidLengthRpc
23353 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023354 if postIndex > l {
23355 return io.ErrUnexpectedEOF
23356 }
23357 m.Perm = append(m.Perm, &authpb.Permission{})
23358 if err := m.Perm[len(m.Perm)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
23359 return err
23360 }
23361 iNdEx = postIndex
23362 default:
23363 iNdEx = preIndex
23364 skippy, err := skipRpc(dAtA[iNdEx:])
23365 if err != nil {
23366 return err
23367 }
23368 if skippy < 0 {
23369 return ErrInvalidLengthRpc
23370 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023371 if (iNdEx + skippy) < 0 {
23372 return ErrInvalidLengthRpc
23373 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023374 if (iNdEx + skippy) > l {
23375 return io.ErrUnexpectedEOF
23376 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023377 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000023378 iNdEx += skippy
23379 }
23380 }
23381
23382 if iNdEx > l {
23383 return io.ErrUnexpectedEOF
23384 }
23385 return nil
23386}
23387func (m *AuthRoleListResponse) Unmarshal(dAtA []byte) error {
23388 l := len(dAtA)
23389 iNdEx := 0
23390 for iNdEx < l {
23391 preIndex := iNdEx
23392 var wire uint64
23393 for shift := uint(0); ; shift += 7 {
23394 if shift >= 64 {
23395 return ErrIntOverflowRpc
23396 }
23397 if iNdEx >= l {
23398 return io.ErrUnexpectedEOF
23399 }
23400 b := dAtA[iNdEx]
23401 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023402 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000023403 if b < 0x80 {
23404 break
23405 }
23406 }
23407 fieldNum := int32(wire >> 3)
23408 wireType := int(wire & 0x7)
23409 if wireType == 4 {
23410 return fmt.Errorf("proto: AuthRoleListResponse: wiretype end group for non-group")
23411 }
23412 if fieldNum <= 0 {
23413 return fmt.Errorf("proto: AuthRoleListResponse: illegal tag %d (wire type %d)", fieldNum, wire)
23414 }
23415 switch fieldNum {
23416 case 1:
23417 if wireType != 2 {
23418 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
23419 }
23420 var msglen int
23421 for shift := uint(0); ; shift += 7 {
23422 if shift >= 64 {
23423 return ErrIntOverflowRpc
23424 }
23425 if iNdEx >= l {
23426 return io.ErrUnexpectedEOF
23427 }
23428 b := dAtA[iNdEx]
23429 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023430 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000023431 if b < 0x80 {
23432 break
23433 }
23434 }
23435 if msglen < 0 {
23436 return ErrInvalidLengthRpc
23437 }
23438 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023439 if postIndex < 0 {
23440 return ErrInvalidLengthRpc
23441 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023442 if postIndex > l {
23443 return io.ErrUnexpectedEOF
23444 }
23445 if m.Header == nil {
23446 m.Header = &ResponseHeader{}
23447 }
23448 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
23449 return err
23450 }
23451 iNdEx = postIndex
23452 case 2:
23453 if wireType != 2 {
23454 return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType)
23455 }
23456 var stringLen uint64
23457 for shift := uint(0); ; shift += 7 {
23458 if shift >= 64 {
23459 return ErrIntOverflowRpc
23460 }
23461 if iNdEx >= l {
23462 return io.ErrUnexpectedEOF
23463 }
23464 b := dAtA[iNdEx]
23465 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023466 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000023467 if b < 0x80 {
23468 break
23469 }
23470 }
23471 intStringLen := int(stringLen)
23472 if intStringLen < 0 {
23473 return ErrInvalidLengthRpc
23474 }
23475 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023476 if postIndex < 0 {
23477 return ErrInvalidLengthRpc
23478 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023479 if postIndex > l {
23480 return io.ErrUnexpectedEOF
23481 }
23482 m.Roles = append(m.Roles, string(dAtA[iNdEx:postIndex]))
23483 iNdEx = postIndex
23484 default:
23485 iNdEx = preIndex
23486 skippy, err := skipRpc(dAtA[iNdEx:])
23487 if err != nil {
23488 return err
23489 }
23490 if skippy < 0 {
23491 return ErrInvalidLengthRpc
23492 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023493 if (iNdEx + skippy) < 0 {
23494 return ErrInvalidLengthRpc
23495 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023496 if (iNdEx + skippy) > l {
23497 return io.ErrUnexpectedEOF
23498 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023499 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000023500 iNdEx += skippy
23501 }
23502 }
23503
23504 if iNdEx > l {
23505 return io.ErrUnexpectedEOF
23506 }
23507 return nil
23508}
23509func (m *AuthUserListResponse) Unmarshal(dAtA []byte) error {
23510 l := len(dAtA)
23511 iNdEx := 0
23512 for iNdEx < l {
23513 preIndex := iNdEx
23514 var wire uint64
23515 for shift := uint(0); ; shift += 7 {
23516 if shift >= 64 {
23517 return ErrIntOverflowRpc
23518 }
23519 if iNdEx >= l {
23520 return io.ErrUnexpectedEOF
23521 }
23522 b := dAtA[iNdEx]
23523 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023524 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000023525 if b < 0x80 {
23526 break
23527 }
23528 }
23529 fieldNum := int32(wire >> 3)
23530 wireType := int(wire & 0x7)
23531 if wireType == 4 {
23532 return fmt.Errorf("proto: AuthUserListResponse: wiretype end group for non-group")
23533 }
23534 if fieldNum <= 0 {
23535 return fmt.Errorf("proto: AuthUserListResponse: illegal tag %d (wire type %d)", fieldNum, wire)
23536 }
23537 switch fieldNum {
23538 case 1:
23539 if wireType != 2 {
23540 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
23541 }
23542 var msglen int
23543 for shift := uint(0); ; shift += 7 {
23544 if shift >= 64 {
23545 return ErrIntOverflowRpc
23546 }
23547 if iNdEx >= l {
23548 return io.ErrUnexpectedEOF
23549 }
23550 b := dAtA[iNdEx]
23551 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023552 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000023553 if b < 0x80 {
23554 break
23555 }
23556 }
23557 if msglen < 0 {
23558 return ErrInvalidLengthRpc
23559 }
23560 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023561 if postIndex < 0 {
23562 return ErrInvalidLengthRpc
23563 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023564 if postIndex > l {
23565 return io.ErrUnexpectedEOF
23566 }
23567 if m.Header == nil {
23568 m.Header = &ResponseHeader{}
23569 }
23570 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
23571 return err
23572 }
23573 iNdEx = postIndex
23574 case 2:
23575 if wireType != 2 {
23576 return fmt.Errorf("proto: wrong wireType = %d for field Users", wireType)
23577 }
23578 var stringLen uint64
23579 for shift := uint(0); ; shift += 7 {
23580 if shift >= 64 {
23581 return ErrIntOverflowRpc
23582 }
23583 if iNdEx >= l {
23584 return io.ErrUnexpectedEOF
23585 }
23586 b := dAtA[iNdEx]
23587 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023588 stringLen |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000023589 if b < 0x80 {
23590 break
23591 }
23592 }
23593 intStringLen := int(stringLen)
23594 if intStringLen < 0 {
23595 return ErrInvalidLengthRpc
23596 }
23597 postIndex := iNdEx + intStringLen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023598 if postIndex < 0 {
23599 return ErrInvalidLengthRpc
23600 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023601 if postIndex > l {
23602 return io.ErrUnexpectedEOF
23603 }
23604 m.Users = append(m.Users, string(dAtA[iNdEx:postIndex]))
23605 iNdEx = postIndex
23606 default:
23607 iNdEx = preIndex
23608 skippy, err := skipRpc(dAtA[iNdEx:])
23609 if err != nil {
23610 return err
23611 }
23612 if skippy < 0 {
23613 return ErrInvalidLengthRpc
23614 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023615 if (iNdEx + skippy) < 0 {
23616 return ErrInvalidLengthRpc
23617 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023618 if (iNdEx + skippy) > l {
23619 return io.ErrUnexpectedEOF
23620 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023621 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000023622 iNdEx += skippy
23623 }
23624 }
23625
23626 if iNdEx > l {
23627 return io.ErrUnexpectedEOF
23628 }
23629 return nil
23630}
23631func (m *AuthRoleDeleteResponse) Unmarshal(dAtA []byte) error {
23632 l := len(dAtA)
23633 iNdEx := 0
23634 for iNdEx < l {
23635 preIndex := iNdEx
23636 var wire uint64
23637 for shift := uint(0); ; shift += 7 {
23638 if shift >= 64 {
23639 return ErrIntOverflowRpc
23640 }
23641 if iNdEx >= l {
23642 return io.ErrUnexpectedEOF
23643 }
23644 b := dAtA[iNdEx]
23645 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023646 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000023647 if b < 0x80 {
23648 break
23649 }
23650 }
23651 fieldNum := int32(wire >> 3)
23652 wireType := int(wire & 0x7)
23653 if wireType == 4 {
23654 return fmt.Errorf("proto: AuthRoleDeleteResponse: wiretype end group for non-group")
23655 }
23656 if fieldNum <= 0 {
23657 return fmt.Errorf("proto: AuthRoleDeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
23658 }
23659 switch fieldNum {
23660 case 1:
23661 if wireType != 2 {
23662 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
23663 }
23664 var msglen int
23665 for shift := uint(0); ; shift += 7 {
23666 if shift >= 64 {
23667 return ErrIntOverflowRpc
23668 }
23669 if iNdEx >= l {
23670 return io.ErrUnexpectedEOF
23671 }
23672 b := dAtA[iNdEx]
23673 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023674 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000023675 if b < 0x80 {
23676 break
23677 }
23678 }
23679 if msglen < 0 {
23680 return ErrInvalidLengthRpc
23681 }
23682 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023683 if postIndex < 0 {
23684 return ErrInvalidLengthRpc
23685 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023686 if postIndex > l {
23687 return io.ErrUnexpectedEOF
23688 }
23689 if m.Header == nil {
23690 m.Header = &ResponseHeader{}
23691 }
23692 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
23693 return err
23694 }
23695 iNdEx = postIndex
23696 default:
23697 iNdEx = preIndex
23698 skippy, err := skipRpc(dAtA[iNdEx:])
23699 if err != nil {
23700 return err
23701 }
23702 if skippy < 0 {
23703 return ErrInvalidLengthRpc
23704 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023705 if (iNdEx + skippy) < 0 {
23706 return ErrInvalidLengthRpc
23707 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023708 if (iNdEx + skippy) > l {
23709 return io.ErrUnexpectedEOF
23710 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023711 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000023712 iNdEx += skippy
23713 }
23714 }
23715
23716 if iNdEx > l {
23717 return io.ErrUnexpectedEOF
23718 }
23719 return nil
23720}
23721func (m *AuthRoleGrantPermissionResponse) Unmarshal(dAtA []byte) error {
23722 l := len(dAtA)
23723 iNdEx := 0
23724 for iNdEx < l {
23725 preIndex := iNdEx
23726 var wire uint64
23727 for shift := uint(0); ; shift += 7 {
23728 if shift >= 64 {
23729 return ErrIntOverflowRpc
23730 }
23731 if iNdEx >= l {
23732 return io.ErrUnexpectedEOF
23733 }
23734 b := dAtA[iNdEx]
23735 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023736 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000023737 if b < 0x80 {
23738 break
23739 }
23740 }
23741 fieldNum := int32(wire >> 3)
23742 wireType := int(wire & 0x7)
23743 if wireType == 4 {
23744 return fmt.Errorf("proto: AuthRoleGrantPermissionResponse: wiretype end group for non-group")
23745 }
23746 if fieldNum <= 0 {
23747 return fmt.Errorf("proto: AuthRoleGrantPermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
23748 }
23749 switch fieldNum {
23750 case 1:
23751 if wireType != 2 {
23752 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
23753 }
23754 var msglen int
23755 for shift := uint(0); ; shift += 7 {
23756 if shift >= 64 {
23757 return ErrIntOverflowRpc
23758 }
23759 if iNdEx >= l {
23760 return io.ErrUnexpectedEOF
23761 }
23762 b := dAtA[iNdEx]
23763 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023764 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000023765 if b < 0x80 {
23766 break
23767 }
23768 }
23769 if msglen < 0 {
23770 return ErrInvalidLengthRpc
23771 }
23772 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023773 if postIndex < 0 {
23774 return ErrInvalidLengthRpc
23775 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023776 if postIndex > l {
23777 return io.ErrUnexpectedEOF
23778 }
23779 if m.Header == nil {
23780 m.Header = &ResponseHeader{}
23781 }
23782 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
23783 return err
23784 }
23785 iNdEx = postIndex
23786 default:
23787 iNdEx = preIndex
23788 skippy, err := skipRpc(dAtA[iNdEx:])
23789 if err != nil {
23790 return err
23791 }
23792 if skippy < 0 {
23793 return ErrInvalidLengthRpc
23794 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023795 if (iNdEx + skippy) < 0 {
23796 return ErrInvalidLengthRpc
23797 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023798 if (iNdEx + skippy) > l {
23799 return io.ErrUnexpectedEOF
23800 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023801 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000023802 iNdEx += skippy
23803 }
23804 }
23805
23806 if iNdEx > l {
23807 return io.ErrUnexpectedEOF
23808 }
23809 return nil
23810}
23811func (m *AuthRoleRevokePermissionResponse) Unmarshal(dAtA []byte) error {
23812 l := len(dAtA)
23813 iNdEx := 0
23814 for iNdEx < l {
23815 preIndex := iNdEx
23816 var wire uint64
23817 for shift := uint(0); ; shift += 7 {
23818 if shift >= 64 {
23819 return ErrIntOverflowRpc
23820 }
23821 if iNdEx >= l {
23822 return io.ErrUnexpectedEOF
23823 }
23824 b := dAtA[iNdEx]
23825 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023826 wire |= uint64(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000023827 if b < 0x80 {
23828 break
23829 }
23830 }
23831 fieldNum := int32(wire >> 3)
23832 wireType := int(wire & 0x7)
23833 if wireType == 4 {
23834 return fmt.Errorf("proto: AuthRoleRevokePermissionResponse: wiretype end group for non-group")
23835 }
23836 if fieldNum <= 0 {
23837 return fmt.Errorf("proto: AuthRoleRevokePermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
23838 }
23839 switch fieldNum {
23840 case 1:
23841 if wireType != 2 {
23842 return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
23843 }
23844 var msglen int
23845 for shift := uint(0); ; shift += 7 {
23846 if shift >= 64 {
23847 return ErrIntOverflowRpc
23848 }
23849 if iNdEx >= l {
23850 return io.ErrUnexpectedEOF
23851 }
23852 b := dAtA[iNdEx]
23853 iNdEx++
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023854 msglen |= int(b&0x7F) << shift
divyadesai81bb7ba2020-03-11 11:45:23 +000023855 if b < 0x80 {
23856 break
23857 }
23858 }
23859 if msglen < 0 {
23860 return ErrInvalidLengthRpc
23861 }
23862 postIndex := iNdEx + msglen
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023863 if postIndex < 0 {
23864 return ErrInvalidLengthRpc
23865 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023866 if postIndex > l {
23867 return io.ErrUnexpectedEOF
23868 }
23869 if m.Header == nil {
23870 m.Header = &ResponseHeader{}
23871 }
23872 if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
23873 return err
23874 }
23875 iNdEx = postIndex
23876 default:
23877 iNdEx = preIndex
23878 skippy, err := skipRpc(dAtA[iNdEx:])
23879 if err != nil {
23880 return err
23881 }
23882 if skippy < 0 {
23883 return ErrInvalidLengthRpc
23884 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023885 if (iNdEx + skippy) < 0 {
23886 return ErrInvalidLengthRpc
23887 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023888 if (iNdEx + skippy) > l {
23889 return io.ErrUnexpectedEOF
23890 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023891 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
divyadesai81bb7ba2020-03-11 11:45:23 +000023892 iNdEx += skippy
23893 }
23894 }
23895
23896 if iNdEx > l {
23897 return io.ErrUnexpectedEOF
23898 }
23899 return nil
23900}
23901func skipRpc(dAtA []byte) (n int, err error) {
23902 l := len(dAtA)
23903 iNdEx := 0
23904 for iNdEx < l {
23905 var wire uint64
23906 for shift := uint(0); ; shift += 7 {
23907 if shift >= 64 {
23908 return 0, ErrIntOverflowRpc
23909 }
23910 if iNdEx >= l {
23911 return 0, io.ErrUnexpectedEOF
23912 }
23913 b := dAtA[iNdEx]
23914 iNdEx++
23915 wire |= (uint64(b) & 0x7F) << shift
23916 if b < 0x80 {
23917 break
23918 }
23919 }
23920 wireType := int(wire & 0x7)
23921 switch wireType {
23922 case 0:
23923 for shift := uint(0); ; shift += 7 {
23924 if shift >= 64 {
23925 return 0, ErrIntOverflowRpc
23926 }
23927 if iNdEx >= l {
23928 return 0, io.ErrUnexpectedEOF
23929 }
23930 iNdEx++
23931 if dAtA[iNdEx-1] < 0x80 {
23932 break
23933 }
23934 }
23935 return iNdEx, nil
23936 case 1:
23937 iNdEx += 8
23938 return iNdEx, nil
23939 case 2:
23940 var length int
23941 for shift := uint(0); ; shift += 7 {
23942 if shift >= 64 {
23943 return 0, ErrIntOverflowRpc
23944 }
23945 if iNdEx >= l {
23946 return 0, io.ErrUnexpectedEOF
23947 }
23948 b := dAtA[iNdEx]
23949 iNdEx++
23950 length |= (int(b) & 0x7F) << shift
23951 if b < 0x80 {
23952 break
23953 }
23954 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023955 if length < 0 {
23956 return 0, ErrInvalidLengthRpc
23957 }
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023958 iNdEx += length
23959 if iNdEx < 0 {
23960 return 0, ErrInvalidLengthRpc
23961 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023962 return iNdEx, nil
23963 case 3:
23964 for {
23965 var innerWire uint64
23966 var start int = iNdEx
23967 for shift := uint(0); ; shift += 7 {
23968 if shift >= 64 {
23969 return 0, ErrIntOverflowRpc
23970 }
23971 if iNdEx >= l {
23972 return 0, io.ErrUnexpectedEOF
23973 }
23974 b := dAtA[iNdEx]
23975 iNdEx++
23976 innerWire |= (uint64(b) & 0x7F) << shift
23977 if b < 0x80 {
23978 break
23979 }
23980 }
23981 innerWireType := int(innerWire & 0x7)
23982 if innerWireType == 4 {
23983 break
23984 }
23985 next, err := skipRpc(dAtA[start:])
23986 if err != nil {
23987 return 0, err
23988 }
23989 iNdEx = start + next
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000023990 if iNdEx < 0 {
23991 return 0, ErrInvalidLengthRpc
23992 }
divyadesai81bb7ba2020-03-11 11:45:23 +000023993 }
23994 return iNdEx, nil
23995 case 4:
23996 return iNdEx, nil
23997 case 5:
23998 iNdEx += 4
23999 return iNdEx, nil
24000 default:
24001 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
24002 }
24003 }
24004 panic("unreachable")
24005}
24006
24007var (
24008 ErrInvalidLengthRpc = fmt.Errorf("proto: negative length found during unmarshaling")
24009 ErrIntOverflowRpc = fmt.Errorf("proto: integer overflow")
24010)