Scott Baker | 2d89798 | 2019-09-24 11:50:08 -0700 | [diff] [blame] | 1 | // Code generated by protoc-gen-gogo. DO NOT EDIT. |
| 2 | // source: rpc.proto |
| 3 | |
| 4 | package etcdserverpb |
| 5 | |
| 6 | import ( |
| 7 | "fmt" |
| 8 | |
| 9 | proto "github.com/golang/protobuf/proto" |
| 10 | |
| 11 | math "math" |
| 12 | |
| 13 | _ "github.com/gogo/protobuf/gogoproto" |
| 14 | |
| 15 | mvccpb "go.etcd.io/etcd/mvcc/mvccpb" |
| 16 | |
| 17 | authpb "go.etcd.io/etcd/auth/authpb" |
| 18 | |
| 19 | context "golang.org/x/net/context" |
| 20 | |
| 21 | grpc "google.golang.org/grpc" |
| 22 | |
| 23 | io "io" |
| 24 | ) |
| 25 | |
| 26 | // Reference imports to suppress errors if they are not otherwise used. |
| 27 | var _ = proto.Marshal |
| 28 | var _ = fmt.Errorf |
| 29 | var _ = math.Inf |
| 30 | |
| 31 | type AlarmType int32 |
| 32 | |
| 33 | const ( |
| 34 | AlarmType_NONE AlarmType = 0 |
| 35 | AlarmType_NOSPACE AlarmType = 1 |
| 36 | AlarmType_CORRUPT AlarmType = 2 |
| 37 | ) |
| 38 | |
| 39 | var AlarmType_name = map[int32]string{ |
| 40 | 0: "NONE", |
| 41 | 1: "NOSPACE", |
| 42 | 2: "CORRUPT", |
| 43 | } |
| 44 | var AlarmType_value = map[string]int32{ |
| 45 | "NONE": 0, |
| 46 | "NOSPACE": 1, |
| 47 | "CORRUPT": 2, |
| 48 | } |
| 49 | |
| 50 | func (x AlarmType) String() string { |
| 51 | return proto.EnumName(AlarmType_name, int32(x)) |
| 52 | } |
| 53 | func (AlarmType) EnumDescriptor() ([]byte, []int) { return fileDescriptorRpc, []int{0} } |
| 54 | |
| 55 | type RangeRequest_SortOrder int32 |
| 56 | |
| 57 | const ( |
| 58 | RangeRequest_NONE RangeRequest_SortOrder = 0 |
| 59 | RangeRequest_ASCEND RangeRequest_SortOrder = 1 |
| 60 | RangeRequest_DESCEND RangeRequest_SortOrder = 2 |
| 61 | ) |
| 62 | |
| 63 | var RangeRequest_SortOrder_name = map[int32]string{ |
| 64 | 0: "NONE", |
| 65 | 1: "ASCEND", |
| 66 | 2: "DESCEND", |
| 67 | } |
| 68 | var RangeRequest_SortOrder_value = map[string]int32{ |
| 69 | "NONE": 0, |
| 70 | "ASCEND": 1, |
| 71 | "DESCEND": 2, |
| 72 | } |
| 73 | |
| 74 | func (x RangeRequest_SortOrder) String() string { |
| 75 | return proto.EnumName(RangeRequest_SortOrder_name, int32(x)) |
| 76 | } |
| 77 | func (RangeRequest_SortOrder) EnumDescriptor() ([]byte, []int) { return fileDescriptorRpc, []int{1, 0} } |
| 78 | |
| 79 | type RangeRequest_SortTarget int32 |
| 80 | |
| 81 | const ( |
| 82 | RangeRequest_KEY RangeRequest_SortTarget = 0 |
| 83 | RangeRequest_VERSION RangeRequest_SortTarget = 1 |
| 84 | RangeRequest_CREATE RangeRequest_SortTarget = 2 |
| 85 | RangeRequest_MOD RangeRequest_SortTarget = 3 |
| 86 | RangeRequest_VALUE RangeRequest_SortTarget = 4 |
| 87 | ) |
| 88 | |
| 89 | var RangeRequest_SortTarget_name = map[int32]string{ |
| 90 | 0: "KEY", |
| 91 | 1: "VERSION", |
| 92 | 2: "CREATE", |
| 93 | 3: "MOD", |
| 94 | 4: "VALUE", |
| 95 | } |
| 96 | var RangeRequest_SortTarget_value = map[string]int32{ |
| 97 | "KEY": 0, |
| 98 | "VERSION": 1, |
| 99 | "CREATE": 2, |
| 100 | "MOD": 3, |
| 101 | "VALUE": 4, |
| 102 | } |
| 103 | |
| 104 | func (x RangeRequest_SortTarget) String() string { |
| 105 | return proto.EnumName(RangeRequest_SortTarget_name, int32(x)) |
| 106 | } |
| 107 | func (RangeRequest_SortTarget) EnumDescriptor() ([]byte, []int) { return fileDescriptorRpc, []int{1, 1} } |
| 108 | |
| 109 | type Compare_CompareResult int32 |
| 110 | |
| 111 | const ( |
| 112 | Compare_EQUAL Compare_CompareResult = 0 |
| 113 | Compare_GREATER Compare_CompareResult = 1 |
| 114 | Compare_LESS Compare_CompareResult = 2 |
| 115 | Compare_NOT_EQUAL Compare_CompareResult = 3 |
| 116 | ) |
| 117 | |
| 118 | var Compare_CompareResult_name = map[int32]string{ |
| 119 | 0: "EQUAL", |
| 120 | 1: "GREATER", |
| 121 | 2: "LESS", |
| 122 | 3: "NOT_EQUAL", |
| 123 | } |
| 124 | var Compare_CompareResult_value = map[string]int32{ |
| 125 | "EQUAL": 0, |
| 126 | "GREATER": 1, |
| 127 | "LESS": 2, |
| 128 | "NOT_EQUAL": 3, |
| 129 | } |
| 130 | |
| 131 | func (x Compare_CompareResult) String() string { |
| 132 | return proto.EnumName(Compare_CompareResult_name, int32(x)) |
| 133 | } |
| 134 | func (Compare_CompareResult) EnumDescriptor() ([]byte, []int) { return fileDescriptorRpc, []int{9, 0} } |
| 135 | |
| 136 | type Compare_CompareTarget int32 |
| 137 | |
| 138 | const ( |
| 139 | Compare_VERSION Compare_CompareTarget = 0 |
| 140 | Compare_CREATE Compare_CompareTarget = 1 |
| 141 | Compare_MOD Compare_CompareTarget = 2 |
| 142 | Compare_VALUE Compare_CompareTarget = 3 |
| 143 | Compare_LEASE Compare_CompareTarget = 4 |
| 144 | ) |
| 145 | |
| 146 | var Compare_CompareTarget_name = map[int32]string{ |
| 147 | 0: "VERSION", |
| 148 | 1: "CREATE", |
| 149 | 2: "MOD", |
| 150 | 3: "VALUE", |
| 151 | 4: "LEASE", |
| 152 | } |
| 153 | var Compare_CompareTarget_value = map[string]int32{ |
| 154 | "VERSION": 0, |
| 155 | "CREATE": 1, |
| 156 | "MOD": 2, |
| 157 | "VALUE": 3, |
| 158 | "LEASE": 4, |
| 159 | } |
| 160 | |
| 161 | func (x Compare_CompareTarget) String() string { |
| 162 | return proto.EnumName(Compare_CompareTarget_name, int32(x)) |
| 163 | } |
| 164 | func (Compare_CompareTarget) EnumDescriptor() ([]byte, []int) { return fileDescriptorRpc, []int{9, 1} } |
| 165 | |
| 166 | type WatchCreateRequest_FilterType int32 |
| 167 | |
| 168 | const ( |
| 169 | // filter out put event. |
| 170 | WatchCreateRequest_NOPUT WatchCreateRequest_FilterType = 0 |
| 171 | // filter out delete event. |
| 172 | WatchCreateRequest_NODELETE WatchCreateRequest_FilterType = 1 |
| 173 | ) |
| 174 | |
| 175 | var WatchCreateRequest_FilterType_name = map[int32]string{ |
| 176 | 0: "NOPUT", |
| 177 | 1: "NODELETE", |
| 178 | } |
| 179 | var WatchCreateRequest_FilterType_value = map[string]int32{ |
| 180 | "NOPUT": 0, |
| 181 | "NODELETE": 1, |
| 182 | } |
| 183 | |
| 184 | func (x WatchCreateRequest_FilterType) String() string { |
| 185 | return proto.EnumName(WatchCreateRequest_FilterType_name, int32(x)) |
| 186 | } |
| 187 | func (WatchCreateRequest_FilterType) EnumDescriptor() ([]byte, []int) { |
| 188 | return fileDescriptorRpc, []int{21, 0} |
| 189 | } |
| 190 | |
| 191 | type AlarmRequest_AlarmAction int32 |
| 192 | |
| 193 | const ( |
| 194 | AlarmRequest_GET AlarmRequest_AlarmAction = 0 |
| 195 | AlarmRequest_ACTIVATE AlarmRequest_AlarmAction = 1 |
| 196 | AlarmRequest_DEACTIVATE AlarmRequest_AlarmAction = 2 |
| 197 | ) |
| 198 | |
| 199 | var AlarmRequest_AlarmAction_name = map[int32]string{ |
| 200 | 0: "GET", |
| 201 | 1: "ACTIVATE", |
| 202 | 2: "DEACTIVATE", |
| 203 | } |
| 204 | var AlarmRequest_AlarmAction_value = map[string]int32{ |
| 205 | "GET": 0, |
| 206 | "ACTIVATE": 1, |
| 207 | "DEACTIVATE": 2, |
| 208 | } |
| 209 | |
| 210 | func (x AlarmRequest_AlarmAction) String() string { |
| 211 | return proto.EnumName(AlarmRequest_AlarmAction_name, int32(x)) |
| 212 | } |
| 213 | func (AlarmRequest_AlarmAction) EnumDescriptor() ([]byte, []int) { |
| 214 | return fileDescriptorRpc, []int{52, 0} |
| 215 | } |
| 216 | |
| 217 | type ResponseHeader struct { |
| 218 | // cluster_id is the ID of the cluster which sent the response. |
| 219 | ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` |
| 220 | // member_id is the ID of the member which sent the response. |
| 221 | MemberId uint64 `protobuf:"varint,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` |
| 222 | // revision is the key-value store revision when the request was applied. |
| 223 | // For watch progress responses, the header.revision indicates progress. All future events |
| 224 | // recieved in this stream are guaranteed to have a higher revision number than the |
| 225 | // header.revision number. |
| 226 | Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` |
| 227 | // raft_term is the raft term when the request was applied. |
| 228 | RaftTerm uint64 `protobuf:"varint,4,opt,name=raft_term,json=raftTerm,proto3" json:"raft_term,omitempty"` |
| 229 | } |
| 230 | |
| 231 | func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } |
| 232 | func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } |
| 233 | func (*ResponseHeader) ProtoMessage() {} |
| 234 | func (*ResponseHeader) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{0} } |
| 235 | |
| 236 | func (m *ResponseHeader) GetClusterId() uint64 { |
| 237 | if m != nil { |
| 238 | return m.ClusterId |
| 239 | } |
| 240 | return 0 |
| 241 | } |
| 242 | |
| 243 | func (m *ResponseHeader) GetMemberId() uint64 { |
| 244 | if m != nil { |
| 245 | return m.MemberId |
| 246 | } |
| 247 | return 0 |
| 248 | } |
| 249 | |
| 250 | func (m *ResponseHeader) GetRevision() int64 { |
| 251 | if m != nil { |
| 252 | return m.Revision |
| 253 | } |
| 254 | return 0 |
| 255 | } |
| 256 | |
| 257 | func (m *ResponseHeader) GetRaftTerm() uint64 { |
| 258 | if m != nil { |
| 259 | return m.RaftTerm |
| 260 | } |
| 261 | return 0 |
| 262 | } |
| 263 | |
| 264 | type RangeRequest struct { |
| 265 | // key is the first key for the range. If range_end is not given, the request only looks up key. |
| 266 | Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` |
| 267 | // range_end is the upper bound on the requested range [key, range_end). |
| 268 | // If range_end is '\0', the range is all keys >= key. |
| 269 | // If range_end is key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"), |
| 270 | // then the range request gets all keys prefixed with key. |
| 271 | // If both key and range_end are '\0', then the range request returns all keys. |
| 272 | RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` |
| 273 | // limit is a limit on the number of keys returned for the request. When limit is set to 0, |
| 274 | // it is treated as no limit. |
| 275 | Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` |
| 276 | // revision is the point-in-time of the key-value store to use for the range. |
| 277 | // If revision is less or equal to zero, the range is over the newest key-value store. |
| 278 | // If the revision has been compacted, ErrCompacted is returned as a response. |
| 279 | Revision int64 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"` |
| 280 | // sort_order is the order for returned sorted results. |
| 281 | SortOrder RangeRequest_SortOrder `protobuf:"varint,5,opt,name=sort_order,json=sortOrder,proto3,enum=etcdserverpb.RangeRequest_SortOrder" json:"sort_order,omitempty"` |
| 282 | // sort_target is the key-value field to use for sorting. |
| 283 | SortTarget RangeRequest_SortTarget `protobuf:"varint,6,opt,name=sort_target,json=sortTarget,proto3,enum=etcdserverpb.RangeRequest_SortTarget" json:"sort_target,omitempty"` |
| 284 | // serializable sets the range request to use serializable member-local reads. |
| 285 | // Range requests are linearizable by default; linearizable requests have higher |
| 286 | // latency and lower throughput than serializable requests but reflect the current |
| 287 | // consensus of the cluster. For better performance, in exchange for possible stale reads, |
| 288 | // a serializable range request is served locally without needing to reach consensus |
| 289 | // with other nodes in the cluster. |
| 290 | Serializable bool `protobuf:"varint,7,opt,name=serializable,proto3" json:"serializable,omitempty"` |
| 291 | // keys_only when set returns only the keys and not the values. |
| 292 | KeysOnly bool `protobuf:"varint,8,opt,name=keys_only,json=keysOnly,proto3" json:"keys_only,omitempty"` |
| 293 | // count_only when set returns only the count of the keys in the range. |
| 294 | CountOnly bool `protobuf:"varint,9,opt,name=count_only,json=countOnly,proto3" json:"count_only,omitempty"` |
| 295 | // min_mod_revision is the lower bound for returned key mod revisions; all keys with |
| 296 | // lesser mod revisions will be filtered away. |
| 297 | MinModRevision int64 `protobuf:"varint,10,opt,name=min_mod_revision,json=minModRevision,proto3" json:"min_mod_revision,omitempty"` |
| 298 | // max_mod_revision is the upper bound for returned key mod revisions; all keys with |
| 299 | // greater mod revisions will be filtered away. |
| 300 | MaxModRevision int64 `protobuf:"varint,11,opt,name=max_mod_revision,json=maxModRevision,proto3" json:"max_mod_revision,omitempty"` |
| 301 | // min_create_revision is the lower bound for returned key create revisions; all keys with |
| 302 | // lesser create revisions will be filtered away. |
| 303 | MinCreateRevision int64 `protobuf:"varint,12,opt,name=min_create_revision,json=minCreateRevision,proto3" json:"min_create_revision,omitempty"` |
| 304 | // max_create_revision is the upper bound for returned key create revisions; all keys with |
| 305 | // greater create revisions will be filtered away. |
| 306 | MaxCreateRevision int64 `protobuf:"varint,13,opt,name=max_create_revision,json=maxCreateRevision,proto3" json:"max_create_revision,omitempty"` |
| 307 | } |
| 308 | |
| 309 | func (m *RangeRequest) Reset() { *m = RangeRequest{} } |
| 310 | func (m *RangeRequest) String() string { return proto.CompactTextString(m) } |
| 311 | func (*RangeRequest) ProtoMessage() {} |
| 312 | func (*RangeRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{1} } |
| 313 | |
| 314 | func (m *RangeRequest) GetKey() []byte { |
| 315 | if m != nil { |
| 316 | return m.Key |
| 317 | } |
| 318 | return nil |
| 319 | } |
| 320 | |
| 321 | func (m *RangeRequest) GetRangeEnd() []byte { |
| 322 | if m != nil { |
| 323 | return m.RangeEnd |
| 324 | } |
| 325 | return nil |
| 326 | } |
| 327 | |
| 328 | func (m *RangeRequest) GetLimit() int64 { |
| 329 | if m != nil { |
| 330 | return m.Limit |
| 331 | } |
| 332 | return 0 |
| 333 | } |
| 334 | |
| 335 | func (m *RangeRequest) GetRevision() int64 { |
| 336 | if m != nil { |
| 337 | return m.Revision |
| 338 | } |
| 339 | return 0 |
| 340 | } |
| 341 | |
| 342 | func (m *RangeRequest) GetSortOrder() RangeRequest_SortOrder { |
| 343 | if m != nil { |
| 344 | return m.SortOrder |
| 345 | } |
| 346 | return RangeRequest_NONE |
| 347 | } |
| 348 | |
| 349 | func (m *RangeRequest) GetSortTarget() RangeRequest_SortTarget { |
| 350 | if m != nil { |
| 351 | return m.SortTarget |
| 352 | } |
| 353 | return RangeRequest_KEY |
| 354 | } |
| 355 | |
| 356 | func (m *RangeRequest) GetSerializable() bool { |
| 357 | if m != nil { |
| 358 | return m.Serializable |
| 359 | } |
| 360 | return false |
| 361 | } |
| 362 | |
| 363 | func (m *RangeRequest) GetKeysOnly() bool { |
| 364 | if m != nil { |
| 365 | return m.KeysOnly |
| 366 | } |
| 367 | return false |
| 368 | } |
| 369 | |
| 370 | func (m *RangeRequest) GetCountOnly() bool { |
| 371 | if m != nil { |
| 372 | return m.CountOnly |
| 373 | } |
| 374 | return false |
| 375 | } |
| 376 | |
| 377 | func (m *RangeRequest) GetMinModRevision() int64 { |
| 378 | if m != nil { |
| 379 | return m.MinModRevision |
| 380 | } |
| 381 | return 0 |
| 382 | } |
| 383 | |
| 384 | func (m *RangeRequest) GetMaxModRevision() int64 { |
| 385 | if m != nil { |
| 386 | return m.MaxModRevision |
| 387 | } |
| 388 | return 0 |
| 389 | } |
| 390 | |
| 391 | func (m *RangeRequest) GetMinCreateRevision() int64 { |
| 392 | if m != nil { |
| 393 | return m.MinCreateRevision |
| 394 | } |
| 395 | return 0 |
| 396 | } |
| 397 | |
| 398 | func (m *RangeRequest) GetMaxCreateRevision() int64 { |
| 399 | if m != nil { |
| 400 | return m.MaxCreateRevision |
| 401 | } |
| 402 | return 0 |
| 403 | } |
| 404 | |
| 405 | type RangeResponse struct { |
| 406 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 407 | // kvs is the list of key-value pairs matched by the range request. |
| 408 | // kvs is empty when count is requested. |
| 409 | Kvs []*mvccpb.KeyValue `protobuf:"bytes,2,rep,name=kvs" json:"kvs,omitempty"` |
| 410 | // more indicates if there are more keys to return in the requested range. |
| 411 | More bool `protobuf:"varint,3,opt,name=more,proto3" json:"more,omitempty"` |
| 412 | // count is set to the number of keys within the range when requested. |
| 413 | Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` |
| 414 | } |
| 415 | |
| 416 | func (m *RangeResponse) Reset() { *m = RangeResponse{} } |
| 417 | func (m *RangeResponse) String() string { return proto.CompactTextString(m) } |
| 418 | func (*RangeResponse) ProtoMessage() {} |
| 419 | func (*RangeResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{2} } |
| 420 | |
| 421 | func (m *RangeResponse) GetHeader() *ResponseHeader { |
| 422 | if m != nil { |
| 423 | return m.Header |
| 424 | } |
| 425 | return nil |
| 426 | } |
| 427 | |
| 428 | func (m *RangeResponse) GetKvs() []*mvccpb.KeyValue { |
| 429 | if m != nil { |
| 430 | return m.Kvs |
| 431 | } |
| 432 | return nil |
| 433 | } |
| 434 | |
| 435 | func (m *RangeResponse) GetMore() bool { |
| 436 | if m != nil { |
| 437 | return m.More |
| 438 | } |
| 439 | return false |
| 440 | } |
| 441 | |
| 442 | func (m *RangeResponse) GetCount() int64 { |
| 443 | if m != nil { |
| 444 | return m.Count |
| 445 | } |
| 446 | return 0 |
| 447 | } |
| 448 | |
| 449 | type PutRequest struct { |
| 450 | // key is the key, in bytes, to put into the key-value store. |
| 451 | Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` |
| 452 | // value is the value, in bytes, to associate with the key in the key-value store. |
| 453 | Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` |
| 454 | // lease is the lease ID to associate with the key in the key-value store. A lease |
| 455 | // value of 0 indicates no lease. |
| 456 | Lease int64 `protobuf:"varint,3,opt,name=lease,proto3" json:"lease,omitempty"` |
| 457 | // If prev_kv is set, etcd gets the previous key-value pair before changing it. |
| 458 | // The previous key-value pair will be returned in the put response. |
| 459 | PrevKv bool `protobuf:"varint,4,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` |
| 460 | // If ignore_value is set, etcd updates the key using its current value. |
| 461 | // Returns an error if the key does not exist. |
| 462 | IgnoreValue bool `protobuf:"varint,5,opt,name=ignore_value,json=ignoreValue,proto3" json:"ignore_value,omitempty"` |
| 463 | // If ignore_lease is set, etcd updates the key using its current lease. |
| 464 | // Returns an error if the key does not exist. |
| 465 | IgnoreLease bool `protobuf:"varint,6,opt,name=ignore_lease,json=ignoreLease,proto3" json:"ignore_lease,omitempty"` |
| 466 | } |
| 467 | |
| 468 | func (m *PutRequest) Reset() { *m = PutRequest{} } |
| 469 | func (m *PutRequest) String() string { return proto.CompactTextString(m) } |
| 470 | func (*PutRequest) ProtoMessage() {} |
| 471 | func (*PutRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{3} } |
| 472 | |
| 473 | func (m *PutRequest) GetKey() []byte { |
| 474 | if m != nil { |
| 475 | return m.Key |
| 476 | } |
| 477 | return nil |
| 478 | } |
| 479 | |
| 480 | func (m *PutRequest) GetValue() []byte { |
| 481 | if m != nil { |
| 482 | return m.Value |
| 483 | } |
| 484 | return nil |
| 485 | } |
| 486 | |
| 487 | func (m *PutRequest) GetLease() int64 { |
| 488 | if m != nil { |
| 489 | return m.Lease |
| 490 | } |
| 491 | return 0 |
| 492 | } |
| 493 | |
| 494 | func (m *PutRequest) GetPrevKv() bool { |
| 495 | if m != nil { |
| 496 | return m.PrevKv |
| 497 | } |
| 498 | return false |
| 499 | } |
| 500 | |
| 501 | func (m *PutRequest) GetIgnoreValue() bool { |
| 502 | if m != nil { |
| 503 | return m.IgnoreValue |
| 504 | } |
| 505 | return false |
| 506 | } |
| 507 | |
| 508 | func (m *PutRequest) GetIgnoreLease() bool { |
| 509 | if m != nil { |
| 510 | return m.IgnoreLease |
| 511 | } |
| 512 | return false |
| 513 | } |
| 514 | |
| 515 | type PutResponse struct { |
| 516 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 517 | // if prev_kv is set in the request, the previous key-value pair will be returned. |
| 518 | PrevKv *mvccpb.KeyValue `protobuf:"bytes,2,opt,name=prev_kv,json=prevKv" json:"prev_kv,omitempty"` |
| 519 | } |
| 520 | |
| 521 | func (m *PutResponse) Reset() { *m = PutResponse{} } |
| 522 | func (m *PutResponse) String() string { return proto.CompactTextString(m) } |
| 523 | func (*PutResponse) ProtoMessage() {} |
| 524 | func (*PutResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{4} } |
| 525 | |
| 526 | func (m *PutResponse) GetHeader() *ResponseHeader { |
| 527 | if m != nil { |
| 528 | return m.Header |
| 529 | } |
| 530 | return nil |
| 531 | } |
| 532 | |
| 533 | func (m *PutResponse) GetPrevKv() *mvccpb.KeyValue { |
| 534 | if m != nil { |
| 535 | return m.PrevKv |
| 536 | } |
| 537 | return nil |
| 538 | } |
| 539 | |
| 540 | type DeleteRangeRequest struct { |
| 541 | // key is the first key to delete in the range. |
| 542 | Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` |
| 543 | // range_end is the key following the last key to delete for the range [key, range_end). |
| 544 | // If range_end is not given, the range is defined to contain only the key argument. |
| 545 | // If range_end is one bit larger than the given key, then the range is all the keys |
| 546 | // with the prefix (the given key). |
| 547 | // If range_end is '\0', the range is all keys greater than or equal to the key argument. |
| 548 | RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` |
| 549 | // If prev_kv is set, etcd gets the previous key-value pairs before deleting it. |
| 550 | // The previous key-value pairs will be returned in the delete response. |
| 551 | PrevKv bool `protobuf:"varint,3,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` |
| 552 | } |
| 553 | |
| 554 | func (m *DeleteRangeRequest) Reset() { *m = DeleteRangeRequest{} } |
| 555 | func (m *DeleteRangeRequest) String() string { return proto.CompactTextString(m) } |
| 556 | func (*DeleteRangeRequest) ProtoMessage() {} |
| 557 | func (*DeleteRangeRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{5} } |
| 558 | |
| 559 | func (m *DeleteRangeRequest) GetKey() []byte { |
| 560 | if m != nil { |
| 561 | return m.Key |
| 562 | } |
| 563 | return nil |
| 564 | } |
| 565 | |
| 566 | func (m *DeleteRangeRequest) GetRangeEnd() []byte { |
| 567 | if m != nil { |
| 568 | return m.RangeEnd |
| 569 | } |
| 570 | return nil |
| 571 | } |
| 572 | |
| 573 | func (m *DeleteRangeRequest) GetPrevKv() bool { |
| 574 | if m != nil { |
| 575 | return m.PrevKv |
| 576 | } |
| 577 | return false |
| 578 | } |
| 579 | |
| 580 | type DeleteRangeResponse struct { |
| 581 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 582 | // deleted is the number of keys deleted by the delete range request. |
| 583 | Deleted int64 `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"` |
| 584 | // if prev_kv is set in the request, the previous key-value pairs will be returned. |
| 585 | PrevKvs []*mvccpb.KeyValue `protobuf:"bytes,3,rep,name=prev_kvs,json=prevKvs" json:"prev_kvs,omitempty"` |
| 586 | } |
| 587 | |
| 588 | func (m *DeleteRangeResponse) Reset() { *m = DeleteRangeResponse{} } |
| 589 | func (m *DeleteRangeResponse) String() string { return proto.CompactTextString(m) } |
| 590 | func (*DeleteRangeResponse) ProtoMessage() {} |
| 591 | func (*DeleteRangeResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{6} } |
| 592 | |
| 593 | func (m *DeleteRangeResponse) GetHeader() *ResponseHeader { |
| 594 | if m != nil { |
| 595 | return m.Header |
| 596 | } |
| 597 | return nil |
| 598 | } |
| 599 | |
| 600 | func (m *DeleteRangeResponse) GetDeleted() int64 { |
| 601 | if m != nil { |
| 602 | return m.Deleted |
| 603 | } |
| 604 | return 0 |
| 605 | } |
| 606 | |
| 607 | func (m *DeleteRangeResponse) GetPrevKvs() []*mvccpb.KeyValue { |
| 608 | if m != nil { |
| 609 | return m.PrevKvs |
| 610 | } |
| 611 | return nil |
| 612 | } |
| 613 | |
| 614 | type RequestOp struct { |
| 615 | // request is a union of request types accepted by a transaction. |
| 616 | // |
| 617 | // Types that are valid to be assigned to Request: |
| 618 | // *RequestOp_RequestRange |
| 619 | // *RequestOp_RequestPut |
| 620 | // *RequestOp_RequestDeleteRange |
| 621 | // *RequestOp_RequestTxn |
| 622 | Request isRequestOp_Request `protobuf_oneof:"request"` |
| 623 | } |
| 624 | |
| 625 | func (m *RequestOp) Reset() { *m = RequestOp{} } |
| 626 | func (m *RequestOp) String() string { return proto.CompactTextString(m) } |
| 627 | func (*RequestOp) ProtoMessage() {} |
| 628 | func (*RequestOp) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{7} } |
| 629 | |
| 630 | type isRequestOp_Request interface { |
| 631 | isRequestOp_Request() |
| 632 | MarshalTo([]byte) (int, error) |
| 633 | Size() int |
| 634 | } |
| 635 | |
| 636 | type RequestOp_RequestRange struct { |
| 637 | RequestRange *RangeRequest `protobuf:"bytes,1,opt,name=request_range,json=requestRange,oneof"` |
| 638 | } |
| 639 | type RequestOp_RequestPut struct { |
| 640 | RequestPut *PutRequest `protobuf:"bytes,2,opt,name=request_put,json=requestPut,oneof"` |
| 641 | } |
| 642 | type RequestOp_RequestDeleteRange struct { |
| 643 | RequestDeleteRange *DeleteRangeRequest `protobuf:"bytes,3,opt,name=request_delete_range,json=requestDeleteRange,oneof"` |
| 644 | } |
| 645 | type RequestOp_RequestTxn struct { |
| 646 | RequestTxn *TxnRequest `protobuf:"bytes,4,opt,name=request_txn,json=requestTxn,oneof"` |
| 647 | } |
| 648 | |
| 649 | func (*RequestOp_RequestRange) isRequestOp_Request() {} |
| 650 | func (*RequestOp_RequestPut) isRequestOp_Request() {} |
| 651 | func (*RequestOp_RequestDeleteRange) isRequestOp_Request() {} |
| 652 | func (*RequestOp_RequestTxn) isRequestOp_Request() {} |
| 653 | |
| 654 | func (m *RequestOp) GetRequest() isRequestOp_Request { |
| 655 | if m != nil { |
| 656 | return m.Request |
| 657 | } |
| 658 | return nil |
| 659 | } |
| 660 | |
| 661 | func (m *RequestOp) GetRequestRange() *RangeRequest { |
| 662 | if x, ok := m.GetRequest().(*RequestOp_RequestRange); ok { |
| 663 | return x.RequestRange |
| 664 | } |
| 665 | return nil |
| 666 | } |
| 667 | |
| 668 | func (m *RequestOp) GetRequestPut() *PutRequest { |
| 669 | if x, ok := m.GetRequest().(*RequestOp_RequestPut); ok { |
| 670 | return x.RequestPut |
| 671 | } |
| 672 | return nil |
| 673 | } |
| 674 | |
| 675 | func (m *RequestOp) GetRequestDeleteRange() *DeleteRangeRequest { |
| 676 | if x, ok := m.GetRequest().(*RequestOp_RequestDeleteRange); ok { |
| 677 | return x.RequestDeleteRange |
| 678 | } |
| 679 | return nil |
| 680 | } |
| 681 | |
| 682 | func (m *RequestOp) GetRequestTxn() *TxnRequest { |
| 683 | if x, ok := m.GetRequest().(*RequestOp_RequestTxn); ok { |
| 684 | return x.RequestTxn |
| 685 | } |
| 686 | return nil |
| 687 | } |
| 688 | |
| 689 | // XXX_OneofFuncs is for the internal use of the proto package. |
| 690 | func (*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{}) { |
| 691 | return _RequestOp_OneofMarshaler, _RequestOp_OneofUnmarshaler, _RequestOp_OneofSizer, []interface{}{ |
| 692 | (*RequestOp_RequestRange)(nil), |
| 693 | (*RequestOp_RequestPut)(nil), |
| 694 | (*RequestOp_RequestDeleteRange)(nil), |
| 695 | (*RequestOp_RequestTxn)(nil), |
| 696 | } |
| 697 | } |
| 698 | |
| 699 | func _RequestOp_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { |
| 700 | m := msg.(*RequestOp) |
| 701 | // request |
| 702 | switch x := m.Request.(type) { |
| 703 | case *RequestOp_RequestRange: |
| 704 | _ = b.EncodeVarint(1<<3 | proto.WireBytes) |
| 705 | if err := b.EncodeMessage(x.RequestRange); err != nil { |
| 706 | return err |
| 707 | } |
| 708 | case *RequestOp_RequestPut: |
| 709 | _ = b.EncodeVarint(2<<3 | proto.WireBytes) |
| 710 | if err := b.EncodeMessage(x.RequestPut); err != nil { |
| 711 | return err |
| 712 | } |
| 713 | case *RequestOp_RequestDeleteRange: |
| 714 | _ = b.EncodeVarint(3<<3 | proto.WireBytes) |
| 715 | if err := b.EncodeMessage(x.RequestDeleteRange); err != nil { |
| 716 | return err |
| 717 | } |
| 718 | case *RequestOp_RequestTxn: |
| 719 | _ = b.EncodeVarint(4<<3 | proto.WireBytes) |
| 720 | if err := b.EncodeMessage(x.RequestTxn); err != nil { |
| 721 | return err |
| 722 | } |
| 723 | case nil: |
| 724 | default: |
| 725 | return fmt.Errorf("RequestOp.Request has unexpected type %T", x) |
| 726 | } |
| 727 | return nil |
| 728 | } |
| 729 | |
| 730 | func _RequestOp_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { |
| 731 | m := msg.(*RequestOp) |
| 732 | switch tag { |
| 733 | case 1: // request.request_range |
| 734 | if wire != proto.WireBytes { |
| 735 | return true, proto.ErrInternalBadWireType |
| 736 | } |
| 737 | msg := new(RangeRequest) |
| 738 | err := b.DecodeMessage(msg) |
| 739 | m.Request = &RequestOp_RequestRange{msg} |
| 740 | return true, err |
| 741 | case 2: // request.request_put |
| 742 | if wire != proto.WireBytes { |
| 743 | return true, proto.ErrInternalBadWireType |
| 744 | } |
| 745 | msg := new(PutRequest) |
| 746 | err := b.DecodeMessage(msg) |
| 747 | m.Request = &RequestOp_RequestPut{msg} |
| 748 | return true, err |
| 749 | case 3: // request.request_delete_range |
| 750 | if wire != proto.WireBytes { |
| 751 | return true, proto.ErrInternalBadWireType |
| 752 | } |
| 753 | msg := new(DeleteRangeRequest) |
| 754 | err := b.DecodeMessage(msg) |
| 755 | m.Request = &RequestOp_RequestDeleteRange{msg} |
| 756 | return true, err |
| 757 | case 4: // request.request_txn |
| 758 | if wire != proto.WireBytes { |
| 759 | return true, proto.ErrInternalBadWireType |
| 760 | } |
| 761 | msg := new(TxnRequest) |
| 762 | err := b.DecodeMessage(msg) |
| 763 | m.Request = &RequestOp_RequestTxn{msg} |
| 764 | return true, err |
| 765 | default: |
| 766 | return false, nil |
| 767 | } |
| 768 | } |
| 769 | |
| 770 | func _RequestOp_OneofSizer(msg proto.Message) (n int) { |
| 771 | m := msg.(*RequestOp) |
| 772 | // request |
| 773 | switch x := m.Request.(type) { |
| 774 | case *RequestOp_RequestRange: |
| 775 | s := proto.Size(x.RequestRange) |
| 776 | n += proto.SizeVarint(1<<3 | proto.WireBytes) |
| 777 | n += proto.SizeVarint(uint64(s)) |
| 778 | n += s |
| 779 | case *RequestOp_RequestPut: |
| 780 | s := proto.Size(x.RequestPut) |
| 781 | n += proto.SizeVarint(2<<3 | proto.WireBytes) |
| 782 | n += proto.SizeVarint(uint64(s)) |
| 783 | n += s |
| 784 | case *RequestOp_RequestDeleteRange: |
| 785 | s := proto.Size(x.RequestDeleteRange) |
| 786 | n += proto.SizeVarint(3<<3 | proto.WireBytes) |
| 787 | n += proto.SizeVarint(uint64(s)) |
| 788 | n += s |
| 789 | case *RequestOp_RequestTxn: |
| 790 | s := proto.Size(x.RequestTxn) |
| 791 | n += proto.SizeVarint(4<<3 | proto.WireBytes) |
| 792 | n += proto.SizeVarint(uint64(s)) |
| 793 | n += s |
| 794 | case nil: |
| 795 | default: |
| 796 | panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) |
| 797 | } |
| 798 | return n |
| 799 | } |
| 800 | |
| 801 | type ResponseOp struct { |
| 802 | // response is a union of response types returned by a transaction. |
| 803 | // |
| 804 | // Types that are valid to be assigned to Response: |
| 805 | // *ResponseOp_ResponseRange |
| 806 | // *ResponseOp_ResponsePut |
| 807 | // *ResponseOp_ResponseDeleteRange |
| 808 | // *ResponseOp_ResponseTxn |
| 809 | Response isResponseOp_Response `protobuf_oneof:"response"` |
| 810 | } |
| 811 | |
| 812 | func (m *ResponseOp) Reset() { *m = ResponseOp{} } |
| 813 | func (m *ResponseOp) String() string { return proto.CompactTextString(m) } |
| 814 | func (*ResponseOp) ProtoMessage() {} |
| 815 | func (*ResponseOp) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{8} } |
| 816 | |
| 817 | type isResponseOp_Response interface { |
| 818 | isResponseOp_Response() |
| 819 | MarshalTo([]byte) (int, error) |
| 820 | Size() int |
| 821 | } |
| 822 | |
| 823 | type ResponseOp_ResponseRange struct { |
| 824 | ResponseRange *RangeResponse `protobuf:"bytes,1,opt,name=response_range,json=responseRange,oneof"` |
| 825 | } |
| 826 | type ResponseOp_ResponsePut struct { |
| 827 | ResponsePut *PutResponse `protobuf:"bytes,2,opt,name=response_put,json=responsePut,oneof"` |
| 828 | } |
| 829 | type ResponseOp_ResponseDeleteRange struct { |
| 830 | ResponseDeleteRange *DeleteRangeResponse `protobuf:"bytes,3,opt,name=response_delete_range,json=responseDeleteRange,oneof"` |
| 831 | } |
| 832 | type ResponseOp_ResponseTxn struct { |
| 833 | ResponseTxn *TxnResponse `protobuf:"bytes,4,opt,name=response_txn,json=responseTxn,oneof"` |
| 834 | } |
| 835 | |
| 836 | func (*ResponseOp_ResponseRange) isResponseOp_Response() {} |
| 837 | func (*ResponseOp_ResponsePut) isResponseOp_Response() {} |
| 838 | func (*ResponseOp_ResponseDeleteRange) isResponseOp_Response() {} |
| 839 | func (*ResponseOp_ResponseTxn) isResponseOp_Response() {} |
| 840 | |
| 841 | func (m *ResponseOp) GetResponse() isResponseOp_Response { |
| 842 | if m != nil { |
| 843 | return m.Response |
| 844 | } |
| 845 | return nil |
| 846 | } |
| 847 | |
| 848 | func (m *ResponseOp) GetResponseRange() *RangeResponse { |
| 849 | if x, ok := m.GetResponse().(*ResponseOp_ResponseRange); ok { |
| 850 | return x.ResponseRange |
| 851 | } |
| 852 | return nil |
| 853 | } |
| 854 | |
| 855 | func (m *ResponseOp) GetResponsePut() *PutResponse { |
| 856 | if x, ok := m.GetResponse().(*ResponseOp_ResponsePut); ok { |
| 857 | return x.ResponsePut |
| 858 | } |
| 859 | return nil |
| 860 | } |
| 861 | |
| 862 | func (m *ResponseOp) GetResponseDeleteRange() *DeleteRangeResponse { |
| 863 | if x, ok := m.GetResponse().(*ResponseOp_ResponseDeleteRange); ok { |
| 864 | return x.ResponseDeleteRange |
| 865 | } |
| 866 | return nil |
| 867 | } |
| 868 | |
| 869 | func (m *ResponseOp) GetResponseTxn() *TxnResponse { |
| 870 | if x, ok := m.GetResponse().(*ResponseOp_ResponseTxn); ok { |
| 871 | return x.ResponseTxn |
| 872 | } |
| 873 | return nil |
| 874 | } |
| 875 | |
| 876 | // XXX_OneofFuncs is for the internal use of the proto package. |
| 877 | func (*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{}) { |
| 878 | return _ResponseOp_OneofMarshaler, _ResponseOp_OneofUnmarshaler, _ResponseOp_OneofSizer, []interface{}{ |
| 879 | (*ResponseOp_ResponseRange)(nil), |
| 880 | (*ResponseOp_ResponsePut)(nil), |
| 881 | (*ResponseOp_ResponseDeleteRange)(nil), |
| 882 | (*ResponseOp_ResponseTxn)(nil), |
| 883 | } |
| 884 | } |
| 885 | |
| 886 | func _ResponseOp_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { |
| 887 | m := msg.(*ResponseOp) |
| 888 | // response |
| 889 | switch x := m.Response.(type) { |
| 890 | case *ResponseOp_ResponseRange: |
| 891 | _ = b.EncodeVarint(1<<3 | proto.WireBytes) |
| 892 | if err := b.EncodeMessage(x.ResponseRange); err != nil { |
| 893 | return err |
| 894 | } |
| 895 | case *ResponseOp_ResponsePut: |
| 896 | _ = b.EncodeVarint(2<<3 | proto.WireBytes) |
| 897 | if err := b.EncodeMessage(x.ResponsePut); err != nil { |
| 898 | return err |
| 899 | } |
| 900 | case *ResponseOp_ResponseDeleteRange: |
| 901 | _ = b.EncodeVarint(3<<3 | proto.WireBytes) |
| 902 | if err := b.EncodeMessage(x.ResponseDeleteRange); err != nil { |
| 903 | return err |
| 904 | } |
| 905 | case *ResponseOp_ResponseTxn: |
| 906 | _ = b.EncodeVarint(4<<3 | proto.WireBytes) |
| 907 | if err := b.EncodeMessage(x.ResponseTxn); err != nil { |
| 908 | return err |
| 909 | } |
| 910 | case nil: |
| 911 | default: |
| 912 | return fmt.Errorf("ResponseOp.Response has unexpected type %T", x) |
| 913 | } |
| 914 | return nil |
| 915 | } |
| 916 | |
| 917 | func _ResponseOp_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { |
| 918 | m := msg.(*ResponseOp) |
| 919 | switch tag { |
| 920 | case 1: // response.response_range |
| 921 | if wire != proto.WireBytes { |
| 922 | return true, proto.ErrInternalBadWireType |
| 923 | } |
| 924 | msg := new(RangeResponse) |
| 925 | err := b.DecodeMessage(msg) |
| 926 | m.Response = &ResponseOp_ResponseRange{msg} |
| 927 | return true, err |
| 928 | case 2: // response.response_put |
| 929 | if wire != proto.WireBytes { |
| 930 | return true, proto.ErrInternalBadWireType |
| 931 | } |
| 932 | msg := new(PutResponse) |
| 933 | err := b.DecodeMessage(msg) |
| 934 | m.Response = &ResponseOp_ResponsePut{msg} |
| 935 | return true, err |
| 936 | case 3: // response.response_delete_range |
| 937 | if wire != proto.WireBytes { |
| 938 | return true, proto.ErrInternalBadWireType |
| 939 | } |
| 940 | msg := new(DeleteRangeResponse) |
| 941 | err := b.DecodeMessage(msg) |
| 942 | m.Response = &ResponseOp_ResponseDeleteRange{msg} |
| 943 | return true, err |
| 944 | case 4: // response.response_txn |
| 945 | if wire != proto.WireBytes { |
| 946 | return true, proto.ErrInternalBadWireType |
| 947 | } |
| 948 | msg := new(TxnResponse) |
| 949 | err := b.DecodeMessage(msg) |
| 950 | m.Response = &ResponseOp_ResponseTxn{msg} |
| 951 | return true, err |
| 952 | default: |
| 953 | return false, nil |
| 954 | } |
| 955 | } |
| 956 | |
| 957 | func _ResponseOp_OneofSizer(msg proto.Message) (n int) { |
| 958 | m := msg.(*ResponseOp) |
| 959 | // response |
| 960 | switch x := m.Response.(type) { |
| 961 | case *ResponseOp_ResponseRange: |
| 962 | s := proto.Size(x.ResponseRange) |
| 963 | n += proto.SizeVarint(1<<3 | proto.WireBytes) |
| 964 | n += proto.SizeVarint(uint64(s)) |
| 965 | n += s |
| 966 | case *ResponseOp_ResponsePut: |
| 967 | s := proto.Size(x.ResponsePut) |
| 968 | n += proto.SizeVarint(2<<3 | proto.WireBytes) |
| 969 | n += proto.SizeVarint(uint64(s)) |
| 970 | n += s |
| 971 | case *ResponseOp_ResponseDeleteRange: |
| 972 | s := proto.Size(x.ResponseDeleteRange) |
| 973 | n += proto.SizeVarint(3<<3 | proto.WireBytes) |
| 974 | n += proto.SizeVarint(uint64(s)) |
| 975 | n += s |
| 976 | case *ResponseOp_ResponseTxn: |
| 977 | s := proto.Size(x.ResponseTxn) |
| 978 | n += proto.SizeVarint(4<<3 | proto.WireBytes) |
| 979 | n += proto.SizeVarint(uint64(s)) |
| 980 | n += s |
| 981 | case nil: |
| 982 | default: |
| 983 | panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) |
| 984 | } |
| 985 | return n |
| 986 | } |
| 987 | |
| 988 | type Compare struct { |
| 989 | // result is logical comparison operation for this comparison. |
| 990 | Result Compare_CompareResult `protobuf:"varint,1,opt,name=result,proto3,enum=etcdserverpb.Compare_CompareResult" json:"result,omitempty"` |
| 991 | // target is the key-value field to inspect for the comparison. |
| 992 | Target Compare_CompareTarget `protobuf:"varint,2,opt,name=target,proto3,enum=etcdserverpb.Compare_CompareTarget" json:"target,omitempty"` |
| 993 | // key is the subject key for the comparison operation. |
| 994 | Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` |
| 995 | // Types that are valid to be assigned to TargetUnion: |
| 996 | // *Compare_Version |
| 997 | // *Compare_CreateRevision |
| 998 | // *Compare_ModRevision |
| 999 | // *Compare_Value |
| 1000 | // *Compare_Lease |
| 1001 | TargetUnion isCompare_TargetUnion `protobuf_oneof:"target_union"` |
| 1002 | // range_end compares the given target to all keys in the range [key, range_end). |
| 1003 | // See RangeRequest for more details on key ranges. |
| 1004 | RangeEnd []byte `protobuf:"bytes,64,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` |
| 1005 | } |
| 1006 | |
| 1007 | func (m *Compare) Reset() { *m = Compare{} } |
| 1008 | func (m *Compare) String() string { return proto.CompactTextString(m) } |
| 1009 | func (*Compare) ProtoMessage() {} |
| 1010 | func (*Compare) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{9} } |
| 1011 | |
| 1012 | type isCompare_TargetUnion interface { |
| 1013 | isCompare_TargetUnion() |
| 1014 | MarshalTo([]byte) (int, error) |
| 1015 | Size() int |
| 1016 | } |
| 1017 | |
| 1018 | type Compare_Version struct { |
| 1019 | Version int64 `protobuf:"varint,4,opt,name=version,proto3,oneof"` |
| 1020 | } |
| 1021 | type Compare_CreateRevision struct { |
| 1022 | CreateRevision int64 `protobuf:"varint,5,opt,name=create_revision,json=createRevision,proto3,oneof"` |
| 1023 | } |
| 1024 | type Compare_ModRevision struct { |
| 1025 | ModRevision int64 `protobuf:"varint,6,opt,name=mod_revision,json=modRevision,proto3,oneof"` |
| 1026 | } |
| 1027 | type Compare_Value struct { |
| 1028 | Value []byte `protobuf:"bytes,7,opt,name=value,proto3,oneof"` |
| 1029 | } |
| 1030 | type Compare_Lease struct { |
| 1031 | Lease int64 `protobuf:"varint,8,opt,name=lease,proto3,oneof"` |
| 1032 | } |
| 1033 | |
| 1034 | func (*Compare_Version) isCompare_TargetUnion() {} |
| 1035 | func (*Compare_CreateRevision) isCompare_TargetUnion() {} |
| 1036 | func (*Compare_ModRevision) isCompare_TargetUnion() {} |
| 1037 | func (*Compare_Value) isCompare_TargetUnion() {} |
| 1038 | func (*Compare_Lease) isCompare_TargetUnion() {} |
| 1039 | |
| 1040 | func (m *Compare) GetTargetUnion() isCompare_TargetUnion { |
| 1041 | if m != nil { |
| 1042 | return m.TargetUnion |
| 1043 | } |
| 1044 | return nil |
| 1045 | } |
| 1046 | |
| 1047 | func (m *Compare) GetResult() Compare_CompareResult { |
| 1048 | if m != nil { |
| 1049 | return m.Result |
| 1050 | } |
| 1051 | return Compare_EQUAL |
| 1052 | } |
| 1053 | |
| 1054 | func (m *Compare) GetTarget() Compare_CompareTarget { |
| 1055 | if m != nil { |
| 1056 | return m.Target |
| 1057 | } |
| 1058 | return Compare_VERSION |
| 1059 | } |
| 1060 | |
| 1061 | func (m *Compare) GetKey() []byte { |
| 1062 | if m != nil { |
| 1063 | return m.Key |
| 1064 | } |
| 1065 | return nil |
| 1066 | } |
| 1067 | |
| 1068 | func (m *Compare) GetVersion() int64 { |
| 1069 | if x, ok := m.GetTargetUnion().(*Compare_Version); ok { |
| 1070 | return x.Version |
| 1071 | } |
| 1072 | return 0 |
| 1073 | } |
| 1074 | |
| 1075 | func (m *Compare) GetCreateRevision() int64 { |
| 1076 | if x, ok := m.GetTargetUnion().(*Compare_CreateRevision); ok { |
| 1077 | return x.CreateRevision |
| 1078 | } |
| 1079 | return 0 |
| 1080 | } |
| 1081 | |
| 1082 | func (m *Compare) GetModRevision() int64 { |
| 1083 | if x, ok := m.GetTargetUnion().(*Compare_ModRevision); ok { |
| 1084 | return x.ModRevision |
| 1085 | } |
| 1086 | return 0 |
| 1087 | } |
| 1088 | |
| 1089 | func (m *Compare) GetValue() []byte { |
| 1090 | if x, ok := m.GetTargetUnion().(*Compare_Value); ok { |
| 1091 | return x.Value |
| 1092 | } |
| 1093 | return nil |
| 1094 | } |
| 1095 | |
| 1096 | func (m *Compare) GetLease() int64 { |
| 1097 | if x, ok := m.GetTargetUnion().(*Compare_Lease); ok { |
| 1098 | return x.Lease |
| 1099 | } |
| 1100 | return 0 |
| 1101 | } |
| 1102 | |
| 1103 | func (m *Compare) GetRangeEnd() []byte { |
| 1104 | if m != nil { |
| 1105 | return m.RangeEnd |
| 1106 | } |
| 1107 | return nil |
| 1108 | } |
| 1109 | |
| 1110 | // XXX_OneofFuncs is for the internal use of the proto package. |
| 1111 | func (*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{}) { |
| 1112 | return _Compare_OneofMarshaler, _Compare_OneofUnmarshaler, _Compare_OneofSizer, []interface{}{ |
| 1113 | (*Compare_Version)(nil), |
| 1114 | (*Compare_CreateRevision)(nil), |
| 1115 | (*Compare_ModRevision)(nil), |
| 1116 | (*Compare_Value)(nil), |
| 1117 | (*Compare_Lease)(nil), |
| 1118 | } |
| 1119 | } |
| 1120 | |
| 1121 | func _Compare_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { |
| 1122 | m := msg.(*Compare) |
| 1123 | // target_union |
| 1124 | switch x := m.TargetUnion.(type) { |
| 1125 | case *Compare_Version: |
| 1126 | _ = b.EncodeVarint(4<<3 | proto.WireVarint) |
| 1127 | _ = b.EncodeVarint(uint64(x.Version)) |
| 1128 | case *Compare_CreateRevision: |
| 1129 | _ = b.EncodeVarint(5<<3 | proto.WireVarint) |
| 1130 | _ = b.EncodeVarint(uint64(x.CreateRevision)) |
| 1131 | case *Compare_ModRevision: |
| 1132 | _ = b.EncodeVarint(6<<3 | proto.WireVarint) |
| 1133 | _ = b.EncodeVarint(uint64(x.ModRevision)) |
| 1134 | case *Compare_Value: |
| 1135 | _ = b.EncodeVarint(7<<3 | proto.WireBytes) |
| 1136 | _ = b.EncodeRawBytes(x.Value) |
| 1137 | case *Compare_Lease: |
| 1138 | _ = b.EncodeVarint(8<<3 | proto.WireVarint) |
| 1139 | _ = b.EncodeVarint(uint64(x.Lease)) |
| 1140 | case nil: |
| 1141 | default: |
| 1142 | return fmt.Errorf("Compare.TargetUnion has unexpected type %T", x) |
| 1143 | } |
| 1144 | return nil |
| 1145 | } |
| 1146 | |
| 1147 | func _Compare_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { |
| 1148 | m := msg.(*Compare) |
| 1149 | switch tag { |
| 1150 | case 4: // target_union.version |
| 1151 | if wire != proto.WireVarint { |
| 1152 | return true, proto.ErrInternalBadWireType |
| 1153 | } |
| 1154 | x, err := b.DecodeVarint() |
| 1155 | m.TargetUnion = &Compare_Version{int64(x)} |
| 1156 | return true, err |
| 1157 | case 5: // target_union.create_revision |
| 1158 | if wire != proto.WireVarint { |
| 1159 | return true, proto.ErrInternalBadWireType |
| 1160 | } |
| 1161 | x, err := b.DecodeVarint() |
| 1162 | m.TargetUnion = &Compare_CreateRevision{int64(x)} |
| 1163 | return true, err |
| 1164 | case 6: // target_union.mod_revision |
| 1165 | if wire != proto.WireVarint { |
| 1166 | return true, proto.ErrInternalBadWireType |
| 1167 | } |
| 1168 | x, err := b.DecodeVarint() |
| 1169 | m.TargetUnion = &Compare_ModRevision{int64(x)} |
| 1170 | return true, err |
| 1171 | case 7: // target_union.value |
| 1172 | if wire != proto.WireBytes { |
| 1173 | return true, proto.ErrInternalBadWireType |
| 1174 | } |
| 1175 | x, err := b.DecodeRawBytes(true) |
| 1176 | m.TargetUnion = &Compare_Value{x} |
| 1177 | return true, err |
| 1178 | case 8: // target_union.lease |
| 1179 | if wire != proto.WireVarint { |
| 1180 | return true, proto.ErrInternalBadWireType |
| 1181 | } |
| 1182 | x, err := b.DecodeVarint() |
| 1183 | m.TargetUnion = &Compare_Lease{int64(x)} |
| 1184 | return true, err |
| 1185 | default: |
| 1186 | return false, nil |
| 1187 | } |
| 1188 | } |
| 1189 | |
| 1190 | func _Compare_OneofSizer(msg proto.Message) (n int) { |
| 1191 | m := msg.(*Compare) |
| 1192 | // target_union |
| 1193 | switch x := m.TargetUnion.(type) { |
| 1194 | case *Compare_Version: |
| 1195 | n += proto.SizeVarint(4<<3 | proto.WireVarint) |
| 1196 | n += proto.SizeVarint(uint64(x.Version)) |
| 1197 | case *Compare_CreateRevision: |
| 1198 | n += proto.SizeVarint(5<<3 | proto.WireVarint) |
| 1199 | n += proto.SizeVarint(uint64(x.CreateRevision)) |
| 1200 | case *Compare_ModRevision: |
| 1201 | n += proto.SizeVarint(6<<3 | proto.WireVarint) |
| 1202 | n += proto.SizeVarint(uint64(x.ModRevision)) |
| 1203 | case *Compare_Value: |
| 1204 | n += proto.SizeVarint(7<<3 | proto.WireBytes) |
| 1205 | n += proto.SizeVarint(uint64(len(x.Value))) |
| 1206 | n += len(x.Value) |
| 1207 | case *Compare_Lease: |
| 1208 | n += proto.SizeVarint(8<<3 | proto.WireVarint) |
| 1209 | n += proto.SizeVarint(uint64(x.Lease)) |
| 1210 | case nil: |
| 1211 | default: |
| 1212 | panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) |
| 1213 | } |
| 1214 | return n |
| 1215 | } |
| 1216 | |
| 1217 | // From google paxosdb paper: |
| 1218 | // Our implementation hinges around a powerful primitive which we call MultiOp. All other database |
| 1219 | // operations except for iteration are implemented as a single call to MultiOp. A MultiOp is applied atomically |
| 1220 | // and consists of three components: |
| 1221 | // 1. A list of tests called guard. Each test in guard checks a single entry in the database. It may check |
| 1222 | // for the absence or presence of a value, or compare with a given value. Two different tests in the guard |
| 1223 | // may apply to the same or different entries in the database. All tests in the guard are applied and |
| 1224 | // MultiOp returns the results. If all tests are true, MultiOp executes t op (see item 2 below), otherwise |
| 1225 | // it executes f op (see item 3 below). |
| 1226 | // 2. A list of database operations called t op. Each operation in the list is either an insert, delete, or |
| 1227 | // lookup operation, and applies to a single database entry. Two different operations in the list may apply |
| 1228 | // to the same or different entries in the database. These operations are executed |
| 1229 | // if guard evaluates to |
| 1230 | // true. |
| 1231 | // 3. A list of database operations called f op. Like t op, but executed if guard evaluates to false. |
| 1232 | type TxnRequest struct { |
| 1233 | // compare is a list of predicates representing a conjunction of terms. |
| 1234 | // If the comparisons succeed, then the success requests will be processed in order, |
| 1235 | // and the response will contain their respective responses in order. |
| 1236 | // If the comparisons fail, then the failure requests will be processed in order, |
| 1237 | // and the response will contain their respective responses in order. |
| 1238 | Compare []*Compare `protobuf:"bytes,1,rep,name=compare" json:"compare,omitempty"` |
| 1239 | // success is a list of requests which will be applied when compare evaluates to true. |
| 1240 | Success []*RequestOp `protobuf:"bytes,2,rep,name=success" json:"success,omitempty"` |
| 1241 | // failure is a list of requests which will be applied when compare evaluates to false. |
| 1242 | Failure []*RequestOp `protobuf:"bytes,3,rep,name=failure" json:"failure,omitempty"` |
| 1243 | } |
| 1244 | |
| 1245 | func (m *TxnRequest) Reset() { *m = TxnRequest{} } |
| 1246 | func (m *TxnRequest) String() string { return proto.CompactTextString(m) } |
| 1247 | func (*TxnRequest) ProtoMessage() {} |
| 1248 | func (*TxnRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{10} } |
| 1249 | |
| 1250 | func (m *TxnRequest) GetCompare() []*Compare { |
| 1251 | if m != nil { |
| 1252 | return m.Compare |
| 1253 | } |
| 1254 | return nil |
| 1255 | } |
| 1256 | |
| 1257 | func (m *TxnRequest) GetSuccess() []*RequestOp { |
| 1258 | if m != nil { |
| 1259 | return m.Success |
| 1260 | } |
| 1261 | return nil |
| 1262 | } |
| 1263 | |
| 1264 | func (m *TxnRequest) GetFailure() []*RequestOp { |
| 1265 | if m != nil { |
| 1266 | return m.Failure |
| 1267 | } |
| 1268 | return nil |
| 1269 | } |
| 1270 | |
| 1271 | type TxnResponse struct { |
| 1272 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 1273 | // succeeded is set to true if the compare evaluated to true or false otherwise. |
| 1274 | Succeeded bool `protobuf:"varint,2,opt,name=succeeded,proto3" json:"succeeded,omitempty"` |
| 1275 | // responses is a list of responses corresponding to the results from applying |
| 1276 | // success if succeeded is true or failure if succeeded is false. |
| 1277 | Responses []*ResponseOp `protobuf:"bytes,3,rep,name=responses" json:"responses,omitempty"` |
| 1278 | } |
| 1279 | |
| 1280 | func (m *TxnResponse) Reset() { *m = TxnResponse{} } |
| 1281 | func (m *TxnResponse) String() string { return proto.CompactTextString(m) } |
| 1282 | func (*TxnResponse) ProtoMessage() {} |
| 1283 | func (*TxnResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{11} } |
| 1284 | |
| 1285 | func (m *TxnResponse) GetHeader() *ResponseHeader { |
| 1286 | if m != nil { |
| 1287 | return m.Header |
| 1288 | } |
| 1289 | return nil |
| 1290 | } |
| 1291 | |
| 1292 | func (m *TxnResponse) GetSucceeded() bool { |
| 1293 | if m != nil { |
| 1294 | return m.Succeeded |
| 1295 | } |
| 1296 | return false |
| 1297 | } |
| 1298 | |
| 1299 | func (m *TxnResponse) GetResponses() []*ResponseOp { |
| 1300 | if m != nil { |
| 1301 | return m.Responses |
| 1302 | } |
| 1303 | return nil |
| 1304 | } |
| 1305 | |
| 1306 | // CompactionRequest compacts the key-value store up to a given revision. All superseded keys |
| 1307 | // with a revision less than the compaction revision will be removed. |
| 1308 | type CompactionRequest struct { |
| 1309 | // revision is the key-value store revision for the compaction operation. |
| 1310 | Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"` |
| 1311 | // physical is set so the RPC will wait until the compaction is physically |
| 1312 | // applied to the local database such that compacted entries are totally |
| 1313 | // removed from the backend database. |
| 1314 | Physical bool `protobuf:"varint,2,opt,name=physical,proto3" json:"physical,omitempty"` |
| 1315 | } |
| 1316 | |
| 1317 | func (m *CompactionRequest) Reset() { *m = CompactionRequest{} } |
| 1318 | func (m *CompactionRequest) String() string { return proto.CompactTextString(m) } |
| 1319 | func (*CompactionRequest) ProtoMessage() {} |
| 1320 | func (*CompactionRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{12} } |
| 1321 | |
| 1322 | func (m *CompactionRequest) GetRevision() int64 { |
| 1323 | if m != nil { |
| 1324 | return m.Revision |
| 1325 | } |
| 1326 | return 0 |
| 1327 | } |
| 1328 | |
| 1329 | func (m *CompactionRequest) GetPhysical() bool { |
| 1330 | if m != nil { |
| 1331 | return m.Physical |
| 1332 | } |
| 1333 | return false |
| 1334 | } |
| 1335 | |
| 1336 | type CompactionResponse struct { |
| 1337 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 1338 | } |
| 1339 | |
| 1340 | func (m *CompactionResponse) Reset() { *m = CompactionResponse{} } |
| 1341 | func (m *CompactionResponse) String() string { return proto.CompactTextString(m) } |
| 1342 | func (*CompactionResponse) ProtoMessage() {} |
| 1343 | func (*CompactionResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{13} } |
| 1344 | |
| 1345 | func (m *CompactionResponse) GetHeader() *ResponseHeader { |
| 1346 | if m != nil { |
| 1347 | return m.Header |
| 1348 | } |
| 1349 | return nil |
| 1350 | } |
| 1351 | |
| 1352 | type HashRequest struct { |
| 1353 | } |
| 1354 | |
| 1355 | func (m *HashRequest) Reset() { *m = HashRequest{} } |
| 1356 | func (m *HashRequest) String() string { return proto.CompactTextString(m) } |
| 1357 | func (*HashRequest) ProtoMessage() {} |
| 1358 | func (*HashRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{14} } |
| 1359 | |
| 1360 | type HashKVRequest struct { |
| 1361 | // revision is the key-value store revision for the hash operation. |
| 1362 | Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"` |
| 1363 | } |
| 1364 | |
| 1365 | func (m *HashKVRequest) Reset() { *m = HashKVRequest{} } |
| 1366 | func (m *HashKVRequest) String() string { return proto.CompactTextString(m) } |
| 1367 | func (*HashKVRequest) ProtoMessage() {} |
| 1368 | func (*HashKVRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{15} } |
| 1369 | |
| 1370 | func (m *HashKVRequest) GetRevision() int64 { |
| 1371 | if m != nil { |
| 1372 | return m.Revision |
| 1373 | } |
| 1374 | return 0 |
| 1375 | } |
| 1376 | |
| 1377 | type HashKVResponse struct { |
| 1378 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 1379 | // hash is the hash value computed from the responding member's MVCC keys up to a given revision. |
| 1380 | Hash uint32 `protobuf:"varint,2,opt,name=hash,proto3" json:"hash,omitempty"` |
| 1381 | // compact_revision is the compacted revision of key-value store when hash begins. |
| 1382 | CompactRevision int64 `protobuf:"varint,3,opt,name=compact_revision,json=compactRevision,proto3" json:"compact_revision,omitempty"` |
| 1383 | } |
| 1384 | |
| 1385 | func (m *HashKVResponse) Reset() { *m = HashKVResponse{} } |
| 1386 | func (m *HashKVResponse) String() string { return proto.CompactTextString(m) } |
| 1387 | func (*HashKVResponse) ProtoMessage() {} |
| 1388 | func (*HashKVResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{16} } |
| 1389 | |
| 1390 | func (m *HashKVResponse) GetHeader() *ResponseHeader { |
| 1391 | if m != nil { |
| 1392 | return m.Header |
| 1393 | } |
| 1394 | return nil |
| 1395 | } |
| 1396 | |
| 1397 | func (m *HashKVResponse) GetHash() uint32 { |
| 1398 | if m != nil { |
| 1399 | return m.Hash |
| 1400 | } |
| 1401 | return 0 |
| 1402 | } |
| 1403 | |
| 1404 | func (m *HashKVResponse) GetCompactRevision() int64 { |
| 1405 | if m != nil { |
| 1406 | return m.CompactRevision |
| 1407 | } |
| 1408 | return 0 |
| 1409 | } |
| 1410 | |
| 1411 | type HashResponse struct { |
| 1412 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 1413 | // hash is the hash value computed from the responding member's KV's backend. |
| 1414 | Hash uint32 `protobuf:"varint,2,opt,name=hash,proto3" json:"hash,omitempty"` |
| 1415 | } |
| 1416 | |
| 1417 | func (m *HashResponse) Reset() { *m = HashResponse{} } |
| 1418 | func (m *HashResponse) String() string { return proto.CompactTextString(m) } |
| 1419 | func (*HashResponse) ProtoMessage() {} |
| 1420 | func (*HashResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{17} } |
| 1421 | |
| 1422 | func (m *HashResponse) GetHeader() *ResponseHeader { |
| 1423 | if m != nil { |
| 1424 | return m.Header |
| 1425 | } |
| 1426 | return nil |
| 1427 | } |
| 1428 | |
| 1429 | func (m *HashResponse) GetHash() uint32 { |
| 1430 | if m != nil { |
| 1431 | return m.Hash |
| 1432 | } |
| 1433 | return 0 |
| 1434 | } |
| 1435 | |
| 1436 | type SnapshotRequest struct { |
| 1437 | } |
| 1438 | |
| 1439 | func (m *SnapshotRequest) Reset() { *m = SnapshotRequest{} } |
| 1440 | func (m *SnapshotRequest) String() string { return proto.CompactTextString(m) } |
| 1441 | func (*SnapshotRequest) ProtoMessage() {} |
| 1442 | func (*SnapshotRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{18} } |
| 1443 | |
| 1444 | type SnapshotResponse struct { |
| 1445 | // header has the current key-value store information. The first header in the snapshot |
| 1446 | // stream indicates the point in time of the snapshot. |
| 1447 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 1448 | // remaining_bytes is the number of blob bytes to be sent after this message |
| 1449 | RemainingBytes uint64 `protobuf:"varint,2,opt,name=remaining_bytes,json=remainingBytes,proto3" json:"remaining_bytes,omitempty"` |
| 1450 | // blob contains the next chunk of the snapshot in the snapshot stream. |
| 1451 | Blob []byte `protobuf:"bytes,3,opt,name=blob,proto3" json:"blob,omitempty"` |
| 1452 | } |
| 1453 | |
| 1454 | func (m *SnapshotResponse) Reset() { *m = SnapshotResponse{} } |
| 1455 | func (m *SnapshotResponse) String() string { return proto.CompactTextString(m) } |
| 1456 | func (*SnapshotResponse) ProtoMessage() {} |
| 1457 | func (*SnapshotResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{19} } |
| 1458 | |
| 1459 | func (m *SnapshotResponse) GetHeader() *ResponseHeader { |
| 1460 | if m != nil { |
| 1461 | return m.Header |
| 1462 | } |
| 1463 | return nil |
| 1464 | } |
| 1465 | |
| 1466 | func (m *SnapshotResponse) GetRemainingBytes() uint64 { |
| 1467 | if m != nil { |
| 1468 | return m.RemainingBytes |
| 1469 | } |
| 1470 | return 0 |
| 1471 | } |
| 1472 | |
| 1473 | func (m *SnapshotResponse) GetBlob() []byte { |
| 1474 | if m != nil { |
| 1475 | return m.Blob |
| 1476 | } |
| 1477 | return nil |
| 1478 | } |
| 1479 | |
| 1480 | type WatchRequest struct { |
| 1481 | // request_union is a request to either create a new watcher or cancel an existing watcher. |
| 1482 | // |
| 1483 | // Types that are valid to be assigned to RequestUnion: |
| 1484 | // *WatchRequest_CreateRequest |
| 1485 | // *WatchRequest_CancelRequest |
| 1486 | // *WatchRequest_ProgressRequest |
| 1487 | RequestUnion isWatchRequest_RequestUnion `protobuf_oneof:"request_union"` |
| 1488 | } |
| 1489 | |
| 1490 | func (m *WatchRequest) Reset() { *m = WatchRequest{} } |
| 1491 | func (m *WatchRequest) String() string { return proto.CompactTextString(m) } |
| 1492 | func (*WatchRequest) ProtoMessage() {} |
| 1493 | func (*WatchRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{20} } |
| 1494 | |
| 1495 | type isWatchRequest_RequestUnion interface { |
| 1496 | isWatchRequest_RequestUnion() |
| 1497 | MarshalTo([]byte) (int, error) |
| 1498 | Size() int |
| 1499 | } |
| 1500 | |
| 1501 | type WatchRequest_CreateRequest struct { |
| 1502 | CreateRequest *WatchCreateRequest `protobuf:"bytes,1,opt,name=create_request,json=createRequest,oneof"` |
| 1503 | } |
| 1504 | type WatchRequest_CancelRequest struct { |
| 1505 | CancelRequest *WatchCancelRequest `protobuf:"bytes,2,opt,name=cancel_request,json=cancelRequest,oneof"` |
| 1506 | } |
| 1507 | type WatchRequest_ProgressRequest struct { |
| 1508 | ProgressRequest *WatchProgressRequest `protobuf:"bytes,3,opt,name=progress_request,json=progressRequest,oneof"` |
| 1509 | } |
| 1510 | |
| 1511 | func (*WatchRequest_CreateRequest) isWatchRequest_RequestUnion() {} |
| 1512 | func (*WatchRequest_CancelRequest) isWatchRequest_RequestUnion() {} |
| 1513 | func (*WatchRequest_ProgressRequest) isWatchRequest_RequestUnion() {} |
| 1514 | |
| 1515 | func (m *WatchRequest) GetRequestUnion() isWatchRequest_RequestUnion { |
| 1516 | if m != nil { |
| 1517 | return m.RequestUnion |
| 1518 | } |
| 1519 | return nil |
| 1520 | } |
| 1521 | |
| 1522 | func (m *WatchRequest) GetCreateRequest() *WatchCreateRequest { |
| 1523 | if x, ok := m.GetRequestUnion().(*WatchRequest_CreateRequest); ok { |
| 1524 | return x.CreateRequest |
| 1525 | } |
| 1526 | return nil |
| 1527 | } |
| 1528 | |
| 1529 | func (m *WatchRequest) GetCancelRequest() *WatchCancelRequest { |
| 1530 | if x, ok := m.GetRequestUnion().(*WatchRequest_CancelRequest); ok { |
| 1531 | return x.CancelRequest |
| 1532 | } |
| 1533 | return nil |
| 1534 | } |
| 1535 | |
| 1536 | func (m *WatchRequest) GetProgressRequest() *WatchProgressRequest { |
| 1537 | if x, ok := m.GetRequestUnion().(*WatchRequest_ProgressRequest); ok { |
| 1538 | return x.ProgressRequest |
| 1539 | } |
| 1540 | return nil |
| 1541 | } |
| 1542 | |
| 1543 | // XXX_OneofFuncs is for the internal use of the proto package. |
| 1544 | func (*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{}) { |
| 1545 | return _WatchRequest_OneofMarshaler, _WatchRequest_OneofUnmarshaler, _WatchRequest_OneofSizer, []interface{}{ |
| 1546 | (*WatchRequest_CreateRequest)(nil), |
| 1547 | (*WatchRequest_CancelRequest)(nil), |
| 1548 | (*WatchRequest_ProgressRequest)(nil), |
| 1549 | } |
| 1550 | } |
| 1551 | |
| 1552 | func _WatchRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { |
| 1553 | m := msg.(*WatchRequest) |
| 1554 | // request_union |
| 1555 | switch x := m.RequestUnion.(type) { |
| 1556 | case *WatchRequest_CreateRequest: |
| 1557 | _ = b.EncodeVarint(1<<3 | proto.WireBytes) |
| 1558 | if err := b.EncodeMessage(x.CreateRequest); err != nil { |
| 1559 | return err |
| 1560 | } |
| 1561 | case *WatchRequest_CancelRequest: |
| 1562 | _ = b.EncodeVarint(2<<3 | proto.WireBytes) |
| 1563 | if err := b.EncodeMessage(x.CancelRequest); err != nil { |
| 1564 | return err |
| 1565 | } |
| 1566 | case *WatchRequest_ProgressRequest: |
| 1567 | _ = b.EncodeVarint(3<<3 | proto.WireBytes) |
| 1568 | if err := b.EncodeMessage(x.ProgressRequest); err != nil { |
| 1569 | return err |
| 1570 | } |
| 1571 | case nil: |
| 1572 | default: |
| 1573 | return fmt.Errorf("WatchRequest.RequestUnion has unexpected type %T", x) |
| 1574 | } |
| 1575 | return nil |
| 1576 | } |
| 1577 | |
| 1578 | func _WatchRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { |
| 1579 | m := msg.(*WatchRequest) |
| 1580 | switch tag { |
| 1581 | case 1: // request_union.create_request |
| 1582 | if wire != proto.WireBytes { |
| 1583 | return true, proto.ErrInternalBadWireType |
| 1584 | } |
| 1585 | msg := new(WatchCreateRequest) |
| 1586 | err := b.DecodeMessage(msg) |
| 1587 | m.RequestUnion = &WatchRequest_CreateRequest{msg} |
| 1588 | return true, err |
| 1589 | case 2: // request_union.cancel_request |
| 1590 | if wire != proto.WireBytes { |
| 1591 | return true, proto.ErrInternalBadWireType |
| 1592 | } |
| 1593 | msg := new(WatchCancelRequest) |
| 1594 | err := b.DecodeMessage(msg) |
| 1595 | m.RequestUnion = &WatchRequest_CancelRequest{msg} |
| 1596 | return true, err |
| 1597 | case 3: // request_union.progress_request |
| 1598 | if wire != proto.WireBytes { |
| 1599 | return true, proto.ErrInternalBadWireType |
| 1600 | } |
| 1601 | msg := new(WatchProgressRequest) |
| 1602 | err := b.DecodeMessage(msg) |
| 1603 | m.RequestUnion = &WatchRequest_ProgressRequest{msg} |
| 1604 | return true, err |
| 1605 | default: |
| 1606 | return false, nil |
| 1607 | } |
| 1608 | } |
| 1609 | |
| 1610 | func _WatchRequest_OneofSizer(msg proto.Message) (n int) { |
| 1611 | m := msg.(*WatchRequest) |
| 1612 | // request_union |
| 1613 | switch x := m.RequestUnion.(type) { |
| 1614 | case *WatchRequest_CreateRequest: |
| 1615 | s := proto.Size(x.CreateRequest) |
| 1616 | n += proto.SizeVarint(1<<3 | proto.WireBytes) |
| 1617 | n += proto.SizeVarint(uint64(s)) |
| 1618 | n += s |
| 1619 | case *WatchRequest_CancelRequest: |
| 1620 | s := proto.Size(x.CancelRequest) |
| 1621 | n += proto.SizeVarint(2<<3 | proto.WireBytes) |
| 1622 | n += proto.SizeVarint(uint64(s)) |
| 1623 | n += s |
| 1624 | case *WatchRequest_ProgressRequest: |
| 1625 | s := proto.Size(x.ProgressRequest) |
| 1626 | n += proto.SizeVarint(3<<3 | proto.WireBytes) |
| 1627 | n += proto.SizeVarint(uint64(s)) |
| 1628 | n += s |
| 1629 | case nil: |
| 1630 | default: |
| 1631 | panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) |
| 1632 | } |
| 1633 | return n |
| 1634 | } |
| 1635 | |
| 1636 | type WatchCreateRequest struct { |
| 1637 | // key is the key to register for watching. |
| 1638 | Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` |
| 1639 | // range_end is the end of the range [key, range_end) to watch. If range_end is not given, |
| 1640 | // only the key argument is watched. If range_end is equal to '\0', all keys greater than |
| 1641 | // or equal to the key argument are watched. |
| 1642 | // If the range_end is one bit larger than the given key, |
| 1643 | // then all keys with the prefix (the given key) will be watched. |
| 1644 | RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` |
| 1645 | // start_revision is an optional revision to watch from (inclusive). No start_revision is "now". |
| 1646 | StartRevision int64 `protobuf:"varint,3,opt,name=start_revision,json=startRevision,proto3" json:"start_revision,omitempty"` |
| 1647 | // progress_notify is set so that the etcd server will periodically send a WatchResponse with |
| 1648 | // no events to the new watcher if there are no recent events. It is useful when clients |
| 1649 | // wish to recover a disconnected watcher starting from a recent known revision. |
| 1650 | // The etcd server may decide how often it will send notifications based on current load. |
| 1651 | ProgressNotify bool `protobuf:"varint,4,opt,name=progress_notify,json=progressNotify,proto3" json:"progress_notify,omitempty"` |
| 1652 | // filters filter the events at server side before it sends back to the watcher. |
| 1653 | Filters []WatchCreateRequest_FilterType `protobuf:"varint,5,rep,packed,name=filters,enum=etcdserverpb.WatchCreateRequest_FilterType" json:"filters,omitempty"` |
| 1654 | // If prev_kv is set, created watcher gets the previous KV before the event happens. |
| 1655 | // If the previous KV is already compacted, nothing will be returned. |
| 1656 | PrevKv bool `protobuf:"varint,6,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` |
| 1657 | // If watch_id is provided and non-zero, it will be assigned to this watcher. |
| 1658 | // Since creating a watcher in etcd is not a synchronous operation, |
| 1659 | // this can be used ensure that ordering is correct when creating multiple |
| 1660 | // watchers on the same stream. Creating a watcher with an ID already in |
| 1661 | // use on the stream will cause an error to be returned. |
| 1662 | WatchId int64 `protobuf:"varint,7,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"` |
| 1663 | // fragment enables splitting large revisions into multiple watch responses. |
| 1664 | Fragment bool `protobuf:"varint,8,opt,name=fragment,proto3" json:"fragment,omitempty"` |
| 1665 | } |
| 1666 | |
| 1667 | func (m *WatchCreateRequest) Reset() { *m = WatchCreateRequest{} } |
| 1668 | func (m *WatchCreateRequest) String() string { return proto.CompactTextString(m) } |
| 1669 | func (*WatchCreateRequest) ProtoMessage() {} |
| 1670 | func (*WatchCreateRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{21} } |
| 1671 | |
| 1672 | func (m *WatchCreateRequest) GetKey() []byte { |
| 1673 | if m != nil { |
| 1674 | return m.Key |
| 1675 | } |
| 1676 | return nil |
| 1677 | } |
| 1678 | |
| 1679 | func (m *WatchCreateRequest) GetRangeEnd() []byte { |
| 1680 | if m != nil { |
| 1681 | return m.RangeEnd |
| 1682 | } |
| 1683 | return nil |
| 1684 | } |
| 1685 | |
| 1686 | func (m *WatchCreateRequest) GetStartRevision() int64 { |
| 1687 | if m != nil { |
| 1688 | return m.StartRevision |
| 1689 | } |
| 1690 | return 0 |
| 1691 | } |
| 1692 | |
| 1693 | func (m *WatchCreateRequest) GetProgressNotify() bool { |
| 1694 | if m != nil { |
| 1695 | return m.ProgressNotify |
| 1696 | } |
| 1697 | return false |
| 1698 | } |
| 1699 | |
| 1700 | func (m *WatchCreateRequest) GetFilters() []WatchCreateRequest_FilterType { |
| 1701 | if m != nil { |
| 1702 | return m.Filters |
| 1703 | } |
| 1704 | return nil |
| 1705 | } |
| 1706 | |
| 1707 | func (m *WatchCreateRequest) GetPrevKv() bool { |
| 1708 | if m != nil { |
| 1709 | return m.PrevKv |
| 1710 | } |
| 1711 | return false |
| 1712 | } |
| 1713 | |
| 1714 | func (m *WatchCreateRequest) GetWatchId() int64 { |
| 1715 | if m != nil { |
| 1716 | return m.WatchId |
| 1717 | } |
| 1718 | return 0 |
| 1719 | } |
| 1720 | |
| 1721 | func (m *WatchCreateRequest) GetFragment() bool { |
| 1722 | if m != nil { |
| 1723 | return m.Fragment |
| 1724 | } |
| 1725 | return false |
| 1726 | } |
| 1727 | |
| 1728 | type WatchCancelRequest struct { |
| 1729 | // watch_id is the watcher id to cancel so that no more events are transmitted. |
| 1730 | WatchId int64 `protobuf:"varint,1,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"` |
| 1731 | } |
| 1732 | |
| 1733 | func (m *WatchCancelRequest) Reset() { *m = WatchCancelRequest{} } |
| 1734 | func (m *WatchCancelRequest) String() string { return proto.CompactTextString(m) } |
| 1735 | func (*WatchCancelRequest) ProtoMessage() {} |
| 1736 | func (*WatchCancelRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{22} } |
| 1737 | |
| 1738 | func (m *WatchCancelRequest) GetWatchId() int64 { |
| 1739 | if m != nil { |
| 1740 | return m.WatchId |
| 1741 | } |
| 1742 | return 0 |
| 1743 | } |
| 1744 | |
| 1745 | // Requests the a watch stream progress status be sent in the watch response stream as soon as |
| 1746 | // possible. |
| 1747 | type WatchProgressRequest struct { |
| 1748 | } |
| 1749 | |
| 1750 | func (m *WatchProgressRequest) Reset() { *m = WatchProgressRequest{} } |
| 1751 | func (m *WatchProgressRequest) String() string { return proto.CompactTextString(m) } |
| 1752 | func (*WatchProgressRequest) ProtoMessage() {} |
| 1753 | func (*WatchProgressRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{23} } |
| 1754 | |
| 1755 | type WatchResponse struct { |
| 1756 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 1757 | // watch_id is the ID of the watcher that corresponds to the response. |
| 1758 | WatchId int64 `protobuf:"varint,2,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"` |
| 1759 | // created is set to true if the response is for a create watch request. |
| 1760 | // The client should record the watch_id and expect to receive events for |
| 1761 | // the created watcher from the same stream. |
| 1762 | // All events sent to the created watcher will attach with the same watch_id. |
| 1763 | Created bool `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"` |
| 1764 | // canceled is set to true if the response is for a cancel watch request. |
| 1765 | // No further events will be sent to the canceled watcher. |
| 1766 | Canceled bool `protobuf:"varint,4,opt,name=canceled,proto3" json:"canceled,omitempty"` |
| 1767 | // compact_revision is set to the minimum index if a watcher tries to watch |
| 1768 | // at a compacted index. |
| 1769 | // |
| 1770 | // This happens when creating a watcher at a compacted revision or the watcher cannot |
| 1771 | // catch up with the progress of the key-value store. |
| 1772 | // |
| 1773 | // The client should treat the watcher as canceled and should not try to create any |
| 1774 | // watcher with the same start_revision again. |
| 1775 | CompactRevision int64 `protobuf:"varint,5,opt,name=compact_revision,json=compactRevision,proto3" json:"compact_revision,omitempty"` |
| 1776 | // cancel_reason indicates the reason for canceling the watcher. |
| 1777 | CancelReason string `protobuf:"bytes,6,opt,name=cancel_reason,json=cancelReason,proto3" json:"cancel_reason,omitempty"` |
| 1778 | // framgment is true if large watch response was split over multiple responses. |
| 1779 | Fragment bool `protobuf:"varint,7,opt,name=fragment,proto3" json:"fragment,omitempty"` |
| 1780 | Events []*mvccpb.Event `protobuf:"bytes,11,rep,name=events" json:"events,omitempty"` |
| 1781 | } |
| 1782 | |
| 1783 | func (m *WatchResponse) Reset() { *m = WatchResponse{} } |
| 1784 | func (m *WatchResponse) String() string { return proto.CompactTextString(m) } |
| 1785 | func (*WatchResponse) ProtoMessage() {} |
| 1786 | func (*WatchResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{24} } |
| 1787 | |
| 1788 | func (m *WatchResponse) GetHeader() *ResponseHeader { |
| 1789 | if m != nil { |
| 1790 | return m.Header |
| 1791 | } |
| 1792 | return nil |
| 1793 | } |
| 1794 | |
| 1795 | func (m *WatchResponse) GetWatchId() int64 { |
| 1796 | if m != nil { |
| 1797 | return m.WatchId |
| 1798 | } |
| 1799 | return 0 |
| 1800 | } |
| 1801 | |
| 1802 | func (m *WatchResponse) GetCreated() bool { |
| 1803 | if m != nil { |
| 1804 | return m.Created |
| 1805 | } |
| 1806 | return false |
| 1807 | } |
| 1808 | |
| 1809 | func (m *WatchResponse) GetCanceled() bool { |
| 1810 | if m != nil { |
| 1811 | return m.Canceled |
| 1812 | } |
| 1813 | return false |
| 1814 | } |
| 1815 | |
| 1816 | func (m *WatchResponse) GetCompactRevision() int64 { |
| 1817 | if m != nil { |
| 1818 | return m.CompactRevision |
| 1819 | } |
| 1820 | return 0 |
| 1821 | } |
| 1822 | |
| 1823 | func (m *WatchResponse) GetCancelReason() string { |
| 1824 | if m != nil { |
| 1825 | return m.CancelReason |
| 1826 | } |
| 1827 | return "" |
| 1828 | } |
| 1829 | |
| 1830 | func (m *WatchResponse) GetFragment() bool { |
| 1831 | if m != nil { |
| 1832 | return m.Fragment |
| 1833 | } |
| 1834 | return false |
| 1835 | } |
| 1836 | |
| 1837 | func (m *WatchResponse) GetEvents() []*mvccpb.Event { |
| 1838 | if m != nil { |
| 1839 | return m.Events |
| 1840 | } |
| 1841 | return nil |
| 1842 | } |
| 1843 | |
| 1844 | type LeaseGrantRequest struct { |
| 1845 | // TTL is the advisory time-to-live in seconds. Expired lease will return -1. |
| 1846 | TTL int64 `protobuf:"varint,1,opt,name=TTL,proto3" json:"TTL,omitempty"` |
| 1847 | // ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID. |
| 1848 | ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"` |
| 1849 | } |
| 1850 | |
| 1851 | func (m *LeaseGrantRequest) Reset() { *m = LeaseGrantRequest{} } |
| 1852 | func (m *LeaseGrantRequest) String() string { return proto.CompactTextString(m) } |
| 1853 | func (*LeaseGrantRequest) ProtoMessage() {} |
| 1854 | func (*LeaseGrantRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{25} } |
| 1855 | |
| 1856 | func (m *LeaseGrantRequest) GetTTL() int64 { |
| 1857 | if m != nil { |
| 1858 | return m.TTL |
| 1859 | } |
| 1860 | return 0 |
| 1861 | } |
| 1862 | |
| 1863 | func (m *LeaseGrantRequest) GetID() int64 { |
| 1864 | if m != nil { |
| 1865 | return m.ID |
| 1866 | } |
| 1867 | return 0 |
| 1868 | } |
| 1869 | |
| 1870 | type LeaseGrantResponse struct { |
| 1871 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 1872 | // ID is the lease ID for the granted lease. |
| 1873 | ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"` |
| 1874 | // TTL is the server chosen lease time-to-live in seconds. |
| 1875 | TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"` |
| 1876 | Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` |
| 1877 | } |
| 1878 | |
| 1879 | func (m *LeaseGrantResponse) Reset() { *m = LeaseGrantResponse{} } |
| 1880 | func (m *LeaseGrantResponse) String() string { return proto.CompactTextString(m) } |
| 1881 | func (*LeaseGrantResponse) ProtoMessage() {} |
| 1882 | func (*LeaseGrantResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{26} } |
| 1883 | |
| 1884 | func (m *LeaseGrantResponse) GetHeader() *ResponseHeader { |
| 1885 | if m != nil { |
| 1886 | return m.Header |
| 1887 | } |
| 1888 | return nil |
| 1889 | } |
| 1890 | |
| 1891 | func (m *LeaseGrantResponse) GetID() int64 { |
| 1892 | if m != nil { |
| 1893 | return m.ID |
| 1894 | } |
| 1895 | return 0 |
| 1896 | } |
| 1897 | |
| 1898 | func (m *LeaseGrantResponse) GetTTL() int64 { |
| 1899 | if m != nil { |
| 1900 | return m.TTL |
| 1901 | } |
| 1902 | return 0 |
| 1903 | } |
| 1904 | |
| 1905 | func (m *LeaseGrantResponse) GetError() string { |
| 1906 | if m != nil { |
| 1907 | return m.Error |
| 1908 | } |
| 1909 | return "" |
| 1910 | } |
| 1911 | |
| 1912 | type LeaseRevokeRequest struct { |
| 1913 | // ID is the lease ID to revoke. When the ID is revoked, all associated keys will be deleted. |
| 1914 | ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 1915 | } |
| 1916 | |
| 1917 | func (m *LeaseRevokeRequest) Reset() { *m = LeaseRevokeRequest{} } |
| 1918 | func (m *LeaseRevokeRequest) String() string { return proto.CompactTextString(m) } |
| 1919 | func (*LeaseRevokeRequest) ProtoMessage() {} |
| 1920 | func (*LeaseRevokeRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{27} } |
| 1921 | |
| 1922 | func (m *LeaseRevokeRequest) GetID() int64 { |
| 1923 | if m != nil { |
| 1924 | return m.ID |
| 1925 | } |
| 1926 | return 0 |
| 1927 | } |
| 1928 | |
| 1929 | type LeaseRevokeResponse struct { |
| 1930 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 1931 | } |
| 1932 | |
| 1933 | func (m *LeaseRevokeResponse) Reset() { *m = LeaseRevokeResponse{} } |
| 1934 | func (m *LeaseRevokeResponse) String() string { return proto.CompactTextString(m) } |
| 1935 | func (*LeaseRevokeResponse) ProtoMessage() {} |
| 1936 | func (*LeaseRevokeResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{28} } |
| 1937 | |
| 1938 | func (m *LeaseRevokeResponse) GetHeader() *ResponseHeader { |
| 1939 | if m != nil { |
| 1940 | return m.Header |
| 1941 | } |
| 1942 | return nil |
| 1943 | } |
| 1944 | |
| 1945 | type LeaseCheckpoint struct { |
| 1946 | // ID is the lease ID to checkpoint. |
| 1947 | ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 1948 | // Remaining_TTL is the remaining time until expiry of the lease. |
| 1949 | Remaining_TTL int64 `protobuf:"varint,2,opt,name=remaining_TTL,json=remainingTTL,proto3" json:"remaining_TTL,omitempty"` |
| 1950 | } |
| 1951 | |
| 1952 | func (m *LeaseCheckpoint) Reset() { *m = LeaseCheckpoint{} } |
| 1953 | func (m *LeaseCheckpoint) String() string { return proto.CompactTextString(m) } |
| 1954 | func (*LeaseCheckpoint) ProtoMessage() {} |
| 1955 | func (*LeaseCheckpoint) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{29} } |
| 1956 | |
| 1957 | func (m *LeaseCheckpoint) GetID() int64 { |
| 1958 | if m != nil { |
| 1959 | return m.ID |
| 1960 | } |
| 1961 | return 0 |
| 1962 | } |
| 1963 | |
| 1964 | func (m *LeaseCheckpoint) GetRemaining_TTL() int64 { |
| 1965 | if m != nil { |
| 1966 | return m.Remaining_TTL |
| 1967 | } |
| 1968 | return 0 |
| 1969 | } |
| 1970 | |
| 1971 | type LeaseCheckpointRequest struct { |
| 1972 | Checkpoints []*LeaseCheckpoint `protobuf:"bytes,1,rep,name=checkpoints" json:"checkpoints,omitempty"` |
| 1973 | } |
| 1974 | |
| 1975 | func (m *LeaseCheckpointRequest) Reset() { *m = LeaseCheckpointRequest{} } |
| 1976 | func (m *LeaseCheckpointRequest) String() string { return proto.CompactTextString(m) } |
| 1977 | func (*LeaseCheckpointRequest) ProtoMessage() {} |
| 1978 | func (*LeaseCheckpointRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{30} } |
| 1979 | |
| 1980 | func (m *LeaseCheckpointRequest) GetCheckpoints() []*LeaseCheckpoint { |
| 1981 | if m != nil { |
| 1982 | return m.Checkpoints |
| 1983 | } |
| 1984 | return nil |
| 1985 | } |
| 1986 | |
| 1987 | type LeaseCheckpointResponse struct { |
| 1988 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 1989 | } |
| 1990 | |
| 1991 | func (m *LeaseCheckpointResponse) Reset() { *m = LeaseCheckpointResponse{} } |
| 1992 | func (m *LeaseCheckpointResponse) String() string { return proto.CompactTextString(m) } |
| 1993 | func (*LeaseCheckpointResponse) ProtoMessage() {} |
| 1994 | func (*LeaseCheckpointResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{31} } |
| 1995 | |
| 1996 | func (m *LeaseCheckpointResponse) GetHeader() *ResponseHeader { |
| 1997 | if m != nil { |
| 1998 | return m.Header |
| 1999 | } |
| 2000 | return nil |
| 2001 | } |
| 2002 | |
| 2003 | type LeaseKeepAliveRequest struct { |
| 2004 | // ID is the lease ID for the lease to keep alive. |
| 2005 | ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 2006 | } |
| 2007 | |
| 2008 | func (m *LeaseKeepAliveRequest) Reset() { *m = LeaseKeepAliveRequest{} } |
| 2009 | func (m *LeaseKeepAliveRequest) String() string { return proto.CompactTextString(m) } |
| 2010 | func (*LeaseKeepAliveRequest) ProtoMessage() {} |
| 2011 | func (*LeaseKeepAliveRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{32} } |
| 2012 | |
| 2013 | func (m *LeaseKeepAliveRequest) GetID() int64 { |
| 2014 | if m != nil { |
| 2015 | return m.ID |
| 2016 | } |
| 2017 | return 0 |
| 2018 | } |
| 2019 | |
| 2020 | type LeaseKeepAliveResponse struct { |
| 2021 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2022 | // ID is the lease ID from the keep alive request. |
| 2023 | ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"` |
| 2024 | // TTL is the new time-to-live for the lease. |
| 2025 | TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"` |
| 2026 | } |
| 2027 | |
| 2028 | func (m *LeaseKeepAliveResponse) Reset() { *m = LeaseKeepAliveResponse{} } |
| 2029 | func (m *LeaseKeepAliveResponse) String() string { return proto.CompactTextString(m) } |
| 2030 | func (*LeaseKeepAliveResponse) ProtoMessage() {} |
| 2031 | func (*LeaseKeepAliveResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{33} } |
| 2032 | |
| 2033 | func (m *LeaseKeepAliveResponse) GetHeader() *ResponseHeader { |
| 2034 | if m != nil { |
| 2035 | return m.Header |
| 2036 | } |
| 2037 | return nil |
| 2038 | } |
| 2039 | |
| 2040 | func (m *LeaseKeepAliveResponse) GetID() int64 { |
| 2041 | if m != nil { |
| 2042 | return m.ID |
| 2043 | } |
| 2044 | return 0 |
| 2045 | } |
| 2046 | |
| 2047 | func (m *LeaseKeepAliveResponse) GetTTL() int64 { |
| 2048 | if m != nil { |
| 2049 | return m.TTL |
| 2050 | } |
| 2051 | return 0 |
| 2052 | } |
| 2053 | |
| 2054 | type LeaseTimeToLiveRequest struct { |
| 2055 | // ID is the lease ID for the lease. |
| 2056 | ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 2057 | // keys is true to query all the keys attached to this lease. |
| 2058 | Keys bool `protobuf:"varint,2,opt,name=keys,proto3" json:"keys,omitempty"` |
| 2059 | } |
| 2060 | |
| 2061 | func (m *LeaseTimeToLiveRequest) Reset() { *m = LeaseTimeToLiveRequest{} } |
| 2062 | func (m *LeaseTimeToLiveRequest) String() string { return proto.CompactTextString(m) } |
| 2063 | func (*LeaseTimeToLiveRequest) ProtoMessage() {} |
| 2064 | func (*LeaseTimeToLiveRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{34} } |
| 2065 | |
| 2066 | func (m *LeaseTimeToLiveRequest) GetID() int64 { |
| 2067 | if m != nil { |
| 2068 | return m.ID |
| 2069 | } |
| 2070 | return 0 |
| 2071 | } |
| 2072 | |
| 2073 | func (m *LeaseTimeToLiveRequest) GetKeys() bool { |
| 2074 | if m != nil { |
| 2075 | return m.Keys |
| 2076 | } |
| 2077 | return false |
| 2078 | } |
| 2079 | |
| 2080 | type LeaseTimeToLiveResponse struct { |
| 2081 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2082 | // ID is the lease ID from the keep alive request. |
| 2083 | ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"` |
| 2084 | // TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds. |
| 2085 | TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"` |
| 2086 | // GrantedTTL is the initial granted time in seconds upon lease creation/renewal. |
| 2087 | GrantedTTL int64 `protobuf:"varint,4,opt,name=grantedTTL,proto3" json:"grantedTTL,omitempty"` |
| 2088 | // Keys is the list of keys attached to this lease. |
| 2089 | Keys [][]byte `protobuf:"bytes,5,rep,name=keys" json:"keys,omitempty"` |
| 2090 | } |
| 2091 | |
| 2092 | func (m *LeaseTimeToLiveResponse) Reset() { *m = LeaseTimeToLiveResponse{} } |
| 2093 | func (m *LeaseTimeToLiveResponse) String() string { return proto.CompactTextString(m) } |
| 2094 | func (*LeaseTimeToLiveResponse) ProtoMessage() {} |
| 2095 | func (*LeaseTimeToLiveResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{35} } |
| 2096 | |
| 2097 | func (m *LeaseTimeToLiveResponse) GetHeader() *ResponseHeader { |
| 2098 | if m != nil { |
| 2099 | return m.Header |
| 2100 | } |
| 2101 | return nil |
| 2102 | } |
| 2103 | |
| 2104 | func (m *LeaseTimeToLiveResponse) GetID() int64 { |
| 2105 | if m != nil { |
| 2106 | return m.ID |
| 2107 | } |
| 2108 | return 0 |
| 2109 | } |
| 2110 | |
| 2111 | func (m *LeaseTimeToLiveResponse) GetTTL() int64 { |
| 2112 | if m != nil { |
| 2113 | return m.TTL |
| 2114 | } |
| 2115 | return 0 |
| 2116 | } |
| 2117 | |
| 2118 | func (m *LeaseTimeToLiveResponse) GetGrantedTTL() int64 { |
| 2119 | if m != nil { |
| 2120 | return m.GrantedTTL |
| 2121 | } |
| 2122 | return 0 |
| 2123 | } |
| 2124 | |
| 2125 | func (m *LeaseTimeToLiveResponse) GetKeys() [][]byte { |
| 2126 | if m != nil { |
| 2127 | return m.Keys |
| 2128 | } |
| 2129 | return nil |
| 2130 | } |
| 2131 | |
| 2132 | type LeaseLeasesRequest struct { |
| 2133 | } |
| 2134 | |
| 2135 | func (m *LeaseLeasesRequest) Reset() { *m = LeaseLeasesRequest{} } |
| 2136 | func (m *LeaseLeasesRequest) String() string { return proto.CompactTextString(m) } |
| 2137 | func (*LeaseLeasesRequest) ProtoMessage() {} |
| 2138 | func (*LeaseLeasesRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{36} } |
| 2139 | |
| 2140 | type LeaseStatus struct { |
| 2141 | ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 2142 | } |
| 2143 | |
| 2144 | func (m *LeaseStatus) Reset() { *m = LeaseStatus{} } |
| 2145 | func (m *LeaseStatus) String() string { return proto.CompactTextString(m) } |
| 2146 | func (*LeaseStatus) ProtoMessage() {} |
| 2147 | func (*LeaseStatus) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{37} } |
| 2148 | |
| 2149 | func (m *LeaseStatus) GetID() int64 { |
| 2150 | if m != nil { |
| 2151 | return m.ID |
| 2152 | } |
| 2153 | return 0 |
| 2154 | } |
| 2155 | |
| 2156 | type LeaseLeasesResponse struct { |
| 2157 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2158 | Leases []*LeaseStatus `protobuf:"bytes,2,rep,name=leases" json:"leases,omitempty"` |
| 2159 | } |
| 2160 | |
| 2161 | func (m *LeaseLeasesResponse) Reset() { *m = LeaseLeasesResponse{} } |
| 2162 | func (m *LeaseLeasesResponse) String() string { return proto.CompactTextString(m) } |
| 2163 | func (*LeaseLeasesResponse) ProtoMessage() {} |
| 2164 | func (*LeaseLeasesResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{38} } |
| 2165 | |
| 2166 | func (m *LeaseLeasesResponse) GetHeader() *ResponseHeader { |
| 2167 | if m != nil { |
| 2168 | return m.Header |
| 2169 | } |
| 2170 | return nil |
| 2171 | } |
| 2172 | |
| 2173 | func (m *LeaseLeasesResponse) GetLeases() []*LeaseStatus { |
| 2174 | if m != nil { |
| 2175 | return m.Leases |
| 2176 | } |
| 2177 | return nil |
| 2178 | } |
| 2179 | |
| 2180 | type Member struct { |
| 2181 | // ID is the member ID for this member. |
| 2182 | ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 2183 | // name is the human-readable name of the member. If the member is not started, the name will be an empty string. |
| 2184 | Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` |
| 2185 | // peerURLs is the list of URLs the member exposes to the cluster for communication. |
| 2186 | PeerURLs []string `protobuf:"bytes,3,rep,name=peerURLs" json:"peerURLs,omitempty"` |
| 2187 | // clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty. |
| 2188 | ClientURLs []string `protobuf:"bytes,4,rep,name=clientURLs" json:"clientURLs,omitempty"` |
| 2189 | } |
| 2190 | |
| 2191 | func (m *Member) Reset() { *m = Member{} } |
| 2192 | func (m *Member) String() string { return proto.CompactTextString(m) } |
| 2193 | func (*Member) ProtoMessage() {} |
| 2194 | func (*Member) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{39} } |
| 2195 | |
| 2196 | func (m *Member) GetID() uint64 { |
| 2197 | if m != nil { |
| 2198 | return m.ID |
| 2199 | } |
| 2200 | return 0 |
| 2201 | } |
| 2202 | |
| 2203 | func (m *Member) GetName() string { |
| 2204 | if m != nil { |
| 2205 | return m.Name |
| 2206 | } |
| 2207 | return "" |
| 2208 | } |
| 2209 | |
| 2210 | func (m *Member) GetPeerURLs() []string { |
| 2211 | if m != nil { |
| 2212 | return m.PeerURLs |
| 2213 | } |
| 2214 | return nil |
| 2215 | } |
| 2216 | |
| 2217 | func (m *Member) GetClientURLs() []string { |
| 2218 | if m != nil { |
| 2219 | return m.ClientURLs |
| 2220 | } |
| 2221 | return nil |
| 2222 | } |
| 2223 | |
| 2224 | type MemberAddRequest struct { |
| 2225 | // peerURLs is the list of URLs the added member will use to communicate with the cluster. |
| 2226 | PeerURLs []string `protobuf:"bytes,1,rep,name=peerURLs" json:"peerURLs,omitempty"` |
| 2227 | } |
| 2228 | |
| 2229 | func (m *MemberAddRequest) Reset() { *m = MemberAddRequest{} } |
| 2230 | func (m *MemberAddRequest) String() string { return proto.CompactTextString(m) } |
| 2231 | func (*MemberAddRequest) ProtoMessage() {} |
| 2232 | func (*MemberAddRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{40} } |
| 2233 | |
| 2234 | func (m *MemberAddRequest) GetPeerURLs() []string { |
| 2235 | if m != nil { |
| 2236 | return m.PeerURLs |
| 2237 | } |
| 2238 | return nil |
| 2239 | } |
| 2240 | |
| 2241 | type MemberAddResponse struct { |
| 2242 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2243 | // member is the member information for the added member. |
| 2244 | Member *Member `protobuf:"bytes,2,opt,name=member" json:"member,omitempty"` |
| 2245 | // members is a list of all members after adding the new member. |
| 2246 | Members []*Member `protobuf:"bytes,3,rep,name=members" json:"members,omitempty"` |
| 2247 | } |
| 2248 | |
| 2249 | func (m *MemberAddResponse) Reset() { *m = MemberAddResponse{} } |
| 2250 | func (m *MemberAddResponse) String() string { return proto.CompactTextString(m) } |
| 2251 | func (*MemberAddResponse) ProtoMessage() {} |
| 2252 | func (*MemberAddResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{41} } |
| 2253 | |
| 2254 | func (m *MemberAddResponse) GetHeader() *ResponseHeader { |
| 2255 | if m != nil { |
| 2256 | return m.Header |
| 2257 | } |
| 2258 | return nil |
| 2259 | } |
| 2260 | |
| 2261 | func (m *MemberAddResponse) GetMember() *Member { |
| 2262 | if m != nil { |
| 2263 | return m.Member |
| 2264 | } |
| 2265 | return nil |
| 2266 | } |
| 2267 | |
| 2268 | func (m *MemberAddResponse) GetMembers() []*Member { |
| 2269 | if m != nil { |
| 2270 | return m.Members |
| 2271 | } |
| 2272 | return nil |
| 2273 | } |
| 2274 | |
| 2275 | type MemberRemoveRequest struct { |
| 2276 | // ID is the member ID of the member to remove. |
| 2277 | ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 2278 | } |
| 2279 | |
| 2280 | func (m *MemberRemoveRequest) Reset() { *m = MemberRemoveRequest{} } |
| 2281 | func (m *MemberRemoveRequest) String() string { return proto.CompactTextString(m) } |
| 2282 | func (*MemberRemoveRequest) ProtoMessage() {} |
| 2283 | func (*MemberRemoveRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{42} } |
| 2284 | |
| 2285 | func (m *MemberRemoveRequest) GetID() uint64 { |
| 2286 | if m != nil { |
| 2287 | return m.ID |
| 2288 | } |
| 2289 | return 0 |
| 2290 | } |
| 2291 | |
| 2292 | type MemberRemoveResponse struct { |
| 2293 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2294 | // members is a list of all members after removing the member. |
| 2295 | Members []*Member `protobuf:"bytes,2,rep,name=members" json:"members,omitempty"` |
| 2296 | } |
| 2297 | |
| 2298 | func (m *MemberRemoveResponse) Reset() { *m = MemberRemoveResponse{} } |
| 2299 | func (m *MemberRemoveResponse) String() string { return proto.CompactTextString(m) } |
| 2300 | func (*MemberRemoveResponse) ProtoMessage() {} |
| 2301 | func (*MemberRemoveResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{43} } |
| 2302 | |
| 2303 | func (m *MemberRemoveResponse) GetHeader() *ResponseHeader { |
| 2304 | if m != nil { |
| 2305 | return m.Header |
| 2306 | } |
| 2307 | return nil |
| 2308 | } |
| 2309 | |
| 2310 | func (m *MemberRemoveResponse) GetMembers() []*Member { |
| 2311 | if m != nil { |
| 2312 | return m.Members |
| 2313 | } |
| 2314 | return nil |
| 2315 | } |
| 2316 | |
| 2317 | type MemberUpdateRequest struct { |
| 2318 | // ID is the member ID of the member to update. |
| 2319 | ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 2320 | // peerURLs is the new list of URLs the member will use to communicate with the cluster. |
| 2321 | PeerURLs []string `protobuf:"bytes,2,rep,name=peerURLs" json:"peerURLs,omitempty"` |
| 2322 | } |
| 2323 | |
| 2324 | func (m *MemberUpdateRequest) Reset() { *m = MemberUpdateRequest{} } |
| 2325 | func (m *MemberUpdateRequest) String() string { return proto.CompactTextString(m) } |
| 2326 | func (*MemberUpdateRequest) ProtoMessage() {} |
| 2327 | func (*MemberUpdateRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{44} } |
| 2328 | |
| 2329 | func (m *MemberUpdateRequest) GetID() uint64 { |
| 2330 | if m != nil { |
| 2331 | return m.ID |
| 2332 | } |
| 2333 | return 0 |
| 2334 | } |
| 2335 | |
| 2336 | func (m *MemberUpdateRequest) GetPeerURLs() []string { |
| 2337 | if m != nil { |
| 2338 | return m.PeerURLs |
| 2339 | } |
| 2340 | return nil |
| 2341 | } |
| 2342 | |
| 2343 | type MemberUpdateResponse struct { |
| 2344 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2345 | // members is a list of all members after updating the member. |
| 2346 | Members []*Member `protobuf:"bytes,2,rep,name=members" json:"members,omitempty"` |
| 2347 | } |
| 2348 | |
| 2349 | func (m *MemberUpdateResponse) Reset() { *m = MemberUpdateResponse{} } |
| 2350 | func (m *MemberUpdateResponse) String() string { return proto.CompactTextString(m) } |
| 2351 | func (*MemberUpdateResponse) ProtoMessage() {} |
| 2352 | func (*MemberUpdateResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{45} } |
| 2353 | |
| 2354 | func (m *MemberUpdateResponse) GetHeader() *ResponseHeader { |
| 2355 | if m != nil { |
| 2356 | return m.Header |
| 2357 | } |
| 2358 | return nil |
| 2359 | } |
| 2360 | |
| 2361 | func (m *MemberUpdateResponse) GetMembers() []*Member { |
| 2362 | if m != nil { |
| 2363 | return m.Members |
| 2364 | } |
| 2365 | return nil |
| 2366 | } |
| 2367 | |
| 2368 | type MemberListRequest struct { |
| 2369 | } |
| 2370 | |
| 2371 | func (m *MemberListRequest) Reset() { *m = MemberListRequest{} } |
| 2372 | func (m *MemberListRequest) String() string { return proto.CompactTextString(m) } |
| 2373 | func (*MemberListRequest) ProtoMessage() {} |
| 2374 | func (*MemberListRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{46} } |
| 2375 | |
| 2376 | type MemberListResponse struct { |
| 2377 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2378 | // members is a list of all members associated with the cluster. |
| 2379 | Members []*Member `protobuf:"bytes,2,rep,name=members" json:"members,omitempty"` |
| 2380 | } |
| 2381 | |
| 2382 | func (m *MemberListResponse) Reset() { *m = MemberListResponse{} } |
| 2383 | func (m *MemberListResponse) String() string { return proto.CompactTextString(m) } |
| 2384 | func (*MemberListResponse) ProtoMessage() {} |
| 2385 | func (*MemberListResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{47} } |
| 2386 | |
| 2387 | func (m *MemberListResponse) GetHeader() *ResponseHeader { |
| 2388 | if m != nil { |
| 2389 | return m.Header |
| 2390 | } |
| 2391 | return nil |
| 2392 | } |
| 2393 | |
| 2394 | func (m *MemberListResponse) GetMembers() []*Member { |
| 2395 | if m != nil { |
| 2396 | return m.Members |
| 2397 | } |
| 2398 | return nil |
| 2399 | } |
| 2400 | |
| 2401 | type DefragmentRequest struct { |
| 2402 | } |
| 2403 | |
| 2404 | func (m *DefragmentRequest) Reset() { *m = DefragmentRequest{} } |
| 2405 | func (m *DefragmentRequest) String() string { return proto.CompactTextString(m) } |
| 2406 | func (*DefragmentRequest) ProtoMessage() {} |
| 2407 | func (*DefragmentRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{48} } |
| 2408 | |
| 2409 | type DefragmentResponse struct { |
| 2410 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2411 | } |
| 2412 | |
| 2413 | func (m *DefragmentResponse) Reset() { *m = DefragmentResponse{} } |
| 2414 | func (m *DefragmentResponse) String() string { return proto.CompactTextString(m) } |
| 2415 | func (*DefragmentResponse) ProtoMessage() {} |
| 2416 | func (*DefragmentResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{49} } |
| 2417 | |
| 2418 | func (m *DefragmentResponse) GetHeader() *ResponseHeader { |
| 2419 | if m != nil { |
| 2420 | return m.Header |
| 2421 | } |
| 2422 | return nil |
| 2423 | } |
| 2424 | |
| 2425 | type MoveLeaderRequest struct { |
| 2426 | // targetID is the node ID for the new leader. |
| 2427 | TargetID uint64 `protobuf:"varint,1,opt,name=targetID,proto3" json:"targetID,omitempty"` |
| 2428 | } |
| 2429 | |
| 2430 | func (m *MoveLeaderRequest) Reset() { *m = MoveLeaderRequest{} } |
| 2431 | func (m *MoveLeaderRequest) String() string { return proto.CompactTextString(m) } |
| 2432 | func (*MoveLeaderRequest) ProtoMessage() {} |
| 2433 | func (*MoveLeaderRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{50} } |
| 2434 | |
| 2435 | func (m *MoveLeaderRequest) GetTargetID() uint64 { |
| 2436 | if m != nil { |
| 2437 | return m.TargetID |
| 2438 | } |
| 2439 | return 0 |
| 2440 | } |
| 2441 | |
| 2442 | type MoveLeaderResponse struct { |
| 2443 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2444 | } |
| 2445 | |
| 2446 | func (m *MoveLeaderResponse) Reset() { *m = MoveLeaderResponse{} } |
| 2447 | func (m *MoveLeaderResponse) String() string { return proto.CompactTextString(m) } |
| 2448 | func (*MoveLeaderResponse) ProtoMessage() {} |
| 2449 | func (*MoveLeaderResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{51} } |
| 2450 | |
| 2451 | func (m *MoveLeaderResponse) GetHeader() *ResponseHeader { |
| 2452 | if m != nil { |
| 2453 | return m.Header |
| 2454 | } |
| 2455 | return nil |
| 2456 | } |
| 2457 | |
| 2458 | type AlarmRequest struct { |
| 2459 | // action is the kind of alarm request to issue. The action |
| 2460 | // may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a |
| 2461 | // raised alarm. |
| 2462 | Action AlarmRequest_AlarmAction `protobuf:"varint,1,opt,name=action,proto3,enum=etcdserverpb.AlarmRequest_AlarmAction" json:"action,omitempty"` |
| 2463 | // memberID is the ID of the member associated with the alarm. If memberID is 0, the |
| 2464 | // alarm request covers all members. |
| 2465 | MemberID uint64 `protobuf:"varint,2,opt,name=memberID,proto3" json:"memberID,omitempty"` |
| 2466 | // alarm is the type of alarm to consider for this request. |
| 2467 | Alarm AlarmType `protobuf:"varint,3,opt,name=alarm,proto3,enum=etcdserverpb.AlarmType" json:"alarm,omitempty"` |
| 2468 | } |
| 2469 | |
| 2470 | func (m *AlarmRequest) Reset() { *m = AlarmRequest{} } |
| 2471 | func (m *AlarmRequest) String() string { return proto.CompactTextString(m) } |
| 2472 | func (*AlarmRequest) ProtoMessage() {} |
| 2473 | func (*AlarmRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{52} } |
| 2474 | |
| 2475 | func (m *AlarmRequest) GetAction() AlarmRequest_AlarmAction { |
| 2476 | if m != nil { |
| 2477 | return m.Action |
| 2478 | } |
| 2479 | return AlarmRequest_GET |
| 2480 | } |
| 2481 | |
| 2482 | func (m *AlarmRequest) GetMemberID() uint64 { |
| 2483 | if m != nil { |
| 2484 | return m.MemberID |
| 2485 | } |
| 2486 | return 0 |
| 2487 | } |
| 2488 | |
| 2489 | func (m *AlarmRequest) GetAlarm() AlarmType { |
| 2490 | if m != nil { |
| 2491 | return m.Alarm |
| 2492 | } |
| 2493 | return AlarmType_NONE |
| 2494 | } |
| 2495 | |
| 2496 | type AlarmMember struct { |
| 2497 | // memberID is the ID of the member associated with the raised alarm. |
| 2498 | MemberID uint64 `protobuf:"varint,1,opt,name=memberID,proto3" json:"memberID,omitempty"` |
| 2499 | // alarm is the type of alarm which has been raised. |
| 2500 | Alarm AlarmType `protobuf:"varint,2,opt,name=alarm,proto3,enum=etcdserverpb.AlarmType" json:"alarm,omitempty"` |
| 2501 | } |
| 2502 | |
| 2503 | func (m *AlarmMember) Reset() { *m = AlarmMember{} } |
| 2504 | func (m *AlarmMember) String() string { return proto.CompactTextString(m) } |
| 2505 | func (*AlarmMember) ProtoMessage() {} |
| 2506 | func (*AlarmMember) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{53} } |
| 2507 | |
| 2508 | func (m *AlarmMember) GetMemberID() uint64 { |
| 2509 | if m != nil { |
| 2510 | return m.MemberID |
| 2511 | } |
| 2512 | return 0 |
| 2513 | } |
| 2514 | |
| 2515 | func (m *AlarmMember) GetAlarm() AlarmType { |
| 2516 | if m != nil { |
| 2517 | return m.Alarm |
| 2518 | } |
| 2519 | return AlarmType_NONE |
| 2520 | } |
| 2521 | |
| 2522 | type AlarmResponse struct { |
| 2523 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2524 | // alarms is a list of alarms associated with the alarm request. |
| 2525 | Alarms []*AlarmMember `protobuf:"bytes,2,rep,name=alarms" json:"alarms,omitempty"` |
| 2526 | } |
| 2527 | |
| 2528 | func (m *AlarmResponse) Reset() { *m = AlarmResponse{} } |
| 2529 | func (m *AlarmResponse) String() string { return proto.CompactTextString(m) } |
| 2530 | func (*AlarmResponse) ProtoMessage() {} |
| 2531 | func (*AlarmResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{54} } |
| 2532 | |
| 2533 | func (m *AlarmResponse) GetHeader() *ResponseHeader { |
| 2534 | if m != nil { |
| 2535 | return m.Header |
| 2536 | } |
| 2537 | return nil |
| 2538 | } |
| 2539 | |
| 2540 | func (m *AlarmResponse) GetAlarms() []*AlarmMember { |
| 2541 | if m != nil { |
| 2542 | return m.Alarms |
| 2543 | } |
| 2544 | return nil |
| 2545 | } |
| 2546 | |
| 2547 | type StatusRequest struct { |
| 2548 | } |
| 2549 | |
| 2550 | func (m *StatusRequest) Reset() { *m = StatusRequest{} } |
| 2551 | func (m *StatusRequest) String() string { return proto.CompactTextString(m) } |
| 2552 | func (*StatusRequest) ProtoMessage() {} |
| 2553 | func (*StatusRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{55} } |
| 2554 | |
| 2555 | type StatusResponse struct { |
| 2556 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2557 | // version is the cluster protocol version used by the responding member. |
| 2558 | Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` |
| 2559 | // dbSize is the size of the backend database physically allocated, in bytes, of the responding member. |
| 2560 | DbSize int64 `protobuf:"varint,3,opt,name=dbSize,proto3" json:"dbSize,omitempty"` |
| 2561 | // leader is the member ID which the responding member believes is the current leader. |
| 2562 | Leader uint64 `protobuf:"varint,4,opt,name=leader,proto3" json:"leader,omitempty"` |
| 2563 | // raftIndex is the current raft committed index of the responding member. |
| 2564 | RaftIndex uint64 `protobuf:"varint,5,opt,name=raftIndex,proto3" json:"raftIndex,omitempty"` |
| 2565 | // raftTerm is the current raft term of the responding member. |
| 2566 | RaftTerm uint64 `protobuf:"varint,6,opt,name=raftTerm,proto3" json:"raftTerm,omitempty"` |
| 2567 | // raftAppliedIndex is the current raft applied index of the responding member. |
| 2568 | RaftAppliedIndex uint64 `protobuf:"varint,7,opt,name=raftAppliedIndex,proto3" json:"raftAppliedIndex,omitempty"` |
| 2569 | // errors contains alarm/health information and status. |
| 2570 | Errors []string `protobuf:"bytes,8,rep,name=errors" json:"errors,omitempty"` |
| 2571 | // dbSizeInUse is the size of the backend database logically in use, in bytes, of the responding member. |
| 2572 | DbSizeInUse int64 `protobuf:"varint,9,opt,name=dbSizeInUse,proto3" json:"dbSizeInUse,omitempty"` |
| 2573 | } |
| 2574 | |
| 2575 | func (m *StatusResponse) Reset() { *m = StatusResponse{} } |
| 2576 | func (m *StatusResponse) String() string { return proto.CompactTextString(m) } |
| 2577 | func (*StatusResponse) ProtoMessage() {} |
| 2578 | func (*StatusResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{56} } |
| 2579 | |
| 2580 | func (m *StatusResponse) GetHeader() *ResponseHeader { |
| 2581 | if m != nil { |
| 2582 | return m.Header |
| 2583 | } |
| 2584 | return nil |
| 2585 | } |
| 2586 | |
| 2587 | func (m *StatusResponse) GetVersion() string { |
| 2588 | if m != nil { |
| 2589 | return m.Version |
| 2590 | } |
| 2591 | return "" |
| 2592 | } |
| 2593 | |
| 2594 | func (m *StatusResponse) GetDbSize() int64 { |
| 2595 | if m != nil { |
| 2596 | return m.DbSize |
| 2597 | } |
| 2598 | return 0 |
| 2599 | } |
| 2600 | |
| 2601 | func (m *StatusResponse) GetLeader() uint64 { |
| 2602 | if m != nil { |
| 2603 | return m.Leader |
| 2604 | } |
| 2605 | return 0 |
| 2606 | } |
| 2607 | |
| 2608 | func (m *StatusResponse) GetRaftIndex() uint64 { |
| 2609 | if m != nil { |
| 2610 | return m.RaftIndex |
| 2611 | } |
| 2612 | return 0 |
| 2613 | } |
| 2614 | |
| 2615 | func (m *StatusResponse) GetRaftTerm() uint64 { |
| 2616 | if m != nil { |
| 2617 | return m.RaftTerm |
| 2618 | } |
| 2619 | return 0 |
| 2620 | } |
| 2621 | |
| 2622 | func (m *StatusResponse) GetRaftAppliedIndex() uint64 { |
| 2623 | if m != nil { |
| 2624 | return m.RaftAppliedIndex |
| 2625 | } |
| 2626 | return 0 |
| 2627 | } |
| 2628 | |
| 2629 | func (m *StatusResponse) GetErrors() []string { |
| 2630 | if m != nil { |
| 2631 | return m.Errors |
| 2632 | } |
| 2633 | return nil |
| 2634 | } |
| 2635 | |
| 2636 | func (m *StatusResponse) GetDbSizeInUse() int64 { |
| 2637 | if m != nil { |
| 2638 | return m.DbSizeInUse |
| 2639 | } |
| 2640 | return 0 |
| 2641 | } |
| 2642 | |
| 2643 | type AuthEnableRequest struct { |
| 2644 | } |
| 2645 | |
| 2646 | func (m *AuthEnableRequest) Reset() { *m = AuthEnableRequest{} } |
| 2647 | func (m *AuthEnableRequest) String() string { return proto.CompactTextString(m) } |
| 2648 | func (*AuthEnableRequest) ProtoMessage() {} |
| 2649 | func (*AuthEnableRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{57} } |
| 2650 | |
| 2651 | type AuthDisableRequest struct { |
| 2652 | } |
| 2653 | |
| 2654 | func (m *AuthDisableRequest) Reset() { *m = AuthDisableRequest{} } |
| 2655 | func (m *AuthDisableRequest) String() string { return proto.CompactTextString(m) } |
| 2656 | func (*AuthDisableRequest) ProtoMessage() {} |
| 2657 | func (*AuthDisableRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{58} } |
| 2658 | |
| 2659 | type AuthenticateRequest struct { |
| 2660 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 2661 | Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` |
| 2662 | } |
| 2663 | |
| 2664 | func (m *AuthenticateRequest) Reset() { *m = AuthenticateRequest{} } |
| 2665 | func (m *AuthenticateRequest) String() string { return proto.CompactTextString(m) } |
| 2666 | func (*AuthenticateRequest) ProtoMessage() {} |
| 2667 | func (*AuthenticateRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{59} } |
| 2668 | |
| 2669 | func (m *AuthenticateRequest) GetName() string { |
| 2670 | if m != nil { |
| 2671 | return m.Name |
| 2672 | } |
| 2673 | return "" |
| 2674 | } |
| 2675 | |
| 2676 | func (m *AuthenticateRequest) GetPassword() string { |
| 2677 | if m != nil { |
| 2678 | return m.Password |
| 2679 | } |
| 2680 | return "" |
| 2681 | } |
| 2682 | |
| 2683 | type AuthUserAddRequest struct { |
| 2684 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 2685 | Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` |
| 2686 | } |
| 2687 | |
| 2688 | func (m *AuthUserAddRequest) Reset() { *m = AuthUserAddRequest{} } |
| 2689 | func (m *AuthUserAddRequest) String() string { return proto.CompactTextString(m) } |
| 2690 | func (*AuthUserAddRequest) ProtoMessage() {} |
| 2691 | func (*AuthUserAddRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{60} } |
| 2692 | |
| 2693 | func (m *AuthUserAddRequest) GetName() string { |
| 2694 | if m != nil { |
| 2695 | return m.Name |
| 2696 | } |
| 2697 | return "" |
| 2698 | } |
| 2699 | |
| 2700 | func (m *AuthUserAddRequest) GetPassword() string { |
| 2701 | if m != nil { |
| 2702 | return m.Password |
| 2703 | } |
| 2704 | return "" |
| 2705 | } |
| 2706 | |
| 2707 | type AuthUserGetRequest struct { |
| 2708 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 2709 | } |
| 2710 | |
| 2711 | func (m *AuthUserGetRequest) Reset() { *m = AuthUserGetRequest{} } |
| 2712 | func (m *AuthUserGetRequest) String() string { return proto.CompactTextString(m) } |
| 2713 | func (*AuthUserGetRequest) ProtoMessage() {} |
| 2714 | func (*AuthUserGetRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{61} } |
| 2715 | |
| 2716 | func (m *AuthUserGetRequest) GetName() string { |
| 2717 | if m != nil { |
| 2718 | return m.Name |
| 2719 | } |
| 2720 | return "" |
| 2721 | } |
| 2722 | |
| 2723 | type AuthUserDeleteRequest struct { |
| 2724 | // name is the name of the user to delete. |
| 2725 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 2726 | } |
| 2727 | |
| 2728 | func (m *AuthUserDeleteRequest) Reset() { *m = AuthUserDeleteRequest{} } |
| 2729 | func (m *AuthUserDeleteRequest) String() string { return proto.CompactTextString(m) } |
| 2730 | func (*AuthUserDeleteRequest) ProtoMessage() {} |
| 2731 | func (*AuthUserDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{62} } |
| 2732 | |
| 2733 | func (m *AuthUserDeleteRequest) GetName() string { |
| 2734 | if m != nil { |
| 2735 | return m.Name |
| 2736 | } |
| 2737 | return "" |
| 2738 | } |
| 2739 | |
| 2740 | type AuthUserChangePasswordRequest struct { |
| 2741 | // name is the name of the user whose password is being changed. |
| 2742 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 2743 | // password is the new password for the user. |
| 2744 | Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` |
| 2745 | } |
| 2746 | |
| 2747 | func (m *AuthUserChangePasswordRequest) Reset() { *m = AuthUserChangePasswordRequest{} } |
| 2748 | func (m *AuthUserChangePasswordRequest) String() string { return proto.CompactTextString(m) } |
| 2749 | func (*AuthUserChangePasswordRequest) ProtoMessage() {} |
| 2750 | func (*AuthUserChangePasswordRequest) Descriptor() ([]byte, []int) { |
| 2751 | return fileDescriptorRpc, []int{63} |
| 2752 | } |
| 2753 | |
| 2754 | func (m *AuthUserChangePasswordRequest) GetName() string { |
| 2755 | if m != nil { |
| 2756 | return m.Name |
| 2757 | } |
| 2758 | return "" |
| 2759 | } |
| 2760 | |
| 2761 | func (m *AuthUserChangePasswordRequest) GetPassword() string { |
| 2762 | if m != nil { |
| 2763 | return m.Password |
| 2764 | } |
| 2765 | return "" |
| 2766 | } |
| 2767 | |
| 2768 | type AuthUserGrantRoleRequest struct { |
| 2769 | // user is the name of the user which should be granted a given role. |
| 2770 | User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` |
| 2771 | // role is the name of the role to grant to the user. |
| 2772 | Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` |
| 2773 | } |
| 2774 | |
| 2775 | func (m *AuthUserGrantRoleRequest) Reset() { *m = AuthUserGrantRoleRequest{} } |
| 2776 | func (m *AuthUserGrantRoleRequest) String() string { return proto.CompactTextString(m) } |
| 2777 | func (*AuthUserGrantRoleRequest) ProtoMessage() {} |
| 2778 | func (*AuthUserGrantRoleRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{64} } |
| 2779 | |
| 2780 | func (m *AuthUserGrantRoleRequest) GetUser() string { |
| 2781 | if m != nil { |
| 2782 | return m.User |
| 2783 | } |
| 2784 | return "" |
| 2785 | } |
| 2786 | |
| 2787 | func (m *AuthUserGrantRoleRequest) GetRole() string { |
| 2788 | if m != nil { |
| 2789 | return m.Role |
| 2790 | } |
| 2791 | return "" |
| 2792 | } |
| 2793 | |
| 2794 | type AuthUserRevokeRoleRequest struct { |
| 2795 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 2796 | Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` |
| 2797 | } |
| 2798 | |
| 2799 | func (m *AuthUserRevokeRoleRequest) Reset() { *m = AuthUserRevokeRoleRequest{} } |
| 2800 | func (m *AuthUserRevokeRoleRequest) String() string { return proto.CompactTextString(m) } |
| 2801 | func (*AuthUserRevokeRoleRequest) ProtoMessage() {} |
| 2802 | func (*AuthUserRevokeRoleRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{65} } |
| 2803 | |
| 2804 | func (m *AuthUserRevokeRoleRequest) GetName() string { |
| 2805 | if m != nil { |
| 2806 | return m.Name |
| 2807 | } |
| 2808 | return "" |
| 2809 | } |
| 2810 | |
| 2811 | func (m *AuthUserRevokeRoleRequest) GetRole() string { |
| 2812 | if m != nil { |
| 2813 | return m.Role |
| 2814 | } |
| 2815 | return "" |
| 2816 | } |
| 2817 | |
| 2818 | type AuthRoleAddRequest struct { |
| 2819 | // name is the name of the role to add to the authentication system. |
| 2820 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 2821 | } |
| 2822 | |
| 2823 | func (m *AuthRoleAddRequest) Reset() { *m = AuthRoleAddRequest{} } |
| 2824 | func (m *AuthRoleAddRequest) String() string { return proto.CompactTextString(m) } |
| 2825 | func (*AuthRoleAddRequest) ProtoMessage() {} |
| 2826 | func (*AuthRoleAddRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{66} } |
| 2827 | |
| 2828 | func (m *AuthRoleAddRequest) GetName() string { |
| 2829 | if m != nil { |
| 2830 | return m.Name |
| 2831 | } |
| 2832 | return "" |
| 2833 | } |
| 2834 | |
| 2835 | type AuthRoleGetRequest struct { |
| 2836 | Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` |
| 2837 | } |
| 2838 | |
| 2839 | func (m *AuthRoleGetRequest) Reset() { *m = AuthRoleGetRequest{} } |
| 2840 | func (m *AuthRoleGetRequest) String() string { return proto.CompactTextString(m) } |
| 2841 | func (*AuthRoleGetRequest) ProtoMessage() {} |
| 2842 | func (*AuthRoleGetRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{67} } |
| 2843 | |
| 2844 | func (m *AuthRoleGetRequest) GetRole() string { |
| 2845 | if m != nil { |
| 2846 | return m.Role |
| 2847 | } |
| 2848 | return "" |
| 2849 | } |
| 2850 | |
| 2851 | type AuthUserListRequest struct { |
| 2852 | } |
| 2853 | |
| 2854 | func (m *AuthUserListRequest) Reset() { *m = AuthUserListRequest{} } |
| 2855 | func (m *AuthUserListRequest) String() string { return proto.CompactTextString(m) } |
| 2856 | func (*AuthUserListRequest) ProtoMessage() {} |
| 2857 | func (*AuthUserListRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{68} } |
| 2858 | |
| 2859 | type AuthRoleListRequest struct { |
| 2860 | } |
| 2861 | |
| 2862 | func (m *AuthRoleListRequest) Reset() { *m = AuthRoleListRequest{} } |
| 2863 | func (m *AuthRoleListRequest) String() string { return proto.CompactTextString(m) } |
| 2864 | func (*AuthRoleListRequest) ProtoMessage() {} |
| 2865 | func (*AuthRoleListRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{69} } |
| 2866 | |
| 2867 | type AuthRoleDeleteRequest struct { |
| 2868 | Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` |
| 2869 | } |
| 2870 | |
| 2871 | func (m *AuthRoleDeleteRequest) Reset() { *m = AuthRoleDeleteRequest{} } |
| 2872 | func (m *AuthRoleDeleteRequest) String() string { return proto.CompactTextString(m) } |
| 2873 | func (*AuthRoleDeleteRequest) ProtoMessage() {} |
| 2874 | func (*AuthRoleDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{70} } |
| 2875 | |
| 2876 | func (m *AuthRoleDeleteRequest) GetRole() string { |
| 2877 | if m != nil { |
| 2878 | return m.Role |
| 2879 | } |
| 2880 | return "" |
| 2881 | } |
| 2882 | |
| 2883 | type AuthRoleGrantPermissionRequest struct { |
| 2884 | // name is the name of the role which will be granted the permission. |
| 2885 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 2886 | // perm is the permission to grant to the role. |
| 2887 | Perm *authpb.Permission `protobuf:"bytes,2,opt,name=perm" json:"perm,omitempty"` |
| 2888 | } |
| 2889 | |
| 2890 | func (m *AuthRoleGrantPermissionRequest) Reset() { *m = AuthRoleGrantPermissionRequest{} } |
| 2891 | func (m *AuthRoleGrantPermissionRequest) String() string { return proto.CompactTextString(m) } |
| 2892 | func (*AuthRoleGrantPermissionRequest) ProtoMessage() {} |
| 2893 | func (*AuthRoleGrantPermissionRequest) Descriptor() ([]byte, []int) { |
| 2894 | return fileDescriptorRpc, []int{71} |
| 2895 | } |
| 2896 | |
| 2897 | func (m *AuthRoleGrantPermissionRequest) GetName() string { |
| 2898 | if m != nil { |
| 2899 | return m.Name |
| 2900 | } |
| 2901 | return "" |
| 2902 | } |
| 2903 | |
| 2904 | func (m *AuthRoleGrantPermissionRequest) GetPerm() *authpb.Permission { |
| 2905 | if m != nil { |
| 2906 | return m.Perm |
| 2907 | } |
| 2908 | return nil |
| 2909 | } |
| 2910 | |
| 2911 | type AuthRoleRevokePermissionRequest struct { |
| 2912 | Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` |
| 2913 | Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` |
| 2914 | RangeEnd []byte `protobuf:"bytes,3,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` |
| 2915 | } |
| 2916 | |
| 2917 | func (m *AuthRoleRevokePermissionRequest) Reset() { *m = AuthRoleRevokePermissionRequest{} } |
| 2918 | func (m *AuthRoleRevokePermissionRequest) String() string { return proto.CompactTextString(m) } |
| 2919 | func (*AuthRoleRevokePermissionRequest) ProtoMessage() {} |
| 2920 | func (*AuthRoleRevokePermissionRequest) Descriptor() ([]byte, []int) { |
| 2921 | return fileDescriptorRpc, []int{72} |
| 2922 | } |
| 2923 | |
| 2924 | func (m *AuthRoleRevokePermissionRequest) GetRole() string { |
| 2925 | if m != nil { |
| 2926 | return m.Role |
| 2927 | } |
| 2928 | return "" |
| 2929 | } |
| 2930 | |
| 2931 | func (m *AuthRoleRevokePermissionRequest) GetKey() []byte { |
| 2932 | if m != nil { |
| 2933 | return m.Key |
| 2934 | } |
| 2935 | return nil |
| 2936 | } |
| 2937 | |
| 2938 | func (m *AuthRoleRevokePermissionRequest) GetRangeEnd() []byte { |
| 2939 | if m != nil { |
| 2940 | return m.RangeEnd |
| 2941 | } |
| 2942 | return nil |
| 2943 | } |
| 2944 | |
| 2945 | type AuthEnableResponse struct { |
| 2946 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2947 | } |
| 2948 | |
| 2949 | func (m *AuthEnableResponse) Reset() { *m = AuthEnableResponse{} } |
| 2950 | func (m *AuthEnableResponse) String() string { return proto.CompactTextString(m) } |
| 2951 | func (*AuthEnableResponse) ProtoMessage() {} |
| 2952 | func (*AuthEnableResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{73} } |
| 2953 | |
| 2954 | func (m *AuthEnableResponse) GetHeader() *ResponseHeader { |
| 2955 | if m != nil { |
| 2956 | return m.Header |
| 2957 | } |
| 2958 | return nil |
| 2959 | } |
| 2960 | |
| 2961 | type AuthDisableResponse struct { |
| 2962 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2963 | } |
| 2964 | |
| 2965 | func (m *AuthDisableResponse) Reset() { *m = AuthDisableResponse{} } |
| 2966 | func (m *AuthDisableResponse) String() string { return proto.CompactTextString(m) } |
| 2967 | func (*AuthDisableResponse) ProtoMessage() {} |
| 2968 | func (*AuthDisableResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{74} } |
| 2969 | |
| 2970 | func (m *AuthDisableResponse) GetHeader() *ResponseHeader { |
| 2971 | if m != nil { |
| 2972 | return m.Header |
| 2973 | } |
| 2974 | return nil |
| 2975 | } |
| 2976 | |
| 2977 | type AuthenticateResponse struct { |
| 2978 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2979 | // token is an authorized token that can be used in succeeding RPCs |
| 2980 | Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` |
| 2981 | } |
| 2982 | |
| 2983 | func (m *AuthenticateResponse) Reset() { *m = AuthenticateResponse{} } |
| 2984 | func (m *AuthenticateResponse) String() string { return proto.CompactTextString(m) } |
| 2985 | func (*AuthenticateResponse) ProtoMessage() {} |
| 2986 | func (*AuthenticateResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{75} } |
| 2987 | |
| 2988 | func (m *AuthenticateResponse) GetHeader() *ResponseHeader { |
| 2989 | if m != nil { |
| 2990 | return m.Header |
| 2991 | } |
| 2992 | return nil |
| 2993 | } |
| 2994 | |
| 2995 | func (m *AuthenticateResponse) GetToken() string { |
| 2996 | if m != nil { |
| 2997 | return m.Token |
| 2998 | } |
| 2999 | return "" |
| 3000 | } |
| 3001 | |
| 3002 | type AuthUserAddResponse struct { |
| 3003 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3004 | } |
| 3005 | |
| 3006 | func (m *AuthUserAddResponse) Reset() { *m = AuthUserAddResponse{} } |
| 3007 | func (m *AuthUserAddResponse) String() string { return proto.CompactTextString(m) } |
| 3008 | func (*AuthUserAddResponse) ProtoMessage() {} |
| 3009 | func (*AuthUserAddResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{76} } |
| 3010 | |
| 3011 | func (m *AuthUserAddResponse) GetHeader() *ResponseHeader { |
| 3012 | if m != nil { |
| 3013 | return m.Header |
| 3014 | } |
| 3015 | return nil |
| 3016 | } |
| 3017 | |
| 3018 | type AuthUserGetResponse struct { |
| 3019 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3020 | Roles []string `protobuf:"bytes,2,rep,name=roles" json:"roles,omitempty"` |
| 3021 | } |
| 3022 | |
| 3023 | func (m *AuthUserGetResponse) Reset() { *m = AuthUserGetResponse{} } |
| 3024 | func (m *AuthUserGetResponse) String() string { return proto.CompactTextString(m) } |
| 3025 | func (*AuthUserGetResponse) ProtoMessage() {} |
| 3026 | func (*AuthUserGetResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{77} } |
| 3027 | |
| 3028 | func (m *AuthUserGetResponse) GetHeader() *ResponseHeader { |
| 3029 | if m != nil { |
| 3030 | return m.Header |
| 3031 | } |
| 3032 | return nil |
| 3033 | } |
| 3034 | |
| 3035 | func (m *AuthUserGetResponse) GetRoles() []string { |
| 3036 | if m != nil { |
| 3037 | return m.Roles |
| 3038 | } |
| 3039 | return nil |
| 3040 | } |
| 3041 | |
| 3042 | type AuthUserDeleteResponse struct { |
| 3043 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3044 | } |
| 3045 | |
| 3046 | func (m *AuthUserDeleteResponse) Reset() { *m = AuthUserDeleteResponse{} } |
| 3047 | func (m *AuthUserDeleteResponse) String() string { return proto.CompactTextString(m) } |
| 3048 | func (*AuthUserDeleteResponse) ProtoMessage() {} |
| 3049 | func (*AuthUserDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{78} } |
| 3050 | |
| 3051 | func (m *AuthUserDeleteResponse) GetHeader() *ResponseHeader { |
| 3052 | if m != nil { |
| 3053 | return m.Header |
| 3054 | } |
| 3055 | return nil |
| 3056 | } |
| 3057 | |
| 3058 | type AuthUserChangePasswordResponse struct { |
| 3059 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3060 | } |
| 3061 | |
| 3062 | func (m *AuthUserChangePasswordResponse) Reset() { *m = AuthUserChangePasswordResponse{} } |
| 3063 | func (m *AuthUserChangePasswordResponse) String() string { return proto.CompactTextString(m) } |
| 3064 | func (*AuthUserChangePasswordResponse) ProtoMessage() {} |
| 3065 | func (*AuthUserChangePasswordResponse) Descriptor() ([]byte, []int) { |
| 3066 | return fileDescriptorRpc, []int{79} |
| 3067 | } |
| 3068 | |
| 3069 | func (m *AuthUserChangePasswordResponse) GetHeader() *ResponseHeader { |
| 3070 | if m != nil { |
| 3071 | return m.Header |
| 3072 | } |
| 3073 | return nil |
| 3074 | } |
| 3075 | |
| 3076 | type AuthUserGrantRoleResponse struct { |
| 3077 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3078 | } |
| 3079 | |
| 3080 | func (m *AuthUserGrantRoleResponse) Reset() { *m = AuthUserGrantRoleResponse{} } |
| 3081 | func (m *AuthUserGrantRoleResponse) String() string { return proto.CompactTextString(m) } |
| 3082 | func (*AuthUserGrantRoleResponse) ProtoMessage() {} |
| 3083 | func (*AuthUserGrantRoleResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{80} } |
| 3084 | |
| 3085 | func (m *AuthUserGrantRoleResponse) GetHeader() *ResponseHeader { |
| 3086 | if m != nil { |
| 3087 | return m.Header |
| 3088 | } |
| 3089 | return nil |
| 3090 | } |
| 3091 | |
| 3092 | type AuthUserRevokeRoleResponse struct { |
| 3093 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3094 | } |
| 3095 | |
| 3096 | func (m *AuthUserRevokeRoleResponse) Reset() { *m = AuthUserRevokeRoleResponse{} } |
| 3097 | func (m *AuthUserRevokeRoleResponse) String() string { return proto.CompactTextString(m) } |
| 3098 | func (*AuthUserRevokeRoleResponse) ProtoMessage() {} |
| 3099 | func (*AuthUserRevokeRoleResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{81} } |
| 3100 | |
| 3101 | func (m *AuthUserRevokeRoleResponse) GetHeader() *ResponseHeader { |
| 3102 | if m != nil { |
| 3103 | return m.Header |
| 3104 | } |
| 3105 | return nil |
| 3106 | } |
| 3107 | |
| 3108 | type AuthRoleAddResponse struct { |
| 3109 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3110 | } |
| 3111 | |
| 3112 | func (m *AuthRoleAddResponse) Reset() { *m = AuthRoleAddResponse{} } |
| 3113 | func (m *AuthRoleAddResponse) String() string { return proto.CompactTextString(m) } |
| 3114 | func (*AuthRoleAddResponse) ProtoMessage() {} |
| 3115 | func (*AuthRoleAddResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{82} } |
| 3116 | |
| 3117 | func (m *AuthRoleAddResponse) GetHeader() *ResponseHeader { |
| 3118 | if m != nil { |
| 3119 | return m.Header |
| 3120 | } |
| 3121 | return nil |
| 3122 | } |
| 3123 | |
| 3124 | type AuthRoleGetResponse struct { |
| 3125 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3126 | Perm []*authpb.Permission `protobuf:"bytes,2,rep,name=perm" json:"perm,omitempty"` |
| 3127 | } |
| 3128 | |
| 3129 | func (m *AuthRoleGetResponse) Reset() { *m = AuthRoleGetResponse{} } |
| 3130 | func (m *AuthRoleGetResponse) String() string { return proto.CompactTextString(m) } |
| 3131 | func (*AuthRoleGetResponse) ProtoMessage() {} |
| 3132 | func (*AuthRoleGetResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{83} } |
| 3133 | |
| 3134 | func (m *AuthRoleGetResponse) GetHeader() *ResponseHeader { |
| 3135 | if m != nil { |
| 3136 | return m.Header |
| 3137 | } |
| 3138 | return nil |
| 3139 | } |
| 3140 | |
| 3141 | func (m *AuthRoleGetResponse) GetPerm() []*authpb.Permission { |
| 3142 | if m != nil { |
| 3143 | return m.Perm |
| 3144 | } |
| 3145 | return nil |
| 3146 | } |
| 3147 | |
| 3148 | type AuthRoleListResponse struct { |
| 3149 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3150 | Roles []string `protobuf:"bytes,2,rep,name=roles" json:"roles,omitempty"` |
| 3151 | } |
| 3152 | |
| 3153 | func (m *AuthRoleListResponse) Reset() { *m = AuthRoleListResponse{} } |
| 3154 | func (m *AuthRoleListResponse) String() string { return proto.CompactTextString(m) } |
| 3155 | func (*AuthRoleListResponse) ProtoMessage() {} |
| 3156 | func (*AuthRoleListResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{84} } |
| 3157 | |
| 3158 | func (m *AuthRoleListResponse) GetHeader() *ResponseHeader { |
| 3159 | if m != nil { |
| 3160 | return m.Header |
| 3161 | } |
| 3162 | return nil |
| 3163 | } |
| 3164 | |
| 3165 | func (m *AuthRoleListResponse) GetRoles() []string { |
| 3166 | if m != nil { |
| 3167 | return m.Roles |
| 3168 | } |
| 3169 | return nil |
| 3170 | } |
| 3171 | |
| 3172 | type AuthUserListResponse struct { |
| 3173 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3174 | Users []string `protobuf:"bytes,2,rep,name=users" json:"users,omitempty"` |
| 3175 | } |
| 3176 | |
| 3177 | func (m *AuthUserListResponse) Reset() { *m = AuthUserListResponse{} } |
| 3178 | func (m *AuthUserListResponse) String() string { return proto.CompactTextString(m) } |
| 3179 | func (*AuthUserListResponse) ProtoMessage() {} |
| 3180 | func (*AuthUserListResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{85} } |
| 3181 | |
| 3182 | func (m *AuthUserListResponse) GetHeader() *ResponseHeader { |
| 3183 | if m != nil { |
| 3184 | return m.Header |
| 3185 | } |
| 3186 | return nil |
| 3187 | } |
| 3188 | |
| 3189 | func (m *AuthUserListResponse) GetUsers() []string { |
| 3190 | if m != nil { |
| 3191 | return m.Users |
| 3192 | } |
| 3193 | return nil |
| 3194 | } |
| 3195 | |
| 3196 | type AuthRoleDeleteResponse struct { |
| 3197 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3198 | } |
| 3199 | |
| 3200 | func (m *AuthRoleDeleteResponse) Reset() { *m = AuthRoleDeleteResponse{} } |
| 3201 | func (m *AuthRoleDeleteResponse) String() string { return proto.CompactTextString(m) } |
| 3202 | func (*AuthRoleDeleteResponse) ProtoMessage() {} |
| 3203 | func (*AuthRoleDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{86} } |
| 3204 | |
| 3205 | func (m *AuthRoleDeleteResponse) GetHeader() *ResponseHeader { |
| 3206 | if m != nil { |
| 3207 | return m.Header |
| 3208 | } |
| 3209 | return nil |
| 3210 | } |
| 3211 | |
| 3212 | type AuthRoleGrantPermissionResponse struct { |
| 3213 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3214 | } |
| 3215 | |
| 3216 | func (m *AuthRoleGrantPermissionResponse) Reset() { *m = AuthRoleGrantPermissionResponse{} } |
| 3217 | func (m *AuthRoleGrantPermissionResponse) String() string { return proto.CompactTextString(m) } |
| 3218 | func (*AuthRoleGrantPermissionResponse) ProtoMessage() {} |
| 3219 | func (*AuthRoleGrantPermissionResponse) Descriptor() ([]byte, []int) { |
| 3220 | return fileDescriptorRpc, []int{87} |
| 3221 | } |
| 3222 | |
| 3223 | func (m *AuthRoleGrantPermissionResponse) GetHeader() *ResponseHeader { |
| 3224 | if m != nil { |
| 3225 | return m.Header |
| 3226 | } |
| 3227 | return nil |
| 3228 | } |
| 3229 | |
| 3230 | type AuthRoleRevokePermissionResponse struct { |
| 3231 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3232 | } |
| 3233 | |
| 3234 | func (m *AuthRoleRevokePermissionResponse) Reset() { *m = AuthRoleRevokePermissionResponse{} } |
| 3235 | func (m *AuthRoleRevokePermissionResponse) String() string { return proto.CompactTextString(m) } |
| 3236 | func (*AuthRoleRevokePermissionResponse) ProtoMessage() {} |
| 3237 | func (*AuthRoleRevokePermissionResponse) Descriptor() ([]byte, []int) { |
| 3238 | return fileDescriptorRpc, []int{88} |
| 3239 | } |
| 3240 | |
| 3241 | func (m *AuthRoleRevokePermissionResponse) GetHeader() *ResponseHeader { |
| 3242 | if m != nil { |
| 3243 | return m.Header |
| 3244 | } |
| 3245 | return nil |
| 3246 | } |
| 3247 | |
| 3248 | func init() { |
| 3249 | proto.RegisterType((*ResponseHeader)(nil), "etcdserverpb.ResponseHeader") |
| 3250 | proto.RegisterType((*RangeRequest)(nil), "etcdserverpb.RangeRequest") |
| 3251 | proto.RegisterType((*RangeResponse)(nil), "etcdserverpb.RangeResponse") |
| 3252 | proto.RegisterType((*PutRequest)(nil), "etcdserverpb.PutRequest") |
| 3253 | proto.RegisterType((*PutResponse)(nil), "etcdserverpb.PutResponse") |
| 3254 | proto.RegisterType((*DeleteRangeRequest)(nil), "etcdserverpb.DeleteRangeRequest") |
| 3255 | proto.RegisterType((*DeleteRangeResponse)(nil), "etcdserverpb.DeleteRangeResponse") |
| 3256 | proto.RegisterType((*RequestOp)(nil), "etcdserverpb.RequestOp") |
| 3257 | proto.RegisterType((*ResponseOp)(nil), "etcdserverpb.ResponseOp") |
| 3258 | proto.RegisterType((*Compare)(nil), "etcdserverpb.Compare") |
| 3259 | proto.RegisterType((*TxnRequest)(nil), "etcdserverpb.TxnRequest") |
| 3260 | proto.RegisterType((*TxnResponse)(nil), "etcdserverpb.TxnResponse") |
| 3261 | proto.RegisterType((*CompactionRequest)(nil), "etcdserverpb.CompactionRequest") |
| 3262 | proto.RegisterType((*CompactionResponse)(nil), "etcdserverpb.CompactionResponse") |
| 3263 | proto.RegisterType((*HashRequest)(nil), "etcdserverpb.HashRequest") |
| 3264 | proto.RegisterType((*HashKVRequest)(nil), "etcdserverpb.HashKVRequest") |
| 3265 | proto.RegisterType((*HashKVResponse)(nil), "etcdserverpb.HashKVResponse") |
| 3266 | proto.RegisterType((*HashResponse)(nil), "etcdserverpb.HashResponse") |
| 3267 | proto.RegisterType((*SnapshotRequest)(nil), "etcdserverpb.SnapshotRequest") |
| 3268 | proto.RegisterType((*SnapshotResponse)(nil), "etcdserverpb.SnapshotResponse") |
| 3269 | proto.RegisterType((*WatchRequest)(nil), "etcdserverpb.WatchRequest") |
| 3270 | proto.RegisterType((*WatchCreateRequest)(nil), "etcdserverpb.WatchCreateRequest") |
| 3271 | proto.RegisterType((*WatchCancelRequest)(nil), "etcdserverpb.WatchCancelRequest") |
| 3272 | proto.RegisterType((*WatchProgressRequest)(nil), "etcdserverpb.WatchProgressRequest") |
| 3273 | proto.RegisterType((*WatchResponse)(nil), "etcdserverpb.WatchResponse") |
| 3274 | proto.RegisterType((*LeaseGrantRequest)(nil), "etcdserverpb.LeaseGrantRequest") |
| 3275 | proto.RegisterType((*LeaseGrantResponse)(nil), "etcdserverpb.LeaseGrantResponse") |
| 3276 | proto.RegisterType((*LeaseRevokeRequest)(nil), "etcdserverpb.LeaseRevokeRequest") |
| 3277 | proto.RegisterType((*LeaseRevokeResponse)(nil), "etcdserverpb.LeaseRevokeResponse") |
| 3278 | proto.RegisterType((*LeaseCheckpoint)(nil), "etcdserverpb.LeaseCheckpoint") |
| 3279 | proto.RegisterType((*LeaseCheckpointRequest)(nil), "etcdserverpb.LeaseCheckpointRequest") |
| 3280 | proto.RegisterType((*LeaseCheckpointResponse)(nil), "etcdserverpb.LeaseCheckpointResponse") |
| 3281 | proto.RegisterType((*LeaseKeepAliveRequest)(nil), "etcdserverpb.LeaseKeepAliveRequest") |
| 3282 | proto.RegisterType((*LeaseKeepAliveResponse)(nil), "etcdserverpb.LeaseKeepAliveResponse") |
| 3283 | proto.RegisterType((*LeaseTimeToLiveRequest)(nil), "etcdserverpb.LeaseTimeToLiveRequest") |
| 3284 | proto.RegisterType((*LeaseTimeToLiveResponse)(nil), "etcdserverpb.LeaseTimeToLiveResponse") |
| 3285 | proto.RegisterType((*LeaseLeasesRequest)(nil), "etcdserverpb.LeaseLeasesRequest") |
| 3286 | proto.RegisterType((*LeaseStatus)(nil), "etcdserverpb.LeaseStatus") |
| 3287 | proto.RegisterType((*LeaseLeasesResponse)(nil), "etcdserverpb.LeaseLeasesResponse") |
| 3288 | proto.RegisterType((*Member)(nil), "etcdserverpb.Member") |
| 3289 | proto.RegisterType((*MemberAddRequest)(nil), "etcdserverpb.MemberAddRequest") |
| 3290 | proto.RegisterType((*MemberAddResponse)(nil), "etcdserverpb.MemberAddResponse") |
| 3291 | proto.RegisterType((*MemberRemoveRequest)(nil), "etcdserverpb.MemberRemoveRequest") |
| 3292 | proto.RegisterType((*MemberRemoveResponse)(nil), "etcdserverpb.MemberRemoveResponse") |
| 3293 | proto.RegisterType((*MemberUpdateRequest)(nil), "etcdserverpb.MemberUpdateRequest") |
| 3294 | proto.RegisterType((*MemberUpdateResponse)(nil), "etcdserverpb.MemberUpdateResponse") |
| 3295 | proto.RegisterType((*MemberListRequest)(nil), "etcdserverpb.MemberListRequest") |
| 3296 | proto.RegisterType((*MemberListResponse)(nil), "etcdserverpb.MemberListResponse") |
| 3297 | proto.RegisterType((*DefragmentRequest)(nil), "etcdserverpb.DefragmentRequest") |
| 3298 | proto.RegisterType((*DefragmentResponse)(nil), "etcdserverpb.DefragmentResponse") |
| 3299 | proto.RegisterType((*MoveLeaderRequest)(nil), "etcdserverpb.MoveLeaderRequest") |
| 3300 | proto.RegisterType((*MoveLeaderResponse)(nil), "etcdserverpb.MoveLeaderResponse") |
| 3301 | proto.RegisterType((*AlarmRequest)(nil), "etcdserverpb.AlarmRequest") |
| 3302 | proto.RegisterType((*AlarmMember)(nil), "etcdserverpb.AlarmMember") |
| 3303 | proto.RegisterType((*AlarmResponse)(nil), "etcdserverpb.AlarmResponse") |
| 3304 | proto.RegisterType((*StatusRequest)(nil), "etcdserverpb.StatusRequest") |
| 3305 | proto.RegisterType((*StatusResponse)(nil), "etcdserverpb.StatusResponse") |
| 3306 | proto.RegisterType((*AuthEnableRequest)(nil), "etcdserverpb.AuthEnableRequest") |
| 3307 | proto.RegisterType((*AuthDisableRequest)(nil), "etcdserverpb.AuthDisableRequest") |
| 3308 | proto.RegisterType((*AuthenticateRequest)(nil), "etcdserverpb.AuthenticateRequest") |
| 3309 | proto.RegisterType((*AuthUserAddRequest)(nil), "etcdserverpb.AuthUserAddRequest") |
| 3310 | proto.RegisterType((*AuthUserGetRequest)(nil), "etcdserverpb.AuthUserGetRequest") |
| 3311 | proto.RegisterType((*AuthUserDeleteRequest)(nil), "etcdserverpb.AuthUserDeleteRequest") |
| 3312 | proto.RegisterType((*AuthUserChangePasswordRequest)(nil), "etcdserverpb.AuthUserChangePasswordRequest") |
| 3313 | proto.RegisterType((*AuthUserGrantRoleRequest)(nil), "etcdserverpb.AuthUserGrantRoleRequest") |
| 3314 | proto.RegisterType((*AuthUserRevokeRoleRequest)(nil), "etcdserverpb.AuthUserRevokeRoleRequest") |
| 3315 | proto.RegisterType((*AuthRoleAddRequest)(nil), "etcdserverpb.AuthRoleAddRequest") |
| 3316 | proto.RegisterType((*AuthRoleGetRequest)(nil), "etcdserverpb.AuthRoleGetRequest") |
| 3317 | proto.RegisterType((*AuthUserListRequest)(nil), "etcdserverpb.AuthUserListRequest") |
| 3318 | proto.RegisterType((*AuthRoleListRequest)(nil), "etcdserverpb.AuthRoleListRequest") |
| 3319 | proto.RegisterType((*AuthRoleDeleteRequest)(nil), "etcdserverpb.AuthRoleDeleteRequest") |
| 3320 | proto.RegisterType((*AuthRoleGrantPermissionRequest)(nil), "etcdserverpb.AuthRoleGrantPermissionRequest") |
| 3321 | proto.RegisterType((*AuthRoleRevokePermissionRequest)(nil), "etcdserverpb.AuthRoleRevokePermissionRequest") |
| 3322 | proto.RegisterType((*AuthEnableResponse)(nil), "etcdserverpb.AuthEnableResponse") |
| 3323 | proto.RegisterType((*AuthDisableResponse)(nil), "etcdserverpb.AuthDisableResponse") |
| 3324 | proto.RegisterType((*AuthenticateResponse)(nil), "etcdserverpb.AuthenticateResponse") |
| 3325 | proto.RegisterType((*AuthUserAddResponse)(nil), "etcdserverpb.AuthUserAddResponse") |
| 3326 | proto.RegisterType((*AuthUserGetResponse)(nil), "etcdserverpb.AuthUserGetResponse") |
| 3327 | proto.RegisterType((*AuthUserDeleteResponse)(nil), "etcdserverpb.AuthUserDeleteResponse") |
| 3328 | proto.RegisterType((*AuthUserChangePasswordResponse)(nil), "etcdserverpb.AuthUserChangePasswordResponse") |
| 3329 | proto.RegisterType((*AuthUserGrantRoleResponse)(nil), "etcdserverpb.AuthUserGrantRoleResponse") |
| 3330 | proto.RegisterType((*AuthUserRevokeRoleResponse)(nil), "etcdserverpb.AuthUserRevokeRoleResponse") |
| 3331 | proto.RegisterType((*AuthRoleAddResponse)(nil), "etcdserverpb.AuthRoleAddResponse") |
| 3332 | proto.RegisterType((*AuthRoleGetResponse)(nil), "etcdserverpb.AuthRoleGetResponse") |
| 3333 | proto.RegisterType((*AuthRoleListResponse)(nil), "etcdserverpb.AuthRoleListResponse") |
| 3334 | proto.RegisterType((*AuthUserListResponse)(nil), "etcdserverpb.AuthUserListResponse") |
| 3335 | proto.RegisterType((*AuthRoleDeleteResponse)(nil), "etcdserverpb.AuthRoleDeleteResponse") |
| 3336 | proto.RegisterType((*AuthRoleGrantPermissionResponse)(nil), "etcdserverpb.AuthRoleGrantPermissionResponse") |
| 3337 | proto.RegisterType((*AuthRoleRevokePermissionResponse)(nil), "etcdserverpb.AuthRoleRevokePermissionResponse") |
| 3338 | proto.RegisterEnum("etcdserverpb.AlarmType", AlarmType_name, AlarmType_value) |
| 3339 | proto.RegisterEnum("etcdserverpb.RangeRequest_SortOrder", RangeRequest_SortOrder_name, RangeRequest_SortOrder_value) |
| 3340 | proto.RegisterEnum("etcdserverpb.RangeRequest_SortTarget", RangeRequest_SortTarget_name, RangeRequest_SortTarget_value) |
| 3341 | proto.RegisterEnum("etcdserverpb.Compare_CompareResult", Compare_CompareResult_name, Compare_CompareResult_value) |
| 3342 | proto.RegisterEnum("etcdserverpb.Compare_CompareTarget", Compare_CompareTarget_name, Compare_CompareTarget_value) |
| 3343 | proto.RegisterEnum("etcdserverpb.WatchCreateRequest_FilterType", WatchCreateRequest_FilterType_name, WatchCreateRequest_FilterType_value) |
| 3344 | proto.RegisterEnum("etcdserverpb.AlarmRequest_AlarmAction", AlarmRequest_AlarmAction_name, AlarmRequest_AlarmAction_value) |
| 3345 | } |
| 3346 | |
| 3347 | // Reference imports to suppress errors if they are not otherwise used. |
| 3348 | var _ context.Context |
| 3349 | var _ grpc.ClientConn |
| 3350 | |
| 3351 | // This is a compile-time assertion to ensure that this generated file |
| 3352 | // is compatible with the grpc package it is being compiled against. |
| 3353 | const _ = grpc.SupportPackageIsVersion4 |
| 3354 | |
| 3355 | // Client API for KV service |
| 3356 | |
| 3357 | type KVClient interface { |
| 3358 | // Range gets the keys in the range from the key-value store. |
| 3359 | Range(ctx context.Context, in *RangeRequest, opts ...grpc.CallOption) (*RangeResponse, error) |
| 3360 | // Put puts the given key into the key-value store. |
| 3361 | // A put request increments the revision of the key-value store |
| 3362 | // and generates one event in the event history. |
| 3363 | Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error) |
| 3364 | // DeleteRange deletes the given range from the key-value store. |
| 3365 | // A delete request increments the revision of the key-value store |
| 3366 | // and generates a delete event in the event history for every deleted key. |
| 3367 | DeleteRange(ctx context.Context, in *DeleteRangeRequest, opts ...grpc.CallOption) (*DeleteRangeResponse, error) |
| 3368 | // Txn processes multiple requests in a single transaction. |
| 3369 | // A txn request increments the revision of the key-value store |
| 3370 | // and generates events with the same revision for every completed request. |
| 3371 | // It is not allowed to modify the same key several times within one txn. |
| 3372 | Txn(ctx context.Context, in *TxnRequest, opts ...grpc.CallOption) (*TxnResponse, error) |
| 3373 | // Compact compacts the event history in the etcd key-value store. The key-value |
| 3374 | // store should be periodically compacted or the event history will continue to grow |
| 3375 | // indefinitely. |
| 3376 | Compact(ctx context.Context, in *CompactionRequest, opts ...grpc.CallOption) (*CompactionResponse, error) |
| 3377 | } |
| 3378 | |
| 3379 | type kVClient struct { |
| 3380 | cc *grpc.ClientConn |
| 3381 | } |
| 3382 | |
| 3383 | func NewKVClient(cc *grpc.ClientConn) KVClient { |
| 3384 | return &kVClient{cc} |
| 3385 | } |
| 3386 | |
| 3387 | func (c *kVClient) Range(ctx context.Context, in *RangeRequest, opts ...grpc.CallOption) (*RangeResponse, error) { |
| 3388 | out := new(RangeResponse) |
| 3389 | err := grpc.Invoke(ctx, "/etcdserverpb.KV/Range", in, out, c.cc, opts...) |
| 3390 | if err != nil { |
| 3391 | return nil, err |
| 3392 | } |
| 3393 | return out, nil |
| 3394 | } |
| 3395 | |
| 3396 | func (c *kVClient) Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error) { |
| 3397 | out := new(PutResponse) |
| 3398 | err := grpc.Invoke(ctx, "/etcdserverpb.KV/Put", in, out, c.cc, opts...) |
| 3399 | if err != nil { |
| 3400 | return nil, err |
| 3401 | } |
| 3402 | return out, nil |
| 3403 | } |
| 3404 | |
| 3405 | func (c *kVClient) DeleteRange(ctx context.Context, in *DeleteRangeRequest, opts ...grpc.CallOption) (*DeleteRangeResponse, error) { |
| 3406 | out := new(DeleteRangeResponse) |
| 3407 | err := grpc.Invoke(ctx, "/etcdserverpb.KV/DeleteRange", in, out, c.cc, opts...) |
| 3408 | if err != nil { |
| 3409 | return nil, err |
| 3410 | } |
| 3411 | return out, nil |
| 3412 | } |
| 3413 | |
| 3414 | func (c *kVClient) Txn(ctx context.Context, in *TxnRequest, opts ...grpc.CallOption) (*TxnResponse, error) { |
| 3415 | out := new(TxnResponse) |
| 3416 | err := grpc.Invoke(ctx, "/etcdserverpb.KV/Txn", in, out, c.cc, opts...) |
| 3417 | if err != nil { |
| 3418 | return nil, err |
| 3419 | } |
| 3420 | return out, nil |
| 3421 | } |
| 3422 | |
| 3423 | func (c *kVClient) Compact(ctx context.Context, in *CompactionRequest, opts ...grpc.CallOption) (*CompactionResponse, error) { |
| 3424 | out := new(CompactionResponse) |
| 3425 | err := grpc.Invoke(ctx, "/etcdserverpb.KV/Compact", in, out, c.cc, opts...) |
| 3426 | if err != nil { |
| 3427 | return nil, err |
| 3428 | } |
| 3429 | return out, nil |
| 3430 | } |
| 3431 | |
| 3432 | // Server API for KV service |
| 3433 | |
| 3434 | type KVServer interface { |
| 3435 | // Range gets the keys in the range from the key-value store. |
| 3436 | Range(context.Context, *RangeRequest) (*RangeResponse, error) |
| 3437 | // Put puts the given key into the key-value store. |
| 3438 | // A put request increments the revision of the key-value store |
| 3439 | // and generates one event in the event history. |
| 3440 | Put(context.Context, *PutRequest) (*PutResponse, error) |
| 3441 | // DeleteRange deletes the given range from the key-value store. |
| 3442 | // A delete request increments the revision of the key-value store |
| 3443 | // and generates a delete event in the event history for every deleted key. |
| 3444 | DeleteRange(context.Context, *DeleteRangeRequest) (*DeleteRangeResponse, error) |
| 3445 | // Txn processes multiple requests in a single transaction. |
| 3446 | // A txn request increments the revision of the key-value store |
| 3447 | // and generates events with the same revision for every completed request. |
| 3448 | // It is not allowed to modify the same key several times within one txn. |
| 3449 | Txn(context.Context, *TxnRequest) (*TxnResponse, error) |
| 3450 | // Compact compacts the event history in the etcd key-value store. The key-value |
| 3451 | // store should be periodically compacted or the event history will continue to grow |
| 3452 | // indefinitely. |
| 3453 | Compact(context.Context, *CompactionRequest) (*CompactionResponse, error) |
| 3454 | } |
| 3455 | |
| 3456 | func RegisterKVServer(s *grpc.Server, srv KVServer) { |
| 3457 | s.RegisterService(&_KV_serviceDesc, srv) |
| 3458 | } |
| 3459 | |
| 3460 | func _KV_Range_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 3461 | in := new(RangeRequest) |
| 3462 | if err := dec(in); err != nil { |
| 3463 | return nil, err |
| 3464 | } |
| 3465 | if interceptor == nil { |
| 3466 | return srv.(KVServer).Range(ctx, in) |
| 3467 | } |
| 3468 | info := &grpc.UnaryServerInfo{ |
| 3469 | Server: srv, |
| 3470 | FullMethod: "/etcdserverpb.KV/Range", |
| 3471 | } |
| 3472 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 3473 | return srv.(KVServer).Range(ctx, req.(*RangeRequest)) |
| 3474 | } |
| 3475 | return interceptor(ctx, in, info, handler) |
| 3476 | } |
| 3477 | |
| 3478 | func _KV_Put_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 3479 | in := new(PutRequest) |
| 3480 | if err := dec(in); err != nil { |
| 3481 | return nil, err |
| 3482 | } |
| 3483 | if interceptor == nil { |
| 3484 | return srv.(KVServer).Put(ctx, in) |
| 3485 | } |
| 3486 | info := &grpc.UnaryServerInfo{ |
| 3487 | Server: srv, |
| 3488 | FullMethod: "/etcdserverpb.KV/Put", |
| 3489 | } |
| 3490 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 3491 | return srv.(KVServer).Put(ctx, req.(*PutRequest)) |
| 3492 | } |
| 3493 | return interceptor(ctx, in, info, handler) |
| 3494 | } |
| 3495 | |
| 3496 | func _KV_DeleteRange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 3497 | in := new(DeleteRangeRequest) |
| 3498 | if err := dec(in); err != nil { |
| 3499 | return nil, err |
| 3500 | } |
| 3501 | if interceptor == nil { |
| 3502 | return srv.(KVServer).DeleteRange(ctx, in) |
| 3503 | } |
| 3504 | info := &grpc.UnaryServerInfo{ |
| 3505 | Server: srv, |
| 3506 | FullMethod: "/etcdserverpb.KV/DeleteRange", |
| 3507 | } |
| 3508 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 3509 | return srv.(KVServer).DeleteRange(ctx, req.(*DeleteRangeRequest)) |
| 3510 | } |
| 3511 | return interceptor(ctx, in, info, handler) |
| 3512 | } |
| 3513 | |
| 3514 | func _KV_Txn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 3515 | in := new(TxnRequest) |
| 3516 | if err := dec(in); err != nil { |
| 3517 | return nil, err |
| 3518 | } |
| 3519 | if interceptor == nil { |
| 3520 | return srv.(KVServer).Txn(ctx, in) |
| 3521 | } |
| 3522 | info := &grpc.UnaryServerInfo{ |
| 3523 | Server: srv, |
| 3524 | FullMethod: "/etcdserverpb.KV/Txn", |
| 3525 | } |
| 3526 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 3527 | return srv.(KVServer).Txn(ctx, req.(*TxnRequest)) |
| 3528 | } |
| 3529 | return interceptor(ctx, in, info, handler) |
| 3530 | } |
| 3531 | |
| 3532 | func _KV_Compact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 3533 | in := new(CompactionRequest) |
| 3534 | if err := dec(in); err != nil { |
| 3535 | return nil, err |
| 3536 | } |
| 3537 | if interceptor == nil { |
| 3538 | return srv.(KVServer).Compact(ctx, in) |
| 3539 | } |
| 3540 | info := &grpc.UnaryServerInfo{ |
| 3541 | Server: srv, |
| 3542 | FullMethod: "/etcdserverpb.KV/Compact", |
| 3543 | } |
| 3544 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 3545 | return srv.(KVServer).Compact(ctx, req.(*CompactionRequest)) |
| 3546 | } |
| 3547 | return interceptor(ctx, in, info, handler) |
| 3548 | } |
| 3549 | |
| 3550 | var _KV_serviceDesc = grpc.ServiceDesc{ |
| 3551 | ServiceName: "etcdserverpb.KV", |
| 3552 | HandlerType: (*KVServer)(nil), |
| 3553 | Methods: []grpc.MethodDesc{ |
| 3554 | { |
| 3555 | MethodName: "Range", |
| 3556 | Handler: _KV_Range_Handler, |
| 3557 | }, |
| 3558 | { |
| 3559 | MethodName: "Put", |
| 3560 | Handler: _KV_Put_Handler, |
| 3561 | }, |
| 3562 | { |
| 3563 | MethodName: "DeleteRange", |
| 3564 | Handler: _KV_DeleteRange_Handler, |
| 3565 | }, |
| 3566 | { |
| 3567 | MethodName: "Txn", |
| 3568 | Handler: _KV_Txn_Handler, |
| 3569 | }, |
| 3570 | { |
| 3571 | MethodName: "Compact", |
| 3572 | Handler: _KV_Compact_Handler, |
| 3573 | }, |
| 3574 | }, |
| 3575 | Streams: []grpc.StreamDesc{}, |
| 3576 | Metadata: "rpc.proto", |
| 3577 | } |
| 3578 | |
| 3579 | // Client API for Watch service |
| 3580 | |
| 3581 | type WatchClient interface { |
| 3582 | // Watch watches for events happening or that have happened. Both input and output |
| 3583 | // are streams; the input stream is for creating and canceling watchers and the output |
| 3584 | // stream sends events. One watch RPC can watch on multiple key ranges, streaming events |
| 3585 | // for several watches at once. The entire event history can be watched starting from the |
| 3586 | // last compaction revision. |
| 3587 | Watch(ctx context.Context, opts ...grpc.CallOption) (Watch_WatchClient, error) |
| 3588 | } |
| 3589 | |
| 3590 | type watchClient struct { |
| 3591 | cc *grpc.ClientConn |
| 3592 | } |
| 3593 | |
| 3594 | func NewWatchClient(cc *grpc.ClientConn) WatchClient { |
| 3595 | return &watchClient{cc} |
| 3596 | } |
| 3597 | |
| 3598 | func (c *watchClient) Watch(ctx context.Context, opts ...grpc.CallOption) (Watch_WatchClient, error) { |
| 3599 | stream, err := grpc.NewClientStream(ctx, &_Watch_serviceDesc.Streams[0], c.cc, "/etcdserverpb.Watch/Watch", opts...) |
| 3600 | if err != nil { |
| 3601 | return nil, err |
| 3602 | } |
| 3603 | x := &watchWatchClient{stream} |
| 3604 | return x, nil |
| 3605 | } |
| 3606 | |
| 3607 | type Watch_WatchClient interface { |
| 3608 | Send(*WatchRequest) error |
| 3609 | Recv() (*WatchResponse, error) |
| 3610 | grpc.ClientStream |
| 3611 | } |
| 3612 | |
| 3613 | type watchWatchClient struct { |
| 3614 | grpc.ClientStream |
| 3615 | } |
| 3616 | |
| 3617 | func (x *watchWatchClient) Send(m *WatchRequest) error { |
| 3618 | return x.ClientStream.SendMsg(m) |
| 3619 | } |
| 3620 | |
| 3621 | func (x *watchWatchClient) Recv() (*WatchResponse, error) { |
| 3622 | m := new(WatchResponse) |
| 3623 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 3624 | return nil, err |
| 3625 | } |
| 3626 | return m, nil |
| 3627 | } |
| 3628 | |
| 3629 | // Server API for Watch service |
| 3630 | |
| 3631 | type WatchServer interface { |
| 3632 | // Watch watches for events happening or that have happened. Both input and output |
| 3633 | // are streams; the input stream is for creating and canceling watchers and the output |
| 3634 | // stream sends events. One watch RPC can watch on multiple key ranges, streaming events |
| 3635 | // for several watches at once. The entire event history can be watched starting from the |
| 3636 | // last compaction revision. |
| 3637 | Watch(Watch_WatchServer) error |
| 3638 | } |
| 3639 | |
| 3640 | func RegisterWatchServer(s *grpc.Server, srv WatchServer) { |
| 3641 | s.RegisterService(&_Watch_serviceDesc, srv) |
| 3642 | } |
| 3643 | |
| 3644 | func _Watch_Watch_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 3645 | return srv.(WatchServer).Watch(&watchWatchServer{stream}) |
| 3646 | } |
| 3647 | |
| 3648 | type Watch_WatchServer interface { |
| 3649 | Send(*WatchResponse) error |
| 3650 | Recv() (*WatchRequest, error) |
| 3651 | grpc.ServerStream |
| 3652 | } |
| 3653 | |
| 3654 | type watchWatchServer struct { |
| 3655 | grpc.ServerStream |
| 3656 | } |
| 3657 | |
| 3658 | func (x *watchWatchServer) Send(m *WatchResponse) error { |
| 3659 | return x.ServerStream.SendMsg(m) |
| 3660 | } |
| 3661 | |
| 3662 | func (x *watchWatchServer) Recv() (*WatchRequest, error) { |
| 3663 | m := new(WatchRequest) |
| 3664 | if err := x.ServerStream.RecvMsg(m); err != nil { |
| 3665 | return nil, err |
| 3666 | } |
| 3667 | return m, nil |
| 3668 | } |
| 3669 | |
| 3670 | var _Watch_serviceDesc = grpc.ServiceDesc{ |
| 3671 | ServiceName: "etcdserverpb.Watch", |
| 3672 | HandlerType: (*WatchServer)(nil), |
| 3673 | Methods: []grpc.MethodDesc{}, |
| 3674 | Streams: []grpc.StreamDesc{ |
| 3675 | { |
| 3676 | StreamName: "Watch", |
| 3677 | Handler: _Watch_Watch_Handler, |
| 3678 | ServerStreams: true, |
| 3679 | ClientStreams: true, |
| 3680 | }, |
| 3681 | }, |
| 3682 | Metadata: "rpc.proto", |
| 3683 | } |
| 3684 | |
| 3685 | // Client API for Lease service |
| 3686 | |
| 3687 | type LeaseClient interface { |
| 3688 | // LeaseGrant creates a lease which expires if the server does not receive a keepAlive |
| 3689 | // within a given time to live period. All keys attached to the lease will be expired and |
| 3690 | // deleted if the lease expires. Each expired key generates a delete event in the event history. |
| 3691 | LeaseGrant(ctx context.Context, in *LeaseGrantRequest, opts ...grpc.CallOption) (*LeaseGrantResponse, error) |
| 3692 | // LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted. |
| 3693 | LeaseRevoke(ctx context.Context, in *LeaseRevokeRequest, opts ...grpc.CallOption) (*LeaseRevokeResponse, error) |
| 3694 | // LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client |
| 3695 | // to the server and streaming keep alive responses from the server to the client. |
| 3696 | LeaseKeepAlive(ctx context.Context, opts ...grpc.CallOption) (Lease_LeaseKeepAliveClient, error) |
| 3697 | // LeaseTimeToLive retrieves lease information. |
| 3698 | LeaseTimeToLive(ctx context.Context, in *LeaseTimeToLiveRequest, opts ...grpc.CallOption) (*LeaseTimeToLiveResponse, error) |
| 3699 | // LeaseLeases lists all existing leases. |
| 3700 | LeaseLeases(ctx context.Context, in *LeaseLeasesRequest, opts ...grpc.CallOption) (*LeaseLeasesResponse, error) |
| 3701 | } |
| 3702 | |
| 3703 | type leaseClient struct { |
| 3704 | cc *grpc.ClientConn |
| 3705 | } |
| 3706 | |
| 3707 | func NewLeaseClient(cc *grpc.ClientConn) LeaseClient { |
| 3708 | return &leaseClient{cc} |
| 3709 | } |
| 3710 | |
| 3711 | func (c *leaseClient) LeaseGrant(ctx context.Context, in *LeaseGrantRequest, opts ...grpc.CallOption) (*LeaseGrantResponse, error) { |
| 3712 | out := new(LeaseGrantResponse) |
| 3713 | err := grpc.Invoke(ctx, "/etcdserverpb.Lease/LeaseGrant", in, out, c.cc, opts...) |
| 3714 | if err != nil { |
| 3715 | return nil, err |
| 3716 | } |
| 3717 | return out, nil |
| 3718 | } |
| 3719 | |
| 3720 | func (c *leaseClient) LeaseRevoke(ctx context.Context, in *LeaseRevokeRequest, opts ...grpc.CallOption) (*LeaseRevokeResponse, error) { |
| 3721 | out := new(LeaseRevokeResponse) |
| 3722 | err := grpc.Invoke(ctx, "/etcdserverpb.Lease/LeaseRevoke", in, out, c.cc, opts...) |
| 3723 | if err != nil { |
| 3724 | return nil, err |
| 3725 | } |
| 3726 | return out, nil |
| 3727 | } |
| 3728 | |
| 3729 | func (c *leaseClient) LeaseKeepAlive(ctx context.Context, opts ...grpc.CallOption) (Lease_LeaseKeepAliveClient, error) { |
| 3730 | stream, err := grpc.NewClientStream(ctx, &_Lease_serviceDesc.Streams[0], c.cc, "/etcdserverpb.Lease/LeaseKeepAlive", opts...) |
| 3731 | if err != nil { |
| 3732 | return nil, err |
| 3733 | } |
| 3734 | x := &leaseLeaseKeepAliveClient{stream} |
| 3735 | return x, nil |
| 3736 | } |
| 3737 | |
| 3738 | type Lease_LeaseKeepAliveClient interface { |
| 3739 | Send(*LeaseKeepAliveRequest) error |
| 3740 | Recv() (*LeaseKeepAliveResponse, error) |
| 3741 | grpc.ClientStream |
| 3742 | } |
| 3743 | |
| 3744 | type leaseLeaseKeepAliveClient struct { |
| 3745 | grpc.ClientStream |
| 3746 | } |
| 3747 | |
| 3748 | func (x *leaseLeaseKeepAliveClient) Send(m *LeaseKeepAliveRequest) error { |
| 3749 | return x.ClientStream.SendMsg(m) |
| 3750 | } |
| 3751 | |
| 3752 | func (x *leaseLeaseKeepAliveClient) Recv() (*LeaseKeepAliveResponse, error) { |
| 3753 | m := new(LeaseKeepAliveResponse) |
| 3754 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 3755 | return nil, err |
| 3756 | } |
| 3757 | return m, nil |
| 3758 | } |
| 3759 | |
| 3760 | func (c *leaseClient) LeaseTimeToLive(ctx context.Context, in *LeaseTimeToLiveRequest, opts ...grpc.CallOption) (*LeaseTimeToLiveResponse, error) { |
| 3761 | out := new(LeaseTimeToLiveResponse) |
| 3762 | err := grpc.Invoke(ctx, "/etcdserverpb.Lease/LeaseTimeToLive", in, out, c.cc, opts...) |
| 3763 | if err != nil { |
| 3764 | return nil, err |
| 3765 | } |
| 3766 | return out, nil |
| 3767 | } |
| 3768 | |
| 3769 | func (c *leaseClient) LeaseLeases(ctx context.Context, in *LeaseLeasesRequest, opts ...grpc.CallOption) (*LeaseLeasesResponse, error) { |
| 3770 | out := new(LeaseLeasesResponse) |
| 3771 | err := grpc.Invoke(ctx, "/etcdserverpb.Lease/LeaseLeases", in, out, c.cc, opts...) |
| 3772 | if err != nil { |
| 3773 | return nil, err |
| 3774 | } |
| 3775 | return out, nil |
| 3776 | } |
| 3777 | |
| 3778 | // Server API for Lease service |
| 3779 | |
| 3780 | type LeaseServer interface { |
| 3781 | // LeaseGrant creates a lease which expires if the server does not receive a keepAlive |
| 3782 | // within a given time to live period. All keys attached to the lease will be expired and |
| 3783 | // deleted if the lease expires. Each expired key generates a delete event in the event history. |
| 3784 | LeaseGrant(context.Context, *LeaseGrantRequest) (*LeaseGrantResponse, error) |
| 3785 | // LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted. |
| 3786 | LeaseRevoke(context.Context, *LeaseRevokeRequest) (*LeaseRevokeResponse, error) |
| 3787 | // LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client |
| 3788 | // to the server and streaming keep alive responses from the server to the client. |
| 3789 | LeaseKeepAlive(Lease_LeaseKeepAliveServer) error |
| 3790 | // LeaseTimeToLive retrieves lease information. |
| 3791 | LeaseTimeToLive(context.Context, *LeaseTimeToLiveRequest) (*LeaseTimeToLiveResponse, error) |
| 3792 | // LeaseLeases lists all existing leases. |
| 3793 | LeaseLeases(context.Context, *LeaseLeasesRequest) (*LeaseLeasesResponse, error) |
| 3794 | } |
| 3795 | |
| 3796 | func RegisterLeaseServer(s *grpc.Server, srv LeaseServer) { |
| 3797 | s.RegisterService(&_Lease_serviceDesc, srv) |
| 3798 | } |
| 3799 | |
| 3800 | func _Lease_LeaseGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 3801 | in := new(LeaseGrantRequest) |
| 3802 | if err := dec(in); err != nil { |
| 3803 | return nil, err |
| 3804 | } |
| 3805 | if interceptor == nil { |
| 3806 | return srv.(LeaseServer).LeaseGrant(ctx, in) |
| 3807 | } |
| 3808 | info := &grpc.UnaryServerInfo{ |
| 3809 | Server: srv, |
| 3810 | FullMethod: "/etcdserverpb.Lease/LeaseGrant", |
| 3811 | } |
| 3812 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 3813 | return srv.(LeaseServer).LeaseGrant(ctx, req.(*LeaseGrantRequest)) |
| 3814 | } |
| 3815 | return interceptor(ctx, in, info, handler) |
| 3816 | } |
| 3817 | |
| 3818 | func _Lease_LeaseRevoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 3819 | in := new(LeaseRevokeRequest) |
| 3820 | if err := dec(in); err != nil { |
| 3821 | return nil, err |
| 3822 | } |
| 3823 | if interceptor == nil { |
| 3824 | return srv.(LeaseServer).LeaseRevoke(ctx, in) |
| 3825 | } |
| 3826 | info := &grpc.UnaryServerInfo{ |
| 3827 | Server: srv, |
| 3828 | FullMethod: "/etcdserverpb.Lease/LeaseRevoke", |
| 3829 | } |
| 3830 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 3831 | return srv.(LeaseServer).LeaseRevoke(ctx, req.(*LeaseRevokeRequest)) |
| 3832 | } |
| 3833 | return interceptor(ctx, in, info, handler) |
| 3834 | } |
| 3835 | |
| 3836 | func _Lease_LeaseKeepAlive_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 3837 | return srv.(LeaseServer).LeaseKeepAlive(&leaseLeaseKeepAliveServer{stream}) |
| 3838 | } |
| 3839 | |
| 3840 | type Lease_LeaseKeepAliveServer interface { |
| 3841 | Send(*LeaseKeepAliveResponse) error |
| 3842 | Recv() (*LeaseKeepAliveRequest, error) |
| 3843 | grpc.ServerStream |
| 3844 | } |
| 3845 | |
| 3846 | type leaseLeaseKeepAliveServer struct { |
| 3847 | grpc.ServerStream |
| 3848 | } |
| 3849 | |
| 3850 | func (x *leaseLeaseKeepAliveServer) Send(m *LeaseKeepAliveResponse) error { |
| 3851 | return x.ServerStream.SendMsg(m) |
| 3852 | } |
| 3853 | |
| 3854 | func (x *leaseLeaseKeepAliveServer) Recv() (*LeaseKeepAliveRequest, error) { |
| 3855 | m := new(LeaseKeepAliveRequest) |
| 3856 | if err := x.ServerStream.RecvMsg(m); err != nil { |
| 3857 | return nil, err |
| 3858 | } |
| 3859 | return m, nil |
| 3860 | } |
| 3861 | |
| 3862 | func _Lease_LeaseTimeToLive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 3863 | in := new(LeaseTimeToLiveRequest) |
| 3864 | if err := dec(in); err != nil { |
| 3865 | return nil, err |
| 3866 | } |
| 3867 | if interceptor == nil { |
| 3868 | return srv.(LeaseServer).LeaseTimeToLive(ctx, in) |
| 3869 | } |
| 3870 | info := &grpc.UnaryServerInfo{ |
| 3871 | Server: srv, |
| 3872 | FullMethod: "/etcdserverpb.Lease/LeaseTimeToLive", |
| 3873 | } |
| 3874 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 3875 | return srv.(LeaseServer).LeaseTimeToLive(ctx, req.(*LeaseTimeToLiveRequest)) |
| 3876 | } |
| 3877 | return interceptor(ctx, in, info, handler) |
| 3878 | } |
| 3879 | |
| 3880 | func _Lease_LeaseLeases_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 3881 | in := new(LeaseLeasesRequest) |
| 3882 | if err := dec(in); err != nil { |
| 3883 | return nil, err |
| 3884 | } |
| 3885 | if interceptor == nil { |
| 3886 | return srv.(LeaseServer).LeaseLeases(ctx, in) |
| 3887 | } |
| 3888 | info := &grpc.UnaryServerInfo{ |
| 3889 | Server: srv, |
| 3890 | FullMethod: "/etcdserverpb.Lease/LeaseLeases", |
| 3891 | } |
| 3892 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 3893 | return srv.(LeaseServer).LeaseLeases(ctx, req.(*LeaseLeasesRequest)) |
| 3894 | } |
| 3895 | return interceptor(ctx, in, info, handler) |
| 3896 | } |
| 3897 | |
| 3898 | var _Lease_serviceDesc = grpc.ServiceDesc{ |
| 3899 | ServiceName: "etcdserverpb.Lease", |
| 3900 | HandlerType: (*LeaseServer)(nil), |
| 3901 | Methods: []grpc.MethodDesc{ |
| 3902 | { |
| 3903 | MethodName: "LeaseGrant", |
| 3904 | Handler: _Lease_LeaseGrant_Handler, |
| 3905 | }, |
| 3906 | { |
| 3907 | MethodName: "LeaseRevoke", |
| 3908 | Handler: _Lease_LeaseRevoke_Handler, |
| 3909 | }, |
| 3910 | { |
| 3911 | MethodName: "LeaseTimeToLive", |
| 3912 | Handler: _Lease_LeaseTimeToLive_Handler, |
| 3913 | }, |
| 3914 | { |
| 3915 | MethodName: "LeaseLeases", |
| 3916 | Handler: _Lease_LeaseLeases_Handler, |
| 3917 | }, |
| 3918 | }, |
| 3919 | Streams: []grpc.StreamDesc{ |
| 3920 | { |
| 3921 | StreamName: "LeaseKeepAlive", |
| 3922 | Handler: _Lease_LeaseKeepAlive_Handler, |
| 3923 | ServerStreams: true, |
| 3924 | ClientStreams: true, |
| 3925 | }, |
| 3926 | }, |
| 3927 | Metadata: "rpc.proto", |
| 3928 | } |
| 3929 | |
| 3930 | // Client API for Cluster service |
| 3931 | |
| 3932 | type ClusterClient interface { |
| 3933 | // MemberAdd adds a member into the cluster. |
| 3934 | MemberAdd(ctx context.Context, in *MemberAddRequest, opts ...grpc.CallOption) (*MemberAddResponse, error) |
| 3935 | // MemberRemove removes an existing member from the cluster. |
| 3936 | MemberRemove(ctx context.Context, in *MemberRemoveRequest, opts ...grpc.CallOption) (*MemberRemoveResponse, error) |
| 3937 | // MemberUpdate updates the member configuration. |
| 3938 | MemberUpdate(ctx context.Context, in *MemberUpdateRequest, opts ...grpc.CallOption) (*MemberUpdateResponse, error) |
| 3939 | // MemberList lists all the members in the cluster. |
| 3940 | MemberList(ctx context.Context, in *MemberListRequest, opts ...grpc.CallOption) (*MemberListResponse, error) |
| 3941 | } |
| 3942 | |
| 3943 | type clusterClient struct { |
| 3944 | cc *grpc.ClientConn |
| 3945 | } |
| 3946 | |
| 3947 | func NewClusterClient(cc *grpc.ClientConn) ClusterClient { |
| 3948 | return &clusterClient{cc} |
| 3949 | } |
| 3950 | |
| 3951 | func (c *clusterClient) MemberAdd(ctx context.Context, in *MemberAddRequest, opts ...grpc.CallOption) (*MemberAddResponse, error) { |
| 3952 | out := new(MemberAddResponse) |
| 3953 | err := grpc.Invoke(ctx, "/etcdserverpb.Cluster/MemberAdd", in, out, c.cc, opts...) |
| 3954 | if err != nil { |
| 3955 | return nil, err |
| 3956 | } |
| 3957 | return out, nil |
| 3958 | } |
| 3959 | |
| 3960 | func (c *clusterClient) MemberRemove(ctx context.Context, in *MemberRemoveRequest, opts ...grpc.CallOption) (*MemberRemoveResponse, error) { |
| 3961 | out := new(MemberRemoveResponse) |
| 3962 | err := grpc.Invoke(ctx, "/etcdserverpb.Cluster/MemberRemove", in, out, c.cc, opts...) |
| 3963 | if err != nil { |
| 3964 | return nil, err |
| 3965 | } |
| 3966 | return out, nil |
| 3967 | } |
| 3968 | |
| 3969 | func (c *clusterClient) MemberUpdate(ctx context.Context, in *MemberUpdateRequest, opts ...grpc.CallOption) (*MemberUpdateResponse, error) { |
| 3970 | out := new(MemberUpdateResponse) |
| 3971 | err := grpc.Invoke(ctx, "/etcdserverpb.Cluster/MemberUpdate", in, out, c.cc, opts...) |
| 3972 | if err != nil { |
| 3973 | return nil, err |
| 3974 | } |
| 3975 | return out, nil |
| 3976 | } |
| 3977 | |
| 3978 | func (c *clusterClient) MemberList(ctx context.Context, in *MemberListRequest, opts ...grpc.CallOption) (*MemberListResponse, error) { |
| 3979 | out := new(MemberListResponse) |
| 3980 | err := grpc.Invoke(ctx, "/etcdserverpb.Cluster/MemberList", in, out, c.cc, opts...) |
| 3981 | if err != nil { |
| 3982 | return nil, err |
| 3983 | } |
| 3984 | return out, nil |
| 3985 | } |
| 3986 | |
| 3987 | // Server API for Cluster service |
| 3988 | |
| 3989 | type ClusterServer interface { |
| 3990 | // MemberAdd adds a member into the cluster. |
| 3991 | MemberAdd(context.Context, *MemberAddRequest) (*MemberAddResponse, error) |
| 3992 | // MemberRemove removes an existing member from the cluster. |
| 3993 | MemberRemove(context.Context, *MemberRemoveRequest) (*MemberRemoveResponse, error) |
| 3994 | // MemberUpdate updates the member configuration. |
| 3995 | MemberUpdate(context.Context, *MemberUpdateRequest) (*MemberUpdateResponse, error) |
| 3996 | // MemberList lists all the members in the cluster. |
| 3997 | MemberList(context.Context, *MemberListRequest) (*MemberListResponse, error) |
| 3998 | } |
| 3999 | |
| 4000 | func RegisterClusterServer(s *grpc.Server, srv ClusterServer) { |
| 4001 | s.RegisterService(&_Cluster_serviceDesc, srv) |
| 4002 | } |
| 4003 | |
| 4004 | func _Cluster_MemberAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4005 | in := new(MemberAddRequest) |
| 4006 | if err := dec(in); err != nil { |
| 4007 | return nil, err |
| 4008 | } |
| 4009 | if interceptor == nil { |
| 4010 | return srv.(ClusterServer).MemberAdd(ctx, in) |
| 4011 | } |
| 4012 | info := &grpc.UnaryServerInfo{ |
| 4013 | Server: srv, |
| 4014 | FullMethod: "/etcdserverpb.Cluster/MemberAdd", |
| 4015 | } |
| 4016 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4017 | return srv.(ClusterServer).MemberAdd(ctx, req.(*MemberAddRequest)) |
| 4018 | } |
| 4019 | return interceptor(ctx, in, info, handler) |
| 4020 | } |
| 4021 | |
| 4022 | func _Cluster_MemberRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4023 | in := new(MemberRemoveRequest) |
| 4024 | if err := dec(in); err != nil { |
| 4025 | return nil, err |
| 4026 | } |
| 4027 | if interceptor == nil { |
| 4028 | return srv.(ClusterServer).MemberRemove(ctx, in) |
| 4029 | } |
| 4030 | info := &grpc.UnaryServerInfo{ |
| 4031 | Server: srv, |
| 4032 | FullMethod: "/etcdserverpb.Cluster/MemberRemove", |
| 4033 | } |
| 4034 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4035 | return srv.(ClusterServer).MemberRemove(ctx, req.(*MemberRemoveRequest)) |
| 4036 | } |
| 4037 | return interceptor(ctx, in, info, handler) |
| 4038 | } |
| 4039 | |
| 4040 | func _Cluster_MemberUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4041 | in := new(MemberUpdateRequest) |
| 4042 | if err := dec(in); err != nil { |
| 4043 | return nil, err |
| 4044 | } |
| 4045 | if interceptor == nil { |
| 4046 | return srv.(ClusterServer).MemberUpdate(ctx, in) |
| 4047 | } |
| 4048 | info := &grpc.UnaryServerInfo{ |
| 4049 | Server: srv, |
| 4050 | FullMethod: "/etcdserverpb.Cluster/MemberUpdate", |
| 4051 | } |
| 4052 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4053 | return srv.(ClusterServer).MemberUpdate(ctx, req.(*MemberUpdateRequest)) |
| 4054 | } |
| 4055 | return interceptor(ctx, in, info, handler) |
| 4056 | } |
| 4057 | |
| 4058 | func _Cluster_MemberList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4059 | in := new(MemberListRequest) |
| 4060 | if err := dec(in); err != nil { |
| 4061 | return nil, err |
| 4062 | } |
| 4063 | if interceptor == nil { |
| 4064 | return srv.(ClusterServer).MemberList(ctx, in) |
| 4065 | } |
| 4066 | info := &grpc.UnaryServerInfo{ |
| 4067 | Server: srv, |
| 4068 | FullMethod: "/etcdserverpb.Cluster/MemberList", |
| 4069 | } |
| 4070 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4071 | return srv.(ClusterServer).MemberList(ctx, req.(*MemberListRequest)) |
| 4072 | } |
| 4073 | return interceptor(ctx, in, info, handler) |
| 4074 | } |
| 4075 | |
| 4076 | var _Cluster_serviceDesc = grpc.ServiceDesc{ |
| 4077 | ServiceName: "etcdserverpb.Cluster", |
| 4078 | HandlerType: (*ClusterServer)(nil), |
| 4079 | Methods: []grpc.MethodDesc{ |
| 4080 | { |
| 4081 | MethodName: "MemberAdd", |
| 4082 | Handler: _Cluster_MemberAdd_Handler, |
| 4083 | }, |
| 4084 | { |
| 4085 | MethodName: "MemberRemove", |
| 4086 | Handler: _Cluster_MemberRemove_Handler, |
| 4087 | }, |
| 4088 | { |
| 4089 | MethodName: "MemberUpdate", |
| 4090 | Handler: _Cluster_MemberUpdate_Handler, |
| 4091 | }, |
| 4092 | { |
| 4093 | MethodName: "MemberList", |
| 4094 | Handler: _Cluster_MemberList_Handler, |
| 4095 | }, |
| 4096 | }, |
| 4097 | Streams: []grpc.StreamDesc{}, |
| 4098 | Metadata: "rpc.proto", |
| 4099 | } |
| 4100 | |
| 4101 | // Client API for Maintenance service |
| 4102 | |
| 4103 | type MaintenanceClient interface { |
| 4104 | // Alarm activates, deactivates, and queries alarms regarding cluster health. |
| 4105 | Alarm(ctx context.Context, in *AlarmRequest, opts ...grpc.CallOption) (*AlarmResponse, error) |
| 4106 | // Status gets the status of the member. |
| 4107 | Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) |
| 4108 | // Defragment defragments a member's backend database to recover storage space. |
| 4109 | Defragment(ctx context.Context, in *DefragmentRequest, opts ...grpc.CallOption) (*DefragmentResponse, error) |
| 4110 | // Hash computes the hash of whole backend keyspace, |
| 4111 | // including key, lease, and other buckets in storage. |
| 4112 | // This is designed for testing ONLY! |
| 4113 | // Do not rely on this in production with ongoing transactions, |
| 4114 | // since Hash operation does not hold MVCC locks. |
| 4115 | // Use "HashKV" API instead for "key" bucket consistency checks. |
| 4116 | Hash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, error) |
| 4117 | // HashKV computes the hash of all MVCC keys up to a given revision. |
| 4118 | // It only iterates "key" bucket in backend storage. |
| 4119 | HashKV(ctx context.Context, in *HashKVRequest, opts ...grpc.CallOption) (*HashKVResponse, error) |
| 4120 | // Snapshot sends a snapshot of the entire backend from a member over a stream to a client. |
| 4121 | Snapshot(ctx context.Context, in *SnapshotRequest, opts ...grpc.CallOption) (Maintenance_SnapshotClient, error) |
| 4122 | // MoveLeader requests current leader node to transfer its leadership to transferee. |
| 4123 | MoveLeader(ctx context.Context, in *MoveLeaderRequest, opts ...grpc.CallOption) (*MoveLeaderResponse, error) |
| 4124 | } |
| 4125 | |
| 4126 | type maintenanceClient struct { |
| 4127 | cc *grpc.ClientConn |
| 4128 | } |
| 4129 | |
| 4130 | func NewMaintenanceClient(cc *grpc.ClientConn) MaintenanceClient { |
| 4131 | return &maintenanceClient{cc} |
| 4132 | } |
| 4133 | |
| 4134 | func (c *maintenanceClient) Alarm(ctx context.Context, in *AlarmRequest, opts ...grpc.CallOption) (*AlarmResponse, error) { |
| 4135 | out := new(AlarmResponse) |
| 4136 | err := grpc.Invoke(ctx, "/etcdserverpb.Maintenance/Alarm", in, out, c.cc, opts...) |
| 4137 | if err != nil { |
| 4138 | return nil, err |
| 4139 | } |
| 4140 | return out, nil |
| 4141 | } |
| 4142 | |
| 4143 | func (c *maintenanceClient) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) { |
| 4144 | out := new(StatusResponse) |
| 4145 | err := grpc.Invoke(ctx, "/etcdserverpb.Maintenance/Status", in, out, c.cc, opts...) |
| 4146 | if err != nil { |
| 4147 | return nil, err |
| 4148 | } |
| 4149 | return out, nil |
| 4150 | } |
| 4151 | |
| 4152 | func (c *maintenanceClient) Defragment(ctx context.Context, in *DefragmentRequest, opts ...grpc.CallOption) (*DefragmentResponse, error) { |
| 4153 | out := new(DefragmentResponse) |
| 4154 | err := grpc.Invoke(ctx, "/etcdserverpb.Maintenance/Defragment", in, out, c.cc, opts...) |
| 4155 | if err != nil { |
| 4156 | return nil, err |
| 4157 | } |
| 4158 | return out, nil |
| 4159 | } |
| 4160 | |
| 4161 | func (c *maintenanceClient) Hash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, error) { |
| 4162 | out := new(HashResponse) |
| 4163 | err := grpc.Invoke(ctx, "/etcdserverpb.Maintenance/Hash", in, out, c.cc, opts...) |
| 4164 | if err != nil { |
| 4165 | return nil, err |
| 4166 | } |
| 4167 | return out, nil |
| 4168 | } |
| 4169 | |
| 4170 | func (c *maintenanceClient) HashKV(ctx context.Context, in *HashKVRequest, opts ...grpc.CallOption) (*HashKVResponse, error) { |
| 4171 | out := new(HashKVResponse) |
| 4172 | err := grpc.Invoke(ctx, "/etcdserverpb.Maintenance/HashKV", in, out, c.cc, opts...) |
| 4173 | if err != nil { |
| 4174 | return nil, err |
| 4175 | } |
| 4176 | return out, nil |
| 4177 | } |
| 4178 | |
| 4179 | func (c *maintenanceClient) Snapshot(ctx context.Context, in *SnapshotRequest, opts ...grpc.CallOption) (Maintenance_SnapshotClient, error) { |
| 4180 | stream, err := grpc.NewClientStream(ctx, &_Maintenance_serviceDesc.Streams[0], c.cc, "/etcdserverpb.Maintenance/Snapshot", opts...) |
| 4181 | if err != nil { |
| 4182 | return nil, err |
| 4183 | } |
| 4184 | x := &maintenanceSnapshotClient{stream} |
| 4185 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 4186 | return nil, err |
| 4187 | } |
| 4188 | if err := x.ClientStream.CloseSend(); err != nil { |
| 4189 | return nil, err |
| 4190 | } |
| 4191 | return x, nil |
| 4192 | } |
| 4193 | |
| 4194 | type Maintenance_SnapshotClient interface { |
| 4195 | Recv() (*SnapshotResponse, error) |
| 4196 | grpc.ClientStream |
| 4197 | } |
| 4198 | |
| 4199 | type maintenanceSnapshotClient struct { |
| 4200 | grpc.ClientStream |
| 4201 | } |
| 4202 | |
| 4203 | func (x *maintenanceSnapshotClient) Recv() (*SnapshotResponse, error) { |
| 4204 | m := new(SnapshotResponse) |
| 4205 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 4206 | return nil, err |
| 4207 | } |
| 4208 | return m, nil |
| 4209 | } |
| 4210 | |
| 4211 | func (c *maintenanceClient) MoveLeader(ctx context.Context, in *MoveLeaderRequest, opts ...grpc.CallOption) (*MoveLeaderResponse, error) { |
| 4212 | out := new(MoveLeaderResponse) |
| 4213 | err := grpc.Invoke(ctx, "/etcdserverpb.Maintenance/MoveLeader", in, out, c.cc, opts...) |
| 4214 | if err != nil { |
| 4215 | return nil, err |
| 4216 | } |
| 4217 | return out, nil |
| 4218 | } |
| 4219 | |
| 4220 | // Server API for Maintenance service |
| 4221 | |
| 4222 | type MaintenanceServer interface { |
| 4223 | // Alarm activates, deactivates, and queries alarms regarding cluster health. |
| 4224 | Alarm(context.Context, *AlarmRequest) (*AlarmResponse, error) |
| 4225 | // Status gets the status of the member. |
| 4226 | Status(context.Context, *StatusRequest) (*StatusResponse, error) |
| 4227 | // Defragment defragments a member's backend database to recover storage space. |
| 4228 | Defragment(context.Context, *DefragmentRequest) (*DefragmentResponse, error) |
| 4229 | // Hash computes the hash of whole backend keyspace, |
| 4230 | // including key, lease, and other buckets in storage. |
| 4231 | // This is designed for testing ONLY! |
| 4232 | // Do not rely on this in production with ongoing transactions, |
| 4233 | // since Hash operation does not hold MVCC locks. |
| 4234 | // Use "HashKV" API instead for "key" bucket consistency checks. |
| 4235 | Hash(context.Context, *HashRequest) (*HashResponse, error) |
| 4236 | // HashKV computes the hash of all MVCC keys up to a given revision. |
| 4237 | // It only iterates "key" bucket in backend storage. |
| 4238 | HashKV(context.Context, *HashKVRequest) (*HashKVResponse, error) |
| 4239 | // Snapshot sends a snapshot of the entire backend from a member over a stream to a client. |
| 4240 | Snapshot(*SnapshotRequest, Maintenance_SnapshotServer) error |
| 4241 | // MoveLeader requests current leader node to transfer its leadership to transferee. |
| 4242 | MoveLeader(context.Context, *MoveLeaderRequest) (*MoveLeaderResponse, error) |
| 4243 | } |
| 4244 | |
| 4245 | func RegisterMaintenanceServer(s *grpc.Server, srv MaintenanceServer) { |
| 4246 | s.RegisterService(&_Maintenance_serviceDesc, srv) |
| 4247 | } |
| 4248 | |
| 4249 | func _Maintenance_Alarm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4250 | in := new(AlarmRequest) |
| 4251 | if err := dec(in); err != nil { |
| 4252 | return nil, err |
| 4253 | } |
| 4254 | if interceptor == nil { |
| 4255 | return srv.(MaintenanceServer).Alarm(ctx, in) |
| 4256 | } |
| 4257 | info := &grpc.UnaryServerInfo{ |
| 4258 | Server: srv, |
| 4259 | FullMethod: "/etcdserverpb.Maintenance/Alarm", |
| 4260 | } |
| 4261 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4262 | return srv.(MaintenanceServer).Alarm(ctx, req.(*AlarmRequest)) |
| 4263 | } |
| 4264 | return interceptor(ctx, in, info, handler) |
| 4265 | } |
| 4266 | |
| 4267 | func _Maintenance_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4268 | in := new(StatusRequest) |
| 4269 | if err := dec(in); err != nil { |
| 4270 | return nil, err |
| 4271 | } |
| 4272 | if interceptor == nil { |
| 4273 | return srv.(MaintenanceServer).Status(ctx, in) |
| 4274 | } |
| 4275 | info := &grpc.UnaryServerInfo{ |
| 4276 | Server: srv, |
| 4277 | FullMethod: "/etcdserverpb.Maintenance/Status", |
| 4278 | } |
| 4279 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4280 | return srv.(MaintenanceServer).Status(ctx, req.(*StatusRequest)) |
| 4281 | } |
| 4282 | return interceptor(ctx, in, info, handler) |
| 4283 | } |
| 4284 | |
| 4285 | func _Maintenance_Defragment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4286 | in := new(DefragmentRequest) |
| 4287 | if err := dec(in); err != nil { |
| 4288 | return nil, err |
| 4289 | } |
| 4290 | if interceptor == nil { |
| 4291 | return srv.(MaintenanceServer).Defragment(ctx, in) |
| 4292 | } |
| 4293 | info := &grpc.UnaryServerInfo{ |
| 4294 | Server: srv, |
| 4295 | FullMethod: "/etcdserverpb.Maintenance/Defragment", |
| 4296 | } |
| 4297 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4298 | return srv.(MaintenanceServer).Defragment(ctx, req.(*DefragmentRequest)) |
| 4299 | } |
| 4300 | return interceptor(ctx, in, info, handler) |
| 4301 | } |
| 4302 | |
| 4303 | func _Maintenance_Hash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4304 | in := new(HashRequest) |
| 4305 | if err := dec(in); err != nil { |
| 4306 | return nil, err |
| 4307 | } |
| 4308 | if interceptor == nil { |
| 4309 | return srv.(MaintenanceServer).Hash(ctx, in) |
| 4310 | } |
| 4311 | info := &grpc.UnaryServerInfo{ |
| 4312 | Server: srv, |
| 4313 | FullMethod: "/etcdserverpb.Maintenance/Hash", |
| 4314 | } |
| 4315 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4316 | return srv.(MaintenanceServer).Hash(ctx, req.(*HashRequest)) |
| 4317 | } |
| 4318 | return interceptor(ctx, in, info, handler) |
| 4319 | } |
| 4320 | |
| 4321 | func _Maintenance_HashKV_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4322 | in := new(HashKVRequest) |
| 4323 | if err := dec(in); err != nil { |
| 4324 | return nil, err |
| 4325 | } |
| 4326 | if interceptor == nil { |
| 4327 | return srv.(MaintenanceServer).HashKV(ctx, in) |
| 4328 | } |
| 4329 | info := &grpc.UnaryServerInfo{ |
| 4330 | Server: srv, |
| 4331 | FullMethod: "/etcdserverpb.Maintenance/HashKV", |
| 4332 | } |
| 4333 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4334 | return srv.(MaintenanceServer).HashKV(ctx, req.(*HashKVRequest)) |
| 4335 | } |
| 4336 | return interceptor(ctx, in, info, handler) |
| 4337 | } |
| 4338 | |
| 4339 | func _Maintenance_Snapshot_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 4340 | m := new(SnapshotRequest) |
| 4341 | if err := stream.RecvMsg(m); err != nil { |
| 4342 | return err |
| 4343 | } |
| 4344 | return srv.(MaintenanceServer).Snapshot(m, &maintenanceSnapshotServer{stream}) |
| 4345 | } |
| 4346 | |
| 4347 | type Maintenance_SnapshotServer interface { |
| 4348 | Send(*SnapshotResponse) error |
| 4349 | grpc.ServerStream |
| 4350 | } |
| 4351 | |
| 4352 | type maintenanceSnapshotServer struct { |
| 4353 | grpc.ServerStream |
| 4354 | } |
| 4355 | |
| 4356 | func (x *maintenanceSnapshotServer) Send(m *SnapshotResponse) error { |
| 4357 | return x.ServerStream.SendMsg(m) |
| 4358 | } |
| 4359 | |
| 4360 | func _Maintenance_MoveLeader_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4361 | in := new(MoveLeaderRequest) |
| 4362 | if err := dec(in); err != nil { |
| 4363 | return nil, err |
| 4364 | } |
| 4365 | if interceptor == nil { |
| 4366 | return srv.(MaintenanceServer).MoveLeader(ctx, in) |
| 4367 | } |
| 4368 | info := &grpc.UnaryServerInfo{ |
| 4369 | Server: srv, |
| 4370 | FullMethod: "/etcdserverpb.Maintenance/MoveLeader", |
| 4371 | } |
| 4372 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4373 | return srv.(MaintenanceServer).MoveLeader(ctx, req.(*MoveLeaderRequest)) |
| 4374 | } |
| 4375 | return interceptor(ctx, in, info, handler) |
| 4376 | } |
| 4377 | |
| 4378 | var _Maintenance_serviceDesc = grpc.ServiceDesc{ |
| 4379 | ServiceName: "etcdserverpb.Maintenance", |
| 4380 | HandlerType: (*MaintenanceServer)(nil), |
| 4381 | Methods: []grpc.MethodDesc{ |
| 4382 | { |
| 4383 | MethodName: "Alarm", |
| 4384 | Handler: _Maintenance_Alarm_Handler, |
| 4385 | }, |
| 4386 | { |
| 4387 | MethodName: "Status", |
| 4388 | Handler: _Maintenance_Status_Handler, |
| 4389 | }, |
| 4390 | { |
| 4391 | MethodName: "Defragment", |
| 4392 | Handler: _Maintenance_Defragment_Handler, |
| 4393 | }, |
| 4394 | { |
| 4395 | MethodName: "Hash", |
| 4396 | Handler: _Maintenance_Hash_Handler, |
| 4397 | }, |
| 4398 | { |
| 4399 | MethodName: "HashKV", |
| 4400 | Handler: _Maintenance_HashKV_Handler, |
| 4401 | }, |
| 4402 | { |
| 4403 | MethodName: "MoveLeader", |
| 4404 | Handler: _Maintenance_MoveLeader_Handler, |
| 4405 | }, |
| 4406 | }, |
| 4407 | Streams: []grpc.StreamDesc{ |
| 4408 | { |
| 4409 | StreamName: "Snapshot", |
| 4410 | Handler: _Maintenance_Snapshot_Handler, |
| 4411 | ServerStreams: true, |
| 4412 | }, |
| 4413 | }, |
| 4414 | Metadata: "rpc.proto", |
| 4415 | } |
| 4416 | |
| 4417 | // Client API for Auth service |
| 4418 | |
| 4419 | type AuthClient interface { |
| 4420 | // AuthEnable enables authentication. |
| 4421 | AuthEnable(ctx context.Context, in *AuthEnableRequest, opts ...grpc.CallOption) (*AuthEnableResponse, error) |
| 4422 | // AuthDisable disables authentication. |
| 4423 | AuthDisable(ctx context.Context, in *AuthDisableRequest, opts ...grpc.CallOption) (*AuthDisableResponse, error) |
| 4424 | // Authenticate processes an authenticate request. |
| 4425 | Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) |
| 4426 | // UserAdd adds a new user. |
| 4427 | UserAdd(ctx context.Context, in *AuthUserAddRequest, opts ...grpc.CallOption) (*AuthUserAddResponse, error) |
| 4428 | // UserGet gets detailed user information. |
| 4429 | UserGet(ctx context.Context, in *AuthUserGetRequest, opts ...grpc.CallOption) (*AuthUserGetResponse, error) |
| 4430 | // UserList gets a list of all users. |
| 4431 | UserList(ctx context.Context, in *AuthUserListRequest, opts ...grpc.CallOption) (*AuthUserListResponse, error) |
| 4432 | // UserDelete deletes a specified user. |
| 4433 | UserDelete(ctx context.Context, in *AuthUserDeleteRequest, opts ...grpc.CallOption) (*AuthUserDeleteResponse, error) |
| 4434 | // UserChangePassword changes the password of a specified user. |
| 4435 | UserChangePassword(ctx context.Context, in *AuthUserChangePasswordRequest, opts ...grpc.CallOption) (*AuthUserChangePasswordResponse, error) |
| 4436 | // UserGrant grants a role to a specified user. |
| 4437 | UserGrantRole(ctx context.Context, in *AuthUserGrantRoleRequest, opts ...grpc.CallOption) (*AuthUserGrantRoleResponse, error) |
| 4438 | // UserRevokeRole revokes a role of specified user. |
| 4439 | UserRevokeRole(ctx context.Context, in *AuthUserRevokeRoleRequest, opts ...grpc.CallOption) (*AuthUserRevokeRoleResponse, error) |
| 4440 | // RoleAdd adds a new role. |
| 4441 | RoleAdd(ctx context.Context, in *AuthRoleAddRequest, opts ...grpc.CallOption) (*AuthRoleAddResponse, error) |
| 4442 | // RoleGet gets detailed role information. |
| 4443 | RoleGet(ctx context.Context, in *AuthRoleGetRequest, opts ...grpc.CallOption) (*AuthRoleGetResponse, error) |
| 4444 | // RoleList gets lists of all roles. |
| 4445 | RoleList(ctx context.Context, in *AuthRoleListRequest, opts ...grpc.CallOption) (*AuthRoleListResponse, error) |
| 4446 | // RoleDelete deletes a specified role. |
| 4447 | RoleDelete(ctx context.Context, in *AuthRoleDeleteRequest, opts ...grpc.CallOption) (*AuthRoleDeleteResponse, error) |
| 4448 | // RoleGrantPermission grants a permission of a specified key or range to a specified role. |
| 4449 | RoleGrantPermission(ctx context.Context, in *AuthRoleGrantPermissionRequest, opts ...grpc.CallOption) (*AuthRoleGrantPermissionResponse, error) |
| 4450 | // RoleRevokePermission revokes a key or range permission of a specified role. |
| 4451 | RoleRevokePermission(ctx context.Context, in *AuthRoleRevokePermissionRequest, opts ...grpc.CallOption) (*AuthRoleRevokePermissionResponse, error) |
| 4452 | } |
| 4453 | |
| 4454 | type authClient struct { |
| 4455 | cc *grpc.ClientConn |
| 4456 | } |
| 4457 | |
| 4458 | func NewAuthClient(cc *grpc.ClientConn) AuthClient { |
| 4459 | return &authClient{cc} |
| 4460 | } |
| 4461 | |
| 4462 | func (c *authClient) AuthEnable(ctx context.Context, in *AuthEnableRequest, opts ...grpc.CallOption) (*AuthEnableResponse, error) { |
| 4463 | out := new(AuthEnableResponse) |
| 4464 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/AuthEnable", in, out, c.cc, opts...) |
| 4465 | if err != nil { |
| 4466 | return nil, err |
| 4467 | } |
| 4468 | return out, nil |
| 4469 | } |
| 4470 | |
| 4471 | func (c *authClient) AuthDisable(ctx context.Context, in *AuthDisableRequest, opts ...grpc.CallOption) (*AuthDisableResponse, error) { |
| 4472 | out := new(AuthDisableResponse) |
| 4473 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/AuthDisable", in, out, c.cc, opts...) |
| 4474 | if err != nil { |
| 4475 | return nil, err |
| 4476 | } |
| 4477 | return out, nil |
| 4478 | } |
| 4479 | |
| 4480 | func (c *authClient) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) { |
| 4481 | out := new(AuthenticateResponse) |
| 4482 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/Authenticate", in, out, c.cc, opts...) |
| 4483 | if err != nil { |
| 4484 | return nil, err |
| 4485 | } |
| 4486 | return out, nil |
| 4487 | } |
| 4488 | |
| 4489 | func (c *authClient) UserAdd(ctx context.Context, in *AuthUserAddRequest, opts ...grpc.CallOption) (*AuthUserAddResponse, error) { |
| 4490 | out := new(AuthUserAddResponse) |
| 4491 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/UserAdd", in, out, c.cc, opts...) |
| 4492 | if err != nil { |
| 4493 | return nil, err |
| 4494 | } |
| 4495 | return out, nil |
| 4496 | } |
| 4497 | |
| 4498 | func (c *authClient) UserGet(ctx context.Context, in *AuthUserGetRequest, opts ...grpc.CallOption) (*AuthUserGetResponse, error) { |
| 4499 | out := new(AuthUserGetResponse) |
| 4500 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/UserGet", in, out, c.cc, opts...) |
| 4501 | if err != nil { |
| 4502 | return nil, err |
| 4503 | } |
| 4504 | return out, nil |
| 4505 | } |
| 4506 | |
| 4507 | func (c *authClient) UserList(ctx context.Context, in *AuthUserListRequest, opts ...grpc.CallOption) (*AuthUserListResponse, error) { |
| 4508 | out := new(AuthUserListResponse) |
| 4509 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/UserList", in, out, c.cc, opts...) |
| 4510 | if err != nil { |
| 4511 | return nil, err |
| 4512 | } |
| 4513 | return out, nil |
| 4514 | } |
| 4515 | |
| 4516 | func (c *authClient) UserDelete(ctx context.Context, in *AuthUserDeleteRequest, opts ...grpc.CallOption) (*AuthUserDeleteResponse, error) { |
| 4517 | out := new(AuthUserDeleteResponse) |
| 4518 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/UserDelete", in, out, c.cc, opts...) |
| 4519 | if err != nil { |
| 4520 | return nil, err |
| 4521 | } |
| 4522 | return out, nil |
| 4523 | } |
| 4524 | |
| 4525 | func (c *authClient) UserChangePassword(ctx context.Context, in *AuthUserChangePasswordRequest, opts ...grpc.CallOption) (*AuthUserChangePasswordResponse, error) { |
| 4526 | out := new(AuthUserChangePasswordResponse) |
| 4527 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/UserChangePassword", in, out, c.cc, opts...) |
| 4528 | if err != nil { |
| 4529 | return nil, err |
| 4530 | } |
| 4531 | return out, nil |
| 4532 | } |
| 4533 | |
| 4534 | func (c *authClient) UserGrantRole(ctx context.Context, in *AuthUserGrantRoleRequest, opts ...grpc.CallOption) (*AuthUserGrantRoleResponse, error) { |
| 4535 | out := new(AuthUserGrantRoleResponse) |
| 4536 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/UserGrantRole", in, out, c.cc, opts...) |
| 4537 | if err != nil { |
| 4538 | return nil, err |
| 4539 | } |
| 4540 | return out, nil |
| 4541 | } |
| 4542 | |
| 4543 | func (c *authClient) UserRevokeRole(ctx context.Context, in *AuthUserRevokeRoleRequest, opts ...grpc.CallOption) (*AuthUserRevokeRoleResponse, error) { |
| 4544 | out := new(AuthUserRevokeRoleResponse) |
| 4545 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/UserRevokeRole", in, out, c.cc, opts...) |
| 4546 | if err != nil { |
| 4547 | return nil, err |
| 4548 | } |
| 4549 | return out, nil |
| 4550 | } |
| 4551 | |
| 4552 | func (c *authClient) RoleAdd(ctx context.Context, in *AuthRoleAddRequest, opts ...grpc.CallOption) (*AuthRoleAddResponse, error) { |
| 4553 | out := new(AuthRoleAddResponse) |
| 4554 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/RoleAdd", in, out, c.cc, opts...) |
| 4555 | if err != nil { |
| 4556 | return nil, err |
| 4557 | } |
| 4558 | return out, nil |
| 4559 | } |
| 4560 | |
| 4561 | func (c *authClient) RoleGet(ctx context.Context, in *AuthRoleGetRequest, opts ...grpc.CallOption) (*AuthRoleGetResponse, error) { |
| 4562 | out := new(AuthRoleGetResponse) |
| 4563 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/RoleGet", in, out, c.cc, opts...) |
| 4564 | if err != nil { |
| 4565 | return nil, err |
| 4566 | } |
| 4567 | return out, nil |
| 4568 | } |
| 4569 | |
| 4570 | func (c *authClient) RoleList(ctx context.Context, in *AuthRoleListRequest, opts ...grpc.CallOption) (*AuthRoleListResponse, error) { |
| 4571 | out := new(AuthRoleListResponse) |
| 4572 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/RoleList", in, out, c.cc, opts...) |
| 4573 | if err != nil { |
| 4574 | return nil, err |
| 4575 | } |
| 4576 | return out, nil |
| 4577 | } |
| 4578 | |
| 4579 | func (c *authClient) RoleDelete(ctx context.Context, in *AuthRoleDeleteRequest, opts ...grpc.CallOption) (*AuthRoleDeleteResponse, error) { |
| 4580 | out := new(AuthRoleDeleteResponse) |
| 4581 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/RoleDelete", in, out, c.cc, opts...) |
| 4582 | if err != nil { |
| 4583 | return nil, err |
| 4584 | } |
| 4585 | return out, nil |
| 4586 | } |
| 4587 | |
| 4588 | func (c *authClient) RoleGrantPermission(ctx context.Context, in *AuthRoleGrantPermissionRequest, opts ...grpc.CallOption) (*AuthRoleGrantPermissionResponse, error) { |
| 4589 | out := new(AuthRoleGrantPermissionResponse) |
| 4590 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/RoleGrantPermission", in, out, c.cc, opts...) |
| 4591 | if err != nil { |
| 4592 | return nil, err |
| 4593 | } |
| 4594 | return out, nil |
| 4595 | } |
| 4596 | |
| 4597 | func (c *authClient) RoleRevokePermission(ctx context.Context, in *AuthRoleRevokePermissionRequest, opts ...grpc.CallOption) (*AuthRoleRevokePermissionResponse, error) { |
| 4598 | out := new(AuthRoleRevokePermissionResponse) |
| 4599 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/RoleRevokePermission", in, out, c.cc, opts...) |
| 4600 | if err != nil { |
| 4601 | return nil, err |
| 4602 | } |
| 4603 | return out, nil |
| 4604 | } |
| 4605 | |
| 4606 | // Server API for Auth service |
| 4607 | |
| 4608 | type AuthServer interface { |
| 4609 | // AuthEnable enables authentication. |
| 4610 | AuthEnable(context.Context, *AuthEnableRequest) (*AuthEnableResponse, error) |
| 4611 | // AuthDisable disables authentication. |
| 4612 | AuthDisable(context.Context, *AuthDisableRequest) (*AuthDisableResponse, error) |
| 4613 | // Authenticate processes an authenticate request. |
| 4614 | Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) |
| 4615 | // UserAdd adds a new user. |
| 4616 | UserAdd(context.Context, *AuthUserAddRequest) (*AuthUserAddResponse, error) |
| 4617 | // UserGet gets detailed user information. |
| 4618 | UserGet(context.Context, *AuthUserGetRequest) (*AuthUserGetResponse, error) |
| 4619 | // UserList gets a list of all users. |
| 4620 | UserList(context.Context, *AuthUserListRequest) (*AuthUserListResponse, error) |
| 4621 | // UserDelete deletes a specified user. |
| 4622 | UserDelete(context.Context, *AuthUserDeleteRequest) (*AuthUserDeleteResponse, error) |
| 4623 | // UserChangePassword changes the password of a specified user. |
| 4624 | UserChangePassword(context.Context, *AuthUserChangePasswordRequest) (*AuthUserChangePasswordResponse, error) |
| 4625 | // UserGrant grants a role to a specified user. |
| 4626 | UserGrantRole(context.Context, *AuthUserGrantRoleRequest) (*AuthUserGrantRoleResponse, error) |
| 4627 | // UserRevokeRole revokes a role of specified user. |
| 4628 | UserRevokeRole(context.Context, *AuthUserRevokeRoleRequest) (*AuthUserRevokeRoleResponse, error) |
| 4629 | // RoleAdd adds a new role. |
| 4630 | RoleAdd(context.Context, *AuthRoleAddRequest) (*AuthRoleAddResponse, error) |
| 4631 | // RoleGet gets detailed role information. |
| 4632 | RoleGet(context.Context, *AuthRoleGetRequest) (*AuthRoleGetResponse, error) |
| 4633 | // RoleList gets lists of all roles. |
| 4634 | RoleList(context.Context, *AuthRoleListRequest) (*AuthRoleListResponse, error) |
| 4635 | // RoleDelete deletes a specified role. |
| 4636 | RoleDelete(context.Context, *AuthRoleDeleteRequest) (*AuthRoleDeleteResponse, error) |
| 4637 | // RoleGrantPermission grants a permission of a specified key or range to a specified role. |
| 4638 | RoleGrantPermission(context.Context, *AuthRoleGrantPermissionRequest) (*AuthRoleGrantPermissionResponse, error) |
| 4639 | // RoleRevokePermission revokes a key or range permission of a specified role. |
| 4640 | RoleRevokePermission(context.Context, *AuthRoleRevokePermissionRequest) (*AuthRoleRevokePermissionResponse, error) |
| 4641 | } |
| 4642 | |
| 4643 | func RegisterAuthServer(s *grpc.Server, srv AuthServer) { |
| 4644 | s.RegisterService(&_Auth_serviceDesc, srv) |
| 4645 | } |
| 4646 | |
| 4647 | func _Auth_AuthEnable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4648 | in := new(AuthEnableRequest) |
| 4649 | if err := dec(in); err != nil { |
| 4650 | return nil, err |
| 4651 | } |
| 4652 | if interceptor == nil { |
| 4653 | return srv.(AuthServer).AuthEnable(ctx, in) |
| 4654 | } |
| 4655 | info := &grpc.UnaryServerInfo{ |
| 4656 | Server: srv, |
| 4657 | FullMethod: "/etcdserverpb.Auth/AuthEnable", |
| 4658 | } |
| 4659 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4660 | return srv.(AuthServer).AuthEnable(ctx, req.(*AuthEnableRequest)) |
| 4661 | } |
| 4662 | return interceptor(ctx, in, info, handler) |
| 4663 | } |
| 4664 | |
| 4665 | func _Auth_AuthDisable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4666 | in := new(AuthDisableRequest) |
| 4667 | if err := dec(in); err != nil { |
| 4668 | return nil, err |
| 4669 | } |
| 4670 | if interceptor == nil { |
| 4671 | return srv.(AuthServer).AuthDisable(ctx, in) |
| 4672 | } |
| 4673 | info := &grpc.UnaryServerInfo{ |
| 4674 | Server: srv, |
| 4675 | FullMethod: "/etcdserverpb.Auth/AuthDisable", |
| 4676 | } |
| 4677 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4678 | return srv.(AuthServer).AuthDisable(ctx, req.(*AuthDisableRequest)) |
| 4679 | } |
| 4680 | return interceptor(ctx, in, info, handler) |
| 4681 | } |
| 4682 | |
| 4683 | func _Auth_Authenticate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4684 | in := new(AuthenticateRequest) |
| 4685 | if err := dec(in); err != nil { |
| 4686 | return nil, err |
| 4687 | } |
| 4688 | if interceptor == nil { |
| 4689 | return srv.(AuthServer).Authenticate(ctx, in) |
| 4690 | } |
| 4691 | info := &grpc.UnaryServerInfo{ |
| 4692 | Server: srv, |
| 4693 | FullMethod: "/etcdserverpb.Auth/Authenticate", |
| 4694 | } |
| 4695 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4696 | return srv.(AuthServer).Authenticate(ctx, req.(*AuthenticateRequest)) |
| 4697 | } |
| 4698 | return interceptor(ctx, in, info, handler) |
| 4699 | } |
| 4700 | |
| 4701 | func _Auth_UserAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4702 | in := new(AuthUserAddRequest) |
| 4703 | if err := dec(in); err != nil { |
| 4704 | return nil, err |
| 4705 | } |
| 4706 | if interceptor == nil { |
| 4707 | return srv.(AuthServer).UserAdd(ctx, in) |
| 4708 | } |
| 4709 | info := &grpc.UnaryServerInfo{ |
| 4710 | Server: srv, |
| 4711 | FullMethod: "/etcdserverpb.Auth/UserAdd", |
| 4712 | } |
| 4713 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4714 | return srv.(AuthServer).UserAdd(ctx, req.(*AuthUserAddRequest)) |
| 4715 | } |
| 4716 | return interceptor(ctx, in, info, handler) |
| 4717 | } |
| 4718 | |
| 4719 | func _Auth_UserGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4720 | in := new(AuthUserGetRequest) |
| 4721 | if err := dec(in); err != nil { |
| 4722 | return nil, err |
| 4723 | } |
| 4724 | if interceptor == nil { |
| 4725 | return srv.(AuthServer).UserGet(ctx, in) |
| 4726 | } |
| 4727 | info := &grpc.UnaryServerInfo{ |
| 4728 | Server: srv, |
| 4729 | FullMethod: "/etcdserverpb.Auth/UserGet", |
| 4730 | } |
| 4731 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4732 | return srv.(AuthServer).UserGet(ctx, req.(*AuthUserGetRequest)) |
| 4733 | } |
| 4734 | return interceptor(ctx, in, info, handler) |
| 4735 | } |
| 4736 | |
| 4737 | func _Auth_UserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4738 | in := new(AuthUserListRequest) |
| 4739 | if err := dec(in); err != nil { |
| 4740 | return nil, err |
| 4741 | } |
| 4742 | if interceptor == nil { |
| 4743 | return srv.(AuthServer).UserList(ctx, in) |
| 4744 | } |
| 4745 | info := &grpc.UnaryServerInfo{ |
| 4746 | Server: srv, |
| 4747 | FullMethod: "/etcdserverpb.Auth/UserList", |
| 4748 | } |
| 4749 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4750 | return srv.(AuthServer).UserList(ctx, req.(*AuthUserListRequest)) |
| 4751 | } |
| 4752 | return interceptor(ctx, in, info, handler) |
| 4753 | } |
| 4754 | |
| 4755 | func _Auth_UserDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4756 | in := new(AuthUserDeleteRequest) |
| 4757 | if err := dec(in); err != nil { |
| 4758 | return nil, err |
| 4759 | } |
| 4760 | if interceptor == nil { |
| 4761 | return srv.(AuthServer).UserDelete(ctx, in) |
| 4762 | } |
| 4763 | info := &grpc.UnaryServerInfo{ |
| 4764 | Server: srv, |
| 4765 | FullMethod: "/etcdserverpb.Auth/UserDelete", |
| 4766 | } |
| 4767 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4768 | return srv.(AuthServer).UserDelete(ctx, req.(*AuthUserDeleteRequest)) |
| 4769 | } |
| 4770 | return interceptor(ctx, in, info, handler) |
| 4771 | } |
| 4772 | |
| 4773 | func _Auth_UserChangePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4774 | in := new(AuthUserChangePasswordRequest) |
| 4775 | if err := dec(in); err != nil { |
| 4776 | return nil, err |
| 4777 | } |
| 4778 | if interceptor == nil { |
| 4779 | return srv.(AuthServer).UserChangePassword(ctx, in) |
| 4780 | } |
| 4781 | info := &grpc.UnaryServerInfo{ |
| 4782 | Server: srv, |
| 4783 | FullMethod: "/etcdserverpb.Auth/UserChangePassword", |
| 4784 | } |
| 4785 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4786 | return srv.(AuthServer).UserChangePassword(ctx, req.(*AuthUserChangePasswordRequest)) |
| 4787 | } |
| 4788 | return interceptor(ctx, in, info, handler) |
| 4789 | } |
| 4790 | |
| 4791 | func _Auth_UserGrantRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4792 | in := new(AuthUserGrantRoleRequest) |
| 4793 | if err := dec(in); err != nil { |
| 4794 | return nil, err |
| 4795 | } |
| 4796 | if interceptor == nil { |
| 4797 | return srv.(AuthServer).UserGrantRole(ctx, in) |
| 4798 | } |
| 4799 | info := &grpc.UnaryServerInfo{ |
| 4800 | Server: srv, |
| 4801 | FullMethod: "/etcdserverpb.Auth/UserGrantRole", |
| 4802 | } |
| 4803 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4804 | return srv.(AuthServer).UserGrantRole(ctx, req.(*AuthUserGrantRoleRequest)) |
| 4805 | } |
| 4806 | return interceptor(ctx, in, info, handler) |
| 4807 | } |
| 4808 | |
| 4809 | func _Auth_UserRevokeRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4810 | in := new(AuthUserRevokeRoleRequest) |
| 4811 | if err := dec(in); err != nil { |
| 4812 | return nil, err |
| 4813 | } |
| 4814 | if interceptor == nil { |
| 4815 | return srv.(AuthServer).UserRevokeRole(ctx, in) |
| 4816 | } |
| 4817 | info := &grpc.UnaryServerInfo{ |
| 4818 | Server: srv, |
| 4819 | FullMethod: "/etcdserverpb.Auth/UserRevokeRole", |
| 4820 | } |
| 4821 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4822 | return srv.(AuthServer).UserRevokeRole(ctx, req.(*AuthUserRevokeRoleRequest)) |
| 4823 | } |
| 4824 | return interceptor(ctx, in, info, handler) |
| 4825 | } |
| 4826 | |
| 4827 | func _Auth_RoleAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4828 | in := new(AuthRoleAddRequest) |
| 4829 | if err := dec(in); err != nil { |
| 4830 | return nil, err |
| 4831 | } |
| 4832 | if interceptor == nil { |
| 4833 | return srv.(AuthServer).RoleAdd(ctx, in) |
| 4834 | } |
| 4835 | info := &grpc.UnaryServerInfo{ |
| 4836 | Server: srv, |
| 4837 | FullMethod: "/etcdserverpb.Auth/RoleAdd", |
| 4838 | } |
| 4839 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4840 | return srv.(AuthServer).RoleAdd(ctx, req.(*AuthRoleAddRequest)) |
| 4841 | } |
| 4842 | return interceptor(ctx, in, info, handler) |
| 4843 | } |
| 4844 | |
| 4845 | func _Auth_RoleGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4846 | in := new(AuthRoleGetRequest) |
| 4847 | if err := dec(in); err != nil { |
| 4848 | return nil, err |
| 4849 | } |
| 4850 | if interceptor == nil { |
| 4851 | return srv.(AuthServer).RoleGet(ctx, in) |
| 4852 | } |
| 4853 | info := &grpc.UnaryServerInfo{ |
| 4854 | Server: srv, |
| 4855 | FullMethod: "/etcdserverpb.Auth/RoleGet", |
| 4856 | } |
| 4857 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4858 | return srv.(AuthServer).RoleGet(ctx, req.(*AuthRoleGetRequest)) |
| 4859 | } |
| 4860 | return interceptor(ctx, in, info, handler) |
| 4861 | } |
| 4862 | |
| 4863 | func _Auth_RoleList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4864 | in := new(AuthRoleListRequest) |
| 4865 | if err := dec(in); err != nil { |
| 4866 | return nil, err |
| 4867 | } |
| 4868 | if interceptor == nil { |
| 4869 | return srv.(AuthServer).RoleList(ctx, in) |
| 4870 | } |
| 4871 | info := &grpc.UnaryServerInfo{ |
| 4872 | Server: srv, |
| 4873 | FullMethod: "/etcdserverpb.Auth/RoleList", |
| 4874 | } |
| 4875 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4876 | return srv.(AuthServer).RoleList(ctx, req.(*AuthRoleListRequest)) |
| 4877 | } |
| 4878 | return interceptor(ctx, in, info, handler) |
| 4879 | } |
| 4880 | |
| 4881 | func _Auth_RoleDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4882 | in := new(AuthRoleDeleteRequest) |
| 4883 | if err := dec(in); err != nil { |
| 4884 | return nil, err |
| 4885 | } |
| 4886 | if interceptor == nil { |
| 4887 | return srv.(AuthServer).RoleDelete(ctx, in) |
| 4888 | } |
| 4889 | info := &grpc.UnaryServerInfo{ |
| 4890 | Server: srv, |
| 4891 | FullMethod: "/etcdserverpb.Auth/RoleDelete", |
| 4892 | } |
| 4893 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4894 | return srv.(AuthServer).RoleDelete(ctx, req.(*AuthRoleDeleteRequest)) |
| 4895 | } |
| 4896 | return interceptor(ctx, in, info, handler) |
| 4897 | } |
| 4898 | |
| 4899 | func _Auth_RoleGrantPermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4900 | in := new(AuthRoleGrantPermissionRequest) |
| 4901 | if err := dec(in); err != nil { |
| 4902 | return nil, err |
| 4903 | } |
| 4904 | if interceptor == nil { |
| 4905 | return srv.(AuthServer).RoleGrantPermission(ctx, in) |
| 4906 | } |
| 4907 | info := &grpc.UnaryServerInfo{ |
| 4908 | Server: srv, |
| 4909 | FullMethod: "/etcdserverpb.Auth/RoleGrantPermission", |
| 4910 | } |
| 4911 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4912 | return srv.(AuthServer).RoleGrantPermission(ctx, req.(*AuthRoleGrantPermissionRequest)) |
| 4913 | } |
| 4914 | return interceptor(ctx, in, info, handler) |
| 4915 | } |
| 4916 | |
| 4917 | func _Auth_RoleRevokePermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4918 | in := new(AuthRoleRevokePermissionRequest) |
| 4919 | if err := dec(in); err != nil { |
| 4920 | return nil, err |
| 4921 | } |
| 4922 | if interceptor == nil { |
| 4923 | return srv.(AuthServer).RoleRevokePermission(ctx, in) |
| 4924 | } |
| 4925 | info := &grpc.UnaryServerInfo{ |
| 4926 | Server: srv, |
| 4927 | FullMethod: "/etcdserverpb.Auth/RoleRevokePermission", |
| 4928 | } |
| 4929 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4930 | return srv.(AuthServer).RoleRevokePermission(ctx, req.(*AuthRoleRevokePermissionRequest)) |
| 4931 | } |
| 4932 | return interceptor(ctx, in, info, handler) |
| 4933 | } |
| 4934 | |
| 4935 | var _Auth_serviceDesc = grpc.ServiceDesc{ |
| 4936 | ServiceName: "etcdserverpb.Auth", |
| 4937 | HandlerType: (*AuthServer)(nil), |
| 4938 | Methods: []grpc.MethodDesc{ |
| 4939 | { |
| 4940 | MethodName: "AuthEnable", |
| 4941 | Handler: _Auth_AuthEnable_Handler, |
| 4942 | }, |
| 4943 | { |
| 4944 | MethodName: "AuthDisable", |
| 4945 | Handler: _Auth_AuthDisable_Handler, |
| 4946 | }, |
| 4947 | { |
| 4948 | MethodName: "Authenticate", |
| 4949 | Handler: _Auth_Authenticate_Handler, |
| 4950 | }, |
| 4951 | { |
| 4952 | MethodName: "UserAdd", |
| 4953 | Handler: _Auth_UserAdd_Handler, |
| 4954 | }, |
| 4955 | { |
| 4956 | MethodName: "UserGet", |
| 4957 | Handler: _Auth_UserGet_Handler, |
| 4958 | }, |
| 4959 | { |
| 4960 | MethodName: "UserList", |
| 4961 | Handler: _Auth_UserList_Handler, |
| 4962 | }, |
| 4963 | { |
| 4964 | MethodName: "UserDelete", |
| 4965 | Handler: _Auth_UserDelete_Handler, |
| 4966 | }, |
| 4967 | { |
| 4968 | MethodName: "UserChangePassword", |
| 4969 | Handler: _Auth_UserChangePassword_Handler, |
| 4970 | }, |
| 4971 | { |
| 4972 | MethodName: "UserGrantRole", |
| 4973 | Handler: _Auth_UserGrantRole_Handler, |
| 4974 | }, |
| 4975 | { |
| 4976 | MethodName: "UserRevokeRole", |
| 4977 | Handler: _Auth_UserRevokeRole_Handler, |
| 4978 | }, |
| 4979 | { |
| 4980 | MethodName: "RoleAdd", |
| 4981 | Handler: _Auth_RoleAdd_Handler, |
| 4982 | }, |
| 4983 | { |
| 4984 | MethodName: "RoleGet", |
| 4985 | Handler: _Auth_RoleGet_Handler, |
| 4986 | }, |
| 4987 | { |
| 4988 | MethodName: "RoleList", |
| 4989 | Handler: _Auth_RoleList_Handler, |
| 4990 | }, |
| 4991 | { |
| 4992 | MethodName: "RoleDelete", |
| 4993 | Handler: _Auth_RoleDelete_Handler, |
| 4994 | }, |
| 4995 | { |
| 4996 | MethodName: "RoleGrantPermission", |
| 4997 | Handler: _Auth_RoleGrantPermission_Handler, |
| 4998 | }, |
| 4999 | { |
| 5000 | MethodName: "RoleRevokePermission", |
| 5001 | Handler: _Auth_RoleRevokePermission_Handler, |
| 5002 | }, |
| 5003 | }, |
| 5004 | Streams: []grpc.StreamDesc{}, |
| 5005 | Metadata: "rpc.proto", |
| 5006 | } |
| 5007 | |
| 5008 | func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { |
| 5009 | size := m.Size() |
| 5010 | dAtA = make([]byte, size) |
| 5011 | n, err := m.MarshalTo(dAtA) |
| 5012 | if err != nil { |
| 5013 | return nil, err |
| 5014 | } |
| 5015 | return dAtA[:n], nil |
| 5016 | } |
| 5017 | |
| 5018 | func (m *ResponseHeader) MarshalTo(dAtA []byte) (int, error) { |
| 5019 | var i int |
| 5020 | _ = i |
| 5021 | var l int |
| 5022 | _ = l |
| 5023 | if m.ClusterId != 0 { |
| 5024 | dAtA[i] = 0x8 |
| 5025 | i++ |
| 5026 | i = encodeVarintRpc(dAtA, i, uint64(m.ClusterId)) |
| 5027 | } |
| 5028 | if m.MemberId != 0 { |
| 5029 | dAtA[i] = 0x10 |
| 5030 | i++ |
| 5031 | i = encodeVarintRpc(dAtA, i, uint64(m.MemberId)) |
| 5032 | } |
| 5033 | if m.Revision != 0 { |
| 5034 | dAtA[i] = 0x18 |
| 5035 | i++ |
| 5036 | i = encodeVarintRpc(dAtA, i, uint64(m.Revision)) |
| 5037 | } |
| 5038 | if m.RaftTerm != 0 { |
| 5039 | dAtA[i] = 0x20 |
| 5040 | i++ |
| 5041 | i = encodeVarintRpc(dAtA, i, uint64(m.RaftTerm)) |
| 5042 | } |
| 5043 | return i, nil |
| 5044 | } |
| 5045 | |
| 5046 | func (m *RangeRequest) Marshal() (dAtA []byte, err error) { |
| 5047 | size := m.Size() |
| 5048 | dAtA = make([]byte, size) |
| 5049 | n, err := m.MarshalTo(dAtA) |
| 5050 | if err != nil { |
| 5051 | return nil, err |
| 5052 | } |
| 5053 | return dAtA[:n], nil |
| 5054 | } |
| 5055 | |
| 5056 | func (m *RangeRequest) MarshalTo(dAtA []byte) (int, error) { |
| 5057 | var i int |
| 5058 | _ = i |
| 5059 | var l int |
| 5060 | _ = l |
| 5061 | if len(m.Key) > 0 { |
| 5062 | dAtA[i] = 0xa |
| 5063 | i++ |
| 5064 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Key))) |
| 5065 | i += copy(dAtA[i:], m.Key) |
| 5066 | } |
| 5067 | if len(m.RangeEnd) > 0 { |
| 5068 | dAtA[i] = 0x12 |
| 5069 | i++ |
| 5070 | i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd))) |
| 5071 | i += copy(dAtA[i:], m.RangeEnd) |
| 5072 | } |
| 5073 | if m.Limit != 0 { |
| 5074 | dAtA[i] = 0x18 |
| 5075 | i++ |
| 5076 | i = encodeVarintRpc(dAtA, i, uint64(m.Limit)) |
| 5077 | } |
| 5078 | if m.Revision != 0 { |
| 5079 | dAtA[i] = 0x20 |
| 5080 | i++ |
| 5081 | i = encodeVarintRpc(dAtA, i, uint64(m.Revision)) |
| 5082 | } |
| 5083 | if m.SortOrder != 0 { |
| 5084 | dAtA[i] = 0x28 |
| 5085 | i++ |
| 5086 | i = encodeVarintRpc(dAtA, i, uint64(m.SortOrder)) |
| 5087 | } |
| 5088 | if m.SortTarget != 0 { |
| 5089 | dAtA[i] = 0x30 |
| 5090 | i++ |
| 5091 | i = encodeVarintRpc(dAtA, i, uint64(m.SortTarget)) |
| 5092 | } |
| 5093 | if m.Serializable { |
| 5094 | dAtA[i] = 0x38 |
| 5095 | i++ |
| 5096 | if m.Serializable { |
| 5097 | dAtA[i] = 1 |
| 5098 | } else { |
| 5099 | dAtA[i] = 0 |
| 5100 | } |
| 5101 | i++ |
| 5102 | } |
| 5103 | if m.KeysOnly { |
| 5104 | dAtA[i] = 0x40 |
| 5105 | i++ |
| 5106 | if m.KeysOnly { |
| 5107 | dAtA[i] = 1 |
| 5108 | } else { |
| 5109 | dAtA[i] = 0 |
| 5110 | } |
| 5111 | i++ |
| 5112 | } |
| 5113 | if m.CountOnly { |
| 5114 | dAtA[i] = 0x48 |
| 5115 | i++ |
| 5116 | if m.CountOnly { |
| 5117 | dAtA[i] = 1 |
| 5118 | } else { |
| 5119 | dAtA[i] = 0 |
| 5120 | } |
| 5121 | i++ |
| 5122 | } |
| 5123 | if m.MinModRevision != 0 { |
| 5124 | dAtA[i] = 0x50 |
| 5125 | i++ |
| 5126 | i = encodeVarintRpc(dAtA, i, uint64(m.MinModRevision)) |
| 5127 | } |
| 5128 | if m.MaxModRevision != 0 { |
| 5129 | dAtA[i] = 0x58 |
| 5130 | i++ |
| 5131 | i = encodeVarintRpc(dAtA, i, uint64(m.MaxModRevision)) |
| 5132 | } |
| 5133 | if m.MinCreateRevision != 0 { |
| 5134 | dAtA[i] = 0x60 |
| 5135 | i++ |
| 5136 | i = encodeVarintRpc(dAtA, i, uint64(m.MinCreateRevision)) |
| 5137 | } |
| 5138 | if m.MaxCreateRevision != 0 { |
| 5139 | dAtA[i] = 0x68 |
| 5140 | i++ |
| 5141 | i = encodeVarintRpc(dAtA, i, uint64(m.MaxCreateRevision)) |
| 5142 | } |
| 5143 | return i, nil |
| 5144 | } |
| 5145 | |
| 5146 | func (m *RangeResponse) Marshal() (dAtA []byte, err error) { |
| 5147 | size := m.Size() |
| 5148 | dAtA = make([]byte, size) |
| 5149 | n, err := m.MarshalTo(dAtA) |
| 5150 | if err != nil { |
| 5151 | return nil, err |
| 5152 | } |
| 5153 | return dAtA[:n], nil |
| 5154 | } |
| 5155 | |
| 5156 | func (m *RangeResponse) MarshalTo(dAtA []byte) (int, error) { |
| 5157 | var i int |
| 5158 | _ = i |
| 5159 | var l int |
| 5160 | _ = l |
| 5161 | if m.Header != nil { |
| 5162 | dAtA[i] = 0xa |
| 5163 | i++ |
| 5164 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 5165 | n1, err := m.Header.MarshalTo(dAtA[i:]) |
| 5166 | if err != nil { |
| 5167 | return 0, err |
| 5168 | } |
| 5169 | i += n1 |
| 5170 | } |
| 5171 | if len(m.Kvs) > 0 { |
| 5172 | for _, msg := range m.Kvs { |
| 5173 | dAtA[i] = 0x12 |
| 5174 | i++ |
| 5175 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 5176 | n, err := msg.MarshalTo(dAtA[i:]) |
| 5177 | if err != nil { |
| 5178 | return 0, err |
| 5179 | } |
| 5180 | i += n |
| 5181 | } |
| 5182 | } |
| 5183 | if m.More { |
| 5184 | dAtA[i] = 0x18 |
| 5185 | i++ |
| 5186 | if m.More { |
| 5187 | dAtA[i] = 1 |
| 5188 | } else { |
| 5189 | dAtA[i] = 0 |
| 5190 | } |
| 5191 | i++ |
| 5192 | } |
| 5193 | if m.Count != 0 { |
| 5194 | dAtA[i] = 0x20 |
| 5195 | i++ |
| 5196 | i = encodeVarintRpc(dAtA, i, uint64(m.Count)) |
| 5197 | } |
| 5198 | return i, nil |
| 5199 | } |
| 5200 | |
| 5201 | func (m *PutRequest) Marshal() (dAtA []byte, err error) { |
| 5202 | size := m.Size() |
| 5203 | dAtA = make([]byte, size) |
| 5204 | n, err := m.MarshalTo(dAtA) |
| 5205 | if err != nil { |
| 5206 | return nil, err |
| 5207 | } |
| 5208 | return dAtA[:n], nil |
| 5209 | } |
| 5210 | |
| 5211 | func (m *PutRequest) MarshalTo(dAtA []byte) (int, error) { |
| 5212 | var i int |
| 5213 | _ = i |
| 5214 | var l int |
| 5215 | _ = l |
| 5216 | if len(m.Key) > 0 { |
| 5217 | dAtA[i] = 0xa |
| 5218 | i++ |
| 5219 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Key))) |
| 5220 | i += copy(dAtA[i:], m.Key) |
| 5221 | } |
| 5222 | if len(m.Value) > 0 { |
| 5223 | dAtA[i] = 0x12 |
| 5224 | i++ |
| 5225 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Value))) |
| 5226 | i += copy(dAtA[i:], m.Value) |
| 5227 | } |
| 5228 | if m.Lease != 0 { |
| 5229 | dAtA[i] = 0x18 |
| 5230 | i++ |
| 5231 | i = encodeVarintRpc(dAtA, i, uint64(m.Lease)) |
| 5232 | } |
| 5233 | if m.PrevKv { |
| 5234 | dAtA[i] = 0x20 |
| 5235 | i++ |
| 5236 | if m.PrevKv { |
| 5237 | dAtA[i] = 1 |
| 5238 | } else { |
| 5239 | dAtA[i] = 0 |
| 5240 | } |
| 5241 | i++ |
| 5242 | } |
| 5243 | if m.IgnoreValue { |
| 5244 | dAtA[i] = 0x28 |
| 5245 | i++ |
| 5246 | if m.IgnoreValue { |
| 5247 | dAtA[i] = 1 |
| 5248 | } else { |
| 5249 | dAtA[i] = 0 |
| 5250 | } |
| 5251 | i++ |
| 5252 | } |
| 5253 | if m.IgnoreLease { |
| 5254 | dAtA[i] = 0x30 |
| 5255 | i++ |
| 5256 | if m.IgnoreLease { |
| 5257 | dAtA[i] = 1 |
| 5258 | } else { |
| 5259 | dAtA[i] = 0 |
| 5260 | } |
| 5261 | i++ |
| 5262 | } |
| 5263 | return i, nil |
| 5264 | } |
| 5265 | |
| 5266 | func (m *PutResponse) Marshal() (dAtA []byte, err error) { |
| 5267 | size := m.Size() |
| 5268 | dAtA = make([]byte, size) |
| 5269 | n, err := m.MarshalTo(dAtA) |
| 5270 | if err != nil { |
| 5271 | return nil, err |
| 5272 | } |
| 5273 | return dAtA[:n], nil |
| 5274 | } |
| 5275 | |
| 5276 | func (m *PutResponse) MarshalTo(dAtA []byte) (int, error) { |
| 5277 | var i int |
| 5278 | _ = i |
| 5279 | var l int |
| 5280 | _ = l |
| 5281 | if m.Header != nil { |
| 5282 | dAtA[i] = 0xa |
| 5283 | i++ |
| 5284 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 5285 | n2, err := m.Header.MarshalTo(dAtA[i:]) |
| 5286 | if err != nil { |
| 5287 | return 0, err |
| 5288 | } |
| 5289 | i += n2 |
| 5290 | } |
| 5291 | if m.PrevKv != nil { |
| 5292 | dAtA[i] = 0x12 |
| 5293 | i++ |
| 5294 | i = encodeVarintRpc(dAtA, i, uint64(m.PrevKv.Size())) |
| 5295 | n3, err := m.PrevKv.MarshalTo(dAtA[i:]) |
| 5296 | if err != nil { |
| 5297 | return 0, err |
| 5298 | } |
| 5299 | i += n3 |
| 5300 | } |
| 5301 | return i, nil |
| 5302 | } |
| 5303 | |
| 5304 | func (m *DeleteRangeRequest) Marshal() (dAtA []byte, err error) { |
| 5305 | size := m.Size() |
| 5306 | dAtA = make([]byte, size) |
| 5307 | n, err := m.MarshalTo(dAtA) |
| 5308 | if err != nil { |
| 5309 | return nil, err |
| 5310 | } |
| 5311 | return dAtA[:n], nil |
| 5312 | } |
| 5313 | |
| 5314 | func (m *DeleteRangeRequest) MarshalTo(dAtA []byte) (int, error) { |
| 5315 | var i int |
| 5316 | _ = i |
| 5317 | var l int |
| 5318 | _ = l |
| 5319 | if len(m.Key) > 0 { |
| 5320 | dAtA[i] = 0xa |
| 5321 | i++ |
| 5322 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Key))) |
| 5323 | i += copy(dAtA[i:], m.Key) |
| 5324 | } |
| 5325 | if len(m.RangeEnd) > 0 { |
| 5326 | dAtA[i] = 0x12 |
| 5327 | i++ |
| 5328 | i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd))) |
| 5329 | i += copy(dAtA[i:], m.RangeEnd) |
| 5330 | } |
| 5331 | if m.PrevKv { |
| 5332 | dAtA[i] = 0x18 |
| 5333 | i++ |
| 5334 | if m.PrevKv { |
| 5335 | dAtA[i] = 1 |
| 5336 | } else { |
| 5337 | dAtA[i] = 0 |
| 5338 | } |
| 5339 | i++ |
| 5340 | } |
| 5341 | return i, nil |
| 5342 | } |
| 5343 | |
| 5344 | func (m *DeleteRangeResponse) Marshal() (dAtA []byte, err error) { |
| 5345 | size := m.Size() |
| 5346 | dAtA = make([]byte, size) |
| 5347 | n, err := m.MarshalTo(dAtA) |
| 5348 | if err != nil { |
| 5349 | return nil, err |
| 5350 | } |
| 5351 | return dAtA[:n], nil |
| 5352 | } |
| 5353 | |
| 5354 | func (m *DeleteRangeResponse) MarshalTo(dAtA []byte) (int, error) { |
| 5355 | var i int |
| 5356 | _ = i |
| 5357 | var l int |
| 5358 | _ = l |
| 5359 | if m.Header != nil { |
| 5360 | dAtA[i] = 0xa |
| 5361 | i++ |
| 5362 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 5363 | n4, err := m.Header.MarshalTo(dAtA[i:]) |
| 5364 | if err != nil { |
| 5365 | return 0, err |
| 5366 | } |
| 5367 | i += n4 |
| 5368 | } |
| 5369 | if m.Deleted != 0 { |
| 5370 | dAtA[i] = 0x10 |
| 5371 | i++ |
| 5372 | i = encodeVarintRpc(dAtA, i, uint64(m.Deleted)) |
| 5373 | } |
| 5374 | if len(m.PrevKvs) > 0 { |
| 5375 | for _, msg := range m.PrevKvs { |
| 5376 | dAtA[i] = 0x1a |
| 5377 | i++ |
| 5378 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 5379 | n, err := msg.MarshalTo(dAtA[i:]) |
| 5380 | if err != nil { |
| 5381 | return 0, err |
| 5382 | } |
| 5383 | i += n |
| 5384 | } |
| 5385 | } |
| 5386 | return i, nil |
| 5387 | } |
| 5388 | |
| 5389 | func (m *RequestOp) Marshal() (dAtA []byte, err error) { |
| 5390 | size := m.Size() |
| 5391 | dAtA = make([]byte, size) |
| 5392 | n, err := m.MarshalTo(dAtA) |
| 5393 | if err != nil { |
| 5394 | return nil, err |
| 5395 | } |
| 5396 | return dAtA[:n], nil |
| 5397 | } |
| 5398 | |
| 5399 | func (m *RequestOp) MarshalTo(dAtA []byte) (int, error) { |
| 5400 | var i int |
| 5401 | _ = i |
| 5402 | var l int |
| 5403 | _ = l |
| 5404 | if m.Request != nil { |
| 5405 | nn5, err := m.Request.MarshalTo(dAtA[i:]) |
| 5406 | if err != nil { |
| 5407 | return 0, err |
| 5408 | } |
| 5409 | i += nn5 |
| 5410 | } |
| 5411 | return i, nil |
| 5412 | } |
| 5413 | |
| 5414 | func (m *RequestOp_RequestRange) MarshalTo(dAtA []byte) (int, error) { |
| 5415 | i := 0 |
| 5416 | if m.RequestRange != nil { |
| 5417 | dAtA[i] = 0xa |
| 5418 | i++ |
| 5419 | i = encodeVarintRpc(dAtA, i, uint64(m.RequestRange.Size())) |
| 5420 | n6, err := m.RequestRange.MarshalTo(dAtA[i:]) |
| 5421 | if err != nil { |
| 5422 | return 0, err |
| 5423 | } |
| 5424 | i += n6 |
| 5425 | } |
| 5426 | return i, nil |
| 5427 | } |
| 5428 | func (m *RequestOp_RequestPut) MarshalTo(dAtA []byte) (int, error) { |
| 5429 | i := 0 |
| 5430 | if m.RequestPut != nil { |
| 5431 | dAtA[i] = 0x12 |
| 5432 | i++ |
| 5433 | i = encodeVarintRpc(dAtA, i, uint64(m.RequestPut.Size())) |
| 5434 | n7, err := m.RequestPut.MarshalTo(dAtA[i:]) |
| 5435 | if err != nil { |
| 5436 | return 0, err |
| 5437 | } |
| 5438 | i += n7 |
| 5439 | } |
| 5440 | return i, nil |
| 5441 | } |
| 5442 | func (m *RequestOp_RequestDeleteRange) MarshalTo(dAtA []byte) (int, error) { |
| 5443 | i := 0 |
| 5444 | if m.RequestDeleteRange != nil { |
| 5445 | dAtA[i] = 0x1a |
| 5446 | i++ |
| 5447 | i = encodeVarintRpc(dAtA, i, uint64(m.RequestDeleteRange.Size())) |
| 5448 | n8, err := m.RequestDeleteRange.MarshalTo(dAtA[i:]) |
| 5449 | if err != nil { |
| 5450 | return 0, err |
| 5451 | } |
| 5452 | i += n8 |
| 5453 | } |
| 5454 | return i, nil |
| 5455 | } |
| 5456 | func (m *RequestOp_RequestTxn) MarshalTo(dAtA []byte) (int, error) { |
| 5457 | i := 0 |
| 5458 | if m.RequestTxn != nil { |
| 5459 | dAtA[i] = 0x22 |
| 5460 | i++ |
| 5461 | i = encodeVarintRpc(dAtA, i, uint64(m.RequestTxn.Size())) |
| 5462 | n9, err := m.RequestTxn.MarshalTo(dAtA[i:]) |
| 5463 | if err != nil { |
| 5464 | return 0, err |
| 5465 | } |
| 5466 | i += n9 |
| 5467 | } |
| 5468 | return i, nil |
| 5469 | } |
| 5470 | func (m *ResponseOp) Marshal() (dAtA []byte, err error) { |
| 5471 | size := m.Size() |
| 5472 | dAtA = make([]byte, size) |
| 5473 | n, err := m.MarshalTo(dAtA) |
| 5474 | if err != nil { |
| 5475 | return nil, err |
| 5476 | } |
| 5477 | return dAtA[:n], nil |
| 5478 | } |
| 5479 | |
| 5480 | func (m *ResponseOp) MarshalTo(dAtA []byte) (int, error) { |
| 5481 | var i int |
| 5482 | _ = i |
| 5483 | var l int |
| 5484 | _ = l |
| 5485 | if m.Response != nil { |
| 5486 | nn10, err := m.Response.MarshalTo(dAtA[i:]) |
| 5487 | if err != nil { |
| 5488 | return 0, err |
| 5489 | } |
| 5490 | i += nn10 |
| 5491 | } |
| 5492 | return i, nil |
| 5493 | } |
| 5494 | |
| 5495 | func (m *ResponseOp_ResponseRange) MarshalTo(dAtA []byte) (int, error) { |
| 5496 | i := 0 |
| 5497 | if m.ResponseRange != nil { |
| 5498 | dAtA[i] = 0xa |
| 5499 | i++ |
| 5500 | i = encodeVarintRpc(dAtA, i, uint64(m.ResponseRange.Size())) |
| 5501 | n11, err := m.ResponseRange.MarshalTo(dAtA[i:]) |
| 5502 | if err != nil { |
| 5503 | return 0, err |
| 5504 | } |
| 5505 | i += n11 |
| 5506 | } |
| 5507 | return i, nil |
| 5508 | } |
| 5509 | func (m *ResponseOp_ResponsePut) MarshalTo(dAtA []byte) (int, error) { |
| 5510 | i := 0 |
| 5511 | if m.ResponsePut != nil { |
| 5512 | dAtA[i] = 0x12 |
| 5513 | i++ |
| 5514 | i = encodeVarintRpc(dAtA, i, uint64(m.ResponsePut.Size())) |
| 5515 | n12, err := m.ResponsePut.MarshalTo(dAtA[i:]) |
| 5516 | if err != nil { |
| 5517 | return 0, err |
| 5518 | } |
| 5519 | i += n12 |
| 5520 | } |
| 5521 | return i, nil |
| 5522 | } |
| 5523 | func (m *ResponseOp_ResponseDeleteRange) MarshalTo(dAtA []byte) (int, error) { |
| 5524 | i := 0 |
| 5525 | if m.ResponseDeleteRange != nil { |
| 5526 | dAtA[i] = 0x1a |
| 5527 | i++ |
| 5528 | i = encodeVarintRpc(dAtA, i, uint64(m.ResponseDeleteRange.Size())) |
| 5529 | n13, err := m.ResponseDeleteRange.MarshalTo(dAtA[i:]) |
| 5530 | if err != nil { |
| 5531 | return 0, err |
| 5532 | } |
| 5533 | i += n13 |
| 5534 | } |
| 5535 | return i, nil |
| 5536 | } |
| 5537 | func (m *ResponseOp_ResponseTxn) MarshalTo(dAtA []byte) (int, error) { |
| 5538 | i := 0 |
| 5539 | if m.ResponseTxn != nil { |
| 5540 | dAtA[i] = 0x22 |
| 5541 | i++ |
| 5542 | i = encodeVarintRpc(dAtA, i, uint64(m.ResponseTxn.Size())) |
| 5543 | n14, err := m.ResponseTxn.MarshalTo(dAtA[i:]) |
| 5544 | if err != nil { |
| 5545 | return 0, err |
| 5546 | } |
| 5547 | i += n14 |
| 5548 | } |
| 5549 | return i, nil |
| 5550 | } |
| 5551 | func (m *Compare) Marshal() (dAtA []byte, err error) { |
| 5552 | size := m.Size() |
| 5553 | dAtA = make([]byte, size) |
| 5554 | n, err := m.MarshalTo(dAtA) |
| 5555 | if err != nil { |
| 5556 | return nil, err |
| 5557 | } |
| 5558 | return dAtA[:n], nil |
| 5559 | } |
| 5560 | |
| 5561 | func (m *Compare) MarshalTo(dAtA []byte) (int, error) { |
| 5562 | var i int |
| 5563 | _ = i |
| 5564 | var l int |
| 5565 | _ = l |
| 5566 | if m.Result != 0 { |
| 5567 | dAtA[i] = 0x8 |
| 5568 | i++ |
| 5569 | i = encodeVarintRpc(dAtA, i, uint64(m.Result)) |
| 5570 | } |
| 5571 | if m.Target != 0 { |
| 5572 | dAtA[i] = 0x10 |
| 5573 | i++ |
| 5574 | i = encodeVarintRpc(dAtA, i, uint64(m.Target)) |
| 5575 | } |
| 5576 | if len(m.Key) > 0 { |
| 5577 | dAtA[i] = 0x1a |
| 5578 | i++ |
| 5579 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Key))) |
| 5580 | i += copy(dAtA[i:], m.Key) |
| 5581 | } |
| 5582 | if m.TargetUnion != nil { |
| 5583 | nn15, err := m.TargetUnion.MarshalTo(dAtA[i:]) |
| 5584 | if err != nil { |
| 5585 | return 0, err |
| 5586 | } |
| 5587 | i += nn15 |
| 5588 | } |
| 5589 | if len(m.RangeEnd) > 0 { |
| 5590 | dAtA[i] = 0x82 |
| 5591 | i++ |
| 5592 | dAtA[i] = 0x4 |
| 5593 | i++ |
| 5594 | i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd))) |
| 5595 | i += copy(dAtA[i:], m.RangeEnd) |
| 5596 | } |
| 5597 | return i, nil |
| 5598 | } |
| 5599 | |
| 5600 | func (m *Compare_Version) MarshalTo(dAtA []byte) (int, error) { |
| 5601 | i := 0 |
| 5602 | dAtA[i] = 0x20 |
| 5603 | i++ |
| 5604 | i = encodeVarintRpc(dAtA, i, uint64(m.Version)) |
| 5605 | return i, nil |
| 5606 | } |
| 5607 | func (m *Compare_CreateRevision) MarshalTo(dAtA []byte) (int, error) { |
| 5608 | i := 0 |
| 5609 | dAtA[i] = 0x28 |
| 5610 | i++ |
| 5611 | i = encodeVarintRpc(dAtA, i, uint64(m.CreateRevision)) |
| 5612 | return i, nil |
| 5613 | } |
| 5614 | func (m *Compare_ModRevision) MarshalTo(dAtA []byte) (int, error) { |
| 5615 | i := 0 |
| 5616 | dAtA[i] = 0x30 |
| 5617 | i++ |
| 5618 | i = encodeVarintRpc(dAtA, i, uint64(m.ModRevision)) |
| 5619 | return i, nil |
| 5620 | } |
| 5621 | func (m *Compare_Value) MarshalTo(dAtA []byte) (int, error) { |
| 5622 | i := 0 |
| 5623 | if m.Value != nil { |
| 5624 | dAtA[i] = 0x3a |
| 5625 | i++ |
| 5626 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Value))) |
| 5627 | i += copy(dAtA[i:], m.Value) |
| 5628 | } |
| 5629 | return i, nil |
| 5630 | } |
| 5631 | func (m *Compare_Lease) MarshalTo(dAtA []byte) (int, error) { |
| 5632 | i := 0 |
| 5633 | dAtA[i] = 0x40 |
| 5634 | i++ |
| 5635 | i = encodeVarintRpc(dAtA, i, uint64(m.Lease)) |
| 5636 | return i, nil |
| 5637 | } |
| 5638 | func (m *TxnRequest) Marshal() (dAtA []byte, err error) { |
| 5639 | size := m.Size() |
| 5640 | dAtA = make([]byte, size) |
| 5641 | n, err := m.MarshalTo(dAtA) |
| 5642 | if err != nil { |
| 5643 | return nil, err |
| 5644 | } |
| 5645 | return dAtA[:n], nil |
| 5646 | } |
| 5647 | |
| 5648 | func (m *TxnRequest) MarshalTo(dAtA []byte) (int, error) { |
| 5649 | var i int |
| 5650 | _ = i |
| 5651 | var l int |
| 5652 | _ = l |
| 5653 | if len(m.Compare) > 0 { |
| 5654 | for _, msg := range m.Compare { |
| 5655 | dAtA[i] = 0xa |
| 5656 | i++ |
| 5657 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 5658 | n, err := msg.MarshalTo(dAtA[i:]) |
| 5659 | if err != nil { |
| 5660 | return 0, err |
| 5661 | } |
| 5662 | i += n |
| 5663 | } |
| 5664 | } |
| 5665 | if len(m.Success) > 0 { |
| 5666 | for _, msg := range m.Success { |
| 5667 | dAtA[i] = 0x12 |
| 5668 | i++ |
| 5669 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 5670 | n, err := msg.MarshalTo(dAtA[i:]) |
| 5671 | if err != nil { |
| 5672 | return 0, err |
| 5673 | } |
| 5674 | i += n |
| 5675 | } |
| 5676 | } |
| 5677 | if len(m.Failure) > 0 { |
| 5678 | for _, msg := range m.Failure { |
| 5679 | dAtA[i] = 0x1a |
| 5680 | i++ |
| 5681 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 5682 | n, err := msg.MarshalTo(dAtA[i:]) |
| 5683 | if err != nil { |
| 5684 | return 0, err |
| 5685 | } |
| 5686 | i += n |
| 5687 | } |
| 5688 | } |
| 5689 | return i, nil |
| 5690 | } |
| 5691 | |
| 5692 | func (m *TxnResponse) Marshal() (dAtA []byte, err error) { |
| 5693 | size := m.Size() |
| 5694 | dAtA = make([]byte, size) |
| 5695 | n, err := m.MarshalTo(dAtA) |
| 5696 | if err != nil { |
| 5697 | return nil, err |
| 5698 | } |
| 5699 | return dAtA[:n], nil |
| 5700 | } |
| 5701 | |
| 5702 | func (m *TxnResponse) MarshalTo(dAtA []byte) (int, error) { |
| 5703 | var i int |
| 5704 | _ = i |
| 5705 | var l int |
| 5706 | _ = l |
| 5707 | if m.Header != nil { |
| 5708 | dAtA[i] = 0xa |
| 5709 | i++ |
| 5710 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 5711 | n16, err := m.Header.MarshalTo(dAtA[i:]) |
| 5712 | if err != nil { |
| 5713 | return 0, err |
| 5714 | } |
| 5715 | i += n16 |
| 5716 | } |
| 5717 | if m.Succeeded { |
| 5718 | dAtA[i] = 0x10 |
| 5719 | i++ |
| 5720 | if m.Succeeded { |
| 5721 | dAtA[i] = 1 |
| 5722 | } else { |
| 5723 | dAtA[i] = 0 |
| 5724 | } |
| 5725 | i++ |
| 5726 | } |
| 5727 | if len(m.Responses) > 0 { |
| 5728 | for _, msg := range m.Responses { |
| 5729 | dAtA[i] = 0x1a |
| 5730 | i++ |
| 5731 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 5732 | n, err := msg.MarshalTo(dAtA[i:]) |
| 5733 | if err != nil { |
| 5734 | return 0, err |
| 5735 | } |
| 5736 | i += n |
| 5737 | } |
| 5738 | } |
| 5739 | return i, nil |
| 5740 | } |
| 5741 | |
| 5742 | func (m *CompactionRequest) Marshal() (dAtA []byte, err error) { |
| 5743 | size := m.Size() |
| 5744 | dAtA = make([]byte, size) |
| 5745 | n, err := m.MarshalTo(dAtA) |
| 5746 | if err != nil { |
| 5747 | return nil, err |
| 5748 | } |
| 5749 | return dAtA[:n], nil |
| 5750 | } |
| 5751 | |
| 5752 | func (m *CompactionRequest) MarshalTo(dAtA []byte) (int, error) { |
| 5753 | var i int |
| 5754 | _ = i |
| 5755 | var l int |
| 5756 | _ = l |
| 5757 | if m.Revision != 0 { |
| 5758 | dAtA[i] = 0x8 |
| 5759 | i++ |
| 5760 | i = encodeVarintRpc(dAtA, i, uint64(m.Revision)) |
| 5761 | } |
| 5762 | if m.Physical { |
| 5763 | dAtA[i] = 0x10 |
| 5764 | i++ |
| 5765 | if m.Physical { |
| 5766 | dAtA[i] = 1 |
| 5767 | } else { |
| 5768 | dAtA[i] = 0 |
| 5769 | } |
| 5770 | i++ |
| 5771 | } |
| 5772 | return i, nil |
| 5773 | } |
| 5774 | |
| 5775 | func (m *CompactionResponse) Marshal() (dAtA []byte, err error) { |
| 5776 | size := m.Size() |
| 5777 | dAtA = make([]byte, size) |
| 5778 | n, err := m.MarshalTo(dAtA) |
| 5779 | if err != nil { |
| 5780 | return nil, err |
| 5781 | } |
| 5782 | return dAtA[:n], nil |
| 5783 | } |
| 5784 | |
| 5785 | func (m *CompactionResponse) MarshalTo(dAtA []byte) (int, error) { |
| 5786 | var i int |
| 5787 | _ = i |
| 5788 | var l int |
| 5789 | _ = l |
| 5790 | if m.Header != nil { |
| 5791 | dAtA[i] = 0xa |
| 5792 | i++ |
| 5793 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 5794 | n17, err := m.Header.MarshalTo(dAtA[i:]) |
| 5795 | if err != nil { |
| 5796 | return 0, err |
| 5797 | } |
| 5798 | i += n17 |
| 5799 | } |
| 5800 | return i, nil |
| 5801 | } |
| 5802 | |
| 5803 | func (m *HashRequest) Marshal() (dAtA []byte, err error) { |
| 5804 | size := m.Size() |
| 5805 | dAtA = make([]byte, size) |
| 5806 | n, err := m.MarshalTo(dAtA) |
| 5807 | if err != nil { |
| 5808 | return nil, err |
| 5809 | } |
| 5810 | return dAtA[:n], nil |
| 5811 | } |
| 5812 | |
| 5813 | func (m *HashRequest) MarshalTo(dAtA []byte) (int, error) { |
| 5814 | var i int |
| 5815 | _ = i |
| 5816 | var l int |
| 5817 | _ = l |
| 5818 | return i, nil |
| 5819 | } |
| 5820 | |
| 5821 | func (m *HashKVRequest) Marshal() (dAtA []byte, err error) { |
| 5822 | size := m.Size() |
| 5823 | dAtA = make([]byte, size) |
| 5824 | n, err := m.MarshalTo(dAtA) |
| 5825 | if err != nil { |
| 5826 | return nil, err |
| 5827 | } |
| 5828 | return dAtA[:n], nil |
| 5829 | } |
| 5830 | |
| 5831 | func (m *HashKVRequest) MarshalTo(dAtA []byte) (int, error) { |
| 5832 | var i int |
| 5833 | _ = i |
| 5834 | var l int |
| 5835 | _ = l |
| 5836 | if m.Revision != 0 { |
| 5837 | dAtA[i] = 0x8 |
| 5838 | i++ |
| 5839 | i = encodeVarintRpc(dAtA, i, uint64(m.Revision)) |
| 5840 | } |
| 5841 | return i, nil |
| 5842 | } |
| 5843 | |
| 5844 | func (m *HashKVResponse) Marshal() (dAtA []byte, err error) { |
| 5845 | size := m.Size() |
| 5846 | dAtA = make([]byte, size) |
| 5847 | n, err := m.MarshalTo(dAtA) |
| 5848 | if err != nil { |
| 5849 | return nil, err |
| 5850 | } |
| 5851 | return dAtA[:n], nil |
| 5852 | } |
| 5853 | |
| 5854 | func (m *HashKVResponse) MarshalTo(dAtA []byte) (int, error) { |
| 5855 | var i int |
| 5856 | _ = i |
| 5857 | var l int |
| 5858 | _ = l |
| 5859 | if m.Header != nil { |
| 5860 | dAtA[i] = 0xa |
| 5861 | i++ |
| 5862 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 5863 | n18, err := m.Header.MarshalTo(dAtA[i:]) |
| 5864 | if err != nil { |
| 5865 | return 0, err |
| 5866 | } |
| 5867 | i += n18 |
| 5868 | } |
| 5869 | if m.Hash != 0 { |
| 5870 | dAtA[i] = 0x10 |
| 5871 | i++ |
| 5872 | i = encodeVarintRpc(dAtA, i, uint64(m.Hash)) |
| 5873 | } |
| 5874 | if m.CompactRevision != 0 { |
| 5875 | dAtA[i] = 0x18 |
| 5876 | i++ |
| 5877 | i = encodeVarintRpc(dAtA, i, uint64(m.CompactRevision)) |
| 5878 | } |
| 5879 | return i, nil |
| 5880 | } |
| 5881 | |
| 5882 | func (m *HashResponse) Marshal() (dAtA []byte, err error) { |
| 5883 | size := m.Size() |
| 5884 | dAtA = make([]byte, size) |
| 5885 | n, err := m.MarshalTo(dAtA) |
| 5886 | if err != nil { |
| 5887 | return nil, err |
| 5888 | } |
| 5889 | return dAtA[:n], nil |
| 5890 | } |
| 5891 | |
| 5892 | func (m *HashResponse) MarshalTo(dAtA []byte) (int, error) { |
| 5893 | var i int |
| 5894 | _ = i |
| 5895 | var l int |
| 5896 | _ = l |
| 5897 | if m.Header != nil { |
| 5898 | dAtA[i] = 0xa |
| 5899 | i++ |
| 5900 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 5901 | n19, err := m.Header.MarshalTo(dAtA[i:]) |
| 5902 | if err != nil { |
| 5903 | return 0, err |
| 5904 | } |
| 5905 | i += n19 |
| 5906 | } |
| 5907 | if m.Hash != 0 { |
| 5908 | dAtA[i] = 0x10 |
| 5909 | i++ |
| 5910 | i = encodeVarintRpc(dAtA, i, uint64(m.Hash)) |
| 5911 | } |
| 5912 | return i, nil |
| 5913 | } |
| 5914 | |
| 5915 | func (m *SnapshotRequest) Marshal() (dAtA []byte, err error) { |
| 5916 | size := m.Size() |
| 5917 | dAtA = make([]byte, size) |
| 5918 | n, err := m.MarshalTo(dAtA) |
| 5919 | if err != nil { |
| 5920 | return nil, err |
| 5921 | } |
| 5922 | return dAtA[:n], nil |
| 5923 | } |
| 5924 | |
| 5925 | func (m *SnapshotRequest) MarshalTo(dAtA []byte) (int, error) { |
| 5926 | var i int |
| 5927 | _ = i |
| 5928 | var l int |
| 5929 | _ = l |
| 5930 | return i, nil |
| 5931 | } |
| 5932 | |
| 5933 | func (m *SnapshotResponse) Marshal() (dAtA []byte, err error) { |
| 5934 | size := m.Size() |
| 5935 | dAtA = make([]byte, size) |
| 5936 | n, err := m.MarshalTo(dAtA) |
| 5937 | if err != nil { |
| 5938 | return nil, err |
| 5939 | } |
| 5940 | return dAtA[:n], nil |
| 5941 | } |
| 5942 | |
| 5943 | func (m *SnapshotResponse) MarshalTo(dAtA []byte) (int, error) { |
| 5944 | var i int |
| 5945 | _ = i |
| 5946 | var l int |
| 5947 | _ = l |
| 5948 | if m.Header != nil { |
| 5949 | dAtA[i] = 0xa |
| 5950 | i++ |
| 5951 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 5952 | n20, err := m.Header.MarshalTo(dAtA[i:]) |
| 5953 | if err != nil { |
| 5954 | return 0, err |
| 5955 | } |
| 5956 | i += n20 |
| 5957 | } |
| 5958 | if m.RemainingBytes != 0 { |
| 5959 | dAtA[i] = 0x10 |
| 5960 | i++ |
| 5961 | i = encodeVarintRpc(dAtA, i, uint64(m.RemainingBytes)) |
| 5962 | } |
| 5963 | if len(m.Blob) > 0 { |
| 5964 | dAtA[i] = 0x1a |
| 5965 | i++ |
| 5966 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Blob))) |
| 5967 | i += copy(dAtA[i:], m.Blob) |
| 5968 | } |
| 5969 | return i, nil |
| 5970 | } |
| 5971 | |
| 5972 | func (m *WatchRequest) Marshal() (dAtA []byte, err error) { |
| 5973 | size := m.Size() |
| 5974 | dAtA = make([]byte, size) |
| 5975 | n, err := m.MarshalTo(dAtA) |
| 5976 | if err != nil { |
| 5977 | return nil, err |
| 5978 | } |
| 5979 | return dAtA[:n], nil |
| 5980 | } |
| 5981 | |
| 5982 | func (m *WatchRequest) MarshalTo(dAtA []byte) (int, error) { |
| 5983 | var i int |
| 5984 | _ = i |
| 5985 | var l int |
| 5986 | _ = l |
| 5987 | if m.RequestUnion != nil { |
| 5988 | nn21, err := m.RequestUnion.MarshalTo(dAtA[i:]) |
| 5989 | if err != nil { |
| 5990 | return 0, err |
| 5991 | } |
| 5992 | i += nn21 |
| 5993 | } |
| 5994 | return i, nil |
| 5995 | } |
| 5996 | |
| 5997 | func (m *WatchRequest_CreateRequest) MarshalTo(dAtA []byte) (int, error) { |
| 5998 | i := 0 |
| 5999 | if m.CreateRequest != nil { |
| 6000 | dAtA[i] = 0xa |
| 6001 | i++ |
| 6002 | i = encodeVarintRpc(dAtA, i, uint64(m.CreateRequest.Size())) |
| 6003 | n22, err := m.CreateRequest.MarshalTo(dAtA[i:]) |
| 6004 | if err != nil { |
| 6005 | return 0, err |
| 6006 | } |
| 6007 | i += n22 |
| 6008 | } |
| 6009 | return i, nil |
| 6010 | } |
| 6011 | func (m *WatchRequest_CancelRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6012 | i := 0 |
| 6013 | if m.CancelRequest != nil { |
| 6014 | dAtA[i] = 0x12 |
| 6015 | i++ |
| 6016 | i = encodeVarintRpc(dAtA, i, uint64(m.CancelRequest.Size())) |
| 6017 | n23, err := m.CancelRequest.MarshalTo(dAtA[i:]) |
| 6018 | if err != nil { |
| 6019 | return 0, err |
| 6020 | } |
| 6021 | i += n23 |
| 6022 | } |
| 6023 | return i, nil |
| 6024 | } |
| 6025 | func (m *WatchRequest_ProgressRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6026 | i := 0 |
| 6027 | if m.ProgressRequest != nil { |
| 6028 | dAtA[i] = 0x1a |
| 6029 | i++ |
| 6030 | i = encodeVarintRpc(dAtA, i, uint64(m.ProgressRequest.Size())) |
| 6031 | n24, err := m.ProgressRequest.MarshalTo(dAtA[i:]) |
| 6032 | if err != nil { |
| 6033 | return 0, err |
| 6034 | } |
| 6035 | i += n24 |
| 6036 | } |
| 6037 | return i, nil |
| 6038 | } |
| 6039 | func (m *WatchCreateRequest) Marshal() (dAtA []byte, err error) { |
| 6040 | size := m.Size() |
| 6041 | dAtA = make([]byte, size) |
| 6042 | n, err := m.MarshalTo(dAtA) |
| 6043 | if err != nil { |
| 6044 | return nil, err |
| 6045 | } |
| 6046 | return dAtA[:n], nil |
| 6047 | } |
| 6048 | |
| 6049 | func (m *WatchCreateRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6050 | var i int |
| 6051 | _ = i |
| 6052 | var l int |
| 6053 | _ = l |
| 6054 | if len(m.Key) > 0 { |
| 6055 | dAtA[i] = 0xa |
| 6056 | i++ |
| 6057 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Key))) |
| 6058 | i += copy(dAtA[i:], m.Key) |
| 6059 | } |
| 6060 | if len(m.RangeEnd) > 0 { |
| 6061 | dAtA[i] = 0x12 |
| 6062 | i++ |
| 6063 | i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd))) |
| 6064 | i += copy(dAtA[i:], m.RangeEnd) |
| 6065 | } |
| 6066 | if m.StartRevision != 0 { |
| 6067 | dAtA[i] = 0x18 |
| 6068 | i++ |
| 6069 | i = encodeVarintRpc(dAtA, i, uint64(m.StartRevision)) |
| 6070 | } |
| 6071 | if m.ProgressNotify { |
| 6072 | dAtA[i] = 0x20 |
| 6073 | i++ |
| 6074 | if m.ProgressNotify { |
| 6075 | dAtA[i] = 1 |
| 6076 | } else { |
| 6077 | dAtA[i] = 0 |
| 6078 | } |
| 6079 | i++ |
| 6080 | } |
| 6081 | if len(m.Filters) > 0 { |
| 6082 | dAtA26 := make([]byte, len(m.Filters)*10) |
| 6083 | var j25 int |
| 6084 | for _, num := range m.Filters { |
| 6085 | for num >= 1<<7 { |
| 6086 | dAtA26[j25] = uint8(uint64(num)&0x7f | 0x80) |
| 6087 | num >>= 7 |
| 6088 | j25++ |
| 6089 | } |
| 6090 | dAtA26[j25] = uint8(num) |
| 6091 | j25++ |
| 6092 | } |
| 6093 | dAtA[i] = 0x2a |
| 6094 | i++ |
| 6095 | i = encodeVarintRpc(dAtA, i, uint64(j25)) |
| 6096 | i += copy(dAtA[i:], dAtA26[:j25]) |
| 6097 | } |
| 6098 | if m.PrevKv { |
| 6099 | dAtA[i] = 0x30 |
| 6100 | i++ |
| 6101 | if m.PrevKv { |
| 6102 | dAtA[i] = 1 |
| 6103 | } else { |
| 6104 | dAtA[i] = 0 |
| 6105 | } |
| 6106 | i++ |
| 6107 | } |
| 6108 | if m.WatchId != 0 { |
| 6109 | dAtA[i] = 0x38 |
| 6110 | i++ |
| 6111 | i = encodeVarintRpc(dAtA, i, uint64(m.WatchId)) |
| 6112 | } |
| 6113 | if m.Fragment { |
| 6114 | dAtA[i] = 0x40 |
| 6115 | i++ |
| 6116 | if m.Fragment { |
| 6117 | dAtA[i] = 1 |
| 6118 | } else { |
| 6119 | dAtA[i] = 0 |
| 6120 | } |
| 6121 | i++ |
| 6122 | } |
| 6123 | return i, nil |
| 6124 | } |
| 6125 | |
| 6126 | func (m *WatchCancelRequest) Marshal() (dAtA []byte, err error) { |
| 6127 | size := m.Size() |
| 6128 | dAtA = make([]byte, size) |
| 6129 | n, err := m.MarshalTo(dAtA) |
| 6130 | if err != nil { |
| 6131 | return nil, err |
| 6132 | } |
| 6133 | return dAtA[:n], nil |
| 6134 | } |
| 6135 | |
| 6136 | func (m *WatchCancelRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6137 | var i int |
| 6138 | _ = i |
| 6139 | var l int |
| 6140 | _ = l |
| 6141 | if m.WatchId != 0 { |
| 6142 | dAtA[i] = 0x8 |
| 6143 | i++ |
| 6144 | i = encodeVarintRpc(dAtA, i, uint64(m.WatchId)) |
| 6145 | } |
| 6146 | return i, nil |
| 6147 | } |
| 6148 | |
| 6149 | func (m *WatchProgressRequest) Marshal() (dAtA []byte, err error) { |
| 6150 | size := m.Size() |
| 6151 | dAtA = make([]byte, size) |
| 6152 | n, err := m.MarshalTo(dAtA) |
| 6153 | if err != nil { |
| 6154 | return nil, err |
| 6155 | } |
| 6156 | return dAtA[:n], nil |
| 6157 | } |
| 6158 | |
| 6159 | func (m *WatchProgressRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6160 | var i int |
| 6161 | _ = i |
| 6162 | var l int |
| 6163 | _ = l |
| 6164 | return i, nil |
| 6165 | } |
| 6166 | |
| 6167 | func (m *WatchResponse) Marshal() (dAtA []byte, err error) { |
| 6168 | size := m.Size() |
| 6169 | dAtA = make([]byte, size) |
| 6170 | n, err := m.MarshalTo(dAtA) |
| 6171 | if err != nil { |
| 6172 | return nil, err |
| 6173 | } |
| 6174 | return dAtA[:n], nil |
| 6175 | } |
| 6176 | |
| 6177 | func (m *WatchResponse) MarshalTo(dAtA []byte) (int, error) { |
| 6178 | var i int |
| 6179 | _ = i |
| 6180 | var l int |
| 6181 | _ = l |
| 6182 | if m.Header != nil { |
| 6183 | dAtA[i] = 0xa |
| 6184 | i++ |
| 6185 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 6186 | n27, err := m.Header.MarshalTo(dAtA[i:]) |
| 6187 | if err != nil { |
| 6188 | return 0, err |
| 6189 | } |
| 6190 | i += n27 |
| 6191 | } |
| 6192 | if m.WatchId != 0 { |
| 6193 | dAtA[i] = 0x10 |
| 6194 | i++ |
| 6195 | i = encodeVarintRpc(dAtA, i, uint64(m.WatchId)) |
| 6196 | } |
| 6197 | if m.Created { |
| 6198 | dAtA[i] = 0x18 |
| 6199 | i++ |
| 6200 | if m.Created { |
| 6201 | dAtA[i] = 1 |
| 6202 | } else { |
| 6203 | dAtA[i] = 0 |
| 6204 | } |
| 6205 | i++ |
| 6206 | } |
| 6207 | if m.Canceled { |
| 6208 | dAtA[i] = 0x20 |
| 6209 | i++ |
| 6210 | if m.Canceled { |
| 6211 | dAtA[i] = 1 |
| 6212 | } else { |
| 6213 | dAtA[i] = 0 |
| 6214 | } |
| 6215 | i++ |
| 6216 | } |
| 6217 | if m.CompactRevision != 0 { |
| 6218 | dAtA[i] = 0x28 |
| 6219 | i++ |
| 6220 | i = encodeVarintRpc(dAtA, i, uint64(m.CompactRevision)) |
| 6221 | } |
| 6222 | if len(m.CancelReason) > 0 { |
| 6223 | dAtA[i] = 0x32 |
| 6224 | i++ |
| 6225 | i = encodeVarintRpc(dAtA, i, uint64(len(m.CancelReason))) |
| 6226 | i += copy(dAtA[i:], m.CancelReason) |
| 6227 | } |
| 6228 | if m.Fragment { |
| 6229 | dAtA[i] = 0x38 |
| 6230 | i++ |
| 6231 | if m.Fragment { |
| 6232 | dAtA[i] = 1 |
| 6233 | } else { |
| 6234 | dAtA[i] = 0 |
| 6235 | } |
| 6236 | i++ |
| 6237 | } |
| 6238 | if len(m.Events) > 0 { |
| 6239 | for _, msg := range m.Events { |
| 6240 | dAtA[i] = 0x5a |
| 6241 | i++ |
| 6242 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 6243 | n, err := msg.MarshalTo(dAtA[i:]) |
| 6244 | if err != nil { |
| 6245 | return 0, err |
| 6246 | } |
| 6247 | i += n |
| 6248 | } |
| 6249 | } |
| 6250 | return i, nil |
| 6251 | } |
| 6252 | |
| 6253 | func (m *LeaseGrantRequest) Marshal() (dAtA []byte, err error) { |
| 6254 | size := m.Size() |
| 6255 | dAtA = make([]byte, size) |
| 6256 | n, err := m.MarshalTo(dAtA) |
| 6257 | if err != nil { |
| 6258 | return nil, err |
| 6259 | } |
| 6260 | return dAtA[:n], nil |
| 6261 | } |
| 6262 | |
| 6263 | func (m *LeaseGrantRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6264 | var i int |
| 6265 | _ = i |
| 6266 | var l int |
| 6267 | _ = l |
| 6268 | if m.TTL != 0 { |
| 6269 | dAtA[i] = 0x8 |
| 6270 | i++ |
| 6271 | i = encodeVarintRpc(dAtA, i, uint64(m.TTL)) |
| 6272 | } |
| 6273 | if m.ID != 0 { |
| 6274 | dAtA[i] = 0x10 |
| 6275 | i++ |
| 6276 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6277 | } |
| 6278 | return i, nil |
| 6279 | } |
| 6280 | |
| 6281 | func (m *LeaseGrantResponse) Marshal() (dAtA []byte, err error) { |
| 6282 | size := m.Size() |
| 6283 | dAtA = make([]byte, size) |
| 6284 | n, err := m.MarshalTo(dAtA) |
| 6285 | if err != nil { |
| 6286 | return nil, err |
| 6287 | } |
| 6288 | return dAtA[:n], nil |
| 6289 | } |
| 6290 | |
| 6291 | func (m *LeaseGrantResponse) MarshalTo(dAtA []byte) (int, error) { |
| 6292 | var i int |
| 6293 | _ = i |
| 6294 | var l int |
| 6295 | _ = l |
| 6296 | if m.Header != nil { |
| 6297 | dAtA[i] = 0xa |
| 6298 | i++ |
| 6299 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 6300 | n28, err := m.Header.MarshalTo(dAtA[i:]) |
| 6301 | if err != nil { |
| 6302 | return 0, err |
| 6303 | } |
| 6304 | i += n28 |
| 6305 | } |
| 6306 | if m.ID != 0 { |
| 6307 | dAtA[i] = 0x10 |
| 6308 | i++ |
| 6309 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6310 | } |
| 6311 | if m.TTL != 0 { |
| 6312 | dAtA[i] = 0x18 |
| 6313 | i++ |
| 6314 | i = encodeVarintRpc(dAtA, i, uint64(m.TTL)) |
| 6315 | } |
| 6316 | if len(m.Error) > 0 { |
| 6317 | dAtA[i] = 0x22 |
| 6318 | i++ |
| 6319 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Error))) |
| 6320 | i += copy(dAtA[i:], m.Error) |
| 6321 | } |
| 6322 | return i, nil |
| 6323 | } |
| 6324 | |
| 6325 | func (m *LeaseRevokeRequest) Marshal() (dAtA []byte, err error) { |
| 6326 | size := m.Size() |
| 6327 | dAtA = make([]byte, size) |
| 6328 | n, err := m.MarshalTo(dAtA) |
| 6329 | if err != nil { |
| 6330 | return nil, err |
| 6331 | } |
| 6332 | return dAtA[:n], nil |
| 6333 | } |
| 6334 | |
| 6335 | func (m *LeaseRevokeRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6336 | var i int |
| 6337 | _ = i |
| 6338 | var l int |
| 6339 | _ = l |
| 6340 | if m.ID != 0 { |
| 6341 | dAtA[i] = 0x8 |
| 6342 | i++ |
| 6343 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6344 | } |
| 6345 | return i, nil |
| 6346 | } |
| 6347 | |
| 6348 | func (m *LeaseRevokeResponse) Marshal() (dAtA []byte, err error) { |
| 6349 | size := m.Size() |
| 6350 | dAtA = make([]byte, size) |
| 6351 | n, err := m.MarshalTo(dAtA) |
| 6352 | if err != nil { |
| 6353 | return nil, err |
| 6354 | } |
| 6355 | return dAtA[:n], nil |
| 6356 | } |
| 6357 | |
| 6358 | func (m *LeaseRevokeResponse) MarshalTo(dAtA []byte) (int, error) { |
| 6359 | var i int |
| 6360 | _ = i |
| 6361 | var l int |
| 6362 | _ = l |
| 6363 | if m.Header != nil { |
| 6364 | dAtA[i] = 0xa |
| 6365 | i++ |
| 6366 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 6367 | n29, err := m.Header.MarshalTo(dAtA[i:]) |
| 6368 | if err != nil { |
| 6369 | return 0, err |
| 6370 | } |
| 6371 | i += n29 |
| 6372 | } |
| 6373 | return i, nil |
| 6374 | } |
| 6375 | |
| 6376 | func (m *LeaseCheckpoint) Marshal() (dAtA []byte, err error) { |
| 6377 | size := m.Size() |
| 6378 | dAtA = make([]byte, size) |
| 6379 | n, err := m.MarshalTo(dAtA) |
| 6380 | if err != nil { |
| 6381 | return nil, err |
| 6382 | } |
| 6383 | return dAtA[:n], nil |
| 6384 | } |
| 6385 | |
| 6386 | func (m *LeaseCheckpoint) MarshalTo(dAtA []byte) (int, error) { |
| 6387 | var i int |
| 6388 | _ = i |
| 6389 | var l int |
| 6390 | _ = l |
| 6391 | if m.ID != 0 { |
| 6392 | dAtA[i] = 0x8 |
| 6393 | i++ |
| 6394 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6395 | } |
| 6396 | if m.Remaining_TTL != 0 { |
| 6397 | dAtA[i] = 0x10 |
| 6398 | i++ |
| 6399 | i = encodeVarintRpc(dAtA, i, uint64(m.Remaining_TTL)) |
| 6400 | } |
| 6401 | return i, nil |
| 6402 | } |
| 6403 | |
| 6404 | func (m *LeaseCheckpointRequest) Marshal() (dAtA []byte, err error) { |
| 6405 | size := m.Size() |
| 6406 | dAtA = make([]byte, size) |
| 6407 | n, err := m.MarshalTo(dAtA) |
| 6408 | if err != nil { |
| 6409 | return nil, err |
| 6410 | } |
| 6411 | return dAtA[:n], nil |
| 6412 | } |
| 6413 | |
| 6414 | func (m *LeaseCheckpointRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6415 | var i int |
| 6416 | _ = i |
| 6417 | var l int |
| 6418 | _ = l |
| 6419 | if len(m.Checkpoints) > 0 { |
| 6420 | for _, msg := range m.Checkpoints { |
| 6421 | dAtA[i] = 0xa |
| 6422 | i++ |
| 6423 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 6424 | n, err := msg.MarshalTo(dAtA[i:]) |
| 6425 | if err != nil { |
| 6426 | return 0, err |
| 6427 | } |
| 6428 | i += n |
| 6429 | } |
| 6430 | } |
| 6431 | return i, nil |
| 6432 | } |
| 6433 | |
| 6434 | func (m *LeaseCheckpointResponse) Marshal() (dAtA []byte, err error) { |
| 6435 | size := m.Size() |
| 6436 | dAtA = make([]byte, size) |
| 6437 | n, err := m.MarshalTo(dAtA) |
| 6438 | if err != nil { |
| 6439 | return nil, err |
| 6440 | } |
| 6441 | return dAtA[:n], nil |
| 6442 | } |
| 6443 | |
| 6444 | func (m *LeaseCheckpointResponse) MarshalTo(dAtA []byte) (int, error) { |
| 6445 | var i int |
| 6446 | _ = i |
| 6447 | var l int |
| 6448 | _ = l |
| 6449 | if m.Header != nil { |
| 6450 | dAtA[i] = 0xa |
| 6451 | i++ |
| 6452 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 6453 | n30, err := m.Header.MarshalTo(dAtA[i:]) |
| 6454 | if err != nil { |
| 6455 | return 0, err |
| 6456 | } |
| 6457 | i += n30 |
| 6458 | } |
| 6459 | return i, nil |
| 6460 | } |
| 6461 | |
| 6462 | func (m *LeaseKeepAliveRequest) Marshal() (dAtA []byte, err error) { |
| 6463 | size := m.Size() |
| 6464 | dAtA = make([]byte, size) |
| 6465 | n, err := m.MarshalTo(dAtA) |
| 6466 | if err != nil { |
| 6467 | return nil, err |
| 6468 | } |
| 6469 | return dAtA[:n], nil |
| 6470 | } |
| 6471 | |
| 6472 | func (m *LeaseKeepAliveRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6473 | var i int |
| 6474 | _ = i |
| 6475 | var l int |
| 6476 | _ = l |
| 6477 | if m.ID != 0 { |
| 6478 | dAtA[i] = 0x8 |
| 6479 | i++ |
| 6480 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6481 | } |
| 6482 | return i, nil |
| 6483 | } |
| 6484 | |
| 6485 | func (m *LeaseKeepAliveResponse) Marshal() (dAtA []byte, err error) { |
| 6486 | size := m.Size() |
| 6487 | dAtA = make([]byte, size) |
| 6488 | n, err := m.MarshalTo(dAtA) |
| 6489 | if err != nil { |
| 6490 | return nil, err |
| 6491 | } |
| 6492 | return dAtA[:n], nil |
| 6493 | } |
| 6494 | |
| 6495 | func (m *LeaseKeepAliveResponse) MarshalTo(dAtA []byte) (int, error) { |
| 6496 | var i int |
| 6497 | _ = i |
| 6498 | var l int |
| 6499 | _ = l |
| 6500 | if m.Header != nil { |
| 6501 | dAtA[i] = 0xa |
| 6502 | i++ |
| 6503 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 6504 | n31, err := m.Header.MarshalTo(dAtA[i:]) |
| 6505 | if err != nil { |
| 6506 | return 0, err |
| 6507 | } |
| 6508 | i += n31 |
| 6509 | } |
| 6510 | if m.ID != 0 { |
| 6511 | dAtA[i] = 0x10 |
| 6512 | i++ |
| 6513 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6514 | } |
| 6515 | if m.TTL != 0 { |
| 6516 | dAtA[i] = 0x18 |
| 6517 | i++ |
| 6518 | i = encodeVarintRpc(dAtA, i, uint64(m.TTL)) |
| 6519 | } |
| 6520 | return i, nil |
| 6521 | } |
| 6522 | |
| 6523 | func (m *LeaseTimeToLiveRequest) Marshal() (dAtA []byte, err error) { |
| 6524 | size := m.Size() |
| 6525 | dAtA = make([]byte, size) |
| 6526 | n, err := m.MarshalTo(dAtA) |
| 6527 | if err != nil { |
| 6528 | return nil, err |
| 6529 | } |
| 6530 | return dAtA[:n], nil |
| 6531 | } |
| 6532 | |
| 6533 | func (m *LeaseTimeToLiveRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6534 | var i int |
| 6535 | _ = i |
| 6536 | var l int |
| 6537 | _ = l |
| 6538 | if m.ID != 0 { |
| 6539 | dAtA[i] = 0x8 |
| 6540 | i++ |
| 6541 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6542 | } |
| 6543 | if m.Keys { |
| 6544 | dAtA[i] = 0x10 |
| 6545 | i++ |
| 6546 | if m.Keys { |
| 6547 | dAtA[i] = 1 |
| 6548 | } else { |
| 6549 | dAtA[i] = 0 |
| 6550 | } |
| 6551 | i++ |
| 6552 | } |
| 6553 | return i, nil |
| 6554 | } |
| 6555 | |
| 6556 | func (m *LeaseTimeToLiveResponse) Marshal() (dAtA []byte, err error) { |
| 6557 | size := m.Size() |
| 6558 | dAtA = make([]byte, size) |
| 6559 | n, err := m.MarshalTo(dAtA) |
| 6560 | if err != nil { |
| 6561 | return nil, err |
| 6562 | } |
| 6563 | return dAtA[:n], nil |
| 6564 | } |
| 6565 | |
| 6566 | func (m *LeaseTimeToLiveResponse) MarshalTo(dAtA []byte) (int, error) { |
| 6567 | var i int |
| 6568 | _ = i |
| 6569 | var l int |
| 6570 | _ = l |
| 6571 | if m.Header != nil { |
| 6572 | dAtA[i] = 0xa |
| 6573 | i++ |
| 6574 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 6575 | n32, err := m.Header.MarshalTo(dAtA[i:]) |
| 6576 | if err != nil { |
| 6577 | return 0, err |
| 6578 | } |
| 6579 | i += n32 |
| 6580 | } |
| 6581 | if m.ID != 0 { |
| 6582 | dAtA[i] = 0x10 |
| 6583 | i++ |
| 6584 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6585 | } |
| 6586 | if m.TTL != 0 { |
| 6587 | dAtA[i] = 0x18 |
| 6588 | i++ |
| 6589 | i = encodeVarintRpc(dAtA, i, uint64(m.TTL)) |
| 6590 | } |
| 6591 | if m.GrantedTTL != 0 { |
| 6592 | dAtA[i] = 0x20 |
| 6593 | i++ |
| 6594 | i = encodeVarintRpc(dAtA, i, uint64(m.GrantedTTL)) |
| 6595 | } |
| 6596 | if len(m.Keys) > 0 { |
| 6597 | for _, b := range m.Keys { |
| 6598 | dAtA[i] = 0x2a |
| 6599 | i++ |
| 6600 | i = encodeVarintRpc(dAtA, i, uint64(len(b))) |
| 6601 | i += copy(dAtA[i:], b) |
| 6602 | } |
| 6603 | } |
| 6604 | return i, nil |
| 6605 | } |
| 6606 | |
| 6607 | func (m *LeaseLeasesRequest) Marshal() (dAtA []byte, err error) { |
| 6608 | size := m.Size() |
| 6609 | dAtA = make([]byte, size) |
| 6610 | n, err := m.MarshalTo(dAtA) |
| 6611 | if err != nil { |
| 6612 | return nil, err |
| 6613 | } |
| 6614 | return dAtA[:n], nil |
| 6615 | } |
| 6616 | |
| 6617 | func (m *LeaseLeasesRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6618 | var i int |
| 6619 | _ = i |
| 6620 | var l int |
| 6621 | _ = l |
| 6622 | return i, nil |
| 6623 | } |
| 6624 | |
| 6625 | func (m *LeaseStatus) Marshal() (dAtA []byte, err error) { |
| 6626 | size := m.Size() |
| 6627 | dAtA = make([]byte, size) |
| 6628 | n, err := m.MarshalTo(dAtA) |
| 6629 | if err != nil { |
| 6630 | return nil, err |
| 6631 | } |
| 6632 | return dAtA[:n], nil |
| 6633 | } |
| 6634 | |
| 6635 | func (m *LeaseStatus) MarshalTo(dAtA []byte) (int, error) { |
| 6636 | var i int |
| 6637 | _ = i |
| 6638 | var l int |
| 6639 | _ = l |
| 6640 | if m.ID != 0 { |
| 6641 | dAtA[i] = 0x8 |
| 6642 | i++ |
| 6643 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6644 | } |
| 6645 | return i, nil |
| 6646 | } |
| 6647 | |
| 6648 | func (m *LeaseLeasesResponse) Marshal() (dAtA []byte, err error) { |
| 6649 | size := m.Size() |
| 6650 | dAtA = make([]byte, size) |
| 6651 | n, err := m.MarshalTo(dAtA) |
| 6652 | if err != nil { |
| 6653 | return nil, err |
| 6654 | } |
| 6655 | return dAtA[:n], nil |
| 6656 | } |
| 6657 | |
| 6658 | func (m *LeaseLeasesResponse) MarshalTo(dAtA []byte) (int, error) { |
| 6659 | var i int |
| 6660 | _ = i |
| 6661 | var l int |
| 6662 | _ = l |
| 6663 | if m.Header != nil { |
| 6664 | dAtA[i] = 0xa |
| 6665 | i++ |
| 6666 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 6667 | n33, err := m.Header.MarshalTo(dAtA[i:]) |
| 6668 | if err != nil { |
| 6669 | return 0, err |
| 6670 | } |
| 6671 | i += n33 |
| 6672 | } |
| 6673 | if len(m.Leases) > 0 { |
| 6674 | for _, msg := range m.Leases { |
| 6675 | dAtA[i] = 0x12 |
| 6676 | i++ |
| 6677 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 6678 | n, err := msg.MarshalTo(dAtA[i:]) |
| 6679 | if err != nil { |
| 6680 | return 0, err |
| 6681 | } |
| 6682 | i += n |
| 6683 | } |
| 6684 | } |
| 6685 | return i, nil |
| 6686 | } |
| 6687 | |
| 6688 | func (m *Member) Marshal() (dAtA []byte, err error) { |
| 6689 | size := m.Size() |
| 6690 | dAtA = make([]byte, size) |
| 6691 | n, err := m.MarshalTo(dAtA) |
| 6692 | if err != nil { |
| 6693 | return nil, err |
| 6694 | } |
| 6695 | return dAtA[:n], nil |
| 6696 | } |
| 6697 | |
| 6698 | func (m *Member) MarshalTo(dAtA []byte) (int, error) { |
| 6699 | var i int |
| 6700 | _ = i |
| 6701 | var l int |
| 6702 | _ = l |
| 6703 | if m.ID != 0 { |
| 6704 | dAtA[i] = 0x8 |
| 6705 | i++ |
| 6706 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6707 | } |
| 6708 | if len(m.Name) > 0 { |
| 6709 | dAtA[i] = 0x12 |
| 6710 | i++ |
| 6711 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 6712 | i += copy(dAtA[i:], m.Name) |
| 6713 | } |
| 6714 | if len(m.PeerURLs) > 0 { |
| 6715 | for _, s := range m.PeerURLs { |
| 6716 | dAtA[i] = 0x1a |
| 6717 | i++ |
| 6718 | l = len(s) |
| 6719 | for l >= 1<<7 { |
| 6720 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 6721 | l >>= 7 |
| 6722 | i++ |
| 6723 | } |
| 6724 | dAtA[i] = uint8(l) |
| 6725 | i++ |
| 6726 | i += copy(dAtA[i:], s) |
| 6727 | } |
| 6728 | } |
| 6729 | if len(m.ClientURLs) > 0 { |
| 6730 | for _, s := range m.ClientURLs { |
| 6731 | dAtA[i] = 0x22 |
| 6732 | i++ |
| 6733 | l = len(s) |
| 6734 | for l >= 1<<7 { |
| 6735 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 6736 | l >>= 7 |
| 6737 | i++ |
| 6738 | } |
| 6739 | dAtA[i] = uint8(l) |
| 6740 | i++ |
| 6741 | i += copy(dAtA[i:], s) |
| 6742 | } |
| 6743 | } |
| 6744 | return i, nil |
| 6745 | } |
| 6746 | |
| 6747 | func (m *MemberAddRequest) Marshal() (dAtA []byte, err error) { |
| 6748 | size := m.Size() |
| 6749 | dAtA = make([]byte, size) |
| 6750 | n, err := m.MarshalTo(dAtA) |
| 6751 | if err != nil { |
| 6752 | return nil, err |
| 6753 | } |
| 6754 | return dAtA[:n], nil |
| 6755 | } |
| 6756 | |
| 6757 | func (m *MemberAddRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6758 | var i int |
| 6759 | _ = i |
| 6760 | var l int |
| 6761 | _ = l |
| 6762 | if len(m.PeerURLs) > 0 { |
| 6763 | for _, s := range m.PeerURLs { |
| 6764 | dAtA[i] = 0xa |
| 6765 | i++ |
| 6766 | l = len(s) |
| 6767 | for l >= 1<<7 { |
| 6768 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 6769 | l >>= 7 |
| 6770 | i++ |
| 6771 | } |
| 6772 | dAtA[i] = uint8(l) |
| 6773 | i++ |
| 6774 | i += copy(dAtA[i:], s) |
| 6775 | } |
| 6776 | } |
| 6777 | return i, nil |
| 6778 | } |
| 6779 | |
| 6780 | func (m *MemberAddResponse) Marshal() (dAtA []byte, err error) { |
| 6781 | size := m.Size() |
| 6782 | dAtA = make([]byte, size) |
| 6783 | n, err := m.MarshalTo(dAtA) |
| 6784 | if err != nil { |
| 6785 | return nil, err |
| 6786 | } |
| 6787 | return dAtA[:n], nil |
| 6788 | } |
| 6789 | |
| 6790 | func (m *MemberAddResponse) MarshalTo(dAtA []byte) (int, error) { |
| 6791 | var i int |
| 6792 | _ = i |
| 6793 | var l int |
| 6794 | _ = l |
| 6795 | if m.Header != nil { |
| 6796 | dAtA[i] = 0xa |
| 6797 | i++ |
| 6798 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 6799 | n34, err := m.Header.MarshalTo(dAtA[i:]) |
| 6800 | if err != nil { |
| 6801 | return 0, err |
| 6802 | } |
| 6803 | i += n34 |
| 6804 | } |
| 6805 | if m.Member != nil { |
| 6806 | dAtA[i] = 0x12 |
| 6807 | i++ |
| 6808 | i = encodeVarintRpc(dAtA, i, uint64(m.Member.Size())) |
| 6809 | n35, err := m.Member.MarshalTo(dAtA[i:]) |
| 6810 | if err != nil { |
| 6811 | return 0, err |
| 6812 | } |
| 6813 | i += n35 |
| 6814 | } |
| 6815 | if len(m.Members) > 0 { |
| 6816 | for _, msg := range m.Members { |
| 6817 | dAtA[i] = 0x1a |
| 6818 | i++ |
| 6819 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 6820 | n, err := msg.MarshalTo(dAtA[i:]) |
| 6821 | if err != nil { |
| 6822 | return 0, err |
| 6823 | } |
| 6824 | i += n |
| 6825 | } |
| 6826 | } |
| 6827 | return i, nil |
| 6828 | } |
| 6829 | |
| 6830 | func (m *MemberRemoveRequest) Marshal() (dAtA []byte, err error) { |
| 6831 | size := m.Size() |
| 6832 | dAtA = make([]byte, size) |
| 6833 | n, err := m.MarshalTo(dAtA) |
| 6834 | if err != nil { |
| 6835 | return nil, err |
| 6836 | } |
| 6837 | return dAtA[:n], nil |
| 6838 | } |
| 6839 | |
| 6840 | func (m *MemberRemoveRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6841 | var i int |
| 6842 | _ = i |
| 6843 | var l int |
| 6844 | _ = l |
| 6845 | if m.ID != 0 { |
| 6846 | dAtA[i] = 0x8 |
| 6847 | i++ |
| 6848 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6849 | } |
| 6850 | return i, nil |
| 6851 | } |
| 6852 | |
| 6853 | func (m *MemberRemoveResponse) Marshal() (dAtA []byte, err error) { |
| 6854 | size := m.Size() |
| 6855 | dAtA = make([]byte, size) |
| 6856 | n, err := m.MarshalTo(dAtA) |
| 6857 | if err != nil { |
| 6858 | return nil, err |
| 6859 | } |
| 6860 | return dAtA[:n], nil |
| 6861 | } |
| 6862 | |
| 6863 | func (m *MemberRemoveResponse) MarshalTo(dAtA []byte) (int, error) { |
| 6864 | var i int |
| 6865 | _ = i |
| 6866 | var l int |
| 6867 | _ = l |
| 6868 | if m.Header != nil { |
| 6869 | dAtA[i] = 0xa |
| 6870 | i++ |
| 6871 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 6872 | n36, err := m.Header.MarshalTo(dAtA[i:]) |
| 6873 | if err != nil { |
| 6874 | return 0, err |
| 6875 | } |
| 6876 | i += n36 |
| 6877 | } |
| 6878 | if len(m.Members) > 0 { |
| 6879 | for _, msg := range m.Members { |
| 6880 | dAtA[i] = 0x12 |
| 6881 | i++ |
| 6882 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 6883 | n, err := msg.MarshalTo(dAtA[i:]) |
| 6884 | if err != nil { |
| 6885 | return 0, err |
| 6886 | } |
| 6887 | i += n |
| 6888 | } |
| 6889 | } |
| 6890 | return i, nil |
| 6891 | } |
| 6892 | |
| 6893 | func (m *MemberUpdateRequest) Marshal() (dAtA []byte, err error) { |
| 6894 | size := m.Size() |
| 6895 | dAtA = make([]byte, size) |
| 6896 | n, err := m.MarshalTo(dAtA) |
| 6897 | if err != nil { |
| 6898 | return nil, err |
| 6899 | } |
| 6900 | return dAtA[:n], nil |
| 6901 | } |
| 6902 | |
| 6903 | func (m *MemberUpdateRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6904 | var i int |
| 6905 | _ = i |
| 6906 | var l int |
| 6907 | _ = l |
| 6908 | if m.ID != 0 { |
| 6909 | dAtA[i] = 0x8 |
| 6910 | i++ |
| 6911 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6912 | } |
| 6913 | if len(m.PeerURLs) > 0 { |
| 6914 | for _, s := range m.PeerURLs { |
| 6915 | dAtA[i] = 0x12 |
| 6916 | i++ |
| 6917 | l = len(s) |
| 6918 | for l >= 1<<7 { |
| 6919 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 6920 | l >>= 7 |
| 6921 | i++ |
| 6922 | } |
| 6923 | dAtA[i] = uint8(l) |
| 6924 | i++ |
| 6925 | i += copy(dAtA[i:], s) |
| 6926 | } |
| 6927 | } |
| 6928 | return i, nil |
| 6929 | } |
| 6930 | |
| 6931 | func (m *MemberUpdateResponse) Marshal() (dAtA []byte, err error) { |
| 6932 | size := m.Size() |
| 6933 | dAtA = make([]byte, size) |
| 6934 | n, err := m.MarshalTo(dAtA) |
| 6935 | if err != nil { |
| 6936 | return nil, err |
| 6937 | } |
| 6938 | return dAtA[:n], nil |
| 6939 | } |
| 6940 | |
| 6941 | func (m *MemberUpdateResponse) MarshalTo(dAtA []byte) (int, error) { |
| 6942 | var i int |
| 6943 | _ = i |
| 6944 | var l int |
| 6945 | _ = l |
| 6946 | if m.Header != nil { |
| 6947 | dAtA[i] = 0xa |
| 6948 | i++ |
| 6949 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 6950 | n37, err := m.Header.MarshalTo(dAtA[i:]) |
| 6951 | if err != nil { |
| 6952 | return 0, err |
| 6953 | } |
| 6954 | i += n37 |
| 6955 | } |
| 6956 | if len(m.Members) > 0 { |
| 6957 | for _, msg := range m.Members { |
| 6958 | dAtA[i] = 0x12 |
| 6959 | i++ |
| 6960 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 6961 | n, err := msg.MarshalTo(dAtA[i:]) |
| 6962 | if err != nil { |
| 6963 | return 0, err |
| 6964 | } |
| 6965 | i += n |
| 6966 | } |
| 6967 | } |
| 6968 | return i, nil |
| 6969 | } |
| 6970 | |
| 6971 | func (m *MemberListRequest) Marshal() (dAtA []byte, err error) { |
| 6972 | size := m.Size() |
| 6973 | dAtA = make([]byte, size) |
| 6974 | n, err := m.MarshalTo(dAtA) |
| 6975 | if err != nil { |
| 6976 | return nil, err |
| 6977 | } |
| 6978 | return dAtA[:n], nil |
| 6979 | } |
| 6980 | |
| 6981 | func (m *MemberListRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6982 | var i int |
| 6983 | _ = i |
| 6984 | var l int |
| 6985 | _ = l |
| 6986 | return i, nil |
| 6987 | } |
| 6988 | |
| 6989 | func (m *MemberListResponse) Marshal() (dAtA []byte, err error) { |
| 6990 | size := m.Size() |
| 6991 | dAtA = make([]byte, size) |
| 6992 | n, err := m.MarshalTo(dAtA) |
| 6993 | if err != nil { |
| 6994 | return nil, err |
| 6995 | } |
| 6996 | return dAtA[:n], nil |
| 6997 | } |
| 6998 | |
| 6999 | func (m *MemberListResponse) MarshalTo(dAtA []byte) (int, error) { |
| 7000 | var i int |
| 7001 | _ = i |
| 7002 | var l int |
| 7003 | _ = l |
| 7004 | if m.Header != nil { |
| 7005 | dAtA[i] = 0xa |
| 7006 | i++ |
| 7007 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 7008 | n38, err := m.Header.MarshalTo(dAtA[i:]) |
| 7009 | if err != nil { |
| 7010 | return 0, err |
| 7011 | } |
| 7012 | i += n38 |
| 7013 | } |
| 7014 | if len(m.Members) > 0 { |
| 7015 | for _, msg := range m.Members { |
| 7016 | dAtA[i] = 0x12 |
| 7017 | i++ |
| 7018 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 7019 | n, err := msg.MarshalTo(dAtA[i:]) |
| 7020 | if err != nil { |
| 7021 | return 0, err |
| 7022 | } |
| 7023 | i += n |
| 7024 | } |
| 7025 | } |
| 7026 | return i, nil |
| 7027 | } |
| 7028 | |
| 7029 | func (m *DefragmentRequest) Marshal() (dAtA []byte, err error) { |
| 7030 | size := m.Size() |
| 7031 | dAtA = make([]byte, size) |
| 7032 | n, err := m.MarshalTo(dAtA) |
| 7033 | if err != nil { |
| 7034 | return nil, err |
| 7035 | } |
| 7036 | return dAtA[:n], nil |
| 7037 | } |
| 7038 | |
| 7039 | func (m *DefragmentRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7040 | var i int |
| 7041 | _ = i |
| 7042 | var l int |
| 7043 | _ = l |
| 7044 | return i, nil |
| 7045 | } |
| 7046 | |
| 7047 | func (m *DefragmentResponse) Marshal() (dAtA []byte, err error) { |
| 7048 | size := m.Size() |
| 7049 | dAtA = make([]byte, size) |
| 7050 | n, err := m.MarshalTo(dAtA) |
| 7051 | if err != nil { |
| 7052 | return nil, err |
| 7053 | } |
| 7054 | return dAtA[:n], nil |
| 7055 | } |
| 7056 | |
| 7057 | func (m *DefragmentResponse) MarshalTo(dAtA []byte) (int, error) { |
| 7058 | var i int |
| 7059 | _ = i |
| 7060 | var l int |
| 7061 | _ = l |
| 7062 | if m.Header != nil { |
| 7063 | dAtA[i] = 0xa |
| 7064 | i++ |
| 7065 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 7066 | n39, err := m.Header.MarshalTo(dAtA[i:]) |
| 7067 | if err != nil { |
| 7068 | return 0, err |
| 7069 | } |
| 7070 | i += n39 |
| 7071 | } |
| 7072 | return i, nil |
| 7073 | } |
| 7074 | |
| 7075 | func (m *MoveLeaderRequest) Marshal() (dAtA []byte, err error) { |
| 7076 | size := m.Size() |
| 7077 | dAtA = make([]byte, size) |
| 7078 | n, err := m.MarshalTo(dAtA) |
| 7079 | if err != nil { |
| 7080 | return nil, err |
| 7081 | } |
| 7082 | return dAtA[:n], nil |
| 7083 | } |
| 7084 | |
| 7085 | func (m *MoveLeaderRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7086 | var i int |
| 7087 | _ = i |
| 7088 | var l int |
| 7089 | _ = l |
| 7090 | if m.TargetID != 0 { |
| 7091 | dAtA[i] = 0x8 |
| 7092 | i++ |
| 7093 | i = encodeVarintRpc(dAtA, i, uint64(m.TargetID)) |
| 7094 | } |
| 7095 | return i, nil |
| 7096 | } |
| 7097 | |
| 7098 | func (m *MoveLeaderResponse) Marshal() (dAtA []byte, err error) { |
| 7099 | size := m.Size() |
| 7100 | dAtA = make([]byte, size) |
| 7101 | n, err := m.MarshalTo(dAtA) |
| 7102 | if err != nil { |
| 7103 | return nil, err |
| 7104 | } |
| 7105 | return dAtA[:n], nil |
| 7106 | } |
| 7107 | |
| 7108 | func (m *MoveLeaderResponse) MarshalTo(dAtA []byte) (int, error) { |
| 7109 | var i int |
| 7110 | _ = i |
| 7111 | var l int |
| 7112 | _ = l |
| 7113 | if m.Header != nil { |
| 7114 | dAtA[i] = 0xa |
| 7115 | i++ |
| 7116 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 7117 | n40, err := m.Header.MarshalTo(dAtA[i:]) |
| 7118 | if err != nil { |
| 7119 | return 0, err |
| 7120 | } |
| 7121 | i += n40 |
| 7122 | } |
| 7123 | return i, nil |
| 7124 | } |
| 7125 | |
| 7126 | func (m *AlarmRequest) Marshal() (dAtA []byte, err error) { |
| 7127 | size := m.Size() |
| 7128 | dAtA = make([]byte, size) |
| 7129 | n, err := m.MarshalTo(dAtA) |
| 7130 | if err != nil { |
| 7131 | return nil, err |
| 7132 | } |
| 7133 | return dAtA[:n], nil |
| 7134 | } |
| 7135 | |
| 7136 | func (m *AlarmRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7137 | var i int |
| 7138 | _ = i |
| 7139 | var l int |
| 7140 | _ = l |
| 7141 | if m.Action != 0 { |
| 7142 | dAtA[i] = 0x8 |
| 7143 | i++ |
| 7144 | i = encodeVarintRpc(dAtA, i, uint64(m.Action)) |
| 7145 | } |
| 7146 | if m.MemberID != 0 { |
| 7147 | dAtA[i] = 0x10 |
| 7148 | i++ |
| 7149 | i = encodeVarintRpc(dAtA, i, uint64(m.MemberID)) |
| 7150 | } |
| 7151 | if m.Alarm != 0 { |
| 7152 | dAtA[i] = 0x18 |
| 7153 | i++ |
| 7154 | i = encodeVarintRpc(dAtA, i, uint64(m.Alarm)) |
| 7155 | } |
| 7156 | return i, nil |
| 7157 | } |
| 7158 | |
| 7159 | func (m *AlarmMember) Marshal() (dAtA []byte, err error) { |
| 7160 | size := m.Size() |
| 7161 | dAtA = make([]byte, size) |
| 7162 | n, err := m.MarshalTo(dAtA) |
| 7163 | if err != nil { |
| 7164 | return nil, err |
| 7165 | } |
| 7166 | return dAtA[:n], nil |
| 7167 | } |
| 7168 | |
| 7169 | func (m *AlarmMember) MarshalTo(dAtA []byte) (int, error) { |
| 7170 | var i int |
| 7171 | _ = i |
| 7172 | var l int |
| 7173 | _ = l |
| 7174 | if m.MemberID != 0 { |
| 7175 | dAtA[i] = 0x8 |
| 7176 | i++ |
| 7177 | i = encodeVarintRpc(dAtA, i, uint64(m.MemberID)) |
| 7178 | } |
| 7179 | if m.Alarm != 0 { |
| 7180 | dAtA[i] = 0x10 |
| 7181 | i++ |
| 7182 | i = encodeVarintRpc(dAtA, i, uint64(m.Alarm)) |
| 7183 | } |
| 7184 | return i, nil |
| 7185 | } |
| 7186 | |
| 7187 | func (m *AlarmResponse) Marshal() (dAtA []byte, err error) { |
| 7188 | size := m.Size() |
| 7189 | dAtA = make([]byte, size) |
| 7190 | n, err := m.MarshalTo(dAtA) |
| 7191 | if err != nil { |
| 7192 | return nil, err |
| 7193 | } |
| 7194 | return dAtA[:n], nil |
| 7195 | } |
| 7196 | |
| 7197 | func (m *AlarmResponse) MarshalTo(dAtA []byte) (int, error) { |
| 7198 | var i int |
| 7199 | _ = i |
| 7200 | var l int |
| 7201 | _ = l |
| 7202 | if m.Header != nil { |
| 7203 | dAtA[i] = 0xa |
| 7204 | i++ |
| 7205 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 7206 | n41, err := m.Header.MarshalTo(dAtA[i:]) |
| 7207 | if err != nil { |
| 7208 | return 0, err |
| 7209 | } |
| 7210 | i += n41 |
| 7211 | } |
| 7212 | if len(m.Alarms) > 0 { |
| 7213 | for _, msg := range m.Alarms { |
| 7214 | dAtA[i] = 0x12 |
| 7215 | i++ |
| 7216 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 7217 | n, err := msg.MarshalTo(dAtA[i:]) |
| 7218 | if err != nil { |
| 7219 | return 0, err |
| 7220 | } |
| 7221 | i += n |
| 7222 | } |
| 7223 | } |
| 7224 | return i, nil |
| 7225 | } |
| 7226 | |
| 7227 | func (m *StatusRequest) Marshal() (dAtA []byte, err error) { |
| 7228 | size := m.Size() |
| 7229 | dAtA = make([]byte, size) |
| 7230 | n, err := m.MarshalTo(dAtA) |
| 7231 | if err != nil { |
| 7232 | return nil, err |
| 7233 | } |
| 7234 | return dAtA[:n], nil |
| 7235 | } |
| 7236 | |
| 7237 | func (m *StatusRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7238 | var i int |
| 7239 | _ = i |
| 7240 | var l int |
| 7241 | _ = l |
| 7242 | return i, nil |
| 7243 | } |
| 7244 | |
| 7245 | func (m *StatusResponse) Marshal() (dAtA []byte, err error) { |
| 7246 | size := m.Size() |
| 7247 | dAtA = make([]byte, size) |
| 7248 | n, err := m.MarshalTo(dAtA) |
| 7249 | if err != nil { |
| 7250 | return nil, err |
| 7251 | } |
| 7252 | return dAtA[:n], nil |
| 7253 | } |
| 7254 | |
| 7255 | func (m *StatusResponse) MarshalTo(dAtA []byte) (int, error) { |
| 7256 | var i int |
| 7257 | _ = i |
| 7258 | var l int |
| 7259 | _ = l |
| 7260 | if m.Header != nil { |
| 7261 | dAtA[i] = 0xa |
| 7262 | i++ |
| 7263 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 7264 | n42, err := m.Header.MarshalTo(dAtA[i:]) |
| 7265 | if err != nil { |
| 7266 | return 0, err |
| 7267 | } |
| 7268 | i += n42 |
| 7269 | } |
| 7270 | if len(m.Version) > 0 { |
| 7271 | dAtA[i] = 0x12 |
| 7272 | i++ |
| 7273 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Version))) |
| 7274 | i += copy(dAtA[i:], m.Version) |
| 7275 | } |
| 7276 | if m.DbSize != 0 { |
| 7277 | dAtA[i] = 0x18 |
| 7278 | i++ |
| 7279 | i = encodeVarintRpc(dAtA, i, uint64(m.DbSize)) |
| 7280 | } |
| 7281 | if m.Leader != 0 { |
| 7282 | dAtA[i] = 0x20 |
| 7283 | i++ |
| 7284 | i = encodeVarintRpc(dAtA, i, uint64(m.Leader)) |
| 7285 | } |
| 7286 | if m.RaftIndex != 0 { |
| 7287 | dAtA[i] = 0x28 |
| 7288 | i++ |
| 7289 | i = encodeVarintRpc(dAtA, i, uint64(m.RaftIndex)) |
| 7290 | } |
| 7291 | if m.RaftTerm != 0 { |
| 7292 | dAtA[i] = 0x30 |
| 7293 | i++ |
| 7294 | i = encodeVarintRpc(dAtA, i, uint64(m.RaftTerm)) |
| 7295 | } |
| 7296 | if m.RaftAppliedIndex != 0 { |
| 7297 | dAtA[i] = 0x38 |
| 7298 | i++ |
| 7299 | i = encodeVarintRpc(dAtA, i, uint64(m.RaftAppliedIndex)) |
| 7300 | } |
| 7301 | if len(m.Errors) > 0 { |
| 7302 | for _, s := range m.Errors { |
| 7303 | dAtA[i] = 0x42 |
| 7304 | i++ |
| 7305 | l = len(s) |
| 7306 | for l >= 1<<7 { |
| 7307 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 7308 | l >>= 7 |
| 7309 | i++ |
| 7310 | } |
| 7311 | dAtA[i] = uint8(l) |
| 7312 | i++ |
| 7313 | i += copy(dAtA[i:], s) |
| 7314 | } |
| 7315 | } |
| 7316 | if m.DbSizeInUse != 0 { |
| 7317 | dAtA[i] = 0x48 |
| 7318 | i++ |
| 7319 | i = encodeVarintRpc(dAtA, i, uint64(m.DbSizeInUse)) |
| 7320 | } |
| 7321 | return i, nil |
| 7322 | } |
| 7323 | |
| 7324 | func (m *AuthEnableRequest) Marshal() (dAtA []byte, err error) { |
| 7325 | size := m.Size() |
| 7326 | dAtA = make([]byte, size) |
| 7327 | n, err := m.MarshalTo(dAtA) |
| 7328 | if err != nil { |
| 7329 | return nil, err |
| 7330 | } |
| 7331 | return dAtA[:n], nil |
| 7332 | } |
| 7333 | |
| 7334 | func (m *AuthEnableRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7335 | var i int |
| 7336 | _ = i |
| 7337 | var l int |
| 7338 | _ = l |
| 7339 | return i, nil |
| 7340 | } |
| 7341 | |
| 7342 | func (m *AuthDisableRequest) Marshal() (dAtA []byte, err error) { |
| 7343 | size := m.Size() |
| 7344 | dAtA = make([]byte, size) |
| 7345 | n, err := m.MarshalTo(dAtA) |
| 7346 | if err != nil { |
| 7347 | return nil, err |
| 7348 | } |
| 7349 | return dAtA[:n], nil |
| 7350 | } |
| 7351 | |
| 7352 | func (m *AuthDisableRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7353 | var i int |
| 7354 | _ = i |
| 7355 | var l int |
| 7356 | _ = l |
| 7357 | return i, nil |
| 7358 | } |
| 7359 | |
| 7360 | func (m *AuthenticateRequest) Marshal() (dAtA []byte, err error) { |
| 7361 | size := m.Size() |
| 7362 | dAtA = make([]byte, size) |
| 7363 | n, err := m.MarshalTo(dAtA) |
| 7364 | if err != nil { |
| 7365 | return nil, err |
| 7366 | } |
| 7367 | return dAtA[:n], nil |
| 7368 | } |
| 7369 | |
| 7370 | func (m *AuthenticateRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7371 | var i int |
| 7372 | _ = i |
| 7373 | var l int |
| 7374 | _ = l |
| 7375 | if len(m.Name) > 0 { |
| 7376 | dAtA[i] = 0xa |
| 7377 | i++ |
| 7378 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 7379 | i += copy(dAtA[i:], m.Name) |
| 7380 | } |
| 7381 | if len(m.Password) > 0 { |
| 7382 | dAtA[i] = 0x12 |
| 7383 | i++ |
| 7384 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Password))) |
| 7385 | i += copy(dAtA[i:], m.Password) |
| 7386 | } |
| 7387 | return i, nil |
| 7388 | } |
| 7389 | |
| 7390 | func (m *AuthUserAddRequest) Marshal() (dAtA []byte, err error) { |
| 7391 | size := m.Size() |
| 7392 | dAtA = make([]byte, size) |
| 7393 | n, err := m.MarshalTo(dAtA) |
| 7394 | if err != nil { |
| 7395 | return nil, err |
| 7396 | } |
| 7397 | return dAtA[:n], nil |
| 7398 | } |
| 7399 | |
| 7400 | func (m *AuthUserAddRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7401 | var i int |
| 7402 | _ = i |
| 7403 | var l int |
| 7404 | _ = l |
| 7405 | if len(m.Name) > 0 { |
| 7406 | dAtA[i] = 0xa |
| 7407 | i++ |
| 7408 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 7409 | i += copy(dAtA[i:], m.Name) |
| 7410 | } |
| 7411 | if len(m.Password) > 0 { |
| 7412 | dAtA[i] = 0x12 |
| 7413 | i++ |
| 7414 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Password))) |
| 7415 | i += copy(dAtA[i:], m.Password) |
| 7416 | } |
| 7417 | return i, nil |
| 7418 | } |
| 7419 | |
| 7420 | func (m *AuthUserGetRequest) Marshal() (dAtA []byte, err error) { |
| 7421 | size := m.Size() |
| 7422 | dAtA = make([]byte, size) |
| 7423 | n, err := m.MarshalTo(dAtA) |
| 7424 | if err != nil { |
| 7425 | return nil, err |
| 7426 | } |
| 7427 | return dAtA[:n], nil |
| 7428 | } |
| 7429 | |
| 7430 | func (m *AuthUserGetRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7431 | var i int |
| 7432 | _ = i |
| 7433 | var l int |
| 7434 | _ = l |
| 7435 | if len(m.Name) > 0 { |
| 7436 | dAtA[i] = 0xa |
| 7437 | i++ |
| 7438 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 7439 | i += copy(dAtA[i:], m.Name) |
| 7440 | } |
| 7441 | return i, nil |
| 7442 | } |
| 7443 | |
| 7444 | func (m *AuthUserDeleteRequest) Marshal() (dAtA []byte, err error) { |
| 7445 | size := m.Size() |
| 7446 | dAtA = make([]byte, size) |
| 7447 | n, err := m.MarshalTo(dAtA) |
| 7448 | if err != nil { |
| 7449 | return nil, err |
| 7450 | } |
| 7451 | return dAtA[:n], nil |
| 7452 | } |
| 7453 | |
| 7454 | func (m *AuthUserDeleteRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7455 | var i int |
| 7456 | _ = i |
| 7457 | var l int |
| 7458 | _ = l |
| 7459 | if len(m.Name) > 0 { |
| 7460 | dAtA[i] = 0xa |
| 7461 | i++ |
| 7462 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 7463 | i += copy(dAtA[i:], m.Name) |
| 7464 | } |
| 7465 | return i, nil |
| 7466 | } |
| 7467 | |
| 7468 | func (m *AuthUserChangePasswordRequest) Marshal() (dAtA []byte, err error) { |
| 7469 | size := m.Size() |
| 7470 | dAtA = make([]byte, size) |
| 7471 | n, err := m.MarshalTo(dAtA) |
| 7472 | if err != nil { |
| 7473 | return nil, err |
| 7474 | } |
| 7475 | return dAtA[:n], nil |
| 7476 | } |
| 7477 | |
| 7478 | func (m *AuthUserChangePasswordRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7479 | var i int |
| 7480 | _ = i |
| 7481 | var l int |
| 7482 | _ = l |
| 7483 | if len(m.Name) > 0 { |
| 7484 | dAtA[i] = 0xa |
| 7485 | i++ |
| 7486 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 7487 | i += copy(dAtA[i:], m.Name) |
| 7488 | } |
| 7489 | if len(m.Password) > 0 { |
| 7490 | dAtA[i] = 0x12 |
| 7491 | i++ |
| 7492 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Password))) |
| 7493 | i += copy(dAtA[i:], m.Password) |
| 7494 | } |
| 7495 | return i, nil |
| 7496 | } |
| 7497 | |
| 7498 | func (m *AuthUserGrantRoleRequest) Marshal() (dAtA []byte, err error) { |
| 7499 | size := m.Size() |
| 7500 | dAtA = make([]byte, size) |
| 7501 | n, err := m.MarshalTo(dAtA) |
| 7502 | if err != nil { |
| 7503 | return nil, err |
| 7504 | } |
| 7505 | return dAtA[:n], nil |
| 7506 | } |
| 7507 | |
| 7508 | func (m *AuthUserGrantRoleRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7509 | var i int |
| 7510 | _ = i |
| 7511 | var l int |
| 7512 | _ = l |
| 7513 | if len(m.User) > 0 { |
| 7514 | dAtA[i] = 0xa |
| 7515 | i++ |
| 7516 | i = encodeVarintRpc(dAtA, i, uint64(len(m.User))) |
| 7517 | i += copy(dAtA[i:], m.User) |
| 7518 | } |
| 7519 | if len(m.Role) > 0 { |
| 7520 | dAtA[i] = 0x12 |
| 7521 | i++ |
| 7522 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Role))) |
| 7523 | i += copy(dAtA[i:], m.Role) |
| 7524 | } |
| 7525 | return i, nil |
| 7526 | } |
| 7527 | |
| 7528 | func (m *AuthUserRevokeRoleRequest) Marshal() (dAtA []byte, err error) { |
| 7529 | size := m.Size() |
| 7530 | dAtA = make([]byte, size) |
| 7531 | n, err := m.MarshalTo(dAtA) |
| 7532 | if err != nil { |
| 7533 | return nil, err |
| 7534 | } |
| 7535 | return dAtA[:n], nil |
| 7536 | } |
| 7537 | |
| 7538 | func (m *AuthUserRevokeRoleRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7539 | var i int |
| 7540 | _ = i |
| 7541 | var l int |
| 7542 | _ = l |
| 7543 | if len(m.Name) > 0 { |
| 7544 | dAtA[i] = 0xa |
| 7545 | i++ |
| 7546 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 7547 | i += copy(dAtA[i:], m.Name) |
| 7548 | } |
| 7549 | if len(m.Role) > 0 { |
| 7550 | dAtA[i] = 0x12 |
| 7551 | i++ |
| 7552 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Role))) |
| 7553 | i += copy(dAtA[i:], m.Role) |
| 7554 | } |
| 7555 | return i, nil |
| 7556 | } |
| 7557 | |
| 7558 | func (m *AuthRoleAddRequest) Marshal() (dAtA []byte, err error) { |
| 7559 | size := m.Size() |
| 7560 | dAtA = make([]byte, size) |
| 7561 | n, err := m.MarshalTo(dAtA) |
| 7562 | if err != nil { |
| 7563 | return nil, err |
| 7564 | } |
| 7565 | return dAtA[:n], nil |
| 7566 | } |
| 7567 | |
| 7568 | func (m *AuthRoleAddRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7569 | var i int |
| 7570 | _ = i |
| 7571 | var l int |
| 7572 | _ = l |
| 7573 | if len(m.Name) > 0 { |
| 7574 | dAtA[i] = 0xa |
| 7575 | i++ |
| 7576 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 7577 | i += copy(dAtA[i:], m.Name) |
| 7578 | } |
| 7579 | return i, nil |
| 7580 | } |
| 7581 | |
| 7582 | func (m *AuthRoleGetRequest) Marshal() (dAtA []byte, err error) { |
| 7583 | size := m.Size() |
| 7584 | dAtA = make([]byte, size) |
| 7585 | n, err := m.MarshalTo(dAtA) |
| 7586 | if err != nil { |
| 7587 | return nil, err |
| 7588 | } |
| 7589 | return dAtA[:n], nil |
| 7590 | } |
| 7591 | |
| 7592 | func (m *AuthRoleGetRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7593 | var i int |
| 7594 | _ = i |
| 7595 | var l int |
| 7596 | _ = l |
| 7597 | if len(m.Role) > 0 { |
| 7598 | dAtA[i] = 0xa |
| 7599 | i++ |
| 7600 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Role))) |
| 7601 | i += copy(dAtA[i:], m.Role) |
| 7602 | } |
| 7603 | return i, nil |
| 7604 | } |
| 7605 | |
| 7606 | func (m *AuthUserListRequest) Marshal() (dAtA []byte, err error) { |
| 7607 | size := m.Size() |
| 7608 | dAtA = make([]byte, size) |
| 7609 | n, err := m.MarshalTo(dAtA) |
| 7610 | if err != nil { |
| 7611 | return nil, err |
| 7612 | } |
| 7613 | return dAtA[:n], nil |
| 7614 | } |
| 7615 | |
| 7616 | func (m *AuthUserListRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7617 | var i int |
| 7618 | _ = i |
| 7619 | var l int |
| 7620 | _ = l |
| 7621 | return i, nil |
| 7622 | } |
| 7623 | |
| 7624 | func (m *AuthRoleListRequest) Marshal() (dAtA []byte, err error) { |
| 7625 | size := m.Size() |
| 7626 | dAtA = make([]byte, size) |
| 7627 | n, err := m.MarshalTo(dAtA) |
| 7628 | if err != nil { |
| 7629 | return nil, err |
| 7630 | } |
| 7631 | return dAtA[:n], nil |
| 7632 | } |
| 7633 | |
| 7634 | func (m *AuthRoleListRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7635 | var i int |
| 7636 | _ = i |
| 7637 | var l int |
| 7638 | _ = l |
| 7639 | return i, nil |
| 7640 | } |
| 7641 | |
| 7642 | func (m *AuthRoleDeleteRequest) Marshal() (dAtA []byte, err error) { |
| 7643 | size := m.Size() |
| 7644 | dAtA = make([]byte, size) |
| 7645 | n, err := m.MarshalTo(dAtA) |
| 7646 | if err != nil { |
| 7647 | return nil, err |
| 7648 | } |
| 7649 | return dAtA[:n], nil |
| 7650 | } |
| 7651 | |
| 7652 | func (m *AuthRoleDeleteRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7653 | var i int |
| 7654 | _ = i |
| 7655 | var l int |
| 7656 | _ = l |
| 7657 | if len(m.Role) > 0 { |
| 7658 | dAtA[i] = 0xa |
| 7659 | i++ |
| 7660 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Role))) |
| 7661 | i += copy(dAtA[i:], m.Role) |
| 7662 | } |
| 7663 | return i, nil |
| 7664 | } |
| 7665 | |
| 7666 | func (m *AuthRoleGrantPermissionRequest) Marshal() (dAtA []byte, err error) { |
| 7667 | size := m.Size() |
| 7668 | dAtA = make([]byte, size) |
| 7669 | n, err := m.MarshalTo(dAtA) |
| 7670 | if err != nil { |
| 7671 | return nil, err |
| 7672 | } |
| 7673 | return dAtA[:n], nil |
| 7674 | } |
| 7675 | |
| 7676 | func (m *AuthRoleGrantPermissionRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7677 | var i int |
| 7678 | _ = i |
| 7679 | var l int |
| 7680 | _ = l |
| 7681 | if len(m.Name) > 0 { |
| 7682 | dAtA[i] = 0xa |
| 7683 | i++ |
| 7684 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 7685 | i += copy(dAtA[i:], m.Name) |
| 7686 | } |
| 7687 | if m.Perm != nil { |
| 7688 | dAtA[i] = 0x12 |
| 7689 | i++ |
| 7690 | i = encodeVarintRpc(dAtA, i, uint64(m.Perm.Size())) |
| 7691 | n43, err := m.Perm.MarshalTo(dAtA[i:]) |
| 7692 | if err != nil { |
| 7693 | return 0, err |
| 7694 | } |
| 7695 | i += n43 |
| 7696 | } |
| 7697 | return i, nil |
| 7698 | } |
| 7699 | |
| 7700 | func (m *AuthRoleRevokePermissionRequest) Marshal() (dAtA []byte, err error) { |
| 7701 | size := m.Size() |
| 7702 | dAtA = make([]byte, size) |
| 7703 | n, err := m.MarshalTo(dAtA) |
| 7704 | if err != nil { |
| 7705 | return nil, err |
| 7706 | } |
| 7707 | return dAtA[:n], nil |
| 7708 | } |
| 7709 | |
| 7710 | func (m *AuthRoleRevokePermissionRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7711 | var i int |
| 7712 | _ = i |
| 7713 | var l int |
| 7714 | _ = l |
| 7715 | if len(m.Role) > 0 { |
| 7716 | dAtA[i] = 0xa |
| 7717 | i++ |
| 7718 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Role))) |
| 7719 | i += copy(dAtA[i:], m.Role) |
| 7720 | } |
| 7721 | if len(m.Key) > 0 { |
| 7722 | dAtA[i] = 0x12 |
| 7723 | i++ |
| 7724 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Key))) |
| 7725 | i += copy(dAtA[i:], m.Key) |
| 7726 | } |
| 7727 | if len(m.RangeEnd) > 0 { |
| 7728 | dAtA[i] = 0x1a |
| 7729 | i++ |
| 7730 | i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd))) |
| 7731 | i += copy(dAtA[i:], m.RangeEnd) |
| 7732 | } |
| 7733 | return i, nil |
| 7734 | } |
| 7735 | |
| 7736 | func (m *AuthEnableResponse) Marshal() (dAtA []byte, err error) { |
| 7737 | size := m.Size() |
| 7738 | dAtA = make([]byte, size) |
| 7739 | n, err := m.MarshalTo(dAtA) |
| 7740 | if err != nil { |
| 7741 | return nil, err |
| 7742 | } |
| 7743 | return dAtA[:n], nil |
| 7744 | } |
| 7745 | |
| 7746 | func (m *AuthEnableResponse) MarshalTo(dAtA []byte) (int, error) { |
| 7747 | var i int |
| 7748 | _ = i |
| 7749 | var l int |
| 7750 | _ = l |
| 7751 | if m.Header != nil { |
| 7752 | dAtA[i] = 0xa |
| 7753 | i++ |
| 7754 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 7755 | n44, err := m.Header.MarshalTo(dAtA[i:]) |
| 7756 | if err != nil { |
| 7757 | return 0, err |
| 7758 | } |
| 7759 | i += n44 |
| 7760 | } |
| 7761 | return i, nil |
| 7762 | } |
| 7763 | |
| 7764 | func (m *AuthDisableResponse) Marshal() (dAtA []byte, err error) { |
| 7765 | size := m.Size() |
| 7766 | dAtA = make([]byte, size) |
| 7767 | n, err := m.MarshalTo(dAtA) |
| 7768 | if err != nil { |
| 7769 | return nil, err |
| 7770 | } |
| 7771 | return dAtA[:n], nil |
| 7772 | } |
| 7773 | |
| 7774 | func (m *AuthDisableResponse) MarshalTo(dAtA []byte) (int, error) { |
| 7775 | var i int |
| 7776 | _ = i |
| 7777 | var l int |
| 7778 | _ = l |
| 7779 | if m.Header != nil { |
| 7780 | dAtA[i] = 0xa |
| 7781 | i++ |
| 7782 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 7783 | n45, err := m.Header.MarshalTo(dAtA[i:]) |
| 7784 | if err != nil { |
| 7785 | return 0, err |
| 7786 | } |
| 7787 | i += n45 |
| 7788 | } |
| 7789 | return i, nil |
| 7790 | } |
| 7791 | |
| 7792 | func (m *AuthenticateResponse) Marshal() (dAtA []byte, err error) { |
| 7793 | size := m.Size() |
| 7794 | dAtA = make([]byte, size) |
| 7795 | n, err := m.MarshalTo(dAtA) |
| 7796 | if err != nil { |
| 7797 | return nil, err |
| 7798 | } |
| 7799 | return dAtA[:n], nil |
| 7800 | } |
| 7801 | |
| 7802 | func (m *AuthenticateResponse) MarshalTo(dAtA []byte) (int, error) { |
| 7803 | var i int |
| 7804 | _ = i |
| 7805 | var l int |
| 7806 | _ = l |
| 7807 | if m.Header != nil { |
| 7808 | dAtA[i] = 0xa |
| 7809 | i++ |
| 7810 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 7811 | n46, err := m.Header.MarshalTo(dAtA[i:]) |
| 7812 | if err != nil { |
| 7813 | return 0, err |
| 7814 | } |
| 7815 | i += n46 |
| 7816 | } |
| 7817 | if len(m.Token) > 0 { |
| 7818 | dAtA[i] = 0x12 |
| 7819 | i++ |
| 7820 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Token))) |
| 7821 | i += copy(dAtA[i:], m.Token) |
| 7822 | } |
| 7823 | return i, nil |
| 7824 | } |
| 7825 | |
| 7826 | func (m *AuthUserAddResponse) Marshal() (dAtA []byte, err error) { |
| 7827 | size := m.Size() |
| 7828 | dAtA = make([]byte, size) |
| 7829 | n, err := m.MarshalTo(dAtA) |
| 7830 | if err != nil { |
| 7831 | return nil, err |
| 7832 | } |
| 7833 | return dAtA[:n], nil |
| 7834 | } |
| 7835 | |
| 7836 | func (m *AuthUserAddResponse) MarshalTo(dAtA []byte) (int, error) { |
| 7837 | var i int |
| 7838 | _ = i |
| 7839 | var l int |
| 7840 | _ = l |
| 7841 | if m.Header != nil { |
| 7842 | dAtA[i] = 0xa |
| 7843 | i++ |
| 7844 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 7845 | n47, err := m.Header.MarshalTo(dAtA[i:]) |
| 7846 | if err != nil { |
| 7847 | return 0, err |
| 7848 | } |
| 7849 | i += n47 |
| 7850 | } |
| 7851 | return i, nil |
| 7852 | } |
| 7853 | |
| 7854 | func (m *AuthUserGetResponse) Marshal() (dAtA []byte, err error) { |
| 7855 | size := m.Size() |
| 7856 | dAtA = make([]byte, size) |
| 7857 | n, err := m.MarshalTo(dAtA) |
| 7858 | if err != nil { |
| 7859 | return nil, err |
| 7860 | } |
| 7861 | return dAtA[:n], nil |
| 7862 | } |
| 7863 | |
| 7864 | func (m *AuthUserGetResponse) MarshalTo(dAtA []byte) (int, error) { |
| 7865 | var i int |
| 7866 | _ = i |
| 7867 | var l int |
| 7868 | _ = l |
| 7869 | if m.Header != nil { |
| 7870 | dAtA[i] = 0xa |
| 7871 | i++ |
| 7872 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 7873 | n48, err := m.Header.MarshalTo(dAtA[i:]) |
| 7874 | if err != nil { |
| 7875 | return 0, err |
| 7876 | } |
| 7877 | i += n48 |
| 7878 | } |
| 7879 | if len(m.Roles) > 0 { |
| 7880 | for _, s := range m.Roles { |
| 7881 | dAtA[i] = 0x12 |
| 7882 | i++ |
| 7883 | l = len(s) |
| 7884 | for l >= 1<<7 { |
| 7885 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 7886 | l >>= 7 |
| 7887 | i++ |
| 7888 | } |
| 7889 | dAtA[i] = uint8(l) |
| 7890 | i++ |
| 7891 | i += copy(dAtA[i:], s) |
| 7892 | } |
| 7893 | } |
| 7894 | return i, nil |
| 7895 | } |
| 7896 | |
| 7897 | func (m *AuthUserDeleteResponse) Marshal() (dAtA []byte, err error) { |
| 7898 | size := m.Size() |
| 7899 | dAtA = make([]byte, size) |
| 7900 | n, err := m.MarshalTo(dAtA) |
| 7901 | if err != nil { |
| 7902 | return nil, err |
| 7903 | } |
| 7904 | return dAtA[:n], nil |
| 7905 | } |
| 7906 | |
| 7907 | func (m *AuthUserDeleteResponse) MarshalTo(dAtA []byte) (int, error) { |
| 7908 | var i int |
| 7909 | _ = i |
| 7910 | var l int |
| 7911 | _ = l |
| 7912 | if m.Header != nil { |
| 7913 | dAtA[i] = 0xa |
| 7914 | i++ |
| 7915 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 7916 | n49, err := m.Header.MarshalTo(dAtA[i:]) |
| 7917 | if err != nil { |
| 7918 | return 0, err |
| 7919 | } |
| 7920 | i += n49 |
| 7921 | } |
| 7922 | return i, nil |
| 7923 | } |
| 7924 | |
| 7925 | func (m *AuthUserChangePasswordResponse) Marshal() (dAtA []byte, err error) { |
| 7926 | size := m.Size() |
| 7927 | dAtA = make([]byte, size) |
| 7928 | n, err := m.MarshalTo(dAtA) |
| 7929 | if err != nil { |
| 7930 | return nil, err |
| 7931 | } |
| 7932 | return dAtA[:n], nil |
| 7933 | } |
| 7934 | |
| 7935 | func (m *AuthUserChangePasswordResponse) MarshalTo(dAtA []byte) (int, error) { |
| 7936 | var i int |
| 7937 | _ = i |
| 7938 | var l int |
| 7939 | _ = l |
| 7940 | if m.Header != nil { |
| 7941 | dAtA[i] = 0xa |
| 7942 | i++ |
| 7943 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 7944 | n50, err := m.Header.MarshalTo(dAtA[i:]) |
| 7945 | if err != nil { |
| 7946 | return 0, err |
| 7947 | } |
| 7948 | i += n50 |
| 7949 | } |
| 7950 | return i, nil |
| 7951 | } |
| 7952 | |
| 7953 | func (m *AuthUserGrantRoleResponse) Marshal() (dAtA []byte, err error) { |
| 7954 | size := m.Size() |
| 7955 | dAtA = make([]byte, size) |
| 7956 | n, err := m.MarshalTo(dAtA) |
| 7957 | if err != nil { |
| 7958 | return nil, err |
| 7959 | } |
| 7960 | return dAtA[:n], nil |
| 7961 | } |
| 7962 | |
| 7963 | func (m *AuthUserGrantRoleResponse) MarshalTo(dAtA []byte) (int, error) { |
| 7964 | var i int |
| 7965 | _ = i |
| 7966 | var l int |
| 7967 | _ = l |
| 7968 | if m.Header != nil { |
| 7969 | dAtA[i] = 0xa |
| 7970 | i++ |
| 7971 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 7972 | n51, err := m.Header.MarshalTo(dAtA[i:]) |
| 7973 | if err != nil { |
| 7974 | return 0, err |
| 7975 | } |
| 7976 | i += n51 |
| 7977 | } |
| 7978 | return i, nil |
| 7979 | } |
| 7980 | |
| 7981 | func (m *AuthUserRevokeRoleResponse) Marshal() (dAtA []byte, err error) { |
| 7982 | size := m.Size() |
| 7983 | dAtA = make([]byte, size) |
| 7984 | n, err := m.MarshalTo(dAtA) |
| 7985 | if err != nil { |
| 7986 | return nil, err |
| 7987 | } |
| 7988 | return dAtA[:n], nil |
| 7989 | } |
| 7990 | |
| 7991 | func (m *AuthUserRevokeRoleResponse) MarshalTo(dAtA []byte) (int, error) { |
| 7992 | var i int |
| 7993 | _ = i |
| 7994 | var l int |
| 7995 | _ = l |
| 7996 | if m.Header != nil { |
| 7997 | dAtA[i] = 0xa |
| 7998 | i++ |
| 7999 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 8000 | n52, err := m.Header.MarshalTo(dAtA[i:]) |
| 8001 | if err != nil { |
| 8002 | return 0, err |
| 8003 | } |
| 8004 | i += n52 |
| 8005 | } |
| 8006 | return i, nil |
| 8007 | } |
| 8008 | |
| 8009 | func (m *AuthRoleAddResponse) Marshal() (dAtA []byte, err error) { |
| 8010 | size := m.Size() |
| 8011 | dAtA = make([]byte, size) |
| 8012 | n, err := m.MarshalTo(dAtA) |
| 8013 | if err != nil { |
| 8014 | return nil, err |
| 8015 | } |
| 8016 | return dAtA[:n], nil |
| 8017 | } |
| 8018 | |
| 8019 | func (m *AuthRoleAddResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8020 | var i int |
| 8021 | _ = i |
| 8022 | var l int |
| 8023 | _ = l |
| 8024 | if m.Header != nil { |
| 8025 | dAtA[i] = 0xa |
| 8026 | i++ |
| 8027 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 8028 | n53, err := m.Header.MarshalTo(dAtA[i:]) |
| 8029 | if err != nil { |
| 8030 | return 0, err |
| 8031 | } |
| 8032 | i += n53 |
| 8033 | } |
| 8034 | return i, nil |
| 8035 | } |
| 8036 | |
| 8037 | func (m *AuthRoleGetResponse) Marshal() (dAtA []byte, err error) { |
| 8038 | size := m.Size() |
| 8039 | dAtA = make([]byte, size) |
| 8040 | n, err := m.MarshalTo(dAtA) |
| 8041 | if err != nil { |
| 8042 | return nil, err |
| 8043 | } |
| 8044 | return dAtA[:n], nil |
| 8045 | } |
| 8046 | |
| 8047 | func (m *AuthRoleGetResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8048 | var i int |
| 8049 | _ = i |
| 8050 | var l int |
| 8051 | _ = l |
| 8052 | if m.Header != nil { |
| 8053 | dAtA[i] = 0xa |
| 8054 | i++ |
| 8055 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 8056 | n54, err := m.Header.MarshalTo(dAtA[i:]) |
| 8057 | if err != nil { |
| 8058 | return 0, err |
| 8059 | } |
| 8060 | i += n54 |
| 8061 | } |
| 8062 | if len(m.Perm) > 0 { |
| 8063 | for _, msg := range m.Perm { |
| 8064 | dAtA[i] = 0x12 |
| 8065 | i++ |
| 8066 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 8067 | n, err := msg.MarshalTo(dAtA[i:]) |
| 8068 | if err != nil { |
| 8069 | return 0, err |
| 8070 | } |
| 8071 | i += n |
| 8072 | } |
| 8073 | } |
| 8074 | return i, nil |
| 8075 | } |
| 8076 | |
| 8077 | func (m *AuthRoleListResponse) Marshal() (dAtA []byte, err error) { |
| 8078 | size := m.Size() |
| 8079 | dAtA = make([]byte, size) |
| 8080 | n, err := m.MarshalTo(dAtA) |
| 8081 | if err != nil { |
| 8082 | return nil, err |
| 8083 | } |
| 8084 | return dAtA[:n], nil |
| 8085 | } |
| 8086 | |
| 8087 | func (m *AuthRoleListResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8088 | var i int |
| 8089 | _ = i |
| 8090 | var l int |
| 8091 | _ = l |
| 8092 | if m.Header != nil { |
| 8093 | dAtA[i] = 0xa |
| 8094 | i++ |
| 8095 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 8096 | n55, err := m.Header.MarshalTo(dAtA[i:]) |
| 8097 | if err != nil { |
| 8098 | return 0, err |
| 8099 | } |
| 8100 | i += n55 |
| 8101 | } |
| 8102 | if len(m.Roles) > 0 { |
| 8103 | for _, s := range m.Roles { |
| 8104 | dAtA[i] = 0x12 |
| 8105 | i++ |
| 8106 | l = len(s) |
| 8107 | for l >= 1<<7 { |
| 8108 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 8109 | l >>= 7 |
| 8110 | i++ |
| 8111 | } |
| 8112 | dAtA[i] = uint8(l) |
| 8113 | i++ |
| 8114 | i += copy(dAtA[i:], s) |
| 8115 | } |
| 8116 | } |
| 8117 | return i, nil |
| 8118 | } |
| 8119 | |
| 8120 | func (m *AuthUserListResponse) Marshal() (dAtA []byte, err error) { |
| 8121 | size := m.Size() |
| 8122 | dAtA = make([]byte, size) |
| 8123 | n, err := m.MarshalTo(dAtA) |
| 8124 | if err != nil { |
| 8125 | return nil, err |
| 8126 | } |
| 8127 | return dAtA[:n], nil |
| 8128 | } |
| 8129 | |
| 8130 | func (m *AuthUserListResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8131 | var i int |
| 8132 | _ = i |
| 8133 | var l int |
| 8134 | _ = l |
| 8135 | if m.Header != nil { |
| 8136 | dAtA[i] = 0xa |
| 8137 | i++ |
| 8138 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 8139 | n56, err := m.Header.MarshalTo(dAtA[i:]) |
| 8140 | if err != nil { |
| 8141 | return 0, err |
| 8142 | } |
| 8143 | i += n56 |
| 8144 | } |
| 8145 | if len(m.Users) > 0 { |
| 8146 | for _, s := range m.Users { |
| 8147 | dAtA[i] = 0x12 |
| 8148 | i++ |
| 8149 | l = len(s) |
| 8150 | for l >= 1<<7 { |
| 8151 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 8152 | l >>= 7 |
| 8153 | i++ |
| 8154 | } |
| 8155 | dAtA[i] = uint8(l) |
| 8156 | i++ |
| 8157 | i += copy(dAtA[i:], s) |
| 8158 | } |
| 8159 | } |
| 8160 | return i, nil |
| 8161 | } |
| 8162 | |
| 8163 | func (m *AuthRoleDeleteResponse) Marshal() (dAtA []byte, err error) { |
| 8164 | size := m.Size() |
| 8165 | dAtA = make([]byte, size) |
| 8166 | n, err := m.MarshalTo(dAtA) |
| 8167 | if err != nil { |
| 8168 | return nil, err |
| 8169 | } |
| 8170 | return dAtA[:n], nil |
| 8171 | } |
| 8172 | |
| 8173 | func (m *AuthRoleDeleteResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8174 | var i int |
| 8175 | _ = i |
| 8176 | var l int |
| 8177 | _ = l |
| 8178 | if m.Header != nil { |
| 8179 | dAtA[i] = 0xa |
| 8180 | i++ |
| 8181 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 8182 | n57, err := m.Header.MarshalTo(dAtA[i:]) |
| 8183 | if err != nil { |
| 8184 | return 0, err |
| 8185 | } |
| 8186 | i += n57 |
| 8187 | } |
| 8188 | return i, nil |
| 8189 | } |
| 8190 | |
| 8191 | func (m *AuthRoleGrantPermissionResponse) Marshal() (dAtA []byte, err error) { |
| 8192 | size := m.Size() |
| 8193 | dAtA = make([]byte, size) |
| 8194 | n, err := m.MarshalTo(dAtA) |
| 8195 | if err != nil { |
| 8196 | return nil, err |
| 8197 | } |
| 8198 | return dAtA[:n], nil |
| 8199 | } |
| 8200 | |
| 8201 | func (m *AuthRoleGrantPermissionResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8202 | var i int |
| 8203 | _ = i |
| 8204 | var l int |
| 8205 | _ = l |
| 8206 | if m.Header != nil { |
| 8207 | dAtA[i] = 0xa |
| 8208 | i++ |
| 8209 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 8210 | n58, err := m.Header.MarshalTo(dAtA[i:]) |
| 8211 | if err != nil { |
| 8212 | return 0, err |
| 8213 | } |
| 8214 | i += n58 |
| 8215 | } |
| 8216 | return i, nil |
| 8217 | } |
| 8218 | |
| 8219 | func (m *AuthRoleRevokePermissionResponse) Marshal() (dAtA []byte, err error) { |
| 8220 | size := m.Size() |
| 8221 | dAtA = make([]byte, size) |
| 8222 | n, err := m.MarshalTo(dAtA) |
| 8223 | if err != nil { |
| 8224 | return nil, err |
| 8225 | } |
| 8226 | return dAtA[:n], nil |
| 8227 | } |
| 8228 | |
| 8229 | func (m *AuthRoleRevokePermissionResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8230 | var i int |
| 8231 | _ = i |
| 8232 | var l int |
| 8233 | _ = l |
| 8234 | if m.Header != nil { |
| 8235 | dAtA[i] = 0xa |
| 8236 | i++ |
| 8237 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 8238 | n59, err := m.Header.MarshalTo(dAtA[i:]) |
| 8239 | if err != nil { |
| 8240 | return 0, err |
| 8241 | } |
| 8242 | i += n59 |
| 8243 | } |
| 8244 | return i, nil |
| 8245 | } |
| 8246 | |
| 8247 | func encodeVarintRpc(dAtA []byte, offset int, v uint64) int { |
| 8248 | for v >= 1<<7 { |
| 8249 | dAtA[offset] = uint8(v&0x7f | 0x80) |
| 8250 | v >>= 7 |
| 8251 | offset++ |
| 8252 | } |
| 8253 | dAtA[offset] = uint8(v) |
| 8254 | return offset + 1 |
| 8255 | } |
| 8256 | func (m *ResponseHeader) Size() (n int) { |
| 8257 | var l int |
| 8258 | _ = l |
| 8259 | if m.ClusterId != 0 { |
| 8260 | n += 1 + sovRpc(uint64(m.ClusterId)) |
| 8261 | } |
| 8262 | if m.MemberId != 0 { |
| 8263 | n += 1 + sovRpc(uint64(m.MemberId)) |
| 8264 | } |
| 8265 | if m.Revision != 0 { |
| 8266 | n += 1 + sovRpc(uint64(m.Revision)) |
| 8267 | } |
| 8268 | if m.RaftTerm != 0 { |
| 8269 | n += 1 + sovRpc(uint64(m.RaftTerm)) |
| 8270 | } |
| 8271 | return n |
| 8272 | } |
| 8273 | |
| 8274 | func (m *RangeRequest) Size() (n int) { |
| 8275 | var l int |
| 8276 | _ = l |
| 8277 | l = len(m.Key) |
| 8278 | if l > 0 { |
| 8279 | n += 1 + l + sovRpc(uint64(l)) |
| 8280 | } |
| 8281 | l = len(m.RangeEnd) |
| 8282 | if l > 0 { |
| 8283 | n += 1 + l + sovRpc(uint64(l)) |
| 8284 | } |
| 8285 | if m.Limit != 0 { |
| 8286 | n += 1 + sovRpc(uint64(m.Limit)) |
| 8287 | } |
| 8288 | if m.Revision != 0 { |
| 8289 | n += 1 + sovRpc(uint64(m.Revision)) |
| 8290 | } |
| 8291 | if m.SortOrder != 0 { |
| 8292 | n += 1 + sovRpc(uint64(m.SortOrder)) |
| 8293 | } |
| 8294 | if m.SortTarget != 0 { |
| 8295 | n += 1 + sovRpc(uint64(m.SortTarget)) |
| 8296 | } |
| 8297 | if m.Serializable { |
| 8298 | n += 2 |
| 8299 | } |
| 8300 | if m.KeysOnly { |
| 8301 | n += 2 |
| 8302 | } |
| 8303 | if m.CountOnly { |
| 8304 | n += 2 |
| 8305 | } |
| 8306 | if m.MinModRevision != 0 { |
| 8307 | n += 1 + sovRpc(uint64(m.MinModRevision)) |
| 8308 | } |
| 8309 | if m.MaxModRevision != 0 { |
| 8310 | n += 1 + sovRpc(uint64(m.MaxModRevision)) |
| 8311 | } |
| 8312 | if m.MinCreateRevision != 0 { |
| 8313 | n += 1 + sovRpc(uint64(m.MinCreateRevision)) |
| 8314 | } |
| 8315 | if m.MaxCreateRevision != 0 { |
| 8316 | n += 1 + sovRpc(uint64(m.MaxCreateRevision)) |
| 8317 | } |
| 8318 | return n |
| 8319 | } |
| 8320 | |
| 8321 | func (m *RangeResponse) Size() (n int) { |
| 8322 | var l int |
| 8323 | _ = l |
| 8324 | if m.Header != nil { |
| 8325 | l = m.Header.Size() |
| 8326 | n += 1 + l + sovRpc(uint64(l)) |
| 8327 | } |
| 8328 | if len(m.Kvs) > 0 { |
| 8329 | for _, e := range m.Kvs { |
| 8330 | l = e.Size() |
| 8331 | n += 1 + l + sovRpc(uint64(l)) |
| 8332 | } |
| 8333 | } |
| 8334 | if m.More { |
| 8335 | n += 2 |
| 8336 | } |
| 8337 | if m.Count != 0 { |
| 8338 | n += 1 + sovRpc(uint64(m.Count)) |
| 8339 | } |
| 8340 | return n |
| 8341 | } |
| 8342 | |
| 8343 | func (m *PutRequest) Size() (n int) { |
| 8344 | var l int |
| 8345 | _ = l |
| 8346 | l = len(m.Key) |
| 8347 | if l > 0 { |
| 8348 | n += 1 + l + sovRpc(uint64(l)) |
| 8349 | } |
| 8350 | l = len(m.Value) |
| 8351 | if l > 0 { |
| 8352 | n += 1 + l + sovRpc(uint64(l)) |
| 8353 | } |
| 8354 | if m.Lease != 0 { |
| 8355 | n += 1 + sovRpc(uint64(m.Lease)) |
| 8356 | } |
| 8357 | if m.PrevKv { |
| 8358 | n += 2 |
| 8359 | } |
| 8360 | if m.IgnoreValue { |
| 8361 | n += 2 |
| 8362 | } |
| 8363 | if m.IgnoreLease { |
| 8364 | n += 2 |
| 8365 | } |
| 8366 | return n |
| 8367 | } |
| 8368 | |
| 8369 | func (m *PutResponse) Size() (n int) { |
| 8370 | var l int |
| 8371 | _ = l |
| 8372 | if m.Header != nil { |
| 8373 | l = m.Header.Size() |
| 8374 | n += 1 + l + sovRpc(uint64(l)) |
| 8375 | } |
| 8376 | if m.PrevKv != nil { |
| 8377 | l = m.PrevKv.Size() |
| 8378 | n += 1 + l + sovRpc(uint64(l)) |
| 8379 | } |
| 8380 | return n |
| 8381 | } |
| 8382 | |
| 8383 | func (m *DeleteRangeRequest) Size() (n int) { |
| 8384 | var l int |
| 8385 | _ = l |
| 8386 | l = len(m.Key) |
| 8387 | if l > 0 { |
| 8388 | n += 1 + l + sovRpc(uint64(l)) |
| 8389 | } |
| 8390 | l = len(m.RangeEnd) |
| 8391 | if l > 0 { |
| 8392 | n += 1 + l + sovRpc(uint64(l)) |
| 8393 | } |
| 8394 | if m.PrevKv { |
| 8395 | n += 2 |
| 8396 | } |
| 8397 | return n |
| 8398 | } |
| 8399 | |
| 8400 | func (m *DeleteRangeResponse) Size() (n int) { |
| 8401 | var l int |
| 8402 | _ = l |
| 8403 | if m.Header != nil { |
| 8404 | l = m.Header.Size() |
| 8405 | n += 1 + l + sovRpc(uint64(l)) |
| 8406 | } |
| 8407 | if m.Deleted != 0 { |
| 8408 | n += 1 + sovRpc(uint64(m.Deleted)) |
| 8409 | } |
| 8410 | if len(m.PrevKvs) > 0 { |
| 8411 | for _, e := range m.PrevKvs { |
| 8412 | l = e.Size() |
| 8413 | n += 1 + l + sovRpc(uint64(l)) |
| 8414 | } |
| 8415 | } |
| 8416 | return n |
| 8417 | } |
| 8418 | |
| 8419 | func (m *RequestOp) Size() (n int) { |
| 8420 | var l int |
| 8421 | _ = l |
| 8422 | if m.Request != nil { |
| 8423 | n += m.Request.Size() |
| 8424 | } |
| 8425 | return n |
| 8426 | } |
| 8427 | |
| 8428 | func (m *RequestOp_RequestRange) Size() (n int) { |
| 8429 | var l int |
| 8430 | _ = l |
| 8431 | if m.RequestRange != nil { |
| 8432 | l = m.RequestRange.Size() |
| 8433 | n += 1 + l + sovRpc(uint64(l)) |
| 8434 | } |
| 8435 | return n |
| 8436 | } |
| 8437 | func (m *RequestOp_RequestPut) Size() (n int) { |
| 8438 | var l int |
| 8439 | _ = l |
| 8440 | if m.RequestPut != nil { |
| 8441 | l = m.RequestPut.Size() |
| 8442 | n += 1 + l + sovRpc(uint64(l)) |
| 8443 | } |
| 8444 | return n |
| 8445 | } |
| 8446 | func (m *RequestOp_RequestDeleteRange) Size() (n int) { |
| 8447 | var l int |
| 8448 | _ = l |
| 8449 | if m.RequestDeleteRange != nil { |
| 8450 | l = m.RequestDeleteRange.Size() |
| 8451 | n += 1 + l + sovRpc(uint64(l)) |
| 8452 | } |
| 8453 | return n |
| 8454 | } |
| 8455 | func (m *RequestOp_RequestTxn) Size() (n int) { |
| 8456 | var l int |
| 8457 | _ = l |
| 8458 | if m.RequestTxn != nil { |
| 8459 | l = m.RequestTxn.Size() |
| 8460 | n += 1 + l + sovRpc(uint64(l)) |
| 8461 | } |
| 8462 | return n |
| 8463 | } |
| 8464 | func (m *ResponseOp) Size() (n int) { |
| 8465 | var l int |
| 8466 | _ = l |
| 8467 | if m.Response != nil { |
| 8468 | n += m.Response.Size() |
| 8469 | } |
| 8470 | return n |
| 8471 | } |
| 8472 | |
| 8473 | func (m *ResponseOp_ResponseRange) Size() (n int) { |
| 8474 | var l int |
| 8475 | _ = l |
| 8476 | if m.ResponseRange != nil { |
| 8477 | l = m.ResponseRange.Size() |
| 8478 | n += 1 + l + sovRpc(uint64(l)) |
| 8479 | } |
| 8480 | return n |
| 8481 | } |
| 8482 | func (m *ResponseOp_ResponsePut) Size() (n int) { |
| 8483 | var l int |
| 8484 | _ = l |
| 8485 | if m.ResponsePut != nil { |
| 8486 | l = m.ResponsePut.Size() |
| 8487 | n += 1 + l + sovRpc(uint64(l)) |
| 8488 | } |
| 8489 | return n |
| 8490 | } |
| 8491 | func (m *ResponseOp_ResponseDeleteRange) Size() (n int) { |
| 8492 | var l int |
| 8493 | _ = l |
| 8494 | if m.ResponseDeleteRange != nil { |
| 8495 | l = m.ResponseDeleteRange.Size() |
| 8496 | n += 1 + l + sovRpc(uint64(l)) |
| 8497 | } |
| 8498 | return n |
| 8499 | } |
| 8500 | func (m *ResponseOp_ResponseTxn) Size() (n int) { |
| 8501 | var l int |
| 8502 | _ = l |
| 8503 | if m.ResponseTxn != nil { |
| 8504 | l = m.ResponseTxn.Size() |
| 8505 | n += 1 + l + sovRpc(uint64(l)) |
| 8506 | } |
| 8507 | return n |
| 8508 | } |
| 8509 | func (m *Compare) Size() (n int) { |
| 8510 | var l int |
| 8511 | _ = l |
| 8512 | if m.Result != 0 { |
| 8513 | n += 1 + sovRpc(uint64(m.Result)) |
| 8514 | } |
| 8515 | if m.Target != 0 { |
| 8516 | n += 1 + sovRpc(uint64(m.Target)) |
| 8517 | } |
| 8518 | l = len(m.Key) |
| 8519 | if l > 0 { |
| 8520 | n += 1 + l + sovRpc(uint64(l)) |
| 8521 | } |
| 8522 | if m.TargetUnion != nil { |
| 8523 | n += m.TargetUnion.Size() |
| 8524 | } |
| 8525 | l = len(m.RangeEnd) |
| 8526 | if l > 0 { |
| 8527 | n += 2 + l + sovRpc(uint64(l)) |
| 8528 | } |
| 8529 | return n |
| 8530 | } |
| 8531 | |
| 8532 | func (m *Compare_Version) Size() (n int) { |
| 8533 | var l int |
| 8534 | _ = l |
| 8535 | n += 1 + sovRpc(uint64(m.Version)) |
| 8536 | return n |
| 8537 | } |
| 8538 | func (m *Compare_CreateRevision) Size() (n int) { |
| 8539 | var l int |
| 8540 | _ = l |
| 8541 | n += 1 + sovRpc(uint64(m.CreateRevision)) |
| 8542 | return n |
| 8543 | } |
| 8544 | func (m *Compare_ModRevision) Size() (n int) { |
| 8545 | var l int |
| 8546 | _ = l |
| 8547 | n += 1 + sovRpc(uint64(m.ModRevision)) |
| 8548 | return n |
| 8549 | } |
| 8550 | func (m *Compare_Value) Size() (n int) { |
| 8551 | var l int |
| 8552 | _ = l |
| 8553 | if m.Value != nil { |
| 8554 | l = len(m.Value) |
| 8555 | n += 1 + l + sovRpc(uint64(l)) |
| 8556 | } |
| 8557 | return n |
| 8558 | } |
| 8559 | func (m *Compare_Lease) Size() (n int) { |
| 8560 | var l int |
| 8561 | _ = l |
| 8562 | n += 1 + sovRpc(uint64(m.Lease)) |
| 8563 | return n |
| 8564 | } |
| 8565 | func (m *TxnRequest) Size() (n int) { |
| 8566 | var l int |
| 8567 | _ = l |
| 8568 | if len(m.Compare) > 0 { |
| 8569 | for _, e := range m.Compare { |
| 8570 | l = e.Size() |
| 8571 | n += 1 + l + sovRpc(uint64(l)) |
| 8572 | } |
| 8573 | } |
| 8574 | if len(m.Success) > 0 { |
| 8575 | for _, e := range m.Success { |
| 8576 | l = e.Size() |
| 8577 | n += 1 + l + sovRpc(uint64(l)) |
| 8578 | } |
| 8579 | } |
| 8580 | if len(m.Failure) > 0 { |
| 8581 | for _, e := range m.Failure { |
| 8582 | l = e.Size() |
| 8583 | n += 1 + l + sovRpc(uint64(l)) |
| 8584 | } |
| 8585 | } |
| 8586 | return n |
| 8587 | } |
| 8588 | |
| 8589 | func (m *TxnResponse) Size() (n int) { |
| 8590 | var l int |
| 8591 | _ = l |
| 8592 | if m.Header != nil { |
| 8593 | l = m.Header.Size() |
| 8594 | n += 1 + l + sovRpc(uint64(l)) |
| 8595 | } |
| 8596 | if m.Succeeded { |
| 8597 | n += 2 |
| 8598 | } |
| 8599 | if len(m.Responses) > 0 { |
| 8600 | for _, e := range m.Responses { |
| 8601 | l = e.Size() |
| 8602 | n += 1 + l + sovRpc(uint64(l)) |
| 8603 | } |
| 8604 | } |
| 8605 | return n |
| 8606 | } |
| 8607 | |
| 8608 | func (m *CompactionRequest) Size() (n int) { |
| 8609 | var l int |
| 8610 | _ = l |
| 8611 | if m.Revision != 0 { |
| 8612 | n += 1 + sovRpc(uint64(m.Revision)) |
| 8613 | } |
| 8614 | if m.Physical { |
| 8615 | n += 2 |
| 8616 | } |
| 8617 | return n |
| 8618 | } |
| 8619 | |
| 8620 | func (m *CompactionResponse) Size() (n int) { |
| 8621 | var l int |
| 8622 | _ = l |
| 8623 | if m.Header != nil { |
| 8624 | l = m.Header.Size() |
| 8625 | n += 1 + l + sovRpc(uint64(l)) |
| 8626 | } |
| 8627 | return n |
| 8628 | } |
| 8629 | |
| 8630 | func (m *HashRequest) Size() (n int) { |
| 8631 | var l int |
| 8632 | _ = l |
| 8633 | return n |
| 8634 | } |
| 8635 | |
| 8636 | func (m *HashKVRequest) Size() (n int) { |
| 8637 | var l int |
| 8638 | _ = l |
| 8639 | if m.Revision != 0 { |
| 8640 | n += 1 + sovRpc(uint64(m.Revision)) |
| 8641 | } |
| 8642 | return n |
| 8643 | } |
| 8644 | |
| 8645 | func (m *HashKVResponse) Size() (n int) { |
| 8646 | var l int |
| 8647 | _ = l |
| 8648 | if m.Header != nil { |
| 8649 | l = m.Header.Size() |
| 8650 | n += 1 + l + sovRpc(uint64(l)) |
| 8651 | } |
| 8652 | if m.Hash != 0 { |
| 8653 | n += 1 + sovRpc(uint64(m.Hash)) |
| 8654 | } |
| 8655 | if m.CompactRevision != 0 { |
| 8656 | n += 1 + sovRpc(uint64(m.CompactRevision)) |
| 8657 | } |
| 8658 | return n |
| 8659 | } |
| 8660 | |
| 8661 | func (m *HashResponse) Size() (n int) { |
| 8662 | var l int |
| 8663 | _ = l |
| 8664 | if m.Header != nil { |
| 8665 | l = m.Header.Size() |
| 8666 | n += 1 + l + sovRpc(uint64(l)) |
| 8667 | } |
| 8668 | if m.Hash != 0 { |
| 8669 | n += 1 + sovRpc(uint64(m.Hash)) |
| 8670 | } |
| 8671 | return n |
| 8672 | } |
| 8673 | |
| 8674 | func (m *SnapshotRequest) Size() (n int) { |
| 8675 | var l int |
| 8676 | _ = l |
| 8677 | return n |
| 8678 | } |
| 8679 | |
| 8680 | func (m *SnapshotResponse) Size() (n int) { |
| 8681 | var l int |
| 8682 | _ = l |
| 8683 | if m.Header != nil { |
| 8684 | l = m.Header.Size() |
| 8685 | n += 1 + l + sovRpc(uint64(l)) |
| 8686 | } |
| 8687 | if m.RemainingBytes != 0 { |
| 8688 | n += 1 + sovRpc(uint64(m.RemainingBytes)) |
| 8689 | } |
| 8690 | l = len(m.Blob) |
| 8691 | if l > 0 { |
| 8692 | n += 1 + l + sovRpc(uint64(l)) |
| 8693 | } |
| 8694 | return n |
| 8695 | } |
| 8696 | |
| 8697 | func (m *WatchRequest) Size() (n int) { |
| 8698 | var l int |
| 8699 | _ = l |
| 8700 | if m.RequestUnion != nil { |
| 8701 | n += m.RequestUnion.Size() |
| 8702 | } |
| 8703 | return n |
| 8704 | } |
| 8705 | |
| 8706 | func (m *WatchRequest_CreateRequest) Size() (n int) { |
| 8707 | var l int |
| 8708 | _ = l |
| 8709 | if m.CreateRequest != nil { |
| 8710 | l = m.CreateRequest.Size() |
| 8711 | n += 1 + l + sovRpc(uint64(l)) |
| 8712 | } |
| 8713 | return n |
| 8714 | } |
| 8715 | func (m *WatchRequest_CancelRequest) Size() (n int) { |
| 8716 | var l int |
| 8717 | _ = l |
| 8718 | if m.CancelRequest != nil { |
| 8719 | l = m.CancelRequest.Size() |
| 8720 | n += 1 + l + sovRpc(uint64(l)) |
| 8721 | } |
| 8722 | return n |
| 8723 | } |
| 8724 | func (m *WatchRequest_ProgressRequest) Size() (n int) { |
| 8725 | var l int |
| 8726 | _ = l |
| 8727 | if m.ProgressRequest != nil { |
| 8728 | l = m.ProgressRequest.Size() |
| 8729 | n += 1 + l + sovRpc(uint64(l)) |
| 8730 | } |
| 8731 | return n |
| 8732 | } |
| 8733 | func (m *WatchCreateRequest) Size() (n int) { |
| 8734 | var l int |
| 8735 | _ = l |
| 8736 | l = len(m.Key) |
| 8737 | if l > 0 { |
| 8738 | n += 1 + l + sovRpc(uint64(l)) |
| 8739 | } |
| 8740 | l = len(m.RangeEnd) |
| 8741 | if l > 0 { |
| 8742 | n += 1 + l + sovRpc(uint64(l)) |
| 8743 | } |
| 8744 | if m.StartRevision != 0 { |
| 8745 | n += 1 + sovRpc(uint64(m.StartRevision)) |
| 8746 | } |
| 8747 | if m.ProgressNotify { |
| 8748 | n += 2 |
| 8749 | } |
| 8750 | if len(m.Filters) > 0 { |
| 8751 | l = 0 |
| 8752 | for _, e := range m.Filters { |
| 8753 | l += sovRpc(uint64(e)) |
| 8754 | } |
| 8755 | n += 1 + sovRpc(uint64(l)) + l |
| 8756 | } |
| 8757 | if m.PrevKv { |
| 8758 | n += 2 |
| 8759 | } |
| 8760 | if m.WatchId != 0 { |
| 8761 | n += 1 + sovRpc(uint64(m.WatchId)) |
| 8762 | } |
| 8763 | if m.Fragment { |
| 8764 | n += 2 |
| 8765 | } |
| 8766 | return n |
| 8767 | } |
| 8768 | |
| 8769 | func (m *WatchCancelRequest) Size() (n int) { |
| 8770 | var l int |
| 8771 | _ = l |
| 8772 | if m.WatchId != 0 { |
| 8773 | n += 1 + sovRpc(uint64(m.WatchId)) |
| 8774 | } |
| 8775 | return n |
| 8776 | } |
| 8777 | |
| 8778 | func (m *WatchProgressRequest) Size() (n int) { |
| 8779 | var l int |
| 8780 | _ = l |
| 8781 | return n |
| 8782 | } |
| 8783 | |
| 8784 | func (m *WatchResponse) Size() (n int) { |
| 8785 | var l int |
| 8786 | _ = l |
| 8787 | if m.Header != nil { |
| 8788 | l = m.Header.Size() |
| 8789 | n += 1 + l + sovRpc(uint64(l)) |
| 8790 | } |
| 8791 | if m.WatchId != 0 { |
| 8792 | n += 1 + sovRpc(uint64(m.WatchId)) |
| 8793 | } |
| 8794 | if m.Created { |
| 8795 | n += 2 |
| 8796 | } |
| 8797 | if m.Canceled { |
| 8798 | n += 2 |
| 8799 | } |
| 8800 | if m.CompactRevision != 0 { |
| 8801 | n += 1 + sovRpc(uint64(m.CompactRevision)) |
| 8802 | } |
| 8803 | l = len(m.CancelReason) |
| 8804 | if l > 0 { |
| 8805 | n += 1 + l + sovRpc(uint64(l)) |
| 8806 | } |
| 8807 | if m.Fragment { |
| 8808 | n += 2 |
| 8809 | } |
| 8810 | if len(m.Events) > 0 { |
| 8811 | for _, e := range m.Events { |
| 8812 | l = e.Size() |
| 8813 | n += 1 + l + sovRpc(uint64(l)) |
| 8814 | } |
| 8815 | } |
| 8816 | return n |
| 8817 | } |
| 8818 | |
| 8819 | func (m *LeaseGrantRequest) Size() (n int) { |
| 8820 | var l int |
| 8821 | _ = l |
| 8822 | if m.TTL != 0 { |
| 8823 | n += 1 + sovRpc(uint64(m.TTL)) |
| 8824 | } |
| 8825 | if m.ID != 0 { |
| 8826 | n += 1 + sovRpc(uint64(m.ID)) |
| 8827 | } |
| 8828 | return n |
| 8829 | } |
| 8830 | |
| 8831 | func (m *LeaseGrantResponse) Size() (n int) { |
| 8832 | var l int |
| 8833 | _ = l |
| 8834 | if m.Header != nil { |
| 8835 | l = m.Header.Size() |
| 8836 | n += 1 + l + sovRpc(uint64(l)) |
| 8837 | } |
| 8838 | if m.ID != 0 { |
| 8839 | n += 1 + sovRpc(uint64(m.ID)) |
| 8840 | } |
| 8841 | if m.TTL != 0 { |
| 8842 | n += 1 + sovRpc(uint64(m.TTL)) |
| 8843 | } |
| 8844 | l = len(m.Error) |
| 8845 | if l > 0 { |
| 8846 | n += 1 + l + sovRpc(uint64(l)) |
| 8847 | } |
| 8848 | return n |
| 8849 | } |
| 8850 | |
| 8851 | func (m *LeaseRevokeRequest) Size() (n int) { |
| 8852 | var l int |
| 8853 | _ = l |
| 8854 | if m.ID != 0 { |
| 8855 | n += 1 + sovRpc(uint64(m.ID)) |
| 8856 | } |
| 8857 | return n |
| 8858 | } |
| 8859 | |
| 8860 | func (m *LeaseRevokeResponse) Size() (n int) { |
| 8861 | var l int |
| 8862 | _ = l |
| 8863 | if m.Header != nil { |
| 8864 | l = m.Header.Size() |
| 8865 | n += 1 + l + sovRpc(uint64(l)) |
| 8866 | } |
| 8867 | return n |
| 8868 | } |
| 8869 | |
| 8870 | func (m *LeaseCheckpoint) Size() (n int) { |
| 8871 | var l int |
| 8872 | _ = l |
| 8873 | if m.ID != 0 { |
| 8874 | n += 1 + sovRpc(uint64(m.ID)) |
| 8875 | } |
| 8876 | if m.Remaining_TTL != 0 { |
| 8877 | n += 1 + sovRpc(uint64(m.Remaining_TTL)) |
| 8878 | } |
| 8879 | return n |
| 8880 | } |
| 8881 | |
| 8882 | func (m *LeaseCheckpointRequest) Size() (n int) { |
| 8883 | var l int |
| 8884 | _ = l |
| 8885 | if len(m.Checkpoints) > 0 { |
| 8886 | for _, e := range m.Checkpoints { |
| 8887 | l = e.Size() |
| 8888 | n += 1 + l + sovRpc(uint64(l)) |
| 8889 | } |
| 8890 | } |
| 8891 | return n |
| 8892 | } |
| 8893 | |
| 8894 | func (m *LeaseCheckpointResponse) Size() (n int) { |
| 8895 | var l int |
| 8896 | _ = l |
| 8897 | if m.Header != nil { |
| 8898 | l = m.Header.Size() |
| 8899 | n += 1 + l + sovRpc(uint64(l)) |
| 8900 | } |
| 8901 | return n |
| 8902 | } |
| 8903 | |
| 8904 | func (m *LeaseKeepAliveRequest) Size() (n int) { |
| 8905 | var l int |
| 8906 | _ = l |
| 8907 | if m.ID != 0 { |
| 8908 | n += 1 + sovRpc(uint64(m.ID)) |
| 8909 | } |
| 8910 | return n |
| 8911 | } |
| 8912 | |
| 8913 | func (m *LeaseKeepAliveResponse) Size() (n int) { |
| 8914 | var l int |
| 8915 | _ = l |
| 8916 | if m.Header != nil { |
| 8917 | l = m.Header.Size() |
| 8918 | n += 1 + l + sovRpc(uint64(l)) |
| 8919 | } |
| 8920 | if m.ID != 0 { |
| 8921 | n += 1 + sovRpc(uint64(m.ID)) |
| 8922 | } |
| 8923 | if m.TTL != 0 { |
| 8924 | n += 1 + sovRpc(uint64(m.TTL)) |
| 8925 | } |
| 8926 | return n |
| 8927 | } |
| 8928 | |
| 8929 | func (m *LeaseTimeToLiveRequest) Size() (n int) { |
| 8930 | var l int |
| 8931 | _ = l |
| 8932 | if m.ID != 0 { |
| 8933 | n += 1 + sovRpc(uint64(m.ID)) |
| 8934 | } |
| 8935 | if m.Keys { |
| 8936 | n += 2 |
| 8937 | } |
| 8938 | return n |
| 8939 | } |
| 8940 | |
| 8941 | func (m *LeaseTimeToLiveResponse) Size() (n int) { |
| 8942 | var l int |
| 8943 | _ = l |
| 8944 | if m.Header != nil { |
| 8945 | l = m.Header.Size() |
| 8946 | n += 1 + l + sovRpc(uint64(l)) |
| 8947 | } |
| 8948 | if m.ID != 0 { |
| 8949 | n += 1 + sovRpc(uint64(m.ID)) |
| 8950 | } |
| 8951 | if m.TTL != 0 { |
| 8952 | n += 1 + sovRpc(uint64(m.TTL)) |
| 8953 | } |
| 8954 | if m.GrantedTTL != 0 { |
| 8955 | n += 1 + sovRpc(uint64(m.GrantedTTL)) |
| 8956 | } |
| 8957 | if len(m.Keys) > 0 { |
| 8958 | for _, b := range m.Keys { |
| 8959 | l = len(b) |
| 8960 | n += 1 + l + sovRpc(uint64(l)) |
| 8961 | } |
| 8962 | } |
| 8963 | return n |
| 8964 | } |
| 8965 | |
| 8966 | func (m *LeaseLeasesRequest) Size() (n int) { |
| 8967 | var l int |
| 8968 | _ = l |
| 8969 | return n |
| 8970 | } |
| 8971 | |
| 8972 | func (m *LeaseStatus) Size() (n int) { |
| 8973 | var l int |
| 8974 | _ = l |
| 8975 | if m.ID != 0 { |
| 8976 | n += 1 + sovRpc(uint64(m.ID)) |
| 8977 | } |
| 8978 | return n |
| 8979 | } |
| 8980 | |
| 8981 | func (m *LeaseLeasesResponse) Size() (n int) { |
| 8982 | var l int |
| 8983 | _ = l |
| 8984 | if m.Header != nil { |
| 8985 | l = m.Header.Size() |
| 8986 | n += 1 + l + sovRpc(uint64(l)) |
| 8987 | } |
| 8988 | if len(m.Leases) > 0 { |
| 8989 | for _, e := range m.Leases { |
| 8990 | l = e.Size() |
| 8991 | n += 1 + l + sovRpc(uint64(l)) |
| 8992 | } |
| 8993 | } |
| 8994 | return n |
| 8995 | } |
| 8996 | |
| 8997 | func (m *Member) Size() (n int) { |
| 8998 | var l int |
| 8999 | _ = l |
| 9000 | if m.ID != 0 { |
| 9001 | n += 1 + sovRpc(uint64(m.ID)) |
| 9002 | } |
| 9003 | l = len(m.Name) |
| 9004 | if l > 0 { |
| 9005 | n += 1 + l + sovRpc(uint64(l)) |
| 9006 | } |
| 9007 | if len(m.PeerURLs) > 0 { |
| 9008 | for _, s := range m.PeerURLs { |
| 9009 | l = len(s) |
| 9010 | n += 1 + l + sovRpc(uint64(l)) |
| 9011 | } |
| 9012 | } |
| 9013 | if len(m.ClientURLs) > 0 { |
| 9014 | for _, s := range m.ClientURLs { |
| 9015 | l = len(s) |
| 9016 | n += 1 + l + sovRpc(uint64(l)) |
| 9017 | } |
| 9018 | } |
| 9019 | return n |
| 9020 | } |
| 9021 | |
| 9022 | func (m *MemberAddRequest) Size() (n int) { |
| 9023 | var l int |
| 9024 | _ = l |
| 9025 | if len(m.PeerURLs) > 0 { |
| 9026 | for _, s := range m.PeerURLs { |
| 9027 | l = len(s) |
| 9028 | n += 1 + l + sovRpc(uint64(l)) |
| 9029 | } |
| 9030 | } |
| 9031 | return n |
| 9032 | } |
| 9033 | |
| 9034 | func (m *MemberAddResponse) Size() (n int) { |
| 9035 | var l int |
| 9036 | _ = l |
| 9037 | if m.Header != nil { |
| 9038 | l = m.Header.Size() |
| 9039 | n += 1 + l + sovRpc(uint64(l)) |
| 9040 | } |
| 9041 | if m.Member != nil { |
| 9042 | l = m.Member.Size() |
| 9043 | n += 1 + l + sovRpc(uint64(l)) |
| 9044 | } |
| 9045 | if len(m.Members) > 0 { |
| 9046 | for _, e := range m.Members { |
| 9047 | l = e.Size() |
| 9048 | n += 1 + l + sovRpc(uint64(l)) |
| 9049 | } |
| 9050 | } |
| 9051 | return n |
| 9052 | } |
| 9053 | |
| 9054 | func (m *MemberRemoveRequest) Size() (n int) { |
| 9055 | var l int |
| 9056 | _ = l |
| 9057 | if m.ID != 0 { |
| 9058 | n += 1 + sovRpc(uint64(m.ID)) |
| 9059 | } |
| 9060 | return n |
| 9061 | } |
| 9062 | |
| 9063 | func (m *MemberRemoveResponse) Size() (n int) { |
| 9064 | var l int |
| 9065 | _ = l |
| 9066 | if m.Header != nil { |
| 9067 | l = m.Header.Size() |
| 9068 | n += 1 + l + sovRpc(uint64(l)) |
| 9069 | } |
| 9070 | if len(m.Members) > 0 { |
| 9071 | for _, e := range m.Members { |
| 9072 | l = e.Size() |
| 9073 | n += 1 + l + sovRpc(uint64(l)) |
| 9074 | } |
| 9075 | } |
| 9076 | return n |
| 9077 | } |
| 9078 | |
| 9079 | func (m *MemberUpdateRequest) Size() (n int) { |
| 9080 | var l int |
| 9081 | _ = l |
| 9082 | if m.ID != 0 { |
| 9083 | n += 1 + sovRpc(uint64(m.ID)) |
| 9084 | } |
| 9085 | if len(m.PeerURLs) > 0 { |
| 9086 | for _, s := range m.PeerURLs { |
| 9087 | l = len(s) |
| 9088 | n += 1 + l + sovRpc(uint64(l)) |
| 9089 | } |
| 9090 | } |
| 9091 | return n |
| 9092 | } |
| 9093 | |
| 9094 | func (m *MemberUpdateResponse) Size() (n int) { |
| 9095 | var l int |
| 9096 | _ = l |
| 9097 | if m.Header != nil { |
| 9098 | l = m.Header.Size() |
| 9099 | n += 1 + l + sovRpc(uint64(l)) |
| 9100 | } |
| 9101 | if len(m.Members) > 0 { |
| 9102 | for _, e := range m.Members { |
| 9103 | l = e.Size() |
| 9104 | n += 1 + l + sovRpc(uint64(l)) |
| 9105 | } |
| 9106 | } |
| 9107 | return n |
| 9108 | } |
| 9109 | |
| 9110 | func (m *MemberListRequest) Size() (n int) { |
| 9111 | var l int |
| 9112 | _ = l |
| 9113 | return n |
| 9114 | } |
| 9115 | |
| 9116 | func (m *MemberListResponse) Size() (n int) { |
| 9117 | var l int |
| 9118 | _ = l |
| 9119 | if m.Header != nil { |
| 9120 | l = m.Header.Size() |
| 9121 | n += 1 + l + sovRpc(uint64(l)) |
| 9122 | } |
| 9123 | if len(m.Members) > 0 { |
| 9124 | for _, e := range m.Members { |
| 9125 | l = e.Size() |
| 9126 | n += 1 + l + sovRpc(uint64(l)) |
| 9127 | } |
| 9128 | } |
| 9129 | return n |
| 9130 | } |
| 9131 | |
| 9132 | func (m *DefragmentRequest) Size() (n int) { |
| 9133 | var l int |
| 9134 | _ = l |
| 9135 | return n |
| 9136 | } |
| 9137 | |
| 9138 | func (m *DefragmentResponse) Size() (n int) { |
| 9139 | var l int |
| 9140 | _ = l |
| 9141 | if m.Header != nil { |
| 9142 | l = m.Header.Size() |
| 9143 | n += 1 + l + sovRpc(uint64(l)) |
| 9144 | } |
| 9145 | return n |
| 9146 | } |
| 9147 | |
| 9148 | func (m *MoveLeaderRequest) Size() (n int) { |
| 9149 | var l int |
| 9150 | _ = l |
| 9151 | if m.TargetID != 0 { |
| 9152 | n += 1 + sovRpc(uint64(m.TargetID)) |
| 9153 | } |
| 9154 | return n |
| 9155 | } |
| 9156 | |
| 9157 | func (m *MoveLeaderResponse) Size() (n int) { |
| 9158 | var l int |
| 9159 | _ = l |
| 9160 | if m.Header != nil { |
| 9161 | l = m.Header.Size() |
| 9162 | n += 1 + l + sovRpc(uint64(l)) |
| 9163 | } |
| 9164 | return n |
| 9165 | } |
| 9166 | |
| 9167 | func (m *AlarmRequest) Size() (n int) { |
| 9168 | var l int |
| 9169 | _ = l |
| 9170 | if m.Action != 0 { |
| 9171 | n += 1 + sovRpc(uint64(m.Action)) |
| 9172 | } |
| 9173 | if m.MemberID != 0 { |
| 9174 | n += 1 + sovRpc(uint64(m.MemberID)) |
| 9175 | } |
| 9176 | if m.Alarm != 0 { |
| 9177 | n += 1 + sovRpc(uint64(m.Alarm)) |
| 9178 | } |
| 9179 | return n |
| 9180 | } |
| 9181 | |
| 9182 | func (m *AlarmMember) Size() (n int) { |
| 9183 | var l int |
| 9184 | _ = l |
| 9185 | if m.MemberID != 0 { |
| 9186 | n += 1 + sovRpc(uint64(m.MemberID)) |
| 9187 | } |
| 9188 | if m.Alarm != 0 { |
| 9189 | n += 1 + sovRpc(uint64(m.Alarm)) |
| 9190 | } |
| 9191 | return n |
| 9192 | } |
| 9193 | |
| 9194 | func (m *AlarmResponse) Size() (n int) { |
| 9195 | var l int |
| 9196 | _ = l |
| 9197 | if m.Header != nil { |
| 9198 | l = m.Header.Size() |
| 9199 | n += 1 + l + sovRpc(uint64(l)) |
| 9200 | } |
| 9201 | if len(m.Alarms) > 0 { |
| 9202 | for _, e := range m.Alarms { |
| 9203 | l = e.Size() |
| 9204 | n += 1 + l + sovRpc(uint64(l)) |
| 9205 | } |
| 9206 | } |
| 9207 | return n |
| 9208 | } |
| 9209 | |
| 9210 | func (m *StatusRequest) Size() (n int) { |
| 9211 | var l int |
| 9212 | _ = l |
| 9213 | return n |
| 9214 | } |
| 9215 | |
| 9216 | func (m *StatusResponse) Size() (n int) { |
| 9217 | var l int |
| 9218 | _ = l |
| 9219 | if m.Header != nil { |
| 9220 | l = m.Header.Size() |
| 9221 | n += 1 + l + sovRpc(uint64(l)) |
| 9222 | } |
| 9223 | l = len(m.Version) |
| 9224 | if l > 0 { |
| 9225 | n += 1 + l + sovRpc(uint64(l)) |
| 9226 | } |
| 9227 | if m.DbSize != 0 { |
| 9228 | n += 1 + sovRpc(uint64(m.DbSize)) |
| 9229 | } |
| 9230 | if m.Leader != 0 { |
| 9231 | n += 1 + sovRpc(uint64(m.Leader)) |
| 9232 | } |
| 9233 | if m.RaftIndex != 0 { |
| 9234 | n += 1 + sovRpc(uint64(m.RaftIndex)) |
| 9235 | } |
| 9236 | if m.RaftTerm != 0 { |
| 9237 | n += 1 + sovRpc(uint64(m.RaftTerm)) |
| 9238 | } |
| 9239 | if m.RaftAppliedIndex != 0 { |
| 9240 | n += 1 + sovRpc(uint64(m.RaftAppliedIndex)) |
| 9241 | } |
| 9242 | if len(m.Errors) > 0 { |
| 9243 | for _, s := range m.Errors { |
| 9244 | l = len(s) |
| 9245 | n += 1 + l + sovRpc(uint64(l)) |
| 9246 | } |
| 9247 | } |
| 9248 | if m.DbSizeInUse != 0 { |
| 9249 | n += 1 + sovRpc(uint64(m.DbSizeInUse)) |
| 9250 | } |
| 9251 | return n |
| 9252 | } |
| 9253 | |
| 9254 | func (m *AuthEnableRequest) Size() (n int) { |
| 9255 | var l int |
| 9256 | _ = l |
| 9257 | return n |
| 9258 | } |
| 9259 | |
| 9260 | func (m *AuthDisableRequest) Size() (n int) { |
| 9261 | var l int |
| 9262 | _ = l |
| 9263 | return n |
| 9264 | } |
| 9265 | |
| 9266 | func (m *AuthenticateRequest) Size() (n int) { |
| 9267 | var l int |
| 9268 | _ = l |
| 9269 | l = len(m.Name) |
| 9270 | if l > 0 { |
| 9271 | n += 1 + l + sovRpc(uint64(l)) |
| 9272 | } |
| 9273 | l = len(m.Password) |
| 9274 | if l > 0 { |
| 9275 | n += 1 + l + sovRpc(uint64(l)) |
| 9276 | } |
| 9277 | return n |
| 9278 | } |
| 9279 | |
| 9280 | func (m *AuthUserAddRequest) Size() (n int) { |
| 9281 | var l int |
| 9282 | _ = l |
| 9283 | l = len(m.Name) |
| 9284 | if l > 0 { |
| 9285 | n += 1 + l + sovRpc(uint64(l)) |
| 9286 | } |
| 9287 | l = len(m.Password) |
| 9288 | if l > 0 { |
| 9289 | n += 1 + l + sovRpc(uint64(l)) |
| 9290 | } |
| 9291 | return n |
| 9292 | } |
| 9293 | |
| 9294 | func (m *AuthUserGetRequest) Size() (n int) { |
| 9295 | var l int |
| 9296 | _ = l |
| 9297 | l = len(m.Name) |
| 9298 | if l > 0 { |
| 9299 | n += 1 + l + sovRpc(uint64(l)) |
| 9300 | } |
| 9301 | return n |
| 9302 | } |
| 9303 | |
| 9304 | func (m *AuthUserDeleteRequest) Size() (n int) { |
| 9305 | var l int |
| 9306 | _ = l |
| 9307 | l = len(m.Name) |
| 9308 | if l > 0 { |
| 9309 | n += 1 + l + sovRpc(uint64(l)) |
| 9310 | } |
| 9311 | return n |
| 9312 | } |
| 9313 | |
| 9314 | func (m *AuthUserChangePasswordRequest) Size() (n int) { |
| 9315 | var l int |
| 9316 | _ = l |
| 9317 | l = len(m.Name) |
| 9318 | if l > 0 { |
| 9319 | n += 1 + l + sovRpc(uint64(l)) |
| 9320 | } |
| 9321 | l = len(m.Password) |
| 9322 | if l > 0 { |
| 9323 | n += 1 + l + sovRpc(uint64(l)) |
| 9324 | } |
| 9325 | return n |
| 9326 | } |
| 9327 | |
| 9328 | func (m *AuthUserGrantRoleRequest) Size() (n int) { |
| 9329 | var l int |
| 9330 | _ = l |
| 9331 | l = len(m.User) |
| 9332 | if l > 0 { |
| 9333 | n += 1 + l + sovRpc(uint64(l)) |
| 9334 | } |
| 9335 | l = len(m.Role) |
| 9336 | if l > 0 { |
| 9337 | n += 1 + l + sovRpc(uint64(l)) |
| 9338 | } |
| 9339 | return n |
| 9340 | } |
| 9341 | |
| 9342 | func (m *AuthUserRevokeRoleRequest) Size() (n int) { |
| 9343 | var l int |
| 9344 | _ = l |
| 9345 | l = len(m.Name) |
| 9346 | if l > 0 { |
| 9347 | n += 1 + l + sovRpc(uint64(l)) |
| 9348 | } |
| 9349 | l = len(m.Role) |
| 9350 | if l > 0 { |
| 9351 | n += 1 + l + sovRpc(uint64(l)) |
| 9352 | } |
| 9353 | return n |
| 9354 | } |
| 9355 | |
| 9356 | func (m *AuthRoleAddRequest) Size() (n int) { |
| 9357 | var l int |
| 9358 | _ = l |
| 9359 | l = len(m.Name) |
| 9360 | if l > 0 { |
| 9361 | n += 1 + l + sovRpc(uint64(l)) |
| 9362 | } |
| 9363 | return n |
| 9364 | } |
| 9365 | |
| 9366 | func (m *AuthRoleGetRequest) Size() (n int) { |
| 9367 | var l int |
| 9368 | _ = l |
| 9369 | l = len(m.Role) |
| 9370 | if l > 0 { |
| 9371 | n += 1 + l + sovRpc(uint64(l)) |
| 9372 | } |
| 9373 | return n |
| 9374 | } |
| 9375 | |
| 9376 | func (m *AuthUserListRequest) Size() (n int) { |
| 9377 | var l int |
| 9378 | _ = l |
| 9379 | return n |
| 9380 | } |
| 9381 | |
| 9382 | func (m *AuthRoleListRequest) Size() (n int) { |
| 9383 | var l int |
| 9384 | _ = l |
| 9385 | return n |
| 9386 | } |
| 9387 | |
| 9388 | func (m *AuthRoleDeleteRequest) Size() (n int) { |
| 9389 | var l int |
| 9390 | _ = l |
| 9391 | l = len(m.Role) |
| 9392 | if l > 0 { |
| 9393 | n += 1 + l + sovRpc(uint64(l)) |
| 9394 | } |
| 9395 | return n |
| 9396 | } |
| 9397 | |
| 9398 | func (m *AuthRoleGrantPermissionRequest) Size() (n int) { |
| 9399 | var l int |
| 9400 | _ = l |
| 9401 | l = len(m.Name) |
| 9402 | if l > 0 { |
| 9403 | n += 1 + l + sovRpc(uint64(l)) |
| 9404 | } |
| 9405 | if m.Perm != nil { |
| 9406 | l = m.Perm.Size() |
| 9407 | n += 1 + l + sovRpc(uint64(l)) |
| 9408 | } |
| 9409 | return n |
| 9410 | } |
| 9411 | |
| 9412 | func (m *AuthRoleRevokePermissionRequest) Size() (n int) { |
| 9413 | var l int |
| 9414 | _ = l |
| 9415 | l = len(m.Role) |
| 9416 | if l > 0 { |
| 9417 | n += 1 + l + sovRpc(uint64(l)) |
| 9418 | } |
| 9419 | l = len(m.Key) |
| 9420 | if l > 0 { |
| 9421 | n += 1 + l + sovRpc(uint64(l)) |
| 9422 | } |
| 9423 | l = len(m.RangeEnd) |
| 9424 | if l > 0 { |
| 9425 | n += 1 + l + sovRpc(uint64(l)) |
| 9426 | } |
| 9427 | return n |
| 9428 | } |
| 9429 | |
| 9430 | func (m *AuthEnableResponse) Size() (n int) { |
| 9431 | var l int |
| 9432 | _ = l |
| 9433 | if m.Header != nil { |
| 9434 | l = m.Header.Size() |
| 9435 | n += 1 + l + sovRpc(uint64(l)) |
| 9436 | } |
| 9437 | return n |
| 9438 | } |
| 9439 | |
| 9440 | func (m *AuthDisableResponse) Size() (n int) { |
| 9441 | var l int |
| 9442 | _ = l |
| 9443 | if m.Header != nil { |
| 9444 | l = m.Header.Size() |
| 9445 | n += 1 + l + sovRpc(uint64(l)) |
| 9446 | } |
| 9447 | return n |
| 9448 | } |
| 9449 | |
| 9450 | func (m *AuthenticateResponse) Size() (n int) { |
| 9451 | var l int |
| 9452 | _ = l |
| 9453 | if m.Header != nil { |
| 9454 | l = m.Header.Size() |
| 9455 | n += 1 + l + sovRpc(uint64(l)) |
| 9456 | } |
| 9457 | l = len(m.Token) |
| 9458 | if l > 0 { |
| 9459 | n += 1 + l + sovRpc(uint64(l)) |
| 9460 | } |
| 9461 | return n |
| 9462 | } |
| 9463 | |
| 9464 | func (m *AuthUserAddResponse) Size() (n int) { |
| 9465 | var l int |
| 9466 | _ = l |
| 9467 | if m.Header != nil { |
| 9468 | l = m.Header.Size() |
| 9469 | n += 1 + l + sovRpc(uint64(l)) |
| 9470 | } |
| 9471 | return n |
| 9472 | } |
| 9473 | |
| 9474 | func (m *AuthUserGetResponse) Size() (n int) { |
| 9475 | var l int |
| 9476 | _ = l |
| 9477 | if m.Header != nil { |
| 9478 | l = m.Header.Size() |
| 9479 | n += 1 + l + sovRpc(uint64(l)) |
| 9480 | } |
| 9481 | if len(m.Roles) > 0 { |
| 9482 | for _, s := range m.Roles { |
| 9483 | l = len(s) |
| 9484 | n += 1 + l + sovRpc(uint64(l)) |
| 9485 | } |
| 9486 | } |
| 9487 | return n |
| 9488 | } |
| 9489 | |
| 9490 | func (m *AuthUserDeleteResponse) Size() (n int) { |
| 9491 | var l int |
| 9492 | _ = l |
| 9493 | if m.Header != nil { |
| 9494 | l = m.Header.Size() |
| 9495 | n += 1 + l + sovRpc(uint64(l)) |
| 9496 | } |
| 9497 | return n |
| 9498 | } |
| 9499 | |
| 9500 | func (m *AuthUserChangePasswordResponse) Size() (n int) { |
| 9501 | var l int |
| 9502 | _ = l |
| 9503 | if m.Header != nil { |
| 9504 | l = m.Header.Size() |
| 9505 | n += 1 + l + sovRpc(uint64(l)) |
| 9506 | } |
| 9507 | return n |
| 9508 | } |
| 9509 | |
| 9510 | func (m *AuthUserGrantRoleResponse) Size() (n int) { |
| 9511 | var l int |
| 9512 | _ = l |
| 9513 | if m.Header != nil { |
| 9514 | l = m.Header.Size() |
| 9515 | n += 1 + l + sovRpc(uint64(l)) |
| 9516 | } |
| 9517 | return n |
| 9518 | } |
| 9519 | |
| 9520 | func (m *AuthUserRevokeRoleResponse) Size() (n int) { |
| 9521 | var l int |
| 9522 | _ = l |
| 9523 | if m.Header != nil { |
| 9524 | l = m.Header.Size() |
| 9525 | n += 1 + l + sovRpc(uint64(l)) |
| 9526 | } |
| 9527 | return n |
| 9528 | } |
| 9529 | |
| 9530 | func (m *AuthRoleAddResponse) Size() (n int) { |
| 9531 | var l int |
| 9532 | _ = l |
| 9533 | if m.Header != nil { |
| 9534 | l = m.Header.Size() |
| 9535 | n += 1 + l + sovRpc(uint64(l)) |
| 9536 | } |
| 9537 | return n |
| 9538 | } |
| 9539 | |
| 9540 | func (m *AuthRoleGetResponse) Size() (n int) { |
| 9541 | var l int |
| 9542 | _ = l |
| 9543 | if m.Header != nil { |
| 9544 | l = m.Header.Size() |
| 9545 | n += 1 + l + sovRpc(uint64(l)) |
| 9546 | } |
| 9547 | if len(m.Perm) > 0 { |
| 9548 | for _, e := range m.Perm { |
| 9549 | l = e.Size() |
| 9550 | n += 1 + l + sovRpc(uint64(l)) |
| 9551 | } |
| 9552 | } |
| 9553 | return n |
| 9554 | } |
| 9555 | |
| 9556 | func (m *AuthRoleListResponse) Size() (n int) { |
| 9557 | var l int |
| 9558 | _ = l |
| 9559 | if m.Header != nil { |
| 9560 | l = m.Header.Size() |
| 9561 | n += 1 + l + sovRpc(uint64(l)) |
| 9562 | } |
| 9563 | if len(m.Roles) > 0 { |
| 9564 | for _, s := range m.Roles { |
| 9565 | l = len(s) |
| 9566 | n += 1 + l + sovRpc(uint64(l)) |
| 9567 | } |
| 9568 | } |
| 9569 | return n |
| 9570 | } |
| 9571 | |
| 9572 | func (m *AuthUserListResponse) Size() (n int) { |
| 9573 | var l int |
| 9574 | _ = l |
| 9575 | if m.Header != nil { |
| 9576 | l = m.Header.Size() |
| 9577 | n += 1 + l + sovRpc(uint64(l)) |
| 9578 | } |
| 9579 | if len(m.Users) > 0 { |
| 9580 | for _, s := range m.Users { |
| 9581 | l = len(s) |
| 9582 | n += 1 + l + sovRpc(uint64(l)) |
| 9583 | } |
| 9584 | } |
| 9585 | return n |
| 9586 | } |
| 9587 | |
| 9588 | func (m *AuthRoleDeleteResponse) Size() (n int) { |
| 9589 | var l int |
| 9590 | _ = l |
| 9591 | if m.Header != nil { |
| 9592 | l = m.Header.Size() |
| 9593 | n += 1 + l + sovRpc(uint64(l)) |
| 9594 | } |
| 9595 | return n |
| 9596 | } |
| 9597 | |
| 9598 | func (m *AuthRoleGrantPermissionResponse) Size() (n int) { |
| 9599 | var l int |
| 9600 | _ = l |
| 9601 | if m.Header != nil { |
| 9602 | l = m.Header.Size() |
| 9603 | n += 1 + l + sovRpc(uint64(l)) |
| 9604 | } |
| 9605 | return n |
| 9606 | } |
| 9607 | |
| 9608 | func (m *AuthRoleRevokePermissionResponse) Size() (n int) { |
| 9609 | var l int |
| 9610 | _ = l |
| 9611 | if m.Header != nil { |
| 9612 | l = m.Header.Size() |
| 9613 | n += 1 + l + sovRpc(uint64(l)) |
| 9614 | } |
| 9615 | return n |
| 9616 | } |
| 9617 | |
| 9618 | func sovRpc(x uint64) (n int) { |
| 9619 | for { |
| 9620 | n++ |
| 9621 | x >>= 7 |
| 9622 | if x == 0 { |
| 9623 | break |
| 9624 | } |
| 9625 | } |
| 9626 | return n |
| 9627 | } |
| 9628 | func sozRpc(x uint64) (n int) { |
| 9629 | return sovRpc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 9630 | } |
| 9631 | func (m *ResponseHeader) Unmarshal(dAtA []byte) error { |
| 9632 | l := len(dAtA) |
| 9633 | iNdEx := 0 |
| 9634 | for iNdEx < l { |
| 9635 | preIndex := iNdEx |
| 9636 | var wire uint64 |
| 9637 | for shift := uint(0); ; shift += 7 { |
| 9638 | if shift >= 64 { |
| 9639 | return ErrIntOverflowRpc |
| 9640 | } |
| 9641 | if iNdEx >= l { |
| 9642 | return io.ErrUnexpectedEOF |
| 9643 | } |
| 9644 | b := dAtA[iNdEx] |
| 9645 | iNdEx++ |
| 9646 | wire |= (uint64(b) & 0x7F) << shift |
| 9647 | if b < 0x80 { |
| 9648 | break |
| 9649 | } |
| 9650 | } |
| 9651 | fieldNum := int32(wire >> 3) |
| 9652 | wireType := int(wire & 0x7) |
| 9653 | if wireType == 4 { |
| 9654 | return fmt.Errorf("proto: ResponseHeader: wiretype end group for non-group") |
| 9655 | } |
| 9656 | if fieldNum <= 0 { |
| 9657 | return fmt.Errorf("proto: ResponseHeader: illegal tag %d (wire type %d)", fieldNum, wire) |
| 9658 | } |
| 9659 | switch fieldNum { |
| 9660 | case 1: |
| 9661 | if wireType != 0 { |
| 9662 | return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) |
| 9663 | } |
| 9664 | m.ClusterId = 0 |
| 9665 | for shift := uint(0); ; shift += 7 { |
| 9666 | if shift >= 64 { |
| 9667 | return ErrIntOverflowRpc |
| 9668 | } |
| 9669 | if iNdEx >= l { |
| 9670 | return io.ErrUnexpectedEOF |
| 9671 | } |
| 9672 | b := dAtA[iNdEx] |
| 9673 | iNdEx++ |
| 9674 | m.ClusterId |= (uint64(b) & 0x7F) << shift |
| 9675 | if b < 0x80 { |
| 9676 | break |
| 9677 | } |
| 9678 | } |
| 9679 | case 2: |
| 9680 | if wireType != 0 { |
| 9681 | return fmt.Errorf("proto: wrong wireType = %d for field MemberId", wireType) |
| 9682 | } |
| 9683 | m.MemberId = 0 |
| 9684 | for shift := uint(0); ; shift += 7 { |
| 9685 | if shift >= 64 { |
| 9686 | return ErrIntOverflowRpc |
| 9687 | } |
| 9688 | if iNdEx >= l { |
| 9689 | return io.ErrUnexpectedEOF |
| 9690 | } |
| 9691 | b := dAtA[iNdEx] |
| 9692 | iNdEx++ |
| 9693 | m.MemberId |= (uint64(b) & 0x7F) << shift |
| 9694 | if b < 0x80 { |
| 9695 | break |
| 9696 | } |
| 9697 | } |
| 9698 | case 3: |
| 9699 | if wireType != 0 { |
| 9700 | return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) |
| 9701 | } |
| 9702 | m.Revision = 0 |
| 9703 | for shift := uint(0); ; shift += 7 { |
| 9704 | if shift >= 64 { |
| 9705 | return ErrIntOverflowRpc |
| 9706 | } |
| 9707 | if iNdEx >= l { |
| 9708 | return io.ErrUnexpectedEOF |
| 9709 | } |
| 9710 | b := dAtA[iNdEx] |
| 9711 | iNdEx++ |
| 9712 | m.Revision |= (int64(b) & 0x7F) << shift |
| 9713 | if b < 0x80 { |
| 9714 | break |
| 9715 | } |
| 9716 | } |
| 9717 | case 4: |
| 9718 | if wireType != 0 { |
| 9719 | return fmt.Errorf("proto: wrong wireType = %d for field RaftTerm", wireType) |
| 9720 | } |
| 9721 | m.RaftTerm = 0 |
| 9722 | for shift := uint(0); ; shift += 7 { |
| 9723 | if shift >= 64 { |
| 9724 | return ErrIntOverflowRpc |
| 9725 | } |
| 9726 | if iNdEx >= l { |
| 9727 | return io.ErrUnexpectedEOF |
| 9728 | } |
| 9729 | b := dAtA[iNdEx] |
| 9730 | iNdEx++ |
| 9731 | m.RaftTerm |= (uint64(b) & 0x7F) << shift |
| 9732 | if b < 0x80 { |
| 9733 | break |
| 9734 | } |
| 9735 | } |
| 9736 | default: |
| 9737 | iNdEx = preIndex |
| 9738 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 9739 | if err != nil { |
| 9740 | return err |
| 9741 | } |
| 9742 | if skippy < 0 { |
| 9743 | return ErrInvalidLengthRpc |
| 9744 | } |
| 9745 | if (iNdEx + skippy) > l { |
| 9746 | return io.ErrUnexpectedEOF |
| 9747 | } |
| 9748 | iNdEx += skippy |
| 9749 | } |
| 9750 | } |
| 9751 | |
| 9752 | if iNdEx > l { |
| 9753 | return io.ErrUnexpectedEOF |
| 9754 | } |
| 9755 | return nil |
| 9756 | } |
| 9757 | func (m *RangeRequest) Unmarshal(dAtA []byte) error { |
| 9758 | l := len(dAtA) |
| 9759 | iNdEx := 0 |
| 9760 | for iNdEx < l { |
| 9761 | preIndex := iNdEx |
| 9762 | var wire uint64 |
| 9763 | for shift := uint(0); ; shift += 7 { |
| 9764 | if shift >= 64 { |
| 9765 | return ErrIntOverflowRpc |
| 9766 | } |
| 9767 | if iNdEx >= l { |
| 9768 | return io.ErrUnexpectedEOF |
| 9769 | } |
| 9770 | b := dAtA[iNdEx] |
| 9771 | iNdEx++ |
| 9772 | wire |= (uint64(b) & 0x7F) << shift |
| 9773 | if b < 0x80 { |
| 9774 | break |
| 9775 | } |
| 9776 | } |
| 9777 | fieldNum := int32(wire >> 3) |
| 9778 | wireType := int(wire & 0x7) |
| 9779 | if wireType == 4 { |
| 9780 | return fmt.Errorf("proto: RangeRequest: wiretype end group for non-group") |
| 9781 | } |
| 9782 | if fieldNum <= 0 { |
| 9783 | return fmt.Errorf("proto: RangeRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 9784 | } |
| 9785 | switch fieldNum { |
| 9786 | case 1: |
| 9787 | if wireType != 2 { |
| 9788 | return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| 9789 | } |
| 9790 | var byteLen int |
| 9791 | for shift := uint(0); ; shift += 7 { |
| 9792 | if shift >= 64 { |
| 9793 | return ErrIntOverflowRpc |
| 9794 | } |
| 9795 | if iNdEx >= l { |
| 9796 | return io.ErrUnexpectedEOF |
| 9797 | } |
| 9798 | b := dAtA[iNdEx] |
| 9799 | iNdEx++ |
| 9800 | byteLen |= (int(b) & 0x7F) << shift |
| 9801 | if b < 0x80 { |
| 9802 | break |
| 9803 | } |
| 9804 | } |
| 9805 | if byteLen < 0 { |
| 9806 | return ErrInvalidLengthRpc |
| 9807 | } |
| 9808 | postIndex := iNdEx + byteLen |
| 9809 | if postIndex > l { |
| 9810 | return io.ErrUnexpectedEOF |
| 9811 | } |
| 9812 | m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) |
| 9813 | if m.Key == nil { |
| 9814 | m.Key = []byte{} |
| 9815 | } |
| 9816 | iNdEx = postIndex |
| 9817 | case 2: |
| 9818 | if wireType != 2 { |
| 9819 | return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType) |
| 9820 | } |
| 9821 | var byteLen int |
| 9822 | for shift := uint(0); ; shift += 7 { |
| 9823 | if shift >= 64 { |
| 9824 | return ErrIntOverflowRpc |
| 9825 | } |
| 9826 | if iNdEx >= l { |
| 9827 | return io.ErrUnexpectedEOF |
| 9828 | } |
| 9829 | b := dAtA[iNdEx] |
| 9830 | iNdEx++ |
| 9831 | byteLen |= (int(b) & 0x7F) << shift |
| 9832 | if b < 0x80 { |
| 9833 | break |
| 9834 | } |
| 9835 | } |
| 9836 | if byteLen < 0 { |
| 9837 | return ErrInvalidLengthRpc |
| 9838 | } |
| 9839 | postIndex := iNdEx + byteLen |
| 9840 | if postIndex > l { |
| 9841 | return io.ErrUnexpectedEOF |
| 9842 | } |
| 9843 | m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...) |
| 9844 | if m.RangeEnd == nil { |
| 9845 | m.RangeEnd = []byte{} |
| 9846 | } |
| 9847 | iNdEx = postIndex |
| 9848 | case 3: |
| 9849 | if wireType != 0 { |
| 9850 | return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) |
| 9851 | } |
| 9852 | m.Limit = 0 |
| 9853 | for shift := uint(0); ; shift += 7 { |
| 9854 | if shift >= 64 { |
| 9855 | return ErrIntOverflowRpc |
| 9856 | } |
| 9857 | if iNdEx >= l { |
| 9858 | return io.ErrUnexpectedEOF |
| 9859 | } |
| 9860 | b := dAtA[iNdEx] |
| 9861 | iNdEx++ |
| 9862 | m.Limit |= (int64(b) & 0x7F) << shift |
| 9863 | if b < 0x80 { |
| 9864 | break |
| 9865 | } |
| 9866 | } |
| 9867 | case 4: |
| 9868 | if wireType != 0 { |
| 9869 | return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) |
| 9870 | } |
| 9871 | m.Revision = 0 |
| 9872 | for shift := uint(0); ; shift += 7 { |
| 9873 | if shift >= 64 { |
| 9874 | return ErrIntOverflowRpc |
| 9875 | } |
| 9876 | if iNdEx >= l { |
| 9877 | return io.ErrUnexpectedEOF |
| 9878 | } |
| 9879 | b := dAtA[iNdEx] |
| 9880 | iNdEx++ |
| 9881 | m.Revision |= (int64(b) & 0x7F) << shift |
| 9882 | if b < 0x80 { |
| 9883 | break |
| 9884 | } |
| 9885 | } |
| 9886 | case 5: |
| 9887 | if wireType != 0 { |
| 9888 | return fmt.Errorf("proto: wrong wireType = %d for field SortOrder", wireType) |
| 9889 | } |
| 9890 | m.SortOrder = 0 |
| 9891 | for shift := uint(0); ; shift += 7 { |
| 9892 | if shift >= 64 { |
| 9893 | return ErrIntOverflowRpc |
| 9894 | } |
| 9895 | if iNdEx >= l { |
| 9896 | return io.ErrUnexpectedEOF |
| 9897 | } |
| 9898 | b := dAtA[iNdEx] |
| 9899 | iNdEx++ |
| 9900 | m.SortOrder |= (RangeRequest_SortOrder(b) & 0x7F) << shift |
| 9901 | if b < 0x80 { |
| 9902 | break |
| 9903 | } |
| 9904 | } |
| 9905 | case 6: |
| 9906 | if wireType != 0 { |
| 9907 | return fmt.Errorf("proto: wrong wireType = %d for field SortTarget", wireType) |
| 9908 | } |
| 9909 | m.SortTarget = 0 |
| 9910 | for shift := uint(0); ; shift += 7 { |
| 9911 | if shift >= 64 { |
| 9912 | return ErrIntOverflowRpc |
| 9913 | } |
| 9914 | if iNdEx >= l { |
| 9915 | return io.ErrUnexpectedEOF |
| 9916 | } |
| 9917 | b := dAtA[iNdEx] |
| 9918 | iNdEx++ |
| 9919 | m.SortTarget |= (RangeRequest_SortTarget(b) & 0x7F) << shift |
| 9920 | if b < 0x80 { |
| 9921 | break |
| 9922 | } |
| 9923 | } |
| 9924 | case 7: |
| 9925 | if wireType != 0 { |
| 9926 | return fmt.Errorf("proto: wrong wireType = %d for field Serializable", wireType) |
| 9927 | } |
| 9928 | var v int |
| 9929 | for shift := uint(0); ; shift += 7 { |
| 9930 | if shift >= 64 { |
| 9931 | return ErrIntOverflowRpc |
| 9932 | } |
| 9933 | if iNdEx >= l { |
| 9934 | return io.ErrUnexpectedEOF |
| 9935 | } |
| 9936 | b := dAtA[iNdEx] |
| 9937 | iNdEx++ |
| 9938 | v |= (int(b) & 0x7F) << shift |
| 9939 | if b < 0x80 { |
| 9940 | break |
| 9941 | } |
| 9942 | } |
| 9943 | m.Serializable = bool(v != 0) |
| 9944 | case 8: |
| 9945 | if wireType != 0 { |
| 9946 | return fmt.Errorf("proto: wrong wireType = %d for field KeysOnly", wireType) |
| 9947 | } |
| 9948 | var v int |
| 9949 | for shift := uint(0); ; shift += 7 { |
| 9950 | if shift >= 64 { |
| 9951 | return ErrIntOverflowRpc |
| 9952 | } |
| 9953 | if iNdEx >= l { |
| 9954 | return io.ErrUnexpectedEOF |
| 9955 | } |
| 9956 | b := dAtA[iNdEx] |
| 9957 | iNdEx++ |
| 9958 | v |= (int(b) & 0x7F) << shift |
| 9959 | if b < 0x80 { |
| 9960 | break |
| 9961 | } |
| 9962 | } |
| 9963 | m.KeysOnly = bool(v != 0) |
| 9964 | case 9: |
| 9965 | if wireType != 0 { |
| 9966 | return fmt.Errorf("proto: wrong wireType = %d for field CountOnly", wireType) |
| 9967 | } |
| 9968 | var v int |
| 9969 | for shift := uint(0); ; shift += 7 { |
| 9970 | if shift >= 64 { |
| 9971 | return ErrIntOverflowRpc |
| 9972 | } |
| 9973 | if iNdEx >= l { |
| 9974 | return io.ErrUnexpectedEOF |
| 9975 | } |
| 9976 | b := dAtA[iNdEx] |
| 9977 | iNdEx++ |
| 9978 | v |= (int(b) & 0x7F) << shift |
| 9979 | if b < 0x80 { |
| 9980 | break |
| 9981 | } |
| 9982 | } |
| 9983 | m.CountOnly = bool(v != 0) |
| 9984 | case 10: |
| 9985 | if wireType != 0 { |
| 9986 | return fmt.Errorf("proto: wrong wireType = %d for field MinModRevision", wireType) |
| 9987 | } |
| 9988 | m.MinModRevision = 0 |
| 9989 | for shift := uint(0); ; shift += 7 { |
| 9990 | if shift >= 64 { |
| 9991 | return ErrIntOverflowRpc |
| 9992 | } |
| 9993 | if iNdEx >= l { |
| 9994 | return io.ErrUnexpectedEOF |
| 9995 | } |
| 9996 | b := dAtA[iNdEx] |
| 9997 | iNdEx++ |
| 9998 | m.MinModRevision |= (int64(b) & 0x7F) << shift |
| 9999 | if b < 0x80 { |
| 10000 | break |
| 10001 | } |
| 10002 | } |
| 10003 | case 11: |
| 10004 | if wireType != 0 { |
| 10005 | return fmt.Errorf("proto: wrong wireType = %d for field MaxModRevision", wireType) |
| 10006 | } |
| 10007 | m.MaxModRevision = 0 |
| 10008 | for shift := uint(0); ; shift += 7 { |
| 10009 | if shift >= 64 { |
| 10010 | return ErrIntOverflowRpc |
| 10011 | } |
| 10012 | if iNdEx >= l { |
| 10013 | return io.ErrUnexpectedEOF |
| 10014 | } |
| 10015 | b := dAtA[iNdEx] |
| 10016 | iNdEx++ |
| 10017 | m.MaxModRevision |= (int64(b) & 0x7F) << shift |
| 10018 | if b < 0x80 { |
| 10019 | break |
| 10020 | } |
| 10021 | } |
| 10022 | case 12: |
| 10023 | if wireType != 0 { |
| 10024 | return fmt.Errorf("proto: wrong wireType = %d for field MinCreateRevision", wireType) |
| 10025 | } |
| 10026 | m.MinCreateRevision = 0 |
| 10027 | for shift := uint(0); ; shift += 7 { |
| 10028 | if shift >= 64 { |
| 10029 | return ErrIntOverflowRpc |
| 10030 | } |
| 10031 | if iNdEx >= l { |
| 10032 | return io.ErrUnexpectedEOF |
| 10033 | } |
| 10034 | b := dAtA[iNdEx] |
| 10035 | iNdEx++ |
| 10036 | m.MinCreateRevision |= (int64(b) & 0x7F) << shift |
| 10037 | if b < 0x80 { |
| 10038 | break |
| 10039 | } |
| 10040 | } |
| 10041 | case 13: |
| 10042 | if wireType != 0 { |
| 10043 | return fmt.Errorf("proto: wrong wireType = %d for field MaxCreateRevision", wireType) |
| 10044 | } |
| 10045 | m.MaxCreateRevision = 0 |
| 10046 | for shift := uint(0); ; shift += 7 { |
| 10047 | if shift >= 64 { |
| 10048 | return ErrIntOverflowRpc |
| 10049 | } |
| 10050 | if iNdEx >= l { |
| 10051 | return io.ErrUnexpectedEOF |
| 10052 | } |
| 10053 | b := dAtA[iNdEx] |
| 10054 | iNdEx++ |
| 10055 | m.MaxCreateRevision |= (int64(b) & 0x7F) << shift |
| 10056 | if b < 0x80 { |
| 10057 | break |
| 10058 | } |
| 10059 | } |
| 10060 | default: |
| 10061 | iNdEx = preIndex |
| 10062 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 10063 | if err != nil { |
| 10064 | return err |
| 10065 | } |
| 10066 | if skippy < 0 { |
| 10067 | return ErrInvalidLengthRpc |
| 10068 | } |
| 10069 | if (iNdEx + skippy) > l { |
| 10070 | return io.ErrUnexpectedEOF |
| 10071 | } |
| 10072 | iNdEx += skippy |
| 10073 | } |
| 10074 | } |
| 10075 | |
| 10076 | if iNdEx > l { |
| 10077 | return io.ErrUnexpectedEOF |
| 10078 | } |
| 10079 | return nil |
| 10080 | } |
| 10081 | func (m *RangeResponse) Unmarshal(dAtA []byte) error { |
| 10082 | l := len(dAtA) |
| 10083 | iNdEx := 0 |
| 10084 | for iNdEx < l { |
| 10085 | preIndex := iNdEx |
| 10086 | var wire uint64 |
| 10087 | for shift := uint(0); ; shift += 7 { |
| 10088 | if shift >= 64 { |
| 10089 | return ErrIntOverflowRpc |
| 10090 | } |
| 10091 | if iNdEx >= l { |
| 10092 | return io.ErrUnexpectedEOF |
| 10093 | } |
| 10094 | b := dAtA[iNdEx] |
| 10095 | iNdEx++ |
| 10096 | wire |= (uint64(b) & 0x7F) << shift |
| 10097 | if b < 0x80 { |
| 10098 | break |
| 10099 | } |
| 10100 | } |
| 10101 | fieldNum := int32(wire >> 3) |
| 10102 | wireType := int(wire & 0x7) |
| 10103 | if wireType == 4 { |
| 10104 | return fmt.Errorf("proto: RangeResponse: wiretype end group for non-group") |
| 10105 | } |
| 10106 | if fieldNum <= 0 { |
| 10107 | return fmt.Errorf("proto: RangeResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 10108 | } |
| 10109 | switch fieldNum { |
| 10110 | case 1: |
| 10111 | if wireType != 2 { |
| 10112 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 10113 | } |
| 10114 | var msglen int |
| 10115 | for shift := uint(0); ; shift += 7 { |
| 10116 | if shift >= 64 { |
| 10117 | return ErrIntOverflowRpc |
| 10118 | } |
| 10119 | if iNdEx >= l { |
| 10120 | return io.ErrUnexpectedEOF |
| 10121 | } |
| 10122 | b := dAtA[iNdEx] |
| 10123 | iNdEx++ |
| 10124 | msglen |= (int(b) & 0x7F) << shift |
| 10125 | if b < 0x80 { |
| 10126 | break |
| 10127 | } |
| 10128 | } |
| 10129 | if msglen < 0 { |
| 10130 | return ErrInvalidLengthRpc |
| 10131 | } |
| 10132 | postIndex := iNdEx + msglen |
| 10133 | if postIndex > l { |
| 10134 | return io.ErrUnexpectedEOF |
| 10135 | } |
| 10136 | if m.Header == nil { |
| 10137 | m.Header = &ResponseHeader{} |
| 10138 | } |
| 10139 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 10140 | return err |
| 10141 | } |
| 10142 | iNdEx = postIndex |
| 10143 | case 2: |
| 10144 | if wireType != 2 { |
| 10145 | return fmt.Errorf("proto: wrong wireType = %d for field Kvs", wireType) |
| 10146 | } |
| 10147 | var msglen int |
| 10148 | for shift := uint(0); ; shift += 7 { |
| 10149 | if shift >= 64 { |
| 10150 | return ErrIntOverflowRpc |
| 10151 | } |
| 10152 | if iNdEx >= l { |
| 10153 | return io.ErrUnexpectedEOF |
| 10154 | } |
| 10155 | b := dAtA[iNdEx] |
| 10156 | iNdEx++ |
| 10157 | msglen |= (int(b) & 0x7F) << shift |
| 10158 | if b < 0x80 { |
| 10159 | break |
| 10160 | } |
| 10161 | } |
| 10162 | if msglen < 0 { |
| 10163 | return ErrInvalidLengthRpc |
| 10164 | } |
| 10165 | postIndex := iNdEx + msglen |
| 10166 | if postIndex > l { |
| 10167 | return io.ErrUnexpectedEOF |
| 10168 | } |
| 10169 | m.Kvs = append(m.Kvs, &mvccpb.KeyValue{}) |
| 10170 | if err := m.Kvs[len(m.Kvs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 10171 | return err |
| 10172 | } |
| 10173 | iNdEx = postIndex |
| 10174 | case 3: |
| 10175 | if wireType != 0 { |
| 10176 | return fmt.Errorf("proto: wrong wireType = %d for field More", wireType) |
| 10177 | } |
| 10178 | var v int |
| 10179 | for shift := uint(0); ; shift += 7 { |
| 10180 | if shift >= 64 { |
| 10181 | return ErrIntOverflowRpc |
| 10182 | } |
| 10183 | if iNdEx >= l { |
| 10184 | return io.ErrUnexpectedEOF |
| 10185 | } |
| 10186 | b := dAtA[iNdEx] |
| 10187 | iNdEx++ |
| 10188 | v |= (int(b) & 0x7F) << shift |
| 10189 | if b < 0x80 { |
| 10190 | break |
| 10191 | } |
| 10192 | } |
| 10193 | m.More = bool(v != 0) |
| 10194 | case 4: |
| 10195 | if wireType != 0 { |
| 10196 | return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) |
| 10197 | } |
| 10198 | m.Count = 0 |
| 10199 | for shift := uint(0); ; shift += 7 { |
| 10200 | if shift >= 64 { |
| 10201 | return ErrIntOverflowRpc |
| 10202 | } |
| 10203 | if iNdEx >= l { |
| 10204 | return io.ErrUnexpectedEOF |
| 10205 | } |
| 10206 | b := dAtA[iNdEx] |
| 10207 | iNdEx++ |
| 10208 | m.Count |= (int64(b) & 0x7F) << shift |
| 10209 | if b < 0x80 { |
| 10210 | break |
| 10211 | } |
| 10212 | } |
| 10213 | default: |
| 10214 | iNdEx = preIndex |
| 10215 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 10216 | if err != nil { |
| 10217 | return err |
| 10218 | } |
| 10219 | if skippy < 0 { |
| 10220 | return ErrInvalidLengthRpc |
| 10221 | } |
| 10222 | if (iNdEx + skippy) > l { |
| 10223 | return io.ErrUnexpectedEOF |
| 10224 | } |
| 10225 | iNdEx += skippy |
| 10226 | } |
| 10227 | } |
| 10228 | |
| 10229 | if iNdEx > l { |
| 10230 | return io.ErrUnexpectedEOF |
| 10231 | } |
| 10232 | return nil |
| 10233 | } |
| 10234 | func (m *PutRequest) Unmarshal(dAtA []byte) error { |
| 10235 | l := len(dAtA) |
| 10236 | iNdEx := 0 |
| 10237 | for iNdEx < l { |
| 10238 | preIndex := iNdEx |
| 10239 | var wire uint64 |
| 10240 | for shift := uint(0); ; shift += 7 { |
| 10241 | if shift >= 64 { |
| 10242 | return ErrIntOverflowRpc |
| 10243 | } |
| 10244 | if iNdEx >= l { |
| 10245 | return io.ErrUnexpectedEOF |
| 10246 | } |
| 10247 | b := dAtA[iNdEx] |
| 10248 | iNdEx++ |
| 10249 | wire |= (uint64(b) & 0x7F) << shift |
| 10250 | if b < 0x80 { |
| 10251 | break |
| 10252 | } |
| 10253 | } |
| 10254 | fieldNum := int32(wire >> 3) |
| 10255 | wireType := int(wire & 0x7) |
| 10256 | if wireType == 4 { |
| 10257 | return fmt.Errorf("proto: PutRequest: wiretype end group for non-group") |
| 10258 | } |
| 10259 | if fieldNum <= 0 { |
| 10260 | return fmt.Errorf("proto: PutRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 10261 | } |
| 10262 | switch fieldNum { |
| 10263 | case 1: |
| 10264 | if wireType != 2 { |
| 10265 | return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| 10266 | } |
| 10267 | var byteLen int |
| 10268 | for shift := uint(0); ; shift += 7 { |
| 10269 | if shift >= 64 { |
| 10270 | return ErrIntOverflowRpc |
| 10271 | } |
| 10272 | if iNdEx >= l { |
| 10273 | return io.ErrUnexpectedEOF |
| 10274 | } |
| 10275 | b := dAtA[iNdEx] |
| 10276 | iNdEx++ |
| 10277 | byteLen |= (int(b) & 0x7F) << shift |
| 10278 | if b < 0x80 { |
| 10279 | break |
| 10280 | } |
| 10281 | } |
| 10282 | if byteLen < 0 { |
| 10283 | return ErrInvalidLengthRpc |
| 10284 | } |
| 10285 | postIndex := iNdEx + byteLen |
| 10286 | if postIndex > l { |
| 10287 | return io.ErrUnexpectedEOF |
| 10288 | } |
| 10289 | m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) |
| 10290 | if m.Key == nil { |
| 10291 | m.Key = []byte{} |
| 10292 | } |
| 10293 | iNdEx = postIndex |
| 10294 | case 2: |
| 10295 | if wireType != 2 { |
| 10296 | return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) |
| 10297 | } |
| 10298 | var byteLen int |
| 10299 | for shift := uint(0); ; shift += 7 { |
| 10300 | if shift >= 64 { |
| 10301 | return ErrIntOverflowRpc |
| 10302 | } |
| 10303 | if iNdEx >= l { |
| 10304 | return io.ErrUnexpectedEOF |
| 10305 | } |
| 10306 | b := dAtA[iNdEx] |
| 10307 | iNdEx++ |
| 10308 | byteLen |= (int(b) & 0x7F) << shift |
| 10309 | if b < 0x80 { |
| 10310 | break |
| 10311 | } |
| 10312 | } |
| 10313 | if byteLen < 0 { |
| 10314 | return ErrInvalidLengthRpc |
| 10315 | } |
| 10316 | postIndex := iNdEx + byteLen |
| 10317 | if postIndex > l { |
| 10318 | return io.ErrUnexpectedEOF |
| 10319 | } |
| 10320 | m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) |
| 10321 | if m.Value == nil { |
| 10322 | m.Value = []byte{} |
| 10323 | } |
| 10324 | iNdEx = postIndex |
| 10325 | case 3: |
| 10326 | if wireType != 0 { |
| 10327 | return fmt.Errorf("proto: wrong wireType = %d for field Lease", wireType) |
| 10328 | } |
| 10329 | m.Lease = 0 |
| 10330 | for shift := uint(0); ; shift += 7 { |
| 10331 | if shift >= 64 { |
| 10332 | return ErrIntOverflowRpc |
| 10333 | } |
| 10334 | if iNdEx >= l { |
| 10335 | return io.ErrUnexpectedEOF |
| 10336 | } |
| 10337 | b := dAtA[iNdEx] |
| 10338 | iNdEx++ |
| 10339 | m.Lease |= (int64(b) & 0x7F) << shift |
| 10340 | if b < 0x80 { |
| 10341 | break |
| 10342 | } |
| 10343 | } |
| 10344 | case 4: |
| 10345 | if wireType != 0 { |
| 10346 | return fmt.Errorf("proto: wrong wireType = %d for field PrevKv", wireType) |
| 10347 | } |
| 10348 | var v int |
| 10349 | for shift := uint(0); ; shift += 7 { |
| 10350 | if shift >= 64 { |
| 10351 | return ErrIntOverflowRpc |
| 10352 | } |
| 10353 | if iNdEx >= l { |
| 10354 | return io.ErrUnexpectedEOF |
| 10355 | } |
| 10356 | b := dAtA[iNdEx] |
| 10357 | iNdEx++ |
| 10358 | v |= (int(b) & 0x7F) << shift |
| 10359 | if b < 0x80 { |
| 10360 | break |
| 10361 | } |
| 10362 | } |
| 10363 | m.PrevKv = bool(v != 0) |
| 10364 | case 5: |
| 10365 | if wireType != 0 { |
| 10366 | return fmt.Errorf("proto: wrong wireType = %d for field IgnoreValue", wireType) |
| 10367 | } |
| 10368 | var v int |
| 10369 | for shift := uint(0); ; shift += 7 { |
| 10370 | if shift >= 64 { |
| 10371 | return ErrIntOverflowRpc |
| 10372 | } |
| 10373 | if iNdEx >= l { |
| 10374 | return io.ErrUnexpectedEOF |
| 10375 | } |
| 10376 | b := dAtA[iNdEx] |
| 10377 | iNdEx++ |
| 10378 | v |= (int(b) & 0x7F) << shift |
| 10379 | if b < 0x80 { |
| 10380 | break |
| 10381 | } |
| 10382 | } |
| 10383 | m.IgnoreValue = bool(v != 0) |
| 10384 | case 6: |
| 10385 | if wireType != 0 { |
| 10386 | return fmt.Errorf("proto: wrong wireType = %d for field IgnoreLease", wireType) |
| 10387 | } |
| 10388 | var v int |
| 10389 | for shift := uint(0); ; shift += 7 { |
| 10390 | if shift >= 64 { |
| 10391 | return ErrIntOverflowRpc |
| 10392 | } |
| 10393 | if iNdEx >= l { |
| 10394 | return io.ErrUnexpectedEOF |
| 10395 | } |
| 10396 | b := dAtA[iNdEx] |
| 10397 | iNdEx++ |
| 10398 | v |= (int(b) & 0x7F) << shift |
| 10399 | if b < 0x80 { |
| 10400 | break |
| 10401 | } |
| 10402 | } |
| 10403 | m.IgnoreLease = bool(v != 0) |
| 10404 | default: |
| 10405 | iNdEx = preIndex |
| 10406 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 10407 | if err != nil { |
| 10408 | return err |
| 10409 | } |
| 10410 | if skippy < 0 { |
| 10411 | return ErrInvalidLengthRpc |
| 10412 | } |
| 10413 | if (iNdEx + skippy) > l { |
| 10414 | return io.ErrUnexpectedEOF |
| 10415 | } |
| 10416 | iNdEx += skippy |
| 10417 | } |
| 10418 | } |
| 10419 | |
| 10420 | if iNdEx > l { |
| 10421 | return io.ErrUnexpectedEOF |
| 10422 | } |
| 10423 | return nil |
| 10424 | } |
| 10425 | func (m *PutResponse) Unmarshal(dAtA []byte) error { |
| 10426 | l := len(dAtA) |
| 10427 | iNdEx := 0 |
| 10428 | for iNdEx < l { |
| 10429 | preIndex := iNdEx |
| 10430 | var wire uint64 |
| 10431 | for shift := uint(0); ; shift += 7 { |
| 10432 | if shift >= 64 { |
| 10433 | return ErrIntOverflowRpc |
| 10434 | } |
| 10435 | if iNdEx >= l { |
| 10436 | return io.ErrUnexpectedEOF |
| 10437 | } |
| 10438 | b := dAtA[iNdEx] |
| 10439 | iNdEx++ |
| 10440 | wire |= (uint64(b) & 0x7F) << shift |
| 10441 | if b < 0x80 { |
| 10442 | break |
| 10443 | } |
| 10444 | } |
| 10445 | fieldNum := int32(wire >> 3) |
| 10446 | wireType := int(wire & 0x7) |
| 10447 | if wireType == 4 { |
| 10448 | return fmt.Errorf("proto: PutResponse: wiretype end group for non-group") |
| 10449 | } |
| 10450 | if fieldNum <= 0 { |
| 10451 | return fmt.Errorf("proto: PutResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 10452 | } |
| 10453 | switch fieldNum { |
| 10454 | case 1: |
| 10455 | if wireType != 2 { |
| 10456 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 10457 | } |
| 10458 | var msglen int |
| 10459 | for shift := uint(0); ; shift += 7 { |
| 10460 | if shift >= 64 { |
| 10461 | return ErrIntOverflowRpc |
| 10462 | } |
| 10463 | if iNdEx >= l { |
| 10464 | return io.ErrUnexpectedEOF |
| 10465 | } |
| 10466 | b := dAtA[iNdEx] |
| 10467 | iNdEx++ |
| 10468 | msglen |= (int(b) & 0x7F) << shift |
| 10469 | if b < 0x80 { |
| 10470 | break |
| 10471 | } |
| 10472 | } |
| 10473 | if msglen < 0 { |
| 10474 | return ErrInvalidLengthRpc |
| 10475 | } |
| 10476 | postIndex := iNdEx + msglen |
| 10477 | if postIndex > l { |
| 10478 | return io.ErrUnexpectedEOF |
| 10479 | } |
| 10480 | if m.Header == nil { |
| 10481 | m.Header = &ResponseHeader{} |
| 10482 | } |
| 10483 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 10484 | return err |
| 10485 | } |
| 10486 | iNdEx = postIndex |
| 10487 | case 2: |
| 10488 | if wireType != 2 { |
| 10489 | return fmt.Errorf("proto: wrong wireType = %d for field PrevKv", wireType) |
| 10490 | } |
| 10491 | var msglen int |
| 10492 | for shift := uint(0); ; shift += 7 { |
| 10493 | if shift >= 64 { |
| 10494 | return ErrIntOverflowRpc |
| 10495 | } |
| 10496 | if iNdEx >= l { |
| 10497 | return io.ErrUnexpectedEOF |
| 10498 | } |
| 10499 | b := dAtA[iNdEx] |
| 10500 | iNdEx++ |
| 10501 | msglen |= (int(b) & 0x7F) << shift |
| 10502 | if b < 0x80 { |
| 10503 | break |
| 10504 | } |
| 10505 | } |
| 10506 | if msglen < 0 { |
| 10507 | return ErrInvalidLengthRpc |
| 10508 | } |
| 10509 | postIndex := iNdEx + msglen |
| 10510 | if postIndex > l { |
| 10511 | return io.ErrUnexpectedEOF |
| 10512 | } |
| 10513 | if m.PrevKv == nil { |
| 10514 | m.PrevKv = &mvccpb.KeyValue{} |
| 10515 | } |
| 10516 | if err := m.PrevKv.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 10517 | return err |
| 10518 | } |
| 10519 | iNdEx = postIndex |
| 10520 | default: |
| 10521 | iNdEx = preIndex |
| 10522 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 10523 | if err != nil { |
| 10524 | return err |
| 10525 | } |
| 10526 | if skippy < 0 { |
| 10527 | return ErrInvalidLengthRpc |
| 10528 | } |
| 10529 | if (iNdEx + skippy) > l { |
| 10530 | return io.ErrUnexpectedEOF |
| 10531 | } |
| 10532 | iNdEx += skippy |
| 10533 | } |
| 10534 | } |
| 10535 | |
| 10536 | if iNdEx > l { |
| 10537 | return io.ErrUnexpectedEOF |
| 10538 | } |
| 10539 | return nil |
| 10540 | } |
| 10541 | func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { |
| 10542 | l := len(dAtA) |
| 10543 | iNdEx := 0 |
| 10544 | for iNdEx < l { |
| 10545 | preIndex := iNdEx |
| 10546 | var wire uint64 |
| 10547 | for shift := uint(0); ; shift += 7 { |
| 10548 | if shift >= 64 { |
| 10549 | return ErrIntOverflowRpc |
| 10550 | } |
| 10551 | if iNdEx >= l { |
| 10552 | return io.ErrUnexpectedEOF |
| 10553 | } |
| 10554 | b := dAtA[iNdEx] |
| 10555 | iNdEx++ |
| 10556 | wire |= (uint64(b) & 0x7F) << shift |
| 10557 | if b < 0x80 { |
| 10558 | break |
| 10559 | } |
| 10560 | } |
| 10561 | fieldNum := int32(wire >> 3) |
| 10562 | wireType := int(wire & 0x7) |
| 10563 | if wireType == 4 { |
| 10564 | return fmt.Errorf("proto: DeleteRangeRequest: wiretype end group for non-group") |
| 10565 | } |
| 10566 | if fieldNum <= 0 { |
| 10567 | return fmt.Errorf("proto: DeleteRangeRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 10568 | } |
| 10569 | switch fieldNum { |
| 10570 | case 1: |
| 10571 | if wireType != 2 { |
| 10572 | return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| 10573 | } |
| 10574 | var byteLen int |
| 10575 | for shift := uint(0); ; shift += 7 { |
| 10576 | if shift >= 64 { |
| 10577 | return ErrIntOverflowRpc |
| 10578 | } |
| 10579 | if iNdEx >= l { |
| 10580 | return io.ErrUnexpectedEOF |
| 10581 | } |
| 10582 | b := dAtA[iNdEx] |
| 10583 | iNdEx++ |
| 10584 | byteLen |= (int(b) & 0x7F) << shift |
| 10585 | if b < 0x80 { |
| 10586 | break |
| 10587 | } |
| 10588 | } |
| 10589 | if byteLen < 0 { |
| 10590 | return ErrInvalidLengthRpc |
| 10591 | } |
| 10592 | postIndex := iNdEx + byteLen |
| 10593 | if postIndex > l { |
| 10594 | return io.ErrUnexpectedEOF |
| 10595 | } |
| 10596 | m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) |
| 10597 | if m.Key == nil { |
| 10598 | m.Key = []byte{} |
| 10599 | } |
| 10600 | iNdEx = postIndex |
| 10601 | case 2: |
| 10602 | if wireType != 2 { |
| 10603 | return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType) |
| 10604 | } |
| 10605 | var byteLen int |
| 10606 | for shift := uint(0); ; shift += 7 { |
| 10607 | if shift >= 64 { |
| 10608 | return ErrIntOverflowRpc |
| 10609 | } |
| 10610 | if iNdEx >= l { |
| 10611 | return io.ErrUnexpectedEOF |
| 10612 | } |
| 10613 | b := dAtA[iNdEx] |
| 10614 | iNdEx++ |
| 10615 | byteLen |= (int(b) & 0x7F) << shift |
| 10616 | if b < 0x80 { |
| 10617 | break |
| 10618 | } |
| 10619 | } |
| 10620 | if byteLen < 0 { |
| 10621 | return ErrInvalidLengthRpc |
| 10622 | } |
| 10623 | postIndex := iNdEx + byteLen |
| 10624 | if postIndex > l { |
| 10625 | return io.ErrUnexpectedEOF |
| 10626 | } |
| 10627 | m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...) |
| 10628 | if m.RangeEnd == nil { |
| 10629 | m.RangeEnd = []byte{} |
| 10630 | } |
| 10631 | iNdEx = postIndex |
| 10632 | case 3: |
| 10633 | if wireType != 0 { |
| 10634 | return fmt.Errorf("proto: wrong wireType = %d for field PrevKv", wireType) |
| 10635 | } |
| 10636 | var v int |
| 10637 | for shift := uint(0); ; shift += 7 { |
| 10638 | if shift >= 64 { |
| 10639 | return ErrIntOverflowRpc |
| 10640 | } |
| 10641 | if iNdEx >= l { |
| 10642 | return io.ErrUnexpectedEOF |
| 10643 | } |
| 10644 | b := dAtA[iNdEx] |
| 10645 | iNdEx++ |
| 10646 | v |= (int(b) & 0x7F) << shift |
| 10647 | if b < 0x80 { |
| 10648 | break |
| 10649 | } |
| 10650 | } |
| 10651 | m.PrevKv = bool(v != 0) |
| 10652 | default: |
| 10653 | iNdEx = preIndex |
| 10654 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 10655 | if err != nil { |
| 10656 | return err |
| 10657 | } |
| 10658 | if skippy < 0 { |
| 10659 | return ErrInvalidLengthRpc |
| 10660 | } |
| 10661 | if (iNdEx + skippy) > l { |
| 10662 | return io.ErrUnexpectedEOF |
| 10663 | } |
| 10664 | iNdEx += skippy |
| 10665 | } |
| 10666 | } |
| 10667 | |
| 10668 | if iNdEx > l { |
| 10669 | return io.ErrUnexpectedEOF |
| 10670 | } |
| 10671 | return nil |
| 10672 | } |
| 10673 | func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { |
| 10674 | l := len(dAtA) |
| 10675 | iNdEx := 0 |
| 10676 | for iNdEx < l { |
| 10677 | preIndex := iNdEx |
| 10678 | var wire uint64 |
| 10679 | for shift := uint(0); ; shift += 7 { |
| 10680 | if shift >= 64 { |
| 10681 | return ErrIntOverflowRpc |
| 10682 | } |
| 10683 | if iNdEx >= l { |
| 10684 | return io.ErrUnexpectedEOF |
| 10685 | } |
| 10686 | b := dAtA[iNdEx] |
| 10687 | iNdEx++ |
| 10688 | wire |= (uint64(b) & 0x7F) << shift |
| 10689 | if b < 0x80 { |
| 10690 | break |
| 10691 | } |
| 10692 | } |
| 10693 | fieldNum := int32(wire >> 3) |
| 10694 | wireType := int(wire & 0x7) |
| 10695 | if wireType == 4 { |
| 10696 | return fmt.Errorf("proto: DeleteRangeResponse: wiretype end group for non-group") |
| 10697 | } |
| 10698 | if fieldNum <= 0 { |
| 10699 | return fmt.Errorf("proto: DeleteRangeResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 10700 | } |
| 10701 | switch fieldNum { |
| 10702 | case 1: |
| 10703 | if wireType != 2 { |
| 10704 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 10705 | } |
| 10706 | var msglen int |
| 10707 | for shift := uint(0); ; shift += 7 { |
| 10708 | if shift >= 64 { |
| 10709 | return ErrIntOverflowRpc |
| 10710 | } |
| 10711 | if iNdEx >= l { |
| 10712 | return io.ErrUnexpectedEOF |
| 10713 | } |
| 10714 | b := dAtA[iNdEx] |
| 10715 | iNdEx++ |
| 10716 | msglen |= (int(b) & 0x7F) << shift |
| 10717 | if b < 0x80 { |
| 10718 | break |
| 10719 | } |
| 10720 | } |
| 10721 | if msglen < 0 { |
| 10722 | return ErrInvalidLengthRpc |
| 10723 | } |
| 10724 | postIndex := iNdEx + msglen |
| 10725 | if postIndex > l { |
| 10726 | return io.ErrUnexpectedEOF |
| 10727 | } |
| 10728 | if m.Header == nil { |
| 10729 | m.Header = &ResponseHeader{} |
| 10730 | } |
| 10731 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 10732 | return err |
| 10733 | } |
| 10734 | iNdEx = postIndex |
| 10735 | case 2: |
| 10736 | if wireType != 0 { |
| 10737 | return fmt.Errorf("proto: wrong wireType = %d for field Deleted", wireType) |
| 10738 | } |
| 10739 | m.Deleted = 0 |
| 10740 | for shift := uint(0); ; shift += 7 { |
| 10741 | if shift >= 64 { |
| 10742 | return ErrIntOverflowRpc |
| 10743 | } |
| 10744 | if iNdEx >= l { |
| 10745 | return io.ErrUnexpectedEOF |
| 10746 | } |
| 10747 | b := dAtA[iNdEx] |
| 10748 | iNdEx++ |
| 10749 | m.Deleted |= (int64(b) & 0x7F) << shift |
| 10750 | if b < 0x80 { |
| 10751 | break |
| 10752 | } |
| 10753 | } |
| 10754 | case 3: |
| 10755 | if wireType != 2 { |
| 10756 | return fmt.Errorf("proto: wrong wireType = %d for field PrevKvs", wireType) |
| 10757 | } |
| 10758 | var msglen int |
| 10759 | for shift := uint(0); ; shift += 7 { |
| 10760 | if shift >= 64 { |
| 10761 | return ErrIntOverflowRpc |
| 10762 | } |
| 10763 | if iNdEx >= l { |
| 10764 | return io.ErrUnexpectedEOF |
| 10765 | } |
| 10766 | b := dAtA[iNdEx] |
| 10767 | iNdEx++ |
| 10768 | msglen |= (int(b) & 0x7F) << shift |
| 10769 | if b < 0x80 { |
| 10770 | break |
| 10771 | } |
| 10772 | } |
| 10773 | if msglen < 0 { |
| 10774 | return ErrInvalidLengthRpc |
| 10775 | } |
| 10776 | postIndex := iNdEx + msglen |
| 10777 | if postIndex > l { |
| 10778 | return io.ErrUnexpectedEOF |
| 10779 | } |
| 10780 | m.PrevKvs = append(m.PrevKvs, &mvccpb.KeyValue{}) |
| 10781 | if err := m.PrevKvs[len(m.PrevKvs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 10782 | return err |
| 10783 | } |
| 10784 | iNdEx = postIndex |
| 10785 | default: |
| 10786 | iNdEx = preIndex |
| 10787 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 10788 | if err != nil { |
| 10789 | return err |
| 10790 | } |
| 10791 | if skippy < 0 { |
| 10792 | return ErrInvalidLengthRpc |
| 10793 | } |
| 10794 | if (iNdEx + skippy) > l { |
| 10795 | return io.ErrUnexpectedEOF |
| 10796 | } |
| 10797 | iNdEx += skippy |
| 10798 | } |
| 10799 | } |
| 10800 | |
| 10801 | if iNdEx > l { |
| 10802 | return io.ErrUnexpectedEOF |
| 10803 | } |
| 10804 | return nil |
| 10805 | } |
| 10806 | func (m *RequestOp) Unmarshal(dAtA []byte) error { |
| 10807 | l := len(dAtA) |
| 10808 | iNdEx := 0 |
| 10809 | for iNdEx < l { |
| 10810 | preIndex := iNdEx |
| 10811 | var wire uint64 |
| 10812 | for shift := uint(0); ; shift += 7 { |
| 10813 | if shift >= 64 { |
| 10814 | return ErrIntOverflowRpc |
| 10815 | } |
| 10816 | if iNdEx >= l { |
| 10817 | return io.ErrUnexpectedEOF |
| 10818 | } |
| 10819 | b := dAtA[iNdEx] |
| 10820 | iNdEx++ |
| 10821 | wire |= (uint64(b) & 0x7F) << shift |
| 10822 | if b < 0x80 { |
| 10823 | break |
| 10824 | } |
| 10825 | } |
| 10826 | fieldNum := int32(wire >> 3) |
| 10827 | wireType := int(wire & 0x7) |
| 10828 | if wireType == 4 { |
| 10829 | return fmt.Errorf("proto: RequestOp: wiretype end group for non-group") |
| 10830 | } |
| 10831 | if fieldNum <= 0 { |
| 10832 | return fmt.Errorf("proto: RequestOp: illegal tag %d (wire type %d)", fieldNum, wire) |
| 10833 | } |
| 10834 | switch fieldNum { |
| 10835 | case 1: |
| 10836 | if wireType != 2 { |
| 10837 | return fmt.Errorf("proto: wrong wireType = %d for field RequestRange", wireType) |
| 10838 | } |
| 10839 | var msglen int |
| 10840 | for shift := uint(0); ; shift += 7 { |
| 10841 | if shift >= 64 { |
| 10842 | return ErrIntOverflowRpc |
| 10843 | } |
| 10844 | if iNdEx >= l { |
| 10845 | return io.ErrUnexpectedEOF |
| 10846 | } |
| 10847 | b := dAtA[iNdEx] |
| 10848 | iNdEx++ |
| 10849 | msglen |= (int(b) & 0x7F) << shift |
| 10850 | if b < 0x80 { |
| 10851 | break |
| 10852 | } |
| 10853 | } |
| 10854 | if msglen < 0 { |
| 10855 | return ErrInvalidLengthRpc |
| 10856 | } |
| 10857 | postIndex := iNdEx + msglen |
| 10858 | if postIndex > l { |
| 10859 | return io.ErrUnexpectedEOF |
| 10860 | } |
| 10861 | v := &RangeRequest{} |
| 10862 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 10863 | return err |
| 10864 | } |
| 10865 | m.Request = &RequestOp_RequestRange{v} |
| 10866 | iNdEx = postIndex |
| 10867 | case 2: |
| 10868 | if wireType != 2 { |
| 10869 | return fmt.Errorf("proto: wrong wireType = %d for field RequestPut", wireType) |
| 10870 | } |
| 10871 | var msglen int |
| 10872 | for shift := uint(0); ; shift += 7 { |
| 10873 | if shift >= 64 { |
| 10874 | return ErrIntOverflowRpc |
| 10875 | } |
| 10876 | if iNdEx >= l { |
| 10877 | return io.ErrUnexpectedEOF |
| 10878 | } |
| 10879 | b := dAtA[iNdEx] |
| 10880 | iNdEx++ |
| 10881 | msglen |= (int(b) & 0x7F) << shift |
| 10882 | if b < 0x80 { |
| 10883 | break |
| 10884 | } |
| 10885 | } |
| 10886 | if msglen < 0 { |
| 10887 | return ErrInvalidLengthRpc |
| 10888 | } |
| 10889 | postIndex := iNdEx + msglen |
| 10890 | if postIndex > l { |
| 10891 | return io.ErrUnexpectedEOF |
| 10892 | } |
| 10893 | v := &PutRequest{} |
| 10894 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 10895 | return err |
| 10896 | } |
| 10897 | m.Request = &RequestOp_RequestPut{v} |
| 10898 | iNdEx = postIndex |
| 10899 | case 3: |
| 10900 | if wireType != 2 { |
| 10901 | return fmt.Errorf("proto: wrong wireType = %d for field RequestDeleteRange", wireType) |
| 10902 | } |
| 10903 | var msglen int |
| 10904 | for shift := uint(0); ; shift += 7 { |
| 10905 | if shift >= 64 { |
| 10906 | return ErrIntOverflowRpc |
| 10907 | } |
| 10908 | if iNdEx >= l { |
| 10909 | return io.ErrUnexpectedEOF |
| 10910 | } |
| 10911 | b := dAtA[iNdEx] |
| 10912 | iNdEx++ |
| 10913 | msglen |= (int(b) & 0x7F) << shift |
| 10914 | if b < 0x80 { |
| 10915 | break |
| 10916 | } |
| 10917 | } |
| 10918 | if msglen < 0 { |
| 10919 | return ErrInvalidLengthRpc |
| 10920 | } |
| 10921 | postIndex := iNdEx + msglen |
| 10922 | if postIndex > l { |
| 10923 | return io.ErrUnexpectedEOF |
| 10924 | } |
| 10925 | v := &DeleteRangeRequest{} |
| 10926 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 10927 | return err |
| 10928 | } |
| 10929 | m.Request = &RequestOp_RequestDeleteRange{v} |
| 10930 | iNdEx = postIndex |
| 10931 | case 4: |
| 10932 | if wireType != 2 { |
| 10933 | return fmt.Errorf("proto: wrong wireType = %d for field RequestTxn", wireType) |
| 10934 | } |
| 10935 | var msglen int |
| 10936 | for shift := uint(0); ; shift += 7 { |
| 10937 | if shift >= 64 { |
| 10938 | return ErrIntOverflowRpc |
| 10939 | } |
| 10940 | if iNdEx >= l { |
| 10941 | return io.ErrUnexpectedEOF |
| 10942 | } |
| 10943 | b := dAtA[iNdEx] |
| 10944 | iNdEx++ |
| 10945 | msglen |= (int(b) & 0x7F) << shift |
| 10946 | if b < 0x80 { |
| 10947 | break |
| 10948 | } |
| 10949 | } |
| 10950 | if msglen < 0 { |
| 10951 | return ErrInvalidLengthRpc |
| 10952 | } |
| 10953 | postIndex := iNdEx + msglen |
| 10954 | if postIndex > l { |
| 10955 | return io.ErrUnexpectedEOF |
| 10956 | } |
| 10957 | v := &TxnRequest{} |
| 10958 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 10959 | return err |
| 10960 | } |
| 10961 | m.Request = &RequestOp_RequestTxn{v} |
| 10962 | iNdEx = postIndex |
| 10963 | default: |
| 10964 | iNdEx = preIndex |
| 10965 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 10966 | if err != nil { |
| 10967 | return err |
| 10968 | } |
| 10969 | if skippy < 0 { |
| 10970 | return ErrInvalidLengthRpc |
| 10971 | } |
| 10972 | if (iNdEx + skippy) > l { |
| 10973 | return io.ErrUnexpectedEOF |
| 10974 | } |
| 10975 | iNdEx += skippy |
| 10976 | } |
| 10977 | } |
| 10978 | |
| 10979 | if iNdEx > l { |
| 10980 | return io.ErrUnexpectedEOF |
| 10981 | } |
| 10982 | return nil |
| 10983 | } |
| 10984 | func (m *ResponseOp) Unmarshal(dAtA []byte) error { |
| 10985 | l := len(dAtA) |
| 10986 | iNdEx := 0 |
| 10987 | for iNdEx < l { |
| 10988 | preIndex := iNdEx |
| 10989 | var wire uint64 |
| 10990 | for shift := uint(0); ; shift += 7 { |
| 10991 | if shift >= 64 { |
| 10992 | return ErrIntOverflowRpc |
| 10993 | } |
| 10994 | if iNdEx >= l { |
| 10995 | return io.ErrUnexpectedEOF |
| 10996 | } |
| 10997 | b := dAtA[iNdEx] |
| 10998 | iNdEx++ |
| 10999 | wire |= (uint64(b) & 0x7F) << shift |
| 11000 | if b < 0x80 { |
| 11001 | break |
| 11002 | } |
| 11003 | } |
| 11004 | fieldNum := int32(wire >> 3) |
| 11005 | wireType := int(wire & 0x7) |
| 11006 | if wireType == 4 { |
| 11007 | return fmt.Errorf("proto: ResponseOp: wiretype end group for non-group") |
| 11008 | } |
| 11009 | if fieldNum <= 0 { |
| 11010 | return fmt.Errorf("proto: ResponseOp: illegal tag %d (wire type %d)", fieldNum, wire) |
| 11011 | } |
| 11012 | switch fieldNum { |
| 11013 | case 1: |
| 11014 | if wireType != 2 { |
| 11015 | return fmt.Errorf("proto: wrong wireType = %d for field ResponseRange", wireType) |
| 11016 | } |
| 11017 | var msglen int |
| 11018 | for shift := uint(0); ; shift += 7 { |
| 11019 | if shift >= 64 { |
| 11020 | return ErrIntOverflowRpc |
| 11021 | } |
| 11022 | if iNdEx >= l { |
| 11023 | return io.ErrUnexpectedEOF |
| 11024 | } |
| 11025 | b := dAtA[iNdEx] |
| 11026 | iNdEx++ |
| 11027 | msglen |= (int(b) & 0x7F) << shift |
| 11028 | if b < 0x80 { |
| 11029 | break |
| 11030 | } |
| 11031 | } |
| 11032 | if msglen < 0 { |
| 11033 | return ErrInvalidLengthRpc |
| 11034 | } |
| 11035 | postIndex := iNdEx + msglen |
| 11036 | if postIndex > l { |
| 11037 | return io.ErrUnexpectedEOF |
| 11038 | } |
| 11039 | v := &RangeResponse{} |
| 11040 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11041 | return err |
| 11042 | } |
| 11043 | m.Response = &ResponseOp_ResponseRange{v} |
| 11044 | iNdEx = postIndex |
| 11045 | case 2: |
| 11046 | if wireType != 2 { |
| 11047 | return fmt.Errorf("proto: wrong wireType = %d for field ResponsePut", wireType) |
| 11048 | } |
| 11049 | var msglen int |
| 11050 | for shift := uint(0); ; shift += 7 { |
| 11051 | if shift >= 64 { |
| 11052 | return ErrIntOverflowRpc |
| 11053 | } |
| 11054 | if iNdEx >= l { |
| 11055 | return io.ErrUnexpectedEOF |
| 11056 | } |
| 11057 | b := dAtA[iNdEx] |
| 11058 | iNdEx++ |
| 11059 | msglen |= (int(b) & 0x7F) << shift |
| 11060 | if b < 0x80 { |
| 11061 | break |
| 11062 | } |
| 11063 | } |
| 11064 | if msglen < 0 { |
| 11065 | return ErrInvalidLengthRpc |
| 11066 | } |
| 11067 | postIndex := iNdEx + msglen |
| 11068 | if postIndex > l { |
| 11069 | return io.ErrUnexpectedEOF |
| 11070 | } |
| 11071 | v := &PutResponse{} |
| 11072 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11073 | return err |
| 11074 | } |
| 11075 | m.Response = &ResponseOp_ResponsePut{v} |
| 11076 | iNdEx = postIndex |
| 11077 | case 3: |
| 11078 | if wireType != 2 { |
| 11079 | return fmt.Errorf("proto: wrong wireType = %d for field ResponseDeleteRange", wireType) |
| 11080 | } |
| 11081 | var msglen int |
| 11082 | for shift := uint(0); ; shift += 7 { |
| 11083 | if shift >= 64 { |
| 11084 | return ErrIntOverflowRpc |
| 11085 | } |
| 11086 | if iNdEx >= l { |
| 11087 | return io.ErrUnexpectedEOF |
| 11088 | } |
| 11089 | b := dAtA[iNdEx] |
| 11090 | iNdEx++ |
| 11091 | msglen |= (int(b) & 0x7F) << shift |
| 11092 | if b < 0x80 { |
| 11093 | break |
| 11094 | } |
| 11095 | } |
| 11096 | if msglen < 0 { |
| 11097 | return ErrInvalidLengthRpc |
| 11098 | } |
| 11099 | postIndex := iNdEx + msglen |
| 11100 | if postIndex > l { |
| 11101 | return io.ErrUnexpectedEOF |
| 11102 | } |
| 11103 | v := &DeleteRangeResponse{} |
| 11104 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11105 | return err |
| 11106 | } |
| 11107 | m.Response = &ResponseOp_ResponseDeleteRange{v} |
| 11108 | iNdEx = postIndex |
| 11109 | case 4: |
| 11110 | if wireType != 2 { |
| 11111 | return fmt.Errorf("proto: wrong wireType = %d for field ResponseTxn", wireType) |
| 11112 | } |
| 11113 | var msglen int |
| 11114 | for shift := uint(0); ; shift += 7 { |
| 11115 | if shift >= 64 { |
| 11116 | return ErrIntOverflowRpc |
| 11117 | } |
| 11118 | if iNdEx >= l { |
| 11119 | return io.ErrUnexpectedEOF |
| 11120 | } |
| 11121 | b := dAtA[iNdEx] |
| 11122 | iNdEx++ |
| 11123 | msglen |= (int(b) & 0x7F) << shift |
| 11124 | if b < 0x80 { |
| 11125 | break |
| 11126 | } |
| 11127 | } |
| 11128 | if msglen < 0 { |
| 11129 | return ErrInvalidLengthRpc |
| 11130 | } |
| 11131 | postIndex := iNdEx + msglen |
| 11132 | if postIndex > l { |
| 11133 | return io.ErrUnexpectedEOF |
| 11134 | } |
| 11135 | v := &TxnResponse{} |
| 11136 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11137 | return err |
| 11138 | } |
| 11139 | m.Response = &ResponseOp_ResponseTxn{v} |
| 11140 | iNdEx = postIndex |
| 11141 | default: |
| 11142 | iNdEx = preIndex |
| 11143 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 11144 | if err != nil { |
| 11145 | return err |
| 11146 | } |
| 11147 | if skippy < 0 { |
| 11148 | return ErrInvalidLengthRpc |
| 11149 | } |
| 11150 | if (iNdEx + skippy) > l { |
| 11151 | return io.ErrUnexpectedEOF |
| 11152 | } |
| 11153 | iNdEx += skippy |
| 11154 | } |
| 11155 | } |
| 11156 | |
| 11157 | if iNdEx > l { |
| 11158 | return io.ErrUnexpectedEOF |
| 11159 | } |
| 11160 | return nil |
| 11161 | } |
| 11162 | func (m *Compare) Unmarshal(dAtA []byte) error { |
| 11163 | l := len(dAtA) |
| 11164 | iNdEx := 0 |
| 11165 | for iNdEx < l { |
| 11166 | preIndex := iNdEx |
| 11167 | var wire uint64 |
| 11168 | for shift := uint(0); ; shift += 7 { |
| 11169 | if shift >= 64 { |
| 11170 | return ErrIntOverflowRpc |
| 11171 | } |
| 11172 | if iNdEx >= l { |
| 11173 | return io.ErrUnexpectedEOF |
| 11174 | } |
| 11175 | b := dAtA[iNdEx] |
| 11176 | iNdEx++ |
| 11177 | wire |= (uint64(b) & 0x7F) << shift |
| 11178 | if b < 0x80 { |
| 11179 | break |
| 11180 | } |
| 11181 | } |
| 11182 | fieldNum := int32(wire >> 3) |
| 11183 | wireType := int(wire & 0x7) |
| 11184 | if wireType == 4 { |
| 11185 | return fmt.Errorf("proto: Compare: wiretype end group for non-group") |
| 11186 | } |
| 11187 | if fieldNum <= 0 { |
| 11188 | return fmt.Errorf("proto: Compare: illegal tag %d (wire type %d)", fieldNum, wire) |
| 11189 | } |
| 11190 | switch fieldNum { |
| 11191 | case 1: |
| 11192 | if wireType != 0 { |
| 11193 | return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) |
| 11194 | } |
| 11195 | m.Result = 0 |
| 11196 | for shift := uint(0); ; shift += 7 { |
| 11197 | if shift >= 64 { |
| 11198 | return ErrIntOverflowRpc |
| 11199 | } |
| 11200 | if iNdEx >= l { |
| 11201 | return io.ErrUnexpectedEOF |
| 11202 | } |
| 11203 | b := dAtA[iNdEx] |
| 11204 | iNdEx++ |
| 11205 | m.Result |= (Compare_CompareResult(b) & 0x7F) << shift |
| 11206 | if b < 0x80 { |
| 11207 | break |
| 11208 | } |
| 11209 | } |
| 11210 | case 2: |
| 11211 | if wireType != 0 { |
| 11212 | return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) |
| 11213 | } |
| 11214 | m.Target = 0 |
| 11215 | for shift := uint(0); ; shift += 7 { |
| 11216 | if shift >= 64 { |
| 11217 | return ErrIntOverflowRpc |
| 11218 | } |
| 11219 | if iNdEx >= l { |
| 11220 | return io.ErrUnexpectedEOF |
| 11221 | } |
| 11222 | b := dAtA[iNdEx] |
| 11223 | iNdEx++ |
| 11224 | m.Target |= (Compare_CompareTarget(b) & 0x7F) << shift |
| 11225 | if b < 0x80 { |
| 11226 | break |
| 11227 | } |
| 11228 | } |
| 11229 | case 3: |
| 11230 | if wireType != 2 { |
| 11231 | return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| 11232 | } |
| 11233 | var byteLen int |
| 11234 | for shift := uint(0); ; shift += 7 { |
| 11235 | if shift >= 64 { |
| 11236 | return ErrIntOverflowRpc |
| 11237 | } |
| 11238 | if iNdEx >= l { |
| 11239 | return io.ErrUnexpectedEOF |
| 11240 | } |
| 11241 | b := dAtA[iNdEx] |
| 11242 | iNdEx++ |
| 11243 | byteLen |= (int(b) & 0x7F) << shift |
| 11244 | if b < 0x80 { |
| 11245 | break |
| 11246 | } |
| 11247 | } |
| 11248 | if byteLen < 0 { |
| 11249 | return ErrInvalidLengthRpc |
| 11250 | } |
| 11251 | postIndex := iNdEx + byteLen |
| 11252 | if postIndex > l { |
| 11253 | return io.ErrUnexpectedEOF |
| 11254 | } |
| 11255 | m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) |
| 11256 | if m.Key == nil { |
| 11257 | m.Key = []byte{} |
| 11258 | } |
| 11259 | iNdEx = postIndex |
| 11260 | case 4: |
| 11261 | if wireType != 0 { |
| 11262 | return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) |
| 11263 | } |
| 11264 | var v int64 |
| 11265 | for shift := uint(0); ; shift += 7 { |
| 11266 | if shift >= 64 { |
| 11267 | return ErrIntOverflowRpc |
| 11268 | } |
| 11269 | if iNdEx >= l { |
| 11270 | return io.ErrUnexpectedEOF |
| 11271 | } |
| 11272 | b := dAtA[iNdEx] |
| 11273 | iNdEx++ |
| 11274 | v |= (int64(b) & 0x7F) << shift |
| 11275 | if b < 0x80 { |
| 11276 | break |
| 11277 | } |
| 11278 | } |
| 11279 | m.TargetUnion = &Compare_Version{v} |
| 11280 | case 5: |
| 11281 | if wireType != 0 { |
| 11282 | return fmt.Errorf("proto: wrong wireType = %d for field CreateRevision", wireType) |
| 11283 | } |
| 11284 | var v int64 |
| 11285 | for shift := uint(0); ; shift += 7 { |
| 11286 | if shift >= 64 { |
| 11287 | return ErrIntOverflowRpc |
| 11288 | } |
| 11289 | if iNdEx >= l { |
| 11290 | return io.ErrUnexpectedEOF |
| 11291 | } |
| 11292 | b := dAtA[iNdEx] |
| 11293 | iNdEx++ |
| 11294 | v |= (int64(b) & 0x7F) << shift |
| 11295 | if b < 0x80 { |
| 11296 | break |
| 11297 | } |
| 11298 | } |
| 11299 | m.TargetUnion = &Compare_CreateRevision{v} |
| 11300 | case 6: |
| 11301 | if wireType != 0 { |
| 11302 | return fmt.Errorf("proto: wrong wireType = %d for field ModRevision", wireType) |
| 11303 | } |
| 11304 | var v int64 |
| 11305 | for shift := uint(0); ; shift += 7 { |
| 11306 | if shift >= 64 { |
| 11307 | return ErrIntOverflowRpc |
| 11308 | } |
| 11309 | if iNdEx >= l { |
| 11310 | return io.ErrUnexpectedEOF |
| 11311 | } |
| 11312 | b := dAtA[iNdEx] |
| 11313 | iNdEx++ |
| 11314 | v |= (int64(b) & 0x7F) << shift |
| 11315 | if b < 0x80 { |
| 11316 | break |
| 11317 | } |
| 11318 | } |
| 11319 | m.TargetUnion = &Compare_ModRevision{v} |
| 11320 | case 7: |
| 11321 | if wireType != 2 { |
| 11322 | return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) |
| 11323 | } |
| 11324 | var byteLen int |
| 11325 | for shift := uint(0); ; shift += 7 { |
| 11326 | if shift >= 64 { |
| 11327 | return ErrIntOverflowRpc |
| 11328 | } |
| 11329 | if iNdEx >= l { |
| 11330 | return io.ErrUnexpectedEOF |
| 11331 | } |
| 11332 | b := dAtA[iNdEx] |
| 11333 | iNdEx++ |
| 11334 | byteLen |= (int(b) & 0x7F) << shift |
| 11335 | if b < 0x80 { |
| 11336 | break |
| 11337 | } |
| 11338 | } |
| 11339 | if byteLen < 0 { |
| 11340 | return ErrInvalidLengthRpc |
| 11341 | } |
| 11342 | postIndex := iNdEx + byteLen |
| 11343 | if postIndex > l { |
| 11344 | return io.ErrUnexpectedEOF |
| 11345 | } |
| 11346 | v := make([]byte, postIndex-iNdEx) |
| 11347 | copy(v, dAtA[iNdEx:postIndex]) |
| 11348 | m.TargetUnion = &Compare_Value{v} |
| 11349 | iNdEx = postIndex |
| 11350 | case 8: |
| 11351 | if wireType != 0 { |
| 11352 | return fmt.Errorf("proto: wrong wireType = %d for field Lease", wireType) |
| 11353 | } |
| 11354 | var v int64 |
| 11355 | for shift := uint(0); ; shift += 7 { |
| 11356 | if shift >= 64 { |
| 11357 | return ErrIntOverflowRpc |
| 11358 | } |
| 11359 | if iNdEx >= l { |
| 11360 | return io.ErrUnexpectedEOF |
| 11361 | } |
| 11362 | b := dAtA[iNdEx] |
| 11363 | iNdEx++ |
| 11364 | v |= (int64(b) & 0x7F) << shift |
| 11365 | if b < 0x80 { |
| 11366 | break |
| 11367 | } |
| 11368 | } |
| 11369 | m.TargetUnion = &Compare_Lease{v} |
| 11370 | case 64: |
| 11371 | if wireType != 2 { |
| 11372 | return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType) |
| 11373 | } |
| 11374 | var byteLen int |
| 11375 | for shift := uint(0); ; shift += 7 { |
| 11376 | if shift >= 64 { |
| 11377 | return ErrIntOverflowRpc |
| 11378 | } |
| 11379 | if iNdEx >= l { |
| 11380 | return io.ErrUnexpectedEOF |
| 11381 | } |
| 11382 | b := dAtA[iNdEx] |
| 11383 | iNdEx++ |
| 11384 | byteLen |= (int(b) & 0x7F) << shift |
| 11385 | if b < 0x80 { |
| 11386 | break |
| 11387 | } |
| 11388 | } |
| 11389 | if byteLen < 0 { |
| 11390 | return ErrInvalidLengthRpc |
| 11391 | } |
| 11392 | postIndex := iNdEx + byteLen |
| 11393 | if postIndex > l { |
| 11394 | return io.ErrUnexpectedEOF |
| 11395 | } |
| 11396 | m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...) |
| 11397 | if m.RangeEnd == nil { |
| 11398 | m.RangeEnd = []byte{} |
| 11399 | } |
| 11400 | iNdEx = postIndex |
| 11401 | default: |
| 11402 | iNdEx = preIndex |
| 11403 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 11404 | if err != nil { |
| 11405 | return err |
| 11406 | } |
| 11407 | if skippy < 0 { |
| 11408 | return ErrInvalidLengthRpc |
| 11409 | } |
| 11410 | if (iNdEx + skippy) > l { |
| 11411 | return io.ErrUnexpectedEOF |
| 11412 | } |
| 11413 | iNdEx += skippy |
| 11414 | } |
| 11415 | } |
| 11416 | |
| 11417 | if iNdEx > l { |
| 11418 | return io.ErrUnexpectedEOF |
| 11419 | } |
| 11420 | return nil |
| 11421 | } |
| 11422 | func (m *TxnRequest) Unmarshal(dAtA []byte) error { |
| 11423 | l := len(dAtA) |
| 11424 | iNdEx := 0 |
| 11425 | for iNdEx < l { |
| 11426 | preIndex := iNdEx |
| 11427 | var wire uint64 |
| 11428 | for shift := uint(0); ; shift += 7 { |
| 11429 | if shift >= 64 { |
| 11430 | return ErrIntOverflowRpc |
| 11431 | } |
| 11432 | if iNdEx >= l { |
| 11433 | return io.ErrUnexpectedEOF |
| 11434 | } |
| 11435 | b := dAtA[iNdEx] |
| 11436 | iNdEx++ |
| 11437 | wire |= (uint64(b) & 0x7F) << shift |
| 11438 | if b < 0x80 { |
| 11439 | break |
| 11440 | } |
| 11441 | } |
| 11442 | fieldNum := int32(wire >> 3) |
| 11443 | wireType := int(wire & 0x7) |
| 11444 | if wireType == 4 { |
| 11445 | return fmt.Errorf("proto: TxnRequest: wiretype end group for non-group") |
| 11446 | } |
| 11447 | if fieldNum <= 0 { |
| 11448 | return fmt.Errorf("proto: TxnRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 11449 | } |
| 11450 | switch fieldNum { |
| 11451 | case 1: |
| 11452 | if wireType != 2 { |
| 11453 | return fmt.Errorf("proto: wrong wireType = %d for field Compare", wireType) |
| 11454 | } |
| 11455 | var msglen int |
| 11456 | for shift := uint(0); ; shift += 7 { |
| 11457 | if shift >= 64 { |
| 11458 | return ErrIntOverflowRpc |
| 11459 | } |
| 11460 | if iNdEx >= l { |
| 11461 | return io.ErrUnexpectedEOF |
| 11462 | } |
| 11463 | b := dAtA[iNdEx] |
| 11464 | iNdEx++ |
| 11465 | msglen |= (int(b) & 0x7F) << shift |
| 11466 | if b < 0x80 { |
| 11467 | break |
| 11468 | } |
| 11469 | } |
| 11470 | if msglen < 0 { |
| 11471 | return ErrInvalidLengthRpc |
| 11472 | } |
| 11473 | postIndex := iNdEx + msglen |
| 11474 | if postIndex > l { |
| 11475 | return io.ErrUnexpectedEOF |
| 11476 | } |
| 11477 | m.Compare = append(m.Compare, &Compare{}) |
| 11478 | if err := m.Compare[len(m.Compare)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11479 | return err |
| 11480 | } |
| 11481 | iNdEx = postIndex |
| 11482 | case 2: |
| 11483 | if wireType != 2 { |
| 11484 | return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType) |
| 11485 | } |
| 11486 | var msglen int |
| 11487 | for shift := uint(0); ; shift += 7 { |
| 11488 | if shift >= 64 { |
| 11489 | return ErrIntOverflowRpc |
| 11490 | } |
| 11491 | if iNdEx >= l { |
| 11492 | return io.ErrUnexpectedEOF |
| 11493 | } |
| 11494 | b := dAtA[iNdEx] |
| 11495 | iNdEx++ |
| 11496 | msglen |= (int(b) & 0x7F) << shift |
| 11497 | if b < 0x80 { |
| 11498 | break |
| 11499 | } |
| 11500 | } |
| 11501 | if msglen < 0 { |
| 11502 | return ErrInvalidLengthRpc |
| 11503 | } |
| 11504 | postIndex := iNdEx + msglen |
| 11505 | if postIndex > l { |
| 11506 | return io.ErrUnexpectedEOF |
| 11507 | } |
| 11508 | m.Success = append(m.Success, &RequestOp{}) |
| 11509 | if err := m.Success[len(m.Success)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11510 | return err |
| 11511 | } |
| 11512 | iNdEx = postIndex |
| 11513 | case 3: |
| 11514 | if wireType != 2 { |
| 11515 | return fmt.Errorf("proto: wrong wireType = %d for field Failure", wireType) |
| 11516 | } |
| 11517 | var msglen int |
| 11518 | for shift := uint(0); ; shift += 7 { |
| 11519 | if shift >= 64 { |
| 11520 | return ErrIntOverflowRpc |
| 11521 | } |
| 11522 | if iNdEx >= l { |
| 11523 | return io.ErrUnexpectedEOF |
| 11524 | } |
| 11525 | b := dAtA[iNdEx] |
| 11526 | iNdEx++ |
| 11527 | msglen |= (int(b) & 0x7F) << shift |
| 11528 | if b < 0x80 { |
| 11529 | break |
| 11530 | } |
| 11531 | } |
| 11532 | if msglen < 0 { |
| 11533 | return ErrInvalidLengthRpc |
| 11534 | } |
| 11535 | postIndex := iNdEx + msglen |
| 11536 | if postIndex > l { |
| 11537 | return io.ErrUnexpectedEOF |
| 11538 | } |
| 11539 | m.Failure = append(m.Failure, &RequestOp{}) |
| 11540 | if err := m.Failure[len(m.Failure)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11541 | return err |
| 11542 | } |
| 11543 | iNdEx = postIndex |
| 11544 | default: |
| 11545 | iNdEx = preIndex |
| 11546 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 11547 | if err != nil { |
| 11548 | return err |
| 11549 | } |
| 11550 | if skippy < 0 { |
| 11551 | return ErrInvalidLengthRpc |
| 11552 | } |
| 11553 | if (iNdEx + skippy) > l { |
| 11554 | return io.ErrUnexpectedEOF |
| 11555 | } |
| 11556 | iNdEx += skippy |
| 11557 | } |
| 11558 | } |
| 11559 | |
| 11560 | if iNdEx > l { |
| 11561 | return io.ErrUnexpectedEOF |
| 11562 | } |
| 11563 | return nil |
| 11564 | } |
| 11565 | func (m *TxnResponse) Unmarshal(dAtA []byte) error { |
| 11566 | l := len(dAtA) |
| 11567 | iNdEx := 0 |
| 11568 | for iNdEx < l { |
| 11569 | preIndex := iNdEx |
| 11570 | var wire uint64 |
| 11571 | for shift := uint(0); ; shift += 7 { |
| 11572 | if shift >= 64 { |
| 11573 | return ErrIntOverflowRpc |
| 11574 | } |
| 11575 | if iNdEx >= l { |
| 11576 | return io.ErrUnexpectedEOF |
| 11577 | } |
| 11578 | b := dAtA[iNdEx] |
| 11579 | iNdEx++ |
| 11580 | wire |= (uint64(b) & 0x7F) << shift |
| 11581 | if b < 0x80 { |
| 11582 | break |
| 11583 | } |
| 11584 | } |
| 11585 | fieldNum := int32(wire >> 3) |
| 11586 | wireType := int(wire & 0x7) |
| 11587 | if wireType == 4 { |
| 11588 | return fmt.Errorf("proto: TxnResponse: wiretype end group for non-group") |
| 11589 | } |
| 11590 | if fieldNum <= 0 { |
| 11591 | return fmt.Errorf("proto: TxnResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 11592 | } |
| 11593 | switch fieldNum { |
| 11594 | case 1: |
| 11595 | if wireType != 2 { |
| 11596 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 11597 | } |
| 11598 | var msglen int |
| 11599 | for shift := uint(0); ; shift += 7 { |
| 11600 | if shift >= 64 { |
| 11601 | return ErrIntOverflowRpc |
| 11602 | } |
| 11603 | if iNdEx >= l { |
| 11604 | return io.ErrUnexpectedEOF |
| 11605 | } |
| 11606 | b := dAtA[iNdEx] |
| 11607 | iNdEx++ |
| 11608 | msglen |= (int(b) & 0x7F) << shift |
| 11609 | if b < 0x80 { |
| 11610 | break |
| 11611 | } |
| 11612 | } |
| 11613 | if msglen < 0 { |
| 11614 | return ErrInvalidLengthRpc |
| 11615 | } |
| 11616 | postIndex := iNdEx + msglen |
| 11617 | if postIndex > l { |
| 11618 | return io.ErrUnexpectedEOF |
| 11619 | } |
| 11620 | if m.Header == nil { |
| 11621 | m.Header = &ResponseHeader{} |
| 11622 | } |
| 11623 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11624 | return err |
| 11625 | } |
| 11626 | iNdEx = postIndex |
| 11627 | case 2: |
| 11628 | if wireType != 0 { |
| 11629 | return fmt.Errorf("proto: wrong wireType = %d for field Succeeded", wireType) |
| 11630 | } |
| 11631 | var v int |
| 11632 | for shift := uint(0); ; shift += 7 { |
| 11633 | if shift >= 64 { |
| 11634 | return ErrIntOverflowRpc |
| 11635 | } |
| 11636 | if iNdEx >= l { |
| 11637 | return io.ErrUnexpectedEOF |
| 11638 | } |
| 11639 | b := dAtA[iNdEx] |
| 11640 | iNdEx++ |
| 11641 | v |= (int(b) & 0x7F) << shift |
| 11642 | if b < 0x80 { |
| 11643 | break |
| 11644 | } |
| 11645 | } |
| 11646 | m.Succeeded = bool(v != 0) |
| 11647 | case 3: |
| 11648 | if wireType != 2 { |
| 11649 | return fmt.Errorf("proto: wrong wireType = %d for field Responses", wireType) |
| 11650 | } |
| 11651 | var msglen int |
| 11652 | for shift := uint(0); ; shift += 7 { |
| 11653 | if shift >= 64 { |
| 11654 | return ErrIntOverflowRpc |
| 11655 | } |
| 11656 | if iNdEx >= l { |
| 11657 | return io.ErrUnexpectedEOF |
| 11658 | } |
| 11659 | b := dAtA[iNdEx] |
| 11660 | iNdEx++ |
| 11661 | msglen |= (int(b) & 0x7F) << shift |
| 11662 | if b < 0x80 { |
| 11663 | break |
| 11664 | } |
| 11665 | } |
| 11666 | if msglen < 0 { |
| 11667 | return ErrInvalidLengthRpc |
| 11668 | } |
| 11669 | postIndex := iNdEx + msglen |
| 11670 | if postIndex > l { |
| 11671 | return io.ErrUnexpectedEOF |
| 11672 | } |
| 11673 | m.Responses = append(m.Responses, &ResponseOp{}) |
| 11674 | if err := m.Responses[len(m.Responses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11675 | return err |
| 11676 | } |
| 11677 | iNdEx = postIndex |
| 11678 | default: |
| 11679 | iNdEx = preIndex |
| 11680 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 11681 | if err != nil { |
| 11682 | return err |
| 11683 | } |
| 11684 | if skippy < 0 { |
| 11685 | return ErrInvalidLengthRpc |
| 11686 | } |
| 11687 | if (iNdEx + skippy) > l { |
| 11688 | return io.ErrUnexpectedEOF |
| 11689 | } |
| 11690 | iNdEx += skippy |
| 11691 | } |
| 11692 | } |
| 11693 | |
| 11694 | if iNdEx > l { |
| 11695 | return io.ErrUnexpectedEOF |
| 11696 | } |
| 11697 | return nil |
| 11698 | } |
| 11699 | func (m *CompactionRequest) Unmarshal(dAtA []byte) error { |
| 11700 | l := len(dAtA) |
| 11701 | iNdEx := 0 |
| 11702 | for iNdEx < l { |
| 11703 | preIndex := iNdEx |
| 11704 | var wire uint64 |
| 11705 | for shift := uint(0); ; shift += 7 { |
| 11706 | if shift >= 64 { |
| 11707 | return ErrIntOverflowRpc |
| 11708 | } |
| 11709 | if iNdEx >= l { |
| 11710 | return io.ErrUnexpectedEOF |
| 11711 | } |
| 11712 | b := dAtA[iNdEx] |
| 11713 | iNdEx++ |
| 11714 | wire |= (uint64(b) & 0x7F) << shift |
| 11715 | if b < 0x80 { |
| 11716 | break |
| 11717 | } |
| 11718 | } |
| 11719 | fieldNum := int32(wire >> 3) |
| 11720 | wireType := int(wire & 0x7) |
| 11721 | if wireType == 4 { |
| 11722 | return fmt.Errorf("proto: CompactionRequest: wiretype end group for non-group") |
| 11723 | } |
| 11724 | if fieldNum <= 0 { |
| 11725 | return fmt.Errorf("proto: CompactionRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 11726 | } |
| 11727 | switch fieldNum { |
| 11728 | case 1: |
| 11729 | if wireType != 0 { |
| 11730 | return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) |
| 11731 | } |
| 11732 | m.Revision = 0 |
| 11733 | for shift := uint(0); ; shift += 7 { |
| 11734 | if shift >= 64 { |
| 11735 | return ErrIntOverflowRpc |
| 11736 | } |
| 11737 | if iNdEx >= l { |
| 11738 | return io.ErrUnexpectedEOF |
| 11739 | } |
| 11740 | b := dAtA[iNdEx] |
| 11741 | iNdEx++ |
| 11742 | m.Revision |= (int64(b) & 0x7F) << shift |
| 11743 | if b < 0x80 { |
| 11744 | break |
| 11745 | } |
| 11746 | } |
| 11747 | case 2: |
| 11748 | if wireType != 0 { |
| 11749 | return fmt.Errorf("proto: wrong wireType = %d for field Physical", wireType) |
| 11750 | } |
| 11751 | var v int |
| 11752 | for shift := uint(0); ; shift += 7 { |
| 11753 | if shift >= 64 { |
| 11754 | return ErrIntOverflowRpc |
| 11755 | } |
| 11756 | if iNdEx >= l { |
| 11757 | return io.ErrUnexpectedEOF |
| 11758 | } |
| 11759 | b := dAtA[iNdEx] |
| 11760 | iNdEx++ |
| 11761 | v |= (int(b) & 0x7F) << shift |
| 11762 | if b < 0x80 { |
| 11763 | break |
| 11764 | } |
| 11765 | } |
| 11766 | m.Physical = bool(v != 0) |
| 11767 | default: |
| 11768 | iNdEx = preIndex |
| 11769 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 11770 | if err != nil { |
| 11771 | return err |
| 11772 | } |
| 11773 | if skippy < 0 { |
| 11774 | return ErrInvalidLengthRpc |
| 11775 | } |
| 11776 | if (iNdEx + skippy) > l { |
| 11777 | return io.ErrUnexpectedEOF |
| 11778 | } |
| 11779 | iNdEx += skippy |
| 11780 | } |
| 11781 | } |
| 11782 | |
| 11783 | if iNdEx > l { |
| 11784 | return io.ErrUnexpectedEOF |
| 11785 | } |
| 11786 | return nil |
| 11787 | } |
| 11788 | func (m *CompactionResponse) Unmarshal(dAtA []byte) error { |
| 11789 | l := len(dAtA) |
| 11790 | iNdEx := 0 |
| 11791 | for iNdEx < l { |
| 11792 | preIndex := iNdEx |
| 11793 | var wire uint64 |
| 11794 | for shift := uint(0); ; shift += 7 { |
| 11795 | if shift >= 64 { |
| 11796 | return ErrIntOverflowRpc |
| 11797 | } |
| 11798 | if iNdEx >= l { |
| 11799 | return io.ErrUnexpectedEOF |
| 11800 | } |
| 11801 | b := dAtA[iNdEx] |
| 11802 | iNdEx++ |
| 11803 | wire |= (uint64(b) & 0x7F) << shift |
| 11804 | if b < 0x80 { |
| 11805 | break |
| 11806 | } |
| 11807 | } |
| 11808 | fieldNum := int32(wire >> 3) |
| 11809 | wireType := int(wire & 0x7) |
| 11810 | if wireType == 4 { |
| 11811 | return fmt.Errorf("proto: CompactionResponse: wiretype end group for non-group") |
| 11812 | } |
| 11813 | if fieldNum <= 0 { |
| 11814 | return fmt.Errorf("proto: CompactionResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 11815 | } |
| 11816 | switch fieldNum { |
| 11817 | case 1: |
| 11818 | if wireType != 2 { |
| 11819 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 11820 | } |
| 11821 | var msglen int |
| 11822 | for shift := uint(0); ; shift += 7 { |
| 11823 | if shift >= 64 { |
| 11824 | return ErrIntOverflowRpc |
| 11825 | } |
| 11826 | if iNdEx >= l { |
| 11827 | return io.ErrUnexpectedEOF |
| 11828 | } |
| 11829 | b := dAtA[iNdEx] |
| 11830 | iNdEx++ |
| 11831 | msglen |= (int(b) & 0x7F) << shift |
| 11832 | if b < 0x80 { |
| 11833 | break |
| 11834 | } |
| 11835 | } |
| 11836 | if msglen < 0 { |
| 11837 | return ErrInvalidLengthRpc |
| 11838 | } |
| 11839 | postIndex := iNdEx + msglen |
| 11840 | if postIndex > l { |
| 11841 | return io.ErrUnexpectedEOF |
| 11842 | } |
| 11843 | if m.Header == nil { |
| 11844 | m.Header = &ResponseHeader{} |
| 11845 | } |
| 11846 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11847 | return err |
| 11848 | } |
| 11849 | iNdEx = postIndex |
| 11850 | default: |
| 11851 | iNdEx = preIndex |
| 11852 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 11853 | if err != nil { |
| 11854 | return err |
| 11855 | } |
| 11856 | if skippy < 0 { |
| 11857 | return ErrInvalidLengthRpc |
| 11858 | } |
| 11859 | if (iNdEx + skippy) > l { |
| 11860 | return io.ErrUnexpectedEOF |
| 11861 | } |
| 11862 | iNdEx += skippy |
| 11863 | } |
| 11864 | } |
| 11865 | |
| 11866 | if iNdEx > l { |
| 11867 | return io.ErrUnexpectedEOF |
| 11868 | } |
| 11869 | return nil |
| 11870 | } |
| 11871 | func (m *HashRequest) Unmarshal(dAtA []byte) error { |
| 11872 | l := len(dAtA) |
| 11873 | iNdEx := 0 |
| 11874 | for iNdEx < l { |
| 11875 | preIndex := iNdEx |
| 11876 | var wire uint64 |
| 11877 | for shift := uint(0); ; shift += 7 { |
| 11878 | if shift >= 64 { |
| 11879 | return ErrIntOverflowRpc |
| 11880 | } |
| 11881 | if iNdEx >= l { |
| 11882 | return io.ErrUnexpectedEOF |
| 11883 | } |
| 11884 | b := dAtA[iNdEx] |
| 11885 | iNdEx++ |
| 11886 | wire |= (uint64(b) & 0x7F) << shift |
| 11887 | if b < 0x80 { |
| 11888 | break |
| 11889 | } |
| 11890 | } |
| 11891 | fieldNum := int32(wire >> 3) |
| 11892 | wireType := int(wire & 0x7) |
| 11893 | if wireType == 4 { |
| 11894 | return fmt.Errorf("proto: HashRequest: wiretype end group for non-group") |
| 11895 | } |
| 11896 | if fieldNum <= 0 { |
| 11897 | return fmt.Errorf("proto: HashRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 11898 | } |
| 11899 | switch fieldNum { |
| 11900 | default: |
| 11901 | iNdEx = preIndex |
| 11902 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 11903 | if err != nil { |
| 11904 | return err |
| 11905 | } |
| 11906 | if skippy < 0 { |
| 11907 | return ErrInvalidLengthRpc |
| 11908 | } |
| 11909 | if (iNdEx + skippy) > l { |
| 11910 | return io.ErrUnexpectedEOF |
| 11911 | } |
| 11912 | iNdEx += skippy |
| 11913 | } |
| 11914 | } |
| 11915 | |
| 11916 | if iNdEx > l { |
| 11917 | return io.ErrUnexpectedEOF |
| 11918 | } |
| 11919 | return nil |
| 11920 | } |
| 11921 | func (m *HashKVRequest) Unmarshal(dAtA []byte) error { |
| 11922 | l := len(dAtA) |
| 11923 | iNdEx := 0 |
| 11924 | for iNdEx < l { |
| 11925 | preIndex := iNdEx |
| 11926 | var wire uint64 |
| 11927 | for shift := uint(0); ; shift += 7 { |
| 11928 | if shift >= 64 { |
| 11929 | return ErrIntOverflowRpc |
| 11930 | } |
| 11931 | if iNdEx >= l { |
| 11932 | return io.ErrUnexpectedEOF |
| 11933 | } |
| 11934 | b := dAtA[iNdEx] |
| 11935 | iNdEx++ |
| 11936 | wire |= (uint64(b) & 0x7F) << shift |
| 11937 | if b < 0x80 { |
| 11938 | break |
| 11939 | } |
| 11940 | } |
| 11941 | fieldNum := int32(wire >> 3) |
| 11942 | wireType := int(wire & 0x7) |
| 11943 | if wireType == 4 { |
| 11944 | return fmt.Errorf("proto: HashKVRequest: wiretype end group for non-group") |
| 11945 | } |
| 11946 | if fieldNum <= 0 { |
| 11947 | return fmt.Errorf("proto: HashKVRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 11948 | } |
| 11949 | switch fieldNum { |
| 11950 | case 1: |
| 11951 | if wireType != 0 { |
| 11952 | return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) |
| 11953 | } |
| 11954 | m.Revision = 0 |
| 11955 | for shift := uint(0); ; shift += 7 { |
| 11956 | if shift >= 64 { |
| 11957 | return ErrIntOverflowRpc |
| 11958 | } |
| 11959 | if iNdEx >= l { |
| 11960 | return io.ErrUnexpectedEOF |
| 11961 | } |
| 11962 | b := dAtA[iNdEx] |
| 11963 | iNdEx++ |
| 11964 | m.Revision |= (int64(b) & 0x7F) << shift |
| 11965 | if b < 0x80 { |
| 11966 | break |
| 11967 | } |
| 11968 | } |
| 11969 | default: |
| 11970 | iNdEx = preIndex |
| 11971 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 11972 | if err != nil { |
| 11973 | return err |
| 11974 | } |
| 11975 | if skippy < 0 { |
| 11976 | return ErrInvalidLengthRpc |
| 11977 | } |
| 11978 | if (iNdEx + skippy) > l { |
| 11979 | return io.ErrUnexpectedEOF |
| 11980 | } |
| 11981 | iNdEx += skippy |
| 11982 | } |
| 11983 | } |
| 11984 | |
| 11985 | if iNdEx > l { |
| 11986 | return io.ErrUnexpectedEOF |
| 11987 | } |
| 11988 | return nil |
| 11989 | } |
| 11990 | func (m *HashKVResponse) Unmarshal(dAtA []byte) error { |
| 11991 | l := len(dAtA) |
| 11992 | iNdEx := 0 |
| 11993 | for iNdEx < l { |
| 11994 | preIndex := iNdEx |
| 11995 | var wire uint64 |
| 11996 | for shift := uint(0); ; shift += 7 { |
| 11997 | if shift >= 64 { |
| 11998 | return ErrIntOverflowRpc |
| 11999 | } |
| 12000 | if iNdEx >= l { |
| 12001 | return io.ErrUnexpectedEOF |
| 12002 | } |
| 12003 | b := dAtA[iNdEx] |
| 12004 | iNdEx++ |
| 12005 | wire |= (uint64(b) & 0x7F) << shift |
| 12006 | if b < 0x80 { |
| 12007 | break |
| 12008 | } |
| 12009 | } |
| 12010 | fieldNum := int32(wire >> 3) |
| 12011 | wireType := int(wire & 0x7) |
| 12012 | if wireType == 4 { |
| 12013 | return fmt.Errorf("proto: HashKVResponse: wiretype end group for non-group") |
| 12014 | } |
| 12015 | if fieldNum <= 0 { |
| 12016 | return fmt.Errorf("proto: HashKVResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 12017 | } |
| 12018 | switch fieldNum { |
| 12019 | case 1: |
| 12020 | if wireType != 2 { |
| 12021 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 12022 | } |
| 12023 | var msglen int |
| 12024 | for shift := uint(0); ; shift += 7 { |
| 12025 | if shift >= 64 { |
| 12026 | return ErrIntOverflowRpc |
| 12027 | } |
| 12028 | if iNdEx >= l { |
| 12029 | return io.ErrUnexpectedEOF |
| 12030 | } |
| 12031 | b := dAtA[iNdEx] |
| 12032 | iNdEx++ |
| 12033 | msglen |= (int(b) & 0x7F) << shift |
| 12034 | if b < 0x80 { |
| 12035 | break |
| 12036 | } |
| 12037 | } |
| 12038 | if msglen < 0 { |
| 12039 | return ErrInvalidLengthRpc |
| 12040 | } |
| 12041 | postIndex := iNdEx + msglen |
| 12042 | if postIndex > l { |
| 12043 | return io.ErrUnexpectedEOF |
| 12044 | } |
| 12045 | if m.Header == nil { |
| 12046 | m.Header = &ResponseHeader{} |
| 12047 | } |
| 12048 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 12049 | return err |
| 12050 | } |
| 12051 | iNdEx = postIndex |
| 12052 | case 2: |
| 12053 | if wireType != 0 { |
| 12054 | return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) |
| 12055 | } |
| 12056 | m.Hash = 0 |
| 12057 | for shift := uint(0); ; shift += 7 { |
| 12058 | if shift >= 64 { |
| 12059 | return ErrIntOverflowRpc |
| 12060 | } |
| 12061 | if iNdEx >= l { |
| 12062 | return io.ErrUnexpectedEOF |
| 12063 | } |
| 12064 | b := dAtA[iNdEx] |
| 12065 | iNdEx++ |
| 12066 | m.Hash |= (uint32(b) & 0x7F) << shift |
| 12067 | if b < 0x80 { |
| 12068 | break |
| 12069 | } |
| 12070 | } |
| 12071 | case 3: |
| 12072 | if wireType != 0 { |
| 12073 | return fmt.Errorf("proto: wrong wireType = %d for field CompactRevision", wireType) |
| 12074 | } |
| 12075 | m.CompactRevision = 0 |
| 12076 | for shift := uint(0); ; shift += 7 { |
| 12077 | if shift >= 64 { |
| 12078 | return ErrIntOverflowRpc |
| 12079 | } |
| 12080 | if iNdEx >= l { |
| 12081 | return io.ErrUnexpectedEOF |
| 12082 | } |
| 12083 | b := dAtA[iNdEx] |
| 12084 | iNdEx++ |
| 12085 | m.CompactRevision |= (int64(b) & 0x7F) << shift |
| 12086 | if b < 0x80 { |
| 12087 | break |
| 12088 | } |
| 12089 | } |
| 12090 | default: |
| 12091 | iNdEx = preIndex |
| 12092 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 12093 | if err != nil { |
| 12094 | return err |
| 12095 | } |
| 12096 | if skippy < 0 { |
| 12097 | return ErrInvalidLengthRpc |
| 12098 | } |
| 12099 | if (iNdEx + skippy) > l { |
| 12100 | return io.ErrUnexpectedEOF |
| 12101 | } |
| 12102 | iNdEx += skippy |
| 12103 | } |
| 12104 | } |
| 12105 | |
| 12106 | if iNdEx > l { |
| 12107 | return io.ErrUnexpectedEOF |
| 12108 | } |
| 12109 | return nil |
| 12110 | } |
| 12111 | func (m *HashResponse) Unmarshal(dAtA []byte) error { |
| 12112 | l := len(dAtA) |
| 12113 | iNdEx := 0 |
| 12114 | for iNdEx < l { |
| 12115 | preIndex := iNdEx |
| 12116 | var wire uint64 |
| 12117 | for shift := uint(0); ; shift += 7 { |
| 12118 | if shift >= 64 { |
| 12119 | return ErrIntOverflowRpc |
| 12120 | } |
| 12121 | if iNdEx >= l { |
| 12122 | return io.ErrUnexpectedEOF |
| 12123 | } |
| 12124 | b := dAtA[iNdEx] |
| 12125 | iNdEx++ |
| 12126 | wire |= (uint64(b) & 0x7F) << shift |
| 12127 | if b < 0x80 { |
| 12128 | break |
| 12129 | } |
| 12130 | } |
| 12131 | fieldNum := int32(wire >> 3) |
| 12132 | wireType := int(wire & 0x7) |
| 12133 | if wireType == 4 { |
| 12134 | return fmt.Errorf("proto: HashResponse: wiretype end group for non-group") |
| 12135 | } |
| 12136 | if fieldNum <= 0 { |
| 12137 | return fmt.Errorf("proto: HashResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 12138 | } |
| 12139 | switch fieldNum { |
| 12140 | case 1: |
| 12141 | if wireType != 2 { |
| 12142 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 12143 | } |
| 12144 | var msglen int |
| 12145 | for shift := uint(0); ; shift += 7 { |
| 12146 | if shift >= 64 { |
| 12147 | return ErrIntOverflowRpc |
| 12148 | } |
| 12149 | if iNdEx >= l { |
| 12150 | return io.ErrUnexpectedEOF |
| 12151 | } |
| 12152 | b := dAtA[iNdEx] |
| 12153 | iNdEx++ |
| 12154 | msglen |= (int(b) & 0x7F) << shift |
| 12155 | if b < 0x80 { |
| 12156 | break |
| 12157 | } |
| 12158 | } |
| 12159 | if msglen < 0 { |
| 12160 | return ErrInvalidLengthRpc |
| 12161 | } |
| 12162 | postIndex := iNdEx + msglen |
| 12163 | if postIndex > l { |
| 12164 | return io.ErrUnexpectedEOF |
| 12165 | } |
| 12166 | if m.Header == nil { |
| 12167 | m.Header = &ResponseHeader{} |
| 12168 | } |
| 12169 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 12170 | return err |
| 12171 | } |
| 12172 | iNdEx = postIndex |
| 12173 | case 2: |
| 12174 | if wireType != 0 { |
| 12175 | return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) |
| 12176 | } |
| 12177 | m.Hash = 0 |
| 12178 | for shift := uint(0); ; shift += 7 { |
| 12179 | if shift >= 64 { |
| 12180 | return ErrIntOverflowRpc |
| 12181 | } |
| 12182 | if iNdEx >= l { |
| 12183 | return io.ErrUnexpectedEOF |
| 12184 | } |
| 12185 | b := dAtA[iNdEx] |
| 12186 | iNdEx++ |
| 12187 | m.Hash |= (uint32(b) & 0x7F) << shift |
| 12188 | if b < 0x80 { |
| 12189 | break |
| 12190 | } |
| 12191 | } |
| 12192 | default: |
| 12193 | iNdEx = preIndex |
| 12194 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 12195 | if err != nil { |
| 12196 | return err |
| 12197 | } |
| 12198 | if skippy < 0 { |
| 12199 | return ErrInvalidLengthRpc |
| 12200 | } |
| 12201 | if (iNdEx + skippy) > l { |
| 12202 | return io.ErrUnexpectedEOF |
| 12203 | } |
| 12204 | iNdEx += skippy |
| 12205 | } |
| 12206 | } |
| 12207 | |
| 12208 | if iNdEx > l { |
| 12209 | return io.ErrUnexpectedEOF |
| 12210 | } |
| 12211 | return nil |
| 12212 | } |
| 12213 | func (m *SnapshotRequest) Unmarshal(dAtA []byte) error { |
| 12214 | l := len(dAtA) |
| 12215 | iNdEx := 0 |
| 12216 | for iNdEx < l { |
| 12217 | preIndex := iNdEx |
| 12218 | var wire uint64 |
| 12219 | for shift := uint(0); ; shift += 7 { |
| 12220 | if shift >= 64 { |
| 12221 | return ErrIntOverflowRpc |
| 12222 | } |
| 12223 | if iNdEx >= l { |
| 12224 | return io.ErrUnexpectedEOF |
| 12225 | } |
| 12226 | b := dAtA[iNdEx] |
| 12227 | iNdEx++ |
| 12228 | wire |= (uint64(b) & 0x7F) << shift |
| 12229 | if b < 0x80 { |
| 12230 | break |
| 12231 | } |
| 12232 | } |
| 12233 | fieldNum := int32(wire >> 3) |
| 12234 | wireType := int(wire & 0x7) |
| 12235 | if wireType == 4 { |
| 12236 | return fmt.Errorf("proto: SnapshotRequest: wiretype end group for non-group") |
| 12237 | } |
| 12238 | if fieldNum <= 0 { |
| 12239 | return fmt.Errorf("proto: SnapshotRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 12240 | } |
| 12241 | switch fieldNum { |
| 12242 | default: |
| 12243 | iNdEx = preIndex |
| 12244 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 12245 | if err != nil { |
| 12246 | return err |
| 12247 | } |
| 12248 | if skippy < 0 { |
| 12249 | return ErrInvalidLengthRpc |
| 12250 | } |
| 12251 | if (iNdEx + skippy) > l { |
| 12252 | return io.ErrUnexpectedEOF |
| 12253 | } |
| 12254 | iNdEx += skippy |
| 12255 | } |
| 12256 | } |
| 12257 | |
| 12258 | if iNdEx > l { |
| 12259 | return io.ErrUnexpectedEOF |
| 12260 | } |
| 12261 | return nil |
| 12262 | } |
| 12263 | func (m *SnapshotResponse) Unmarshal(dAtA []byte) error { |
| 12264 | l := len(dAtA) |
| 12265 | iNdEx := 0 |
| 12266 | for iNdEx < l { |
| 12267 | preIndex := iNdEx |
| 12268 | var wire uint64 |
| 12269 | for shift := uint(0); ; shift += 7 { |
| 12270 | if shift >= 64 { |
| 12271 | return ErrIntOverflowRpc |
| 12272 | } |
| 12273 | if iNdEx >= l { |
| 12274 | return io.ErrUnexpectedEOF |
| 12275 | } |
| 12276 | b := dAtA[iNdEx] |
| 12277 | iNdEx++ |
| 12278 | wire |= (uint64(b) & 0x7F) << shift |
| 12279 | if b < 0x80 { |
| 12280 | break |
| 12281 | } |
| 12282 | } |
| 12283 | fieldNum := int32(wire >> 3) |
| 12284 | wireType := int(wire & 0x7) |
| 12285 | if wireType == 4 { |
| 12286 | return fmt.Errorf("proto: SnapshotResponse: wiretype end group for non-group") |
| 12287 | } |
| 12288 | if fieldNum <= 0 { |
| 12289 | return fmt.Errorf("proto: SnapshotResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 12290 | } |
| 12291 | switch fieldNum { |
| 12292 | case 1: |
| 12293 | if wireType != 2 { |
| 12294 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 12295 | } |
| 12296 | var msglen int |
| 12297 | for shift := uint(0); ; shift += 7 { |
| 12298 | if shift >= 64 { |
| 12299 | return ErrIntOverflowRpc |
| 12300 | } |
| 12301 | if iNdEx >= l { |
| 12302 | return io.ErrUnexpectedEOF |
| 12303 | } |
| 12304 | b := dAtA[iNdEx] |
| 12305 | iNdEx++ |
| 12306 | msglen |= (int(b) & 0x7F) << shift |
| 12307 | if b < 0x80 { |
| 12308 | break |
| 12309 | } |
| 12310 | } |
| 12311 | if msglen < 0 { |
| 12312 | return ErrInvalidLengthRpc |
| 12313 | } |
| 12314 | postIndex := iNdEx + msglen |
| 12315 | if postIndex > l { |
| 12316 | return io.ErrUnexpectedEOF |
| 12317 | } |
| 12318 | if m.Header == nil { |
| 12319 | m.Header = &ResponseHeader{} |
| 12320 | } |
| 12321 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 12322 | return err |
| 12323 | } |
| 12324 | iNdEx = postIndex |
| 12325 | case 2: |
| 12326 | if wireType != 0 { |
| 12327 | return fmt.Errorf("proto: wrong wireType = %d for field RemainingBytes", wireType) |
| 12328 | } |
| 12329 | m.RemainingBytes = 0 |
| 12330 | for shift := uint(0); ; shift += 7 { |
| 12331 | if shift >= 64 { |
| 12332 | return ErrIntOverflowRpc |
| 12333 | } |
| 12334 | if iNdEx >= l { |
| 12335 | return io.ErrUnexpectedEOF |
| 12336 | } |
| 12337 | b := dAtA[iNdEx] |
| 12338 | iNdEx++ |
| 12339 | m.RemainingBytes |= (uint64(b) & 0x7F) << shift |
| 12340 | if b < 0x80 { |
| 12341 | break |
| 12342 | } |
| 12343 | } |
| 12344 | case 3: |
| 12345 | if wireType != 2 { |
| 12346 | return fmt.Errorf("proto: wrong wireType = %d for field Blob", wireType) |
| 12347 | } |
| 12348 | var byteLen int |
| 12349 | for shift := uint(0); ; shift += 7 { |
| 12350 | if shift >= 64 { |
| 12351 | return ErrIntOverflowRpc |
| 12352 | } |
| 12353 | if iNdEx >= l { |
| 12354 | return io.ErrUnexpectedEOF |
| 12355 | } |
| 12356 | b := dAtA[iNdEx] |
| 12357 | iNdEx++ |
| 12358 | byteLen |= (int(b) & 0x7F) << shift |
| 12359 | if b < 0x80 { |
| 12360 | break |
| 12361 | } |
| 12362 | } |
| 12363 | if byteLen < 0 { |
| 12364 | return ErrInvalidLengthRpc |
| 12365 | } |
| 12366 | postIndex := iNdEx + byteLen |
| 12367 | if postIndex > l { |
| 12368 | return io.ErrUnexpectedEOF |
| 12369 | } |
| 12370 | m.Blob = append(m.Blob[:0], dAtA[iNdEx:postIndex]...) |
| 12371 | if m.Blob == nil { |
| 12372 | m.Blob = []byte{} |
| 12373 | } |
| 12374 | iNdEx = postIndex |
| 12375 | default: |
| 12376 | iNdEx = preIndex |
| 12377 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 12378 | if err != nil { |
| 12379 | return err |
| 12380 | } |
| 12381 | if skippy < 0 { |
| 12382 | return ErrInvalidLengthRpc |
| 12383 | } |
| 12384 | if (iNdEx + skippy) > l { |
| 12385 | return io.ErrUnexpectedEOF |
| 12386 | } |
| 12387 | iNdEx += skippy |
| 12388 | } |
| 12389 | } |
| 12390 | |
| 12391 | if iNdEx > l { |
| 12392 | return io.ErrUnexpectedEOF |
| 12393 | } |
| 12394 | return nil |
| 12395 | } |
| 12396 | func (m *WatchRequest) Unmarshal(dAtA []byte) error { |
| 12397 | l := len(dAtA) |
| 12398 | iNdEx := 0 |
| 12399 | for iNdEx < l { |
| 12400 | preIndex := iNdEx |
| 12401 | var wire uint64 |
| 12402 | for shift := uint(0); ; shift += 7 { |
| 12403 | if shift >= 64 { |
| 12404 | return ErrIntOverflowRpc |
| 12405 | } |
| 12406 | if iNdEx >= l { |
| 12407 | return io.ErrUnexpectedEOF |
| 12408 | } |
| 12409 | b := dAtA[iNdEx] |
| 12410 | iNdEx++ |
| 12411 | wire |= (uint64(b) & 0x7F) << shift |
| 12412 | if b < 0x80 { |
| 12413 | break |
| 12414 | } |
| 12415 | } |
| 12416 | fieldNum := int32(wire >> 3) |
| 12417 | wireType := int(wire & 0x7) |
| 12418 | if wireType == 4 { |
| 12419 | return fmt.Errorf("proto: WatchRequest: wiretype end group for non-group") |
| 12420 | } |
| 12421 | if fieldNum <= 0 { |
| 12422 | return fmt.Errorf("proto: WatchRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 12423 | } |
| 12424 | switch fieldNum { |
| 12425 | case 1: |
| 12426 | if wireType != 2 { |
| 12427 | return fmt.Errorf("proto: wrong wireType = %d for field CreateRequest", wireType) |
| 12428 | } |
| 12429 | var msglen int |
| 12430 | for shift := uint(0); ; shift += 7 { |
| 12431 | if shift >= 64 { |
| 12432 | return ErrIntOverflowRpc |
| 12433 | } |
| 12434 | if iNdEx >= l { |
| 12435 | return io.ErrUnexpectedEOF |
| 12436 | } |
| 12437 | b := dAtA[iNdEx] |
| 12438 | iNdEx++ |
| 12439 | msglen |= (int(b) & 0x7F) << shift |
| 12440 | if b < 0x80 { |
| 12441 | break |
| 12442 | } |
| 12443 | } |
| 12444 | if msglen < 0 { |
| 12445 | return ErrInvalidLengthRpc |
| 12446 | } |
| 12447 | postIndex := iNdEx + msglen |
| 12448 | if postIndex > l { |
| 12449 | return io.ErrUnexpectedEOF |
| 12450 | } |
| 12451 | v := &WatchCreateRequest{} |
| 12452 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 12453 | return err |
| 12454 | } |
| 12455 | m.RequestUnion = &WatchRequest_CreateRequest{v} |
| 12456 | iNdEx = postIndex |
| 12457 | case 2: |
| 12458 | if wireType != 2 { |
| 12459 | return fmt.Errorf("proto: wrong wireType = %d for field CancelRequest", wireType) |
| 12460 | } |
| 12461 | var msglen int |
| 12462 | for shift := uint(0); ; shift += 7 { |
| 12463 | if shift >= 64 { |
| 12464 | return ErrIntOverflowRpc |
| 12465 | } |
| 12466 | if iNdEx >= l { |
| 12467 | return io.ErrUnexpectedEOF |
| 12468 | } |
| 12469 | b := dAtA[iNdEx] |
| 12470 | iNdEx++ |
| 12471 | msglen |= (int(b) & 0x7F) << shift |
| 12472 | if b < 0x80 { |
| 12473 | break |
| 12474 | } |
| 12475 | } |
| 12476 | if msglen < 0 { |
| 12477 | return ErrInvalidLengthRpc |
| 12478 | } |
| 12479 | postIndex := iNdEx + msglen |
| 12480 | if postIndex > l { |
| 12481 | return io.ErrUnexpectedEOF |
| 12482 | } |
| 12483 | v := &WatchCancelRequest{} |
| 12484 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 12485 | return err |
| 12486 | } |
| 12487 | m.RequestUnion = &WatchRequest_CancelRequest{v} |
| 12488 | iNdEx = postIndex |
| 12489 | case 3: |
| 12490 | if wireType != 2 { |
| 12491 | return fmt.Errorf("proto: wrong wireType = %d for field ProgressRequest", wireType) |
| 12492 | } |
| 12493 | var msglen int |
| 12494 | for shift := uint(0); ; shift += 7 { |
| 12495 | if shift >= 64 { |
| 12496 | return ErrIntOverflowRpc |
| 12497 | } |
| 12498 | if iNdEx >= l { |
| 12499 | return io.ErrUnexpectedEOF |
| 12500 | } |
| 12501 | b := dAtA[iNdEx] |
| 12502 | iNdEx++ |
| 12503 | msglen |= (int(b) & 0x7F) << shift |
| 12504 | if b < 0x80 { |
| 12505 | break |
| 12506 | } |
| 12507 | } |
| 12508 | if msglen < 0 { |
| 12509 | return ErrInvalidLengthRpc |
| 12510 | } |
| 12511 | postIndex := iNdEx + msglen |
| 12512 | if postIndex > l { |
| 12513 | return io.ErrUnexpectedEOF |
| 12514 | } |
| 12515 | v := &WatchProgressRequest{} |
| 12516 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 12517 | return err |
| 12518 | } |
| 12519 | m.RequestUnion = &WatchRequest_ProgressRequest{v} |
| 12520 | iNdEx = postIndex |
| 12521 | default: |
| 12522 | iNdEx = preIndex |
| 12523 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 12524 | if err != nil { |
| 12525 | return err |
| 12526 | } |
| 12527 | if skippy < 0 { |
| 12528 | return ErrInvalidLengthRpc |
| 12529 | } |
| 12530 | if (iNdEx + skippy) > l { |
| 12531 | return io.ErrUnexpectedEOF |
| 12532 | } |
| 12533 | iNdEx += skippy |
| 12534 | } |
| 12535 | } |
| 12536 | |
| 12537 | if iNdEx > l { |
| 12538 | return io.ErrUnexpectedEOF |
| 12539 | } |
| 12540 | return nil |
| 12541 | } |
| 12542 | func (m *WatchCreateRequest) Unmarshal(dAtA []byte) error { |
| 12543 | l := len(dAtA) |
| 12544 | iNdEx := 0 |
| 12545 | for iNdEx < l { |
| 12546 | preIndex := iNdEx |
| 12547 | var wire uint64 |
| 12548 | for shift := uint(0); ; shift += 7 { |
| 12549 | if shift >= 64 { |
| 12550 | return ErrIntOverflowRpc |
| 12551 | } |
| 12552 | if iNdEx >= l { |
| 12553 | return io.ErrUnexpectedEOF |
| 12554 | } |
| 12555 | b := dAtA[iNdEx] |
| 12556 | iNdEx++ |
| 12557 | wire |= (uint64(b) & 0x7F) << shift |
| 12558 | if b < 0x80 { |
| 12559 | break |
| 12560 | } |
| 12561 | } |
| 12562 | fieldNum := int32(wire >> 3) |
| 12563 | wireType := int(wire & 0x7) |
| 12564 | if wireType == 4 { |
| 12565 | return fmt.Errorf("proto: WatchCreateRequest: wiretype end group for non-group") |
| 12566 | } |
| 12567 | if fieldNum <= 0 { |
| 12568 | return fmt.Errorf("proto: WatchCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 12569 | } |
| 12570 | switch fieldNum { |
| 12571 | case 1: |
| 12572 | if wireType != 2 { |
| 12573 | return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| 12574 | } |
| 12575 | var byteLen int |
| 12576 | for shift := uint(0); ; shift += 7 { |
| 12577 | if shift >= 64 { |
| 12578 | return ErrIntOverflowRpc |
| 12579 | } |
| 12580 | if iNdEx >= l { |
| 12581 | return io.ErrUnexpectedEOF |
| 12582 | } |
| 12583 | b := dAtA[iNdEx] |
| 12584 | iNdEx++ |
| 12585 | byteLen |= (int(b) & 0x7F) << shift |
| 12586 | if b < 0x80 { |
| 12587 | break |
| 12588 | } |
| 12589 | } |
| 12590 | if byteLen < 0 { |
| 12591 | return ErrInvalidLengthRpc |
| 12592 | } |
| 12593 | postIndex := iNdEx + byteLen |
| 12594 | if postIndex > l { |
| 12595 | return io.ErrUnexpectedEOF |
| 12596 | } |
| 12597 | m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) |
| 12598 | if m.Key == nil { |
| 12599 | m.Key = []byte{} |
| 12600 | } |
| 12601 | iNdEx = postIndex |
| 12602 | case 2: |
| 12603 | if wireType != 2 { |
| 12604 | return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType) |
| 12605 | } |
| 12606 | var byteLen int |
| 12607 | for shift := uint(0); ; shift += 7 { |
| 12608 | if shift >= 64 { |
| 12609 | return ErrIntOverflowRpc |
| 12610 | } |
| 12611 | if iNdEx >= l { |
| 12612 | return io.ErrUnexpectedEOF |
| 12613 | } |
| 12614 | b := dAtA[iNdEx] |
| 12615 | iNdEx++ |
| 12616 | byteLen |= (int(b) & 0x7F) << shift |
| 12617 | if b < 0x80 { |
| 12618 | break |
| 12619 | } |
| 12620 | } |
| 12621 | if byteLen < 0 { |
| 12622 | return ErrInvalidLengthRpc |
| 12623 | } |
| 12624 | postIndex := iNdEx + byteLen |
| 12625 | if postIndex > l { |
| 12626 | return io.ErrUnexpectedEOF |
| 12627 | } |
| 12628 | m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...) |
| 12629 | if m.RangeEnd == nil { |
| 12630 | m.RangeEnd = []byte{} |
| 12631 | } |
| 12632 | iNdEx = postIndex |
| 12633 | case 3: |
| 12634 | if wireType != 0 { |
| 12635 | return fmt.Errorf("proto: wrong wireType = %d for field StartRevision", wireType) |
| 12636 | } |
| 12637 | m.StartRevision = 0 |
| 12638 | for shift := uint(0); ; shift += 7 { |
| 12639 | if shift >= 64 { |
| 12640 | return ErrIntOverflowRpc |
| 12641 | } |
| 12642 | if iNdEx >= l { |
| 12643 | return io.ErrUnexpectedEOF |
| 12644 | } |
| 12645 | b := dAtA[iNdEx] |
| 12646 | iNdEx++ |
| 12647 | m.StartRevision |= (int64(b) & 0x7F) << shift |
| 12648 | if b < 0x80 { |
| 12649 | break |
| 12650 | } |
| 12651 | } |
| 12652 | case 4: |
| 12653 | if wireType != 0 { |
| 12654 | return fmt.Errorf("proto: wrong wireType = %d for field ProgressNotify", wireType) |
| 12655 | } |
| 12656 | var v int |
| 12657 | for shift := uint(0); ; shift += 7 { |
| 12658 | if shift >= 64 { |
| 12659 | return ErrIntOverflowRpc |
| 12660 | } |
| 12661 | if iNdEx >= l { |
| 12662 | return io.ErrUnexpectedEOF |
| 12663 | } |
| 12664 | b := dAtA[iNdEx] |
| 12665 | iNdEx++ |
| 12666 | v |= (int(b) & 0x7F) << shift |
| 12667 | if b < 0x80 { |
| 12668 | break |
| 12669 | } |
| 12670 | } |
| 12671 | m.ProgressNotify = bool(v != 0) |
| 12672 | case 5: |
| 12673 | if wireType == 0 { |
| 12674 | var v WatchCreateRequest_FilterType |
| 12675 | for shift := uint(0); ; shift += 7 { |
| 12676 | if shift >= 64 { |
| 12677 | return ErrIntOverflowRpc |
| 12678 | } |
| 12679 | if iNdEx >= l { |
| 12680 | return io.ErrUnexpectedEOF |
| 12681 | } |
| 12682 | b := dAtA[iNdEx] |
| 12683 | iNdEx++ |
| 12684 | v |= (WatchCreateRequest_FilterType(b) & 0x7F) << shift |
| 12685 | if b < 0x80 { |
| 12686 | break |
| 12687 | } |
| 12688 | } |
| 12689 | m.Filters = append(m.Filters, v) |
| 12690 | } else if wireType == 2 { |
| 12691 | var packedLen int |
| 12692 | for shift := uint(0); ; shift += 7 { |
| 12693 | if shift >= 64 { |
| 12694 | return ErrIntOverflowRpc |
| 12695 | } |
| 12696 | if iNdEx >= l { |
| 12697 | return io.ErrUnexpectedEOF |
| 12698 | } |
| 12699 | b := dAtA[iNdEx] |
| 12700 | iNdEx++ |
| 12701 | packedLen |= (int(b) & 0x7F) << shift |
| 12702 | if b < 0x80 { |
| 12703 | break |
| 12704 | } |
| 12705 | } |
| 12706 | if packedLen < 0 { |
| 12707 | return ErrInvalidLengthRpc |
| 12708 | } |
| 12709 | postIndex := iNdEx + packedLen |
| 12710 | if postIndex > l { |
| 12711 | return io.ErrUnexpectedEOF |
| 12712 | } |
| 12713 | for iNdEx < postIndex { |
| 12714 | var v WatchCreateRequest_FilterType |
| 12715 | for shift := uint(0); ; shift += 7 { |
| 12716 | if shift >= 64 { |
| 12717 | return ErrIntOverflowRpc |
| 12718 | } |
| 12719 | if iNdEx >= l { |
| 12720 | return io.ErrUnexpectedEOF |
| 12721 | } |
| 12722 | b := dAtA[iNdEx] |
| 12723 | iNdEx++ |
| 12724 | v |= (WatchCreateRequest_FilterType(b) & 0x7F) << shift |
| 12725 | if b < 0x80 { |
| 12726 | break |
| 12727 | } |
| 12728 | } |
| 12729 | m.Filters = append(m.Filters, v) |
| 12730 | } |
| 12731 | } else { |
| 12732 | return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType) |
| 12733 | } |
| 12734 | case 6: |
| 12735 | if wireType != 0 { |
| 12736 | return fmt.Errorf("proto: wrong wireType = %d for field PrevKv", wireType) |
| 12737 | } |
| 12738 | var v int |
| 12739 | for shift := uint(0); ; shift += 7 { |
| 12740 | if shift >= 64 { |
| 12741 | return ErrIntOverflowRpc |
| 12742 | } |
| 12743 | if iNdEx >= l { |
| 12744 | return io.ErrUnexpectedEOF |
| 12745 | } |
| 12746 | b := dAtA[iNdEx] |
| 12747 | iNdEx++ |
| 12748 | v |= (int(b) & 0x7F) << shift |
| 12749 | if b < 0x80 { |
| 12750 | break |
| 12751 | } |
| 12752 | } |
| 12753 | m.PrevKv = bool(v != 0) |
| 12754 | case 7: |
| 12755 | if wireType != 0 { |
| 12756 | return fmt.Errorf("proto: wrong wireType = %d for field WatchId", wireType) |
| 12757 | } |
| 12758 | m.WatchId = 0 |
| 12759 | for shift := uint(0); ; shift += 7 { |
| 12760 | if shift >= 64 { |
| 12761 | return ErrIntOverflowRpc |
| 12762 | } |
| 12763 | if iNdEx >= l { |
| 12764 | return io.ErrUnexpectedEOF |
| 12765 | } |
| 12766 | b := dAtA[iNdEx] |
| 12767 | iNdEx++ |
| 12768 | m.WatchId |= (int64(b) & 0x7F) << shift |
| 12769 | if b < 0x80 { |
| 12770 | break |
| 12771 | } |
| 12772 | } |
| 12773 | case 8: |
| 12774 | if wireType != 0 { |
| 12775 | return fmt.Errorf("proto: wrong wireType = %d for field Fragment", wireType) |
| 12776 | } |
| 12777 | var v int |
| 12778 | for shift := uint(0); ; shift += 7 { |
| 12779 | if shift >= 64 { |
| 12780 | return ErrIntOverflowRpc |
| 12781 | } |
| 12782 | if iNdEx >= l { |
| 12783 | return io.ErrUnexpectedEOF |
| 12784 | } |
| 12785 | b := dAtA[iNdEx] |
| 12786 | iNdEx++ |
| 12787 | v |= (int(b) & 0x7F) << shift |
| 12788 | if b < 0x80 { |
| 12789 | break |
| 12790 | } |
| 12791 | } |
| 12792 | m.Fragment = bool(v != 0) |
| 12793 | default: |
| 12794 | iNdEx = preIndex |
| 12795 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 12796 | if err != nil { |
| 12797 | return err |
| 12798 | } |
| 12799 | if skippy < 0 { |
| 12800 | return ErrInvalidLengthRpc |
| 12801 | } |
| 12802 | if (iNdEx + skippy) > l { |
| 12803 | return io.ErrUnexpectedEOF |
| 12804 | } |
| 12805 | iNdEx += skippy |
| 12806 | } |
| 12807 | } |
| 12808 | |
| 12809 | if iNdEx > l { |
| 12810 | return io.ErrUnexpectedEOF |
| 12811 | } |
| 12812 | return nil |
| 12813 | } |
| 12814 | func (m *WatchCancelRequest) Unmarshal(dAtA []byte) error { |
| 12815 | l := len(dAtA) |
| 12816 | iNdEx := 0 |
| 12817 | for iNdEx < l { |
| 12818 | preIndex := iNdEx |
| 12819 | var wire uint64 |
| 12820 | for shift := uint(0); ; shift += 7 { |
| 12821 | if shift >= 64 { |
| 12822 | return ErrIntOverflowRpc |
| 12823 | } |
| 12824 | if iNdEx >= l { |
| 12825 | return io.ErrUnexpectedEOF |
| 12826 | } |
| 12827 | b := dAtA[iNdEx] |
| 12828 | iNdEx++ |
| 12829 | wire |= (uint64(b) & 0x7F) << shift |
| 12830 | if b < 0x80 { |
| 12831 | break |
| 12832 | } |
| 12833 | } |
| 12834 | fieldNum := int32(wire >> 3) |
| 12835 | wireType := int(wire & 0x7) |
| 12836 | if wireType == 4 { |
| 12837 | return fmt.Errorf("proto: WatchCancelRequest: wiretype end group for non-group") |
| 12838 | } |
| 12839 | if fieldNum <= 0 { |
| 12840 | return fmt.Errorf("proto: WatchCancelRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 12841 | } |
| 12842 | switch fieldNum { |
| 12843 | case 1: |
| 12844 | if wireType != 0 { |
| 12845 | return fmt.Errorf("proto: wrong wireType = %d for field WatchId", wireType) |
| 12846 | } |
| 12847 | m.WatchId = 0 |
| 12848 | for shift := uint(0); ; shift += 7 { |
| 12849 | if shift >= 64 { |
| 12850 | return ErrIntOverflowRpc |
| 12851 | } |
| 12852 | if iNdEx >= l { |
| 12853 | return io.ErrUnexpectedEOF |
| 12854 | } |
| 12855 | b := dAtA[iNdEx] |
| 12856 | iNdEx++ |
| 12857 | m.WatchId |= (int64(b) & 0x7F) << shift |
| 12858 | if b < 0x80 { |
| 12859 | break |
| 12860 | } |
| 12861 | } |
| 12862 | default: |
| 12863 | iNdEx = preIndex |
| 12864 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 12865 | if err != nil { |
| 12866 | return err |
| 12867 | } |
| 12868 | if skippy < 0 { |
| 12869 | return ErrInvalidLengthRpc |
| 12870 | } |
| 12871 | if (iNdEx + skippy) > l { |
| 12872 | return io.ErrUnexpectedEOF |
| 12873 | } |
| 12874 | iNdEx += skippy |
| 12875 | } |
| 12876 | } |
| 12877 | |
| 12878 | if iNdEx > l { |
| 12879 | return io.ErrUnexpectedEOF |
| 12880 | } |
| 12881 | return nil |
| 12882 | } |
| 12883 | func (m *WatchProgressRequest) Unmarshal(dAtA []byte) error { |
| 12884 | l := len(dAtA) |
| 12885 | iNdEx := 0 |
| 12886 | for iNdEx < l { |
| 12887 | preIndex := iNdEx |
| 12888 | var wire uint64 |
| 12889 | for shift := uint(0); ; shift += 7 { |
| 12890 | if shift >= 64 { |
| 12891 | return ErrIntOverflowRpc |
| 12892 | } |
| 12893 | if iNdEx >= l { |
| 12894 | return io.ErrUnexpectedEOF |
| 12895 | } |
| 12896 | b := dAtA[iNdEx] |
| 12897 | iNdEx++ |
| 12898 | wire |= (uint64(b) & 0x7F) << shift |
| 12899 | if b < 0x80 { |
| 12900 | break |
| 12901 | } |
| 12902 | } |
| 12903 | fieldNum := int32(wire >> 3) |
| 12904 | wireType := int(wire & 0x7) |
| 12905 | if wireType == 4 { |
| 12906 | return fmt.Errorf("proto: WatchProgressRequest: wiretype end group for non-group") |
| 12907 | } |
| 12908 | if fieldNum <= 0 { |
| 12909 | return fmt.Errorf("proto: WatchProgressRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 12910 | } |
| 12911 | switch fieldNum { |
| 12912 | default: |
| 12913 | iNdEx = preIndex |
| 12914 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 12915 | if err != nil { |
| 12916 | return err |
| 12917 | } |
| 12918 | if skippy < 0 { |
| 12919 | return ErrInvalidLengthRpc |
| 12920 | } |
| 12921 | if (iNdEx + skippy) > l { |
| 12922 | return io.ErrUnexpectedEOF |
| 12923 | } |
| 12924 | iNdEx += skippy |
| 12925 | } |
| 12926 | } |
| 12927 | |
| 12928 | if iNdEx > l { |
| 12929 | return io.ErrUnexpectedEOF |
| 12930 | } |
| 12931 | return nil |
| 12932 | } |
| 12933 | func (m *WatchResponse) Unmarshal(dAtA []byte) error { |
| 12934 | l := len(dAtA) |
| 12935 | iNdEx := 0 |
| 12936 | for iNdEx < l { |
| 12937 | preIndex := iNdEx |
| 12938 | var wire uint64 |
| 12939 | for shift := uint(0); ; shift += 7 { |
| 12940 | if shift >= 64 { |
| 12941 | return ErrIntOverflowRpc |
| 12942 | } |
| 12943 | if iNdEx >= l { |
| 12944 | return io.ErrUnexpectedEOF |
| 12945 | } |
| 12946 | b := dAtA[iNdEx] |
| 12947 | iNdEx++ |
| 12948 | wire |= (uint64(b) & 0x7F) << shift |
| 12949 | if b < 0x80 { |
| 12950 | break |
| 12951 | } |
| 12952 | } |
| 12953 | fieldNum := int32(wire >> 3) |
| 12954 | wireType := int(wire & 0x7) |
| 12955 | if wireType == 4 { |
| 12956 | return fmt.Errorf("proto: WatchResponse: wiretype end group for non-group") |
| 12957 | } |
| 12958 | if fieldNum <= 0 { |
| 12959 | return fmt.Errorf("proto: WatchResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 12960 | } |
| 12961 | switch fieldNum { |
| 12962 | case 1: |
| 12963 | if wireType != 2 { |
| 12964 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 12965 | } |
| 12966 | var msglen int |
| 12967 | for shift := uint(0); ; shift += 7 { |
| 12968 | if shift >= 64 { |
| 12969 | return ErrIntOverflowRpc |
| 12970 | } |
| 12971 | if iNdEx >= l { |
| 12972 | return io.ErrUnexpectedEOF |
| 12973 | } |
| 12974 | b := dAtA[iNdEx] |
| 12975 | iNdEx++ |
| 12976 | msglen |= (int(b) & 0x7F) << shift |
| 12977 | if b < 0x80 { |
| 12978 | break |
| 12979 | } |
| 12980 | } |
| 12981 | if msglen < 0 { |
| 12982 | return ErrInvalidLengthRpc |
| 12983 | } |
| 12984 | postIndex := iNdEx + msglen |
| 12985 | if postIndex > l { |
| 12986 | return io.ErrUnexpectedEOF |
| 12987 | } |
| 12988 | if m.Header == nil { |
| 12989 | m.Header = &ResponseHeader{} |
| 12990 | } |
| 12991 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 12992 | return err |
| 12993 | } |
| 12994 | iNdEx = postIndex |
| 12995 | case 2: |
| 12996 | if wireType != 0 { |
| 12997 | return fmt.Errorf("proto: wrong wireType = %d for field WatchId", wireType) |
| 12998 | } |
| 12999 | m.WatchId = 0 |
| 13000 | for shift := uint(0); ; shift += 7 { |
| 13001 | if shift >= 64 { |
| 13002 | return ErrIntOverflowRpc |
| 13003 | } |
| 13004 | if iNdEx >= l { |
| 13005 | return io.ErrUnexpectedEOF |
| 13006 | } |
| 13007 | b := dAtA[iNdEx] |
| 13008 | iNdEx++ |
| 13009 | m.WatchId |= (int64(b) & 0x7F) << shift |
| 13010 | if b < 0x80 { |
| 13011 | break |
| 13012 | } |
| 13013 | } |
| 13014 | case 3: |
| 13015 | if wireType != 0 { |
| 13016 | return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) |
| 13017 | } |
| 13018 | var v int |
| 13019 | for shift := uint(0); ; shift += 7 { |
| 13020 | if shift >= 64 { |
| 13021 | return ErrIntOverflowRpc |
| 13022 | } |
| 13023 | if iNdEx >= l { |
| 13024 | return io.ErrUnexpectedEOF |
| 13025 | } |
| 13026 | b := dAtA[iNdEx] |
| 13027 | iNdEx++ |
| 13028 | v |= (int(b) & 0x7F) << shift |
| 13029 | if b < 0x80 { |
| 13030 | break |
| 13031 | } |
| 13032 | } |
| 13033 | m.Created = bool(v != 0) |
| 13034 | case 4: |
| 13035 | if wireType != 0 { |
| 13036 | return fmt.Errorf("proto: wrong wireType = %d for field Canceled", wireType) |
| 13037 | } |
| 13038 | var v int |
| 13039 | for shift := uint(0); ; shift += 7 { |
| 13040 | if shift >= 64 { |
| 13041 | return ErrIntOverflowRpc |
| 13042 | } |
| 13043 | if iNdEx >= l { |
| 13044 | return io.ErrUnexpectedEOF |
| 13045 | } |
| 13046 | b := dAtA[iNdEx] |
| 13047 | iNdEx++ |
| 13048 | v |= (int(b) & 0x7F) << shift |
| 13049 | if b < 0x80 { |
| 13050 | break |
| 13051 | } |
| 13052 | } |
| 13053 | m.Canceled = bool(v != 0) |
| 13054 | case 5: |
| 13055 | if wireType != 0 { |
| 13056 | return fmt.Errorf("proto: wrong wireType = %d for field CompactRevision", wireType) |
| 13057 | } |
| 13058 | m.CompactRevision = 0 |
| 13059 | for shift := uint(0); ; shift += 7 { |
| 13060 | if shift >= 64 { |
| 13061 | return ErrIntOverflowRpc |
| 13062 | } |
| 13063 | if iNdEx >= l { |
| 13064 | return io.ErrUnexpectedEOF |
| 13065 | } |
| 13066 | b := dAtA[iNdEx] |
| 13067 | iNdEx++ |
| 13068 | m.CompactRevision |= (int64(b) & 0x7F) << shift |
| 13069 | if b < 0x80 { |
| 13070 | break |
| 13071 | } |
| 13072 | } |
| 13073 | case 6: |
| 13074 | if wireType != 2 { |
| 13075 | return fmt.Errorf("proto: wrong wireType = %d for field CancelReason", wireType) |
| 13076 | } |
| 13077 | var stringLen uint64 |
| 13078 | for shift := uint(0); ; shift += 7 { |
| 13079 | if shift >= 64 { |
| 13080 | return ErrIntOverflowRpc |
| 13081 | } |
| 13082 | if iNdEx >= l { |
| 13083 | return io.ErrUnexpectedEOF |
| 13084 | } |
| 13085 | b := dAtA[iNdEx] |
| 13086 | iNdEx++ |
| 13087 | stringLen |= (uint64(b) & 0x7F) << shift |
| 13088 | if b < 0x80 { |
| 13089 | break |
| 13090 | } |
| 13091 | } |
| 13092 | intStringLen := int(stringLen) |
| 13093 | if intStringLen < 0 { |
| 13094 | return ErrInvalidLengthRpc |
| 13095 | } |
| 13096 | postIndex := iNdEx + intStringLen |
| 13097 | if postIndex > l { |
| 13098 | return io.ErrUnexpectedEOF |
| 13099 | } |
| 13100 | m.CancelReason = string(dAtA[iNdEx:postIndex]) |
| 13101 | iNdEx = postIndex |
| 13102 | case 7: |
| 13103 | if wireType != 0 { |
| 13104 | return fmt.Errorf("proto: wrong wireType = %d for field Fragment", wireType) |
| 13105 | } |
| 13106 | var v int |
| 13107 | for shift := uint(0); ; shift += 7 { |
| 13108 | if shift >= 64 { |
| 13109 | return ErrIntOverflowRpc |
| 13110 | } |
| 13111 | if iNdEx >= l { |
| 13112 | return io.ErrUnexpectedEOF |
| 13113 | } |
| 13114 | b := dAtA[iNdEx] |
| 13115 | iNdEx++ |
| 13116 | v |= (int(b) & 0x7F) << shift |
| 13117 | if b < 0x80 { |
| 13118 | break |
| 13119 | } |
| 13120 | } |
| 13121 | m.Fragment = bool(v != 0) |
| 13122 | case 11: |
| 13123 | if wireType != 2 { |
| 13124 | return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) |
| 13125 | } |
| 13126 | var msglen int |
| 13127 | for shift := uint(0); ; shift += 7 { |
| 13128 | if shift >= 64 { |
| 13129 | return ErrIntOverflowRpc |
| 13130 | } |
| 13131 | if iNdEx >= l { |
| 13132 | return io.ErrUnexpectedEOF |
| 13133 | } |
| 13134 | b := dAtA[iNdEx] |
| 13135 | iNdEx++ |
| 13136 | msglen |= (int(b) & 0x7F) << shift |
| 13137 | if b < 0x80 { |
| 13138 | break |
| 13139 | } |
| 13140 | } |
| 13141 | if msglen < 0 { |
| 13142 | return ErrInvalidLengthRpc |
| 13143 | } |
| 13144 | postIndex := iNdEx + msglen |
| 13145 | if postIndex > l { |
| 13146 | return io.ErrUnexpectedEOF |
| 13147 | } |
| 13148 | m.Events = append(m.Events, &mvccpb.Event{}) |
| 13149 | if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 13150 | return err |
| 13151 | } |
| 13152 | iNdEx = postIndex |
| 13153 | default: |
| 13154 | iNdEx = preIndex |
| 13155 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 13156 | if err != nil { |
| 13157 | return err |
| 13158 | } |
| 13159 | if skippy < 0 { |
| 13160 | return ErrInvalidLengthRpc |
| 13161 | } |
| 13162 | if (iNdEx + skippy) > l { |
| 13163 | return io.ErrUnexpectedEOF |
| 13164 | } |
| 13165 | iNdEx += skippy |
| 13166 | } |
| 13167 | } |
| 13168 | |
| 13169 | if iNdEx > l { |
| 13170 | return io.ErrUnexpectedEOF |
| 13171 | } |
| 13172 | return nil |
| 13173 | } |
| 13174 | func (m *LeaseGrantRequest) Unmarshal(dAtA []byte) error { |
| 13175 | l := len(dAtA) |
| 13176 | iNdEx := 0 |
| 13177 | for iNdEx < l { |
| 13178 | preIndex := iNdEx |
| 13179 | var wire uint64 |
| 13180 | for shift := uint(0); ; shift += 7 { |
| 13181 | if shift >= 64 { |
| 13182 | return ErrIntOverflowRpc |
| 13183 | } |
| 13184 | if iNdEx >= l { |
| 13185 | return io.ErrUnexpectedEOF |
| 13186 | } |
| 13187 | b := dAtA[iNdEx] |
| 13188 | iNdEx++ |
| 13189 | wire |= (uint64(b) & 0x7F) << shift |
| 13190 | if b < 0x80 { |
| 13191 | break |
| 13192 | } |
| 13193 | } |
| 13194 | fieldNum := int32(wire >> 3) |
| 13195 | wireType := int(wire & 0x7) |
| 13196 | if wireType == 4 { |
| 13197 | return fmt.Errorf("proto: LeaseGrantRequest: wiretype end group for non-group") |
| 13198 | } |
| 13199 | if fieldNum <= 0 { |
| 13200 | return fmt.Errorf("proto: LeaseGrantRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 13201 | } |
| 13202 | switch fieldNum { |
| 13203 | case 1: |
| 13204 | if wireType != 0 { |
| 13205 | return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) |
| 13206 | } |
| 13207 | m.TTL = 0 |
| 13208 | for shift := uint(0); ; shift += 7 { |
| 13209 | if shift >= 64 { |
| 13210 | return ErrIntOverflowRpc |
| 13211 | } |
| 13212 | if iNdEx >= l { |
| 13213 | return io.ErrUnexpectedEOF |
| 13214 | } |
| 13215 | b := dAtA[iNdEx] |
| 13216 | iNdEx++ |
| 13217 | m.TTL |= (int64(b) & 0x7F) << shift |
| 13218 | if b < 0x80 { |
| 13219 | break |
| 13220 | } |
| 13221 | } |
| 13222 | case 2: |
| 13223 | if wireType != 0 { |
| 13224 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 13225 | } |
| 13226 | m.ID = 0 |
| 13227 | for shift := uint(0); ; shift += 7 { |
| 13228 | if shift >= 64 { |
| 13229 | return ErrIntOverflowRpc |
| 13230 | } |
| 13231 | if iNdEx >= l { |
| 13232 | return io.ErrUnexpectedEOF |
| 13233 | } |
| 13234 | b := dAtA[iNdEx] |
| 13235 | iNdEx++ |
| 13236 | m.ID |= (int64(b) & 0x7F) << shift |
| 13237 | if b < 0x80 { |
| 13238 | break |
| 13239 | } |
| 13240 | } |
| 13241 | default: |
| 13242 | iNdEx = preIndex |
| 13243 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 13244 | if err != nil { |
| 13245 | return err |
| 13246 | } |
| 13247 | if skippy < 0 { |
| 13248 | return ErrInvalidLengthRpc |
| 13249 | } |
| 13250 | if (iNdEx + skippy) > l { |
| 13251 | return io.ErrUnexpectedEOF |
| 13252 | } |
| 13253 | iNdEx += skippy |
| 13254 | } |
| 13255 | } |
| 13256 | |
| 13257 | if iNdEx > l { |
| 13258 | return io.ErrUnexpectedEOF |
| 13259 | } |
| 13260 | return nil |
| 13261 | } |
| 13262 | func (m *LeaseGrantResponse) Unmarshal(dAtA []byte) error { |
| 13263 | l := len(dAtA) |
| 13264 | iNdEx := 0 |
| 13265 | for iNdEx < l { |
| 13266 | preIndex := iNdEx |
| 13267 | var wire uint64 |
| 13268 | for shift := uint(0); ; shift += 7 { |
| 13269 | if shift >= 64 { |
| 13270 | return ErrIntOverflowRpc |
| 13271 | } |
| 13272 | if iNdEx >= l { |
| 13273 | return io.ErrUnexpectedEOF |
| 13274 | } |
| 13275 | b := dAtA[iNdEx] |
| 13276 | iNdEx++ |
| 13277 | wire |= (uint64(b) & 0x7F) << shift |
| 13278 | if b < 0x80 { |
| 13279 | break |
| 13280 | } |
| 13281 | } |
| 13282 | fieldNum := int32(wire >> 3) |
| 13283 | wireType := int(wire & 0x7) |
| 13284 | if wireType == 4 { |
| 13285 | return fmt.Errorf("proto: LeaseGrantResponse: wiretype end group for non-group") |
| 13286 | } |
| 13287 | if fieldNum <= 0 { |
| 13288 | return fmt.Errorf("proto: LeaseGrantResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 13289 | } |
| 13290 | switch fieldNum { |
| 13291 | case 1: |
| 13292 | if wireType != 2 { |
| 13293 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 13294 | } |
| 13295 | var msglen int |
| 13296 | for shift := uint(0); ; shift += 7 { |
| 13297 | if shift >= 64 { |
| 13298 | return ErrIntOverflowRpc |
| 13299 | } |
| 13300 | if iNdEx >= l { |
| 13301 | return io.ErrUnexpectedEOF |
| 13302 | } |
| 13303 | b := dAtA[iNdEx] |
| 13304 | iNdEx++ |
| 13305 | msglen |= (int(b) & 0x7F) << shift |
| 13306 | if b < 0x80 { |
| 13307 | break |
| 13308 | } |
| 13309 | } |
| 13310 | if msglen < 0 { |
| 13311 | return ErrInvalidLengthRpc |
| 13312 | } |
| 13313 | postIndex := iNdEx + msglen |
| 13314 | if postIndex > l { |
| 13315 | return io.ErrUnexpectedEOF |
| 13316 | } |
| 13317 | if m.Header == nil { |
| 13318 | m.Header = &ResponseHeader{} |
| 13319 | } |
| 13320 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 13321 | return err |
| 13322 | } |
| 13323 | iNdEx = postIndex |
| 13324 | case 2: |
| 13325 | if wireType != 0 { |
| 13326 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 13327 | } |
| 13328 | m.ID = 0 |
| 13329 | for shift := uint(0); ; shift += 7 { |
| 13330 | if shift >= 64 { |
| 13331 | return ErrIntOverflowRpc |
| 13332 | } |
| 13333 | if iNdEx >= l { |
| 13334 | return io.ErrUnexpectedEOF |
| 13335 | } |
| 13336 | b := dAtA[iNdEx] |
| 13337 | iNdEx++ |
| 13338 | m.ID |= (int64(b) & 0x7F) << shift |
| 13339 | if b < 0x80 { |
| 13340 | break |
| 13341 | } |
| 13342 | } |
| 13343 | case 3: |
| 13344 | if wireType != 0 { |
| 13345 | return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) |
| 13346 | } |
| 13347 | m.TTL = 0 |
| 13348 | for shift := uint(0); ; shift += 7 { |
| 13349 | if shift >= 64 { |
| 13350 | return ErrIntOverflowRpc |
| 13351 | } |
| 13352 | if iNdEx >= l { |
| 13353 | return io.ErrUnexpectedEOF |
| 13354 | } |
| 13355 | b := dAtA[iNdEx] |
| 13356 | iNdEx++ |
| 13357 | m.TTL |= (int64(b) & 0x7F) << shift |
| 13358 | if b < 0x80 { |
| 13359 | break |
| 13360 | } |
| 13361 | } |
| 13362 | case 4: |
| 13363 | if wireType != 2 { |
| 13364 | return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) |
| 13365 | } |
| 13366 | var stringLen uint64 |
| 13367 | for shift := uint(0); ; shift += 7 { |
| 13368 | if shift >= 64 { |
| 13369 | return ErrIntOverflowRpc |
| 13370 | } |
| 13371 | if iNdEx >= l { |
| 13372 | return io.ErrUnexpectedEOF |
| 13373 | } |
| 13374 | b := dAtA[iNdEx] |
| 13375 | iNdEx++ |
| 13376 | stringLen |= (uint64(b) & 0x7F) << shift |
| 13377 | if b < 0x80 { |
| 13378 | break |
| 13379 | } |
| 13380 | } |
| 13381 | intStringLen := int(stringLen) |
| 13382 | if intStringLen < 0 { |
| 13383 | return ErrInvalidLengthRpc |
| 13384 | } |
| 13385 | postIndex := iNdEx + intStringLen |
| 13386 | if postIndex > l { |
| 13387 | return io.ErrUnexpectedEOF |
| 13388 | } |
| 13389 | m.Error = string(dAtA[iNdEx:postIndex]) |
| 13390 | iNdEx = postIndex |
| 13391 | default: |
| 13392 | iNdEx = preIndex |
| 13393 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 13394 | if err != nil { |
| 13395 | return err |
| 13396 | } |
| 13397 | if skippy < 0 { |
| 13398 | return ErrInvalidLengthRpc |
| 13399 | } |
| 13400 | if (iNdEx + skippy) > l { |
| 13401 | return io.ErrUnexpectedEOF |
| 13402 | } |
| 13403 | iNdEx += skippy |
| 13404 | } |
| 13405 | } |
| 13406 | |
| 13407 | if iNdEx > l { |
| 13408 | return io.ErrUnexpectedEOF |
| 13409 | } |
| 13410 | return nil |
| 13411 | } |
| 13412 | func (m *LeaseRevokeRequest) Unmarshal(dAtA []byte) error { |
| 13413 | l := len(dAtA) |
| 13414 | iNdEx := 0 |
| 13415 | for iNdEx < l { |
| 13416 | preIndex := iNdEx |
| 13417 | var wire uint64 |
| 13418 | for shift := uint(0); ; shift += 7 { |
| 13419 | if shift >= 64 { |
| 13420 | return ErrIntOverflowRpc |
| 13421 | } |
| 13422 | if iNdEx >= l { |
| 13423 | return io.ErrUnexpectedEOF |
| 13424 | } |
| 13425 | b := dAtA[iNdEx] |
| 13426 | iNdEx++ |
| 13427 | wire |= (uint64(b) & 0x7F) << shift |
| 13428 | if b < 0x80 { |
| 13429 | break |
| 13430 | } |
| 13431 | } |
| 13432 | fieldNum := int32(wire >> 3) |
| 13433 | wireType := int(wire & 0x7) |
| 13434 | if wireType == 4 { |
| 13435 | return fmt.Errorf("proto: LeaseRevokeRequest: wiretype end group for non-group") |
| 13436 | } |
| 13437 | if fieldNum <= 0 { |
| 13438 | return fmt.Errorf("proto: LeaseRevokeRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 13439 | } |
| 13440 | switch fieldNum { |
| 13441 | case 1: |
| 13442 | if wireType != 0 { |
| 13443 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 13444 | } |
| 13445 | m.ID = 0 |
| 13446 | for shift := uint(0); ; shift += 7 { |
| 13447 | if shift >= 64 { |
| 13448 | return ErrIntOverflowRpc |
| 13449 | } |
| 13450 | if iNdEx >= l { |
| 13451 | return io.ErrUnexpectedEOF |
| 13452 | } |
| 13453 | b := dAtA[iNdEx] |
| 13454 | iNdEx++ |
| 13455 | m.ID |= (int64(b) & 0x7F) << shift |
| 13456 | if b < 0x80 { |
| 13457 | break |
| 13458 | } |
| 13459 | } |
| 13460 | default: |
| 13461 | iNdEx = preIndex |
| 13462 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 13463 | if err != nil { |
| 13464 | return err |
| 13465 | } |
| 13466 | if skippy < 0 { |
| 13467 | return ErrInvalidLengthRpc |
| 13468 | } |
| 13469 | if (iNdEx + skippy) > l { |
| 13470 | return io.ErrUnexpectedEOF |
| 13471 | } |
| 13472 | iNdEx += skippy |
| 13473 | } |
| 13474 | } |
| 13475 | |
| 13476 | if iNdEx > l { |
| 13477 | return io.ErrUnexpectedEOF |
| 13478 | } |
| 13479 | return nil |
| 13480 | } |
| 13481 | func (m *LeaseRevokeResponse) Unmarshal(dAtA []byte) error { |
| 13482 | l := len(dAtA) |
| 13483 | iNdEx := 0 |
| 13484 | for iNdEx < l { |
| 13485 | preIndex := iNdEx |
| 13486 | var wire uint64 |
| 13487 | for shift := uint(0); ; shift += 7 { |
| 13488 | if shift >= 64 { |
| 13489 | return ErrIntOverflowRpc |
| 13490 | } |
| 13491 | if iNdEx >= l { |
| 13492 | return io.ErrUnexpectedEOF |
| 13493 | } |
| 13494 | b := dAtA[iNdEx] |
| 13495 | iNdEx++ |
| 13496 | wire |= (uint64(b) & 0x7F) << shift |
| 13497 | if b < 0x80 { |
| 13498 | break |
| 13499 | } |
| 13500 | } |
| 13501 | fieldNum := int32(wire >> 3) |
| 13502 | wireType := int(wire & 0x7) |
| 13503 | if wireType == 4 { |
| 13504 | return fmt.Errorf("proto: LeaseRevokeResponse: wiretype end group for non-group") |
| 13505 | } |
| 13506 | if fieldNum <= 0 { |
| 13507 | return fmt.Errorf("proto: LeaseRevokeResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 13508 | } |
| 13509 | switch fieldNum { |
| 13510 | case 1: |
| 13511 | if wireType != 2 { |
| 13512 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 13513 | } |
| 13514 | var msglen int |
| 13515 | for shift := uint(0); ; shift += 7 { |
| 13516 | if shift >= 64 { |
| 13517 | return ErrIntOverflowRpc |
| 13518 | } |
| 13519 | if iNdEx >= l { |
| 13520 | return io.ErrUnexpectedEOF |
| 13521 | } |
| 13522 | b := dAtA[iNdEx] |
| 13523 | iNdEx++ |
| 13524 | msglen |= (int(b) & 0x7F) << shift |
| 13525 | if b < 0x80 { |
| 13526 | break |
| 13527 | } |
| 13528 | } |
| 13529 | if msglen < 0 { |
| 13530 | return ErrInvalidLengthRpc |
| 13531 | } |
| 13532 | postIndex := iNdEx + msglen |
| 13533 | if postIndex > l { |
| 13534 | return io.ErrUnexpectedEOF |
| 13535 | } |
| 13536 | if m.Header == nil { |
| 13537 | m.Header = &ResponseHeader{} |
| 13538 | } |
| 13539 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 13540 | return err |
| 13541 | } |
| 13542 | iNdEx = postIndex |
| 13543 | default: |
| 13544 | iNdEx = preIndex |
| 13545 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 13546 | if err != nil { |
| 13547 | return err |
| 13548 | } |
| 13549 | if skippy < 0 { |
| 13550 | return ErrInvalidLengthRpc |
| 13551 | } |
| 13552 | if (iNdEx + skippy) > l { |
| 13553 | return io.ErrUnexpectedEOF |
| 13554 | } |
| 13555 | iNdEx += skippy |
| 13556 | } |
| 13557 | } |
| 13558 | |
| 13559 | if iNdEx > l { |
| 13560 | return io.ErrUnexpectedEOF |
| 13561 | } |
| 13562 | return nil |
| 13563 | } |
| 13564 | func (m *LeaseCheckpoint) Unmarshal(dAtA []byte) error { |
| 13565 | l := len(dAtA) |
| 13566 | iNdEx := 0 |
| 13567 | for iNdEx < l { |
| 13568 | preIndex := iNdEx |
| 13569 | var wire uint64 |
| 13570 | for shift := uint(0); ; shift += 7 { |
| 13571 | if shift >= 64 { |
| 13572 | return ErrIntOverflowRpc |
| 13573 | } |
| 13574 | if iNdEx >= l { |
| 13575 | return io.ErrUnexpectedEOF |
| 13576 | } |
| 13577 | b := dAtA[iNdEx] |
| 13578 | iNdEx++ |
| 13579 | wire |= (uint64(b) & 0x7F) << shift |
| 13580 | if b < 0x80 { |
| 13581 | break |
| 13582 | } |
| 13583 | } |
| 13584 | fieldNum := int32(wire >> 3) |
| 13585 | wireType := int(wire & 0x7) |
| 13586 | if wireType == 4 { |
| 13587 | return fmt.Errorf("proto: LeaseCheckpoint: wiretype end group for non-group") |
| 13588 | } |
| 13589 | if fieldNum <= 0 { |
| 13590 | return fmt.Errorf("proto: LeaseCheckpoint: illegal tag %d (wire type %d)", fieldNum, wire) |
| 13591 | } |
| 13592 | switch fieldNum { |
| 13593 | case 1: |
| 13594 | if wireType != 0 { |
| 13595 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 13596 | } |
| 13597 | m.ID = 0 |
| 13598 | for shift := uint(0); ; shift += 7 { |
| 13599 | if shift >= 64 { |
| 13600 | return ErrIntOverflowRpc |
| 13601 | } |
| 13602 | if iNdEx >= l { |
| 13603 | return io.ErrUnexpectedEOF |
| 13604 | } |
| 13605 | b := dAtA[iNdEx] |
| 13606 | iNdEx++ |
| 13607 | m.ID |= (int64(b) & 0x7F) << shift |
| 13608 | if b < 0x80 { |
| 13609 | break |
| 13610 | } |
| 13611 | } |
| 13612 | case 2: |
| 13613 | if wireType != 0 { |
| 13614 | return fmt.Errorf("proto: wrong wireType = %d for field Remaining_TTL", wireType) |
| 13615 | } |
| 13616 | m.Remaining_TTL = 0 |
| 13617 | for shift := uint(0); ; shift += 7 { |
| 13618 | if shift >= 64 { |
| 13619 | return ErrIntOverflowRpc |
| 13620 | } |
| 13621 | if iNdEx >= l { |
| 13622 | return io.ErrUnexpectedEOF |
| 13623 | } |
| 13624 | b := dAtA[iNdEx] |
| 13625 | iNdEx++ |
| 13626 | m.Remaining_TTL |= (int64(b) & 0x7F) << shift |
| 13627 | if b < 0x80 { |
| 13628 | break |
| 13629 | } |
| 13630 | } |
| 13631 | default: |
| 13632 | iNdEx = preIndex |
| 13633 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 13634 | if err != nil { |
| 13635 | return err |
| 13636 | } |
| 13637 | if skippy < 0 { |
| 13638 | return ErrInvalidLengthRpc |
| 13639 | } |
| 13640 | if (iNdEx + skippy) > l { |
| 13641 | return io.ErrUnexpectedEOF |
| 13642 | } |
| 13643 | iNdEx += skippy |
| 13644 | } |
| 13645 | } |
| 13646 | |
| 13647 | if iNdEx > l { |
| 13648 | return io.ErrUnexpectedEOF |
| 13649 | } |
| 13650 | return nil |
| 13651 | } |
| 13652 | func (m *LeaseCheckpointRequest) Unmarshal(dAtA []byte) error { |
| 13653 | l := len(dAtA) |
| 13654 | iNdEx := 0 |
| 13655 | for iNdEx < l { |
| 13656 | preIndex := iNdEx |
| 13657 | var wire uint64 |
| 13658 | for shift := uint(0); ; shift += 7 { |
| 13659 | if shift >= 64 { |
| 13660 | return ErrIntOverflowRpc |
| 13661 | } |
| 13662 | if iNdEx >= l { |
| 13663 | return io.ErrUnexpectedEOF |
| 13664 | } |
| 13665 | b := dAtA[iNdEx] |
| 13666 | iNdEx++ |
| 13667 | wire |= (uint64(b) & 0x7F) << shift |
| 13668 | if b < 0x80 { |
| 13669 | break |
| 13670 | } |
| 13671 | } |
| 13672 | fieldNum := int32(wire >> 3) |
| 13673 | wireType := int(wire & 0x7) |
| 13674 | if wireType == 4 { |
| 13675 | return fmt.Errorf("proto: LeaseCheckpointRequest: wiretype end group for non-group") |
| 13676 | } |
| 13677 | if fieldNum <= 0 { |
| 13678 | return fmt.Errorf("proto: LeaseCheckpointRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 13679 | } |
| 13680 | switch fieldNum { |
| 13681 | case 1: |
| 13682 | if wireType != 2 { |
| 13683 | return fmt.Errorf("proto: wrong wireType = %d for field Checkpoints", wireType) |
| 13684 | } |
| 13685 | var msglen int |
| 13686 | for shift := uint(0); ; shift += 7 { |
| 13687 | if shift >= 64 { |
| 13688 | return ErrIntOverflowRpc |
| 13689 | } |
| 13690 | if iNdEx >= l { |
| 13691 | return io.ErrUnexpectedEOF |
| 13692 | } |
| 13693 | b := dAtA[iNdEx] |
| 13694 | iNdEx++ |
| 13695 | msglen |= (int(b) & 0x7F) << shift |
| 13696 | if b < 0x80 { |
| 13697 | break |
| 13698 | } |
| 13699 | } |
| 13700 | if msglen < 0 { |
| 13701 | return ErrInvalidLengthRpc |
| 13702 | } |
| 13703 | postIndex := iNdEx + msglen |
| 13704 | if postIndex > l { |
| 13705 | return io.ErrUnexpectedEOF |
| 13706 | } |
| 13707 | m.Checkpoints = append(m.Checkpoints, &LeaseCheckpoint{}) |
| 13708 | if err := m.Checkpoints[len(m.Checkpoints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 13709 | return err |
| 13710 | } |
| 13711 | iNdEx = postIndex |
| 13712 | default: |
| 13713 | iNdEx = preIndex |
| 13714 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 13715 | if err != nil { |
| 13716 | return err |
| 13717 | } |
| 13718 | if skippy < 0 { |
| 13719 | return ErrInvalidLengthRpc |
| 13720 | } |
| 13721 | if (iNdEx + skippy) > l { |
| 13722 | return io.ErrUnexpectedEOF |
| 13723 | } |
| 13724 | iNdEx += skippy |
| 13725 | } |
| 13726 | } |
| 13727 | |
| 13728 | if iNdEx > l { |
| 13729 | return io.ErrUnexpectedEOF |
| 13730 | } |
| 13731 | return nil |
| 13732 | } |
| 13733 | func (m *LeaseCheckpointResponse) Unmarshal(dAtA []byte) error { |
| 13734 | l := len(dAtA) |
| 13735 | iNdEx := 0 |
| 13736 | for iNdEx < l { |
| 13737 | preIndex := iNdEx |
| 13738 | var wire uint64 |
| 13739 | for shift := uint(0); ; shift += 7 { |
| 13740 | if shift >= 64 { |
| 13741 | return ErrIntOverflowRpc |
| 13742 | } |
| 13743 | if iNdEx >= l { |
| 13744 | return io.ErrUnexpectedEOF |
| 13745 | } |
| 13746 | b := dAtA[iNdEx] |
| 13747 | iNdEx++ |
| 13748 | wire |= (uint64(b) & 0x7F) << shift |
| 13749 | if b < 0x80 { |
| 13750 | break |
| 13751 | } |
| 13752 | } |
| 13753 | fieldNum := int32(wire >> 3) |
| 13754 | wireType := int(wire & 0x7) |
| 13755 | if wireType == 4 { |
| 13756 | return fmt.Errorf("proto: LeaseCheckpointResponse: wiretype end group for non-group") |
| 13757 | } |
| 13758 | if fieldNum <= 0 { |
| 13759 | return fmt.Errorf("proto: LeaseCheckpointResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 13760 | } |
| 13761 | switch fieldNum { |
| 13762 | case 1: |
| 13763 | if wireType != 2 { |
| 13764 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 13765 | } |
| 13766 | var msglen int |
| 13767 | for shift := uint(0); ; shift += 7 { |
| 13768 | if shift >= 64 { |
| 13769 | return ErrIntOverflowRpc |
| 13770 | } |
| 13771 | if iNdEx >= l { |
| 13772 | return io.ErrUnexpectedEOF |
| 13773 | } |
| 13774 | b := dAtA[iNdEx] |
| 13775 | iNdEx++ |
| 13776 | msglen |= (int(b) & 0x7F) << shift |
| 13777 | if b < 0x80 { |
| 13778 | break |
| 13779 | } |
| 13780 | } |
| 13781 | if msglen < 0 { |
| 13782 | return ErrInvalidLengthRpc |
| 13783 | } |
| 13784 | postIndex := iNdEx + msglen |
| 13785 | if postIndex > l { |
| 13786 | return io.ErrUnexpectedEOF |
| 13787 | } |
| 13788 | if m.Header == nil { |
| 13789 | m.Header = &ResponseHeader{} |
| 13790 | } |
| 13791 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 13792 | return err |
| 13793 | } |
| 13794 | iNdEx = postIndex |
| 13795 | default: |
| 13796 | iNdEx = preIndex |
| 13797 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 13798 | if err != nil { |
| 13799 | return err |
| 13800 | } |
| 13801 | if skippy < 0 { |
| 13802 | return ErrInvalidLengthRpc |
| 13803 | } |
| 13804 | if (iNdEx + skippy) > l { |
| 13805 | return io.ErrUnexpectedEOF |
| 13806 | } |
| 13807 | iNdEx += skippy |
| 13808 | } |
| 13809 | } |
| 13810 | |
| 13811 | if iNdEx > l { |
| 13812 | return io.ErrUnexpectedEOF |
| 13813 | } |
| 13814 | return nil |
| 13815 | } |
| 13816 | func (m *LeaseKeepAliveRequest) Unmarshal(dAtA []byte) error { |
| 13817 | l := len(dAtA) |
| 13818 | iNdEx := 0 |
| 13819 | for iNdEx < l { |
| 13820 | preIndex := iNdEx |
| 13821 | var wire uint64 |
| 13822 | for shift := uint(0); ; shift += 7 { |
| 13823 | if shift >= 64 { |
| 13824 | return ErrIntOverflowRpc |
| 13825 | } |
| 13826 | if iNdEx >= l { |
| 13827 | return io.ErrUnexpectedEOF |
| 13828 | } |
| 13829 | b := dAtA[iNdEx] |
| 13830 | iNdEx++ |
| 13831 | wire |= (uint64(b) & 0x7F) << shift |
| 13832 | if b < 0x80 { |
| 13833 | break |
| 13834 | } |
| 13835 | } |
| 13836 | fieldNum := int32(wire >> 3) |
| 13837 | wireType := int(wire & 0x7) |
| 13838 | if wireType == 4 { |
| 13839 | return fmt.Errorf("proto: LeaseKeepAliveRequest: wiretype end group for non-group") |
| 13840 | } |
| 13841 | if fieldNum <= 0 { |
| 13842 | return fmt.Errorf("proto: LeaseKeepAliveRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 13843 | } |
| 13844 | switch fieldNum { |
| 13845 | case 1: |
| 13846 | if wireType != 0 { |
| 13847 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 13848 | } |
| 13849 | m.ID = 0 |
| 13850 | for shift := uint(0); ; shift += 7 { |
| 13851 | if shift >= 64 { |
| 13852 | return ErrIntOverflowRpc |
| 13853 | } |
| 13854 | if iNdEx >= l { |
| 13855 | return io.ErrUnexpectedEOF |
| 13856 | } |
| 13857 | b := dAtA[iNdEx] |
| 13858 | iNdEx++ |
| 13859 | m.ID |= (int64(b) & 0x7F) << shift |
| 13860 | if b < 0x80 { |
| 13861 | break |
| 13862 | } |
| 13863 | } |
| 13864 | default: |
| 13865 | iNdEx = preIndex |
| 13866 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 13867 | if err != nil { |
| 13868 | return err |
| 13869 | } |
| 13870 | if skippy < 0 { |
| 13871 | return ErrInvalidLengthRpc |
| 13872 | } |
| 13873 | if (iNdEx + skippy) > l { |
| 13874 | return io.ErrUnexpectedEOF |
| 13875 | } |
| 13876 | iNdEx += skippy |
| 13877 | } |
| 13878 | } |
| 13879 | |
| 13880 | if iNdEx > l { |
| 13881 | return io.ErrUnexpectedEOF |
| 13882 | } |
| 13883 | return nil |
| 13884 | } |
| 13885 | func (m *LeaseKeepAliveResponse) Unmarshal(dAtA []byte) error { |
| 13886 | l := len(dAtA) |
| 13887 | iNdEx := 0 |
| 13888 | for iNdEx < l { |
| 13889 | preIndex := iNdEx |
| 13890 | var wire uint64 |
| 13891 | for shift := uint(0); ; shift += 7 { |
| 13892 | if shift >= 64 { |
| 13893 | return ErrIntOverflowRpc |
| 13894 | } |
| 13895 | if iNdEx >= l { |
| 13896 | return io.ErrUnexpectedEOF |
| 13897 | } |
| 13898 | b := dAtA[iNdEx] |
| 13899 | iNdEx++ |
| 13900 | wire |= (uint64(b) & 0x7F) << shift |
| 13901 | if b < 0x80 { |
| 13902 | break |
| 13903 | } |
| 13904 | } |
| 13905 | fieldNum := int32(wire >> 3) |
| 13906 | wireType := int(wire & 0x7) |
| 13907 | if wireType == 4 { |
| 13908 | return fmt.Errorf("proto: LeaseKeepAliveResponse: wiretype end group for non-group") |
| 13909 | } |
| 13910 | if fieldNum <= 0 { |
| 13911 | return fmt.Errorf("proto: LeaseKeepAliveResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 13912 | } |
| 13913 | switch fieldNum { |
| 13914 | case 1: |
| 13915 | if wireType != 2 { |
| 13916 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 13917 | } |
| 13918 | var msglen int |
| 13919 | for shift := uint(0); ; shift += 7 { |
| 13920 | if shift >= 64 { |
| 13921 | return ErrIntOverflowRpc |
| 13922 | } |
| 13923 | if iNdEx >= l { |
| 13924 | return io.ErrUnexpectedEOF |
| 13925 | } |
| 13926 | b := dAtA[iNdEx] |
| 13927 | iNdEx++ |
| 13928 | msglen |= (int(b) & 0x7F) << shift |
| 13929 | if b < 0x80 { |
| 13930 | break |
| 13931 | } |
| 13932 | } |
| 13933 | if msglen < 0 { |
| 13934 | return ErrInvalidLengthRpc |
| 13935 | } |
| 13936 | postIndex := iNdEx + msglen |
| 13937 | if postIndex > l { |
| 13938 | return io.ErrUnexpectedEOF |
| 13939 | } |
| 13940 | if m.Header == nil { |
| 13941 | m.Header = &ResponseHeader{} |
| 13942 | } |
| 13943 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 13944 | return err |
| 13945 | } |
| 13946 | iNdEx = postIndex |
| 13947 | case 2: |
| 13948 | if wireType != 0 { |
| 13949 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 13950 | } |
| 13951 | m.ID = 0 |
| 13952 | for shift := uint(0); ; shift += 7 { |
| 13953 | if shift >= 64 { |
| 13954 | return ErrIntOverflowRpc |
| 13955 | } |
| 13956 | if iNdEx >= l { |
| 13957 | return io.ErrUnexpectedEOF |
| 13958 | } |
| 13959 | b := dAtA[iNdEx] |
| 13960 | iNdEx++ |
| 13961 | m.ID |= (int64(b) & 0x7F) << shift |
| 13962 | if b < 0x80 { |
| 13963 | break |
| 13964 | } |
| 13965 | } |
| 13966 | case 3: |
| 13967 | if wireType != 0 { |
| 13968 | return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) |
| 13969 | } |
| 13970 | m.TTL = 0 |
| 13971 | for shift := uint(0); ; shift += 7 { |
| 13972 | if shift >= 64 { |
| 13973 | return ErrIntOverflowRpc |
| 13974 | } |
| 13975 | if iNdEx >= l { |
| 13976 | return io.ErrUnexpectedEOF |
| 13977 | } |
| 13978 | b := dAtA[iNdEx] |
| 13979 | iNdEx++ |
| 13980 | m.TTL |= (int64(b) & 0x7F) << shift |
| 13981 | if b < 0x80 { |
| 13982 | break |
| 13983 | } |
| 13984 | } |
| 13985 | default: |
| 13986 | iNdEx = preIndex |
| 13987 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 13988 | if err != nil { |
| 13989 | return err |
| 13990 | } |
| 13991 | if skippy < 0 { |
| 13992 | return ErrInvalidLengthRpc |
| 13993 | } |
| 13994 | if (iNdEx + skippy) > l { |
| 13995 | return io.ErrUnexpectedEOF |
| 13996 | } |
| 13997 | iNdEx += skippy |
| 13998 | } |
| 13999 | } |
| 14000 | |
| 14001 | if iNdEx > l { |
| 14002 | return io.ErrUnexpectedEOF |
| 14003 | } |
| 14004 | return nil |
| 14005 | } |
| 14006 | func (m *LeaseTimeToLiveRequest) Unmarshal(dAtA []byte) error { |
| 14007 | l := len(dAtA) |
| 14008 | iNdEx := 0 |
| 14009 | for iNdEx < l { |
| 14010 | preIndex := iNdEx |
| 14011 | var wire uint64 |
| 14012 | for shift := uint(0); ; shift += 7 { |
| 14013 | if shift >= 64 { |
| 14014 | return ErrIntOverflowRpc |
| 14015 | } |
| 14016 | if iNdEx >= l { |
| 14017 | return io.ErrUnexpectedEOF |
| 14018 | } |
| 14019 | b := dAtA[iNdEx] |
| 14020 | iNdEx++ |
| 14021 | wire |= (uint64(b) & 0x7F) << shift |
| 14022 | if b < 0x80 { |
| 14023 | break |
| 14024 | } |
| 14025 | } |
| 14026 | fieldNum := int32(wire >> 3) |
| 14027 | wireType := int(wire & 0x7) |
| 14028 | if wireType == 4 { |
| 14029 | return fmt.Errorf("proto: LeaseTimeToLiveRequest: wiretype end group for non-group") |
| 14030 | } |
| 14031 | if fieldNum <= 0 { |
| 14032 | return fmt.Errorf("proto: LeaseTimeToLiveRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 14033 | } |
| 14034 | switch fieldNum { |
| 14035 | case 1: |
| 14036 | if wireType != 0 { |
| 14037 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 14038 | } |
| 14039 | m.ID = 0 |
| 14040 | for shift := uint(0); ; shift += 7 { |
| 14041 | if shift >= 64 { |
| 14042 | return ErrIntOverflowRpc |
| 14043 | } |
| 14044 | if iNdEx >= l { |
| 14045 | return io.ErrUnexpectedEOF |
| 14046 | } |
| 14047 | b := dAtA[iNdEx] |
| 14048 | iNdEx++ |
| 14049 | m.ID |= (int64(b) & 0x7F) << shift |
| 14050 | if b < 0x80 { |
| 14051 | break |
| 14052 | } |
| 14053 | } |
| 14054 | case 2: |
| 14055 | if wireType != 0 { |
| 14056 | return fmt.Errorf("proto: wrong wireType = %d for field Keys", wireType) |
| 14057 | } |
| 14058 | var v int |
| 14059 | for shift := uint(0); ; shift += 7 { |
| 14060 | if shift >= 64 { |
| 14061 | return ErrIntOverflowRpc |
| 14062 | } |
| 14063 | if iNdEx >= l { |
| 14064 | return io.ErrUnexpectedEOF |
| 14065 | } |
| 14066 | b := dAtA[iNdEx] |
| 14067 | iNdEx++ |
| 14068 | v |= (int(b) & 0x7F) << shift |
| 14069 | if b < 0x80 { |
| 14070 | break |
| 14071 | } |
| 14072 | } |
| 14073 | m.Keys = bool(v != 0) |
| 14074 | default: |
| 14075 | iNdEx = preIndex |
| 14076 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 14077 | if err != nil { |
| 14078 | return err |
| 14079 | } |
| 14080 | if skippy < 0 { |
| 14081 | return ErrInvalidLengthRpc |
| 14082 | } |
| 14083 | if (iNdEx + skippy) > l { |
| 14084 | return io.ErrUnexpectedEOF |
| 14085 | } |
| 14086 | iNdEx += skippy |
| 14087 | } |
| 14088 | } |
| 14089 | |
| 14090 | if iNdEx > l { |
| 14091 | return io.ErrUnexpectedEOF |
| 14092 | } |
| 14093 | return nil |
| 14094 | } |
| 14095 | func (m *LeaseTimeToLiveResponse) Unmarshal(dAtA []byte) error { |
| 14096 | l := len(dAtA) |
| 14097 | iNdEx := 0 |
| 14098 | for iNdEx < l { |
| 14099 | preIndex := iNdEx |
| 14100 | var wire uint64 |
| 14101 | for shift := uint(0); ; shift += 7 { |
| 14102 | if shift >= 64 { |
| 14103 | return ErrIntOverflowRpc |
| 14104 | } |
| 14105 | if iNdEx >= l { |
| 14106 | return io.ErrUnexpectedEOF |
| 14107 | } |
| 14108 | b := dAtA[iNdEx] |
| 14109 | iNdEx++ |
| 14110 | wire |= (uint64(b) & 0x7F) << shift |
| 14111 | if b < 0x80 { |
| 14112 | break |
| 14113 | } |
| 14114 | } |
| 14115 | fieldNum := int32(wire >> 3) |
| 14116 | wireType := int(wire & 0x7) |
| 14117 | if wireType == 4 { |
| 14118 | return fmt.Errorf("proto: LeaseTimeToLiveResponse: wiretype end group for non-group") |
| 14119 | } |
| 14120 | if fieldNum <= 0 { |
| 14121 | return fmt.Errorf("proto: LeaseTimeToLiveResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 14122 | } |
| 14123 | switch fieldNum { |
| 14124 | case 1: |
| 14125 | if wireType != 2 { |
| 14126 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 14127 | } |
| 14128 | var msglen int |
| 14129 | for shift := uint(0); ; shift += 7 { |
| 14130 | if shift >= 64 { |
| 14131 | return ErrIntOverflowRpc |
| 14132 | } |
| 14133 | if iNdEx >= l { |
| 14134 | return io.ErrUnexpectedEOF |
| 14135 | } |
| 14136 | b := dAtA[iNdEx] |
| 14137 | iNdEx++ |
| 14138 | msglen |= (int(b) & 0x7F) << shift |
| 14139 | if b < 0x80 { |
| 14140 | break |
| 14141 | } |
| 14142 | } |
| 14143 | if msglen < 0 { |
| 14144 | return ErrInvalidLengthRpc |
| 14145 | } |
| 14146 | postIndex := iNdEx + msglen |
| 14147 | if postIndex > l { |
| 14148 | return io.ErrUnexpectedEOF |
| 14149 | } |
| 14150 | if m.Header == nil { |
| 14151 | m.Header = &ResponseHeader{} |
| 14152 | } |
| 14153 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 14154 | return err |
| 14155 | } |
| 14156 | iNdEx = postIndex |
| 14157 | case 2: |
| 14158 | if wireType != 0 { |
| 14159 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 14160 | } |
| 14161 | m.ID = 0 |
| 14162 | for shift := uint(0); ; shift += 7 { |
| 14163 | if shift >= 64 { |
| 14164 | return ErrIntOverflowRpc |
| 14165 | } |
| 14166 | if iNdEx >= l { |
| 14167 | return io.ErrUnexpectedEOF |
| 14168 | } |
| 14169 | b := dAtA[iNdEx] |
| 14170 | iNdEx++ |
| 14171 | m.ID |= (int64(b) & 0x7F) << shift |
| 14172 | if b < 0x80 { |
| 14173 | break |
| 14174 | } |
| 14175 | } |
| 14176 | case 3: |
| 14177 | if wireType != 0 { |
| 14178 | return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) |
| 14179 | } |
| 14180 | m.TTL = 0 |
| 14181 | for shift := uint(0); ; shift += 7 { |
| 14182 | if shift >= 64 { |
| 14183 | return ErrIntOverflowRpc |
| 14184 | } |
| 14185 | if iNdEx >= l { |
| 14186 | return io.ErrUnexpectedEOF |
| 14187 | } |
| 14188 | b := dAtA[iNdEx] |
| 14189 | iNdEx++ |
| 14190 | m.TTL |= (int64(b) & 0x7F) << shift |
| 14191 | if b < 0x80 { |
| 14192 | break |
| 14193 | } |
| 14194 | } |
| 14195 | case 4: |
| 14196 | if wireType != 0 { |
| 14197 | return fmt.Errorf("proto: wrong wireType = %d for field GrantedTTL", wireType) |
| 14198 | } |
| 14199 | m.GrantedTTL = 0 |
| 14200 | for shift := uint(0); ; shift += 7 { |
| 14201 | if shift >= 64 { |
| 14202 | return ErrIntOverflowRpc |
| 14203 | } |
| 14204 | if iNdEx >= l { |
| 14205 | return io.ErrUnexpectedEOF |
| 14206 | } |
| 14207 | b := dAtA[iNdEx] |
| 14208 | iNdEx++ |
| 14209 | m.GrantedTTL |= (int64(b) & 0x7F) << shift |
| 14210 | if b < 0x80 { |
| 14211 | break |
| 14212 | } |
| 14213 | } |
| 14214 | case 5: |
| 14215 | if wireType != 2 { |
| 14216 | return fmt.Errorf("proto: wrong wireType = %d for field Keys", wireType) |
| 14217 | } |
| 14218 | var byteLen int |
| 14219 | for shift := uint(0); ; shift += 7 { |
| 14220 | if shift >= 64 { |
| 14221 | return ErrIntOverflowRpc |
| 14222 | } |
| 14223 | if iNdEx >= l { |
| 14224 | return io.ErrUnexpectedEOF |
| 14225 | } |
| 14226 | b := dAtA[iNdEx] |
| 14227 | iNdEx++ |
| 14228 | byteLen |= (int(b) & 0x7F) << shift |
| 14229 | if b < 0x80 { |
| 14230 | break |
| 14231 | } |
| 14232 | } |
| 14233 | if byteLen < 0 { |
| 14234 | return ErrInvalidLengthRpc |
| 14235 | } |
| 14236 | postIndex := iNdEx + byteLen |
| 14237 | if postIndex > l { |
| 14238 | return io.ErrUnexpectedEOF |
| 14239 | } |
| 14240 | m.Keys = append(m.Keys, make([]byte, postIndex-iNdEx)) |
| 14241 | copy(m.Keys[len(m.Keys)-1], dAtA[iNdEx:postIndex]) |
| 14242 | iNdEx = postIndex |
| 14243 | default: |
| 14244 | iNdEx = preIndex |
| 14245 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 14246 | if err != nil { |
| 14247 | return err |
| 14248 | } |
| 14249 | if skippy < 0 { |
| 14250 | return ErrInvalidLengthRpc |
| 14251 | } |
| 14252 | if (iNdEx + skippy) > l { |
| 14253 | return io.ErrUnexpectedEOF |
| 14254 | } |
| 14255 | iNdEx += skippy |
| 14256 | } |
| 14257 | } |
| 14258 | |
| 14259 | if iNdEx > l { |
| 14260 | return io.ErrUnexpectedEOF |
| 14261 | } |
| 14262 | return nil |
| 14263 | } |
| 14264 | func (m *LeaseLeasesRequest) Unmarshal(dAtA []byte) error { |
| 14265 | l := len(dAtA) |
| 14266 | iNdEx := 0 |
| 14267 | for iNdEx < l { |
| 14268 | preIndex := iNdEx |
| 14269 | var wire uint64 |
| 14270 | for shift := uint(0); ; shift += 7 { |
| 14271 | if shift >= 64 { |
| 14272 | return ErrIntOverflowRpc |
| 14273 | } |
| 14274 | if iNdEx >= l { |
| 14275 | return io.ErrUnexpectedEOF |
| 14276 | } |
| 14277 | b := dAtA[iNdEx] |
| 14278 | iNdEx++ |
| 14279 | wire |= (uint64(b) & 0x7F) << shift |
| 14280 | if b < 0x80 { |
| 14281 | break |
| 14282 | } |
| 14283 | } |
| 14284 | fieldNum := int32(wire >> 3) |
| 14285 | wireType := int(wire & 0x7) |
| 14286 | if wireType == 4 { |
| 14287 | return fmt.Errorf("proto: LeaseLeasesRequest: wiretype end group for non-group") |
| 14288 | } |
| 14289 | if fieldNum <= 0 { |
| 14290 | return fmt.Errorf("proto: LeaseLeasesRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 14291 | } |
| 14292 | switch fieldNum { |
| 14293 | default: |
| 14294 | iNdEx = preIndex |
| 14295 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 14296 | if err != nil { |
| 14297 | return err |
| 14298 | } |
| 14299 | if skippy < 0 { |
| 14300 | return ErrInvalidLengthRpc |
| 14301 | } |
| 14302 | if (iNdEx + skippy) > l { |
| 14303 | return io.ErrUnexpectedEOF |
| 14304 | } |
| 14305 | iNdEx += skippy |
| 14306 | } |
| 14307 | } |
| 14308 | |
| 14309 | if iNdEx > l { |
| 14310 | return io.ErrUnexpectedEOF |
| 14311 | } |
| 14312 | return nil |
| 14313 | } |
| 14314 | func (m *LeaseStatus) Unmarshal(dAtA []byte) error { |
| 14315 | l := len(dAtA) |
| 14316 | iNdEx := 0 |
| 14317 | for iNdEx < l { |
| 14318 | preIndex := iNdEx |
| 14319 | var wire uint64 |
| 14320 | for shift := uint(0); ; shift += 7 { |
| 14321 | if shift >= 64 { |
| 14322 | return ErrIntOverflowRpc |
| 14323 | } |
| 14324 | if iNdEx >= l { |
| 14325 | return io.ErrUnexpectedEOF |
| 14326 | } |
| 14327 | b := dAtA[iNdEx] |
| 14328 | iNdEx++ |
| 14329 | wire |= (uint64(b) & 0x7F) << shift |
| 14330 | if b < 0x80 { |
| 14331 | break |
| 14332 | } |
| 14333 | } |
| 14334 | fieldNum := int32(wire >> 3) |
| 14335 | wireType := int(wire & 0x7) |
| 14336 | if wireType == 4 { |
| 14337 | return fmt.Errorf("proto: LeaseStatus: wiretype end group for non-group") |
| 14338 | } |
| 14339 | if fieldNum <= 0 { |
| 14340 | return fmt.Errorf("proto: LeaseStatus: illegal tag %d (wire type %d)", fieldNum, wire) |
| 14341 | } |
| 14342 | switch fieldNum { |
| 14343 | case 1: |
| 14344 | if wireType != 0 { |
| 14345 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 14346 | } |
| 14347 | m.ID = 0 |
| 14348 | for shift := uint(0); ; shift += 7 { |
| 14349 | if shift >= 64 { |
| 14350 | return ErrIntOverflowRpc |
| 14351 | } |
| 14352 | if iNdEx >= l { |
| 14353 | return io.ErrUnexpectedEOF |
| 14354 | } |
| 14355 | b := dAtA[iNdEx] |
| 14356 | iNdEx++ |
| 14357 | m.ID |= (int64(b) & 0x7F) << shift |
| 14358 | if b < 0x80 { |
| 14359 | break |
| 14360 | } |
| 14361 | } |
| 14362 | default: |
| 14363 | iNdEx = preIndex |
| 14364 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 14365 | if err != nil { |
| 14366 | return err |
| 14367 | } |
| 14368 | if skippy < 0 { |
| 14369 | return ErrInvalidLengthRpc |
| 14370 | } |
| 14371 | if (iNdEx + skippy) > l { |
| 14372 | return io.ErrUnexpectedEOF |
| 14373 | } |
| 14374 | iNdEx += skippy |
| 14375 | } |
| 14376 | } |
| 14377 | |
| 14378 | if iNdEx > l { |
| 14379 | return io.ErrUnexpectedEOF |
| 14380 | } |
| 14381 | return nil |
| 14382 | } |
| 14383 | func (m *LeaseLeasesResponse) Unmarshal(dAtA []byte) error { |
| 14384 | l := len(dAtA) |
| 14385 | iNdEx := 0 |
| 14386 | for iNdEx < l { |
| 14387 | preIndex := iNdEx |
| 14388 | var wire uint64 |
| 14389 | for shift := uint(0); ; shift += 7 { |
| 14390 | if shift >= 64 { |
| 14391 | return ErrIntOverflowRpc |
| 14392 | } |
| 14393 | if iNdEx >= l { |
| 14394 | return io.ErrUnexpectedEOF |
| 14395 | } |
| 14396 | b := dAtA[iNdEx] |
| 14397 | iNdEx++ |
| 14398 | wire |= (uint64(b) & 0x7F) << shift |
| 14399 | if b < 0x80 { |
| 14400 | break |
| 14401 | } |
| 14402 | } |
| 14403 | fieldNum := int32(wire >> 3) |
| 14404 | wireType := int(wire & 0x7) |
| 14405 | if wireType == 4 { |
| 14406 | return fmt.Errorf("proto: LeaseLeasesResponse: wiretype end group for non-group") |
| 14407 | } |
| 14408 | if fieldNum <= 0 { |
| 14409 | return fmt.Errorf("proto: LeaseLeasesResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 14410 | } |
| 14411 | switch fieldNum { |
| 14412 | case 1: |
| 14413 | if wireType != 2 { |
| 14414 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 14415 | } |
| 14416 | var msglen int |
| 14417 | for shift := uint(0); ; shift += 7 { |
| 14418 | if shift >= 64 { |
| 14419 | return ErrIntOverflowRpc |
| 14420 | } |
| 14421 | if iNdEx >= l { |
| 14422 | return io.ErrUnexpectedEOF |
| 14423 | } |
| 14424 | b := dAtA[iNdEx] |
| 14425 | iNdEx++ |
| 14426 | msglen |= (int(b) & 0x7F) << shift |
| 14427 | if b < 0x80 { |
| 14428 | break |
| 14429 | } |
| 14430 | } |
| 14431 | if msglen < 0 { |
| 14432 | return ErrInvalidLengthRpc |
| 14433 | } |
| 14434 | postIndex := iNdEx + msglen |
| 14435 | if postIndex > l { |
| 14436 | return io.ErrUnexpectedEOF |
| 14437 | } |
| 14438 | if m.Header == nil { |
| 14439 | m.Header = &ResponseHeader{} |
| 14440 | } |
| 14441 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 14442 | return err |
| 14443 | } |
| 14444 | iNdEx = postIndex |
| 14445 | case 2: |
| 14446 | if wireType != 2 { |
| 14447 | return fmt.Errorf("proto: wrong wireType = %d for field Leases", wireType) |
| 14448 | } |
| 14449 | var msglen int |
| 14450 | for shift := uint(0); ; shift += 7 { |
| 14451 | if shift >= 64 { |
| 14452 | return ErrIntOverflowRpc |
| 14453 | } |
| 14454 | if iNdEx >= l { |
| 14455 | return io.ErrUnexpectedEOF |
| 14456 | } |
| 14457 | b := dAtA[iNdEx] |
| 14458 | iNdEx++ |
| 14459 | msglen |= (int(b) & 0x7F) << shift |
| 14460 | if b < 0x80 { |
| 14461 | break |
| 14462 | } |
| 14463 | } |
| 14464 | if msglen < 0 { |
| 14465 | return ErrInvalidLengthRpc |
| 14466 | } |
| 14467 | postIndex := iNdEx + msglen |
| 14468 | if postIndex > l { |
| 14469 | return io.ErrUnexpectedEOF |
| 14470 | } |
| 14471 | m.Leases = append(m.Leases, &LeaseStatus{}) |
| 14472 | if err := m.Leases[len(m.Leases)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 14473 | return err |
| 14474 | } |
| 14475 | iNdEx = postIndex |
| 14476 | default: |
| 14477 | iNdEx = preIndex |
| 14478 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 14479 | if err != nil { |
| 14480 | return err |
| 14481 | } |
| 14482 | if skippy < 0 { |
| 14483 | return ErrInvalidLengthRpc |
| 14484 | } |
| 14485 | if (iNdEx + skippy) > l { |
| 14486 | return io.ErrUnexpectedEOF |
| 14487 | } |
| 14488 | iNdEx += skippy |
| 14489 | } |
| 14490 | } |
| 14491 | |
| 14492 | if iNdEx > l { |
| 14493 | return io.ErrUnexpectedEOF |
| 14494 | } |
| 14495 | return nil |
| 14496 | } |
| 14497 | func (m *Member) Unmarshal(dAtA []byte) error { |
| 14498 | l := len(dAtA) |
| 14499 | iNdEx := 0 |
| 14500 | for iNdEx < l { |
| 14501 | preIndex := iNdEx |
| 14502 | var wire uint64 |
| 14503 | for shift := uint(0); ; shift += 7 { |
| 14504 | if shift >= 64 { |
| 14505 | return ErrIntOverflowRpc |
| 14506 | } |
| 14507 | if iNdEx >= l { |
| 14508 | return io.ErrUnexpectedEOF |
| 14509 | } |
| 14510 | b := dAtA[iNdEx] |
| 14511 | iNdEx++ |
| 14512 | wire |= (uint64(b) & 0x7F) << shift |
| 14513 | if b < 0x80 { |
| 14514 | break |
| 14515 | } |
| 14516 | } |
| 14517 | fieldNum := int32(wire >> 3) |
| 14518 | wireType := int(wire & 0x7) |
| 14519 | if wireType == 4 { |
| 14520 | return fmt.Errorf("proto: Member: wiretype end group for non-group") |
| 14521 | } |
| 14522 | if fieldNum <= 0 { |
| 14523 | return fmt.Errorf("proto: Member: illegal tag %d (wire type %d)", fieldNum, wire) |
| 14524 | } |
| 14525 | switch fieldNum { |
| 14526 | case 1: |
| 14527 | if wireType != 0 { |
| 14528 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 14529 | } |
| 14530 | m.ID = 0 |
| 14531 | for shift := uint(0); ; shift += 7 { |
| 14532 | if shift >= 64 { |
| 14533 | return ErrIntOverflowRpc |
| 14534 | } |
| 14535 | if iNdEx >= l { |
| 14536 | return io.ErrUnexpectedEOF |
| 14537 | } |
| 14538 | b := dAtA[iNdEx] |
| 14539 | iNdEx++ |
| 14540 | m.ID |= (uint64(b) & 0x7F) << shift |
| 14541 | if b < 0x80 { |
| 14542 | break |
| 14543 | } |
| 14544 | } |
| 14545 | case 2: |
| 14546 | if wireType != 2 { |
| 14547 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 14548 | } |
| 14549 | var stringLen uint64 |
| 14550 | for shift := uint(0); ; shift += 7 { |
| 14551 | if shift >= 64 { |
| 14552 | return ErrIntOverflowRpc |
| 14553 | } |
| 14554 | if iNdEx >= l { |
| 14555 | return io.ErrUnexpectedEOF |
| 14556 | } |
| 14557 | b := dAtA[iNdEx] |
| 14558 | iNdEx++ |
| 14559 | stringLen |= (uint64(b) & 0x7F) << shift |
| 14560 | if b < 0x80 { |
| 14561 | break |
| 14562 | } |
| 14563 | } |
| 14564 | intStringLen := int(stringLen) |
| 14565 | if intStringLen < 0 { |
| 14566 | return ErrInvalidLengthRpc |
| 14567 | } |
| 14568 | postIndex := iNdEx + intStringLen |
| 14569 | if postIndex > l { |
| 14570 | return io.ErrUnexpectedEOF |
| 14571 | } |
| 14572 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 14573 | iNdEx = postIndex |
| 14574 | case 3: |
| 14575 | if wireType != 2 { |
| 14576 | return fmt.Errorf("proto: wrong wireType = %d for field PeerURLs", wireType) |
| 14577 | } |
| 14578 | var stringLen uint64 |
| 14579 | for shift := uint(0); ; shift += 7 { |
| 14580 | if shift >= 64 { |
| 14581 | return ErrIntOverflowRpc |
| 14582 | } |
| 14583 | if iNdEx >= l { |
| 14584 | return io.ErrUnexpectedEOF |
| 14585 | } |
| 14586 | b := dAtA[iNdEx] |
| 14587 | iNdEx++ |
| 14588 | stringLen |= (uint64(b) & 0x7F) << shift |
| 14589 | if b < 0x80 { |
| 14590 | break |
| 14591 | } |
| 14592 | } |
| 14593 | intStringLen := int(stringLen) |
| 14594 | if intStringLen < 0 { |
| 14595 | return ErrInvalidLengthRpc |
| 14596 | } |
| 14597 | postIndex := iNdEx + intStringLen |
| 14598 | if postIndex > l { |
| 14599 | return io.ErrUnexpectedEOF |
| 14600 | } |
| 14601 | m.PeerURLs = append(m.PeerURLs, string(dAtA[iNdEx:postIndex])) |
| 14602 | iNdEx = postIndex |
| 14603 | case 4: |
| 14604 | if wireType != 2 { |
| 14605 | return fmt.Errorf("proto: wrong wireType = %d for field ClientURLs", wireType) |
| 14606 | } |
| 14607 | var stringLen uint64 |
| 14608 | for shift := uint(0); ; shift += 7 { |
| 14609 | if shift >= 64 { |
| 14610 | return ErrIntOverflowRpc |
| 14611 | } |
| 14612 | if iNdEx >= l { |
| 14613 | return io.ErrUnexpectedEOF |
| 14614 | } |
| 14615 | b := dAtA[iNdEx] |
| 14616 | iNdEx++ |
| 14617 | stringLen |= (uint64(b) & 0x7F) << shift |
| 14618 | if b < 0x80 { |
| 14619 | break |
| 14620 | } |
| 14621 | } |
| 14622 | intStringLen := int(stringLen) |
| 14623 | if intStringLen < 0 { |
| 14624 | return ErrInvalidLengthRpc |
| 14625 | } |
| 14626 | postIndex := iNdEx + intStringLen |
| 14627 | if postIndex > l { |
| 14628 | return io.ErrUnexpectedEOF |
| 14629 | } |
| 14630 | m.ClientURLs = append(m.ClientURLs, string(dAtA[iNdEx:postIndex])) |
| 14631 | iNdEx = postIndex |
| 14632 | default: |
| 14633 | iNdEx = preIndex |
| 14634 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 14635 | if err != nil { |
| 14636 | return err |
| 14637 | } |
| 14638 | if skippy < 0 { |
| 14639 | return ErrInvalidLengthRpc |
| 14640 | } |
| 14641 | if (iNdEx + skippy) > l { |
| 14642 | return io.ErrUnexpectedEOF |
| 14643 | } |
| 14644 | iNdEx += skippy |
| 14645 | } |
| 14646 | } |
| 14647 | |
| 14648 | if iNdEx > l { |
| 14649 | return io.ErrUnexpectedEOF |
| 14650 | } |
| 14651 | return nil |
| 14652 | } |
| 14653 | func (m *MemberAddRequest) Unmarshal(dAtA []byte) error { |
| 14654 | l := len(dAtA) |
| 14655 | iNdEx := 0 |
| 14656 | for iNdEx < l { |
| 14657 | preIndex := iNdEx |
| 14658 | var wire uint64 |
| 14659 | for shift := uint(0); ; shift += 7 { |
| 14660 | if shift >= 64 { |
| 14661 | return ErrIntOverflowRpc |
| 14662 | } |
| 14663 | if iNdEx >= l { |
| 14664 | return io.ErrUnexpectedEOF |
| 14665 | } |
| 14666 | b := dAtA[iNdEx] |
| 14667 | iNdEx++ |
| 14668 | wire |= (uint64(b) & 0x7F) << shift |
| 14669 | if b < 0x80 { |
| 14670 | break |
| 14671 | } |
| 14672 | } |
| 14673 | fieldNum := int32(wire >> 3) |
| 14674 | wireType := int(wire & 0x7) |
| 14675 | if wireType == 4 { |
| 14676 | return fmt.Errorf("proto: MemberAddRequest: wiretype end group for non-group") |
| 14677 | } |
| 14678 | if fieldNum <= 0 { |
| 14679 | return fmt.Errorf("proto: MemberAddRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 14680 | } |
| 14681 | switch fieldNum { |
| 14682 | case 1: |
| 14683 | if wireType != 2 { |
| 14684 | return fmt.Errorf("proto: wrong wireType = %d for field PeerURLs", wireType) |
| 14685 | } |
| 14686 | var stringLen uint64 |
| 14687 | for shift := uint(0); ; shift += 7 { |
| 14688 | if shift >= 64 { |
| 14689 | return ErrIntOverflowRpc |
| 14690 | } |
| 14691 | if iNdEx >= l { |
| 14692 | return io.ErrUnexpectedEOF |
| 14693 | } |
| 14694 | b := dAtA[iNdEx] |
| 14695 | iNdEx++ |
| 14696 | stringLen |= (uint64(b) & 0x7F) << shift |
| 14697 | if b < 0x80 { |
| 14698 | break |
| 14699 | } |
| 14700 | } |
| 14701 | intStringLen := int(stringLen) |
| 14702 | if intStringLen < 0 { |
| 14703 | return ErrInvalidLengthRpc |
| 14704 | } |
| 14705 | postIndex := iNdEx + intStringLen |
| 14706 | if postIndex > l { |
| 14707 | return io.ErrUnexpectedEOF |
| 14708 | } |
| 14709 | m.PeerURLs = append(m.PeerURLs, string(dAtA[iNdEx:postIndex])) |
| 14710 | iNdEx = postIndex |
| 14711 | default: |
| 14712 | iNdEx = preIndex |
| 14713 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 14714 | if err != nil { |
| 14715 | return err |
| 14716 | } |
| 14717 | if skippy < 0 { |
| 14718 | return ErrInvalidLengthRpc |
| 14719 | } |
| 14720 | if (iNdEx + skippy) > l { |
| 14721 | return io.ErrUnexpectedEOF |
| 14722 | } |
| 14723 | iNdEx += skippy |
| 14724 | } |
| 14725 | } |
| 14726 | |
| 14727 | if iNdEx > l { |
| 14728 | return io.ErrUnexpectedEOF |
| 14729 | } |
| 14730 | return nil |
| 14731 | } |
| 14732 | func (m *MemberAddResponse) Unmarshal(dAtA []byte) error { |
| 14733 | l := len(dAtA) |
| 14734 | iNdEx := 0 |
| 14735 | for iNdEx < l { |
| 14736 | preIndex := iNdEx |
| 14737 | var wire uint64 |
| 14738 | for shift := uint(0); ; shift += 7 { |
| 14739 | if shift >= 64 { |
| 14740 | return ErrIntOverflowRpc |
| 14741 | } |
| 14742 | if iNdEx >= l { |
| 14743 | return io.ErrUnexpectedEOF |
| 14744 | } |
| 14745 | b := dAtA[iNdEx] |
| 14746 | iNdEx++ |
| 14747 | wire |= (uint64(b) & 0x7F) << shift |
| 14748 | if b < 0x80 { |
| 14749 | break |
| 14750 | } |
| 14751 | } |
| 14752 | fieldNum := int32(wire >> 3) |
| 14753 | wireType := int(wire & 0x7) |
| 14754 | if wireType == 4 { |
| 14755 | return fmt.Errorf("proto: MemberAddResponse: wiretype end group for non-group") |
| 14756 | } |
| 14757 | if fieldNum <= 0 { |
| 14758 | return fmt.Errorf("proto: MemberAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 14759 | } |
| 14760 | switch fieldNum { |
| 14761 | case 1: |
| 14762 | if wireType != 2 { |
| 14763 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 14764 | } |
| 14765 | var msglen int |
| 14766 | for shift := uint(0); ; shift += 7 { |
| 14767 | if shift >= 64 { |
| 14768 | return ErrIntOverflowRpc |
| 14769 | } |
| 14770 | if iNdEx >= l { |
| 14771 | return io.ErrUnexpectedEOF |
| 14772 | } |
| 14773 | b := dAtA[iNdEx] |
| 14774 | iNdEx++ |
| 14775 | msglen |= (int(b) & 0x7F) << shift |
| 14776 | if b < 0x80 { |
| 14777 | break |
| 14778 | } |
| 14779 | } |
| 14780 | if msglen < 0 { |
| 14781 | return ErrInvalidLengthRpc |
| 14782 | } |
| 14783 | postIndex := iNdEx + msglen |
| 14784 | if postIndex > l { |
| 14785 | return io.ErrUnexpectedEOF |
| 14786 | } |
| 14787 | if m.Header == nil { |
| 14788 | m.Header = &ResponseHeader{} |
| 14789 | } |
| 14790 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 14791 | return err |
| 14792 | } |
| 14793 | iNdEx = postIndex |
| 14794 | case 2: |
| 14795 | if wireType != 2 { |
| 14796 | return fmt.Errorf("proto: wrong wireType = %d for field Member", wireType) |
| 14797 | } |
| 14798 | var msglen int |
| 14799 | for shift := uint(0); ; shift += 7 { |
| 14800 | if shift >= 64 { |
| 14801 | return ErrIntOverflowRpc |
| 14802 | } |
| 14803 | if iNdEx >= l { |
| 14804 | return io.ErrUnexpectedEOF |
| 14805 | } |
| 14806 | b := dAtA[iNdEx] |
| 14807 | iNdEx++ |
| 14808 | msglen |= (int(b) & 0x7F) << shift |
| 14809 | if b < 0x80 { |
| 14810 | break |
| 14811 | } |
| 14812 | } |
| 14813 | if msglen < 0 { |
| 14814 | return ErrInvalidLengthRpc |
| 14815 | } |
| 14816 | postIndex := iNdEx + msglen |
| 14817 | if postIndex > l { |
| 14818 | return io.ErrUnexpectedEOF |
| 14819 | } |
| 14820 | if m.Member == nil { |
| 14821 | m.Member = &Member{} |
| 14822 | } |
| 14823 | if err := m.Member.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 14824 | return err |
| 14825 | } |
| 14826 | iNdEx = postIndex |
| 14827 | case 3: |
| 14828 | if wireType != 2 { |
| 14829 | return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) |
| 14830 | } |
| 14831 | var msglen int |
| 14832 | for shift := uint(0); ; shift += 7 { |
| 14833 | if shift >= 64 { |
| 14834 | return ErrIntOverflowRpc |
| 14835 | } |
| 14836 | if iNdEx >= l { |
| 14837 | return io.ErrUnexpectedEOF |
| 14838 | } |
| 14839 | b := dAtA[iNdEx] |
| 14840 | iNdEx++ |
| 14841 | msglen |= (int(b) & 0x7F) << shift |
| 14842 | if b < 0x80 { |
| 14843 | break |
| 14844 | } |
| 14845 | } |
| 14846 | if msglen < 0 { |
| 14847 | return ErrInvalidLengthRpc |
| 14848 | } |
| 14849 | postIndex := iNdEx + msglen |
| 14850 | if postIndex > l { |
| 14851 | return io.ErrUnexpectedEOF |
| 14852 | } |
| 14853 | m.Members = append(m.Members, &Member{}) |
| 14854 | if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 14855 | return err |
| 14856 | } |
| 14857 | iNdEx = postIndex |
| 14858 | default: |
| 14859 | iNdEx = preIndex |
| 14860 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 14861 | if err != nil { |
| 14862 | return err |
| 14863 | } |
| 14864 | if skippy < 0 { |
| 14865 | return ErrInvalidLengthRpc |
| 14866 | } |
| 14867 | if (iNdEx + skippy) > l { |
| 14868 | return io.ErrUnexpectedEOF |
| 14869 | } |
| 14870 | iNdEx += skippy |
| 14871 | } |
| 14872 | } |
| 14873 | |
| 14874 | if iNdEx > l { |
| 14875 | return io.ErrUnexpectedEOF |
| 14876 | } |
| 14877 | return nil |
| 14878 | } |
| 14879 | func (m *MemberRemoveRequest) Unmarshal(dAtA []byte) error { |
| 14880 | l := len(dAtA) |
| 14881 | iNdEx := 0 |
| 14882 | for iNdEx < l { |
| 14883 | preIndex := iNdEx |
| 14884 | var wire uint64 |
| 14885 | for shift := uint(0); ; shift += 7 { |
| 14886 | if shift >= 64 { |
| 14887 | return ErrIntOverflowRpc |
| 14888 | } |
| 14889 | if iNdEx >= l { |
| 14890 | return io.ErrUnexpectedEOF |
| 14891 | } |
| 14892 | b := dAtA[iNdEx] |
| 14893 | iNdEx++ |
| 14894 | wire |= (uint64(b) & 0x7F) << shift |
| 14895 | if b < 0x80 { |
| 14896 | break |
| 14897 | } |
| 14898 | } |
| 14899 | fieldNum := int32(wire >> 3) |
| 14900 | wireType := int(wire & 0x7) |
| 14901 | if wireType == 4 { |
| 14902 | return fmt.Errorf("proto: MemberRemoveRequest: wiretype end group for non-group") |
| 14903 | } |
| 14904 | if fieldNum <= 0 { |
| 14905 | return fmt.Errorf("proto: MemberRemoveRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 14906 | } |
| 14907 | switch fieldNum { |
| 14908 | case 1: |
| 14909 | if wireType != 0 { |
| 14910 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 14911 | } |
| 14912 | m.ID = 0 |
| 14913 | for shift := uint(0); ; shift += 7 { |
| 14914 | if shift >= 64 { |
| 14915 | return ErrIntOverflowRpc |
| 14916 | } |
| 14917 | if iNdEx >= l { |
| 14918 | return io.ErrUnexpectedEOF |
| 14919 | } |
| 14920 | b := dAtA[iNdEx] |
| 14921 | iNdEx++ |
| 14922 | m.ID |= (uint64(b) & 0x7F) << shift |
| 14923 | if b < 0x80 { |
| 14924 | break |
| 14925 | } |
| 14926 | } |
| 14927 | default: |
| 14928 | iNdEx = preIndex |
| 14929 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 14930 | if err != nil { |
| 14931 | return err |
| 14932 | } |
| 14933 | if skippy < 0 { |
| 14934 | return ErrInvalidLengthRpc |
| 14935 | } |
| 14936 | if (iNdEx + skippy) > l { |
| 14937 | return io.ErrUnexpectedEOF |
| 14938 | } |
| 14939 | iNdEx += skippy |
| 14940 | } |
| 14941 | } |
| 14942 | |
| 14943 | if iNdEx > l { |
| 14944 | return io.ErrUnexpectedEOF |
| 14945 | } |
| 14946 | return nil |
| 14947 | } |
| 14948 | func (m *MemberRemoveResponse) Unmarshal(dAtA []byte) error { |
| 14949 | l := len(dAtA) |
| 14950 | iNdEx := 0 |
| 14951 | for iNdEx < l { |
| 14952 | preIndex := iNdEx |
| 14953 | var wire uint64 |
| 14954 | for shift := uint(0); ; shift += 7 { |
| 14955 | if shift >= 64 { |
| 14956 | return ErrIntOverflowRpc |
| 14957 | } |
| 14958 | if iNdEx >= l { |
| 14959 | return io.ErrUnexpectedEOF |
| 14960 | } |
| 14961 | b := dAtA[iNdEx] |
| 14962 | iNdEx++ |
| 14963 | wire |= (uint64(b) & 0x7F) << shift |
| 14964 | if b < 0x80 { |
| 14965 | break |
| 14966 | } |
| 14967 | } |
| 14968 | fieldNum := int32(wire >> 3) |
| 14969 | wireType := int(wire & 0x7) |
| 14970 | if wireType == 4 { |
| 14971 | return fmt.Errorf("proto: MemberRemoveResponse: wiretype end group for non-group") |
| 14972 | } |
| 14973 | if fieldNum <= 0 { |
| 14974 | return fmt.Errorf("proto: MemberRemoveResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 14975 | } |
| 14976 | switch fieldNum { |
| 14977 | case 1: |
| 14978 | if wireType != 2 { |
| 14979 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 14980 | } |
| 14981 | var msglen int |
| 14982 | for shift := uint(0); ; shift += 7 { |
| 14983 | if shift >= 64 { |
| 14984 | return ErrIntOverflowRpc |
| 14985 | } |
| 14986 | if iNdEx >= l { |
| 14987 | return io.ErrUnexpectedEOF |
| 14988 | } |
| 14989 | b := dAtA[iNdEx] |
| 14990 | iNdEx++ |
| 14991 | msglen |= (int(b) & 0x7F) << shift |
| 14992 | if b < 0x80 { |
| 14993 | break |
| 14994 | } |
| 14995 | } |
| 14996 | if msglen < 0 { |
| 14997 | return ErrInvalidLengthRpc |
| 14998 | } |
| 14999 | postIndex := iNdEx + msglen |
| 15000 | if postIndex > l { |
| 15001 | return io.ErrUnexpectedEOF |
| 15002 | } |
| 15003 | if m.Header == nil { |
| 15004 | m.Header = &ResponseHeader{} |
| 15005 | } |
| 15006 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 15007 | return err |
| 15008 | } |
| 15009 | iNdEx = postIndex |
| 15010 | case 2: |
| 15011 | if wireType != 2 { |
| 15012 | return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) |
| 15013 | } |
| 15014 | var msglen int |
| 15015 | for shift := uint(0); ; shift += 7 { |
| 15016 | if shift >= 64 { |
| 15017 | return ErrIntOverflowRpc |
| 15018 | } |
| 15019 | if iNdEx >= l { |
| 15020 | return io.ErrUnexpectedEOF |
| 15021 | } |
| 15022 | b := dAtA[iNdEx] |
| 15023 | iNdEx++ |
| 15024 | msglen |= (int(b) & 0x7F) << shift |
| 15025 | if b < 0x80 { |
| 15026 | break |
| 15027 | } |
| 15028 | } |
| 15029 | if msglen < 0 { |
| 15030 | return ErrInvalidLengthRpc |
| 15031 | } |
| 15032 | postIndex := iNdEx + msglen |
| 15033 | if postIndex > l { |
| 15034 | return io.ErrUnexpectedEOF |
| 15035 | } |
| 15036 | m.Members = append(m.Members, &Member{}) |
| 15037 | if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 15038 | return err |
| 15039 | } |
| 15040 | iNdEx = postIndex |
| 15041 | default: |
| 15042 | iNdEx = preIndex |
| 15043 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15044 | if err != nil { |
| 15045 | return err |
| 15046 | } |
| 15047 | if skippy < 0 { |
| 15048 | return ErrInvalidLengthRpc |
| 15049 | } |
| 15050 | if (iNdEx + skippy) > l { |
| 15051 | return io.ErrUnexpectedEOF |
| 15052 | } |
| 15053 | iNdEx += skippy |
| 15054 | } |
| 15055 | } |
| 15056 | |
| 15057 | if iNdEx > l { |
| 15058 | return io.ErrUnexpectedEOF |
| 15059 | } |
| 15060 | return nil |
| 15061 | } |
| 15062 | func (m *MemberUpdateRequest) Unmarshal(dAtA []byte) error { |
| 15063 | l := len(dAtA) |
| 15064 | iNdEx := 0 |
| 15065 | for iNdEx < l { |
| 15066 | preIndex := iNdEx |
| 15067 | var wire uint64 |
| 15068 | for shift := uint(0); ; shift += 7 { |
| 15069 | if shift >= 64 { |
| 15070 | return ErrIntOverflowRpc |
| 15071 | } |
| 15072 | if iNdEx >= l { |
| 15073 | return io.ErrUnexpectedEOF |
| 15074 | } |
| 15075 | b := dAtA[iNdEx] |
| 15076 | iNdEx++ |
| 15077 | wire |= (uint64(b) & 0x7F) << shift |
| 15078 | if b < 0x80 { |
| 15079 | break |
| 15080 | } |
| 15081 | } |
| 15082 | fieldNum := int32(wire >> 3) |
| 15083 | wireType := int(wire & 0x7) |
| 15084 | if wireType == 4 { |
| 15085 | return fmt.Errorf("proto: MemberUpdateRequest: wiretype end group for non-group") |
| 15086 | } |
| 15087 | if fieldNum <= 0 { |
| 15088 | return fmt.Errorf("proto: MemberUpdateRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15089 | } |
| 15090 | switch fieldNum { |
| 15091 | case 1: |
| 15092 | if wireType != 0 { |
| 15093 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 15094 | } |
| 15095 | m.ID = 0 |
| 15096 | for shift := uint(0); ; shift += 7 { |
| 15097 | if shift >= 64 { |
| 15098 | return ErrIntOverflowRpc |
| 15099 | } |
| 15100 | if iNdEx >= l { |
| 15101 | return io.ErrUnexpectedEOF |
| 15102 | } |
| 15103 | b := dAtA[iNdEx] |
| 15104 | iNdEx++ |
| 15105 | m.ID |= (uint64(b) & 0x7F) << shift |
| 15106 | if b < 0x80 { |
| 15107 | break |
| 15108 | } |
| 15109 | } |
| 15110 | case 2: |
| 15111 | if wireType != 2 { |
| 15112 | return fmt.Errorf("proto: wrong wireType = %d for field PeerURLs", wireType) |
| 15113 | } |
| 15114 | var stringLen uint64 |
| 15115 | for shift := uint(0); ; shift += 7 { |
| 15116 | if shift >= 64 { |
| 15117 | return ErrIntOverflowRpc |
| 15118 | } |
| 15119 | if iNdEx >= l { |
| 15120 | return io.ErrUnexpectedEOF |
| 15121 | } |
| 15122 | b := dAtA[iNdEx] |
| 15123 | iNdEx++ |
| 15124 | stringLen |= (uint64(b) & 0x7F) << shift |
| 15125 | if b < 0x80 { |
| 15126 | break |
| 15127 | } |
| 15128 | } |
| 15129 | intStringLen := int(stringLen) |
| 15130 | if intStringLen < 0 { |
| 15131 | return ErrInvalidLengthRpc |
| 15132 | } |
| 15133 | postIndex := iNdEx + intStringLen |
| 15134 | if postIndex > l { |
| 15135 | return io.ErrUnexpectedEOF |
| 15136 | } |
| 15137 | m.PeerURLs = append(m.PeerURLs, string(dAtA[iNdEx:postIndex])) |
| 15138 | iNdEx = postIndex |
| 15139 | default: |
| 15140 | iNdEx = preIndex |
| 15141 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15142 | if err != nil { |
| 15143 | return err |
| 15144 | } |
| 15145 | if skippy < 0 { |
| 15146 | return ErrInvalidLengthRpc |
| 15147 | } |
| 15148 | if (iNdEx + skippy) > l { |
| 15149 | return io.ErrUnexpectedEOF |
| 15150 | } |
| 15151 | iNdEx += skippy |
| 15152 | } |
| 15153 | } |
| 15154 | |
| 15155 | if iNdEx > l { |
| 15156 | return io.ErrUnexpectedEOF |
| 15157 | } |
| 15158 | return nil |
| 15159 | } |
| 15160 | func (m *MemberUpdateResponse) Unmarshal(dAtA []byte) error { |
| 15161 | l := len(dAtA) |
| 15162 | iNdEx := 0 |
| 15163 | for iNdEx < l { |
| 15164 | preIndex := iNdEx |
| 15165 | var wire uint64 |
| 15166 | for shift := uint(0); ; shift += 7 { |
| 15167 | if shift >= 64 { |
| 15168 | return ErrIntOverflowRpc |
| 15169 | } |
| 15170 | if iNdEx >= l { |
| 15171 | return io.ErrUnexpectedEOF |
| 15172 | } |
| 15173 | b := dAtA[iNdEx] |
| 15174 | iNdEx++ |
| 15175 | wire |= (uint64(b) & 0x7F) << shift |
| 15176 | if b < 0x80 { |
| 15177 | break |
| 15178 | } |
| 15179 | } |
| 15180 | fieldNum := int32(wire >> 3) |
| 15181 | wireType := int(wire & 0x7) |
| 15182 | if wireType == 4 { |
| 15183 | return fmt.Errorf("proto: MemberUpdateResponse: wiretype end group for non-group") |
| 15184 | } |
| 15185 | if fieldNum <= 0 { |
| 15186 | return fmt.Errorf("proto: MemberUpdateResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15187 | } |
| 15188 | switch fieldNum { |
| 15189 | case 1: |
| 15190 | if wireType != 2 { |
| 15191 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 15192 | } |
| 15193 | var msglen int |
| 15194 | for shift := uint(0); ; shift += 7 { |
| 15195 | if shift >= 64 { |
| 15196 | return ErrIntOverflowRpc |
| 15197 | } |
| 15198 | if iNdEx >= l { |
| 15199 | return io.ErrUnexpectedEOF |
| 15200 | } |
| 15201 | b := dAtA[iNdEx] |
| 15202 | iNdEx++ |
| 15203 | msglen |= (int(b) & 0x7F) << shift |
| 15204 | if b < 0x80 { |
| 15205 | break |
| 15206 | } |
| 15207 | } |
| 15208 | if msglen < 0 { |
| 15209 | return ErrInvalidLengthRpc |
| 15210 | } |
| 15211 | postIndex := iNdEx + msglen |
| 15212 | if postIndex > l { |
| 15213 | return io.ErrUnexpectedEOF |
| 15214 | } |
| 15215 | if m.Header == nil { |
| 15216 | m.Header = &ResponseHeader{} |
| 15217 | } |
| 15218 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 15219 | return err |
| 15220 | } |
| 15221 | iNdEx = postIndex |
| 15222 | case 2: |
| 15223 | if wireType != 2 { |
| 15224 | return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) |
| 15225 | } |
| 15226 | var msglen int |
| 15227 | for shift := uint(0); ; shift += 7 { |
| 15228 | if shift >= 64 { |
| 15229 | return ErrIntOverflowRpc |
| 15230 | } |
| 15231 | if iNdEx >= l { |
| 15232 | return io.ErrUnexpectedEOF |
| 15233 | } |
| 15234 | b := dAtA[iNdEx] |
| 15235 | iNdEx++ |
| 15236 | msglen |= (int(b) & 0x7F) << shift |
| 15237 | if b < 0x80 { |
| 15238 | break |
| 15239 | } |
| 15240 | } |
| 15241 | if msglen < 0 { |
| 15242 | return ErrInvalidLengthRpc |
| 15243 | } |
| 15244 | postIndex := iNdEx + msglen |
| 15245 | if postIndex > l { |
| 15246 | return io.ErrUnexpectedEOF |
| 15247 | } |
| 15248 | m.Members = append(m.Members, &Member{}) |
| 15249 | if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 15250 | return err |
| 15251 | } |
| 15252 | iNdEx = postIndex |
| 15253 | default: |
| 15254 | iNdEx = preIndex |
| 15255 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15256 | if err != nil { |
| 15257 | return err |
| 15258 | } |
| 15259 | if skippy < 0 { |
| 15260 | return ErrInvalidLengthRpc |
| 15261 | } |
| 15262 | if (iNdEx + skippy) > l { |
| 15263 | return io.ErrUnexpectedEOF |
| 15264 | } |
| 15265 | iNdEx += skippy |
| 15266 | } |
| 15267 | } |
| 15268 | |
| 15269 | if iNdEx > l { |
| 15270 | return io.ErrUnexpectedEOF |
| 15271 | } |
| 15272 | return nil |
| 15273 | } |
| 15274 | func (m *MemberListRequest) Unmarshal(dAtA []byte) error { |
| 15275 | l := len(dAtA) |
| 15276 | iNdEx := 0 |
| 15277 | for iNdEx < l { |
| 15278 | preIndex := iNdEx |
| 15279 | var wire uint64 |
| 15280 | for shift := uint(0); ; shift += 7 { |
| 15281 | if shift >= 64 { |
| 15282 | return ErrIntOverflowRpc |
| 15283 | } |
| 15284 | if iNdEx >= l { |
| 15285 | return io.ErrUnexpectedEOF |
| 15286 | } |
| 15287 | b := dAtA[iNdEx] |
| 15288 | iNdEx++ |
| 15289 | wire |= (uint64(b) & 0x7F) << shift |
| 15290 | if b < 0x80 { |
| 15291 | break |
| 15292 | } |
| 15293 | } |
| 15294 | fieldNum := int32(wire >> 3) |
| 15295 | wireType := int(wire & 0x7) |
| 15296 | if wireType == 4 { |
| 15297 | return fmt.Errorf("proto: MemberListRequest: wiretype end group for non-group") |
| 15298 | } |
| 15299 | if fieldNum <= 0 { |
| 15300 | return fmt.Errorf("proto: MemberListRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15301 | } |
| 15302 | switch fieldNum { |
| 15303 | default: |
| 15304 | iNdEx = preIndex |
| 15305 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15306 | if err != nil { |
| 15307 | return err |
| 15308 | } |
| 15309 | if skippy < 0 { |
| 15310 | return ErrInvalidLengthRpc |
| 15311 | } |
| 15312 | if (iNdEx + skippy) > l { |
| 15313 | return io.ErrUnexpectedEOF |
| 15314 | } |
| 15315 | iNdEx += skippy |
| 15316 | } |
| 15317 | } |
| 15318 | |
| 15319 | if iNdEx > l { |
| 15320 | return io.ErrUnexpectedEOF |
| 15321 | } |
| 15322 | return nil |
| 15323 | } |
| 15324 | func (m *MemberListResponse) Unmarshal(dAtA []byte) error { |
| 15325 | l := len(dAtA) |
| 15326 | iNdEx := 0 |
| 15327 | for iNdEx < l { |
| 15328 | preIndex := iNdEx |
| 15329 | var wire uint64 |
| 15330 | for shift := uint(0); ; shift += 7 { |
| 15331 | if shift >= 64 { |
| 15332 | return ErrIntOverflowRpc |
| 15333 | } |
| 15334 | if iNdEx >= l { |
| 15335 | return io.ErrUnexpectedEOF |
| 15336 | } |
| 15337 | b := dAtA[iNdEx] |
| 15338 | iNdEx++ |
| 15339 | wire |= (uint64(b) & 0x7F) << shift |
| 15340 | if b < 0x80 { |
| 15341 | break |
| 15342 | } |
| 15343 | } |
| 15344 | fieldNum := int32(wire >> 3) |
| 15345 | wireType := int(wire & 0x7) |
| 15346 | if wireType == 4 { |
| 15347 | return fmt.Errorf("proto: MemberListResponse: wiretype end group for non-group") |
| 15348 | } |
| 15349 | if fieldNum <= 0 { |
| 15350 | return fmt.Errorf("proto: MemberListResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15351 | } |
| 15352 | switch fieldNum { |
| 15353 | case 1: |
| 15354 | if wireType != 2 { |
| 15355 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 15356 | } |
| 15357 | var msglen int |
| 15358 | for shift := uint(0); ; shift += 7 { |
| 15359 | if shift >= 64 { |
| 15360 | return ErrIntOverflowRpc |
| 15361 | } |
| 15362 | if iNdEx >= l { |
| 15363 | return io.ErrUnexpectedEOF |
| 15364 | } |
| 15365 | b := dAtA[iNdEx] |
| 15366 | iNdEx++ |
| 15367 | msglen |= (int(b) & 0x7F) << shift |
| 15368 | if b < 0x80 { |
| 15369 | break |
| 15370 | } |
| 15371 | } |
| 15372 | if msglen < 0 { |
| 15373 | return ErrInvalidLengthRpc |
| 15374 | } |
| 15375 | postIndex := iNdEx + msglen |
| 15376 | if postIndex > l { |
| 15377 | return io.ErrUnexpectedEOF |
| 15378 | } |
| 15379 | if m.Header == nil { |
| 15380 | m.Header = &ResponseHeader{} |
| 15381 | } |
| 15382 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 15383 | return err |
| 15384 | } |
| 15385 | iNdEx = postIndex |
| 15386 | case 2: |
| 15387 | if wireType != 2 { |
| 15388 | return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) |
| 15389 | } |
| 15390 | var msglen int |
| 15391 | for shift := uint(0); ; shift += 7 { |
| 15392 | if shift >= 64 { |
| 15393 | return ErrIntOverflowRpc |
| 15394 | } |
| 15395 | if iNdEx >= l { |
| 15396 | return io.ErrUnexpectedEOF |
| 15397 | } |
| 15398 | b := dAtA[iNdEx] |
| 15399 | iNdEx++ |
| 15400 | msglen |= (int(b) & 0x7F) << shift |
| 15401 | if b < 0x80 { |
| 15402 | break |
| 15403 | } |
| 15404 | } |
| 15405 | if msglen < 0 { |
| 15406 | return ErrInvalidLengthRpc |
| 15407 | } |
| 15408 | postIndex := iNdEx + msglen |
| 15409 | if postIndex > l { |
| 15410 | return io.ErrUnexpectedEOF |
| 15411 | } |
| 15412 | m.Members = append(m.Members, &Member{}) |
| 15413 | if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 15414 | return err |
| 15415 | } |
| 15416 | iNdEx = postIndex |
| 15417 | default: |
| 15418 | iNdEx = preIndex |
| 15419 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15420 | if err != nil { |
| 15421 | return err |
| 15422 | } |
| 15423 | if skippy < 0 { |
| 15424 | return ErrInvalidLengthRpc |
| 15425 | } |
| 15426 | if (iNdEx + skippy) > l { |
| 15427 | return io.ErrUnexpectedEOF |
| 15428 | } |
| 15429 | iNdEx += skippy |
| 15430 | } |
| 15431 | } |
| 15432 | |
| 15433 | if iNdEx > l { |
| 15434 | return io.ErrUnexpectedEOF |
| 15435 | } |
| 15436 | return nil |
| 15437 | } |
| 15438 | func (m *DefragmentRequest) Unmarshal(dAtA []byte) error { |
| 15439 | l := len(dAtA) |
| 15440 | iNdEx := 0 |
| 15441 | for iNdEx < l { |
| 15442 | preIndex := iNdEx |
| 15443 | var wire uint64 |
| 15444 | for shift := uint(0); ; shift += 7 { |
| 15445 | if shift >= 64 { |
| 15446 | return ErrIntOverflowRpc |
| 15447 | } |
| 15448 | if iNdEx >= l { |
| 15449 | return io.ErrUnexpectedEOF |
| 15450 | } |
| 15451 | b := dAtA[iNdEx] |
| 15452 | iNdEx++ |
| 15453 | wire |= (uint64(b) & 0x7F) << shift |
| 15454 | if b < 0x80 { |
| 15455 | break |
| 15456 | } |
| 15457 | } |
| 15458 | fieldNum := int32(wire >> 3) |
| 15459 | wireType := int(wire & 0x7) |
| 15460 | if wireType == 4 { |
| 15461 | return fmt.Errorf("proto: DefragmentRequest: wiretype end group for non-group") |
| 15462 | } |
| 15463 | if fieldNum <= 0 { |
| 15464 | return fmt.Errorf("proto: DefragmentRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15465 | } |
| 15466 | switch fieldNum { |
| 15467 | default: |
| 15468 | iNdEx = preIndex |
| 15469 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15470 | if err != nil { |
| 15471 | return err |
| 15472 | } |
| 15473 | if skippy < 0 { |
| 15474 | return ErrInvalidLengthRpc |
| 15475 | } |
| 15476 | if (iNdEx + skippy) > l { |
| 15477 | return io.ErrUnexpectedEOF |
| 15478 | } |
| 15479 | iNdEx += skippy |
| 15480 | } |
| 15481 | } |
| 15482 | |
| 15483 | if iNdEx > l { |
| 15484 | return io.ErrUnexpectedEOF |
| 15485 | } |
| 15486 | return nil |
| 15487 | } |
| 15488 | func (m *DefragmentResponse) Unmarshal(dAtA []byte) error { |
| 15489 | l := len(dAtA) |
| 15490 | iNdEx := 0 |
| 15491 | for iNdEx < l { |
| 15492 | preIndex := iNdEx |
| 15493 | var wire uint64 |
| 15494 | for shift := uint(0); ; shift += 7 { |
| 15495 | if shift >= 64 { |
| 15496 | return ErrIntOverflowRpc |
| 15497 | } |
| 15498 | if iNdEx >= l { |
| 15499 | return io.ErrUnexpectedEOF |
| 15500 | } |
| 15501 | b := dAtA[iNdEx] |
| 15502 | iNdEx++ |
| 15503 | wire |= (uint64(b) & 0x7F) << shift |
| 15504 | if b < 0x80 { |
| 15505 | break |
| 15506 | } |
| 15507 | } |
| 15508 | fieldNum := int32(wire >> 3) |
| 15509 | wireType := int(wire & 0x7) |
| 15510 | if wireType == 4 { |
| 15511 | return fmt.Errorf("proto: DefragmentResponse: wiretype end group for non-group") |
| 15512 | } |
| 15513 | if fieldNum <= 0 { |
| 15514 | return fmt.Errorf("proto: DefragmentResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15515 | } |
| 15516 | switch fieldNum { |
| 15517 | case 1: |
| 15518 | if wireType != 2 { |
| 15519 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 15520 | } |
| 15521 | var msglen int |
| 15522 | for shift := uint(0); ; shift += 7 { |
| 15523 | if shift >= 64 { |
| 15524 | return ErrIntOverflowRpc |
| 15525 | } |
| 15526 | if iNdEx >= l { |
| 15527 | return io.ErrUnexpectedEOF |
| 15528 | } |
| 15529 | b := dAtA[iNdEx] |
| 15530 | iNdEx++ |
| 15531 | msglen |= (int(b) & 0x7F) << shift |
| 15532 | if b < 0x80 { |
| 15533 | break |
| 15534 | } |
| 15535 | } |
| 15536 | if msglen < 0 { |
| 15537 | return ErrInvalidLengthRpc |
| 15538 | } |
| 15539 | postIndex := iNdEx + msglen |
| 15540 | if postIndex > l { |
| 15541 | return io.ErrUnexpectedEOF |
| 15542 | } |
| 15543 | if m.Header == nil { |
| 15544 | m.Header = &ResponseHeader{} |
| 15545 | } |
| 15546 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 15547 | return err |
| 15548 | } |
| 15549 | iNdEx = postIndex |
| 15550 | default: |
| 15551 | iNdEx = preIndex |
| 15552 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15553 | if err != nil { |
| 15554 | return err |
| 15555 | } |
| 15556 | if skippy < 0 { |
| 15557 | return ErrInvalidLengthRpc |
| 15558 | } |
| 15559 | if (iNdEx + skippy) > l { |
| 15560 | return io.ErrUnexpectedEOF |
| 15561 | } |
| 15562 | iNdEx += skippy |
| 15563 | } |
| 15564 | } |
| 15565 | |
| 15566 | if iNdEx > l { |
| 15567 | return io.ErrUnexpectedEOF |
| 15568 | } |
| 15569 | return nil |
| 15570 | } |
| 15571 | func (m *MoveLeaderRequest) Unmarshal(dAtA []byte) error { |
| 15572 | l := len(dAtA) |
| 15573 | iNdEx := 0 |
| 15574 | for iNdEx < l { |
| 15575 | preIndex := iNdEx |
| 15576 | var wire uint64 |
| 15577 | for shift := uint(0); ; shift += 7 { |
| 15578 | if shift >= 64 { |
| 15579 | return ErrIntOverflowRpc |
| 15580 | } |
| 15581 | if iNdEx >= l { |
| 15582 | return io.ErrUnexpectedEOF |
| 15583 | } |
| 15584 | b := dAtA[iNdEx] |
| 15585 | iNdEx++ |
| 15586 | wire |= (uint64(b) & 0x7F) << shift |
| 15587 | if b < 0x80 { |
| 15588 | break |
| 15589 | } |
| 15590 | } |
| 15591 | fieldNum := int32(wire >> 3) |
| 15592 | wireType := int(wire & 0x7) |
| 15593 | if wireType == 4 { |
| 15594 | return fmt.Errorf("proto: MoveLeaderRequest: wiretype end group for non-group") |
| 15595 | } |
| 15596 | if fieldNum <= 0 { |
| 15597 | return fmt.Errorf("proto: MoveLeaderRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15598 | } |
| 15599 | switch fieldNum { |
| 15600 | case 1: |
| 15601 | if wireType != 0 { |
| 15602 | return fmt.Errorf("proto: wrong wireType = %d for field TargetID", wireType) |
| 15603 | } |
| 15604 | m.TargetID = 0 |
| 15605 | for shift := uint(0); ; shift += 7 { |
| 15606 | if shift >= 64 { |
| 15607 | return ErrIntOverflowRpc |
| 15608 | } |
| 15609 | if iNdEx >= l { |
| 15610 | return io.ErrUnexpectedEOF |
| 15611 | } |
| 15612 | b := dAtA[iNdEx] |
| 15613 | iNdEx++ |
| 15614 | m.TargetID |= (uint64(b) & 0x7F) << shift |
| 15615 | if b < 0x80 { |
| 15616 | break |
| 15617 | } |
| 15618 | } |
| 15619 | default: |
| 15620 | iNdEx = preIndex |
| 15621 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15622 | if err != nil { |
| 15623 | return err |
| 15624 | } |
| 15625 | if skippy < 0 { |
| 15626 | return ErrInvalidLengthRpc |
| 15627 | } |
| 15628 | if (iNdEx + skippy) > l { |
| 15629 | return io.ErrUnexpectedEOF |
| 15630 | } |
| 15631 | iNdEx += skippy |
| 15632 | } |
| 15633 | } |
| 15634 | |
| 15635 | if iNdEx > l { |
| 15636 | return io.ErrUnexpectedEOF |
| 15637 | } |
| 15638 | return nil |
| 15639 | } |
| 15640 | func (m *MoveLeaderResponse) Unmarshal(dAtA []byte) error { |
| 15641 | l := len(dAtA) |
| 15642 | iNdEx := 0 |
| 15643 | for iNdEx < l { |
| 15644 | preIndex := iNdEx |
| 15645 | var wire uint64 |
| 15646 | for shift := uint(0); ; shift += 7 { |
| 15647 | if shift >= 64 { |
| 15648 | return ErrIntOverflowRpc |
| 15649 | } |
| 15650 | if iNdEx >= l { |
| 15651 | return io.ErrUnexpectedEOF |
| 15652 | } |
| 15653 | b := dAtA[iNdEx] |
| 15654 | iNdEx++ |
| 15655 | wire |= (uint64(b) & 0x7F) << shift |
| 15656 | if b < 0x80 { |
| 15657 | break |
| 15658 | } |
| 15659 | } |
| 15660 | fieldNum := int32(wire >> 3) |
| 15661 | wireType := int(wire & 0x7) |
| 15662 | if wireType == 4 { |
| 15663 | return fmt.Errorf("proto: MoveLeaderResponse: wiretype end group for non-group") |
| 15664 | } |
| 15665 | if fieldNum <= 0 { |
| 15666 | return fmt.Errorf("proto: MoveLeaderResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15667 | } |
| 15668 | switch fieldNum { |
| 15669 | case 1: |
| 15670 | if wireType != 2 { |
| 15671 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 15672 | } |
| 15673 | var msglen int |
| 15674 | for shift := uint(0); ; shift += 7 { |
| 15675 | if shift >= 64 { |
| 15676 | return ErrIntOverflowRpc |
| 15677 | } |
| 15678 | if iNdEx >= l { |
| 15679 | return io.ErrUnexpectedEOF |
| 15680 | } |
| 15681 | b := dAtA[iNdEx] |
| 15682 | iNdEx++ |
| 15683 | msglen |= (int(b) & 0x7F) << shift |
| 15684 | if b < 0x80 { |
| 15685 | break |
| 15686 | } |
| 15687 | } |
| 15688 | if msglen < 0 { |
| 15689 | return ErrInvalidLengthRpc |
| 15690 | } |
| 15691 | postIndex := iNdEx + msglen |
| 15692 | if postIndex > l { |
| 15693 | return io.ErrUnexpectedEOF |
| 15694 | } |
| 15695 | if m.Header == nil { |
| 15696 | m.Header = &ResponseHeader{} |
| 15697 | } |
| 15698 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 15699 | return err |
| 15700 | } |
| 15701 | iNdEx = postIndex |
| 15702 | default: |
| 15703 | iNdEx = preIndex |
| 15704 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15705 | if err != nil { |
| 15706 | return err |
| 15707 | } |
| 15708 | if skippy < 0 { |
| 15709 | return ErrInvalidLengthRpc |
| 15710 | } |
| 15711 | if (iNdEx + skippy) > l { |
| 15712 | return io.ErrUnexpectedEOF |
| 15713 | } |
| 15714 | iNdEx += skippy |
| 15715 | } |
| 15716 | } |
| 15717 | |
| 15718 | if iNdEx > l { |
| 15719 | return io.ErrUnexpectedEOF |
| 15720 | } |
| 15721 | return nil |
| 15722 | } |
| 15723 | func (m *AlarmRequest) Unmarshal(dAtA []byte) error { |
| 15724 | l := len(dAtA) |
| 15725 | iNdEx := 0 |
| 15726 | for iNdEx < l { |
| 15727 | preIndex := iNdEx |
| 15728 | var wire uint64 |
| 15729 | for shift := uint(0); ; shift += 7 { |
| 15730 | if shift >= 64 { |
| 15731 | return ErrIntOverflowRpc |
| 15732 | } |
| 15733 | if iNdEx >= l { |
| 15734 | return io.ErrUnexpectedEOF |
| 15735 | } |
| 15736 | b := dAtA[iNdEx] |
| 15737 | iNdEx++ |
| 15738 | wire |= (uint64(b) & 0x7F) << shift |
| 15739 | if b < 0x80 { |
| 15740 | break |
| 15741 | } |
| 15742 | } |
| 15743 | fieldNum := int32(wire >> 3) |
| 15744 | wireType := int(wire & 0x7) |
| 15745 | if wireType == 4 { |
| 15746 | return fmt.Errorf("proto: AlarmRequest: wiretype end group for non-group") |
| 15747 | } |
| 15748 | if fieldNum <= 0 { |
| 15749 | return fmt.Errorf("proto: AlarmRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15750 | } |
| 15751 | switch fieldNum { |
| 15752 | case 1: |
| 15753 | if wireType != 0 { |
| 15754 | return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) |
| 15755 | } |
| 15756 | m.Action = 0 |
| 15757 | for shift := uint(0); ; shift += 7 { |
| 15758 | if shift >= 64 { |
| 15759 | return ErrIntOverflowRpc |
| 15760 | } |
| 15761 | if iNdEx >= l { |
| 15762 | return io.ErrUnexpectedEOF |
| 15763 | } |
| 15764 | b := dAtA[iNdEx] |
| 15765 | iNdEx++ |
| 15766 | m.Action |= (AlarmRequest_AlarmAction(b) & 0x7F) << shift |
| 15767 | if b < 0x80 { |
| 15768 | break |
| 15769 | } |
| 15770 | } |
| 15771 | case 2: |
| 15772 | if wireType != 0 { |
| 15773 | return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType) |
| 15774 | } |
| 15775 | m.MemberID = 0 |
| 15776 | for shift := uint(0); ; shift += 7 { |
| 15777 | if shift >= 64 { |
| 15778 | return ErrIntOverflowRpc |
| 15779 | } |
| 15780 | if iNdEx >= l { |
| 15781 | return io.ErrUnexpectedEOF |
| 15782 | } |
| 15783 | b := dAtA[iNdEx] |
| 15784 | iNdEx++ |
| 15785 | m.MemberID |= (uint64(b) & 0x7F) << shift |
| 15786 | if b < 0x80 { |
| 15787 | break |
| 15788 | } |
| 15789 | } |
| 15790 | case 3: |
| 15791 | if wireType != 0 { |
| 15792 | return fmt.Errorf("proto: wrong wireType = %d for field Alarm", wireType) |
| 15793 | } |
| 15794 | m.Alarm = 0 |
| 15795 | for shift := uint(0); ; shift += 7 { |
| 15796 | if shift >= 64 { |
| 15797 | return ErrIntOverflowRpc |
| 15798 | } |
| 15799 | if iNdEx >= l { |
| 15800 | return io.ErrUnexpectedEOF |
| 15801 | } |
| 15802 | b := dAtA[iNdEx] |
| 15803 | iNdEx++ |
| 15804 | m.Alarm |= (AlarmType(b) & 0x7F) << shift |
| 15805 | if b < 0x80 { |
| 15806 | break |
| 15807 | } |
| 15808 | } |
| 15809 | default: |
| 15810 | iNdEx = preIndex |
| 15811 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15812 | if err != nil { |
| 15813 | return err |
| 15814 | } |
| 15815 | if skippy < 0 { |
| 15816 | return ErrInvalidLengthRpc |
| 15817 | } |
| 15818 | if (iNdEx + skippy) > l { |
| 15819 | return io.ErrUnexpectedEOF |
| 15820 | } |
| 15821 | iNdEx += skippy |
| 15822 | } |
| 15823 | } |
| 15824 | |
| 15825 | if iNdEx > l { |
| 15826 | return io.ErrUnexpectedEOF |
| 15827 | } |
| 15828 | return nil |
| 15829 | } |
| 15830 | func (m *AlarmMember) Unmarshal(dAtA []byte) error { |
| 15831 | l := len(dAtA) |
| 15832 | iNdEx := 0 |
| 15833 | for iNdEx < l { |
| 15834 | preIndex := iNdEx |
| 15835 | var wire uint64 |
| 15836 | for shift := uint(0); ; shift += 7 { |
| 15837 | if shift >= 64 { |
| 15838 | return ErrIntOverflowRpc |
| 15839 | } |
| 15840 | if iNdEx >= l { |
| 15841 | return io.ErrUnexpectedEOF |
| 15842 | } |
| 15843 | b := dAtA[iNdEx] |
| 15844 | iNdEx++ |
| 15845 | wire |= (uint64(b) & 0x7F) << shift |
| 15846 | if b < 0x80 { |
| 15847 | break |
| 15848 | } |
| 15849 | } |
| 15850 | fieldNum := int32(wire >> 3) |
| 15851 | wireType := int(wire & 0x7) |
| 15852 | if wireType == 4 { |
| 15853 | return fmt.Errorf("proto: AlarmMember: wiretype end group for non-group") |
| 15854 | } |
| 15855 | if fieldNum <= 0 { |
| 15856 | return fmt.Errorf("proto: AlarmMember: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15857 | } |
| 15858 | switch fieldNum { |
| 15859 | case 1: |
| 15860 | if wireType != 0 { |
| 15861 | return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType) |
| 15862 | } |
| 15863 | m.MemberID = 0 |
| 15864 | for shift := uint(0); ; shift += 7 { |
| 15865 | if shift >= 64 { |
| 15866 | return ErrIntOverflowRpc |
| 15867 | } |
| 15868 | if iNdEx >= l { |
| 15869 | return io.ErrUnexpectedEOF |
| 15870 | } |
| 15871 | b := dAtA[iNdEx] |
| 15872 | iNdEx++ |
| 15873 | m.MemberID |= (uint64(b) & 0x7F) << shift |
| 15874 | if b < 0x80 { |
| 15875 | break |
| 15876 | } |
| 15877 | } |
| 15878 | case 2: |
| 15879 | if wireType != 0 { |
| 15880 | return fmt.Errorf("proto: wrong wireType = %d for field Alarm", wireType) |
| 15881 | } |
| 15882 | m.Alarm = 0 |
| 15883 | for shift := uint(0); ; shift += 7 { |
| 15884 | if shift >= 64 { |
| 15885 | return ErrIntOverflowRpc |
| 15886 | } |
| 15887 | if iNdEx >= l { |
| 15888 | return io.ErrUnexpectedEOF |
| 15889 | } |
| 15890 | b := dAtA[iNdEx] |
| 15891 | iNdEx++ |
| 15892 | m.Alarm |= (AlarmType(b) & 0x7F) << shift |
| 15893 | if b < 0x80 { |
| 15894 | break |
| 15895 | } |
| 15896 | } |
| 15897 | default: |
| 15898 | iNdEx = preIndex |
| 15899 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15900 | if err != nil { |
| 15901 | return err |
| 15902 | } |
| 15903 | if skippy < 0 { |
| 15904 | return ErrInvalidLengthRpc |
| 15905 | } |
| 15906 | if (iNdEx + skippy) > l { |
| 15907 | return io.ErrUnexpectedEOF |
| 15908 | } |
| 15909 | iNdEx += skippy |
| 15910 | } |
| 15911 | } |
| 15912 | |
| 15913 | if iNdEx > l { |
| 15914 | return io.ErrUnexpectedEOF |
| 15915 | } |
| 15916 | return nil |
| 15917 | } |
| 15918 | func (m *AlarmResponse) Unmarshal(dAtA []byte) error { |
| 15919 | l := len(dAtA) |
| 15920 | iNdEx := 0 |
| 15921 | for iNdEx < l { |
| 15922 | preIndex := iNdEx |
| 15923 | var wire uint64 |
| 15924 | for shift := uint(0); ; shift += 7 { |
| 15925 | if shift >= 64 { |
| 15926 | return ErrIntOverflowRpc |
| 15927 | } |
| 15928 | if iNdEx >= l { |
| 15929 | return io.ErrUnexpectedEOF |
| 15930 | } |
| 15931 | b := dAtA[iNdEx] |
| 15932 | iNdEx++ |
| 15933 | wire |= (uint64(b) & 0x7F) << shift |
| 15934 | if b < 0x80 { |
| 15935 | break |
| 15936 | } |
| 15937 | } |
| 15938 | fieldNum := int32(wire >> 3) |
| 15939 | wireType := int(wire & 0x7) |
| 15940 | if wireType == 4 { |
| 15941 | return fmt.Errorf("proto: AlarmResponse: wiretype end group for non-group") |
| 15942 | } |
| 15943 | if fieldNum <= 0 { |
| 15944 | return fmt.Errorf("proto: AlarmResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15945 | } |
| 15946 | switch fieldNum { |
| 15947 | case 1: |
| 15948 | if wireType != 2 { |
| 15949 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 15950 | } |
| 15951 | var msglen int |
| 15952 | for shift := uint(0); ; shift += 7 { |
| 15953 | if shift >= 64 { |
| 15954 | return ErrIntOverflowRpc |
| 15955 | } |
| 15956 | if iNdEx >= l { |
| 15957 | return io.ErrUnexpectedEOF |
| 15958 | } |
| 15959 | b := dAtA[iNdEx] |
| 15960 | iNdEx++ |
| 15961 | msglen |= (int(b) & 0x7F) << shift |
| 15962 | if b < 0x80 { |
| 15963 | break |
| 15964 | } |
| 15965 | } |
| 15966 | if msglen < 0 { |
| 15967 | return ErrInvalidLengthRpc |
| 15968 | } |
| 15969 | postIndex := iNdEx + msglen |
| 15970 | if postIndex > l { |
| 15971 | return io.ErrUnexpectedEOF |
| 15972 | } |
| 15973 | if m.Header == nil { |
| 15974 | m.Header = &ResponseHeader{} |
| 15975 | } |
| 15976 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 15977 | return err |
| 15978 | } |
| 15979 | iNdEx = postIndex |
| 15980 | case 2: |
| 15981 | if wireType != 2 { |
| 15982 | return fmt.Errorf("proto: wrong wireType = %d for field Alarms", wireType) |
| 15983 | } |
| 15984 | var msglen int |
| 15985 | for shift := uint(0); ; shift += 7 { |
| 15986 | if shift >= 64 { |
| 15987 | return ErrIntOverflowRpc |
| 15988 | } |
| 15989 | if iNdEx >= l { |
| 15990 | return io.ErrUnexpectedEOF |
| 15991 | } |
| 15992 | b := dAtA[iNdEx] |
| 15993 | iNdEx++ |
| 15994 | msglen |= (int(b) & 0x7F) << shift |
| 15995 | if b < 0x80 { |
| 15996 | break |
| 15997 | } |
| 15998 | } |
| 15999 | if msglen < 0 { |
| 16000 | return ErrInvalidLengthRpc |
| 16001 | } |
| 16002 | postIndex := iNdEx + msglen |
| 16003 | if postIndex > l { |
| 16004 | return io.ErrUnexpectedEOF |
| 16005 | } |
| 16006 | m.Alarms = append(m.Alarms, &AlarmMember{}) |
| 16007 | if err := m.Alarms[len(m.Alarms)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 16008 | return err |
| 16009 | } |
| 16010 | iNdEx = postIndex |
| 16011 | default: |
| 16012 | iNdEx = preIndex |
| 16013 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16014 | if err != nil { |
| 16015 | return err |
| 16016 | } |
| 16017 | if skippy < 0 { |
| 16018 | return ErrInvalidLengthRpc |
| 16019 | } |
| 16020 | if (iNdEx + skippy) > l { |
| 16021 | return io.ErrUnexpectedEOF |
| 16022 | } |
| 16023 | iNdEx += skippy |
| 16024 | } |
| 16025 | } |
| 16026 | |
| 16027 | if iNdEx > l { |
| 16028 | return io.ErrUnexpectedEOF |
| 16029 | } |
| 16030 | return nil |
| 16031 | } |
| 16032 | func (m *StatusRequest) Unmarshal(dAtA []byte) error { |
| 16033 | l := len(dAtA) |
| 16034 | iNdEx := 0 |
| 16035 | for iNdEx < l { |
| 16036 | preIndex := iNdEx |
| 16037 | var wire uint64 |
| 16038 | for shift := uint(0); ; shift += 7 { |
| 16039 | if shift >= 64 { |
| 16040 | return ErrIntOverflowRpc |
| 16041 | } |
| 16042 | if iNdEx >= l { |
| 16043 | return io.ErrUnexpectedEOF |
| 16044 | } |
| 16045 | b := dAtA[iNdEx] |
| 16046 | iNdEx++ |
| 16047 | wire |= (uint64(b) & 0x7F) << shift |
| 16048 | if b < 0x80 { |
| 16049 | break |
| 16050 | } |
| 16051 | } |
| 16052 | fieldNum := int32(wire >> 3) |
| 16053 | wireType := int(wire & 0x7) |
| 16054 | if wireType == 4 { |
| 16055 | return fmt.Errorf("proto: StatusRequest: wiretype end group for non-group") |
| 16056 | } |
| 16057 | if fieldNum <= 0 { |
| 16058 | return fmt.Errorf("proto: StatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16059 | } |
| 16060 | switch fieldNum { |
| 16061 | default: |
| 16062 | iNdEx = preIndex |
| 16063 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16064 | if err != nil { |
| 16065 | return err |
| 16066 | } |
| 16067 | if skippy < 0 { |
| 16068 | return ErrInvalidLengthRpc |
| 16069 | } |
| 16070 | if (iNdEx + skippy) > l { |
| 16071 | return io.ErrUnexpectedEOF |
| 16072 | } |
| 16073 | iNdEx += skippy |
| 16074 | } |
| 16075 | } |
| 16076 | |
| 16077 | if iNdEx > l { |
| 16078 | return io.ErrUnexpectedEOF |
| 16079 | } |
| 16080 | return nil |
| 16081 | } |
| 16082 | func (m *StatusResponse) Unmarshal(dAtA []byte) error { |
| 16083 | l := len(dAtA) |
| 16084 | iNdEx := 0 |
| 16085 | for iNdEx < l { |
| 16086 | preIndex := iNdEx |
| 16087 | var wire uint64 |
| 16088 | for shift := uint(0); ; shift += 7 { |
| 16089 | if shift >= 64 { |
| 16090 | return ErrIntOverflowRpc |
| 16091 | } |
| 16092 | if iNdEx >= l { |
| 16093 | return io.ErrUnexpectedEOF |
| 16094 | } |
| 16095 | b := dAtA[iNdEx] |
| 16096 | iNdEx++ |
| 16097 | wire |= (uint64(b) & 0x7F) << shift |
| 16098 | if b < 0x80 { |
| 16099 | break |
| 16100 | } |
| 16101 | } |
| 16102 | fieldNum := int32(wire >> 3) |
| 16103 | wireType := int(wire & 0x7) |
| 16104 | if wireType == 4 { |
| 16105 | return fmt.Errorf("proto: StatusResponse: wiretype end group for non-group") |
| 16106 | } |
| 16107 | if fieldNum <= 0 { |
| 16108 | return fmt.Errorf("proto: StatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16109 | } |
| 16110 | switch fieldNum { |
| 16111 | case 1: |
| 16112 | if wireType != 2 { |
| 16113 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 16114 | } |
| 16115 | var msglen int |
| 16116 | for shift := uint(0); ; shift += 7 { |
| 16117 | if shift >= 64 { |
| 16118 | return ErrIntOverflowRpc |
| 16119 | } |
| 16120 | if iNdEx >= l { |
| 16121 | return io.ErrUnexpectedEOF |
| 16122 | } |
| 16123 | b := dAtA[iNdEx] |
| 16124 | iNdEx++ |
| 16125 | msglen |= (int(b) & 0x7F) << shift |
| 16126 | if b < 0x80 { |
| 16127 | break |
| 16128 | } |
| 16129 | } |
| 16130 | if msglen < 0 { |
| 16131 | return ErrInvalidLengthRpc |
| 16132 | } |
| 16133 | postIndex := iNdEx + msglen |
| 16134 | if postIndex > l { |
| 16135 | return io.ErrUnexpectedEOF |
| 16136 | } |
| 16137 | if m.Header == nil { |
| 16138 | m.Header = &ResponseHeader{} |
| 16139 | } |
| 16140 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 16141 | return err |
| 16142 | } |
| 16143 | iNdEx = postIndex |
| 16144 | case 2: |
| 16145 | if wireType != 2 { |
| 16146 | return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) |
| 16147 | } |
| 16148 | var stringLen uint64 |
| 16149 | for shift := uint(0); ; shift += 7 { |
| 16150 | if shift >= 64 { |
| 16151 | return ErrIntOverflowRpc |
| 16152 | } |
| 16153 | if iNdEx >= l { |
| 16154 | return io.ErrUnexpectedEOF |
| 16155 | } |
| 16156 | b := dAtA[iNdEx] |
| 16157 | iNdEx++ |
| 16158 | stringLen |= (uint64(b) & 0x7F) << shift |
| 16159 | if b < 0x80 { |
| 16160 | break |
| 16161 | } |
| 16162 | } |
| 16163 | intStringLen := int(stringLen) |
| 16164 | if intStringLen < 0 { |
| 16165 | return ErrInvalidLengthRpc |
| 16166 | } |
| 16167 | postIndex := iNdEx + intStringLen |
| 16168 | if postIndex > l { |
| 16169 | return io.ErrUnexpectedEOF |
| 16170 | } |
| 16171 | m.Version = string(dAtA[iNdEx:postIndex]) |
| 16172 | iNdEx = postIndex |
| 16173 | case 3: |
| 16174 | if wireType != 0 { |
| 16175 | return fmt.Errorf("proto: wrong wireType = %d for field DbSize", wireType) |
| 16176 | } |
| 16177 | m.DbSize = 0 |
| 16178 | for shift := uint(0); ; shift += 7 { |
| 16179 | if shift >= 64 { |
| 16180 | return ErrIntOverflowRpc |
| 16181 | } |
| 16182 | if iNdEx >= l { |
| 16183 | return io.ErrUnexpectedEOF |
| 16184 | } |
| 16185 | b := dAtA[iNdEx] |
| 16186 | iNdEx++ |
| 16187 | m.DbSize |= (int64(b) & 0x7F) << shift |
| 16188 | if b < 0x80 { |
| 16189 | break |
| 16190 | } |
| 16191 | } |
| 16192 | case 4: |
| 16193 | if wireType != 0 { |
| 16194 | return fmt.Errorf("proto: wrong wireType = %d for field Leader", wireType) |
| 16195 | } |
| 16196 | m.Leader = 0 |
| 16197 | for shift := uint(0); ; shift += 7 { |
| 16198 | if shift >= 64 { |
| 16199 | return ErrIntOverflowRpc |
| 16200 | } |
| 16201 | if iNdEx >= l { |
| 16202 | return io.ErrUnexpectedEOF |
| 16203 | } |
| 16204 | b := dAtA[iNdEx] |
| 16205 | iNdEx++ |
| 16206 | m.Leader |= (uint64(b) & 0x7F) << shift |
| 16207 | if b < 0x80 { |
| 16208 | break |
| 16209 | } |
| 16210 | } |
| 16211 | case 5: |
| 16212 | if wireType != 0 { |
| 16213 | return fmt.Errorf("proto: wrong wireType = %d for field RaftIndex", wireType) |
| 16214 | } |
| 16215 | m.RaftIndex = 0 |
| 16216 | for shift := uint(0); ; shift += 7 { |
| 16217 | if shift >= 64 { |
| 16218 | return ErrIntOverflowRpc |
| 16219 | } |
| 16220 | if iNdEx >= l { |
| 16221 | return io.ErrUnexpectedEOF |
| 16222 | } |
| 16223 | b := dAtA[iNdEx] |
| 16224 | iNdEx++ |
| 16225 | m.RaftIndex |= (uint64(b) & 0x7F) << shift |
| 16226 | if b < 0x80 { |
| 16227 | break |
| 16228 | } |
| 16229 | } |
| 16230 | case 6: |
| 16231 | if wireType != 0 { |
| 16232 | return fmt.Errorf("proto: wrong wireType = %d for field RaftTerm", wireType) |
| 16233 | } |
| 16234 | m.RaftTerm = 0 |
| 16235 | for shift := uint(0); ; shift += 7 { |
| 16236 | if shift >= 64 { |
| 16237 | return ErrIntOverflowRpc |
| 16238 | } |
| 16239 | if iNdEx >= l { |
| 16240 | return io.ErrUnexpectedEOF |
| 16241 | } |
| 16242 | b := dAtA[iNdEx] |
| 16243 | iNdEx++ |
| 16244 | m.RaftTerm |= (uint64(b) & 0x7F) << shift |
| 16245 | if b < 0x80 { |
| 16246 | break |
| 16247 | } |
| 16248 | } |
| 16249 | case 7: |
| 16250 | if wireType != 0 { |
| 16251 | return fmt.Errorf("proto: wrong wireType = %d for field RaftAppliedIndex", wireType) |
| 16252 | } |
| 16253 | m.RaftAppliedIndex = 0 |
| 16254 | for shift := uint(0); ; shift += 7 { |
| 16255 | if shift >= 64 { |
| 16256 | return ErrIntOverflowRpc |
| 16257 | } |
| 16258 | if iNdEx >= l { |
| 16259 | return io.ErrUnexpectedEOF |
| 16260 | } |
| 16261 | b := dAtA[iNdEx] |
| 16262 | iNdEx++ |
| 16263 | m.RaftAppliedIndex |= (uint64(b) & 0x7F) << shift |
| 16264 | if b < 0x80 { |
| 16265 | break |
| 16266 | } |
| 16267 | } |
| 16268 | case 8: |
| 16269 | if wireType != 2 { |
| 16270 | return fmt.Errorf("proto: wrong wireType = %d for field Errors", wireType) |
| 16271 | } |
| 16272 | var stringLen 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++ |
| 16282 | stringLen |= (uint64(b) & 0x7F) << shift |
| 16283 | if b < 0x80 { |
| 16284 | break |
| 16285 | } |
| 16286 | } |
| 16287 | intStringLen := int(stringLen) |
| 16288 | if intStringLen < 0 { |
| 16289 | return ErrInvalidLengthRpc |
| 16290 | } |
| 16291 | postIndex := iNdEx + intStringLen |
| 16292 | if postIndex > l { |
| 16293 | return io.ErrUnexpectedEOF |
| 16294 | } |
| 16295 | m.Errors = append(m.Errors, string(dAtA[iNdEx:postIndex])) |
| 16296 | iNdEx = postIndex |
| 16297 | case 9: |
| 16298 | if wireType != 0 { |
| 16299 | return fmt.Errorf("proto: wrong wireType = %d for field DbSizeInUse", wireType) |
| 16300 | } |
| 16301 | m.DbSizeInUse = 0 |
| 16302 | for shift := uint(0); ; shift += 7 { |
| 16303 | if shift >= 64 { |
| 16304 | return ErrIntOverflowRpc |
| 16305 | } |
| 16306 | if iNdEx >= l { |
| 16307 | return io.ErrUnexpectedEOF |
| 16308 | } |
| 16309 | b := dAtA[iNdEx] |
| 16310 | iNdEx++ |
| 16311 | m.DbSizeInUse |= (int64(b) & 0x7F) << shift |
| 16312 | if b < 0x80 { |
| 16313 | break |
| 16314 | } |
| 16315 | } |
| 16316 | default: |
| 16317 | iNdEx = preIndex |
| 16318 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16319 | if err != nil { |
| 16320 | return err |
| 16321 | } |
| 16322 | if skippy < 0 { |
| 16323 | return ErrInvalidLengthRpc |
| 16324 | } |
| 16325 | if (iNdEx + skippy) > l { |
| 16326 | return io.ErrUnexpectedEOF |
| 16327 | } |
| 16328 | iNdEx += skippy |
| 16329 | } |
| 16330 | } |
| 16331 | |
| 16332 | if iNdEx > l { |
| 16333 | return io.ErrUnexpectedEOF |
| 16334 | } |
| 16335 | return nil |
| 16336 | } |
| 16337 | func (m *AuthEnableRequest) Unmarshal(dAtA []byte) error { |
| 16338 | l := len(dAtA) |
| 16339 | iNdEx := 0 |
| 16340 | for iNdEx < l { |
| 16341 | preIndex := iNdEx |
| 16342 | var wire uint64 |
| 16343 | for shift := uint(0); ; shift += 7 { |
| 16344 | if shift >= 64 { |
| 16345 | return ErrIntOverflowRpc |
| 16346 | } |
| 16347 | if iNdEx >= l { |
| 16348 | return io.ErrUnexpectedEOF |
| 16349 | } |
| 16350 | b := dAtA[iNdEx] |
| 16351 | iNdEx++ |
| 16352 | wire |= (uint64(b) & 0x7F) << shift |
| 16353 | if b < 0x80 { |
| 16354 | break |
| 16355 | } |
| 16356 | } |
| 16357 | fieldNum := int32(wire >> 3) |
| 16358 | wireType := int(wire & 0x7) |
| 16359 | if wireType == 4 { |
| 16360 | return fmt.Errorf("proto: AuthEnableRequest: wiretype end group for non-group") |
| 16361 | } |
| 16362 | if fieldNum <= 0 { |
| 16363 | return fmt.Errorf("proto: AuthEnableRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16364 | } |
| 16365 | switch fieldNum { |
| 16366 | default: |
| 16367 | iNdEx = preIndex |
| 16368 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16369 | if err != nil { |
| 16370 | return err |
| 16371 | } |
| 16372 | if skippy < 0 { |
| 16373 | return ErrInvalidLengthRpc |
| 16374 | } |
| 16375 | if (iNdEx + skippy) > l { |
| 16376 | return io.ErrUnexpectedEOF |
| 16377 | } |
| 16378 | iNdEx += skippy |
| 16379 | } |
| 16380 | } |
| 16381 | |
| 16382 | if iNdEx > l { |
| 16383 | return io.ErrUnexpectedEOF |
| 16384 | } |
| 16385 | return nil |
| 16386 | } |
| 16387 | func (m *AuthDisableRequest) Unmarshal(dAtA []byte) error { |
| 16388 | l := len(dAtA) |
| 16389 | iNdEx := 0 |
| 16390 | for iNdEx < l { |
| 16391 | preIndex := iNdEx |
| 16392 | var wire uint64 |
| 16393 | for shift := uint(0); ; shift += 7 { |
| 16394 | if shift >= 64 { |
| 16395 | return ErrIntOverflowRpc |
| 16396 | } |
| 16397 | if iNdEx >= l { |
| 16398 | return io.ErrUnexpectedEOF |
| 16399 | } |
| 16400 | b := dAtA[iNdEx] |
| 16401 | iNdEx++ |
| 16402 | wire |= (uint64(b) & 0x7F) << shift |
| 16403 | if b < 0x80 { |
| 16404 | break |
| 16405 | } |
| 16406 | } |
| 16407 | fieldNum := int32(wire >> 3) |
| 16408 | wireType := int(wire & 0x7) |
| 16409 | if wireType == 4 { |
| 16410 | return fmt.Errorf("proto: AuthDisableRequest: wiretype end group for non-group") |
| 16411 | } |
| 16412 | if fieldNum <= 0 { |
| 16413 | return fmt.Errorf("proto: AuthDisableRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16414 | } |
| 16415 | switch fieldNum { |
| 16416 | default: |
| 16417 | iNdEx = preIndex |
| 16418 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16419 | if err != nil { |
| 16420 | return err |
| 16421 | } |
| 16422 | if skippy < 0 { |
| 16423 | return ErrInvalidLengthRpc |
| 16424 | } |
| 16425 | if (iNdEx + skippy) > l { |
| 16426 | return io.ErrUnexpectedEOF |
| 16427 | } |
| 16428 | iNdEx += skippy |
| 16429 | } |
| 16430 | } |
| 16431 | |
| 16432 | if iNdEx > l { |
| 16433 | return io.ErrUnexpectedEOF |
| 16434 | } |
| 16435 | return nil |
| 16436 | } |
| 16437 | func (m *AuthenticateRequest) Unmarshal(dAtA []byte) error { |
| 16438 | l := len(dAtA) |
| 16439 | iNdEx := 0 |
| 16440 | for iNdEx < l { |
| 16441 | preIndex := iNdEx |
| 16442 | var wire uint64 |
| 16443 | for shift := uint(0); ; shift += 7 { |
| 16444 | if shift >= 64 { |
| 16445 | return ErrIntOverflowRpc |
| 16446 | } |
| 16447 | if iNdEx >= l { |
| 16448 | return io.ErrUnexpectedEOF |
| 16449 | } |
| 16450 | b := dAtA[iNdEx] |
| 16451 | iNdEx++ |
| 16452 | wire |= (uint64(b) & 0x7F) << shift |
| 16453 | if b < 0x80 { |
| 16454 | break |
| 16455 | } |
| 16456 | } |
| 16457 | fieldNum := int32(wire >> 3) |
| 16458 | wireType := int(wire & 0x7) |
| 16459 | if wireType == 4 { |
| 16460 | return fmt.Errorf("proto: AuthenticateRequest: wiretype end group for non-group") |
| 16461 | } |
| 16462 | if fieldNum <= 0 { |
| 16463 | return fmt.Errorf("proto: AuthenticateRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16464 | } |
| 16465 | switch fieldNum { |
| 16466 | case 1: |
| 16467 | if wireType != 2 { |
| 16468 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 16469 | } |
| 16470 | var stringLen uint64 |
| 16471 | for shift := uint(0); ; shift += 7 { |
| 16472 | if shift >= 64 { |
| 16473 | return ErrIntOverflowRpc |
| 16474 | } |
| 16475 | if iNdEx >= l { |
| 16476 | return io.ErrUnexpectedEOF |
| 16477 | } |
| 16478 | b := dAtA[iNdEx] |
| 16479 | iNdEx++ |
| 16480 | stringLen |= (uint64(b) & 0x7F) << shift |
| 16481 | if b < 0x80 { |
| 16482 | break |
| 16483 | } |
| 16484 | } |
| 16485 | intStringLen := int(stringLen) |
| 16486 | if intStringLen < 0 { |
| 16487 | return ErrInvalidLengthRpc |
| 16488 | } |
| 16489 | postIndex := iNdEx + intStringLen |
| 16490 | if postIndex > l { |
| 16491 | return io.ErrUnexpectedEOF |
| 16492 | } |
| 16493 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 16494 | iNdEx = postIndex |
| 16495 | case 2: |
| 16496 | if wireType != 2 { |
| 16497 | return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) |
| 16498 | } |
| 16499 | var stringLen uint64 |
| 16500 | for shift := uint(0); ; shift += 7 { |
| 16501 | if shift >= 64 { |
| 16502 | return ErrIntOverflowRpc |
| 16503 | } |
| 16504 | if iNdEx >= l { |
| 16505 | return io.ErrUnexpectedEOF |
| 16506 | } |
| 16507 | b := dAtA[iNdEx] |
| 16508 | iNdEx++ |
| 16509 | stringLen |= (uint64(b) & 0x7F) << shift |
| 16510 | if b < 0x80 { |
| 16511 | break |
| 16512 | } |
| 16513 | } |
| 16514 | intStringLen := int(stringLen) |
| 16515 | if intStringLen < 0 { |
| 16516 | return ErrInvalidLengthRpc |
| 16517 | } |
| 16518 | postIndex := iNdEx + intStringLen |
| 16519 | if postIndex > l { |
| 16520 | return io.ErrUnexpectedEOF |
| 16521 | } |
| 16522 | m.Password = string(dAtA[iNdEx:postIndex]) |
| 16523 | iNdEx = postIndex |
| 16524 | default: |
| 16525 | iNdEx = preIndex |
| 16526 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16527 | if err != nil { |
| 16528 | return err |
| 16529 | } |
| 16530 | if skippy < 0 { |
| 16531 | return ErrInvalidLengthRpc |
| 16532 | } |
| 16533 | if (iNdEx + skippy) > l { |
| 16534 | return io.ErrUnexpectedEOF |
| 16535 | } |
| 16536 | iNdEx += skippy |
| 16537 | } |
| 16538 | } |
| 16539 | |
| 16540 | if iNdEx > l { |
| 16541 | return io.ErrUnexpectedEOF |
| 16542 | } |
| 16543 | return nil |
| 16544 | } |
| 16545 | func (m *AuthUserAddRequest) Unmarshal(dAtA []byte) error { |
| 16546 | l := len(dAtA) |
| 16547 | iNdEx := 0 |
| 16548 | for iNdEx < l { |
| 16549 | preIndex := iNdEx |
| 16550 | var wire uint64 |
| 16551 | for shift := uint(0); ; shift += 7 { |
| 16552 | if shift >= 64 { |
| 16553 | return ErrIntOverflowRpc |
| 16554 | } |
| 16555 | if iNdEx >= l { |
| 16556 | return io.ErrUnexpectedEOF |
| 16557 | } |
| 16558 | b := dAtA[iNdEx] |
| 16559 | iNdEx++ |
| 16560 | wire |= (uint64(b) & 0x7F) << shift |
| 16561 | if b < 0x80 { |
| 16562 | break |
| 16563 | } |
| 16564 | } |
| 16565 | fieldNum := int32(wire >> 3) |
| 16566 | wireType := int(wire & 0x7) |
| 16567 | if wireType == 4 { |
| 16568 | return fmt.Errorf("proto: AuthUserAddRequest: wiretype end group for non-group") |
| 16569 | } |
| 16570 | if fieldNum <= 0 { |
| 16571 | return fmt.Errorf("proto: AuthUserAddRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16572 | } |
| 16573 | switch fieldNum { |
| 16574 | case 1: |
| 16575 | if wireType != 2 { |
| 16576 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 16577 | } |
| 16578 | var stringLen uint64 |
| 16579 | for shift := uint(0); ; shift += 7 { |
| 16580 | if shift >= 64 { |
| 16581 | return ErrIntOverflowRpc |
| 16582 | } |
| 16583 | if iNdEx >= l { |
| 16584 | return io.ErrUnexpectedEOF |
| 16585 | } |
| 16586 | b := dAtA[iNdEx] |
| 16587 | iNdEx++ |
| 16588 | stringLen |= (uint64(b) & 0x7F) << shift |
| 16589 | if b < 0x80 { |
| 16590 | break |
| 16591 | } |
| 16592 | } |
| 16593 | intStringLen := int(stringLen) |
| 16594 | if intStringLen < 0 { |
| 16595 | return ErrInvalidLengthRpc |
| 16596 | } |
| 16597 | postIndex := iNdEx + intStringLen |
| 16598 | if postIndex > l { |
| 16599 | return io.ErrUnexpectedEOF |
| 16600 | } |
| 16601 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 16602 | iNdEx = postIndex |
| 16603 | case 2: |
| 16604 | if wireType != 2 { |
| 16605 | return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) |
| 16606 | } |
| 16607 | var stringLen uint64 |
| 16608 | for shift := uint(0); ; shift += 7 { |
| 16609 | if shift >= 64 { |
| 16610 | return ErrIntOverflowRpc |
| 16611 | } |
| 16612 | if iNdEx >= l { |
| 16613 | return io.ErrUnexpectedEOF |
| 16614 | } |
| 16615 | b := dAtA[iNdEx] |
| 16616 | iNdEx++ |
| 16617 | stringLen |= (uint64(b) & 0x7F) << shift |
| 16618 | if b < 0x80 { |
| 16619 | break |
| 16620 | } |
| 16621 | } |
| 16622 | intStringLen := int(stringLen) |
| 16623 | if intStringLen < 0 { |
| 16624 | return ErrInvalidLengthRpc |
| 16625 | } |
| 16626 | postIndex := iNdEx + intStringLen |
| 16627 | if postIndex > l { |
| 16628 | return io.ErrUnexpectedEOF |
| 16629 | } |
| 16630 | m.Password = string(dAtA[iNdEx:postIndex]) |
| 16631 | iNdEx = postIndex |
| 16632 | default: |
| 16633 | iNdEx = preIndex |
| 16634 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16635 | if err != nil { |
| 16636 | return err |
| 16637 | } |
| 16638 | if skippy < 0 { |
| 16639 | return ErrInvalidLengthRpc |
| 16640 | } |
| 16641 | if (iNdEx + skippy) > l { |
| 16642 | return io.ErrUnexpectedEOF |
| 16643 | } |
| 16644 | iNdEx += skippy |
| 16645 | } |
| 16646 | } |
| 16647 | |
| 16648 | if iNdEx > l { |
| 16649 | return io.ErrUnexpectedEOF |
| 16650 | } |
| 16651 | return nil |
| 16652 | } |
| 16653 | func (m *AuthUserGetRequest) Unmarshal(dAtA []byte) error { |
| 16654 | l := len(dAtA) |
| 16655 | iNdEx := 0 |
| 16656 | for iNdEx < l { |
| 16657 | preIndex := iNdEx |
| 16658 | var wire uint64 |
| 16659 | for shift := uint(0); ; shift += 7 { |
| 16660 | if shift >= 64 { |
| 16661 | return ErrIntOverflowRpc |
| 16662 | } |
| 16663 | if iNdEx >= l { |
| 16664 | return io.ErrUnexpectedEOF |
| 16665 | } |
| 16666 | b := dAtA[iNdEx] |
| 16667 | iNdEx++ |
| 16668 | wire |= (uint64(b) & 0x7F) << shift |
| 16669 | if b < 0x80 { |
| 16670 | break |
| 16671 | } |
| 16672 | } |
| 16673 | fieldNum := int32(wire >> 3) |
| 16674 | wireType := int(wire & 0x7) |
| 16675 | if wireType == 4 { |
| 16676 | return fmt.Errorf("proto: AuthUserGetRequest: wiretype end group for non-group") |
| 16677 | } |
| 16678 | if fieldNum <= 0 { |
| 16679 | return fmt.Errorf("proto: AuthUserGetRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16680 | } |
| 16681 | switch fieldNum { |
| 16682 | case 1: |
| 16683 | if wireType != 2 { |
| 16684 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 16685 | } |
| 16686 | var stringLen uint64 |
| 16687 | for shift := uint(0); ; shift += 7 { |
| 16688 | if shift >= 64 { |
| 16689 | return ErrIntOverflowRpc |
| 16690 | } |
| 16691 | if iNdEx >= l { |
| 16692 | return io.ErrUnexpectedEOF |
| 16693 | } |
| 16694 | b := dAtA[iNdEx] |
| 16695 | iNdEx++ |
| 16696 | stringLen |= (uint64(b) & 0x7F) << shift |
| 16697 | if b < 0x80 { |
| 16698 | break |
| 16699 | } |
| 16700 | } |
| 16701 | intStringLen := int(stringLen) |
| 16702 | if intStringLen < 0 { |
| 16703 | return ErrInvalidLengthRpc |
| 16704 | } |
| 16705 | postIndex := iNdEx + intStringLen |
| 16706 | if postIndex > l { |
| 16707 | return io.ErrUnexpectedEOF |
| 16708 | } |
| 16709 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 16710 | iNdEx = postIndex |
| 16711 | default: |
| 16712 | iNdEx = preIndex |
| 16713 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16714 | if err != nil { |
| 16715 | return err |
| 16716 | } |
| 16717 | if skippy < 0 { |
| 16718 | return ErrInvalidLengthRpc |
| 16719 | } |
| 16720 | if (iNdEx + skippy) > l { |
| 16721 | return io.ErrUnexpectedEOF |
| 16722 | } |
| 16723 | iNdEx += skippy |
| 16724 | } |
| 16725 | } |
| 16726 | |
| 16727 | if iNdEx > l { |
| 16728 | return io.ErrUnexpectedEOF |
| 16729 | } |
| 16730 | return nil |
| 16731 | } |
| 16732 | func (m *AuthUserDeleteRequest) Unmarshal(dAtA []byte) error { |
| 16733 | l := len(dAtA) |
| 16734 | iNdEx := 0 |
| 16735 | for iNdEx < l { |
| 16736 | preIndex := iNdEx |
| 16737 | var wire uint64 |
| 16738 | for shift := uint(0); ; shift += 7 { |
| 16739 | if shift >= 64 { |
| 16740 | return ErrIntOverflowRpc |
| 16741 | } |
| 16742 | if iNdEx >= l { |
| 16743 | return io.ErrUnexpectedEOF |
| 16744 | } |
| 16745 | b := dAtA[iNdEx] |
| 16746 | iNdEx++ |
| 16747 | wire |= (uint64(b) & 0x7F) << shift |
| 16748 | if b < 0x80 { |
| 16749 | break |
| 16750 | } |
| 16751 | } |
| 16752 | fieldNum := int32(wire >> 3) |
| 16753 | wireType := int(wire & 0x7) |
| 16754 | if wireType == 4 { |
| 16755 | return fmt.Errorf("proto: AuthUserDeleteRequest: wiretype end group for non-group") |
| 16756 | } |
| 16757 | if fieldNum <= 0 { |
| 16758 | return fmt.Errorf("proto: AuthUserDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16759 | } |
| 16760 | switch fieldNum { |
| 16761 | case 1: |
| 16762 | if wireType != 2 { |
| 16763 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 16764 | } |
| 16765 | var stringLen uint64 |
| 16766 | for shift := uint(0); ; shift += 7 { |
| 16767 | if shift >= 64 { |
| 16768 | return ErrIntOverflowRpc |
| 16769 | } |
| 16770 | if iNdEx >= l { |
| 16771 | return io.ErrUnexpectedEOF |
| 16772 | } |
| 16773 | b := dAtA[iNdEx] |
| 16774 | iNdEx++ |
| 16775 | stringLen |= (uint64(b) & 0x7F) << shift |
| 16776 | if b < 0x80 { |
| 16777 | break |
| 16778 | } |
| 16779 | } |
| 16780 | intStringLen := int(stringLen) |
| 16781 | if intStringLen < 0 { |
| 16782 | return ErrInvalidLengthRpc |
| 16783 | } |
| 16784 | postIndex := iNdEx + intStringLen |
| 16785 | if postIndex > l { |
| 16786 | return io.ErrUnexpectedEOF |
| 16787 | } |
| 16788 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 16789 | iNdEx = postIndex |
| 16790 | default: |
| 16791 | iNdEx = preIndex |
| 16792 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16793 | if err != nil { |
| 16794 | return err |
| 16795 | } |
| 16796 | if skippy < 0 { |
| 16797 | return ErrInvalidLengthRpc |
| 16798 | } |
| 16799 | if (iNdEx + skippy) > l { |
| 16800 | return io.ErrUnexpectedEOF |
| 16801 | } |
| 16802 | iNdEx += skippy |
| 16803 | } |
| 16804 | } |
| 16805 | |
| 16806 | if iNdEx > l { |
| 16807 | return io.ErrUnexpectedEOF |
| 16808 | } |
| 16809 | return nil |
| 16810 | } |
| 16811 | func (m *AuthUserChangePasswordRequest) Unmarshal(dAtA []byte) error { |
| 16812 | l := len(dAtA) |
| 16813 | iNdEx := 0 |
| 16814 | for iNdEx < l { |
| 16815 | preIndex := iNdEx |
| 16816 | var wire uint64 |
| 16817 | for shift := uint(0); ; shift += 7 { |
| 16818 | if shift >= 64 { |
| 16819 | return ErrIntOverflowRpc |
| 16820 | } |
| 16821 | if iNdEx >= l { |
| 16822 | return io.ErrUnexpectedEOF |
| 16823 | } |
| 16824 | b := dAtA[iNdEx] |
| 16825 | iNdEx++ |
| 16826 | wire |= (uint64(b) & 0x7F) << shift |
| 16827 | if b < 0x80 { |
| 16828 | break |
| 16829 | } |
| 16830 | } |
| 16831 | fieldNum := int32(wire >> 3) |
| 16832 | wireType := int(wire & 0x7) |
| 16833 | if wireType == 4 { |
| 16834 | return fmt.Errorf("proto: AuthUserChangePasswordRequest: wiretype end group for non-group") |
| 16835 | } |
| 16836 | if fieldNum <= 0 { |
| 16837 | return fmt.Errorf("proto: AuthUserChangePasswordRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16838 | } |
| 16839 | switch fieldNum { |
| 16840 | case 1: |
| 16841 | if wireType != 2 { |
| 16842 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 16843 | } |
| 16844 | var stringLen uint64 |
| 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++ |
| 16854 | stringLen |= (uint64(b) & 0x7F) << shift |
| 16855 | if b < 0x80 { |
| 16856 | break |
| 16857 | } |
| 16858 | } |
| 16859 | intStringLen := int(stringLen) |
| 16860 | if intStringLen < 0 { |
| 16861 | return ErrInvalidLengthRpc |
| 16862 | } |
| 16863 | postIndex := iNdEx + intStringLen |
| 16864 | if postIndex > l { |
| 16865 | return io.ErrUnexpectedEOF |
| 16866 | } |
| 16867 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 16868 | iNdEx = postIndex |
| 16869 | case 2: |
| 16870 | if wireType != 2 { |
| 16871 | return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) |
| 16872 | } |
| 16873 | var stringLen uint64 |
| 16874 | for shift := uint(0); ; shift += 7 { |
| 16875 | if shift >= 64 { |
| 16876 | return ErrIntOverflowRpc |
| 16877 | } |
| 16878 | if iNdEx >= l { |
| 16879 | return io.ErrUnexpectedEOF |
| 16880 | } |
| 16881 | b := dAtA[iNdEx] |
| 16882 | iNdEx++ |
| 16883 | stringLen |= (uint64(b) & 0x7F) << shift |
| 16884 | if b < 0x80 { |
| 16885 | break |
| 16886 | } |
| 16887 | } |
| 16888 | intStringLen := int(stringLen) |
| 16889 | if intStringLen < 0 { |
| 16890 | return ErrInvalidLengthRpc |
| 16891 | } |
| 16892 | postIndex := iNdEx + intStringLen |
| 16893 | if postIndex > l { |
| 16894 | return io.ErrUnexpectedEOF |
| 16895 | } |
| 16896 | m.Password = string(dAtA[iNdEx:postIndex]) |
| 16897 | iNdEx = postIndex |
| 16898 | default: |
| 16899 | iNdEx = preIndex |
| 16900 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16901 | if err != nil { |
| 16902 | return err |
| 16903 | } |
| 16904 | if skippy < 0 { |
| 16905 | return ErrInvalidLengthRpc |
| 16906 | } |
| 16907 | if (iNdEx + skippy) > l { |
| 16908 | return io.ErrUnexpectedEOF |
| 16909 | } |
| 16910 | iNdEx += skippy |
| 16911 | } |
| 16912 | } |
| 16913 | |
| 16914 | if iNdEx > l { |
| 16915 | return io.ErrUnexpectedEOF |
| 16916 | } |
| 16917 | return nil |
| 16918 | } |
| 16919 | func (m *AuthUserGrantRoleRequest) Unmarshal(dAtA []byte) error { |
| 16920 | l := len(dAtA) |
| 16921 | iNdEx := 0 |
| 16922 | for iNdEx < l { |
| 16923 | preIndex := iNdEx |
| 16924 | var wire uint64 |
| 16925 | for shift := uint(0); ; shift += 7 { |
| 16926 | if shift >= 64 { |
| 16927 | return ErrIntOverflowRpc |
| 16928 | } |
| 16929 | if iNdEx >= l { |
| 16930 | return io.ErrUnexpectedEOF |
| 16931 | } |
| 16932 | b := dAtA[iNdEx] |
| 16933 | iNdEx++ |
| 16934 | wire |= (uint64(b) & 0x7F) << shift |
| 16935 | if b < 0x80 { |
| 16936 | break |
| 16937 | } |
| 16938 | } |
| 16939 | fieldNum := int32(wire >> 3) |
| 16940 | wireType := int(wire & 0x7) |
| 16941 | if wireType == 4 { |
| 16942 | return fmt.Errorf("proto: AuthUserGrantRoleRequest: wiretype end group for non-group") |
| 16943 | } |
| 16944 | if fieldNum <= 0 { |
| 16945 | return fmt.Errorf("proto: AuthUserGrantRoleRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16946 | } |
| 16947 | switch fieldNum { |
| 16948 | case 1: |
| 16949 | if wireType != 2 { |
| 16950 | return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) |
| 16951 | } |
| 16952 | var stringLen uint64 |
| 16953 | for shift := uint(0); ; shift += 7 { |
| 16954 | if shift >= 64 { |
| 16955 | return ErrIntOverflowRpc |
| 16956 | } |
| 16957 | if iNdEx >= l { |
| 16958 | return io.ErrUnexpectedEOF |
| 16959 | } |
| 16960 | b := dAtA[iNdEx] |
| 16961 | iNdEx++ |
| 16962 | stringLen |= (uint64(b) & 0x7F) << shift |
| 16963 | if b < 0x80 { |
| 16964 | break |
| 16965 | } |
| 16966 | } |
| 16967 | intStringLen := int(stringLen) |
| 16968 | if intStringLen < 0 { |
| 16969 | return ErrInvalidLengthRpc |
| 16970 | } |
| 16971 | postIndex := iNdEx + intStringLen |
| 16972 | if postIndex > l { |
| 16973 | return io.ErrUnexpectedEOF |
| 16974 | } |
| 16975 | m.User = string(dAtA[iNdEx:postIndex]) |
| 16976 | iNdEx = postIndex |
| 16977 | case 2: |
| 16978 | if wireType != 2 { |
| 16979 | return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) |
| 16980 | } |
| 16981 | var stringLen uint64 |
| 16982 | for shift := uint(0); ; shift += 7 { |
| 16983 | if shift >= 64 { |
| 16984 | return ErrIntOverflowRpc |
| 16985 | } |
| 16986 | if iNdEx >= l { |
| 16987 | return io.ErrUnexpectedEOF |
| 16988 | } |
| 16989 | b := dAtA[iNdEx] |
| 16990 | iNdEx++ |
| 16991 | stringLen |= (uint64(b) & 0x7F) << shift |
| 16992 | if b < 0x80 { |
| 16993 | break |
| 16994 | } |
| 16995 | } |
| 16996 | intStringLen := int(stringLen) |
| 16997 | if intStringLen < 0 { |
| 16998 | return ErrInvalidLengthRpc |
| 16999 | } |
| 17000 | postIndex := iNdEx + intStringLen |
| 17001 | if postIndex > l { |
| 17002 | return io.ErrUnexpectedEOF |
| 17003 | } |
| 17004 | m.Role = string(dAtA[iNdEx:postIndex]) |
| 17005 | iNdEx = postIndex |
| 17006 | default: |
| 17007 | iNdEx = preIndex |
| 17008 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17009 | if err != nil { |
| 17010 | return err |
| 17011 | } |
| 17012 | if skippy < 0 { |
| 17013 | return ErrInvalidLengthRpc |
| 17014 | } |
| 17015 | if (iNdEx + skippy) > l { |
| 17016 | return io.ErrUnexpectedEOF |
| 17017 | } |
| 17018 | iNdEx += skippy |
| 17019 | } |
| 17020 | } |
| 17021 | |
| 17022 | if iNdEx > l { |
| 17023 | return io.ErrUnexpectedEOF |
| 17024 | } |
| 17025 | return nil |
| 17026 | } |
| 17027 | func (m *AuthUserRevokeRoleRequest) Unmarshal(dAtA []byte) error { |
| 17028 | l := len(dAtA) |
| 17029 | iNdEx := 0 |
| 17030 | for iNdEx < l { |
| 17031 | preIndex := iNdEx |
| 17032 | var wire uint64 |
| 17033 | for shift := uint(0); ; shift += 7 { |
| 17034 | if shift >= 64 { |
| 17035 | return ErrIntOverflowRpc |
| 17036 | } |
| 17037 | if iNdEx >= l { |
| 17038 | return io.ErrUnexpectedEOF |
| 17039 | } |
| 17040 | b := dAtA[iNdEx] |
| 17041 | iNdEx++ |
| 17042 | wire |= (uint64(b) & 0x7F) << shift |
| 17043 | if b < 0x80 { |
| 17044 | break |
| 17045 | } |
| 17046 | } |
| 17047 | fieldNum := int32(wire >> 3) |
| 17048 | wireType := int(wire & 0x7) |
| 17049 | if wireType == 4 { |
| 17050 | return fmt.Errorf("proto: AuthUserRevokeRoleRequest: wiretype end group for non-group") |
| 17051 | } |
| 17052 | if fieldNum <= 0 { |
| 17053 | return fmt.Errorf("proto: AuthUserRevokeRoleRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17054 | } |
| 17055 | switch fieldNum { |
| 17056 | case 1: |
| 17057 | if wireType != 2 { |
| 17058 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 17059 | } |
| 17060 | var stringLen uint64 |
| 17061 | for shift := uint(0); ; shift += 7 { |
| 17062 | if shift >= 64 { |
| 17063 | return ErrIntOverflowRpc |
| 17064 | } |
| 17065 | if iNdEx >= l { |
| 17066 | return io.ErrUnexpectedEOF |
| 17067 | } |
| 17068 | b := dAtA[iNdEx] |
| 17069 | iNdEx++ |
| 17070 | stringLen |= (uint64(b) & 0x7F) << shift |
| 17071 | if b < 0x80 { |
| 17072 | break |
| 17073 | } |
| 17074 | } |
| 17075 | intStringLen := int(stringLen) |
| 17076 | if intStringLen < 0 { |
| 17077 | return ErrInvalidLengthRpc |
| 17078 | } |
| 17079 | postIndex := iNdEx + intStringLen |
| 17080 | if postIndex > l { |
| 17081 | return io.ErrUnexpectedEOF |
| 17082 | } |
| 17083 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 17084 | iNdEx = postIndex |
| 17085 | case 2: |
| 17086 | if wireType != 2 { |
| 17087 | return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) |
| 17088 | } |
| 17089 | var stringLen uint64 |
| 17090 | for shift := uint(0); ; shift += 7 { |
| 17091 | if shift >= 64 { |
| 17092 | return ErrIntOverflowRpc |
| 17093 | } |
| 17094 | if iNdEx >= l { |
| 17095 | return io.ErrUnexpectedEOF |
| 17096 | } |
| 17097 | b := dAtA[iNdEx] |
| 17098 | iNdEx++ |
| 17099 | stringLen |= (uint64(b) & 0x7F) << shift |
| 17100 | if b < 0x80 { |
| 17101 | break |
| 17102 | } |
| 17103 | } |
| 17104 | intStringLen := int(stringLen) |
| 17105 | if intStringLen < 0 { |
| 17106 | return ErrInvalidLengthRpc |
| 17107 | } |
| 17108 | postIndex := iNdEx + intStringLen |
| 17109 | if postIndex > l { |
| 17110 | return io.ErrUnexpectedEOF |
| 17111 | } |
| 17112 | m.Role = string(dAtA[iNdEx:postIndex]) |
| 17113 | iNdEx = postIndex |
| 17114 | default: |
| 17115 | iNdEx = preIndex |
| 17116 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17117 | if err != nil { |
| 17118 | return err |
| 17119 | } |
| 17120 | if skippy < 0 { |
| 17121 | return ErrInvalidLengthRpc |
| 17122 | } |
| 17123 | if (iNdEx + skippy) > l { |
| 17124 | return io.ErrUnexpectedEOF |
| 17125 | } |
| 17126 | iNdEx += skippy |
| 17127 | } |
| 17128 | } |
| 17129 | |
| 17130 | if iNdEx > l { |
| 17131 | return io.ErrUnexpectedEOF |
| 17132 | } |
| 17133 | return nil |
| 17134 | } |
| 17135 | func (m *AuthRoleAddRequest) Unmarshal(dAtA []byte) error { |
| 17136 | l := len(dAtA) |
| 17137 | iNdEx := 0 |
| 17138 | for iNdEx < l { |
| 17139 | preIndex := iNdEx |
| 17140 | var wire uint64 |
| 17141 | for shift := uint(0); ; shift += 7 { |
| 17142 | if shift >= 64 { |
| 17143 | return ErrIntOverflowRpc |
| 17144 | } |
| 17145 | if iNdEx >= l { |
| 17146 | return io.ErrUnexpectedEOF |
| 17147 | } |
| 17148 | b := dAtA[iNdEx] |
| 17149 | iNdEx++ |
| 17150 | wire |= (uint64(b) & 0x7F) << shift |
| 17151 | if b < 0x80 { |
| 17152 | break |
| 17153 | } |
| 17154 | } |
| 17155 | fieldNum := int32(wire >> 3) |
| 17156 | wireType := int(wire & 0x7) |
| 17157 | if wireType == 4 { |
| 17158 | return fmt.Errorf("proto: AuthRoleAddRequest: wiretype end group for non-group") |
| 17159 | } |
| 17160 | if fieldNum <= 0 { |
| 17161 | return fmt.Errorf("proto: AuthRoleAddRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17162 | } |
| 17163 | switch fieldNum { |
| 17164 | case 1: |
| 17165 | if wireType != 2 { |
| 17166 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 17167 | } |
| 17168 | var stringLen uint64 |
| 17169 | for shift := uint(0); ; shift += 7 { |
| 17170 | if shift >= 64 { |
| 17171 | return ErrIntOverflowRpc |
| 17172 | } |
| 17173 | if iNdEx >= l { |
| 17174 | return io.ErrUnexpectedEOF |
| 17175 | } |
| 17176 | b := dAtA[iNdEx] |
| 17177 | iNdEx++ |
| 17178 | stringLen |= (uint64(b) & 0x7F) << shift |
| 17179 | if b < 0x80 { |
| 17180 | break |
| 17181 | } |
| 17182 | } |
| 17183 | intStringLen := int(stringLen) |
| 17184 | if intStringLen < 0 { |
| 17185 | return ErrInvalidLengthRpc |
| 17186 | } |
| 17187 | postIndex := iNdEx + intStringLen |
| 17188 | if postIndex > l { |
| 17189 | return io.ErrUnexpectedEOF |
| 17190 | } |
| 17191 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 17192 | iNdEx = postIndex |
| 17193 | default: |
| 17194 | iNdEx = preIndex |
| 17195 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17196 | if err != nil { |
| 17197 | return err |
| 17198 | } |
| 17199 | if skippy < 0 { |
| 17200 | return ErrInvalidLengthRpc |
| 17201 | } |
| 17202 | if (iNdEx + skippy) > l { |
| 17203 | return io.ErrUnexpectedEOF |
| 17204 | } |
| 17205 | iNdEx += skippy |
| 17206 | } |
| 17207 | } |
| 17208 | |
| 17209 | if iNdEx > l { |
| 17210 | return io.ErrUnexpectedEOF |
| 17211 | } |
| 17212 | return nil |
| 17213 | } |
| 17214 | func (m *AuthRoleGetRequest) Unmarshal(dAtA []byte) error { |
| 17215 | l := len(dAtA) |
| 17216 | iNdEx := 0 |
| 17217 | for iNdEx < l { |
| 17218 | preIndex := iNdEx |
| 17219 | var wire uint64 |
| 17220 | for shift := uint(0); ; shift += 7 { |
| 17221 | if shift >= 64 { |
| 17222 | return ErrIntOverflowRpc |
| 17223 | } |
| 17224 | if iNdEx >= l { |
| 17225 | return io.ErrUnexpectedEOF |
| 17226 | } |
| 17227 | b := dAtA[iNdEx] |
| 17228 | iNdEx++ |
| 17229 | wire |= (uint64(b) & 0x7F) << shift |
| 17230 | if b < 0x80 { |
| 17231 | break |
| 17232 | } |
| 17233 | } |
| 17234 | fieldNum := int32(wire >> 3) |
| 17235 | wireType := int(wire & 0x7) |
| 17236 | if wireType == 4 { |
| 17237 | return fmt.Errorf("proto: AuthRoleGetRequest: wiretype end group for non-group") |
| 17238 | } |
| 17239 | if fieldNum <= 0 { |
| 17240 | return fmt.Errorf("proto: AuthRoleGetRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17241 | } |
| 17242 | switch fieldNum { |
| 17243 | case 1: |
| 17244 | if wireType != 2 { |
| 17245 | return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) |
| 17246 | } |
| 17247 | var stringLen uint64 |
| 17248 | for shift := uint(0); ; shift += 7 { |
| 17249 | if shift >= 64 { |
| 17250 | return ErrIntOverflowRpc |
| 17251 | } |
| 17252 | if iNdEx >= l { |
| 17253 | return io.ErrUnexpectedEOF |
| 17254 | } |
| 17255 | b := dAtA[iNdEx] |
| 17256 | iNdEx++ |
| 17257 | stringLen |= (uint64(b) & 0x7F) << shift |
| 17258 | if b < 0x80 { |
| 17259 | break |
| 17260 | } |
| 17261 | } |
| 17262 | intStringLen := int(stringLen) |
| 17263 | if intStringLen < 0 { |
| 17264 | return ErrInvalidLengthRpc |
| 17265 | } |
| 17266 | postIndex := iNdEx + intStringLen |
| 17267 | if postIndex > l { |
| 17268 | return io.ErrUnexpectedEOF |
| 17269 | } |
| 17270 | m.Role = string(dAtA[iNdEx:postIndex]) |
| 17271 | iNdEx = postIndex |
| 17272 | default: |
| 17273 | iNdEx = preIndex |
| 17274 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17275 | if err != nil { |
| 17276 | return err |
| 17277 | } |
| 17278 | if skippy < 0 { |
| 17279 | return ErrInvalidLengthRpc |
| 17280 | } |
| 17281 | if (iNdEx + skippy) > l { |
| 17282 | return io.ErrUnexpectedEOF |
| 17283 | } |
| 17284 | iNdEx += skippy |
| 17285 | } |
| 17286 | } |
| 17287 | |
| 17288 | if iNdEx > l { |
| 17289 | return io.ErrUnexpectedEOF |
| 17290 | } |
| 17291 | return nil |
| 17292 | } |
| 17293 | func (m *AuthUserListRequest) Unmarshal(dAtA []byte) error { |
| 17294 | l := len(dAtA) |
| 17295 | iNdEx := 0 |
| 17296 | for iNdEx < l { |
| 17297 | preIndex := iNdEx |
| 17298 | var wire uint64 |
| 17299 | for shift := uint(0); ; shift += 7 { |
| 17300 | if shift >= 64 { |
| 17301 | return ErrIntOverflowRpc |
| 17302 | } |
| 17303 | if iNdEx >= l { |
| 17304 | return io.ErrUnexpectedEOF |
| 17305 | } |
| 17306 | b := dAtA[iNdEx] |
| 17307 | iNdEx++ |
| 17308 | wire |= (uint64(b) & 0x7F) << shift |
| 17309 | if b < 0x80 { |
| 17310 | break |
| 17311 | } |
| 17312 | } |
| 17313 | fieldNum := int32(wire >> 3) |
| 17314 | wireType := int(wire & 0x7) |
| 17315 | if wireType == 4 { |
| 17316 | return fmt.Errorf("proto: AuthUserListRequest: wiretype end group for non-group") |
| 17317 | } |
| 17318 | if fieldNum <= 0 { |
| 17319 | return fmt.Errorf("proto: AuthUserListRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17320 | } |
| 17321 | switch fieldNum { |
| 17322 | default: |
| 17323 | iNdEx = preIndex |
| 17324 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17325 | if err != nil { |
| 17326 | return err |
| 17327 | } |
| 17328 | if skippy < 0 { |
| 17329 | return ErrInvalidLengthRpc |
| 17330 | } |
| 17331 | if (iNdEx + skippy) > l { |
| 17332 | return io.ErrUnexpectedEOF |
| 17333 | } |
| 17334 | iNdEx += skippy |
| 17335 | } |
| 17336 | } |
| 17337 | |
| 17338 | if iNdEx > l { |
| 17339 | return io.ErrUnexpectedEOF |
| 17340 | } |
| 17341 | return nil |
| 17342 | } |
| 17343 | func (m *AuthRoleListRequest) Unmarshal(dAtA []byte) error { |
| 17344 | l := len(dAtA) |
| 17345 | iNdEx := 0 |
| 17346 | for iNdEx < l { |
| 17347 | preIndex := iNdEx |
| 17348 | var wire uint64 |
| 17349 | for shift := uint(0); ; shift += 7 { |
| 17350 | if shift >= 64 { |
| 17351 | return ErrIntOverflowRpc |
| 17352 | } |
| 17353 | if iNdEx >= l { |
| 17354 | return io.ErrUnexpectedEOF |
| 17355 | } |
| 17356 | b := dAtA[iNdEx] |
| 17357 | iNdEx++ |
| 17358 | wire |= (uint64(b) & 0x7F) << shift |
| 17359 | if b < 0x80 { |
| 17360 | break |
| 17361 | } |
| 17362 | } |
| 17363 | fieldNum := int32(wire >> 3) |
| 17364 | wireType := int(wire & 0x7) |
| 17365 | if wireType == 4 { |
| 17366 | return fmt.Errorf("proto: AuthRoleListRequest: wiretype end group for non-group") |
| 17367 | } |
| 17368 | if fieldNum <= 0 { |
| 17369 | return fmt.Errorf("proto: AuthRoleListRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17370 | } |
| 17371 | switch fieldNum { |
| 17372 | default: |
| 17373 | iNdEx = preIndex |
| 17374 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17375 | if err != nil { |
| 17376 | return err |
| 17377 | } |
| 17378 | if skippy < 0 { |
| 17379 | return ErrInvalidLengthRpc |
| 17380 | } |
| 17381 | if (iNdEx + skippy) > l { |
| 17382 | return io.ErrUnexpectedEOF |
| 17383 | } |
| 17384 | iNdEx += skippy |
| 17385 | } |
| 17386 | } |
| 17387 | |
| 17388 | if iNdEx > l { |
| 17389 | return io.ErrUnexpectedEOF |
| 17390 | } |
| 17391 | return nil |
| 17392 | } |
| 17393 | func (m *AuthRoleDeleteRequest) Unmarshal(dAtA []byte) error { |
| 17394 | l := len(dAtA) |
| 17395 | iNdEx := 0 |
| 17396 | for iNdEx < l { |
| 17397 | preIndex := iNdEx |
| 17398 | var wire uint64 |
| 17399 | for shift := uint(0); ; shift += 7 { |
| 17400 | if shift >= 64 { |
| 17401 | return ErrIntOverflowRpc |
| 17402 | } |
| 17403 | if iNdEx >= l { |
| 17404 | return io.ErrUnexpectedEOF |
| 17405 | } |
| 17406 | b := dAtA[iNdEx] |
| 17407 | iNdEx++ |
| 17408 | wire |= (uint64(b) & 0x7F) << shift |
| 17409 | if b < 0x80 { |
| 17410 | break |
| 17411 | } |
| 17412 | } |
| 17413 | fieldNum := int32(wire >> 3) |
| 17414 | wireType := int(wire & 0x7) |
| 17415 | if wireType == 4 { |
| 17416 | return fmt.Errorf("proto: AuthRoleDeleteRequest: wiretype end group for non-group") |
| 17417 | } |
| 17418 | if fieldNum <= 0 { |
| 17419 | return fmt.Errorf("proto: AuthRoleDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17420 | } |
| 17421 | switch fieldNum { |
| 17422 | case 1: |
| 17423 | if wireType != 2 { |
| 17424 | return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) |
| 17425 | } |
| 17426 | var stringLen uint64 |
| 17427 | for shift := uint(0); ; shift += 7 { |
| 17428 | if shift >= 64 { |
| 17429 | return ErrIntOverflowRpc |
| 17430 | } |
| 17431 | if iNdEx >= l { |
| 17432 | return io.ErrUnexpectedEOF |
| 17433 | } |
| 17434 | b := dAtA[iNdEx] |
| 17435 | iNdEx++ |
| 17436 | stringLen |= (uint64(b) & 0x7F) << shift |
| 17437 | if b < 0x80 { |
| 17438 | break |
| 17439 | } |
| 17440 | } |
| 17441 | intStringLen := int(stringLen) |
| 17442 | if intStringLen < 0 { |
| 17443 | return ErrInvalidLengthRpc |
| 17444 | } |
| 17445 | postIndex := iNdEx + intStringLen |
| 17446 | if postIndex > l { |
| 17447 | return io.ErrUnexpectedEOF |
| 17448 | } |
| 17449 | m.Role = string(dAtA[iNdEx:postIndex]) |
| 17450 | iNdEx = postIndex |
| 17451 | default: |
| 17452 | iNdEx = preIndex |
| 17453 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17454 | if err != nil { |
| 17455 | return err |
| 17456 | } |
| 17457 | if skippy < 0 { |
| 17458 | return ErrInvalidLengthRpc |
| 17459 | } |
| 17460 | if (iNdEx + skippy) > l { |
| 17461 | return io.ErrUnexpectedEOF |
| 17462 | } |
| 17463 | iNdEx += skippy |
| 17464 | } |
| 17465 | } |
| 17466 | |
| 17467 | if iNdEx > l { |
| 17468 | return io.ErrUnexpectedEOF |
| 17469 | } |
| 17470 | return nil |
| 17471 | } |
| 17472 | func (m *AuthRoleGrantPermissionRequest) Unmarshal(dAtA []byte) error { |
| 17473 | l := len(dAtA) |
| 17474 | iNdEx := 0 |
| 17475 | for iNdEx < l { |
| 17476 | preIndex := iNdEx |
| 17477 | var wire uint64 |
| 17478 | for shift := uint(0); ; shift += 7 { |
| 17479 | if shift >= 64 { |
| 17480 | return ErrIntOverflowRpc |
| 17481 | } |
| 17482 | if iNdEx >= l { |
| 17483 | return io.ErrUnexpectedEOF |
| 17484 | } |
| 17485 | b := dAtA[iNdEx] |
| 17486 | iNdEx++ |
| 17487 | wire |= (uint64(b) & 0x7F) << shift |
| 17488 | if b < 0x80 { |
| 17489 | break |
| 17490 | } |
| 17491 | } |
| 17492 | fieldNum := int32(wire >> 3) |
| 17493 | wireType := int(wire & 0x7) |
| 17494 | if wireType == 4 { |
| 17495 | return fmt.Errorf("proto: AuthRoleGrantPermissionRequest: wiretype end group for non-group") |
| 17496 | } |
| 17497 | if fieldNum <= 0 { |
| 17498 | return fmt.Errorf("proto: AuthRoleGrantPermissionRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17499 | } |
| 17500 | switch fieldNum { |
| 17501 | case 1: |
| 17502 | if wireType != 2 { |
| 17503 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 17504 | } |
| 17505 | var stringLen uint64 |
| 17506 | for shift := uint(0); ; shift += 7 { |
| 17507 | if shift >= 64 { |
| 17508 | return ErrIntOverflowRpc |
| 17509 | } |
| 17510 | if iNdEx >= l { |
| 17511 | return io.ErrUnexpectedEOF |
| 17512 | } |
| 17513 | b := dAtA[iNdEx] |
| 17514 | iNdEx++ |
| 17515 | stringLen |= (uint64(b) & 0x7F) << shift |
| 17516 | if b < 0x80 { |
| 17517 | break |
| 17518 | } |
| 17519 | } |
| 17520 | intStringLen := int(stringLen) |
| 17521 | if intStringLen < 0 { |
| 17522 | return ErrInvalidLengthRpc |
| 17523 | } |
| 17524 | postIndex := iNdEx + intStringLen |
| 17525 | if postIndex > l { |
| 17526 | return io.ErrUnexpectedEOF |
| 17527 | } |
| 17528 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 17529 | iNdEx = postIndex |
| 17530 | case 2: |
| 17531 | if wireType != 2 { |
| 17532 | return fmt.Errorf("proto: wrong wireType = %d for field Perm", wireType) |
| 17533 | } |
| 17534 | var msglen int |
| 17535 | for shift := uint(0); ; shift += 7 { |
| 17536 | if shift >= 64 { |
| 17537 | return ErrIntOverflowRpc |
| 17538 | } |
| 17539 | if iNdEx >= l { |
| 17540 | return io.ErrUnexpectedEOF |
| 17541 | } |
| 17542 | b := dAtA[iNdEx] |
| 17543 | iNdEx++ |
| 17544 | msglen |= (int(b) & 0x7F) << shift |
| 17545 | if b < 0x80 { |
| 17546 | break |
| 17547 | } |
| 17548 | } |
| 17549 | if msglen < 0 { |
| 17550 | return ErrInvalidLengthRpc |
| 17551 | } |
| 17552 | postIndex := iNdEx + msglen |
| 17553 | if postIndex > l { |
| 17554 | return io.ErrUnexpectedEOF |
| 17555 | } |
| 17556 | if m.Perm == nil { |
| 17557 | m.Perm = &authpb.Permission{} |
| 17558 | } |
| 17559 | if err := m.Perm.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 17560 | return err |
| 17561 | } |
| 17562 | iNdEx = postIndex |
| 17563 | default: |
| 17564 | iNdEx = preIndex |
| 17565 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17566 | if err != nil { |
| 17567 | return err |
| 17568 | } |
| 17569 | if skippy < 0 { |
| 17570 | return ErrInvalidLengthRpc |
| 17571 | } |
| 17572 | if (iNdEx + skippy) > l { |
| 17573 | return io.ErrUnexpectedEOF |
| 17574 | } |
| 17575 | iNdEx += skippy |
| 17576 | } |
| 17577 | } |
| 17578 | |
| 17579 | if iNdEx > l { |
| 17580 | return io.ErrUnexpectedEOF |
| 17581 | } |
| 17582 | return nil |
| 17583 | } |
| 17584 | func (m *AuthRoleRevokePermissionRequest) Unmarshal(dAtA []byte) error { |
| 17585 | l := len(dAtA) |
| 17586 | iNdEx := 0 |
| 17587 | for iNdEx < l { |
| 17588 | preIndex := iNdEx |
| 17589 | var wire uint64 |
| 17590 | for shift := uint(0); ; shift += 7 { |
| 17591 | if shift >= 64 { |
| 17592 | return ErrIntOverflowRpc |
| 17593 | } |
| 17594 | if iNdEx >= l { |
| 17595 | return io.ErrUnexpectedEOF |
| 17596 | } |
| 17597 | b := dAtA[iNdEx] |
| 17598 | iNdEx++ |
| 17599 | wire |= (uint64(b) & 0x7F) << shift |
| 17600 | if b < 0x80 { |
| 17601 | break |
| 17602 | } |
| 17603 | } |
| 17604 | fieldNum := int32(wire >> 3) |
| 17605 | wireType := int(wire & 0x7) |
| 17606 | if wireType == 4 { |
| 17607 | return fmt.Errorf("proto: AuthRoleRevokePermissionRequest: wiretype end group for non-group") |
| 17608 | } |
| 17609 | if fieldNum <= 0 { |
| 17610 | return fmt.Errorf("proto: AuthRoleRevokePermissionRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17611 | } |
| 17612 | switch fieldNum { |
| 17613 | case 1: |
| 17614 | if wireType != 2 { |
| 17615 | return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) |
| 17616 | } |
| 17617 | var stringLen uint64 |
| 17618 | for shift := uint(0); ; shift += 7 { |
| 17619 | if shift >= 64 { |
| 17620 | return ErrIntOverflowRpc |
| 17621 | } |
| 17622 | if iNdEx >= l { |
| 17623 | return io.ErrUnexpectedEOF |
| 17624 | } |
| 17625 | b := dAtA[iNdEx] |
| 17626 | iNdEx++ |
| 17627 | stringLen |= (uint64(b) & 0x7F) << shift |
| 17628 | if b < 0x80 { |
| 17629 | break |
| 17630 | } |
| 17631 | } |
| 17632 | intStringLen := int(stringLen) |
| 17633 | if intStringLen < 0 { |
| 17634 | return ErrInvalidLengthRpc |
| 17635 | } |
| 17636 | postIndex := iNdEx + intStringLen |
| 17637 | if postIndex > l { |
| 17638 | return io.ErrUnexpectedEOF |
| 17639 | } |
| 17640 | m.Role = string(dAtA[iNdEx:postIndex]) |
| 17641 | iNdEx = postIndex |
| 17642 | case 2: |
| 17643 | if wireType != 2 { |
| 17644 | return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| 17645 | } |
| 17646 | var byteLen int |
| 17647 | for shift := uint(0); ; shift += 7 { |
| 17648 | if shift >= 64 { |
| 17649 | return ErrIntOverflowRpc |
| 17650 | } |
| 17651 | if iNdEx >= l { |
| 17652 | return io.ErrUnexpectedEOF |
| 17653 | } |
| 17654 | b := dAtA[iNdEx] |
| 17655 | iNdEx++ |
| 17656 | byteLen |= (int(b) & 0x7F) << shift |
| 17657 | if b < 0x80 { |
| 17658 | break |
| 17659 | } |
| 17660 | } |
| 17661 | if byteLen < 0 { |
| 17662 | return ErrInvalidLengthRpc |
| 17663 | } |
| 17664 | postIndex := iNdEx + byteLen |
| 17665 | if postIndex > l { |
| 17666 | return io.ErrUnexpectedEOF |
| 17667 | } |
| 17668 | m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) |
| 17669 | if m.Key == nil { |
| 17670 | m.Key = []byte{} |
| 17671 | } |
| 17672 | iNdEx = postIndex |
| 17673 | case 3: |
| 17674 | if wireType != 2 { |
| 17675 | return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType) |
| 17676 | } |
| 17677 | var byteLen int |
| 17678 | for shift := uint(0); ; shift += 7 { |
| 17679 | if shift >= 64 { |
| 17680 | return ErrIntOverflowRpc |
| 17681 | } |
| 17682 | if iNdEx >= l { |
| 17683 | return io.ErrUnexpectedEOF |
| 17684 | } |
| 17685 | b := dAtA[iNdEx] |
| 17686 | iNdEx++ |
| 17687 | byteLen |= (int(b) & 0x7F) << shift |
| 17688 | if b < 0x80 { |
| 17689 | break |
| 17690 | } |
| 17691 | } |
| 17692 | if byteLen < 0 { |
| 17693 | return ErrInvalidLengthRpc |
| 17694 | } |
| 17695 | postIndex := iNdEx + byteLen |
| 17696 | if postIndex > l { |
| 17697 | return io.ErrUnexpectedEOF |
| 17698 | } |
| 17699 | m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...) |
| 17700 | if m.RangeEnd == nil { |
| 17701 | m.RangeEnd = []byte{} |
| 17702 | } |
| 17703 | iNdEx = postIndex |
| 17704 | default: |
| 17705 | iNdEx = preIndex |
| 17706 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17707 | if err != nil { |
| 17708 | return err |
| 17709 | } |
| 17710 | if skippy < 0 { |
| 17711 | return ErrInvalidLengthRpc |
| 17712 | } |
| 17713 | if (iNdEx + skippy) > l { |
| 17714 | return io.ErrUnexpectedEOF |
| 17715 | } |
| 17716 | iNdEx += skippy |
| 17717 | } |
| 17718 | } |
| 17719 | |
| 17720 | if iNdEx > l { |
| 17721 | return io.ErrUnexpectedEOF |
| 17722 | } |
| 17723 | return nil |
| 17724 | } |
| 17725 | func (m *AuthEnableResponse) Unmarshal(dAtA []byte) error { |
| 17726 | l := len(dAtA) |
| 17727 | iNdEx := 0 |
| 17728 | for iNdEx < l { |
| 17729 | preIndex := iNdEx |
| 17730 | var wire uint64 |
| 17731 | for shift := uint(0); ; shift += 7 { |
| 17732 | if shift >= 64 { |
| 17733 | return ErrIntOverflowRpc |
| 17734 | } |
| 17735 | if iNdEx >= l { |
| 17736 | return io.ErrUnexpectedEOF |
| 17737 | } |
| 17738 | b := dAtA[iNdEx] |
| 17739 | iNdEx++ |
| 17740 | wire |= (uint64(b) & 0x7F) << shift |
| 17741 | if b < 0x80 { |
| 17742 | break |
| 17743 | } |
| 17744 | } |
| 17745 | fieldNum := int32(wire >> 3) |
| 17746 | wireType := int(wire & 0x7) |
| 17747 | if wireType == 4 { |
| 17748 | return fmt.Errorf("proto: AuthEnableResponse: wiretype end group for non-group") |
| 17749 | } |
| 17750 | if fieldNum <= 0 { |
| 17751 | return fmt.Errorf("proto: AuthEnableResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17752 | } |
| 17753 | switch fieldNum { |
| 17754 | case 1: |
| 17755 | if wireType != 2 { |
| 17756 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 17757 | } |
| 17758 | var msglen int |
| 17759 | for shift := uint(0); ; shift += 7 { |
| 17760 | if shift >= 64 { |
| 17761 | return ErrIntOverflowRpc |
| 17762 | } |
| 17763 | if iNdEx >= l { |
| 17764 | return io.ErrUnexpectedEOF |
| 17765 | } |
| 17766 | b := dAtA[iNdEx] |
| 17767 | iNdEx++ |
| 17768 | msglen |= (int(b) & 0x7F) << shift |
| 17769 | if b < 0x80 { |
| 17770 | break |
| 17771 | } |
| 17772 | } |
| 17773 | if msglen < 0 { |
| 17774 | return ErrInvalidLengthRpc |
| 17775 | } |
| 17776 | postIndex := iNdEx + msglen |
| 17777 | if postIndex > l { |
| 17778 | return io.ErrUnexpectedEOF |
| 17779 | } |
| 17780 | if m.Header == nil { |
| 17781 | m.Header = &ResponseHeader{} |
| 17782 | } |
| 17783 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 17784 | return err |
| 17785 | } |
| 17786 | iNdEx = postIndex |
| 17787 | default: |
| 17788 | iNdEx = preIndex |
| 17789 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17790 | if err != nil { |
| 17791 | return err |
| 17792 | } |
| 17793 | if skippy < 0 { |
| 17794 | return ErrInvalidLengthRpc |
| 17795 | } |
| 17796 | if (iNdEx + skippy) > l { |
| 17797 | return io.ErrUnexpectedEOF |
| 17798 | } |
| 17799 | iNdEx += skippy |
| 17800 | } |
| 17801 | } |
| 17802 | |
| 17803 | if iNdEx > l { |
| 17804 | return io.ErrUnexpectedEOF |
| 17805 | } |
| 17806 | return nil |
| 17807 | } |
| 17808 | func (m *AuthDisableResponse) Unmarshal(dAtA []byte) error { |
| 17809 | l := len(dAtA) |
| 17810 | iNdEx := 0 |
| 17811 | for iNdEx < l { |
| 17812 | preIndex := iNdEx |
| 17813 | var wire uint64 |
| 17814 | for shift := uint(0); ; shift += 7 { |
| 17815 | if shift >= 64 { |
| 17816 | return ErrIntOverflowRpc |
| 17817 | } |
| 17818 | if iNdEx >= l { |
| 17819 | return io.ErrUnexpectedEOF |
| 17820 | } |
| 17821 | b := dAtA[iNdEx] |
| 17822 | iNdEx++ |
| 17823 | wire |= (uint64(b) & 0x7F) << shift |
| 17824 | if b < 0x80 { |
| 17825 | break |
| 17826 | } |
| 17827 | } |
| 17828 | fieldNum := int32(wire >> 3) |
| 17829 | wireType := int(wire & 0x7) |
| 17830 | if wireType == 4 { |
| 17831 | return fmt.Errorf("proto: AuthDisableResponse: wiretype end group for non-group") |
| 17832 | } |
| 17833 | if fieldNum <= 0 { |
| 17834 | return fmt.Errorf("proto: AuthDisableResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17835 | } |
| 17836 | switch fieldNum { |
| 17837 | case 1: |
| 17838 | if wireType != 2 { |
| 17839 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 17840 | } |
| 17841 | var msglen int |
| 17842 | for shift := uint(0); ; shift += 7 { |
| 17843 | if shift >= 64 { |
| 17844 | return ErrIntOverflowRpc |
| 17845 | } |
| 17846 | if iNdEx >= l { |
| 17847 | return io.ErrUnexpectedEOF |
| 17848 | } |
| 17849 | b := dAtA[iNdEx] |
| 17850 | iNdEx++ |
| 17851 | msglen |= (int(b) & 0x7F) << shift |
| 17852 | if b < 0x80 { |
| 17853 | break |
| 17854 | } |
| 17855 | } |
| 17856 | if msglen < 0 { |
| 17857 | return ErrInvalidLengthRpc |
| 17858 | } |
| 17859 | postIndex := iNdEx + msglen |
| 17860 | if postIndex > l { |
| 17861 | return io.ErrUnexpectedEOF |
| 17862 | } |
| 17863 | if m.Header == nil { |
| 17864 | m.Header = &ResponseHeader{} |
| 17865 | } |
| 17866 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 17867 | return err |
| 17868 | } |
| 17869 | iNdEx = postIndex |
| 17870 | default: |
| 17871 | iNdEx = preIndex |
| 17872 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17873 | if err != nil { |
| 17874 | return err |
| 17875 | } |
| 17876 | if skippy < 0 { |
| 17877 | return ErrInvalidLengthRpc |
| 17878 | } |
| 17879 | if (iNdEx + skippy) > l { |
| 17880 | return io.ErrUnexpectedEOF |
| 17881 | } |
| 17882 | iNdEx += skippy |
| 17883 | } |
| 17884 | } |
| 17885 | |
| 17886 | if iNdEx > l { |
| 17887 | return io.ErrUnexpectedEOF |
| 17888 | } |
| 17889 | return nil |
| 17890 | } |
| 17891 | func (m *AuthenticateResponse) Unmarshal(dAtA []byte) error { |
| 17892 | l := len(dAtA) |
| 17893 | iNdEx := 0 |
| 17894 | for iNdEx < l { |
| 17895 | preIndex := iNdEx |
| 17896 | var wire uint64 |
| 17897 | for shift := uint(0); ; shift += 7 { |
| 17898 | if shift >= 64 { |
| 17899 | return ErrIntOverflowRpc |
| 17900 | } |
| 17901 | if iNdEx >= l { |
| 17902 | return io.ErrUnexpectedEOF |
| 17903 | } |
| 17904 | b := dAtA[iNdEx] |
| 17905 | iNdEx++ |
| 17906 | wire |= (uint64(b) & 0x7F) << shift |
| 17907 | if b < 0x80 { |
| 17908 | break |
| 17909 | } |
| 17910 | } |
| 17911 | fieldNum := int32(wire >> 3) |
| 17912 | wireType := int(wire & 0x7) |
| 17913 | if wireType == 4 { |
| 17914 | return fmt.Errorf("proto: AuthenticateResponse: wiretype end group for non-group") |
| 17915 | } |
| 17916 | if fieldNum <= 0 { |
| 17917 | return fmt.Errorf("proto: AuthenticateResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17918 | } |
| 17919 | switch fieldNum { |
| 17920 | case 1: |
| 17921 | if wireType != 2 { |
| 17922 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 17923 | } |
| 17924 | var msglen int |
| 17925 | for shift := uint(0); ; shift += 7 { |
| 17926 | if shift >= 64 { |
| 17927 | return ErrIntOverflowRpc |
| 17928 | } |
| 17929 | if iNdEx >= l { |
| 17930 | return io.ErrUnexpectedEOF |
| 17931 | } |
| 17932 | b := dAtA[iNdEx] |
| 17933 | iNdEx++ |
| 17934 | msglen |= (int(b) & 0x7F) << shift |
| 17935 | if b < 0x80 { |
| 17936 | break |
| 17937 | } |
| 17938 | } |
| 17939 | if msglen < 0 { |
| 17940 | return ErrInvalidLengthRpc |
| 17941 | } |
| 17942 | postIndex := iNdEx + msglen |
| 17943 | if postIndex > l { |
| 17944 | return io.ErrUnexpectedEOF |
| 17945 | } |
| 17946 | if m.Header == nil { |
| 17947 | m.Header = &ResponseHeader{} |
| 17948 | } |
| 17949 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 17950 | return err |
| 17951 | } |
| 17952 | iNdEx = postIndex |
| 17953 | case 2: |
| 17954 | if wireType != 2 { |
| 17955 | return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) |
| 17956 | } |
| 17957 | var stringLen uint64 |
| 17958 | for shift := uint(0); ; shift += 7 { |
| 17959 | if shift >= 64 { |
| 17960 | return ErrIntOverflowRpc |
| 17961 | } |
| 17962 | if iNdEx >= l { |
| 17963 | return io.ErrUnexpectedEOF |
| 17964 | } |
| 17965 | b := dAtA[iNdEx] |
| 17966 | iNdEx++ |
| 17967 | stringLen |= (uint64(b) & 0x7F) << shift |
| 17968 | if b < 0x80 { |
| 17969 | break |
| 17970 | } |
| 17971 | } |
| 17972 | intStringLen := int(stringLen) |
| 17973 | if intStringLen < 0 { |
| 17974 | return ErrInvalidLengthRpc |
| 17975 | } |
| 17976 | postIndex := iNdEx + intStringLen |
| 17977 | if postIndex > l { |
| 17978 | return io.ErrUnexpectedEOF |
| 17979 | } |
| 17980 | m.Token = string(dAtA[iNdEx:postIndex]) |
| 17981 | iNdEx = postIndex |
| 17982 | default: |
| 17983 | iNdEx = preIndex |
| 17984 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17985 | if err != nil { |
| 17986 | return err |
| 17987 | } |
| 17988 | if skippy < 0 { |
| 17989 | return ErrInvalidLengthRpc |
| 17990 | } |
| 17991 | if (iNdEx + skippy) > l { |
| 17992 | return io.ErrUnexpectedEOF |
| 17993 | } |
| 17994 | iNdEx += skippy |
| 17995 | } |
| 17996 | } |
| 17997 | |
| 17998 | if iNdEx > l { |
| 17999 | return io.ErrUnexpectedEOF |
| 18000 | } |
| 18001 | return nil |
| 18002 | } |
| 18003 | func (m *AuthUserAddResponse) Unmarshal(dAtA []byte) error { |
| 18004 | l := len(dAtA) |
| 18005 | iNdEx := 0 |
| 18006 | for iNdEx < l { |
| 18007 | preIndex := iNdEx |
| 18008 | var wire uint64 |
| 18009 | for shift := uint(0); ; shift += 7 { |
| 18010 | if shift >= 64 { |
| 18011 | return ErrIntOverflowRpc |
| 18012 | } |
| 18013 | if iNdEx >= l { |
| 18014 | return io.ErrUnexpectedEOF |
| 18015 | } |
| 18016 | b := dAtA[iNdEx] |
| 18017 | iNdEx++ |
| 18018 | wire |= (uint64(b) & 0x7F) << shift |
| 18019 | if b < 0x80 { |
| 18020 | break |
| 18021 | } |
| 18022 | } |
| 18023 | fieldNum := int32(wire >> 3) |
| 18024 | wireType := int(wire & 0x7) |
| 18025 | if wireType == 4 { |
| 18026 | return fmt.Errorf("proto: AuthUserAddResponse: wiretype end group for non-group") |
| 18027 | } |
| 18028 | if fieldNum <= 0 { |
| 18029 | return fmt.Errorf("proto: AuthUserAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18030 | } |
| 18031 | switch fieldNum { |
| 18032 | case 1: |
| 18033 | if wireType != 2 { |
| 18034 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 18035 | } |
| 18036 | var msglen int |
| 18037 | for shift := uint(0); ; shift += 7 { |
| 18038 | if shift >= 64 { |
| 18039 | return ErrIntOverflowRpc |
| 18040 | } |
| 18041 | if iNdEx >= l { |
| 18042 | return io.ErrUnexpectedEOF |
| 18043 | } |
| 18044 | b := dAtA[iNdEx] |
| 18045 | iNdEx++ |
| 18046 | msglen |= (int(b) & 0x7F) << shift |
| 18047 | if b < 0x80 { |
| 18048 | break |
| 18049 | } |
| 18050 | } |
| 18051 | if msglen < 0 { |
| 18052 | return ErrInvalidLengthRpc |
| 18053 | } |
| 18054 | postIndex := iNdEx + msglen |
| 18055 | if postIndex > l { |
| 18056 | return io.ErrUnexpectedEOF |
| 18057 | } |
| 18058 | if m.Header == nil { |
| 18059 | m.Header = &ResponseHeader{} |
| 18060 | } |
| 18061 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18062 | return err |
| 18063 | } |
| 18064 | iNdEx = postIndex |
| 18065 | default: |
| 18066 | iNdEx = preIndex |
| 18067 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18068 | if err != nil { |
| 18069 | return err |
| 18070 | } |
| 18071 | if skippy < 0 { |
| 18072 | return ErrInvalidLengthRpc |
| 18073 | } |
| 18074 | if (iNdEx + skippy) > l { |
| 18075 | return io.ErrUnexpectedEOF |
| 18076 | } |
| 18077 | iNdEx += skippy |
| 18078 | } |
| 18079 | } |
| 18080 | |
| 18081 | if iNdEx > l { |
| 18082 | return io.ErrUnexpectedEOF |
| 18083 | } |
| 18084 | return nil |
| 18085 | } |
| 18086 | func (m *AuthUserGetResponse) Unmarshal(dAtA []byte) error { |
| 18087 | l := len(dAtA) |
| 18088 | iNdEx := 0 |
| 18089 | for iNdEx < l { |
| 18090 | preIndex := iNdEx |
| 18091 | var wire uint64 |
| 18092 | for shift := uint(0); ; shift += 7 { |
| 18093 | if shift >= 64 { |
| 18094 | return ErrIntOverflowRpc |
| 18095 | } |
| 18096 | if iNdEx >= l { |
| 18097 | return io.ErrUnexpectedEOF |
| 18098 | } |
| 18099 | b := dAtA[iNdEx] |
| 18100 | iNdEx++ |
| 18101 | wire |= (uint64(b) & 0x7F) << shift |
| 18102 | if b < 0x80 { |
| 18103 | break |
| 18104 | } |
| 18105 | } |
| 18106 | fieldNum := int32(wire >> 3) |
| 18107 | wireType := int(wire & 0x7) |
| 18108 | if wireType == 4 { |
| 18109 | return fmt.Errorf("proto: AuthUserGetResponse: wiretype end group for non-group") |
| 18110 | } |
| 18111 | if fieldNum <= 0 { |
| 18112 | return fmt.Errorf("proto: AuthUserGetResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18113 | } |
| 18114 | switch fieldNum { |
| 18115 | case 1: |
| 18116 | if wireType != 2 { |
| 18117 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 18118 | } |
| 18119 | var msglen int |
| 18120 | for shift := uint(0); ; shift += 7 { |
| 18121 | if shift >= 64 { |
| 18122 | return ErrIntOverflowRpc |
| 18123 | } |
| 18124 | if iNdEx >= l { |
| 18125 | return io.ErrUnexpectedEOF |
| 18126 | } |
| 18127 | b := dAtA[iNdEx] |
| 18128 | iNdEx++ |
| 18129 | msglen |= (int(b) & 0x7F) << shift |
| 18130 | if b < 0x80 { |
| 18131 | break |
| 18132 | } |
| 18133 | } |
| 18134 | if msglen < 0 { |
| 18135 | return ErrInvalidLengthRpc |
| 18136 | } |
| 18137 | postIndex := iNdEx + msglen |
| 18138 | if postIndex > l { |
| 18139 | return io.ErrUnexpectedEOF |
| 18140 | } |
| 18141 | if m.Header == nil { |
| 18142 | m.Header = &ResponseHeader{} |
| 18143 | } |
| 18144 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18145 | return err |
| 18146 | } |
| 18147 | iNdEx = postIndex |
| 18148 | case 2: |
| 18149 | if wireType != 2 { |
| 18150 | return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType) |
| 18151 | } |
| 18152 | var stringLen uint64 |
| 18153 | for shift := uint(0); ; shift += 7 { |
| 18154 | if shift >= 64 { |
| 18155 | return ErrIntOverflowRpc |
| 18156 | } |
| 18157 | if iNdEx >= l { |
| 18158 | return io.ErrUnexpectedEOF |
| 18159 | } |
| 18160 | b := dAtA[iNdEx] |
| 18161 | iNdEx++ |
| 18162 | stringLen |= (uint64(b) & 0x7F) << shift |
| 18163 | if b < 0x80 { |
| 18164 | break |
| 18165 | } |
| 18166 | } |
| 18167 | intStringLen := int(stringLen) |
| 18168 | if intStringLen < 0 { |
| 18169 | return ErrInvalidLengthRpc |
| 18170 | } |
| 18171 | postIndex := iNdEx + intStringLen |
| 18172 | if postIndex > l { |
| 18173 | return io.ErrUnexpectedEOF |
| 18174 | } |
| 18175 | m.Roles = append(m.Roles, string(dAtA[iNdEx:postIndex])) |
| 18176 | iNdEx = postIndex |
| 18177 | default: |
| 18178 | iNdEx = preIndex |
| 18179 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18180 | if err != nil { |
| 18181 | return err |
| 18182 | } |
| 18183 | if skippy < 0 { |
| 18184 | return ErrInvalidLengthRpc |
| 18185 | } |
| 18186 | if (iNdEx + skippy) > l { |
| 18187 | return io.ErrUnexpectedEOF |
| 18188 | } |
| 18189 | iNdEx += skippy |
| 18190 | } |
| 18191 | } |
| 18192 | |
| 18193 | if iNdEx > l { |
| 18194 | return io.ErrUnexpectedEOF |
| 18195 | } |
| 18196 | return nil |
| 18197 | } |
| 18198 | func (m *AuthUserDeleteResponse) Unmarshal(dAtA []byte) error { |
| 18199 | l := len(dAtA) |
| 18200 | iNdEx := 0 |
| 18201 | for iNdEx < l { |
| 18202 | preIndex := iNdEx |
| 18203 | var wire uint64 |
| 18204 | for shift := uint(0); ; shift += 7 { |
| 18205 | if shift >= 64 { |
| 18206 | return ErrIntOverflowRpc |
| 18207 | } |
| 18208 | if iNdEx >= l { |
| 18209 | return io.ErrUnexpectedEOF |
| 18210 | } |
| 18211 | b := dAtA[iNdEx] |
| 18212 | iNdEx++ |
| 18213 | wire |= (uint64(b) & 0x7F) << shift |
| 18214 | if b < 0x80 { |
| 18215 | break |
| 18216 | } |
| 18217 | } |
| 18218 | fieldNum := int32(wire >> 3) |
| 18219 | wireType := int(wire & 0x7) |
| 18220 | if wireType == 4 { |
| 18221 | return fmt.Errorf("proto: AuthUserDeleteResponse: wiretype end group for non-group") |
| 18222 | } |
| 18223 | if fieldNum <= 0 { |
| 18224 | return fmt.Errorf("proto: AuthUserDeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18225 | } |
| 18226 | switch fieldNum { |
| 18227 | case 1: |
| 18228 | if wireType != 2 { |
| 18229 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 18230 | } |
| 18231 | var msglen int |
| 18232 | for shift := uint(0); ; shift += 7 { |
| 18233 | if shift >= 64 { |
| 18234 | return ErrIntOverflowRpc |
| 18235 | } |
| 18236 | if iNdEx >= l { |
| 18237 | return io.ErrUnexpectedEOF |
| 18238 | } |
| 18239 | b := dAtA[iNdEx] |
| 18240 | iNdEx++ |
| 18241 | msglen |= (int(b) & 0x7F) << shift |
| 18242 | if b < 0x80 { |
| 18243 | break |
| 18244 | } |
| 18245 | } |
| 18246 | if msglen < 0 { |
| 18247 | return ErrInvalidLengthRpc |
| 18248 | } |
| 18249 | postIndex := iNdEx + msglen |
| 18250 | if postIndex > l { |
| 18251 | return io.ErrUnexpectedEOF |
| 18252 | } |
| 18253 | if m.Header == nil { |
| 18254 | m.Header = &ResponseHeader{} |
| 18255 | } |
| 18256 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18257 | return err |
| 18258 | } |
| 18259 | iNdEx = postIndex |
| 18260 | default: |
| 18261 | iNdEx = preIndex |
| 18262 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18263 | if err != nil { |
| 18264 | return err |
| 18265 | } |
| 18266 | if skippy < 0 { |
| 18267 | return ErrInvalidLengthRpc |
| 18268 | } |
| 18269 | if (iNdEx + skippy) > l { |
| 18270 | return io.ErrUnexpectedEOF |
| 18271 | } |
| 18272 | iNdEx += skippy |
| 18273 | } |
| 18274 | } |
| 18275 | |
| 18276 | if iNdEx > l { |
| 18277 | return io.ErrUnexpectedEOF |
| 18278 | } |
| 18279 | return nil |
| 18280 | } |
| 18281 | func (m *AuthUserChangePasswordResponse) Unmarshal(dAtA []byte) error { |
| 18282 | l := len(dAtA) |
| 18283 | iNdEx := 0 |
| 18284 | for iNdEx < l { |
| 18285 | preIndex := iNdEx |
| 18286 | var wire uint64 |
| 18287 | for shift := uint(0); ; shift += 7 { |
| 18288 | if shift >= 64 { |
| 18289 | return ErrIntOverflowRpc |
| 18290 | } |
| 18291 | if iNdEx >= l { |
| 18292 | return io.ErrUnexpectedEOF |
| 18293 | } |
| 18294 | b := dAtA[iNdEx] |
| 18295 | iNdEx++ |
| 18296 | wire |= (uint64(b) & 0x7F) << shift |
| 18297 | if b < 0x80 { |
| 18298 | break |
| 18299 | } |
| 18300 | } |
| 18301 | fieldNum := int32(wire >> 3) |
| 18302 | wireType := int(wire & 0x7) |
| 18303 | if wireType == 4 { |
| 18304 | return fmt.Errorf("proto: AuthUserChangePasswordResponse: wiretype end group for non-group") |
| 18305 | } |
| 18306 | if fieldNum <= 0 { |
| 18307 | return fmt.Errorf("proto: AuthUserChangePasswordResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18308 | } |
| 18309 | switch fieldNum { |
| 18310 | case 1: |
| 18311 | if wireType != 2 { |
| 18312 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 18313 | } |
| 18314 | var msglen int |
| 18315 | for shift := uint(0); ; shift += 7 { |
| 18316 | if shift >= 64 { |
| 18317 | return ErrIntOverflowRpc |
| 18318 | } |
| 18319 | if iNdEx >= l { |
| 18320 | return io.ErrUnexpectedEOF |
| 18321 | } |
| 18322 | b := dAtA[iNdEx] |
| 18323 | iNdEx++ |
| 18324 | msglen |= (int(b) & 0x7F) << shift |
| 18325 | if b < 0x80 { |
| 18326 | break |
| 18327 | } |
| 18328 | } |
| 18329 | if msglen < 0 { |
| 18330 | return ErrInvalidLengthRpc |
| 18331 | } |
| 18332 | postIndex := iNdEx + msglen |
| 18333 | if postIndex > l { |
| 18334 | return io.ErrUnexpectedEOF |
| 18335 | } |
| 18336 | if m.Header == nil { |
| 18337 | m.Header = &ResponseHeader{} |
| 18338 | } |
| 18339 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18340 | return err |
| 18341 | } |
| 18342 | iNdEx = postIndex |
| 18343 | default: |
| 18344 | iNdEx = preIndex |
| 18345 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18346 | if err != nil { |
| 18347 | return err |
| 18348 | } |
| 18349 | if skippy < 0 { |
| 18350 | return ErrInvalidLengthRpc |
| 18351 | } |
| 18352 | if (iNdEx + skippy) > l { |
| 18353 | return io.ErrUnexpectedEOF |
| 18354 | } |
| 18355 | iNdEx += skippy |
| 18356 | } |
| 18357 | } |
| 18358 | |
| 18359 | if iNdEx > l { |
| 18360 | return io.ErrUnexpectedEOF |
| 18361 | } |
| 18362 | return nil |
| 18363 | } |
| 18364 | func (m *AuthUserGrantRoleResponse) Unmarshal(dAtA []byte) error { |
| 18365 | l := len(dAtA) |
| 18366 | iNdEx := 0 |
| 18367 | for iNdEx < l { |
| 18368 | preIndex := iNdEx |
| 18369 | var wire uint64 |
| 18370 | for shift := uint(0); ; shift += 7 { |
| 18371 | if shift >= 64 { |
| 18372 | return ErrIntOverflowRpc |
| 18373 | } |
| 18374 | if iNdEx >= l { |
| 18375 | return io.ErrUnexpectedEOF |
| 18376 | } |
| 18377 | b := dAtA[iNdEx] |
| 18378 | iNdEx++ |
| 18379 | wire |= (uint64(b) & 0x7F) << shift |
| 18380 | if b < 0x80 { |
| 18381 | break |
| 18382 | } |
| 18383 | } |
| 18384 | fieldNum := int32(wire >> 3) |
| 18385 | wireType := int(wire & 0x7) |
| 18386 | if wireType == 4 { |
| 18387 | return fmt.Errorf("proto: AuthUserGrantRoleResponse: wiretype end group for non-group") |
| 18388 | } |
| 18389 | if fieldNum <= 0 { |
| 18390 | return fmt.Errorf("proto: AuthUserGrantRoleResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18391 | } |
| 18392 | switch fieldNum { |
| 18393 | case 1: |
| 18394 | if wireType != 2 { |
| 18395 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 18396 | } |
| 18397 | var msglen int |
| 18398 | for shift := uint(0); ; shift += 7 { |
| 18399 | if shift >= 64 { |
| 18400 | return ErrIntOverflowRpc |
| 18401 | } |
| 18402 | if iNdEx >= l { |
| 18403 | return io.ErrUnexpectedEOF |
| 18404 | } |
| 18405 | b := dAtA[iNdEx] |
| 18406 | iNdEx++ |
| 18407 | msglen |= (int(b) & 0x7F) << shift |
| 18408 | if b < 0x80 { |
| 18409 | break |
| 18410 | } |
| 18411 | } |
| 18412 | if msglen < 0 { |
| 18413 | return ErrInvalidLengthRpc |
| 18414 | } |
| 18415 | postIndex := iNdEx + msglen |
| 18416 | if postIndex > l { |
| 18417 | return io.ErrUnexpectedEOF |
| 18418 | } |
| 18419 | if m.Header == nil { |
| 18420 | m.Header = &ResponseHeader{} |
| 18421 | } |
| 18422 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18423 | return err |
| 18424 | } |
| 18425 | iNdEx = postIndex |
| 18426 | default: |
| 18427 | iNdEx = preIndex |
| 18428 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18429 | if err != nil { |
| 18430 | return err |
| 18431 | } |
| 18432 | if skippy < 0 { |
| 18433 | return ErrInvalidLengthRpc |
| 18434 | } |
| 18435 | if (iNdEx + skippy) > l { |
| 18436 | return io.ErrUnexpectedEOF |
| 18437 | } |
| 18438 | iNdEx += skippy |
| 18439 | } |
| 18440 | } |
| 18441 | |
| 18442 | if iNdEx > l { |
| 18443 | return io.ErrUnexpectedEOF |
| 18444 | } |
| 18445 | return nil |
| 18446 | } |
| 18447 | func (m *AuthUserRevokeRoleResponse) Unmarshal(dAtA []byte) error { |
| 18448 | l := len(dAtA) |
| 18449 | iNdEx := 0 |
| 18450 | for iNdEx < l { |
| 18451 | preIndex := iNdEx |
| 18452 | var wire uint64 |
| 18453 | for shift := uint(0); ; shift += 7 { |
| 18454 | if shift >= 64 { |
| 18455 | return ErrIntOverflowRpc |
| 18456 | } |
| 18457 | if iNdEx >= l { |
| 18458 | return io.ErrUnexpectedEOF |
| 18459 | } |
| 18460 | b := dAtA[iNdEx] |
| 18461 | iNdEx++ |
| 18462 | wire |= (uint64(b) & 0x7F) << shift |
| 18463 | if b < 0x80 { |
| 18464 | break |
| 18465 | } |
| 18466 | } |
| 18467 | fieldNum := int32(wire >> 3) |
| 18468 | wireType := int(wire & 0x7) |
| 18469 | if wireType == 4 { |
| 18470 | return fmt.Errorf("proto: AuthUserRevokeRoleResponse: wiretype end group for non-group") |
| 18471 | } |
| 18472 | if fieldNum <= 0 { |
| 18473 | return fmt.Errorf("proto: AuthUserRevokeRoleResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18474 | } |
| 18475 | switch fieldNum { |
| 18476 | case 1: |
| 18477 | if wireType != 2 { |
| 18478 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 18479 | } |
| 18480 | var msglen int |
| 18481 | for shift := uint(0); ; shift += 7 { |
| 18482 | if shift >= 64 { |
| 18483 | return ErrIntOverflowRpc |
| 18484 | } |
| 18485 | if iNdEx >= l { |
| 18486 | return io.ErrUnexpectedEOF |
| 18487 | } |
| 18488 | b := dAtA[iNdEx] |
| 18489 | iNdEx++ |
| 18490 | msglen |= (int(b) & 0x7F) << shift |
| 18491 | if b < 0x80 { |
| 18492 | break |
| 18493 | } |
| 18494 | } |
| 18495 | if msglen < 0 { |
| 18496 | return ErrInvalidLengthRpc |
| 18497 | } |
| 18498 | postIndex := iNdEx + msglen |
| 18499 | if postIndex > l { |
| 18500 | return io.ErrUnexpectedEOF |
| 18501 | } |
| 18502 | if m.Header == nil { |
| 18503 | m.Header = &ResponseHeader{} |
| 18504 | } |
| 18505 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18506 | return err |
| 18507 | } |
| 18508 | iNdEx = postIndex |
| 18509 | default: |
| 18510 | iNdEx = preIndex |
| 18511 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18512 | if err != nil { |
| 18513 | return err |
| 18514 | } |
| 18515 | if skippy < 0 { |
| 18516 | return ErrInvalidLengthRpc |
| 18517 | } |
| 18518 | if (iNdEx + skippy) > l { |
| 18519 | return io.ErrUnexpectedEOF |
| 18520 | } |
| 18521 | iNdEx += skippy |
| 18522 | } |
| 18523 | } |
| 18524 | |
| 18525 | if iNdEx > l { |
| 18526 | return io.ErrUnexpectedEOF |
| 18527 | } |
| 18528 | return nil |
| 18529 | } |
| 18530 | func (m *AuthRoleAddResponse) Unmarshal(dAtA []byte) error { |
| 18531 | l := len(dAtA) |
| 18532 | iNdEx := 0 |
| 18533 | for iNdEx < l { |
| 18534 | preIndex := iNdEx |
| 18535 | var wire uint64 |
| 18536 | for shift := uint(0); ; shift += 7 { |
| 18537 | if shift >= 64 { |
| 18538 | return ErrIntOverflowRpc |
| 18539 | } |
| 18540 | if iNdEx >= l { |
| 18541 | return io.ErrUnexpectedEOF |
| 18542 | } |
| 18543 | b := dAtA[iNdEx] |
| 18544 | iNdEx++ |
| 18545 | wire |= (uint64(b) & 0x7F) << shift |
| 18546 | if b < 0x80 { |
| 18547 | break |
| 18548 | } |
| 18549 | } |
| 18550 | fieldNum := int32(wire >> 3) |
| 18551 | wireType := int(wire & 0x7) |
| 18552 | if wireType == 4 { |
| 18553 | return fmt.Errorf("proto: AuthRoleAddResponse: wiretype end group for non-group") |
| 18554 | } |
| 18555 | if fieldNum <= 0 { |
| 18556 | return fmt.Errorf("proto: AuthRoleAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18557 | } |
| 18558 | switch fieldNum { |
| 18559 | case 1: |
| 18560 | if wireType != 2 { |
| 18561 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 18562 | } |
| 18563 | var msglen int |
| 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++ |
| 18573 | msglen |= (int(b) & 0x7F) << shift |
| 18574 | if b < 0x80 { |
| 18575 | break |
| 18576 | } |
| 18577 | } |
| 18578 | if msglen < 0 { |
| 18579 | return ErrInvalidLengthRpc |
| 18580 | } |
| 18581 | postIndex := iNdEx + msglen |
| 18582 | if postIndex > l { |
| 18583 | return io.ErrUnexpectedEOF |
| 18584 | } |
| 18585 | if m.Header == nil { |
| 18586 | m.Header = &ResponseHeader{} |
| 18587 | } |
| 18588 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18589 | return err |
| 18590 | } |
| 18591 | iNdEx = postIndex |
| 18592 | default: |
| 18593 | iNdEx = preIndex |
| 18594 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18595 | if err != nil { |
| 18596 | return err |
| 18597 | } |
| 18598 | if skippy < 0 { |
| 18599 | return ErrInvalidLengthRpc |
| 18600 | } |
| 18601 | if (iNdEx + skippy) > l { |
| 18602 | return io.ErrUnexpectedEOF |
| 18603 | } |
| 18604 | iNdEx += skippy |
| 18605 | } |
| 18606 | } |
| 18607 | |
| 18608 | if iNdEx > l { |
| 18609 | return io.ErrUnexpectedEOF |
| 18610 | } |
| 18611 | return nil |
| 18612 | } |
| 18613 | func (m *AuthRoleGetResponse) Unmarshal(dAtA []byte) error { |
| 18614 | l := len(dAtA) |
| 18615 | iNdEx := 0 |
| 18616 | for iNdEx < l { |
| 18617 | preIndex := iNdEx |
| 18618 | var wire uint64 |
| 18619 | for shift := uint(0); ; shift += 7 { |
| 18620 | if shift >= 64 { |
| 18621 | return ErrIntOverflowRpc |
| 18622 | } |
| 18623 | if iNdEx >= l { |
| 18624 | return io.ErrUnexpectedEOF |
| 18625 | } |
| 18626 | b := dAtA[iNdEx] |
| 18627 | iNdEx++ |
| 18628 | wire |= (uint64(b) & 0x7F) << shift |
| 18629 | if b < 0x80 { |
| 18630 | break |
| 18631 | } |
| 18632 | } |
| 18633 | fieldNum := int32(wire >> 3) |
| 18634 | wireType := int(wire & 0x7) |
| 18635 | if wireType == 4 { |
| 18636 | return fmt.Errorf("proto: AuthRoleGetResponse: wiretype end group for non-group") |
| 18637 | } |
| 18638 | if fieldNum <= 0 { |
| 18639 | return fmt.Errorf("proto: AuthRoleGetResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18640 | } |
| 18641 | switch fieldNum { |
| 18642 | case 1: |
| 18643 | if wireType != 2 { |
| 18644 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 18645 | } |
| 18646 | var msglen int |
| 18647 | for shift := uint(0); ; shift += 7 { |
| 18648 | if shift >= 64 { |
| 18649 | return ErrIntOverflowRpc |
| 18650 | } |
| 18651 | if iNdEx >= l { |
| 18652 | return io.ErrUnexpectedEOF |
| 18653 | } |
| 18654 | b := dAtA[iNdEx] |
| 18655 | iNdEx++ |
| 18656 | msglen |= (int(b) & 0x7F) << shift |
| 18657 | if b < 0x80 { |
| 18658 | break |
| 18659 | } |
| 18660 | } |
| 18661 | if msglen < 0 { |
| 18662 | return ErrInvalidLengthRpc |
| 18663 | } |
| 18664 | postIndex := iNdEx + msglen |
| 18665 | if postIndex > l { |
| 18666 | return io.ErrUnexpectedEOF |
| 18667 | } |
| 18668 | if m.Header == nil { |
| 18669 | m.Header = &ResponseHeader{} |
| 18670 | } |
| 18671 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18672 | return err |
| 18673 | } |
| 18674 | iNdEx = postIndex |
| 18675 | case 2: |
| 18676 | if wireType != 2 { |
| 18677 | return fmt.Errorf("proto: wrong wireType = %d for field Perm", wireType) |
| 18678 | } |
| 18679 | var msglen int |
| 18680 | for shift := uint(0); ; shift += 7 { |
| 18681 | if shift >= 64 { |
| 18682 | return ErrIntOverflowRpc |
| 18683 | } |
| 18684 | if iNdEx >= l { |
| 18685 | return io.ErrUnexpectedEOF |
| 18686 | } |
| 18687 | b := dAtA[iNdEx] |
| 18688 | iNdEx++ |
| 18689 | msglen |= (int(b) & 0x7F) << shift |
| 18690 | if b < 0x80 { |
| 18691 | break |
| 18692 | } |
| 18693 | } |
| 18694 | if msglen < 0 { |
| 18695 | return ErrInvalidLengthRpc |
| 18696 | } |
| 18697 | postIndex := iNdEx + msglen |
| 18698 | if postIndex > l { |
| 18699 | return io.ErrUnexpectedEOF |
| 18700 | } |
| 18701 | m.Perm = append(m.Perm, &authpb.Permission{}) |
| 18702 | if err := m.Perm[len(m.Perm)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18703 | return err |
| 18704 | } |
| 18705 | iNdEx = postIndex |
| 18706 | default: |
| 18707 | iNdEx = preIndex |
| 18708 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18709 | if err != nil { |
| 18710 | return err |
| 18711 | } |
| 18712 | if skippy < 0 { |
| 18713 | return ErrInvalidLengthRpc |
| 18714 | } |
| 18715 | if (iNdEx + skippy) > l { |
| 18716 | return io.ErrUnexpectedEOF |
| 18717 | } |
| 18718 | iNdEx += skippy |
| 18719 | } |
| 18720 | } |
| 18721 | |
| 18722 | if iNdEx > l { |
| 18723 | return io.ErrUnexpectedEOF |
| 18724 | } |
| 18725 | return nil |
| 18726 | } |
| 18727 | func (m *AuthRoleListResponse) Unmarshal(dAtA []byte) error { |
| 18728 | l := len(dAtA) |
| 18729 | iNdEx := 0 |
| 18730 | for iNdEx < l { |
| 18731 | preIndex := iNdEx |
| 18732 | var wire uint64 |
| 18733 | for shift := uint(0); ; shift += 7 { |
| 18734 | if shift >= 64 { |
| 18735 | return ErrIntOverflowRpc |
| 18736 | } |
| 18737 | if iNdEx >= l { |
| 18738 | return io.ErrUnexpectedEOF |
| 18739 | } |
| 18740 | b := dAtA[iNdEx] |
| 18741 | iNdEx++ |
| 18742 | wire |= (uint64(b) & 0x7F) << shift |
| 18743 | if b < 0x80 { |
| 18744 | break |
| 18745 | } |
| 18746 | } |
| 18747 | fieldNum := int32(wire >> 3) |
| 18748 | wireType := int(wire & 0x7) |
| 18749 | if wireType == 4 { |
| 18750 | return fmt.Errorf("proto: AuthRoleListResponse: wiretype end group for non-group") |
| 18751 | } |
| 18752 | if fieldNum <= 0 { |
| 18753 | return fmt.Errorf("proto: AuthRoleListResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18754 | } |
| 18755 | switch fieldNum { |
| 18756 | case 1: |
| 18757 | if wireType != 2 { |
| 18758 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 18759 | } |
| 18760 | var msglen int |
| 18761 | for shift := uint(0); ; shift += 7 { |
| 18762 | if shift >= 64 { |
| 18763 | return ErrIntOverflowRpc |
| 18764 | } |
| 18765 | if iNdEx >= l { |
| 18766 | return io.ErrUnexpectedEOF |
| 18767 | } |
| 18768 | b := dAtA[iNdEx] |
| 18769 | iNdEx++ |
| 18770 | msglen |= (int(b) & 0x7F) << shift |
| 18771 | if b < 0x80 { |
| 18772 | break |
| 18773 | } |
| 18774 | } |
| 18775 | if msglen < 0 { |
| 18776 | return ErrInvalidLengthRpc |
| 18777 | } |
| 18778 | postIndex := iNdEx + msglen |
| 18779 | if postIndex > l { |
| 18780 | return io.ErrUnexpectedEOF |
| 18781 | } |
| 18782 | if m.Header == nil { |
| 18783 | m.Header = &ResponseHeader{} |
| 18784 | } |
| 18785 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18786 | return err |
| 18787 | } |
| 18788 | iNdEx = postIndex |
| 18789 | case 2: |
| 18790 | if wireType != 2 { |
| 18791 | return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType) |
| 18792 | } |
| 18793 | var stringLen uint64 |
| 18794 | for shift := uint(0); ; shift += 7 { |
| 18795 | if shift >= 64 { |
| 18796 | return ErrIntOverflowRpc |
| 18797 | } |
| 18798 | if iNdEx >= l { |
| 18799 | return io.ErrUnexpectedEOF |
| 18800 | } |
| 18801 | b := dAtA[iNdEx] |
| 18802 | iNdEx++ |
| 18803 | stringLen |= (uint64(b) & 0x7F) << shift |
| 18804 | if b < 0x80 { |
| 18805 | break |
| 18806 | } |
| 18807 | } |
| 18808 | intStringLen := int(stringLen) |
| 18809 | if intStringLen < 0 { |
| 18810 | return ErrInvalidLengthRpc |
| 18811 | } |
| 18812 | postIndex := iNdEx + intStringLen |
| 18813 | if postIndex > l { |
| 18814 | return io.ErrUnexpectedEOF |
| 18815 | } |
| 18816 | m.Roles = append(m.Roles, string(dAtA[iNdEx:postIndex])) |
| 18817 | iNdEx = postIndex |
| 18818 | default: |
| 18819 | iNdEx = preIndex |
| 18820 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18821 | if err != nil { |
| 18822 | return err |
| 18823 | } |
| 18824 | if skippy < 0 { |
| 18825 | return ErrInvalidLengthRpc |
| 18826 | } |
| 18827 | if (iNdEx + skippy) > l { |
| 18828 | return io.ErrUnexpectedEOF |
| 18829 | } |
| 18830 | iNdEx += skippy |
| 18831 | } |
| 18832 | } |
| 18833 | |
| 18834 | if iNdEx > l { |
| 18835 | return io.ErrUnexpectedEOF |
| 18836 | } |
| 18837 | return nil |
| 18838 | } |
| 18839 | func (m *AuthUserListResponse) Unmarshal(dAtA []byte) error { |
| 18840 | l := len(dAtA) |
| 18841 | iNdEx := 0 |
| 18842 | for iNdEx < l { |
| 18843 | preIndex := iNdEx |
| 18844 | var wire uint64 |
| 18845 | for shift := uint(0); ; shift += 7 { |
| 18846 | if shift >= 64 { |
| 18847 | return ErrIntOverflowRpc |
| 18848 | } |
| 18849 | if iNdEx >= l { |
| 18850 | return io.ErrUnexpectedEOF |
| 18851 | } |
| 18852 | b := dAtA[iNdEx] |
| 18853 | iNdEx++ |
| 18854 | wire |= (uint64(b) & 0x7F) << shift |
| 18855 | if b < 0x80 { |
| 18856 | break |
| 18857 | } |
| 18858 | } |
| 18859 | fieldNum := int32(wire >> 3) |
| 18860 | wireType := int(wire & 0x7) |
| 18861 | if wireType == 4 { |
| 18862 | return fmt.Errorf("proto: AuthUserListResponse: wiretype end group for non-group") |
| 18863 | } |
| 18864 | if fieldNum <= 0 { |
| 18865 | return fmt.Errorf("proto: AuthUserListResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18866 | } |
| 18867 | switch fieldNum { |
| 18868 | case 1: |
| 18869 | if wireType != 2 { |
| 18870 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 18871 | } |
| 18872 | var msglen int |
| 18873 | for shift := uint(0); ; shift += 7 { |
| 18874 | if shift >= 64 { |
| 18875 | return ErrIntOverflowRpc |
| 18876 | } |
| 18877 | if iNdEx >= l { |
| 18878 | return io.ErrUnexpectedEOF |
| 18879 | } |
| 18880 | b := dAtA[iNdEx] |
| 18881 | iNdEx++ |
| 18882 | msglen |= (int(b) & 0x7F) << shift |
| 18883 | if b < 0x80 { |
| 18884 | break |
| 18885 | } |
| 18886 | } |
| 18887 | if msglen < 0 { |
| 18888 | return ErrInvalidLengthRpc |
| 18889 | } |
| 18890 | postIndex := iNdEx + msglen |
| 18891 | if postIndex > l { |
| 18892 | return io.ErrUnexpectedEOF |
| 18893 | } |
| 18894 | if m.Header == nil { |
| 18895 | m.Header = &ResponseHeader{} |
| 18896 | } |
| 18897 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18898 | return err |
| 18899 | } |
| 18900 | iNdEx = postIndex |
| 18901 | case 2: |
| 18902 | if wireType != 2 { |
| 18903 | return fmt.Errorf("proto: wrong wireType = %d for field Users", wireType) |
| 18904 | } |
| 18905 | var stringLen uint64 |
| 18906 | for shift := uint(0); ; shift += 7 { |
| 18907 | if shift >= 64 { |
| 18908 | return ErrIntOverflowRpc |
| 18909 | } |
| 18910 | if iNdEx >= l { |
| 18911 | return io.ErrUnexpectedEOF |
| 18912 | } |
| 18913 | b := dAtA[iNdEx] |
| 18914 | iNdEx++ |
| 18915 | stringLen |= (uint64(b) & 0x7F) << shift |
| 18916 | if b < 0x80 { |
| 18917 | break |
| 18918 | } |
| 18919 | } |
| 18920 | intStringLen := int(stringLen) |
| 18921 | if intStringLen < 0 { |
| 18922 | return ErrInvalidLengthRpc |
| 18923 | } |
| 18924 | postIndex := iNdEx + intStringLen |
| 18925 | if postIndex > l { |
| 18926 | return io.ErrUnexpectedEOF |
| 18927 | } |
| 18928 | m.Users = append(m.Users, string(dAtA[iNdEx:postIndex])) |
| 18929 | iNdEx = postIndex |
| 18930 | default: |
| 18931 | iNdEx = preIndex |
| 18932 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18933 | if err != nil { |
| 18934 | return err |
| 18935 | } |
| 18936 | if skippy < 0 { |
| 18937 | return ErrInvalidLengthRpc |
| 18938 | } |
| 18939 | if (iNdEx + skippy) > l { |
| 18940 | return io.ErrUnexpectedEOF |
| 18941 | } |
| 18942 | iNdEx += skippy |
| 18943 | } |
| 18944 | } |
| 18945 | |
| 18946 | if iNdEx > l { |
| 18947 | return io.ErrUnexpectedEOF |
| 18948 | } |
| 18949 | return nil |
| 18950 | } |
| 18951 | func (m *AuthRoleDeleteResponse) Unmarshal(dAtA []byte) error { |
| 18952 | l := len(dAtA) |
| 18953 | iNdEx := 0 |
| 18954 | for iNdEx < l { |
| 18955 | preIndex := iNdEx |
| 18956 | var wire uint64 |
| 18957 | for shift := uint(0); ; shift += 7 { |
| 18958 | if shift >= 64 { |
| 18959 | return ErrIntOverflowRpc |
| 18960 | } |
| 18961 | if iNdEx >= l { |
| 18962 | return io.ErrUnexpectedEOF |
| 18963 | } |
| 18964 | b := dAtA[iNdEx] |
| 18965 | iNdEx++ |
| 18966 | wire |= (uint64(b) & 0x7F) << shift |
| 18967 | if b < 0x80 { |
| 18968 | break |
| 18969 | } |
| 18970 | } |
| 18971 | fieldNum := int32(wire >> 3) |
| 18972 | wireType := int(wire & 0x7) |
| 18973 | if wireType == 4 { |
| 18974 | return fmt.Errorf("proto: AuthRoleDeleteResponse: wiretype end group for non-group") |
| 18975 | } |
| 18976 | if fieldNum <= 0 { |
| 18977 | return fmt.Errorf("proto: AuthRoleDeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18978 | } |
| 18979 | switch fieldNum { |
| 18980 | case 1: |
| 18981 | if wireType != 2 { |
| 18982 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 18983 | } |
| 18984 | var msglen int |
| 18985 | for shift := uint(0); ; shift += 7 { |
| 18986 | if shift >= 64 { |
| 18987 | return ErrIntOverflowRpc |
| 18988 | } |
| 18989 | if iNdEx >= l { |
| 18990 | return io.ErrUnexpectedEOF |
| 18991 | } |
| 18992 | b := dAtA[iNdEx] |
| 18993 | iNdEx++ |
| 18994 | msglen |= (int(b) & 0x7F) << shift |
| 18995 | if b < 0x80 { |
| 18996 | break |
| 18997 | } |
| 18998 | } |
| 18999 | if msglen < 0 { |
| 19000 | return ErrInvalidLengthRpc |
| 19001 | } |
| 19002 | postIndex := iNdEx + msglen |
| 19003 | if postIndex > l { |
| 19004 | return io.ErrUnexpectedEOF |
| 19005 | } |
| 19006 | if m.Header == nil { |
| 19007 | m.Header = &ResponseHeader{} |
| 19008 | } |
| 19009 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 19010 | return err |
| 19011 | } |
| 19012 | iNdEx = postIndex |
| 19013 | default: |
| 19014 | iNdEx = preIndex |
| 19015 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 19016 | if err != nil { |
| 19017 | return err |
| 19018 | } |
| 19019 | if skippy < 0 { |
| 19020 | return ErrInvalidLengthRpc |
| 19021 | } |
| 19022 | if (iNdEx + skippy) > l { |
| 19023 | return io.ErrUnexpectedEOF |
| 19024 | } |
| 19025 | iNdEx += skippy |
| 19026 | } |
| 19027 | } |
| 19028 | |
| 19029 | if iNdEx > l { |
| 19030 | return io.ErrUnexpectedEOF |
| 19031 | } |
| 19032 | return nil |
| 19033 | } |
| 19034 | func (m *AuthRoleGrantPermissionResponse) Unmarshal(dAtA []byte) error { |
| 19035 | l := len(dAtA) |
| 19036 | iNdEx := 0 |
| 19037 | for iNdEx < l { |
| 19038 | preIndex := iNdEx |
| 19039 | var wire uint64 |
| 19040 | for shift := uint(0); ; shift += 7 { |
| 19041 | if shift >= 64 { |
| 19042 | return ErrIntOverflowRpc |
| 19043 | } |
| 19044 | if iNdEx >= l { |
| 19045 | return io.ErrUnexpectedEOF |
| 19046 | } |
| 19047 | b := dAtA[iNdEx] |
| 19048 | iNdEx++ |
| 19049 | wire |= (uint64(b) & 0x7F) << shift |
| 19050 | if b < 0x80 { |
| 19051 | break |
| 19052 | } |
| 19053 | } |
| 19054 | fieldNum := int32(wire >> 3) |
| 19055 | wireType := int(wire & 0x7) |
| 19056 | if wireType == 4 { |
| 19057 | return fmt.Errorf("proto: AuthRoleGrantPermissionResponse: wiretype end group for non-group") |
| 19058 | } |
| 19059 | if fieldNum <= 0 { |
| 19060 | return fmt.Errorf("proto: AuthRoleGrantPermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 19061 | } |
| 19062 | switch fieldNum { |
| 19063 | case 1: |
| 19064 | if wireType != 2 { |
| 19065 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 19066 | } |
| 19067 | var msglen int |
| 19068 | for shift := uint(0); ; shift += 7 { |
| 19069 | if shift >= 64 { |
| 19070 | return ErrIntOverflowRpc |
| 19071 | } |
| 19072 | if iNdEx >= l { |
| 19073 | return io.ErrUnexpectedEOF |
| 19074 | } |
| 19075 | b := dAtA[iNdEx] |
| 19076 | iNdEx++ |
| 19077 | msglen |= (int(b) & 0x7F) << shift |
| 19078 | if b < 0x80 { |
| 19079 | break |
| 19080 | } |
| 19081 | } |
| 19082 | if msglen < 0 { |
| 19083 | return ErrInvalidLengthRpc |
| 19084 | } |
| 19085 | postIndex := iNdEx + msglen |
| 19086 | if postIndex > l { |
| 19087 | return io.ErrUnexpectedEOF |
| 19088 | } |
| 19089 | if m.Header == nil { |
| 19090 | m.Header = &ResponseHeader{} |
| 19091 | } |
| 19092 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 19093 | return err |
| 19094 | } |
| 19095 | iNdEx = postIndex |
| 19096 | default: |
| 19097 | iNdEx = preIndex |
| 19098 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 19099 | if err != nil { |
| 19100 | return err |
| 19101 | } |
| 19102 | if skippy < 0 { |
| 19103 | return ErrInvalidLengthRpc |
| 19104 | } |
| 19105 | if (iNdEx + skippy) > l { |
| 19106 | return io.ErrUnexpectedEOF |
| 19107 | } |
| 19108 | iNdEx += skippy |
| 19109 | } |
| 19110 | } |
| 19111 | |
| 19112 | if iNdEx > l { |
| 19113 | return io.ErrUnexpectedEOF |
| 19114 | } |
| 19115 | return nil |
| 19116 | } |
| 19117 | func (m *AuthRoleRevokePermissionResponse) Unmarshal(dAtA []byte) error { |
| 19118 | l := len(dAtA) |
| 19119 | iNdEx := 0 |
| 19120 | for iNdEx < l { |
| 19121 | preIndex := iNdEx |
| 19122 | var wire uint64 |
| 19123 | for shift := uint(0); ; shift += 7 { |
| 19124 | if shift >= 64 { |
| 19125 | return ErrIntOverflowRpc |
| 19126 | } |
| 19127 | if iNdEx >= l { |
| 19128 | return io.ErrUnexpectedEOF |
| 19129 | } |
| 19130 | b := dAtA[iNdEx] |
| 19131 | iNdEx++ |
| 19132 | wire |= (uint64(b) & 0x7F) << shift |
| 19133 | if b < 0x80 { |
| 19134 | break |
| 19135 | } |
| 19136 | } |
| 19137 | fieldNum := int32(wire >> 3) |
| 19138 | wireType := int(wire & 0x7) |
| 19139 | if wireType == 4 { |
| 19140 | return fmt.Errorf("proto: AuthRoleRevokePermissionResponse: wiretype end group for non-group") |
| 19141 | } |
| 19142 | if fieldNum <= 0 { |
| 19143 | return fmt.Errorf("proto: AuthRoleRevokePermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 19144 | } |
| 19145 | switch fieldNum { |
| 19146 | case 1: |
| 19147 | if wireType != 2 { |
| 19148 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 19149 | } |
| 19150 | var msglen int |
| 19151 | for shift := uint(0); ; shift += 7 { |
| 19152 | if shift >= 64 { |
| 19153 | return ErrIntOverflowRpc |
| 19154 | } |
| 19155 | if iNdEx >= l { |
| 19156 | return io.ErrUnexpectedEOF |
| 19157 | } |
| 19158 | b := dAtA[iNdEx] |
| 19159 | iNdEx++ |
| 19160 | msglen |= (int(b) & 0x7F) << shift |
| 19161 | if b < 0x80 { |
| 19162 | break |
| 19163 | } |
| 19164 | } |
| 19165 | if msglen < 0 { |
| 19166 | return ErrInvalidLengthRpc |
| 19167 | } |
| 19168 | postIndex := iNdEx + msglen |
| 19169 | if postIndex > l { |
| 19170 | return io.ErrUnexpectedEOF |
| 19171 | } |
| 19172 | if m.Header == nil { |
| 19173 | m.Header = &ResponseHeader{} |
| 19174 | } |
| 19175 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 19176 | return err |
| 19177 | } |
| 19178 | iNdEx = postIndex |
| 19179 | default: |
| 19180 | iNdEx = preIndex |
| 19181 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 19182 | if err != nil { |
| 19183 | return err |
| 19184 | } |
| 19185 | if skippy < 0 { |
| 19186 | return ErrInvalidLengthRpc |
| 19187 | } |
| 19188 | if (iNdEx + skippy) > l { |
| 19189 | return io.ErrUnexpectedEOF |
| 19190 | } |
| 19191 | iNdEx += skippy |
| 19192 | } |
| 19193 | } |
| 19194 | |
| 19195 | if iNdEx > l { |
| 19196 | return io.ErrUnexpectedEOF |
| 19197 | } |
| 19198 | return nil |
| 19199 | } |
| 19200 | func skipRpc(dAtA []byte) (n int, err error) { |
| 19201 | l := len(dAtA) |
| 19202 | iNdEx := 0 |
| 19203 | for iNdEx < l { |
| 19204 | var wire uint64 |
| 19205 | for shift := uint(0); ; shift += 7 { |
| 19206 | if shift >= 64 { |
| 19207 | return 0, ErrIntOverflowRpc |
| 19208 | } |
| 19209 | if iNdEx >= l { |
| 19210 | return 0, io.ErrUnexpectedEOF |
| 19211 | } |
| 19212 | b := dAtA[iNdEx] |
| 19213 | iNdEx++ |
| 19214 | wire |= (uint64(b) & 0x7F) << shift |
| 19215 | if b < 0x80 { |
| 19216 | break |
| 19217 | } |
| 19218 | } |
| 19219 | wireType := int(wire & 0x7) |
| 19220 | switch wireType { |
| 19221 | case 0: |
| 19222 | for shift := uint(0); ; shift += 7 { |
| 19223 | if shift >= 64 { |
| 19224 | return 0, ErrIntOverflowRpc |
| 19225 | } |
| 19226 | if iNdEx >= l { |
| 19227 | return 0, io.ErrUnexpectedEOF |
| 19228 | } |
| 19229 | iNdEx++ |
| 19230 | if dAtA[iNdEx-1] < 0x80 { |
| 19231 | break |
| 19232 | } |
| 19233 | } |
| 19234 | return iNdEx, nil |
| 19235 | case 1: |
| 19236 | iNdEx += 8 |
| 19237 | return iNdEx, nil |
| 19238 | case 2: |
| 19239 | var length int |
| 19240 | for shift := uint(0); ; shift += 7 { |
| 19241 | if shift >= 64 { |
| 19242 | return 0, ErrIntOverflowRpc |
| 19243 | } |
| 19244 | if iNdEx >= l { |
| 19245 | return 0, io.ErrUnexpectedEOF |
| 19246 | } |
| 19247 | b := dAtA[iNdEx] |
| 19248 | iNdEx++ |
| 19249 | length |= (int(b) & 0x7F) << shift |
| 19250 | if b < 0x80 { |
| 19251 | break |
| 19252 | } |
| 19253 | } |
| 19254 | iNdEx += length |
| 19255 | if length < 0 { |
| 19256 | return 0, ErrInvalidLengthRpc |
| 19257 | } |
| 19258 | return iNdEx, nil |
| 19259 | case 3: |
| 19260 | for { |
| 19261 | var innerWire uint64 |
| 19262 | var start int = iNdEx |
| 19263 | for shift := uint(0); ; shift += 7 { |
| 19264 | if shift >= 64 { |
| 19265 | return 0, ErrIntOverflowRpc |
| 19266 | } |
| 19267 | if iNdEx >= l { |
| 19268 | return 0, io.ErrUnexpectedEOF |
| 19269 | } |
| 19270 | b := dAtA[iNdEx] |
| 19271 | iNdEx++ |
| 19272 | innerWire |= (uint64(b) & 0x7F) << shift |
| 19273 | if b < 0x80 { |
| 19274 | break |
| 19275 | } |
| 19276 | } |
| 19277 | innerWireType := int(innerWire & 0x7) |
| 19278 | if innerWireType == 4 { |
| 19279 | break |
| 19280 | } |
| 19281 | next, err := skipRpc(dAtA[start:]) |
| 19282 | if err != nil { |
| 19283 | return 0, err |
| 19284 | } |
| 19285 | iNdEx = start + next |
| 19286 | } |
| 19287 | return iNdEx, nil |
| 19288 | case 4: |
| 19289 | return iNdEx, nil |
| 19290 | case 5: |
| 19291 | iNdEx += 4 |
| 19292 | return iNdEx, nil |
| 19293 | default: |
| 19294 | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| 19295 | } |
| 19296 | } |
| 19297 | panic("unreachable") |
| 19298 | } |
| 19299 | |
| 19300 | var ( |
| 19301 | ErrInvalidLengthRpc = fmt.Errorf("proto: negative length found during unmarshaling") |
| 19302 | ErrIntOverflowRpc = fmt.Errorf("proto: integer overflow") |
| 19303 | ) |
| 19304 | |
| 19305 | func init() { proto.RegisterFile("rpc.proto", fileDescriptorRpc) } |
| 19306 | |
| 19307 | var fileDescriptorRpc = []byte{ |
| 19308 | // 3836 bytes of a gzipped FileDescriptorProto |
| 19309 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x5b, 0xdd, 0x6f, 0x23, 0xc9, |
| 19310 | 0x71, 0xd7, 0x90, 0xe2, 0x57, 0xf1, 0x43, 0x54, 0xeb, 0x63, 0x29, 0xee, 0xae, 0x56, 0xd7, 0xbb, |
| 19311 | 0x7b, 0xab, 0xdb, 0xbd, 0x13, 0x6d, 0xd9, 0x4e, 0x80, 0x4d, 0xe2, 0x58, 0x2b, 0xf1, 0x56, 0x3a, |
| 19312 | 0x69, 0x45, 0xdd, 0x88, 0xda, 0xfb, 0x80, 0x11, 0x61, 0x44, 0xf6, 0x4a, 0x13, 0x91, 0x33, 0xf4, |
| 19313 | 0xcc, 0x90, 0x2b, 0x5d, 0x82, 0x38, 0x30, 0x9c, 0x00, 0xc9, 0xa3, 0x0d, 0x04, 0xc9, 0x43, 0x9e, |
| 19314 | 0x82, 0x20, 0xf0, 0x43, 0x80, 0xbc, 0x05, 0xc8, 0x5f, 0x90, 0xb7, 0x24, 0xc8, 0x3f, 0x10, 0x5c, |
| 19315 | 0xfc, 0x92, 0xff, 0x22, 0xe8, 0xaf, 0x99, 0x9e, 0x2f, 0x69, 0x6d, 0xfa, 0xfc, 0x22, 0x4d, 0x57, |
| 19316 | 0x57, 0x57, 0x55, 0x57, 0x77, 0x57, 0x55, 0xff, 0x66, 0x08, 0x25, 0x67, 0xd4, 0xdb, 0x18, 0x39, |
| 19317 | 0xb6, 0x67, 0xa3, 0x0a, 0xf1, 0x7a, 0x7d, 0x97, 0x38, 0x13, 0xe2, 0x8c, 0xce, 0x9a, 0x8b, 0xe7, |
| 19318 | 0xf6, 0xb9, 0xcd, 0x3a, 0x5a, 0xf4, 0x89, 0xf3, 0x34, 0x57, 0x28, 0x4f, 0x6b, 0x38, 0xe9, 0xf5, |
| 19319 | 0xd8, 0x9f, 0xd1, 0x59, 0xeb, 0x72, 0x22, 0xba, 0xee, 0xb2, 0x2e, 0x63, 0xec, 0x5d, 0xb0, 0x3f, |
| 19320 | 0xa3, 0x33, 0xf6, 0x4f, 0x74, 0xde, 0x3b, 0xb7, 0xed, 0xf3, 0x01, 0x69, 0x19, 0x23, 0xb3, 0x65, |
| 19321 | 0x58, 0x96, 0xed, 0x19, 0x9e, 0x69, 0x5b, 0x2e, 0xef, 0xc5, 0x7f, 0xa1, 0x41, 0x4d, 0x27, 0xee, |
| 19322 | 0xc8, 0xb6, 0x5c, 0xb2, 0x4b, 0x8c, 0x3e, 0x71, 0xd0, 0x7d, 0x80, 0xde, 0x60, 0xec, 0x7a, 0xc4, |
| 19323 | 0x39, 0x35, 0xfb, 0x0d, 0x6d, 0x4d, 0x5b, 0x9f, 0xd5, 0x4b, 0x82, 0xb2, 0xd7, 0x47, 0x77, 0xa1, |
| 19324 | 0x34, 0x24, 0xc3, 0x33, 0xde, 0x9b, 0x61, 0xbd, 0x45, 0x4e, 0xd8, 0xeb, 0xa3, 0x26, 0x14, 0x1d, |
| 19325 | 0x32, 0x31, 0x5d, 0xd3, 0xb6, 0x1a, 0xd9, 0x35, 0x6d, 0x3d, 0xab, 0xfb, 0x6d, 0x3a, 0xd0, 0x31, |
| 19326 | 0xde, 0x78, 0xa7, 0x1e, 0x71, 0x86, 0x8d, 0x59, 0x3e, 0x90, 0x12, 0xba, 0xc4, 0x19, 0xe2, 0x9f, |
| 19327 | 0xe6, 0xa0, 0xa2, 0x1b, 0xd6, 0x39, 0xd1, 0xc9, 0x8f, 0xc6, 0xc4, 0xf5, 0x50, 0x1d, 0xb2, 0x97, |
| 19328 | 0xe4, 0x9a, 0xa9, 0xaf, 0xe8, 0xf4, 0x91, 0x8f, 0xb7, 0xce, 0xc9, 0x29, 0xb1, 0xb8, 0xe2, 0x0a, |
| 19329 | 0x1d, 0x6f, 0x9d, 0x93, 0xb6, 0xd5, 0x47, 0x8b, 0x90, 0x1b, 0x98, 0x43, 0xd3, 0x13, 0x5a, 0x79, |
| 19330 | 0x23, 0x64, 0xce, 0x6c, 0xc4, 0x9c, 0x6d, 0x00, 0xd7, 0x76, 0xbc, 0x53, 0xdb, 0xe9, 0x13, 0xa7, |
| 19331 | 0x91, 0x5b, 0xd3, 0xd6, 0x6b, 0x9b, 0x8f, 0x36, 0xd4, 0x85, 0xd8, 0x50, 0x0d, 0xda, 0x38, 0xb6, |
| 19332 | 0x1d, 0xaf, 0x43, 0x79, 0xf5, 0x92, 0x2b, 0x1f, 0xd1, 0xc7, 0x50, 0x66, 0x42, 0x3c, 0xc3, 0x39, |
| 19333 | 0x27, 0x5e, 0x23, 0xcf, 0xa4, 0x3c, 0xbe, 0x45, 0x4a, 0x97, 0x31, 0xeb, 0x4c, 0x3d, 0x7f, 0x46, |
| 19334 | 0x18, 0x2a, 0x2e, 0x71, 0x4c, 0x63, 0x60, 0x7e, 0x65, 0x9c, 0x0d, 0x48, 0xa3, 0xb0, 0xa6, 0xad, |
| 19335 | 0x17, 0xf5, 0x10, 0x8d, 0xce, 0xff, 0x92, 0x5c, 0xbb, 0xa7, 0xb6, 0x35, 0xb8, 0x6e, 0x14, 0x19, |
| 19336 | 0x43, 0x91, 0x12, 0x3a, 0xd6, 0xe0, 0x9a, 0x2d, 0x9a, 0x3d, 0xb6, 0x3c, 0xde, 0x5b, 0x62, 0xbd, |
| 19337 | 0x25, 0x46, 0x61, 0xdd, 0xeb, 0x50, 0x1f, 0x9a, 0xd6, 0xe9, 0xd0, 0xee, 0x9f, 0xfa, 0x0e, 0x01, |
| 19338 | 0xe6, 0x90, 0xda, 0xd0, 0xb4, 0x5e, 0xd9, 0x7d, 0x5d, 0xba, 0x85, 0x72, 0x1a, 0x57, 0x61, 0xce, |
| 19339 | 0xb2, 0xe0, 0x34, 0xae, 0x54, 0xce, 0x0d, 0x58, 0xa0, 0x32, 0x7b, 0x0e, 0x31, 0x3c, 0x12, 0x30, |
| 19340 | 0x57, 0x18, 0xf3, 0xfc, 0xd0, 0xb4, 0xb6, 0x59, 0x4f, 0x88, 0xdf, 0xb8, 0x8a, 0xf1, 0x57, 0x05, |
| 19341 | 0xbf, 0x71, 0x15, 0xe6, 0xc7, 0x1b, 0x50, 0xf2, 0x7d, 0x8e, 0x8a, 0x30, 0x7b, 0xd8, 0x39, 0x6c, |
| 19342 | 0xd7, 0x67, 0x10, 0x40, 0x7e, 0xeb, 0x78, 0xbb, 0x7d, 0xb8, 0x53, 0xd7, 0x50, 0x19, 0x0a, 0x3b, |
| 19343 | 0x6d, 0xde, 0xc8, 0xe0, 0x17, 0x00, 0x81, 0x77, 0x51, 0x01, 0xb2, 0xfb, 0xed, 0x2f, 0xea, 0x33, |
| 19344 | 0x94, 0xe7, 0x75, 0x5b, 0x3f, 0xde, 0xeb, 0x1c, 0xd6, 0x35, 0x3a, 0x78, 0x5b, 0x6f, 0x6f, 0x75, |
| 19345 | 0xdb, 0xf5, 0x0c, 0xe5, 0x78, 0xd5, 0xd9, 0xa9, 0x67, 0x51, 0x09, 0x72, 0xaf, 0xb7, 0x0e, 0x4e, |
| 19346 | 0xda, 0xf5, 0x59, 0xfc, 0x73, 0x0d, 0xaa, 0x62, 0xbd, 0xf8, 0x99, 0x40, 0xdf, 0x85, 0xfc, 0x05, |
| 19347 | 0x3b, 0x17, 0x6c, 0x2b, 0x96, 0x37, 0xef, 0x45, 0x16, 0x37, 0x74, 0x76, 0x74, 0xc1, 0x8b, 0x30, |
| 19348 | 0x64, 0x2f, 0x27, 0x6e, 0x23, 0xb3, 0x96, 0x5d, 0x2f, 0x6f, 0xd6, 0x37, 0xf8, 0x81, 0xdd, 0xd8, |
| 19349 | 0x27, 0xd7, 0xaf, 0x8d, 0xc1, 0x98, 0xe8, 0xb4, 0x13, 0x21, 0x98, 0x1d, 0xda, 0x0e, 0x61, 0x3b, |
| 19350 | 0xb6, 0xa8, 0xb3, 0x67, 0xba, 0x8d, 0xd9, 0xa2, 0x89, 0xdd, 0xca, 0x1b, 0xf8, 0x17, 0x1a, 0xc0, |
| 19351 | 0xd1, 0xd8, 0x4b, 0x3f, 0x1a, 0x8b, 0x90, 0x9b, 0x50, 0xc1, 0xe2, 0x58, 0xf0, 0x06, 0x3b, 0x13, |
| 19352 | 0xc4, 0x70, 0x89, 0x7f, 0x26, 0x68, 0x03, 0xdd, 0x81, 0xc2, 0xc8, 0x21, 0x93, 0xd3, 0xcb, 0x09, |
| 19353 | 0x53, 0x52, 0xd4, 0xf3, 0xb4, 0xb9, 0x3f, 0x41, 0xef, 0x41, 0xc5, 0x3c, 0xb7, 0x6c, 0x87, 0x9c, |
| 19354 | 0x72, 0x59, 0x39, 0xd6, 0x5b, 0xe6, 0x34, 0x66, 0xb7, 0xc2, 0xc2, 0x05, 0xe7, 0x55, 0x96, 0x03, |
| 19355 | 0x4a, 0xc2, 0x16, 0x94, 0x99, 0xa9, 0x53, 0xb9, 0xef, 0x83, 0xc0, 0xc6, 0x0c, 0x1b, 0x16, 0x77, |
| 19356 | 0xa1, 0xb0, 0x1a, 0xff, 0x10, 0xd0, 0x0e, 0x19, 0x10, 0x8f, 0x4c, 0x13, 0x3d, 0x14, 0x9f, 0x64, |
| 19357 | 0x55, 0x9f, 0xe0, 0x9f, 0x69, 0xb0, 0x10, 0x12, 0x3f, 0xd5, 0xb4, 0x1a, 0x50, 0xe8, 0x33, 0x61, |
| 19358 | 0xdc, 0x82, 0xac, 0x2e, 0x9b, 0xe8, 0x19, 0x14, 0x85, 0x01, 0x6e, 0x23, 0x9b, 0xb2, 0x69, 0x0a, |
| 19359 | 0xdc, 0x26, 0x17, 0xff, 0x22, 0x03, 0x25, 0x31, 0xd1, 0xce, 0x08, 0x6d, 0x41, 0xd5, 0xe1, 0x8d, |
| 19360 | 0x53, 0x36, 0x1f, 0x61, 0x51, 0x33, 0x3d, 0x08, 0xed, 0xce, 0xe8, 0x15, 0x31, 0x84, 0x91, 0xd1, |
| 19361 | 0xef, 0x41, 0x59, 0x8a, 0x18, 0x8d, 0x3d, 0xe1, 0xf2, 0x46, 0x58, 0x40, 0xb0, 0xff, 0x76, 0x67, |
| 19362 | 0x74, 0x10, 0xec, 0x47, 0x63, 0x0f, 0x75, 0x61, 0x51, 0x0e, 0xe6, 0xb3, 0x11, 0x66, 0x64, 0x99, |
| 19363 | 0x94, 0xb5, 0xb0, 0x94, 0xf8, 0x52, 0xed, 0xce, 0xe8, 0x48, 0x8c, 0x57, 0x3a, 0x55, 0x93, 0xbc, |
| 19364 | 0x2b, 0x1e, 0xbc, 0x63, 0x26, 0x75, 0xaf, 0xac, 0xb8, 0x49, 0xdd, 0x2b, 0xeb, 0x45, 0x09, 0x0a, |
| 19365 | 0xa2, 0x85, 0xff, 0x35, 0x03, 0x20, 0x57, 0xa3, 0x33, 0x42, 0x3b, 0x50, 0x73, 0x44, 0x2b, 0xe4, |
| 19366 | 0xad, 0xbb, 0x89, 0xde, 0x12, 0x8b, 0x38, 0xa3, 0x57, 0xe5, 0x20, 0x6e, 0xdc, 0xf7, 0xa1, 0xe2, |
| 19367 | 0x4b, 0x09, 0x1c, 0xb6, 0x92, 0xe0, 0x30, 0x5f, 0x42, 0x59, 0x0e, 0xa0, 0x2e, 0xfb, 0x0c, 0x96, |
| 19368 | 0xfc, 0xf1, 0x09, 0x3e, 0x7b, 0xef, 0x06, 0x9f, 0xf9, 0x02, 0x17, 0xa4, 0x04, 0xd5, 0x6b, 0xaa, |
| 19369 | 0x61, 0x81, 0xdb, 0x56, 0x12, 0xdc, 0x16, 0x37, 0x8c, 0x3a, 0x0e, 0x68, 0xbe, 0xe4, 0x4d, 0xfc, |
| 19370 | 0x7f, 0x59, 0x28, 0x6c, 0xdb, 0xc3, 0x91, 0xe1, 0xd0, 0xd5, 0xc8, 0x3b, 0xc4, 0x1d, 0x0f, 0x3c, |
| 19371 | 0xe6, 0xae, 0xda, 0xe6, 0xc3, 0xb0, 0x44, 0xc1, 0x26, 0xff, 0xeb, 0x8c, 0x55, 0x17, 0x43, 0xe8, |
| 19372 | 0x60, 0x91, 0x1e, 0x33, 0xef, 0x30, 0x58, 0x24, 0x47, 0x31, 0x44, 0x1e, 0xe4, 0x6c, 0x70, 0x90, |
| 19373 | 0x9b, 0x50, 0x98, 0x10, 0x27, 0x48, 0xe9, 0xbb, 0x33, 0xba, 0x24, 0xa0, 0x0f, 0x60, 0x2e, 0x9a, |
| 19374 | 0x5e, 0x72, 0x82, 0xa7, 0xd6, 0x0b, 0x67, 0xa3, 0x87, 0x50, 0x09, 0xe5, 0xb8, 0xbc, 0xe0, 0x2b, |
| 19375 | 0x0f, 0x95, 0x14, 0xb7, 0x2c, 0xe3, 0x2a, 0xcd, 0xc7, 0x95, 0xdd, 0x19, 0x19, 0x59, 0x97, 0x65, |
| 19376 | 0x64, 0x2d, 0x8a, 0x51, 0x22, 0xb6, 0x86, 0x82, 0xcc, 0x0f, 0xc2, 0x41, 0x06, 0xff, 0x00, 0xaa, |
| 19377 | 0x21, 0x07, 0xd1, 0xbc, 0xd3, 0xfe, 0xf4, 0x64, 0xeb, 0x80, 0x27, 0xa9, 0x97, 0x2c, 0x2f, 0xe9, |
| 19378 | 0x75, 0x8d, 0xe6, 0xba, 0x83, 0xf6, 0xf1, 0x71, 0x3d, 0x83, 0xaa, 0x50, 0x3a, 0xec, 0x74, 0x4f, |
| 19379 | 0x39, 0x57, 0x16, 0xbf, 0xf4, 0x25, 0x88, 0x24, 0xa7, 0xe4, 0xb6, 0x19, 0x25, 0xb7, 0x69, 0x32, |
| 19380 | 0xb7, 0x65, 0x82, 0xdc, 0xc6, 0xd2, 0xdc, 0x41, 0x7b, 0xeb, 0xb8, 0x5d, 0x9f, 0x7d, 0x51, 0x83, |
| 19381 | 0x0a, 0xf7, 0xef, 0xe9, 0xd8, 0xa2, 0xa9, 0xf6, 0x1f, 0x34, 0x80, 0xe0, 0x34, 0xa1, 0x16, 0x14, |
| 19382 | 0x7a, 0x5c, 0x4f, 0x43, 0x63, 0xc1, 0x68, 0x29, 0x71, 0xc9, 0x74, 0xc9, 0x85, 0xbe, 0x0d, 0x05, |
| 19383 | 0x77, 0xdc, 0xeb, 0x11, 0x57, 0xa6, 0xbc, 0x3b, 0xd1, 0x78, 0x28, 0xa2, 0x95, 0x2e, 0xf9, 0xe8, |
| 19384 | 0x90, 0x37, 0x86, 0x39, 0x18, 0xb3, 0x04, 0x78, 0xf3, 0x10, 0xc1, 0x87, 0xff, 0x4e, 0x83, 0xb2, |
| 19385 | 0xb2, 0x79, 0x7f, 0xcd, 0x20, 0x7c, 0x0f, 0x4a, 0xcc, 0x06, 0xd2, 0x17, 0x61, 0xb8, 0xa8, 0x07, |
| 19386 | 0x04, 0xf4, 0x3b, 0x50, 0x92, 0x27, 0x40, 0x46, 0xe2, 0x46, 0xb2, 0xd8, 0xce, 0x48, 0x0f, 0x58, |
| 19387 | 0xf1, 0x3e, 0xcc, 0x33, 0xaf, 0xf4, 0x68, 0x71, 0x2d, 0xfd, 0xa8, 0x96, 0x9f, 0x5a, 0xa4, 0xfc, |
| 19388 | 0x6c, 0x42, 0x71, 0x74, 0x71, 0xed, 0x9a, 0x3d, 0x63, 0x20, 0xac, 0xf0, 0xdb, 0xf8, 0x13, 0x40, |
| 19389 | 0xaa, 0xb0, 0x69, 0xa6, 0x8b, 0xab, 0x50, 0xde, 0x35, 0xdc, 0x0b, 0x61, 0x12, 0x7e, 0x06, 0x55, |
| 19390 | 0xda, 0xdc, 0x7f, 0xfd, 0x0e, 0x36, 0xb2, 0xcb, 0x81, 0xe4, 0x9e, 0xca, 0xe7, 0x08, 0x66, 0x2f, |
| 19391 | 0x0c, 0xf7, 0x82, 0x4d, 0xb4, 0xaa, 0xb3, 0x67, 0xf4, 0x01, 0xd4, 0x7b, 0x7c, 0x92, 0xa7, 0x91, |
| 19392 | 0x2b, 0xc3, 0x9c, 0xa0, 0xfb, 0x95, 0xe0, 0xe7, 0x50, 0xe1, 0x73, 0xf8, 0x4d, 0x1b, 0x81, 0xe7, |
| 19393 | 0x61, 0xee, 0xd8, 0x32, 0x46, 0xee, 0x85, 0x2d, 0xb3, 0x1b, 0x9d, 0x74, 0x3d, 0xa0, 0x4d, 0xa5, |
| 19394 | 0xf1, 0x09, 0xcc, 0x39, 0x64, 0x68, 0x98, 0x96, 0x69, 0x9d, 0x9f, 0x9e, 0x5d, 0x7b, 0xc4, 0x15, |
| 19395 | 0x17, 0xa6, 0x9a, 0x4f, 0x7e, 0x41, 0xa9, 0xd4, 0xb4, 0xb3, 0x81, 0x7d, 0x26, 0xc2, 0x1c, 0x7b, |
| 19396 | 0xc6, 0x7f, 0x99, 0x81, 0xca, 0x67, 0x86, 0xd7, 0x93, 0x4b, 0x87, 0xf6, 0xa0, 0xe6, 0x07, 0x37, |
| 19397 | 0x46, 0x11, 0xb6, 0x44, 0x52, 0x2c, 0x1b, 0x23, 0x4b, 0x69, 0x99, 0x1d, 0xab, 0x3d, 0x95, 0xc0, |
| 19398 | 0x44, 0x19, 0x56, 0x8f, 0x0c, 0x7c, 0x51, 0x99, 0x74, 0x51, 0x8c, 0x51, 0x15, 0xa5, 0x12, 0x50, |
| 19399 | 0x07, 0xea, 0x23, 0xc7, 0x3e, 0x77, 0x88, 0xeb, 0xfa, 0xc2, 0x78, 0x1a, 0xc3, 0x09, 0xc2, 0x8e, |
| 19400 | 0x04, 0x6b, 0x20, 0x6e, 0x6e, 0x14, 0x26, 0xbd, 0x98, 0x0b, 0xea, 0x19, 0x1e, 0x9c, 0xfe, 0x2b, |
| 19401 | 0x03, 0x28, 0x3e, 0xa9, 0x5f, 0xb5, 0xc4, 0x7b, 0x0c, 0x35, 0xd7, 0x33, 0x9c, 0xd8, 0x66, 0xab, |
| 19402 | 0x32, 0xaa, 0x1f, 0xf1, 0x9f, 0x80, 0x6f, 0xd0, 0xa9, 0x65, 0x7b, 0xe6, 0x9b, 0x6b, 0x51, 0x25, |
| 19403 | 0xd7, 0x24, 0xf9, 0x90, 0x51, 0x51, 0x1b, 0x0a, 0x6f, 0xcc, 0x81, 0x47, 0x1c, 0xb7, 0x91, 0x5b, |
| 19404 | 0xcb, 0xae, 0xd7, 0x36, 0x9f, 0xdd, 0xb6, 0x0c, 0x1b, 0x1f, 0x33, 0xfe, 0xee, 0xf5, 0x88, 0xe8, |
| 19405 | 0x72, 0xac, 0x5a, 0x79, 0xe6, 0x43, 0xd5, 0xf8, 0x0a, 0x14, 0xdf, 0x52, 0x11, 0xf4, 0x96, 0x5d, |
| 19406 | 0xe0, 0xc5, 0x22, 0x6b, 0xf3, 0x4b, 0xf6, 0x1b, 0xc7, 0x38, 0x1f, 0x12, 0xcb, 0x93, 0xf7, 0x40, |
| 19407 | 0xd9, 0xc6, 0x8f, 0x01, 0x02, 0x35, 0x34, 0xe4, 0x1f, 0x76, 0x8e, 0x4e, 0xba, 0xf5, 0x19, 0x54, |
| 19408 | 0x81, 0xe2, 0x61, 0x67, 0xa7, 0x7d, 0xd0, 0xa6, 0xf9, 0x01, 0xb7, 0xa4, 0x4b, 0x43, 0x6b, 0xa9, |
| 19409 | 0xea, 0xd4, 0x42, 0x3a, 0xf1, 0x32, 0x2c, 0x26, 0x2d, 0x20, 0xad, 0x45, 0xab, 0x62, 0x97, 0x4e, |
| 19410 | 0x75, 0x54, 0x54, 0xd5, 0x99, 0xf0, 0x74, 0x1b, 0x50, 0xe0, 0xbb, 0xb7, 0x2f, 0x8a, 0x73, 0xd9, |
| 19411 | 0xa4, 0x8e, 0xe0, 0x9b, 0x91, 0xf4, 0xc5, 0x2a, 0xf9, 0xed, 0xc4, 0xf0, 0x92, 0x4b, 0x0c, 0x2f, |
| 19412 | 0xe8, 0x21, 0x54, 0xfd, 0xd3, 0x60, 0xb8, 0xa2, 0x16, 0x28, 0xe9, 0x15, 0xb9, 0xd1, 0x29, 0x2d, |
| 19413 | 0xe4, 0xf4, 0x42, 0xd8, 0xe9, 0xe8, 0x31, 0xe4, 0xc9, 0x84, 0x58, 0x9e, 0xdb, 0x28, 0xb3, 0x8c, |
| 19414 | 0x51, 0x95, 0xb5, 0x7b, 0x9b, 0x52, 0x75, 0xd1, 0x89, 0xbf, 0x07, 0xf3, 0xec, 0x8e, 0xf4, 0xd2, |
| 19415 | 0x31, 0x2c, 0xf5, 0x32, 0xd7, 0xed, 0x1e, 0x08, 0x77, 0xd3, 0x47, 0x54, 0x83, 0xcc, 0xde, 0x8e, |
| 19416 | 0x70, 0x42, 0x66, 0x6f, 0x07, 0xff, 0x44, 0x03, 0xa4, 0x8e, 0x9b, 0xca, 0xcf, 0x11, 0xe1, 0x52, |
| 19417 | 0x7d, 0x36, 0x50, 0xbf, 0x08, 0x39, 0xe2, 0x38, 0xb6, 0xc3, 0x3c, 0x5a, 0xd2, 0x79, 0x03, 0x3f, |
| 19418 | 0x12, 0x36, 0xe8, 0x64, 0x62, 0x5f, 0xfa, 0x67, 0x90, 0x4b, 0xd3, 0x7c, 0x53, 0xf7, 0x61, 0x21, |
| 19419 | 0xc4, 0x35, 0x55, 0xe6, 0xfa, 0x18, 0xe6, 0x98, 0xb0, 0xed, 0x0b, 0xd2, 0xbb, 0x1c, 0xd9, 0xa6, |
| 19420 | 0x15, 0xd3, 0x47, 0x57, 0x2e, 0x08, 0xb0, 0x74, 0x1e, 0x7c, 0x62, 0x15, 0x9f, 0xd8, 0xed, 0x1e, |
| 19421 | 0xe0, 0x2f, 0x60, 0x39, 0x22, 0x47, 0x9a, 0xff, 0x87, 0x50, 0xee, 0xf9, 0x44, 0x57, 0xd4, 0x3a, |
| 19422 | 0xf7, 0xc3, 0xc6, 0x45, 0x87, 0xaa, 0x23, 0x70, 0x07, 0xee, 0xc4, 0x44, 0x4f, 0x35, 0xe7, 0x27, |
| 19423 | 0xb0, 0xc4, 0x04, 0xee, 0x13, 0x32, 0xda, 0x1a, 0x98, 0x93, 0x54, 0x4f, 0x8f, 0xc4, 0xa4, 0x14, |
| 19424 | 0xc6, 0x6f, 0x76, 0x5f, 0xe0, 0xdf, 0x17, 0x1a, 0xbb, 0xe6, 0x90, 0x74, 0xed, 0x83, 0x74, 0xdb, |
| 19425 | 0x68, 0x36, 0xbb, 0x24, 0xd7, 0xae, 0x28, 0x6b, 0xd8, 0x33, 0xfe, 0x47, 0x4d, 0xb8, 0x4a, 0x1d, |
| 19426 | 0xfe, 0x0d, 0xef, 0xe4, 0x55, 0x80, 0x73, 0x7a, 0x64, 0x48, 0x9f, 0x76, 0x70, 0x44, 0x45, 0xa1, |
| 19427 | 0xf8, 0x76, 0xd2, 0xf8, 0x5d, 0x11, 0x76, 0x2e, 0x8a, 0x7d, 0xce, 0xfe, 0xf8, 0x51, 0xee, 0x3e, |
| 19428 | 0x94, 0x19, 0xe1, 0xd8, 0x33, 0xbc, 0xb1, 0x1b, 0x5b, 0x8c, 0x3f, 0x13, 0xdb, 0x5e, 0x0e, 0x9a, |
| 19429 | 0x6a, 0x5e, 0xdf, 0x86, 0x3c, 0xbb, 0x4c, 0xc8, 0x52, 0x7a, 0x25, 0x61, 0x3f, 0x72, 0x3b, 0x74, |
| 19430 | 0xc1, 0x88, 0x2f, 0x20, 0xff, 0x8a, 0x21, 0xb0, 0x8a, 0x65, 0xb3, 0x72, 0x29, 0x2c, 0x63, 0xc8, |
| 19431 | 0x71, 0xa1, 0x92, 0xce, 0x9e, 0x59, 0xe5, 0x49, 0x88, 0x73, 0xa2, 0x1f, 0xf0, 0x0a, 0xb7, 0xa4, |
| 19432 | 0xfb, 0x6d, 0xea, 0xb2, 0xde, 0xc0, 0x24, 0x96, 0xc7, 0x7a, 0x67, 0x59, 0xaf, 0x42, 0xc1, 0x1b, |
| 19433 | 0x50, 0xe7, 0x9a, 0xb6, 0xfa, 0x7d, 0xa5, 0x82, 0xf4, 0xe5, 0x69, 0x61, 0x79, 0xf8, 0x9f, 0x34, |
| 19434 | 0x98, 0x57, 0x06, 0x4c, 0xe5, 0x98, 0x0f, 0x21, 0xcf, 0x71, 0x66, 0x51, 0xac, 0x2c, 0x86, 0x47, |
| 19435 | 0x71, 0x35, 0xba, 0xe0, 0x41, 0x1b, 0x50, 0xe0, 0x4f, 0xb2, 0x8c, 0x4f, 0x66, 0x97, 0x4c, 0xf8, |
| 19436 | 0x31, 0x2c, 0x08, 0x12, 0x19, 0xda, 0x49, 0x7b, 0x9b, 0x39, 0x14, 0xff, 0x29, 0x2c, 0x86, 0xd9, |
| 19437 | 0xa6, 0x9a, 0x92, 0x62, 0x64, 0xe6, 0x5d, 0x8c, 0xdc, 0x92, 0x46, 0x9e, 0x8c, 0xfa, 0x4a, 0x29, |
| 19438 | 0x14, 0x5d, 0x75, 0x75, 0x45, 0x32, 0x91, 0x15, 0xf1, 0x27, 0x20, 0x45, 0xfc, 0x56, 0x27, 0xb0, |
| 19439 | 0x20, 0xb7, 0xc3, 0x81, 0xe9, 0xfa, 0x15, 0xf7, 0x57, 0x80, 0x54, 0xe2, 0x6f, 0xdb, 0xa0, 0x1d, |
| 19440 | 0x22, 0x13, 0xb9, 0x34, 0xe8, 0x13, 0x40, 0x2a, 0x71, 0xaa, 0x88, 0xde, 0x82, 0xf9, 0x57, 0xf6, |
| 19441 | 0x84, 0x86, 0x06, 0x4a, 0x0d, 0x8e, 0x0c, 0xbf, 0x7f, 0xfb, 0xcb, 0xe6, 0xb7, 0xa9, 0x72, 0x75, |
| 19442 | 0xc0, 0x54, 0xca, 0xff, 0x43, 0x83, 0xca, 0xd6, 0xc0, 0x70, 0x86, 0x52, 0xf1, 0xf7, 0x21, 0xcf, |
| 19443 | 0x6f, 0x95, 0x02, 0xc8, 0x79, 0x3f, 0x2c, 0x46, 0xe5, 0xe5, 0x8d, 0x2d, 0x7e, 0x07, 0x15, 0xa3, |
| 19444 | 0xa8, 0xe1, 0xe2, 0x5d, 0xcf, 0x4e, 0xe4, 0xdd, 0xcf, 0x0e, 0xfa, 0x08, 0x72, 0x06, 0x1d, 0xc2, |
| 19445 | 0x42, 0x70, 0x2d, 0x7a, 0x9f, 0x67, 0xd2, 0x58, 0xed, 0xcb, 0xb9, 0xf0, 0x77, 0xa1, 0xac, 0x68, |
| 19446 | 0x40, 0x05, 0xc8, 0xbe, 0x6c, 0x8b, 0x42, 0x75, 0x6b, 0xbb, 0xbb, 0xf7, 0x9a, 0x03, 0x19, 0x35, |
| 19447 | 0x80, 0x9d, 0xb6, 0xdf, 0xce, 0xe0, 0xcf, 0xc5, 0x28, 0x11, 0xef, 0x54, 0x7b, 0xb4, 0x34, 0x7b, |
| 19448 | 0x32, 0xef, 0x64, 0xcf, 0x15, 0x54, 0xc5, 0xf4, 0xa7, 0x0d, 0xdf, 0x4c, 0x5e, 0x4a, 0xf8, 0x56, |
| 19449 | 0x8c, 0xd7, 0x05, 0x23, 0x9e, 0x83, 0xaa, 0x08, 0xe8, 0x62, 0xff, 0xfd, 0x4b, 0x06, 0x6a, 0x92, |
| 19450 | 0x32, 0x2d, 0xe0, 0x2c, 0xb1, 0x32, 0x9e, 0x01, 0x7c, 0xa4, 0x6c, 0x19, 0xf2, 0xfd, 0xb3, 0x63, |
| 19451 | 0xf3, 0x2b, 0xf9, 0x72, 0x40, 0xb4, 0x28, 0x7d, 0xc0, 0xf5, 0xf0, 0x37, 0x74, 0xa2, 0x85, 0xee, |
| 19452 | 0xf1, 0x97, 0x77, 0x7b, 0x56, 0x9f, 0x5c, 0xb1, 0x3a, 0x7a, 0x56, 0x0f, 0x08, 0x0c, 0x44, 0x10, |
| 19453 | 0x6f, 0xf2, 0x58, 0xf1, 0xac, 0xbc, 0xd9, 0x43, 0x4f, 0xa1, 0x4e, 0x9f, 0xb7, 0x46, 0xa3, 0x81, |
| 19454 | 0x49, 0xfa, 0x5c, 0x40, 0x81, 0xf1, 0xc4, 0xe8, 0x54, 0x3b, 0x2b, 0x37, 0xdd, 0x46, 0x91, 0x85, |
| 19455 | 0x2d, 0xd1, 0x42, 0x6b, 0x50, 0xe6, 0xf6, 0xed, 0x59, 0x27, 0x2e, 0x61, 0xaf, 0xb7, 0xb2, 0xba, |
| 19456 | 0x4a, 0xa2, 0xe7, 0x78, 0x6b, 0xec, 0x5d, 0xb4, 0x2d, 0xe3, 0x6c, 0x20, 0xe3, 0x22, 0x4d, 0xe6, |
| 19457 | 0x94, 0xb8, 0x63, 0xba, 0x2a, 0xb5, 0x0d, 0x0b, 0x94, 0x4a, 0x2c, 0xcf, 0xec, 0x29, 0x41, 0x54, |
| 19458 | 0xa6, 0x4a, 0x2d, 0x92, 0x2a, 0x0d, 0xd7, 0x7d, 0x6b, 0x3b, 0x7d, 0xe1, 0x40, 0xbf, 0x8d, 0x77, |
| 19459 | 0xb8, 0xf0, 0x13, 0x37, 0x94, 0x0c, 0x7f, 0x55, 0x29, 0xeb, 0x81, 0x94, 0x97, 0xc4, 0xbb, 0x41, |
| 19460 | 0x0a, 0x7e, 0x06, 0x4b, 0x92, 0x53, 0x40, 0xbe, 0x37, 0x30, 0x77, 0xe0, 0xbe, 0x64, 0xde, 0xbe, |
| 19461 | 0xa0, 0x57, 0xe0, 0x23, 0xa1, 0xf0, 0xd7, 0xb5, 0xf3, 0x05, 0x34, 0x7c, 0x3b, 0xd9, 0x35, 0xc4, |
| 19462 | 0x1e, 0xa8, 0x06, 0x8c, 0x5d, 0xb1, 0x33, 0x4b, 0x3a, 0x7b, 0xa6, 0x34, 0xc7, 0x1e, 0xf8, 0x85, |
| 19463 | 0x07, 0x7d, 0xc6, 0xdb, 0xb0, 0x22, 0x65, 0x88, 0x0b, 0x42, 0x58, 0x48, 0xcc, 0xa0, 0x24, 0x21, |
| 19464 | 0xc2, 0x61, 0x74, 0xe8, 0xcd, 0x6e, 0x57, 0x39, 0xc3, 0xae, 0x65, 0x32, 0x35, 0x45, 0xe6, 0x12, |
| 19465 | 0xdf, 0x11, 0xd4, 0x30, 0x35, 0x2f, 0x09, 0x32, 0x15, 0xa0, 0x92, 0xc5, 0x42, 0x50, 0x72, 0x6c, |
| 19466 | 0x21, 0x62, 0xa2, 0x7f, 0x08, 0xab, 0xbe, 0x11, 0xd4, 0x6f, 0x47, 0xc4, 0x19, 0x9a, 0xae, 0xab, |
| 19467 | 0x80, 0x84, 0x49, 0x13, 0x7f, 0x1f, 0x66, 0x47, 0x44, 0x44, 0xae, 0xf2, 0x26, 0xda, 0xe0, 0x6f, |
| 19468 | 0xf5, 0x37, 0x94, 0xc1, 0xac, 0x1f, 0xf7, 0xe1, 0x81, 0x94, 0xce, 0x3d, 0x9a, 0x28, 0x3e, 0x6a, |
| 19469 | 0x94, 0x84, 0x4e, 0x32, 0x29, 0xd0, 0x49, 0x36, 0x02, 0x5c, 0x7f, 0xc2, 0x1d, 0x29, 0xcf, 0xd6, |
| 19470 | 0x54, 0x19, 0x69, 0x9f, 0xfb, 0xd4, 0x3f, 0x92, 0x53, 0x09, 0x3b, 0x83, 0xc5, 0xf0, 0x49, 0x9e, |
| 19471 | 0x2a, 0x58, 0x2e, 0x42, 0xce, 0xb3, 0x2f, 0x89, 0x0c, 0x95, 0xbc, 0x21, 0x0d, 0xf6, 0x8f, 0xf9, |
| 19472 | 0x54, 0x06, 0x1b, 0x81, 0x30, 0xb6, 0x25, 0xa7, 0xb5, 0x97, 0xae, 0xa6, 0x2c, 0xf1, 0x78, 0x03, |
| 19473 | 0x1f, 0xc2, 0x72, 0x34, 0x4c, 0x4c, 0x65, 0xf2, 0x6b, 0xbe, 0x81, 0x93, 0x22, 0xc9, 0x54, 0x72, |
| 19474 | 0x3f, 0x0d, 0x82, 0x81, 0x12, 0x50, 0xa6, 0x12, 0xa9, 0x43, 0x33, 0x29, 0xbe, 0xfc, 0x26, 0xf6, |
| 19475 | 0xab, 0x1f, 0x6e, 0xa6, 0x12, 0xe6, 0x06, 0xc2, 0xa6, 0x5f, 0xfe, 0x20, 0x46, 0x64, 0x6f, 0x8c, |
| 19476 | 0x11, 0xe2, 0x90, 0x04, 0x51, 0xec, 0x1b, 0xd8, 0x74, 0x42, 0x47, 0x10, 0x40, 0xa7, 0xd5, 0x41, |
| 19477 | 0x73, 0x88, 0xaf, 0x83, 0x35, 0xe4, 0xc6, 0x56, 0xc3, 0xee, 0x54, 0x8b, 0xf1, 0x59, 0x10, 0x3b, |
| 19478 | 0x63, 0x91, 0x79, 0x2a, 0xc1, 0x9f, 0xc3, 0x5a, 0x7a, 0x50, 0x9e, 0x46, 0xf2, 0xd3, 0x16, 0x94, |
| 19479 | 0xfc, 0xb2, 0x55, 0xf9, 0x22, 0xa6, 0x0c, 0x85, 0xc3, 0xce, 0xf1, 0xd1, 0xd6, 0x76, 0x9b, 0x7f, |
| 19480 | 0x12, 0xb3, 0xdd, 0xd1, 0xf5, 0x93, 0xa3, 0x6e, 0x3d, 0xb3, 0xf9, 0xcb, 0x2c, 0x64, 0xf6, 0x5f, |
| 19481 | 0xa3, 0x2f, 0x20, 0xc7, 0xdf, 0x0f, 0xdf, 0xf0, 0x51, 0x40, 0xf3, 0xa6, 0x57, 0xe0, 0xf8, 0xce, |
| 19482 | 0x4f, 0xfe, 0xfb, 0x97, 0x3f, 0xcf, 0xcc, 0xe3, 0x4a, 0x6b, 0xf2, 0x9d, 0xd6, 0xe5, 0xa4, 0xc5, |
| 19483 | 0x72, 0xc3, 0x73, 0xed, 0x29, 0xfa, 0x14, 0xb2, 0x47, 0x63, 0x0f, 0xa5, 0x7e, 0x2c, 0xd0, 0x4c, |
| 19484 | 0x7f, 0x2b, 0x8e, 0x97, 0x98, 0xd0, 0x39, 0x0c, 0x42, 0xe8, 0x68, 0xec, 0x51, 0x91, 0x3f, 0x82, |
| 19485 | 0xb2, 0xfa, 0x4e, 0xfb, 0xd6, 0x2f, 0x08, 0x9a, 0xb7, 0xbf, 0x2f, 0xc7, 0xf7, 0x99, 0xaa, 0x3b, |
| 19486 | 0x18, 0x09, 0x55, 0xfc, 0xad, 0xbb, 0x3a, 0x8b, 0xee, 0x95, 0x85, 0x52, 0xbf, 0x2f, 0x68, 0xa6, |
| 19487 | 0xbf, 0x42, 0x8f, 0xcd, 0xc2, 0xbb, 0xb2, 0xa8, 0xc8, 0x3f, 0x16, 0x6f, 0xcf, 0x7b, 0x1e, 0x7a, |
| 19488 | 0x90, 0xf0, 0xf6, 0x54, 0x7d, 0x4f, 0xd8, 0x5c, 0x4b, 0x67, 0x10, 0x4a, 0xee, 0x31, 0x25, 0xcb, |
| 19489 | 0x78, 0x5e, 0x28, 0xe9, 0xf9, 0x2c, 0xcf, 0xb5, 0xa7, 0x9b, 0x3d, 0xc8, 0x31, 0x0c, 0x1e, 0x7d, |
| 19490 | 0x29, 0x1f, 0x9a, 0x09, 0x2f, 0x23, 0x52, 0x16, 0x3a, 0x84, 0xde, 0xe3, 0x45, 0xa6, 0xa8, 0x86, |
| 19491 | 0x4b, 0x54, 0x11, 0x43, 0xe0, 0x9f, 0x6b, 0x4f, 0xd7, 0xb5, 0x6f, 0x69, 0x9b, 0xff, 0x9c, 0x83, |
| 19492 | 0x1c, 0x03, 0x9f, 0xd0, 0x25, 0x40, 0x80, 0x47, 0x47, 0x67, 0x17, 0x43, 0xb8, 0xa3, 0xb3, 0x8b, |
| 19493 | 0x43, 0xd9, 0xb8, 0xc9, 0x94, 0x2e, 0xe2, 0x39, 0xaa, 0x94, 0x61, 0x5a, 0x2d, 0x06, 0xd3, 0x51, |
| 19494 | 0x3f, 0xfe, 0x95, 0x26, 0xb0, 0x37, 0x7e, 0x96, 0x50, 0x92, 0xb4, 0x10, 0x28, 0x1d, 0xdd, 0x0e, |
| 19495 | 0x09, 0x80, 0x34, 0xfe, 0x1e, 0x53, 0xd8, 0xc2, 0xf5, 0x40, 0xa1, 0xc3, 0x38, 0x9e, 0x6b, 0x4f, |
| 19496 | 0xbf, 0x6c, 0xe0, 0x05, 0xe1, 0xe5, 0x48, 0x0f, 0xfa, 0x31, 0xd4, 0xc2, 0xa0, 0x2b, 0x7a, 0x98, |
| 19497 | 0xa0, 0x2b, 0x8a, 0xdd, 0x36, 0x1f, 0xdd, 0xcc, 0x24, 0x6c, 0x5a, 0x65, 0x36, 0x09, 0xe5, 0x5c, |
| 19498 | 0xf3, 0x25, 0x21, 0x23, 0x83, 0x32, 0x89, 0x35, 0x40, 0x7f, 0xaf, 0x09, 0x4c, 0x3c, 0x40, 0x51, |
| 19499 | 0x51, 0x92, 0xf4, 0x18, 0x46, 0xdb, 0x7c, 0x7c, 0x0b, 0x97, 0x30, 0xe2, 0x0f, 0x98, 0x11, 0xbf, |
| 19500 | 0x8b, 0x17, 0x03, 0x23, 0x3c, 0x73, 0x48, 0x3c, 0x5b, 0x58, 0xf1, 0xe5, 0x3d, 0x7c, 0x27, 0xe4, |
| 19501 | 0x9c, 0x50, 0x6f, 0xb0, 0x58, 0x1c, 0x09, 0x4d, 0x5c, 0xac, 0x10, 0xb2, 0x9a, 0xb8, 0x58, 0x61, |
| 19502 | 0x18, 0x35, 0x69, 0xb1, 0x38, 0xee, 0x99, 0xb4, 0x58, 0x7e, 0xcf, 0x26, 0xfb, 0x7e, 0x85, 0x7f, |
| 19503 | 0xb5, 0x8a, 0x6c, 0x28, 0xf9, 0x28, 0x24, 0x5a, 0x4d, 0x42, 0x84, 0x82, 0xbb, 0x44, 0xf3, 0x41, |
| 19504 | 0x6a, 0xbf, 0x30, 0xe8, 0x3d, 0x66, 0xd0, 0x5d, 0xbc, 0x4c, 0x35, 0x8b, 0x0f, 0x63, 0x5b, 0x1c, |
| 19505 | 0x76, 0x68, 0x19, 0xfd, 0x3e, 0x75, 0xc4, 0x9f, 0x40, 0x45, 0x85, 0x09, 0xd1, 0x7b, 0x89, 0x28, |
| 19506 | 0x94, 0x8a, 0x34, 0x36, 0xf1, 0x4d, 0x2c, 0x42, 0xf3, 0x23, 0xa6, 0x79, 0x15, 0xaf, 0x24, 0x68, |
| 19507 | 0x76, 0x18, 0x6b, 0x48, 0x39, 0x87, 0xf8, 0x92, 0x95, 0x87, 0x10, 0xc4, 0x64, 0xe5, 0x61, 0x84, |
| 19508 | 0xf0, 0x46, 0xe5, 0x63, 0xc6, 0x4a, 0x95, 0xbb, 0x00, 0x01, 0x98, 0x87, 0x12, 0x7d, 0xa9, 0x5c, |
| 19509 | 0xa6, 0xa2, 0xc1, 0x21, 0x8e, 0x03, 0x62, 0xcc, 0xd4, 0x8a, 0x7d, 0x17, 0x51, 0x3b, 0x30, 0x5d, |
| 19510 | 0x1a, 0x24, 0x36, 0xff, 0x3a, 0x0f, 0xe5, 0x57, 0x86, 0x69, 0x79, 0xc4, 0x32, 0xac, 0x1e, 0x41, |
| 19511 | 0x67, 0x90, 0x63, 0x89, 0x32, 0x1a, 0x07, 0x55, 0x7c, 0x2b, 0x1a, 0x07, 0x43, 0xe0, 0x0f, 0x5e, |
| 19512 | 0x63, 0x5a, 0x9b, 0x78, 0x89, 0x6a, 0x1d, 0x06, 0xa2, 0x5b, 0x0c, 0xb3, 0xa1, 0x13, 0x7d, 0x03, |
| 19513 | 0x79, 0xf1, 0x3a, 0x20, 0x22, 0x28, 0x84, 0xe5, 0x34, 0xef, 0x25, 0x77, 0x26, 0x6d, 0x25, 0x55, |
| 19514 | 0x8d, 0xcb, 0xf8, 0xa8, 0x9e, 0x09, 0x40, 0x00, 0x46, 0x46, 0x1d, 0x1a, 0xc3, 0x2e, 0x9b, 0x6b, |
| 19515 | 0xe9, 0x0c, 0x42, 0xe7, 0x63, 0xa6, 0xf3, 0x01, 0x6e, 0x46, 0x75, 0xf6, 0x7d, 0x5e, 0xaa, 0xf7, |
| 19516 | 0x8f, 0x60, 0x76, 0xd7, 0x70, 0x2f, 0x50, 0x24, 0xf5, 0x29, 0x1f, 0x93, 0x34, 0x9b, 0x49, 0x5d, |
| 19517 | 0x42, 0xcb, 0x03, 0xa6, 0x65, 0x85, 0x47, 0x12, 0x55, 0xcb, 0x85, 0xe1, 0xd2, 0x9c, 0x82, 0xfa, |
| 19518 | 0x90, 0xe7, 0xdf, 0x96, 0x44, 0xfd, 0x17, 0xfa, 0x3e, 0x25, 0xea, 0xbf, 0xf0, 0xe7, 0x28, 0xb7, |
| 19519 | 0x6b, 0x19, 0x41, 0x51, 0x7e, 0xcc, 0x81, 0x22, 0x6f, 0xf6, 0x22, 0x1f, 0x7e, 0x34, 0x57, 0xd3, |
| 19520 | 0xba, 0x85, 0xae, 0x87, 0x4c, 0xd7, 0x7d, 0xdc, 0x88, 0xad, 0x95, 0xe0, 0x7c, 0xae, 0x3d, 0xfd, |
| 19521 | 0x96, 0x86, 0x7e, 0x0c, 0x10, 0xe0, 0xb7, 0xb1, 0x03, 0x10, 0x85, 0x82, 0x63, 0x07, 0x20, 0x06, |
| 19522 | 0xfd, 0xe2, 0x0d, 0xa6, 0x77, 0x1d, 0x3f, 0x8c, 0xea, 0xf5, 0x1c, 0xc3, 0x72, 0xdf, 0x10, 0xe7, |
| 19523 | 0x23, 0x8e, 0xd1, 0xb9, 0x17, 0xe6, 0x88, 0x1e, 0x86, 0x7f, 0x9b, 0x83, 0x59, 0x5a, 0x80, 0xd2, |
| 19524 | 0x3c, 0x1d, 0xdc, 0xdb, 0xa3, 0x96, 0xc4, 0xd0, 0xb2, 0xa8, 0x25, 0xf1, 0x2b, 0x7f, 0x38, 0x4f, |
| 19525 | 0xb3, 0x9f, 0x1b, 0x10, 0xc6, 0x40, 0x1d, 0x6d, 0x43, 0x59, 0xb9, 0xd8, 0xa3, 0x04, 0x61, 0x61, |
| 19526 | 0x18, 0x2e, 0x1a, 0xf9, 0x13, 0x50, 0x01, 0x7c, 0x97, 0xe9, 0x5b, 0xe2, 0x91, 0x9f, 0xe9, 0xeb, |
| 19527 | 0x73, 0x0e, 0xaa, 0xf0, 0x2d, 0x54, 0xd4, 0xcb, 0x3f, 0x4a, 0x90, 0x17, 0x81, 0xf8, 0xa2, 0x51, |
| 19528 | 0x2e, 0x09, 0x3b, 0x08, 0x1f, 0x7c, 0xff, 0x27, 0x15, 0x92, 0x8d, 0x2a, 0x1e, 0x40, 0x41, 0xa0, |
| 19529 | 0x01, 0x49, 0xb3, 0x0c, 0xe3, 0x81, 0x49, 0xb3, 0x8c, 0x40, 0x09, 0xe1, 0xda, 0x8e, 0x69, 0xa4, |
| 19530 | 0x17, 0x1e, 0x99, 0x49, 0x84, 0xb6, 0x97, 0xc4, 0x4b, 0xd3, 0x16, 0x80, 0x5b, 0x69, 0xda, 0x94, |
| 19531 | 0xcb, 0x66, 0x9a, 0xb6, 0x73, 0xe2, 0x89, 0xe3, 0x22, 0x2f, 0x71, 0x28, 0x45, 0x98, 0x1a, 0xbd, |
| 19532 | 0xf1, 0x4d, 0x2c, 0x49, 0xa5, 0x77, 0xa0, 0x50, 0x84, 0x6e, 0x74, 0x05, 0x10, 0x60, 0x15, 0xd1, |
| 19533 | 0x7a, 0x2a, 0x11, 0xf0, 0x8c, 0xd6, 0x53, 0xc9, 0x70, 0x47, 0x38, 0x34, 0x04, 0x7a, 0x79, 0xe5, |
| 19534 | 0x4f, 0x35, 0xff, 0x4c, 0x03, 0x14, 0x87, 0x35, 0xd0, 0xb3, 0x64, 0xe9, 0x89, 0x30, 0x6a, 0xf3, |
| 19535 | 0xc3, 0x77, 0x63, 0x4e, 0x8a, 0xf6, 0x81, 0x49, 0x3d, 0xc6, 0x3d, 0x7a, 0x4b, 0x8d, 0xfa, 0x73, |
| 19536 | 0x0d, 0xaa, 0x21, 0x4c, 0x04, 0xbd, 0x9f, 0xb2, 0xa6, 0x11, 0x14, 0xb6, 0xf9, 0xe4, 0x56, 0xbe, |
| 19537 | 0xa4, 0x42, 0x53, 0xd9, 0x01, 0xb2, 0xe2, 0xfe, 0xa9, 0x06, 0xb5, 0x30, 0x86, 0x82, 0x52, 0x64, |
| 19538 | 0xc7, 0x50, 0xdc, 0xe6, 0xfa, 0xed, 0x8c, 0x37, 0x2f, 0x4f, 0x50, 0x6c, 0x0f, 0xa0, 0x20, 0x50, |
| 19539 | 0x97, 0xa4, 0x8d, 0x1f, 0xc6, 0x7f, 0x93, 0x36, 0x7e, 0x04, 0xb2, 0x49, 0xd8, 0xf8, 0x8e, 0x3d, |
| 19540 | 0x20, 0xca, 0x31, 0x13, 0xb0, 0x4c, 0x9a, 0xb6, 0x9b, 0x8f, 0x59, 0x04, 0xd3, 0x49, 0xd3, 0x16, |
| 19541 | 0x1c, 0x33, 0x89, 0xc7, 0xa0, 0x14, 0x61, 0xb7, 0x1c, 0xb3, 0x28, 0x9c, 0x93, 0x70, 0xcc, 0x98, |
| 19542 | 0x42, 0xe5, 0x98, 0x05, 0xc8, 0x49, 0xd2, 0x31, 0x8b, 0xc1, 0xd9, 0x49, 0xc7, 0x2c, 0x0e, 0xbe, |
| 19543 | 0x24, 0xac, 0x23, 0xd3, 0x1b, 0x3a, 0x66, 0x0b, 0x09, 0x20, 0x0b, 0xfa, 0x30, 0xc5, 0x89, 0x89, |
| 19544 | 0x28, 0x79, 0xf3, 0xa3, 0x77, 0xe4, 0x4e, 0xdd, 0xe3, 0xdc, 0xfd, 0x72, 0x8f, 0xff, 0x8d, 0x06, |
| 19545 | 0x8b, 0x49, 0x00, 0x0d, 0x4a, 0xd1, 0x93, 0x82, 0xae, 0x37, 0x37, 0xde, 0x95, 0xfd, 0x66, 0x6f, |
| 19546 | 0xf9, 0xbb, 0xfe, 0x45, 0xfd, 0xdf, 0xbf, 0x5e, 0xd5, 0xfe, 0xf3, 0xeb, 0x55, 0xed, 0x7f, 0xbe, |
| 19547 | 0x5e, 0xd5, 0xfe, 0xf6, 0x7f, 0x57, 0x67, 0xce, 0xf2, 0xec, 0x87, 0x7a, 0xdf, 0xf9, 0xff, 0x00, |
| 19548 | 0x00, 0x00, 0xff, 0xff, 0xc6, 0xc3, 0xa2, 0xb2, 0x2f, 0x38, 0x00, 0x00, |
| 19549 | } |