Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -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) { |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 214 | return fileDescriptorRpc, []int{54, 0} |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 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"` |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2189 | // isLearner indicates if the member is raft learner. |
| 2190 | IsLearner bool `protobuf:"varint,5,opt,name=isLearner,proto3" json:"isLearner,omitempty"` |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2191 | } |
| 2192 | |
| 2193 | func (m *Member) Reset() { *m = Member{} } |
| 2194 | func (m *Member) String() string { return proto.CompactTextString(m) } |
| 2195 | func (*Member) ProtoMessage() {} |
| 2196 | func (*Member) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{39} } |
| 2197 | |
| 2198 | func (m *Member) GetID() uint64 { |
| 2199 | if m != nil { |
| 2200 | return m.ID |
| 2201 | } |
| 2202 | return 0 |
| 2203 | } |
| 2204 | |
| 2205 | func (m *Member) GetName() string { |
| 2206 | if m != nil { |
| 2207 | return m.Name |
| 2208 | } |
| 2209 | return "" |
| 2210 | } |
| 2211 | |
| 2212 | func (m *Member) GetPeerURLs() []string { |
| 2213 | if m != nil { |
| 2214 | return m.PeerURLs |
| 2215 | } |
| 2216 | return nil |
| 2217 | } |
| 2218 | |
| 2219 | func (m *Member) GetClientURLs() []string { |
| 2220 | if m != nil { |
| 2221 | return m.ClientURLs |
| 2222 | } |
| 2223 | return nil |
| 2224 | } |
| 2225 | |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2226 | func (m *Member) GetIsLearner() bool { |
| 2227 | if m != nil { |
| 2228 | return m.IsLearner |
| 2229 | } |
| 2230 | return false |
| 2231 | } |
| 2232 | |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2233 | type MemberAddRequest struct { |
| 2234 | // peerURLs is the list of URLs the added member will use to communicate with the cluster. |
| 2235 | PeerURLs []string `protobuf:"bytes,1,rep,name=peerURLs" json:"peerURLs,omitempty"` |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2236 | // isLearner indicates if the added member is raft learner. |
| 2237 | IsLearner bool `protobuf:"varint,2,opt,name=isLearner,proto3" json:"isLearner,omitempty"` |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2238 | } |
| 2239 | |
| 2240 | func (m *MemberAddRequest) Reset() { *m = MemberAddRequest{} } |
| 2241 | func (m *MemberAddRequest) String() string { return proto.CompactTextString(m) } |
| 2242 | func (*MemberAddRequest) ProtoMessage() {} |
| 2243 | func (*MemberAddRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{40} } |
| 2244 | |
| 2245 | func (m *MemberAddRequest) GetPeerURLs() []string { |
| 2246 | if m != nil { |
| 2247 | return m.PeerURLs |
| 2248 | } |
| 2249 | return nil |
| 2250 | } |
| 2251 | |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2252 | func (m *MemberAddRequest) GetIsLearner() bool { |
| 2253 | if m != nil { |
| 2254 | return m.IsLearner |
| 2255 | } |
| 2256 | return false |
| 2257 | } |
| 2258 | |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2259 | type MemberAddResponse struct { |
| 2260 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2261 | // member is the member information for the added member. |
| 2262 | Member *Member `protobuf:"bytes,2,opt,name=member" json:"member,omitempty"` |
| 2263 | // members is a list of all members after adding the new member. |
| 2264 | Members []*Member `protobuf:"bytes,3,rep,name=members" json:"members,omitempty"` |
| 2265 | } |
| 2266 | |
| 2267 | func (m *MemberAddResponse) Reset() { *m = MemberAddResponse{} } |
| 2268 | func (m *MemberAddResponse) String() string { return proto.CompactTextString(m) } |
| 2269 | func (*MemberAddResponse) ProtoMessage() {} |
| 2270 | func (*MemberAddResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{41} } |
| 2271 | |
| 2272 | func (m *MemberAddResponse) GetHeader() *ResponseHeader { |
| 2273 | if m != nil { |
| 2274 | return m.Header |
| 2275 | } |
| 2276 | return nil |
| 2277 | } |
| 2278 | |
| 2279 | func (m *MemberAddResponse) GetMember() *Member { |
| 2280 | if m != nil { |
| 2281 | return m.Member |
| 2282 | } |
| 2283 | return nil |
| 2284 | } |
| 2285 | |
| 2286 | func (m *MemberAddResponse) GetMembers() []*Member { |
| 2287 | if m != nil { |
| 2288 | return m.Members |
| 2289 | } |
| 2290 | return nil |
| 2291 | } |
| 2292 | |
| 2293 | type MemberRemoveRequest struct { |
| 2294 | // ID is the member ID of the member to remove. |
| 2295 | ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 2296 | } |
| 2297 | |
| 2298 | func (m *MemberRemoveRequest) Reset() { *m = MemberRemoveRequest{} } |
| 2299 | func (m *MemberRemoveRequest) String() string { return proto.CompactTextString(m) } |
| 2300 | func (*MemberRemoveRequest) ProtoMessage() {} |
| 2301 | func (*MemberRemoveRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{42} } |
| 2302 | |
| 2303 | func (m *MemberRemoveRequest) GetID() uint64 { |
| 2304 | if m != nil { |
| 2305 | return m.ID |
| 2306 | } |
| 2307 | return 0 |
| 2308 | } |
| 2309 | |
| 2310 | type MemberRemoveResponse struct { |
| 2311 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2312 | // members is a list of all members after removing the member. |
| 2313 | Members []*Member `protobuf:"bytes,2,rep,name=members" json:"members,omitempty"` |
| 2314 | } |
| 2315 | |
| 2316 | func (m *MemberRemoveResponse) Reset() { *m = MemberRemoveResponse{} } |
| 2317 | func (m *MemberRemoveResponse) String() string { return proto.CompactTextString(m) } |
| 2318 | func (*MemberRemoveResponse) ProtoMessage() {} |
| 2319 | func (*MemberRemoveResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{43} } |
| 2320 | |
| 2321 | func (m *MemberRemoveResponse) GetHeader() *ResponseHeader { |
| 2322 | if m != nil { |
| 2323 | return m.Header |
| 2324 | } |
| 2325 | return nil |
| 2326 | } |
| 2327 | |
| 2328 | func (m *MemberRemoveResponse) GetMembers() []*Member { |
| 2329 | if m != nil { |
| 2330 | return m.Members |
| 2331 | } |
| 2332 | return nil |
| 2333 | } |
| 2334 | |
| 2335 | type MemberUpdateRequest struct { |
| 2336 | // ID is the member ID of the member to update. |
| 2337 | ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 2338 | // peerURLs is the new list of URLs the member will use to communicate with the cluster. |
| 2339 | PeerURLs []string `protobuf:"bytes,2,rep,name=peerURLs" json:"peerURLs,omitempty"` |
| 2340 | } |
| 2341 | |
| 2342 | func (m *MemberUpdateRequest) Reset() { *m = MemberUpdateRequest{} } |
| 2343 | func (m *MemberUpdateRequest) String() string { return proto.CompactTextString(m) } |
| 2344 | func (*MemberUpdateRequest) ProtoMessage() {} |
| 2345 | func (*MemberUpdateRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{44} } |
| 2346 | |
| 2347 | func (m *MemberUpdateRequest) GetID() uint64 { |
| 2348 | if m != nil { |
| 2349 | return m.ID |
| 2350 | } |
| 2351 | return 0 |
| 2352 | } |
| 2353 | |
| 2354 | func (m *MemberUpdateRequest) GetPeerURLs() []string { |
| 2355 | if m != nil { |
| 2356 | return m.PeerURLs |
| 2357 | } |
| 2358 | return nil |
| 2359 | } |
| 2360 | |
| 2361 | type MemberUpdateResponse struct { |
| 2362 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2363 | // members is a list of all members after updating the member. |
| 2364 | Members []*Member `protobuf:"bytes,2,rep,name=members" json:"members,omitempty"` |
| 2365 | } |
| 2366 | |
| 2367 | func (m *MemberUpdateResponse) Reset() { *m = MemberUpdateResponse{} } |
| 2368 | func (m *MemberUpdateResponse) String() string { return proto.CompactTextString(m) } |
| 2369 | func (*MemberUpdateResponse) ProtoMessage() {} |
| 2370 | func (*MemberUpdateResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{45} } |
| 2371 | |
| 2372 | func (m *MemberUpdateResponse) GetHeader() *ResponseHeader { |
| 2373 | if m != nil { |
| 2374 | return m.Header |
| 2375 | } |
| 2376 | return nil |
| 2377 | } |
| 2378 | |
| 2379 | func (m *MemberUpdateResponse) GetMembers() []*Member { |
| 2380 | if m != nil { |
| 2381 | return m.Members |
| 2382 | } |
| 2383 | return nil |
| 2384 | } |
| 2385 | |
| 2386 | type MemberListRequest struct { |
| 2387 | } |
| 2388 | |
| 2389 | func (m *MemberListRequest) Reset() { *m = MemberListRequest{} } |
| 2390 | func (m *MemberListRequest) String() string { return proto.CompactTextString(m) } |
| 2391 | func (*MemberListRequest) ProtoMessage() {} |
| 2392 | func (*MemberListRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{46} } |
| 2393 | |
| 2394 | type MemberListResponse struct { |
| 2395 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2396 | // members is a list of all members associated with the cluster. |
| 2397 | Members []*Member `protobuf:"bytes,2,rep,name=members" json:"members,omitempty"` |
| 2398 | } |
| 2399 | |
| 2400 | func (m *MemberListResponse) Reset() { *m = MemberListResponse{} } |
| 2401 | func (m *MemberListResponse) String() string { return proto.CompactTextString(m) } |
| 2402 | func (*MemberListResponse) ProtoMessage() {} |
| 2403 | func (*MemberListResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{47} } |
| 2404 | |
| 2405 | func (m *MemberListResponse) GetHeader() *ResponseHeader { |
| 2406 | if m != nil { |
| 2407 | return m.Header |
| 2408 | } |
| 2409 | return nil |
| 2410 | } |
| 2411 | |
| 2412 | func (m *MemberListResponse) GetMembers() []*Member { |
| 2413 | if m != nil { |
| 2414 | return m.Members |
| 2415 | } |
| 2416 | return nil |
| 2417 | } |
| 2418 | |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2419 | type MemberPromoteRequest struct { |
| 2420 | // ID is the member ID of the member to promote. |
| 2421 | ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 2422 | } |
| 2423 | |
| 2424 | func (m *MemberPromoteRequest) Reset() { *m = MemberPromoteRequest{} } |
| 2425 | func (m *MemberPromoteRequest) String() string { return proto.CompactTextString(m) } |
| 2426 | func (*MemberPromoteRequest) ProtoMessage() {} |
| 2427 | func (*MemberPromoteRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{48} } |
| 2428 | |
| 2429 | func (m *MemberPromoteRequest) GetID() uint64 { |
| 2430 | if m != nil { |
| 2431 | return m.ID |
| 2432 | } |
| 2433 | return 0 |
| 2434 | } |
| 2435 | |
| 2436 | type MemberPromoteResponse struct { |
| 2437 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2438 | // members is a list of all members after promoting the member. |
| 2439 | Members []*Member `protobuf:"bytes,2,rep,name=members" json:"members,omitempty"` |
| 2440 | } |
| 2441 | |
| 2442 | func (m *MemberPromoteResponse) Reset() { *m = MemberPromoteResponse{} } |
| 2443 | func (m *MemberPromoteResponse) String() string { return proto.CompactTextString(m) } |
| 2444 | func (*MemberPromoteResponse) ProtoMessage() {} |
| 2445 | func (*MemberPromoteResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{49} } |
| 2446 | |
| 2447 | func (m *MemberPromoteResponse) GetHeader() *ResponseHeader { |
| 2448 | if m != nil { |
| 2449 | return m.Header |
| 2450 | } |
| 2451 | return nil |
| 2452 | } |
| 2453 | |
| 2454 | func (m *MemberPromoteResponse) GetMembers() []*Member { |
| 2455 | if m != nil { |
| 2456 | return m.Members |
| 2457 | } |
| 2458 | return nil |
| 2459 | } |
| 2460 | |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2461 | type DefragmentRequest struct { |
| 2462 | } |
| 2463 | |
| 2464 | func (m *DefragmentRequest) Reset() { *m = DefragmentRequest{} } |
| 2465 | func (m *DefragmentRequest) String() string { return proto.CompactTextString(m) } |
| 2466 | func (*DefragmentRequest) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2467 | func (*DefragmentRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{50} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2468 | |
| 2469 | type DefragmentResponse struct { |
| 2470 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2471 | } |
| 2472 | |
| 2473 | func (m *DefragmentResponse) Reset() { *m = DefragmentResponse{} } |
| 2474 | func (m *DefragmentResponse) String() string { return proto.CompactTextString(m) } |
| 2475 | func (*DefragmentResponse) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2476 | func (*DefragmentResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{51} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2477 | |
| 2478 | func (m *DefragmentResponse) GetHeader() *ResponseHeader { |
| 2479 | if m != nil { |
| 2480 | return m.Header |
| 2481 | } |
| 2482 | return nil |
| 2483 | } |
| 2484 | |
| 2485 | type MoveLeaderRequest struct { |
| 2486 | // targetID is the node ID for the new leader. |
| 2487 | TargetID uint64 `protobuf:"varint,1,opt,name=targetID,proto3" json:"targetID,omitempty"` |
| 2488 | } |
| 2489 | |
| 2490 | func (m *MoveLeaderRequest) Reset() { *m = MoveLeaderRequest{} } |
| 2491 | func (m *MoveLeaderRequest) String() string { return proto.CompactTextString(m) } |
| 2492 | func (*MoveLeaderRequest) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2493 | func (*MoveLeaderRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{52} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2494 | |
| 2495 | func (m *MoveLeaderRequest) GetTargetID() uint64 { |
| 2496 | if m != nil { |
| 2497 | return m.TargetID |
| 2498 | } |
| 2499 | return 0 |
| 2500 | } |
| 2501 | |
| 2502 | type MoveLeaderResponse struct { |
| 2503 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2504 | } |
| 2505 | |
| 2506 | func (m *MoveLeaderResponse) Reset() { *m = MoveLeaderResponse{} } |
| 2507 | func (m *MoveLeaderResponse) String() string { return proto.CompactTextString(m) } |
| 2508 | func (*MoveLeaderResponse) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2509 | func (*MoveLeaderResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{53} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2510 | |
| 2511 | func (m *MoveLeaderResponse) GetHeader() *ResponseHeader { |
| 2512 | if m != nil { |
| 2513 | return m.Header |
| 2514 | } |
| 2515 | return nil |
| 2516 | } |
| 2517 | |
| 2518 | type AlarmRequest struct { |
| 2519 | // action is the kind of alarm request to issue. The action |
| 2520 | // may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a |
| 2521 | // raised alarm. |
| 2522 | Action AlarmRequest_AlarmAction `protobuf:"varint,1,opt,name=action,proto3,enum=etcdserverpb.AlarmRequest_AlarmAction" json:"action,omitempty"` |
| 2523 | // memberID is the ID of the member associated with the alarm. If memberID is 0, the |
| 2524 | // alarm request covers all members. |
| 2525 | MemberID uint64 `protobuf:"varint,2,opt,name=memberID,proto3" json:"memberID,omitempty"` |
| 2526 | // alarm is the type of alarm to consider for this request. |
| 2527 | Alarm AlarmType `protobuf:"varint,3,opt,name=alarm,proto3,enum=etcdserverpb.AlarmType" json:"alarm,omitempty"` |
| 2528 | } |
| 2529 | |
| 2530 | func (m *AlarmRequest) Reset() { *m = AlarmRequest{} } |
| 2531 | func (m *AlarmRequest) String() string { return proto.CompactTextString(m) } |
| 2532 | func (*AlarmRequest) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2533 | func (*AlarmRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{54} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2534 | |
| 2535 | func (m *AlarmRequest) GetAction() AlarmRequest_AlarmAction { |
| 2536 | if m != nil { |
| 2537 | return m.Action |
| 2538 | } |
| 2539 | return AlarmRequest_GET |
| 2540 | } |
| 2541 | |
| 2542 | func (m *AlarmRequest) GetMemberID() uint64 { |
| 2543 | if m != nil { |
| 2544 | return m.MemberID |
| 2545 | } |
| 2546 | return 0 |
| 2547 | } |
| 2548 | |
| 2549 | func (m *AlarmRequest) GetAlarm() AlarmType { |
| 2550 | if m != nil { |
| 2551 | return m.Alarm |
| 2552 | } |
| 2553 | return AlarmType_NONE |
| 2554 | } |
| 2555 | |
| 2556 | type AlarmMember struct { |
| 2557 | // memberID is the ID of the member associated with the raised alarm. |
| 2558 | MemberID uint64 `protobuf:"varint,1,opt,name=memberID,proto3" json:"memberID,omitempty"` |
| 2559 | // alarm is the type of alarm which has been raised. |
| 2560 | Alarm AlarmType `protobuf:"varint,2,opt,name=alarm,proto3,enum=etcdserverpb.AlarmType" json:"alarm,omitempty"` |
| 2561 | } |
| 2562 | |
| 2563 | func (m *AlarmMember) Reset() { *m = AlarmMember{} } |
| 2564 | func (m *AlarmMember) String() string { return proto.CompactTextString(m) } |
| 2565 | func (*AlarmMember) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2566 | func (*AlarmMember) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{55} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2567 | |
| 2568 | func (m *AlarmMember) GetMemberID() uint64 { |
| 2569 | if m != nil { |
| 2570 | return m.MemberID |
| 2571 | } |
| 2572 | return 0 |
| 2573 | } |
| 2574 | |
| 2575 | func (m *AlarmMember) GetAlarm() AlarmType { |
| 2576 | if m != nil { |
| 2577 | return m.Alarm |
| 2578 | } |
| 2579 | return AlarmType_NONE |
| 2580 | } |
| 2581 | |
| 2582 | type AlarmResponse struct { |
| 2583 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2584 | // alarms is a list of alarms associated with the alarm request. |
| 2585 | Alarms []*AlarmMember `protobuf:"bytes,2,rep,name=alarms" json:"alarms,omitempty"` |
| 2586 | } |
| 2587 | |
| 2588 | func (m *AlarmResponse) Reset() { *m = AlarmResponse{} } |
| 2589 | func (m *AlarmResponse) String() string { return proto.CompactTextString(m) } |
| 2590 | func (*AlarmResponse) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2591 | func (*AlarmResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{56} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2592 | |
| 2593 | func (m *AlarmResponse) GetHeader() *ResponseHeader { |
| 2594 | if m != nil { |
| 2595 | return m.Header |
| 2596 | } |
| 2597 | return nil |
| 2598 | } |
| 2599 | |
| 2600 | func (m *AlarmResponse) GetAlarms() []*AlarmMember { |
| 2601 | if m != nil { |
| 2602 | return m.Alarms |
| 2603 | } |
| 2604 | return nil |
| 2605 | } |
| 2606 | |
| 2607 | type StatusRequest struct { |
| 2608 | } |
| 2609 | |
| 2610 | func (m *StatusRequest) Reset() { *m = StatusRequest{} } |
| 2611 | func (m *StatusRequest) String() string { return proto.CompactTextString(m) } |
| 2612 | func (*StatusRequest) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2613 | func (*StatusRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{57} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2614 | |
| 2615 | type StatusResponse struct { |
| 2616 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 2617 | // version is the cluster protocol version used by the responding member. |
| 2618 | Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` |
| 2619 | // dbSize is the size of the backend database physically allocated, in bytes, of the responding member. |
| 2620 | DbSize int64 `protobuf:"varint,3,opt,name=dbSize,proto3" json:"dbSize,omitempty"` |
| 2621 | // leader is the member ID which the responding member believes is the current leader. |
| 2622 | Leader uint64 `protobuf:"varint,4,opt,name=leader,proto3" json:"leader,omitempty"` |
| 2623 | // raftIndex is the current raft committed index of the responding member. |
| 2624 | RaftIndex uint64 `protobuf:"varint,5,opt,name=raftIndex,proto3" json:"raftIndex,omitempty"` |
| 2625 | // raftTerm is the current raft term of the responding member. |
| 2626 | RaftTerm uint64 `protobuf:"varint,6,opt,name=raftTerm,proto3" json:"raftTerm,omitempty"` |
| 2627 | // raftAppliedIndex is the current raft applied index of the responding member. |
| 2628 | RaftAppliedIndex uint64 `protobuf:"varint,7,opt,name=raftAppliedIndex,proto3" json:"raftAppliedIndex,omitempty"` |
| 2629 | // errors contains alarm/health information and status. |
| 2630 | Errors []string `protobuf:"bytes,8,rep,name=errors" json:"errors,omitempty"` |
| 2631 | // dbSizeInUse is the size of the backend database logically in use, in bytes, of the responding member. |
| 2632 | DbSizeInUse int64 `protobuf:"varint,9,opt,name=dbSizeInUse,proto3" json:"dbSizeInUse,omitempty"` |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2633 | // isLearner indicates if the member is raft learner. |
| 2634 | IsLearner bool `protobuf:"varint,10,opt,name=isLearner,proto3" json:"isLearner,omitempty"` |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2635 | } |
| 2636 | |
| 2637 | func (m *StatusResponse) Reset() { *m = StatusResponse{} } |
| 2638 | func (m *StatusResponse) String() string { return proto.CompactTextString(m) } |
| 2639 | func (*StatusResponse) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2640 | func (*StatusResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{58} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2641 | |
| 2642 | func (m *StatusResponse) GetHeader() *ResponseHeader { |
| 2643 | if m != nil { |
| 2644 | return m.Header |
| 2645 | } |
| 2646 | return nil |
| 2647 | } |
| 2648 | |
| 2649 | func (m *StatusResponse) GetVersion() string { |
| 2650 | if m != nil { |
| 2651 | return m.Version |
| 2652 | } |
| 2653 | return "" |
| 2654 | } |
| 2655 | |
| 2656 | func (m *StatusResponse) GetDbSize() int64 { |
| 2657 | if m != nil { |
| 2658 | return m.DbSize |
| 2659 | } |
| 2660 | return 0 |
| 2661 | } |
| 2662 | |
| 2663 | func (m *StatusResponse) GetLeader() uint64 { |
| 2664 | if m != nil { |
| 2665 | return m.Leader |
| 2666 | } |
| 2667 | return 0 |
| 2668 | } |
| 2669 | |
| 2670 | func (m *StatusResponse) GetRaftIndex() uint64 { |
| 2671 | if m != nil { |
| 2672 | return m.RaftIndex |
| 2673 | } |
| 2674 | return 0 |
| 2675 | } |
| 2676 | |
| 2677 | func (m *StatusResponse) GetRaftTerm() uint64 { |
| 2678 | if m != nil { |
| 2679 | return m.RaftTerm |
| 2680 | } |
| 2681 | return 0 |
| 2682 | } |
| 2683 | |
| 2684 | func (m *StatusResponse) GetRaftAppliedIndex() uint64 { |
| 2685 | if m != nil { |
| 2686 | return m.RaftAppliedIndex |
| 2687 | } |
| 2688 | return 0 |
| 2689 | } |
| 2690 | |
| 2691 | func (m *StatusResponse) GetErrors() []string { |
| 2692 | if m != nil { |
| 2693 | return m.Errors |
| 2694 | } |
| 2695 | return nil |
| 2696 | } |
| 2697 | |
| 2698 | func (m *StatusResponse) GetDbSizeInUse() int64 { |
| 2699 | if m != nil { |
| 2700 | return m.DbSizeInUse |
| 2701 | } |
| 2702 | return 0 |
| 2703 | } |
| 2704 | |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2705 | func (m *StatusResponse) GetIsLearner() bool { |
| 2706 | if m != nil { |
| 2707 | return m.IsLearner |
| 2708 | } |
| 2709 | return false |
| 2710 | } |
| 2711 | |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2712 | type AuthEnableRequest struct { |
| 2713 | } |
| 2714 | |
| 2715 | func (m *AuthEnableRequest) Reset() { *m = AuthEnableRequest{} } |
| 2716 | func (m *AuthEnableRequest) String() string { return proto.CompactTextString(m) } |
| 2717 | func (*AuthEnableRequest) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2718 | func (*AuthEnableRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{59} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2719 | |
| 2720 | type AuthDisableRequest struct { |
| 2721 | } |
| 2722 | |
| 2723 | func (m *AuthDisableRequest) Reset() { *m = AuthDisableRequest{} } |
| 2724 | func (m *AuthDisableRequest) String() string { return proto.CompactTextString(m) } |
| 2725 | func (*AuthDisableRequest) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2726 | func (*AuthDisableRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{60} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2727 | |
| 2728 | type AuthenticateRequest struct { |
| 2729 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 2730 | Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` |
| 2731 | } |
| 2732 | |
| 2733 | func (m *AuthenticateRequest) Reset() { *m = AuthenticateRequest{} } |
| 2734 | func (m *AuthenticateRequest) String() string { return proto.CompactTextString(m) } |
| 2735 | func (*AuthenticateRequest) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2736 | func (*AuthenticateRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{61} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2737 | |
| 2738 | func (m *AuthenticateRequest) GetName() string { |
| 2739 | if m != nil { |
| 2740 | return m.Name |
| 2741 | } |
| 2742 | return "" |
| 2743 | } |
| 2744 | |
| 2745 | func (m *AuthenticateRequest) GetPassword() string { |
| 2746 | if m != nil { |
| 2747 | return m.Password |
| 2748 | } |
| 2749 | return "" |
| 2750 | } |
| 2751 | |
| 2752 | type AuthUserAddRequest struct { |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2753 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 2754 | Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` |
| 2755 | Options *authpb.UserAddOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"` |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2756 | } |
| 2757 | |
| 2758 | func (m *AuthUserAddRequest) Reset() { *m = AuthUserAddRequest{} } |
| 2759 | func (m *AuthUserAddRequest) String() string { return proto.CompactTextString(m) } |
| 2760 | func (*AuthUserAddRequest) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2761 | func (*AuthUserAddRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{62} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2762 | |
| 2763 | func (m *AuthUserAddRequest) GetName() string { |
| 2764 | if m != nil { |
| 2765 | return m.Name |
| 2766 | } |
| 2767 | return "" |
| 2768 | } |
| 2769 | |
| 2770 | func (m *AuthUserAddRequest) GetPassword() string { |
| 2771 | if m != nil { |
| 2772 | return m.Password |
| 2773 | } |
| 2774 | return "" |
| 2775 | } |
| 2776 | |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2777 | func (m *AuthUserAddRequest) GetOptions() *authpb.UserAddOptions { |
| 2778 | if m != nil { |
| 2779 | return m.Options |
| 2780 | } |
| 2781 | return nil |
| 2782 | } |
| 2783 | |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2784 | type AuthUserGetRequest struct { |
| 2785 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 2786 | } |
| 2787 | |
| 2788 | func (m *AuthUserGetRequest) Reset() { *m = AuthUserGetRequest{} } |
| 2789 | func (m *AuthUserGetRequest) String() string { return proto.CompactTextString(m) } |
| 2790 | func (*AuthUserGetRequest) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2791 | func (*AuthUserGetRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{63} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2792 | |
| 2793 | func (m *AuthUserGetRequest) GetName() string { |
| 2794 | if m != nil { |
| 2795 | return m.Name |
| 2796 | } |
| 2797 | return "" |
| 2798 | } |
| 2799 | |
| 2800 | type AuthUserDeleteRequest struct { |
| 2801 | // name is the name of the user to delete. |
| 2802 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 2803 | } |
| 2804 | |
| 2805 | func (m *AuthUserDeleteRequest) Reset() { *m = AuthUserDeleteRequest{} } |
| 2806 | func (m *AuthUserDeleteRequest) String() string { return proto.CompactTextString(m) } |
| 2807 | func (*AuthUserDeleteRequest) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2808 | func (*AuthUserDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{64} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2809 | |
| 2810 | func (m *AuthUserDeleteRequest) GetName() string { |
| 2811 | if m != nil { |
| 2812 | return m.Name |
| 2813 | } |
| 2814 | return "" |
| 2815 | } |
| 2816 | |
| 2817 | type AuthUserChangePasswordRequest struct { |
| 2818 | // name is the name of the user whose password is being changed. |
| 2819 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 2820 | // password is the new password for the user. |
| 2821 | Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` |
| 2822 | } |
| 2823 | |
| 2824 | func (m *AuthUserChangePasswordRequest) Reset() { *m = AuthUserChangePasswordRequest{} } |
| 2825 | func (m *AuthUserChangePasswordRequest) String() string { return proto.CompactTextString(m) } |
| 2826 | func (*AuthUserChangePasswordRequest) ProtoMessage() {} |
| 2827 | func (*AuthUserChangePasswordRequest) Descriptor() ([]byte, []int) { |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2828 | return fileDescriptorRpc, []int{65} |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2829 | } |
| 2830 | |
| 2831 | func (m *AuthUserChangePasswordRequest) GetName() string { |
| 2832 | if m != nil { |
| 2833 | return m.Name |
| 2834 | } |
| 2835 | return "" |
| 2836 | } |
| 2837 | |
| 2838 | func (m *AuthUserChangePasswordRequest) GetPassword() string { |
| 2839 | if m != nil { |
| 2840 | return m.Password |
| 2841 | } |
| 2842 | return "" |
| 2843 | } |
| 2844 | |
| 2845 | type AuthUserGrantRoleRequest struct { |
| 2846 | // user is the name of the user which should be granted a given role. |
| 2847 | User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` |
| 2848 | // role is the name of the role to grant to the user. |
| 2849 | Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` |
| 2850 | } |
| 2851 | |
| 2852 | func (m *AuthUserGrantRoleRequest) Reset() { *m = AuthUserGrantRoleRequest{} } |
| 2853 | func (m *AuthUserGrantRoleRequest) String() string { return proto.CompactTextString(m) } |
| 2854 | func (*AuthUserGrantRoleRequest) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2855 | func (*AuthUserGrantRoleRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{66} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2856 | |
| 2857 | func (m *AuthUserGrantRoleRequest) GetUser() string { |
| 2858 | if m != nil { |
| 2859 | return m.User |
| 2860 | } |
| 2861 | return "" |
| 2862 | } |
| 2863 | |
| 2864 | func (m *AuthUserGrantRoleRequest) GetRole() string { |
| 2865 | if m != nil { |
| 2866 | return m.Role |
| 2867 | } |
| 2868 | return "" |
| 2869 | } |
| 2870 | |
| 2871 | type AuthUserRevokeRoleRequest struct { |
| 2872 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 2873 | Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` |
| 2874 | } |
| 2875 | |
| 2876 | func (m *AuthUserRevokeRoleRequest) Reset() { *m = AuthUserRevokeRoleRequest{} } |
| 2877 | func (m *AuthUserRevokeRoleRequest) String() string { return proto.CompactTextString(m) } |
| 2878 | func (*AuthUserRevokeRoleRequest) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2879 | func (*AuthUserRevokeRoleRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{67} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2880 | |
| 2881 | func (m *AuthUserRevokeRoleRequest) GetName() string { |
| 2882 | if m != nil { |
| 2883 | return m.Name |
| 2884 | } |
| 2885 | return "" |
| 2886 | } |
| 2887 | |
| 2888 | func (m *AuthUserRevokeRoleRequest) GetRole() string { |
| 2889 | if m != nil { |
| 2890 | return m.Role |
| 2891 | } |
| 2892 | return "" |
| 2893 | } |
| 2894 | |
| 2895 | type AuthRoleAddRequest struct { |
| 2896 | // name is the name of the role to add to the authentication system. |
| 2897 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 2898 | } |
| 2899 | |
| 2900 | func (m *AuthRoleAddRequest) Reset() { *m = AuthRoleAddRequest{} } |
| 2901 | func (m *AuthRoleAddRequest) String() string { return proto.CompactTextString(m) } |
| 2902 | func (*AuthRoleAddRequest) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2903 | func (*AuthRoleAddRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{68} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2904 | |
| 2905 | func (m *AuthRoleAddRequest) GetName() string { |
| 2906 | if m != nil { |
| 2907 | return m.Name |
| 2908 | } |
| 2909 | return "" |
| 2910 | } |
| 2911 | |
| 2912 | type AuthRoleGetRequest struct { |
| 2913 | Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` |
| 2914 | } |
| 2915 | |
| 2916 | func (m *AuthRoleGetRequest) Reset() { *m = AuthRoleGetRequest{} } |
| 2917 | func (m *AuthRoleGetRequest) String() string { return proto.CompactTextString(m) } |
| 2918 | func (*AuthRoleGetRequest) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2919 | func (*AuthRoleGetRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{69} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2920 | |
| 2921 | func (m *AuthRoleGetRequest) GetRole() string { |
| 2922 | if m != nil { |
| 2923 | return m.Role |
| 2924 | } |
| 2925 | return "" |
| 2926 | } |
| 2927 | |
| 2928 | type AuthUserListRequest struct { |
| 2929 | } |
| 2930 | |
| 2931 | func (m *AuthUserListRequest) Reset() { *m = AuthUserListRequest{} } |
| 2932 | func (m *AuthUserListRequest) String() string { return proto.CompactTextString(m) } |
| 2933 | func (*AuthUserListRequest) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2934 | func (*AuthUserListRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{70} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2935 | |
| 2936 | type AuthRoleListRequest struct { |
| 2937 | } |
| 2938 | |
| 2939 | func (m *AuthRoleListRequest) Reset() { *m = AuthRoleListRequest{} } |
| 2940 | func (m *AuthRoleListRequest) String() string { return proto.CompactTextString(m) } |
| 2941 | func (*AuthRoleListRequest) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2942 | func (*AuthRoleListRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{71} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2943 | |
| 2944 | type AuthRoleDeleteRequest struct { |
| 2945 | Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` |
| 2946 | } |
| 2947 | |
| 2948 | func (m *AuthRoleDeleteRequest) Reset() { *m = AuthRoleDeleteRequest{} } |
| 2949 | func (m *AuthRoleDeleteRequest) String() string { return proto.CompactTextString(m) } |
| 2950 | func (*AuthRoleDeleteRequest) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2951 | func (*AuthRoleDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{72} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2952 | |
| 2953 | func (m *AuthRoleDeleteRequest) GetRole() string { |
| 2954 | if m != nil { |
| 2955 | return m.Role |
| 2956 | } |
| 2957 | return "" |
| 2958 | } |
| 2959 | |
| 2960 | type AuthRoleGrantPermissionRequest struct { |
| 2961 | // name is the name of the role which will be granted the permission. |
| 2962 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 2963 | // perm is the permission to grant to the role. |
| 2964 | Perm *authpb.Permission `protobuf:"bytes,2,opt,name=perm" json:"perm,omitempty"` |
| 2965 | } |
| 2966 | |
| 2967 | func (m *AuthRoleGrantPermissionRequest) Reset() { *m = AuthRoleGrantPermissionRequest{} } |
| 2968 | func (m *AuthRoleGrantPermissionRequest) String() string { return proto.CompactTextString(m) } |
| 2969 | func (*AuthRoleGrantPermissionRequest) ProtoMessage() {} |
| 2970 | func (*AuthRoleGrantPermissionRequest) Descriptor() ([]byte, []int) { |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2971 | return fileDescriptorRpc, []int{73} |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2972 | } |
| 2973 | |
| 2974 | func (m *AuthRoleGrantPermissionRequest) GetName() string { |
| 2975 | if m != nil { |
| 2976 | return m.Name |
| 2977 | } |
| 2978 | return "" |
| 2979 | } |
| 2980 | |
| 2981 | func (m *AuthRoleGrantPermissionRequest) GetPerm() *authpb.Permission { |
| 2982 | if m != nil { |
| 2983 | return m.Perm |
| 2984 | } |
| 2985 | return nil |
| 2986 | } |
| 2987 | |
| 2988 | type AuthRoleRevokePermissionRequest struct { |
| 2989 | Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` |
| 2990 | Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` |
| 2991 | RangeEnd []byte `protobuf:"bytes,3,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` |
| 2992 | } |
| 2993 | |
| 2994 | func (m *AuthRoleRevokePermissionRequest) Reset() { *m = AuthRoleRevokePermissionRequest{} } |
| 2995 | func (m *AuthRoleRevokePermissionRequest) String() string { return proto.CompactTextString(m) } |
| 2996 | func (*AuthRoleRevokePermissionRequest) ProtoMessage() {} |
| 2997 | func (*AuthRoleRevokePermissionRequest) Descriptor() ([]byte, []int) { |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 2998 | return fileDescriptorRpc, []int{74} |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 2999 | } |
| 3000 | |
| 3001 | func (m *AuthRoleRevokePermissionRequest) GetRole() string { |
| 3002 | if m != nil { |
| 3003 | return m.Role |
| 3004 | } |
| 3005 | return "" |
| 3006 | } |
| 3007 | |
| 3008 | func (m *AuthRoleRevokePermissionRequest) GetKey() []byte { |
| 3009 | if m != nil { |
| 3010 | return m.Key |
| 3011 | } |
| 3012 | return nil |
| 3013 | } |
| 3014 | |
| 3015 | func (m *AuthRoleRevokePermissionRequest) GetRangeEnd() []byte { |
| 3016 | if m != nil { |
| 3017 | return m.RangeEnd |
| 3018 | } |
| 3019 | return nil |
| 3020 | } |
| 3021 | |
| 3022 | type AuthEnableResponse struct { |
| 3023 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3024 | } |
| 3025 | |
| 3026 | func (m *AuthEnableResponse) Reset() { *m = AuthEnableResponse{} } |
| 3027 | func (m *AuthEnableResponse) String() string { return proto.CompactTextString(m) } |
| 3028 | func (*AuthEnableResponse) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 3029 | func (*AuthEnableResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{75} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 3030 | |
| 3031 | func (m *AuthEnableResponse) GetHeader() *ResponseHeader { |
| 3032 | if m != nil { |
| 3033 | return m.Header |
| 3034 | } |
| 3035 | return nil |
| 3036 | } |
| 3037 | |
| 3038 | type AuthDisableResponse struct { |
| 3039 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3040 | } |
| 3041 | |
| 3042 | func (m *AuthDisableResponse) Reset() { *m = AuthDisableResponse{} } |
| 3043 | func (m *AuthDisableResponse) String() string { return proto.CompactTextString(m) } |
| 3044 | func (*AuthDisableResponse) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 3045 | func (*AuthDisableResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{76} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 3046 | |
| 3047 | func (m *AuthDisableResponse) GetHeader() *ResponseHeader { |
| 3048 | if m != nil { |
| 3049 | return m.Header |
| 3050 | } |
| 3051 | return nil |
| 3052 | } |
| 3053 | |
| 3054 | type AuthenticateResponse struct { |
| 3055 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3056 | // token is an authorized token that can be used in succeeding RPCs |
| 3057 | Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` |
| 3058 | } |
| 3059 | |
| 3060 | func (m *AuthenticateResponse) Reset() { *m = AuthenticateResponse{} } |
| 3061 | func (m *AuthenticateResponse) String() string { return proto.CompactTextString(m) } |
| 3062 | func (*AuthenticateResponse) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 3063 | func (*AuthenticateResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{77} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 3064 | |
| 3065 | func (m *AuthenticateResponse) GetHeader() *ResponseHeader { |
| 3066 | if m != nil { |
| 3067 | return m.Header |
| 3068 | } |
| 3069 | return nil |
| 3070 | } |
| 3071 | |
| 3072 | func (m *AuthenticateResponse) GetToken() string { |
| 3073 | if m != nil { |
| 3074 | return m.Token |
| 3075 | } |
| 3076 | return "" |
| 3077 | } |
| 3078 | |
| 3079 | type AuthUserAddResponse struct { |
| 3080 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3081 | } |
| 3082 | |
| 3083 | func (m *AuthUserAddResponse) Reset() { *m = AuthUserAddResponse{} } |
| 3084 | func (m *AuthUserAddResponse) String() string { return proto.CompactTextString(m) } |
| 3085 | func (*AuthUserAddResponse) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 3086 | func (*AuthUserAddResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{78} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 3087 | |
| 3088 | func (m *AuthUserAddResponse) GetHeader() *ResponseHeader { |
| 3089 | if m != nil { |
| 3090 | return m.Header |
| 3091 | } |
| 3092 | return nil |
| 3093 | } |
| 3094 | |
| 3095 | type AuthUserGetResponse struct { |
| 3096 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3097 | Roles []string `protobuf:"bytes,2,rep,name=roles" json:"roles,omitempty"` |
| 3098 | } |
| 3099 | |
| 3100 | func (m *AuthUserGetResponse) Reset() { *m = AuthUserGetResponse{} } |
| 3101 | func (m *AuthUserGetResponse) String() string { return proto.CompactTextString(m) } |
| 3102 | func (*AuthUserGetResponse) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 3103 | func (*AuthUserGetResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{79} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 3104 | |
| 3105 | func (m *AuthUserGetResponse) GetHeader() *ResponseHeader { |
| 3106 | if m != nil { |
| 3107 | return m.Header |
| 3108 | } |
| 3109 | return nil |
| 3110 | } |
| 3111 | |
| 3112 | func (m *AuthUserGetResponse) GetRoles() []string { |
| 3113 | if m != nil { |
| 3114 | return m.Roles |
| 3115 | } |
| 3116 | return nil |
| 3117 | } |
| 3118 | |
| 3119 | type AuthUserDeleteResponse struct { |
| 3120 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3121 | } |
| 3122 | |
| 3123 | func (m *AuthUserDeleteResponse) Reset() { *m = AuthUserDeleteResponse{} } |
| 3124 | func (m *AuthUserDeleteResponse) String() string { return proto.CompactTextString(m) } |
| 3125 | func (*AuthUserDeleteResponse) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 3126 | func (*AuthUserDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{80} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 3127 | |
| 3128 | func (m *AuthUserDeleteResponse) GetHeader() *ResponseHeader { |
| 3129 | if m != nil { |
| 3130 | return m.Header |
| 3131 | } |
| 3132 | return nil |
| 3133 | } |
| 3134 | |
| 3135 | type AuthUserChangePasswordResponse struct { |
| 3136 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3137 | } |
| 3138 | |
| 3139 | func (m *AuthUserChangePasswordResponse) Reset() { *m = AuthUserChangePasswordResponse{} } |
| 3140 | func (m *AuthUserChangePasswordResponse) String() string { return proto.CompactTextString(m) } |
| 3141 | func (*AuthUserChangePasswordResponse) ProtoMessage() {} |
| 3142 | func (*AuthUserChangePasswordResponse) Descriptor() ([]byte, []int) { |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 3143 | return fileDescriptorRpc, []int{81} |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 3144 | } |
| 3145 | |
| 3146 | func (m *AuthUserChangePasswordResponse) GetHeader() *ResponseHeader { |
| 3147 | if m != nil { |
| 3148 | return m.Header |
| 3149 | } |
| 3150 | return nil |
| 3151 | } |
| 3152 | |
| 3153 | type AuthUserGrantRoleResponse struct { |
| 3154 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3155 | } |
| 3156 | |
| 3157 | func (m *AuthUserGrantRoleResponse) Reset() { *m = AuthUserGrantRoleResponse{} } |
| 3158 | func (m *AuthUserGrantRoleResponse) String() string { return proto.CompactTextString(m) } |
| 3159 | func (*AuthUserGrantRoleResponse) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 3160 | func (*AuthUserGrantRoleResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{82} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 3161 | |
| 3162 | func (m *AuthUserGrantRoleResponse) GetHeader() *ResponseHeader { |
| 3163 | if m != nil { |
| 3164 | return m.Header |
| 3165 | } |
| 3166 | return nil |
| 3167 | } |
| 3168 | |
| 3169 | type AuthUserRevokeRoleResponse struct { |
| 3170 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3171 | } |
| 3172 | |
| 3173 | func (m *AuthUserRevokeRoleResponse) Reset() { *m = AuthUserRevokeRoleResponse{} } |
| 3174 | func (m *AuthUserRevokeRoleResponse) String() string { return proto.CompactTextString(m) } |
| 3175 | func (*AuthUserRevokeRoleResponse) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 3176 | func (*AuthUserRevokeRoleResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{83} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 3177 | |
| 3178 | func (m *AuthUserRevokeRoleResponse) GetHeader() *ResponseHeader { |
| 3179 | if m != nil { |
| 3180 | return m.Header |
| 3181 | } |
| 3182 | return nil |
| 3183 | } |
| 3184 | |
| 3185 | type AuthRoleAddResponse struct { |
| 3186 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3187 | } |
| 3188 | |
| 3189 | func (m *AuthRoleAddResponse) Reset() { *m = AuthRoleAddResponse{} } |
| 3190 | func (m *AuthRoleAddResponse) String() string { return proto.CompactTextString(m) } |
| 3191 | func (*AuthRoleAddResponse) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 3192 | func (*AuthRoleAddResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{84} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 3193 | |
| 3194 | func (m *AuthRoleAddResponse) GetHeader() *ResponseHeader { |
| 3195 | if m != nil { |
| 3196 | return m.Header |
| 3197 | } |
| 3198 | return nil |
| 3199 | } |
| 3200 | |
| 3201 | type AuthRoleGetResponse struct { |
| 3202 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3203 | Perm []*authpb.Permission `protobuf:"bytes,2,rep,name=perm" json:"perm,omitempty"` |
| 3204 | } |
| 3205 | |
| 3206 | func (m *AuthRoleGetResponse) Reset() { *m = AuthRoleGetResponse{} } |
| 3207 | func (m *AuthRoleGetResponse) String() string { return proto.CompactTextString(m) } |
| 3208 | func (*AuthRoleGetResponse) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 3209 | func (*AuthRoleGetResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{85} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 3210 | |
| 3211 | func (m *AuthRoleGetResponse) GetHeader() *ResponseHeader { |
| 3212 | if m != nil { |
| 3213 | return m.Header |
| 3214 | } |
| 3215 | return nil |
| 3216 | } |
| 3217 | |
| 3218 | func (m *AuthRoleGetResponse) GetPerm() []*authpb.Permission { |
| 3219 | if m != nil { |
| 3220 | return m.Perm |
| 3221 | } |
| 3222 | return nil |
| 3223 | } |
| 3224 | |
| 3225 | type AuthRoleListResponse struct { |
| 3226 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3227 | Roles []string `protobuf:"bytes,2,rep,name=roles" json:"roles,omitempty"` |
| 3228 | } |
| 3229 | |
| 3230 | func (m *AuthRoleListResponse) Reset() { *m = AuthRoleListResponse{} } |
| 3231 | func (m *AuthRoleListResponse) String() string { return proto.CompactTextString(m) } |
| 3232 | func (*AuthRoleListResponse) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 3233 | func (*AuthRoleListResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{86} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 3234 | |
| 3235 | func (m *AuthRoleListResponse) GetHeader() *ResponseHeader { |
| 3236 | if m != nil { |
| 3237 | return m.Header |
| 3238 | } |
| 3239 | return nil |
| 3240 | } |
| 3241 | |
| 3242 | func (m *AuthRoleListResponse) GetRoles() []string { |
| 3243 | if m != nil { |
| 3244 | return m.Roles |
| 3245 | } |
| 3246 | return nil |
| 3247 | } |
| 3248 | |
| 3249 | type AuthUserListResponse struct { |
| 3250 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3251 | Users []string `protobuf:"bytes,2,rep,name=users" json:"users,omitempty"` |
| 3252 | } |
| 3253 | |
| 3254 | func (m *AuthUserListResponse) Reset() { *m = AuthUserListResponse{} } |
| 3255 | func (m *AuthUserListResponse) String() string { return proto.CompactTextString(m) } |
| 3256 | func (*AuthUserListResponse) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 3257 | func (*AuthUserListResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{87} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 3258 | |
| 3259 | func (m *AuthUserListResponse) GetHeader() *ResponseHeader { |
| 3260 | if m != nil { |
| 3261 | return m.Header |
| 3262 | } |
| 3263 | return nil |
| 3264 | } |
| 3265 | |
| 3266 | func (m *AuthUserListResponse) GetUsers() []string { |
| 3267 | if m != nil { |
| 3268 | return m.Users |
| 3269 | } |
| 3270 | return nil |
| 3271 | } |
| 3272 | |
| 3273 | type AuthRoleDeleteResponse struct { |
| 3274 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3275 | } |
| 3276 | |
| 3277 | func (m *AuthRoleDeleteResponse) Reset() { *m = AuthRoleDeleteResponse{} } |
| 3278 | func (m *AuthRoleDeleteResponse) String() string { return proto.CompactTextString(m) } |
| 3279 | func (*AuthRoleDeleteResponse) ProtoMessage() {} |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 3280 | func (*AuthRoleDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{88} } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 3281 | |
| 3282 | func (m *AuthRoleDeleteResponse) GetHeader() *ResponseHeader { |
| 3283 | if m != nil { |
| 3284 | return m.Header |
| 3285 | } |
| 3286 | return nil |
| 3287 | } |
| 3288 | |
| 3289 | type AuthRoleGrantPermissionResponse struct { |
| 3290 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3291 | } |
| 3292 | |
| 3293 | func (m *AuthRoleGrantPermissionResponse) Reset() { *m = AuthRoleGrantPermissionResponse{} } |
| 3294 | func (m *AuthRoleGrantPermissionResponse) String() string { return proto.CompactTextString(m) } |
| 3295 | func (*AuthRoleGrantPermissionResponse) ProtoMessage() {} |
| 3296 | func (*AuthRoleGrantPermissionResponse) Descriptor() ([]byte, []int) { |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 3297 | return fileDescriptorRpc, []int{89} |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 3298 | } |
| 3299 | |
| 3300 | func (m *AuthRoleGrantPermissionResponse) GetHeader() *ResponseHeader { |
| 3301 | if m != nil { |
| 3302 | return m.Header |
| 3303 | } |
| 3304 | return nil |
| 3305 | } |
| 3306 | |
| 3307 | type AuthRoleRevokePermissionResponse struct { |
| 3308 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` |
| 3309 | } |
| 3310 | |
| 3311 | func (m *AuthRoleRevokePermissionResponse) Reset() { *m = AuthRoleRevokePermissionResponse{} } |
| 3312 | func (m *AuthRoleRevokePermissionResponse) String() string { return proto.CompactTextString(m) } |
| 3313 | func (*AuthRoleRevokePermissionResponse) ProtoMessage() {} |
| 3314 | func (*AuthRoleRevokePermissionResponse) Descriptor() ([]byte, []int) { |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 3315 | return fileDescriptorRpc, []int{90} |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 3316 | } |
| 3317 | |
| 3318 | func (m *AuthRoleRevokePermissionResponse) GetHeader() *ResponseHeader { |
| 3319 | if m != nil { |
| 3320 | return m.Header |
| 3321 | } |
| 3322 | return nil |
| 3323 | } |
| 3324 | |
| 3325 | func init() { |
| 3326 | proto.RegisterType((*ResponseHeader)(nil), "etcdserverpb.ResponseHeader") |
| 3327 | proto.RegisterType((*RangeRequest)(nil), "etcdserverpb.RangeRequest") |
| 3328 | proto.RegisterType((*RangeResponse)(nil), "etcdserverpb.RangeResponse") |
| 3329 | proto.RegisterType((*PutRequest)(nil), "etcdserverpb.PutRequest") |
| 3330 | proto.RegisterType((*PutResponse)(nil), "etcdserverpb.PutResponse") |
| 3331 | proto.RegisterType((*DeleteRangeRequest)(nil), "etcdserverpb.DeleteRangeRequest") |
| 3332 | proto.RegisterType((*DeleteRangeResponse)(nil), "etcdserverpb.DeleteRangeResponse") |
| 3333 | proto.RegisterType((*RequestOp)(nil), "etcdserverpb.RequestOp") |
| 3334 | proto.RegisterType((*ResponseOp)(nil), "etcdserverpb.ResponseOp") |
| 3335 | proto.RegisterType((*Compare)(nil), "etcdserverpb.Compare") |
| 3336 | proto.RegisterType((*TxnRequest)(nil), "etcdserverpb.TxnRequest") |
| 3337 | proto.RegisterType((*TxnResponse)(nil), "etcdserverpb.TxnResponse") |
| 3338 | proto.RegisterType((*CompactionRequest)(nil), "etcdserverpb.CompactionRequest") |
| 3339 | proto.RegisterType((*CompactionResponse)(nil), "etcdserverpb.CompactionResponse") |
| 3340 | proto.RegisterType((*HashRequest)(nil), "etcdserverpb.HashRequest") |
| 3341 | proto.RegisterType((*HashKVRequest)(nil), "etcdserverpb.HashKVRequest") |
| 3342 | proto.RegisterType((*HashKVResponse)(nil), "etcdserverpb.HashKVResponse") |
| 3343 | proto.RegisterType((*HashResponse)(nil), "etcdserverpb.HashResponse") |
| 3344 | proto.RegisterType((*SnapshotRequest)(nil), "etcdserverpb.SnapshotRequest") |
| 3345 | proto.RegisterType((*SnapshotResponse)(nil), "etcdserverpb.SnapshotResponse") |
| 3346 | proto.RegisterType((*WatchRequest)(nil), "etcdserverpb.WatchRequest") |
| 3347 | proto.RegisterType((*WatchCreateRequest)(nil), "etcdserverpb.WatchCreateRequest") |
| 3348 | proto.RegisterType((*WatchCancelRequest)(nil), "etcdserverpb.WatchCancelRequest") |
| 3349 | proto.RegisterType((*WatchProgressRequest)(nil), "etcdserverpb.WatchProgressRequest") |
| 3350 | proto.RegisterType((*WatchResponse)(nil), "etcdserverpb.WatchResponse") |
| 3351 | proto.RegisterType((*LeaseGrantRequest)(nil), "etcdserverpb.LeaseGrantRequest") |
| 3352 | proto.RegisterType((*LeaseGrantResponse)(nil), "etcdserverpb.LeaseGrantResponse") |
| 3353 | proto.RegisterType((*LeaseRevokeRequest)(nil), "etcdserverpb.LeaseRevokeRequest") |
| 3354 | proto.RegisterType((*LeaseRevokeResponse)(nil), "etcdserverpb.LeaseRevokeResponse") |
| 3355 | proto.RegisterType((*LeaseCheckpoint)(nil), "etcdserverpb.LeaseCheckpoint") |
| 3356 | proto.RegisterType((*LeaseCheckpointRequest)(nil), "etcdserverpb.LeaseCheckpointRequest") |
| 3357 | proto.RegisterType((*LeaseCheckpointResponse)(nil), "etcdserverpb.LeaseCheckpointResponse") |
| 3358 | proto.RegisterType((*LeaseKeepAliveRequest)(nil), "etcdserverpb.LeaseKeepAliveRequest") |
| 3359 | proto.RegisterType((*LeaseKeepAliveResponse)(nil), "etcdserverpb.LeaseKeepAliveResponse") |
| 3360 | proto.RegisterType((*LeaseTimeToLiveRequest)(nil), "etcdserverpb.LeaseTimeToLiveRequest") |
| 3361 | proto.RegisterType((*LeaseTimeToLiveResponse)(nil), "etcdserverpb.LeaseTimeToLiveResponse") |
| 3362 | proto.RegisterType((*LeaseLeasesRequest)(nil), "etcdserverpb.LeaseLeasesRequest") |
| 3363 | proto.RegisterType((*LeaseStatus)(nil), "etcdserverpb.LeaseStatus") |
| 3364 | proto.RegisterType((*LeaseLeasesResponse)(nil), "etcdserverpb.LeaseLeasesResponse") |
| 3365 | proto.RegisterType((*Member)(nil), "etcdserverpb.Member") |
| 3366 | proto.RegisterType((*MemberAddRequest)(nil), "etcdserverpb.MemberAddRequest") |
| 3367 | proto.RegisterType((*MemberAddResponse)(nil), "etcdserverpb.MemberAddResponse") |
| 3368 | proto.RegisterType((*MemberRemoveRequest)(nil), "etcdserverpb.MemberRemoveRequest") |
| 3369 | proto.RegisterType((*MemberRemoveResponse)(nil), "etcdserverpb.MemberRemoveResponse") |
| 3370 | proto.RegisterType((*MemberUpdateRequest)(nil), "etcdserverpb.MemberUpdateRequest") |
| 3371 | proto.RegisterType((*MemberUpdateResponse)(nil), "etcdserverpb.MemberUpdateResponse") |
| 3372 | proto.RegisterType((*MemberListRequest)(nil), "etcdserverpb.MemberListRequest") |
| 3373 | proto.RegisterType((*MemberListResponse)(nil), "etcdserverpb.MemberListResponse") |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 3374 | proto.RegisterType((*MemberPromoteRequest)(nil), "etcdserverpb.MemberPromoteRequest") |
| 3375 | proto.RegisterType((*MemberPromoteResponse)(nil), "etcdserverpb.MemberPromoteResponse") |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 3376 | proto.RegisterType((*DefragmentRequest)(nil), "etcdserverpb.DefragmentRequest") |
| 3377 | proto.RegisterType((*DefragmentResponse)(nil), "etcdserverpb.DefragmentResponse") |
| 3378 | proto.RegisterType((*MoveLeaderRequest)(nil), "etcdserverpb.MoveLeaderRequest") |
| 3379 | proto.RegisterType((*MoveLeaderResponse)(nil), "etcdserverpb.MoveLeaderResponse") |
| 3380 | proto.RegisterType((*AlarmRequest)(nil), "etcdserverpb.AlarmRequest") |
| 3381 | proto.RegisterType((*AlarmMember)(nil), "etcdserverpb.AlarmMember") |
| 3382 | proto.RegisterType((*AlarmResponse)(nil), "etcdserverpb.AlarmResponse") |
| 3383 | proto.RegisterType((*StatusRequest)(nil), "etcdserverpb.StatusRequest") |
| 3384 | proto.RegisterType((*StatusResponse)(nil), "etcdserverpb.StatusResponse") |
| 3385 | proto.RegisterType((*AuthEnableRequest)(nil), "etcdserverpb.AuthEnableRequest") |
| 3386 | proto.RegisterType((*AuthDisableRequest)(nil), "etcdserverpb.AuthDisableRequest") |
| 3387 | proto.RegisterType((*AuthenticateRequest)(nil), "etcdserverpb.AuthenticateRequest") |
| 3388 | proto.RegisterType((*AuthUserAddRequest)(nil), "etcdserverpb.AuthUserAddRequest") |
| 3389 | proto.RegisterType((*AuthUserGetRequest)(nil), "etcdserverpb.AuthUserGetRequest") |
| 3390 | proto.RegisterType((*AuthUserDeleteRequest)(nil), "etcdserverpb.AuthUserDeleteRequest") |
| 3391 | proto.RegisterType((*AuthUserChangePasswordRequest)(nil), "etcdserverpb.AuthUserChangePasswordRequest") |
| 3392 | proto.RegisterType((*AuthUserGrantRoleRequest)(nil), "etcdserverpb.AuthUserGrantRoleRequest") |
| 3393 | proto.RegisterType((*AuthUserRevokeRoleRequest)(nil), "etcdserverpb.AuthUserRevokeRoleRequest") |
| 3394 | proto.RegisterType((*AuthRoleAddRequest)(nil), "etcdserverpb.AuthRoleAddRequest") |
| 3395 | proto.RegisterType((*AuthRoleGetRequest)(nil), "etcdserverpb.AuthRoleGetRequest") |
| 3396 | proto.RegisterType((*AuthUserListRequest)(nil), "etcdserverpb.AuthUserListRequest") |
| 3397 | proto.RegisterType((*AuthRoleListRequest)(nil), "etcdserverpb.AuthRoleListRequest") |
| 3398 | proto.RegisterType((*AuthRoleDeleteRequest)(nil), "etcdserverpb.AuthRoleDeleteRequest") |
| 3399 | proto.RegisterType((*AuthRoleGrantPermissionRequest)(nil), "etcdserverpb.AuthRoleGrantPermissionRequest") |
| 3400 | proto.RegisterType((*AuthRoleRevokePermissionRequest)(nil), "etcdserverpb.AuthRoleRevokePermissionRequest") |
| 3401 | proto.RegisterType((*AuthEnableResponse)(nil), "etcdserverpb.AuthEnableResponse") |
| 3402 | proto.RegisterType((*AuthDisableResponse)(nil), "etcdserverpb.AuthDisableResponse") |
| 3403 | proto.RegisterType((*AuthenticateResponse)(nil), "etcdserverpb.AuthenticateResponse") |
| 3404 | proto.RegisterType((*AuthUserAddResponse)(nil), "etcdserverpb.AuthUserAddResponse") |
| 3405 | proto.RegisterType((*AuthUserGetResponse)(nil), "etcdserverpb.AuthUserGetResponse") |
| 3406 | proto.RegisterType((*AuthUserDeleteResponse)(nil), "etcdserverpb.AuthUserDeleteResponse") |
| 3407 | proto.RegisterType((*AuthUserChangePasswordResponse)(nil), "etcdserverpb.AuthUserChangePasswordResponse") |
| 3408 | proto.RegisterType((*AuthUserGrantRoleResponse)(nil), "etcdserverpb.AuthUserGrantRoleResponse") |
| 3409 | proto.RegisterType((*AuthUserRevokeRoleResponse)(nil), "etcdserverpb.AuthUserRevokeRoleResponse") |
| 3410 | proto.RegisterType((*AuthRoleAddResponse)(nil), "etcdserverpb.AuthRoleAddResponse") |
| 3411 | proto.RegisterType((*AuthRoleGetResponse)(nil), "etcdserverpb.AuthRoleGetResponse") |
| 3412 | proto.RegisterType((*AuthRoleListResponse)(nil), "etcdserverpb.AuthRoleListResponse") |
| 3413 | proto.RegisterType((*AuthUserListResponse)(nil), "etcdserverpb.AuthUserListResponse") |
| 3414 | proto.RegisterType((*AuthRoleDeleteResponse)(nil), "etcdserverpb.AuthRoleDeleteResponse") |
| 3415 | proto.RegisterType((*AuthRoleGrantPermissionResponse)(nil), "etcdserverpb.AuthRoleGrantPermissionResponse") |
| 3416 | proto.RegisterType((*AuthRoleRevokePermissionResponse)(nil), "etcdserverpb.AuthRoleRevokePermissionResponse") |
| 3417 | proto.RegisterEnum("etcdserverpb.AlarmType", AlarmType_name, AlarmType_value) |
| 3418 | proto.RegisterEnum("etcdserverpb.RangeRequest_SortOrder", RangeRequest_SortOrder_name, RangeRequest_SortOrder_value) |
| 3419 | proto.RegisterEnum("etcdserverpb.RangeRequest_SortTarget", RangeRequest_SortTarget_name, RangeRequest_SortTarget_value) |
| 3420 | proto.RegisterEnum("etcdserverpb.Compare_CompareResult", Compare_CompareResult_name, Compare_CompareResult_value) |
| 3421 | proto.RegisterEnum("etcdserverpb.Compare_CompareTarget", Compare_CompareTarget_name, Compare_CompareTarget_value) |
| 3422 | proto.RegisterEnum("etcdserverpb.WatchCreateRequest_FilterType", WatchCreateRequest_FilterType_name, WatchCreateRequest_FilterType_value) |
| 3423 | proto.RegisterEnum("etcdserverpb.AlarmRequest_AlarmAction", AlarmRequest_AlarmAction_name, AlarmRequest_AlarmAction_value) |
| 3424 | } |
| 3425 | |
| 3426 | // Reference imports to suppress errors if they are not otherwise used. |
| 3427 | var _ context.Context |
| 3428 | var _ grpc.ClientConn |
| 3429 | |
| 3430 | // This is a compile-time assertion to ensure that this generated file |
| 3431 | // is compatible with the grpc package it is being compiled against. |
| 3432 | const _ = grpc.SupportPackageIsVersion4 |
| 3433 | |
| 3434 | // Client API for KV service |
| 3435 | |
| 3436 | type KVClient interface { |
| 3437 | // Range gets the keys in the range from the key-value store. |
| 3438 | Range(ctx context.Context, in *RangeRequest, opts ...grpc.CallOption) (*RangeResponse, error) |
| 3439 | // Put puts the given key into the key-value store. |
| 3440 | // A put request increments the revision of the key-value store |
| 3441 | // and generates one event in the event history. |
| 3442 | Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error) |
| 3443 | // DeleteRange deletes the given range from the key-value store. |
| 3444 | // A delete request increments the revision of the key-value store |
| 3445 | // and generates a delete event in the event history for every deleted key. |
| 3446 | DeleteRange(ctx context.Context, in *DeleteRangeRequest, opts ...grpc.CallOption) (*DeleteRangeResponse, error) |
| 3447 | // Txn processes multiple requests in a single transaction. |
| 3448 | // A txn request increments the revision of the key-value store |
| 3449 | // and generates events with the same revision for every completed request. |
| 3450 | // It is not allowed to modify the same key several times within one txn. |
| 3451 | Txn(ctx context.Context, in *TxnRequest, opts ...grpc.CallOption) (*TxnResponse, error) |
| 3452 | // Compact compacts the event history in the etcd key-value store. The key-value |
| 3453 | // store should be periodically compacted or the event history will continue to grow |
| 3454 | // indefinitely. |
| 3455 | Compact(ctx context.Context, in *CompactionRequest, opts ...grpc.CallOption) (*CompactionResponse, error) |
| 3456 | } |
| 3457 | |
| 3458 | type kVClient struct { |
| 3459 | cc *grpc.ClientConn |
| 3460 | } |
| 3461 | |
| 3462 | func NewKVClient(cc *grpc.ClientConn) KVClient { |
| 3463 | return &kVClient{cc} |
| 3464 | } |
| 3465 | |
| 3466 | func (c *kVClient) Range(ctx context.Context, in *RangeRequest, opts ...grpc.CallOption) (*RangeResponse, error) { |
| 3467 | out := new(RangeResponse) |
| 3468 | err := grpc.Invoke(ctx, "/etcdserverpb.KV/Range", in, out, c.cc, opts...) |
| 3469 | if err != nil { |
| 3470 | return nil, err |
| 3471 | } |
| 3472 | return out, nil |
| 3473 | } |
| 3474 | |
| 3475 | func (c *kVClient) Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error) { |
| 3476 | out := new(PutResponse) |
| 3477 | err := grpc.Invoke(ctx, "/etcdserverpb.KV/Put", in, out, c.cc, opts...) |
| 3478 | if err != nil { |
| 3479 | return nil, err |
| 3480 | } |
| 3481 | return out, nil |
| 3482 | } |
| 3483 | |
| 3484 | func (c *kVClient) DeleteRange(ctx context.Context, in *DeleteRangeRequest, opts ...grpc.CallOption) (*DeleteRangeResponse, error) { |
| 3485 | out := new(DeleteRangeResponse) |
| 3486 | err := grpc.Invoke(ctx, "/etcdserverpb.KV/DeleteRange", in, out, c.cc, opts...) |
| 3487 | if err != nil { |
| 3488 | return nil, err |
| 3489 | } |
| 3490 | return out, nil |
| 3491 | } |
| 3492 | |
| 3493 | func (c *kVClient) Txn(ctx context.Context, in *TxnRequest, opts ...grpc.CallOption) (*TxnResponse, error) { |
| 3494 | out := new(TxnResponse) |
| 3495 | err := grpc.Invoke(ctx, "/etcdserverpb.KV/Txn", in, out, c.cc, opts...) |
| 3496 | if err != nil { |
| 3497 | return nil, err |
| 3498 | } |
| 3499 | return out, nil |
| 3500 | } |
| 3501 | |
| 3502 | func (c *kVClient) Compact(ctx context.Context, in *CompactionRequest, opts ...grpc.CallOption) (*CompactionResponse, error) { |
| 3503 | out := new(CompactionResponse) |
| 3504 | err := grpc.Invoke(ctx, "/etcdserverpb.KV/Compact", in, out, c.cc, opts...) |
| 3505 | if err != nil { |
| 3506 | return nil, err |
| 3507 | } |
| 3508 | return out, nil |
| 3509 | } |
| 3510 | |
| 3511 | // Server API for KV service |
| 3512 | |
| 3513 | type KVServer interface { |
| 3514 | // Range gets the keys in the range from the key-value store. |
| 3515 | Range(context.Context, *RangeRequest) (*RangeResponse, error) |
| 3516 | // Put puts the given key into the key-value store. |
| 3517 | // A put request increments the revision of the key-value store |
| 3518 | // and generates one event in the event history. |
| 3519 | Put(context.Context, *PutRequest) (*PutResponse, error) |
| 3520 | // DeleteRange deletes the given range from the key-value store. |
| 3521 | // A delete request increments the revision of the key-value store |
| 3522 | // and generates a delete event in the event history for every deleted key. |
| 3523 | DeleteRange(context.Context, *DeleteRangeRequest) (*DeleteRangeResponse, error) |
| 3524 | // Txn processes multiple requests in a single transaction. |
| 3525 | // A txn request increments the revision of the key-value store |
| 3526 | // and generates events with the same revision for every completed request. |
| 3527 | // It is not allowed to modify the same key several times within one txn. |
| 3528 | Txn(context.Context, *TxnRequest) (*TxnResponse, error) |
| 3529 | // Compact compacts the event history in the etcd key-value store. The key-value |
| 3530 | // store should be periodically compacted or the event history will continue to grow |
| 3531 | // indefinitely. |
| 3532 | Compact(context.Context, *CompactionRequest) (*CompactionResponse, error) |
| 3533 | } |
| 3534 | |
| 3535 | func RegisterKVServer(s *grpc.Server, srv KVServer) { |
| 3536 | s.RegisterService(&_KV_serviceDesc, srv) |
| 3537 | } |
| 3538 | |
| 3539 | func _KV_Range_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 3540 | in := new(RangeRequest) |
| 3541 | if err := dec(in); err != nil { |
| 3542 | return nil, err |
| 3543 | } |
| 3544 | if interceptor == nil { |
| 3545 | return srv.(KVServer).Range(ctx, in) |
| 3546 | } |
| 3547 | info := &grpc.UnaryServerInfo{ |
| 3548 | Server: srv, |
| 3549 | FullMethod: "/etcdserverpb.KV/Range", |
| 3550 | } |
| 3551 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 3552 | return srv.(KVServer).Range(ctx, req.(*RangeRequest)) |
| 3553 | } |
| 3554 | return interceptor(ctx, in, info, handler) |
| 3555 | } |
| 3556 | |
| 3557 | func _KV_Put_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 3558 | in := new(PutRequest) |
| 3559 | if err := dec(in); err != nil { |
| 3560 | return nil, err |
| 3561 | } |
| 3562 | if interceptor == nil { |
| 3563 | return srv.(KVServer).Put(ctx, in) |
| 3564 | } |
| 3565 | info := &grpc.UnaryServerInfo{ |
| 3566 | Server: srv, |
| 3567 | FullMethod: "/etcdserverpb.KV/Put", |
| 3568 | } |
| 3569 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 3570 | return srv.(KVServer).Put(ctx, req.(*PutRequest)) |
| 3571 | } |
| 3572 | return interceptor(ctx, in, info, handler) |
| 3573 | } |
| 3574 | |
| 3575 | func _KV_DeleteRange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 3576 | in := new(DeleteRangeRequest) |
| 3577 | if err := dec(in); err != nil { |
| 3578 | return nil, err |
| 3579 | } |
| 3580 | if interceptor == nil { |
| 3581 | return srv.(KVServer).DeleteRange(ctx, in) |
| 3582 | } |
| 3583 | info := &grpc.UnaryServerInfo{ |
| 3584 | Server: srv, |
| 3585 | FullMethod: "/etcdserverpb.KV/DeleteRange", |
| 3586 | } |
| 3587 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 3588 | return srv.(KVServer).DeleteRange(ctx, req.(*DeleteRangeRequest)) |
| 3589 | } |
| 3590 | return interceptor(ctx, in, info, handler) |
| 3591 | } |
| 3592 | |
| 3593 | func _KV_Txn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 3594 | in := new(TxnRequest) |
| 3595 | if err := dec(in); err != nil { |
| 3596 | return nil, err |
| 3597 | } |
| 3598 | if interceptor == nil { |
| 3599 | return srv.(KVServer).Txn(ctx, in) |
| 3600 | } |
| 3601 | info := &grpc.UnaryServerInfo{ |
| 3602 | Server: srv, |
| 3603 | FullMethod: "/etcdserverpb.KV/Txn", |
| 3604 | } |
| 3605 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 3606 | return srv.(KVServer).Txn(ctx, req.(*TxnRequest)) |
| 3607 | } |
| 3608 | return interceptor(ctx, in, info, handler) |
| 3609 | } |
| 3610 | |
| 3611 | func _KV_Compact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 3612 | in := new(CompactionRequest) |
| 3613 | if err := dec(in); err != nil { |
| 3614 | return nil, err |
| 3615 | } |
| 3616 | if interceptor == nil { |
| 3617 | return srv.(KVServer).Compact(ctx, in) |
| 3618 | } |
| 3619 | info := &grpc.UnaryServerInfo{ |
| 3620 | Server: srv, |
| 3621 | FullMethod: "/etcdserverpb.KV/Compact", |
| 3622 | } |
| 3623 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 3624 | return srv.(KVServer).Compact(ctx, req.(*CompactionRequest)) |
| 3625 | } |
| 3626 | return interceptor(ctx, in, info, handler) |
| 3627 | } |
| 3628 | |
| 3629 | var _KV_serviceDesc = grpc.ServiceDesc{ |
| 3630 | ServiceName: "etcdserverpb.KV", |
| 3631 | HandlerType: (*KVServer)(nil), |
| 3632 | Methods: []grpc.MethodDesc{ |
| 3633 | { |
| 3634 | MethodName: "Range", |
| 3635 | Handler: _KV_Range_Handler, |
| 3636 | }, |
| 3637 | { |
| 3638 | MethodName: "Put", |
| 3639 | Handler: _KV_Put_Handler, |
| 3640 | }, |
| 3641 | { |
| 3642 | MethodName: "DeleteRange", |
| 3643 | Handler: _KV_DeleteRange_Handler, |
| 3644 | }, |
| 3645 | { |
| 3646 | MethodName: "Txn", |
| 3647 | Handler: _KV_Txn_Handler, |
| 3648 | }, |
| 3649 | { |
| 3650 | MethodName: "Compact", |
| 3651 | Handler: _KV_Compact_Handler, |
| 3652 | }, |
| 3653 | }, |
| 3654 | Streams: []grpc.StreamDesc{}, |
| 3655 | Metadata: "rpc.proto", |
| 3656 | } |
| 3657 | |
| 3658 | // Client API for Watch service |
| 3659 | |
| 3660 | type WatchClient interface { |
| 3661 | // Watch watches for events happening or that have happened. Both input and output |
| 3662 | // are streams; the input stream is for creating and canceling watchers and the output |
| 3663 | // stream sends events. One watch RPC can watch on multiple key ranges, streaming events |
| 3664 | // for several watches at once. The entire event history can be watched starting from the |
| 3665 | // last compaction revision. |
| 3666 | Watch(ctx context.Context, opts ...grpc.CallOption) (Watch_WatchClient, error) |
| 3667 | } |
| 3668 | |
| 3669 | type watchClient struct { |
| 3670 | cc *grpc.ClientConn |
| 3671 | } |
| 3672 | |
| 3673 | func NewWatchClient(cc *grpc.ClientConn) WatchClient { |
| 3674 | return &watchClient{cc} |
| 3675 | } |
| 3676 | |
| 3677 | func (c *watchClient) Watch(ctx context.Context, opts ...grpc.CallOption) (Watch_WatchClient, error) { |
| 3678 | stream, err := grpc.NewClientStream(ctx, &_Watch_serviceDesc.Streams[0], c.cc, "/etcdserverpb.Watch/Watch", opts...) |
| 3679 | if err != nil { |
| 3680 | return nil, err |
| 3681 | } |
| 3682 | x := &watchWatchClient{stream} |
| 3683 | return x, nil |
| 3684 | } |
| 3685 | |
| 3686 | type Watch_WatchClient interface { |
| 3687 | Send(*WatchRequest) error |
| 3688 | Recv() (*WatchResponse, error) |
| 3689 | grpc.ClientStream |
| 3690 | } |
| 3691 | |
| 3692 | type watchWatchClient struct { |
| 3693 | grpc.ClientStream |
| 3694 | } |
| 3695 | |
| 3696 | func (x *watchWatchClient) Send(m *WatchRequest) error { |
| 3697 | return x.ClientStream.SendMsg(m) |
| 3698 | } |
| 3699 | |
| 3700 | func (x *watchWatchClient) Recv() (*WatchResponse, error) { |
| 3701 | m := new(WatchResponse) |
| 3702 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 3703 | return nil, err |
| 3704 | } |
| 3705 | return m, nil |
| 3706 | } |
| 3707 | |
| 3708 | // Server API for Watch service |
| 3709 | |
| 3710 | type WatchServer interface { |
| 3711 | // Watch watches for events happening or that have happened. Both input and output |
| 3712 | // are streams; the input stream is for creating and canceling watchers and the output |
| 3713 | // stream sends events. One watch RPC can watch on multiple key ranges, streaming events |
| 3714 | // for several watches at once. The entire event history can be watched starting from the |
| 3715 | // last compaction revision. |
| 3716 | Watch(Watch_WatchServer) error |
| 3717 | } |
| 3718 | |
| 3719 | func RegisterWatchServer(s *grpc.Server, srv WatchServer) { |
| 3720 | s.RegisterService(&_Watch_serviceDesc, srv) |
| 3721 | } |
| 3722 | |
| 3723 | func _Watch_Watch_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 3724 | return srv.(WatchServer).Watch(&watchWatchServer{stream}) |
| 3725 | } |
| 3726 | |
| 3727 | type Watch_WatchServer interface { |
| 3728 | Send(*WatchResponse) error |
| 3729 | Recv() (*WatchRequest, error) |
| 3730 | grpc.ServerStream |
| 3731 | } |
| 3732 | |
| 3733 | type watchWatchServer struct { |
| 3734 | grpc.ServerStream |
| 3735 | } |
| 3736 | |
| 3737 | func (x *watchWatchServer) Send(m *WatchResponse) error { |
| 3738 | return x.ServerStream.SendMsg(m) |
| 3739 | } |
| 3740 | |
| 3741 | func (x *watchWatchServer) Recv() (*WatchRequest, error) { |
| 3742 | m := new(WatchRequest) |
| 3743 | if err := x.ServerStream.RecvMsg(m); err != nil { |
| 3744 | return nil, err |
| 3745 | } |
| 3746 | return m, nil |
| 3747 | } |
| 3748 | |
| 3749 | var _Watch_serviceDesc = grpc.ServiceDesc{ |
| 3750 | ServiceName: "etcdserverpb.Watch", |
| 3751 | HandlerType: (*WatchServer)(nil), |
| 3752 | Methods: []grpc.MethodDesc{}, |
| 3753 | Streams: []grpc.StreamDesc{ |
| 3754 | { |
| 3755 | StreamName: "Watch", |
| 3756 | Handler: _Watch_Watch_Handler, |
| 3757 | ServerStreams: true, |
| 3758 | ClientStreams: true, |
| 3759 | }, |
| 3760 | }, |
| 3761 | Metadata: "rpc.proto", |
| 3762 | } |
| 3763 | |
| 3764 | // Client API for Lease service |
| 3765 | |
| 3766 | type LeaseClient interface { |
| 3767 | // LeaseGrant creates a lease which expires if the server does not receive a keepAlive |
| 3768 | // within a given time to live period. All keys attached to the lease will be expired and |
| 3769 | // deleted if the lease expires. Each expired key generates a delete event in the event history. |
| 3770 | LeaseGrant(ctx context.Context, in *LeaseGrantRequest, opts ...grpc.CallOption) (*LeaseGrantResponse, error) |
| 3771 | // LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted. |
| 3772 | LeaseRevoke(ctx context.Context, in *LeaseRevokeRequest, opts ...grpc.CallOption) (*LeaseRevokeResponse, error) |
| 3773 | // LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client |
| 3774 | // to the server and streaming keep alive responses from the server to the client. |
| 3775 | LeaseKeepAlive(ctx context.Context, opts ...grpc.CallOption) (Lease_LeaseKeepAliveClient, error) |
| 3776 | // LeaseTimeToLive retrieves lease information. |
| 3777 | LeaseTimeToLive(ctx context.Context, in *LeaseTimeToLiveRequest, opts ...grpc.CallOption) (*LeaseTimeToLiveResponse, error) |
| 3778 | // LeaseLeases lists all existing leases. |
| 3779 | LeaseLeases(ctx context.Context, in *LeaseLeasesRequest, opts ...grpc.CallOption) (*LeaseLeasesResponse, error) |
| 3780 | } |
| 3781 | |
| 3782 | type leaseClient struct { |
| 3783 | cc *grpc.ClientConn |
| 3784 | } |
| 3785 | |
| 3786 | func NewLeaseClient(cc *grpc.ClientConn) LeaseClient { |
| 3787 | return &leaseClient{cc} |
| 3788 | } |
| 3789 | |
| 3790 | func (c *leaseClient) LeaseGrant(ctx context.Context, in *LeaseGrantRequest, opts ...grpc.CallOption) (*LeaseGrantResponse, error) { |
| 3791 | out := new(LeaseGrantResponse) |
| 3792 | err := grpc.Invoke(ctx, "/etcdserverpb.Lease/LeaseGrant", in, out, c.cc, opts...) |
| 3793 | if err != nil { |
| 3794 | return nil, err |
| 3795 | } |
| 3796 | return out, nil |
| 3797 | } |
| 3798 | |
| 3799 | func (c *leaseClient) LeaseRevoke(ctx context.Context, in *LeaseRevokeRequest, opts ...grpc.CallOption) (*LeaseRevokeResponse, error) { |
| 3800 | out := new(LeaseRevokeResponse) |
| 3801 | err := grpc.Invoke(ctx, "/etcdserverpb.Lease/LeaseRevoke", in, out, c.cc, opts...) |
| 3802 | if err != nil { |
| 3803 | return nil, err |
| 3804 | } |
| 3805 | return out, nil |
| 3806 | } |
| 3807 | |
| 3808 | func (c *leaseClient) LeaseKeepAlive(ctx context.Context, opts ...grpc.CallOption) (Lease_LeaseKeepAliveClient, error) { |
| 3809 | stream, err := grpc.NewClientStream(ctx, &_Lease_serviceDesc.Streams[0], c.cc, "/etcdserverpb.Lease/LeaseKeepAlive", opts...) |
| 3810 | if err != nil { |
| 3811 | return nil, err |
| 3812 | } |
| 3813 | x := &leaseLeaseKeepAliveClient{stream} |
| 3814 | return x, nil |
| 3815 | } |
| 3816 | |
| 3817 | type Lease_LeaseKeepAliveClient interface { |
| 3818 | Send(*LeaseKeepAliveRequest) error |
| 3819 | Recv() (*LeaseKeepAliveResponse, error) |
| 3820 | grpc.ClientStream |
| 3821 | } |
| 3822 | |
| 3823 | type leaseLeaseKeepAliveClient struct { |
| 3824 | grpc.ClientStream |
| 3825 | } |
| 3826 | |
| 3827 | func (x *leaseLeaseKeepAliveClient) Send(m *LeaseKeepAliveRequest) error { |
| 3828 | return x.ClientStream.SendMsg(m) |
| 3829 | } |
| 3830 | |
| 3831 | func (x *leaseLeaseKeepAliveClient) Recv() (*LeaseKeepAliveResponse, error) { |
| 3832 | m := new(LeaseKeepAliveResponse) |
| 3833 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 3834 | return nil, err |
| 3835 | } |
| 3836 | return m, nil |
| 3837 | } |
| 3838 | |
| 3839 | func (c *leaseClient) LeaseTimeToLive(ctx context.Context, in *LeaseTimeToLiveRequest, opts ...grpc.CallOption) (*LeaseTimeToLiveResponse, error) { |
| 3840 | out := new(LeaseTimeToLiveResponse) |
| 3841 | err := grpc.Invoke(ctx, "/etcdserverpb.Lease/LeaseTimeToLive", in, out, c.cc, opts...) |
| 3842 | if err != nil { |
| 3843 | return nil, err |
| 3844 | } |
| 3845 | return out, nil |
| 3846 | } |
| 3847 | |
| 3848 | func (c *leaseClient) LeaseLeases(ctx context.Context, in *LeaseLeasesRequest, opts ...grpc.CallOption) (*LeaseLeasesResponse, error) { |
| 3849 | out := new(LeaseLeasesResponse) |
| 3850 | err := grpc.Invoke(ctx, "/etcdserverpb.Lease/LeaseLeases", in, out, c.cc, opts...) |
| 3851 | if err != nil { |
| 3852 | return nil, err |
| 3853 | } |
| 3854 | return out, nil |
| 3855 | } |
| 3856 | |
| 3857 | // Server API for Lease service |
| 3858 | |
| 3859 | type LeaseServer interface { |
| 3860 | // LeaseGrant creates a lease which expires if the server does not receive a keepAlive |
| 3861 | // within a given time to live period. All keys attached to the lease will be expired and |
| 3862 | // deleted if the lease expires. Each expired key generates a delete event in the event history. |
| 3863 | LeaseGrant(context.Context, *LeaseGrantRequest) (*LeaseGrantResponse, error) |
| 3864 | // LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted. |
| 3865 | LeaseRevoke(context.Context, *LeaseRevokeRequest) (*LeaseRevokeResponse, error) |
| 3866 | // LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client |
| 3867 | // to the server and streaming keep alive responses from the server to the client. |
| 3868 | LeaseKeepAlive(Lease_LeaseKeepAliveServer) error |
| 3869 | // LeaseTimeToLive retrieves lease information. |
| 3870 | LeaseTimeToLive(context.Context, *LeaseTimeToLiveRequest) (*LeaseTimeToLiveResponse, error) |
| 3871 | // LeaseLeases lists all existing leases. |
| 3872 | LeaseLeases(context.Context, *LeaseLeasesRequest) (*LeaseLeasesResponse, error) |
| 3873 | } |
| 3874 | |
| 3875 | func RegisterLeaseServer(s *grpc.Server, srv LeaseServer) { |
| 3876 | s.RegisterService(&_Lease_serviceDesc, srv) |
| 3877 | } |
| 3878 | |
| 3879 | func _Lease_LeaseGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 3880 | in := new(LeaseGrantRequest) |
| 3881 | if err := dec(in); err != nil { |
| 3882 | return nil, err |
| 3883 | } |
| 3884 | if interceptor == nil { |
| 3885 | return srv.(LeaseServer).LeaseGrant(ctx, in) |
| 3886 | } |
| 3887 | info := &grpc.UnaryServerInfo{ |
| 3888 | Server: srv, |
| 3889 | FullMethod: "/etcdserverpb.Lease/LeaseGrant", |
| 3890 | } |
| 3891 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 3892 | return srv.(LeaseServer).LeaseGrant(ctx, req.(*LeaseGrantRequest)) |
| 3893 | } |
| 3894 | return interceptor(ctx, in, info, handler) |
| 3895 | } |
| 3896 | |
| 3897 | func _Lease_LeaseRevoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 3898 | in := new(LeaseRevokeRequest) |
| 3899 | if err := dec(in); err != nil { |
| 3900 | return nil, err |
| 3901 | } |
| 3902 | if interceptor == nil { |
| 3903 | return srv.(LeaseServer).LeaseRevoke(ctx, in) |
| 3904 | } |
| 3905 | info := &grpc.UnaryServerInfo{ |
| 3906 | Server: srv, |
| 3907 | FullMethod: "/etcdserverpb.Lease/LeaseRevoke", |
| 3908 | } |
| 3909 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 3910 | return srv.(LeaseServer).LeaseRevoke(ctx, req.(*LeaseRevokeRequest)) |
| 3911 | } |
| 3912 | return interceptor(ctx, in, info, handler) |
| 3913 | } |
| 3914 | |
| 3915 | func _Lease_LeaseKeepAlive_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 3916 | return srv.(LeaseServer).LeaseKeepAlive(&leaseLeaseKeepAliveServer{stream}) |
| 3917 | } |
| 3918 | |
| 3919 | type Lease_LeaseKeepAliveServer interface { |
| 3920 | Send(*LeaseKeepAliveResponse) error |
| 3921 | Recv() (*LeaseKeepAliveRequest, error) |
| 3922 | grpc.ServerStream |
| 3923 | } |
| 3924 | |
| 3925 | type leaseLeaseKeepAliveServer struct { |
| 3926 | grpc.ServerStream |
| 3927 | } |
| 3928 | |
| 3929 | func (x *leaseLeaseKeepAliveServer) Send(m *LeaseKeepAliveResponse) error { |
| 3930 | return x.ServerStream.SendMsg(m) |
| 3931 | } |
| 3932 | |
| 3933 | func (x *leaseLeaseKeepAliveServer) Recv() (*LeaseKeepAliveRequest, error) { |
| 3934 | m := new(LeaseKeepAliveRequest) |
| 3935 | if err := x.ServerStream.RecvMsg(m); err != nil { |
| 3936 | return nil, err |
| 3937 | } |
| 3938 | return m, nil |
| 3939 | } |
| 3940 | |
| 3941 | func _Lease_LeaseTimeToLive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 3942 | in := new(LeaseTimeToLiveRequest) |
| 3943 | if err := dec(in); err != nil { |
| 3944 | return nil, err |
| 3945 | } |
| 3946 | if interceptor == nil { |
| 3947 | return srv.(LeaseServer).LeaseTimeToLive(ctx, in) |
| 3948 | } |
| 3949 | info := &grpc.UnaryServerInfo{ |
| 3950 | Server: srv, |
| 3951 | FullMethod: "/etcdserverpb.Lease/LeaseTimeToLive", |
| 3952 | } |
| 3953 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 3954 | return srv.(LeaseServer).LeaseTimeToLive(ctx, req.(*LeaseTimeToLiveRequest)) |
| 3955 | } |
| 3956 | return interceptor(ctx, in, info, handler) |
| 3957 | } |
| 3958 | |
| 3959 | func _Lease_LeaseLeases_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 3960 | in := new(LeaseLeasesRequest) |
| 3961 | if err := dec(in); err != nil { |
| 3962 | return nil, err |
| 3963 | } |
| 3964 | if interceptor == nil { |
| 3965 | return srv.(LeaseServer).LeaseLeases(ctx, in) |
| 3966 | } |
| 3967 | info := &grpc.UnaryServerInfo{ |
| 3968 | Server: srv, |
| 3969 | FullMethod: "/etcdserverpb.Lease/LeaseLeases", |
| 3970 | } |
| 3971 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 3972 | return srv.(LeaseServer).LeaseLeases(ctx, req.(*LeaseLeasesRequest)) |
| 3973 | } |
| 3974 | return interceptor(ctx, in, info, handler) |
| 3975 | } |
| 3976 | |
| 3977 | var _Lease_serviceDesc = grpc.ServiceDesc{ |
| 3978 | ServiceName: "etcdserverpb.Lease", |
| 3979 | HandlerType: (*LeaseServer)(nil), |
| 3980 | Methods: []grpc.MethodDesc{ |
| 3981 | { |
| 3982 | MethodName: "LeaseGrant", |
| 3983 | Handler: _Lease_LeaseGrant_Handler, |
| 3984 | }, |
| 3985 | { |
| 3986 | MethodName: "LeaseRevoke", |
| 3987 | Handler: _Lease_LeaseRevoke_Handler, |
| 3988 | }, |
| 3989 | { |
| 3990 | MethodName: "LeaseTimeToLive", |
| 3991 | Handler: _Lease_LeaseTimeToLive_Handler, |
| 3992 | }, |
| 3993 | { |
| 3994 | MethodName: "LeaseLeases", |
| 3995 | Handler: _Lease_LeaseLeases_Handler, |
| 3996 | }, |
| 3997 | }, |
| 3998 | Streams: []grpc.StreamDesc{ |
| 3999 | { |
| 4000 | StreamName: "LeaseKeepAlive", |
| 4001 | Handler: _Lease_LeaseKeepAlive_Handler, |
| 4002 | ServerStreams: true, |
| 4003 | ClientStreams: true, |
| 4004 | }, |
| 4005 | }, |
| 4006 | Metadata: "rpc.proto", |
| 4007 | } |
| 4008 | |
| 4009 | // Client API for Cluster service |
| 4010 | |
| 4011 | type ClusterClient interface { |
| 4012 | // MemberAdd adds a member into the cluster. |
| 4013 | MemberAdd(ctx context.Context, in *MemberAddRequest, opts ...grpc.CallOption) (*MemberAddResponse, error) |
| 4014 | // MemberRemove removes an existing member from the cluster. |
| 4015 | MemberRemove(ctx context.Context, in *MemberRemoveRequest, opts ...grpc.CallOption) (*MemberRemoveResponse, error) |
| 4016 | // MemberUpdate updates the member configuration. |
| 4017 | MemberUpdate(ctx context.Context, in *MemberUpdateRequest, opts ...grpc.CallOption) (*MemberUpdateResponse, error) |
| 4018 | // MemberList lists all the members in the cluster. |
| 4019 | MemberList(ctx context.Context, in *MemberListRequest, opts ...grpc.CallOption) (*MemberListResponse, error) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 4020 | // MemberPromote promotes a member from raft learner (non-voting) to raft voting member. |
| 4021 | MemberPromote(ctx context.Context, in *MemberPromoteRequest, opts ...grpc.CallOption) (*MemberPromoteResponse, error) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 4022 | } |
| 4023 | |
| 4024 | type clusterClient struct { |
| 4025 | cc *grpc.ClientConn |
| 4026 | } |
| 4027 | |
| 4028 | func NewClusterClient(cc *grpc.ClientConn) ClusterClient { |
| 4029 | return &clusterClient{cc} |
| 4030 | } |
| 4031 | |
| 4032 | func (c *clusterClient) MemberAdd(ctx context.Context, in *MemberAddRequest, opts ...grpc.CallOption) (*MemberAddResponse, error) { |
| 4033 | out := new(MemberAddResponse) |
| 4034 | err := grpc.Invoke(ctx, "/etcdserverpb.Cluster/MemberAdd", in, out, c.cc, opts...) |
| 4035 | if err != nil { |
| 4036 | return nil, err |
| 4037 | } |
| 4038 | return out, nil |
| 4039 | } |
| 4040 | |
| 4041 | func (c *clusterClient) MemberRemove(ctx context.Context, in *MemberRemoveRequest, opts ...grpc.CallOption) (*MemberRemoveResponse, error) { |
| 4042 | out := new(MemberRemoveResponse) |
| 4043 | err := grpc.Invoke(ctx, "/etcdserverpb.Cluster/MemberRemove", in, out, c.cc, opts...) |
| 4044 | if err != nil { |
| 4045 | return nil, err |
| 4046 | } |
| 4047 | return out, nil |
| 4048 | } |
| 4049 | |
| 4050 | func (c *clusterClient) MemberUpdate(ctx context.Context, in *MemberUpdateRequest, opts ...grpc.CallOption) (*MemberUpdateResponse, error) { |
| 4051 | out := new(MemberUpdateResponse) |
| 4052 | err := grpc.Invoke(ctx, "/etcdserverpb.Cluster/MemberUpdate", in, out, c.cc, opts...) |
| 4053 | if err != nil { |
| 4054 | return nil, err |
| 4055 | } |
| 4056 | return out, nil |
| 4057 | } |
| 4058 | |
| 4059 | func (c *clusterClient) MemberList(ctx context.Context, in *MemberListRequest, opts ...grpc.CallOption) (*MemberListResponse, error) { |
| 4060 | out := new(MemberListResponse) |
| 4061 | err := grpc.Invoke(ctx, "/etcdserverpb.Cluster/MemberList", in, out, c.cc, opts...) |
| 4062 | if err != nil { |
| 4063 | return nil, err |
| 4064 | } |
| 4065 | return out, nil |
| 4066 | } |
| 4067 | |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 4068 | func (c *clusterClient) MemberPromote(ctx context.Context, in *MemberPromoteRequest, opts ...grpc.CallOption) (*MemberPromoteResponse, error) { |
| 4069 | out := new(MemberPromoteResponse) |
| 4070 | err := grpc.Invoke(ctx, "/etcdserverpb.Cluster/MemberPromote", in, out, c.cc, opts...) |
| 4071 | if err != nil { |
| 4072 | return nil, err |
| 4073 | } |
| 4074 | return out, nil |
| 4075 | } |
| 4076 | |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 4077 | // Server API for Cluster service |
| 4078 | |
| 4079 | type ClusterServer interface { |
| 4080 | // MemberAdd adds a member into the cluster. |
| 4081 | MemberAdd(context.Context, *MemberAddRequest) (*MemberAddResponse, error) |
| 4082 | // MemberRemove removes an existing member from the cluster. |
| 4083 | MemberRemove(context.Context, *MemberRemoveRequest) (*MemberRemoveResponse, error) |
| 4084 | // MemberUpdate updates the member configuration. |
| 4085 | MemberUpdate(context.Context, *MemberUpdateRequest) (*MemberUpdateResponse, error) |
| 4086 | // MemberList lists all the members in the cluster. |
| 4087 | MemberList(context.Context, *MemberListRequest) (*MemberListResponse, error) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 4088 | // MemberPromote promotes a member from raft learner (non-voting) to raft voting member. |
| 4089 | MemberPromote(context.Context, *MemberPromoteRequest) (*MemberPromoteResponse, error) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 4090 | } |
| 4091 | |
| 4092 | func RegisterClusterServer(s *grpc.Server, srv ClusterServer) { |
| 4093 | s.RegisterService(&_Cluster_serviceDesc, srv) |
| 4094 | } |
| 4095 | |
| 4096 | func _Cluster_MemberAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4097 | in := new(MemberAddRequest) |
| 4098 | if err := dec(in); err != nil { |
| 4099 | return nil, err |
| 4100 | } |
| 4101 | if interceptor == nil { |
| 4102 | return srv.(ClusterServer).MemberAdd(ctx, in) |
| 4103 | } |
| 4104 | info := &grpc.UnaryServerInfo{ |
| 4105 | Server: srv, |
| 4106 | FullMethod: "/etcdserverpb.Cluster/MemberAdd", |
| 4107 | } |
| 4108 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4109 | return srv.(ClusterServer).MemberAdd(ctx, req.(*MemberAddRequest)) |
| 4110 | } |
| 4111 | return interceptor(ctx, in, info, handler) |
| 4112 | } |
| 4113 | |
| 4114 | func _Cluster_MemberRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4115 | in := new(MemberRemoveRequest) |
| 4116 | if err := dec(in); err != nil { |
| 4117 | return nil, err |
| 4118 | } |
| 4119 | if interceptor == nil { |
| 4120 | return srv.(ClusterServer).MemberRemove(ctx, in) |
| 4121 | } |
| 4122 | info := &grpc.UnaryServerInfo{ |
| 4123 | Server: srv, |
| 4124 | FullMethod: "/etcdserverpb.Cluster/MemberRemove", |
| 4125 | } |
| 4126 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4127 | return srv.(ClusterServer).MemberRemove(ctx, req.(*MemberRemoveRequest)) |
| 4128 | } |
| 4129 | return interceptor(ctx, in, info, handler) |
| 4130 | } |
| 4131 | |
| 4132 | func _Cluster_MemberUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4133 | in := new(MemberUpdateRequest) |
| 4134 | if err := dec(in); err != nil { |
| 4135 | return nil, err |
| 4136 | } |
| 4137 | if interceptor == nil { |
| 4138 | return srv.(ClusterServer).MemberUpdate(ctx, in) |
| 4139 | } |
| 4140 | info := &grpc.UnaryServerInfo{ |
| 4141 | Server: srv, |
| 4142 | FullMethod: "/etcdserverpb.Cluster/MemberUpdate", |
| 4143 | } |
| 4144 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4145 | return srv.(ClusterServer).MemberUpdate(ctx, req.(*MemberUpdateRequest)) |
| 4146 | } |
| 4147 | return interceptor(ctx, in, info, handler) |
| 4148 | } |
| 4149 | |
| 4150 | func _Cluster_MemberList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4151 | in := new(MemberListRequest) |
| 4152 | if err := dec(in); err != nil { |
| 4153 | return nil, err |
| 4154 | } |
| 4155 | if interceptor == nil { |
| 4156 | return srv.(ClusterServer).MemberList(ctx, in) |
| 4157 | } |
| 4158 | info := &grpc.UnaryServerInfo{ |
| 4159 | Server: srv, |
| 4160 | FullMethod: "/etcdserverpb.Cluster/MemberList", |
| 4161 | } |
| 4162 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4163 | return srv.(ClusterServer).MemberList(ctx, req.(*MemberListRequest)) |
| 4164 | } |
| 4165 | return interceptor(ctx, in, info, handler) |
| 4166 | } |
| 4167 | |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 4168 | func _Cluster_MemberPromote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4169 | in := new(MemberPromoteRequest) |
| 4170 | if err := dec(in); err != nil { |
| 4171 | return nil, err |
| 4172 | } |
| 4173 | if interceptor == nil { |
| 4174 | return srv.(ClusterServer).MemberPromote(ctx, in) |
| 4175 | } |
| 4176 | info := &grpc.UnaryServerInfo{ |
| 4177 | Server: srv, |
| 4178 | FullMethod: "/etcdserverpb.Cluster/MemberPromote", |
| 4179 | } |
| 4180 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4181 | return srv.(ClusterServer).MemberPromote(ctx, req.(*MemberPromoteRequest)) |
| 4182 | } |
| 4183 | return interceptor(ctx, in, info, handler) |
| 4184 | } |
| 4185 | |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 4186 | var _Cluster_serviceDesc = grpc.ServiceDesc{ |
| 4187 | ServiceName: "etcdserverpb.Cluster", |
| 4188 | HandlerType: (*ClusterServer)(nil), |
| 4189 | Methods: []grpc.MethodDesc{ |
| 4190 | { |
| 4191 | MethodName: "MemberAdd", |
| 4192 | Handler: _Cluster_MemberAdd_Handler, |
| 4193 | }, |
| 4194 | { |
| 4195 | MethodName: "MemberRemove", |
| 4196 | Handler: _Cluster_MemberRemove_Handler, |
| 4197 | }, |
| 4198 | { |
| 4199 | MethodName: "MemberUpdate", |
| 4200 | Handler: _Cluster_MemberUpdate_Handler, |
| 4201 | }, |
| 4202 | { |
| 4203 | MethodName: "MemberList", |
| 4204 | Handler: _Cluster_MemberList_Handler, |
| 4205 | }, |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 4206 | { |
| 4207 | MethodName: "MemberPromote", |
| 4208 | Handler: _Cluster_MemberPromote_Handler, |
| 4209 | }, |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 4210 | }, |
| 4211 | Streams: []grpc.StreamDesc{}, |
| 4212 | Metadata: "rpc.proto", |
| 4213 | } |
| 4214 | |
| 4215 | // Client API for Maintenance service |
| 4216 | |
| 4217 | type MaintenanceClient interface { |
| 4218 | // Alarm activates, deactivates, and queries alarms regarding cluster health. |
| 4219 | Alarm(ctx context.Context, in *AlarmRequest, opts ...grpc.CallOption) (*AlarmResponse, error) |
| 4220 | // Status gets the status of the member. |
| 4221 | Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) |
| 4222 | // Defragment defragments a member's backend database to recover storage space. |
| 4223 | Defragment(ctx context.Context, in *DefragmentRequest, opts ...grpc.CallOption) (*DefragmentResponse, error) |
| 4224 | // Hash computes the hash of whole backend keyspace, |
| 4225 | // including key, lease, and other buckets in storage. |
| 4226 | // This is designed for testing ONLY! |
| 4227 | // Do not rely on this in production with ongoing transactions, |
| 4228 | // since Hash operation does not hold MVCC locks. |
| 4229 | // Use "HashKV" API instead for "key" bucket consistency checks. |
| 4230 | Hash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, error) |
| 4231 | // HashKV computes the hash of all MVCC keys up to a given revision. |
| 4232 | // It only iterates "key" bucket in backend storage. |
| 4233 | HashKV(ctx context.Context, in *HashKVRequest, opts ...grpc.CallOption) (*HashKVResponse, error) |
| 4234 | // Snapshot sends a snapshot of the entire backend from a member over a stream to a client. |
| 4235 | Snapshot(ctx context.Context, in *SnapshotRequest, opts ...grpc.CallOption) (Maintenance_SnapshotClient, error) |
| 4236 | // MoveLeader requests current leader node to transfer its leadership to transferee. |
| 4237 | MoveLeader(ctx context.Context, in *MoveLeaderRequest, opts ...grpc.CallOption) (*MoveLeaderResponse, error) |
| 4238 | } |
| 4239 | |
| 4240 | type maintenanceClient struct { |
| 4241 | cc *grpc.ClientConn |
| 4242 | } |
| 4243 | |
| 4244 | func NewMaintenanceClient(cc *grpc.ClientConn) MaintenanceClient { |
| 4245 | return &maintenanceClient{cc} |
| 4246 | } |
| 4247 | |
| 4248 | func (c *maintenanceClient) Alarm(ctx context.Context, in *AlarmRequest, opts ...grpc.CallOption) (*AlarmResponse, error) { |
| 4249 | out := new(AlarmResponse) |
| 4250 | err := grpc.Invoke(ctx, "/etcdserverpb.Maintenance/Alarm", in, out, c.cc, opts...) |
| 4251 | if err != nil { |
| 4252 | return nil, err |
| 4253 | } |
| 4254 | return out, nil |
| 4255 | } |
| 4256 | |
| 4257 | func (c *maintenanceClient) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) { |
| 4258 | out := new(StatusResponse) |
| 4259 | err := grpc.Invoke(ctx, "/etcdserverpb.Maintenance/Status", in, out, c.cc, opts...) |
| 4260 | if err != nil { |
| 4261 | return nil, err |
| 4262 | } |
| 4263 | return out, nil |
| 4264 | } |
| 4265 | |
| 4266 | func (c *maintenanceClient) Defragment(ctx context.Context, in *DefragmentRequest, opts ...grpc.CallOption) (*DefragmentResponse, error) { |
| 4267 | out := new(DefragmentResponse) |
| 4268 | err := grpc.Invoke(ctx, "/etcdserverpb.Maintenance/Defragment", in, out, c.cc, opts...) |
| 4269 | if err != nil { |
| 4270 | return nil, err |
| 4271 | } |
| 4272 | return out, nil |
| 4273 | } |
| 4274 | |
| 4275 | func (c *maintenanceClient) Hash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, error) { |
| 4276 | out := new(HashResponse) |
| 4277 | err := grpc.Invoke(ctx, "/etcdserverpb.Maintenance/Hash", in, out, c.cc, opts...) |
| 4278 | if err != nil { |
| 4279 | return nil, err |
| 4280 | } |
| 4281 | return out, nil |
| 4282 | } |
| 4283 | |
| 4284 | func (c *maintenanceClient) HashKV(ctx context.Context, in *HashKVRequest, opts ...grpc.CallOption) (*HashKVResponse, error) { |
| 4285 | out := new(HashKVResponse) |
| 4286 | err := grpc.Invoke(ctx, "/etcdserverpb.Maintenance/HashKV", in, out, c.cc, opts...) |
| 4287 | if err != nil { |
| 4288 | return nil, err |
| 4289 | } |
| 4290 | return out, nil |
| 4291 | } |
| 4292 | |
| 4293 | func (c *maintenanceClient) Snapshot(ctx context.Context, in *SnapshotRequest, opts ...grpc.CallOption) (Maintenance_SnapshotClient, error) { |
| 4294 | stream, err := grpc.NewClientStream(ctx, &_Maintenance_serviceDesc.Streams[0], c.cc, "/etcdserverpb.Maintenance/Snapshot", opts...) |
| 4295 | if err != nil { |
| 4296 | return nil, err |
| 4297 | } |
| 4298 | x := &maintenanceSnapshotClient{stream} |
| 4299 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 4300 | return nil, err |
| 4301 | } |
| 4302 | if err := x.ClientStream.CloseSend(); err != nil { |
| 4303 | return nil, err |
| 4304 | } |
| 4305 | return x, nil |
| 4306 | } |
| 4307 | |
| 4308 | type Maintenance_SnapshotClient interface { |
| 4309 | Recv() (*SnapshotResponse, error) |
| 4310 | grpc.ClientStream |
| 4311 | } |
| 4312 | |
| 4313 | type maintenanceSnapshotClient struct { |
| 4314 | grpc.ClientStream |
| 4315 | } |
| 4316 | |
| 4317 | func (x *maintenanceSnapshotClient) Recv() (*SnapshotResponse, error) { |
| 4318 | m := new(SnapshotResponse) |
| 4319 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 4320 | return nil, err |
| 4321 | } |
| 4322 | return m, nil |
| 4323 | } |
| 4324 | |
| 4325 | func (c *maintenanceClient) MoveLeader(ctx context.Context, in *MoveLeaderRequest, opts ...grpc.CallOption) (*MoveLeaderResponse, error) { |
| 4326 | out := new(MoveLeaderResponse) |
| 4327 | err := grpc.Invoke(ctx, "/etcdserverpb.Maintenance/MoveLeader", in, out, c.cc, opts...) |
| 4328 | if err != nil { |
| 4329 | return nil, err |
| 4330 | } |
| 4331 | return out, nil |
| 4332 | } |
| 4333 | |
| 4334 | // Server API for Maintenance service |
| 4335 | |
| 4336 | type MaintenanceServer interface { |
| 4337 | // Alarm activates, deactivates, and queries alarms regarding cluster health. |
| 4338 | Alarm(context.Context, *AlarmRequest) (*AlarmResponse, error) |
| 4339 | // Status gets the status of the member. |
| 4340 | Status(context.Context, *StatusRequest) (*StatusResponse, error) |
| 4341 | // Defragment defragments a member's backend database to recover storage space. |
| 4342 | Defragment(context.Context, *DefragmentRequest) (*DefragmentResponse, error) |
| 4343 | // Hash computes the hash of whole backend keyspace, |
| 4344 | // including key, lease, and other buckets in storage. |
| 4345 | // This is designed for testing ONLY! |
| 4346 | // Do not rely on this in production with ongoing transactions, |
| 4347 | // since Hash operation does not hold MVCC locks. |
| 4348 | // Use "HashKV" API instead for "key" bucket consistency checks. |
| 4349 | Hash(context.Context, *HashRequest) (*HashResponse, error) |
| 4350 | // HashKV computes the hash of all MVCC keys up to a given revision. |
| 4351 | // It only iterates "key" bucket in backend storage. |
| 4352 | HashKV(context.Context, *HashKVRequest) (*HashKVResponse, error) |
| 4353 | // Snapshot sends a snapshot of the entire backend from a member over a stream to a client. |
| 4354 | Snapshot(*SnapshotRequest, Maintenance_SnapshotServer) error |
| 4355 | // MoveLeader requests current leader node to transfer its leadership to transferee. |
| 4356 | MoveLeader(context.Context, *MoveLeaderRequest) (*MoveLeaderResponse, error) |
| 4357 | } |
| 4358 | |
| 4359 | func RegisterMaintenanceServer(s *grpc.Server, srv MaintenanceServer) { |
| 4360 | s.RegisterService(&_Maintenance_serviceDesc, srv) |
| 4361 | } |
| 4362 | |
| 4363 | func _Maintenance_Alarm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4364 | in := new(AlarmRequest) |
| 4365 | if err := dec(in); err != nil { |
| 4366 | return nil, err |
| 4367 | } |
| 4368 | if interceptor == nil { |
| 4369 | return srv.(MaintenanceServer).Alarm(ctx, in) |
| 4370 | } |
| 4371 | info := &grpc.UnaryServerInfo{ |
| 4372 | Server: srv, |
| 4373 | FullMethod: "/etcdserverpb.Maintenance/Alarm", |
| 4374 | } |
| 4375 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4376 | return srv.(MaintenanceServer).Alarm(ctx, req.(*AlarmRequest)) |
| 4377 | } |
| 4378 | return interceptor(ctx, in, info, handler) |
| 4379 | } |
| 4380 | |
| 4381 | func _Maintenance_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4382 | in := new(StatusRequest) |
| 4383 | if err := dec(in); err != nil { |
| 4384 | return nil, err |
| 4385 | } |
| 4386 | if interceptor == nil { |
| 4387 | return srv.(MaintenanceServer).Status(ctx, in) |
| 4388 | } |
| 4389 | info := &grpc.UnaryServerInfo{ |
| 4390 | Server: srv, |
| 4391 | FullMethod: "/etcdserverpb.Maintenance/Status", |
| 4392 | } |
| 4393 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4394 | return srv.(MaintenanceServer).Status(ctx, req.(*StatusRequest)) |
| 4395 | } |
| 4396 | return interceptor(ctx, in, info, handler) |
| 4397 | } |
| 4398 | |
| 4399 | func _Maintenance_Defragment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4400 | in := new(DefragmentRequest) |
| 4401 | if err := dec(in); err != nil { |
| 4402 | return nil, err |
| 4403 | } |
| 4404 | if interceptor == nil { |
| 4405 | return srv.(MaintenanceServer).Defragment(ctx, in) |
| 4406 | } |
| 4407 | info := &grpc.UnaryServerInfo{ |
| 4408 | Server: srv, |
| 4409 | FullMethod: "/etcdserverpb.Maintenance/Defragment", |
| 4410 | } |
| 4411 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4412 | return srv.(MaintenanceServer).Defragment(ctx, req.(*DefragmentRequest)) |
| 4413 | } |
| 4414 | return interceptor(ctx, in, info, handler) |
| 4415 | } |
| 4416 | |
| 4417 | func _Maintenance_Hash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4418 | in := new(HashRequest) |
| 4419 | if err := dec(in); err != nil { |
| 4420 | return nil, err |
| 4421 | } |
| 4422 | if interceptor == nil { |
| 4423 | return srv.(MaintenanceServer).Hash(ctx, in) |
| 4424 | } |
| 4425 | info := &grpc.UnaryServerInfo{ |
| 4426 | Server: srv, |
| 4427 | FullMethod: "/etcdserverpb.Maintenance/Hash", |
| 4428 | } |
| 4429 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4430 | return srv.(MaintenanceServer).Hash(ctx, req.(*HashRequest)) |
| 4431 | } |
| 4432 | return interceptor(ctx, in, info, handler) |
| 4433 | } |
| 4434 | |
| 4435 | func _Maintenance_HashKV_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4436 | in := new(HashKVRequest) |
| 4437 | if err := dec(in); err != nil { |
| 4438 | return nil, err |
| 4439 | } |
| 4440 | if interceptor == nil { |
| 4441 | return srv.(MaintenanceServer).HashKV(ctx, in) |
| 4442 | } |
| 4443 | info := &grpc.UnaryServerInfo{ |
| 4444 | Server: srv, |
| 4445 | FullMethod: "/etcdserverpb.Maintenance/HashKV", |
| 4446 | } |
| 4447 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4448 | return srv.(MaintenanceServer).HashKV(ctx, req.(*HashKVRequest)) |
| 4449 | } |
| 4450 | return interceptor(ctx, in, info, handler) |
| 4451 | } |
| 4452 | |
| 4453 | func _Maintenance_Snapshot_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 4454 | m := new(SnapshotRequest) |
| 4455 | if err := stream.RecvMsg(m); err != nil { |
| 4456 | return err |
| 4457 | } |
| 4458 | return srv.(MaintenanceServer).Snapshot(m, &maintenanceSnapshotServer{stream}) |
| 4459 | } |
| 4460 | |
| 4461 | type Maintenance_SnapshotServer interface { |
| 4462 | Send(*SnapshotResponse) error |
| 4463 | grpc.ServerStream |
| 4464 | } |
| 4465 | |
| 4466 | type maintenanceSnapshotServer struct { |
| 4467 | grpc.ServerStream |
| 4468 | } |
| 4469 | |
| 4470 | func (x *maintenanceSnapshotServer) Send(m *SnapshotResponse) error { |
| 4471 | return x.ServerStream.SendMsg(m) |
| 4472 | } |
| 4473 | |
| 4474 | func _Maintenance_MoveLeader_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4475 | in := new(MoveLeaderRequest) |
| 4476 | if err := dec(in); err != nil { |
| 4477 | return nil, err |
| 4478 | } |
| 4479 | if interceptor == nil { |
| 4480 | return srv.(MaintenanceServer).MoveLeader(ctx, in) |
| 4481 | } |
| 4482 | info := &grpc.UnaryServerInfo{ |
| 4483 | Server: srv, |
| 4484 | FullMethod: "/etcdserverpb.Maintenance/MoveLeader", |
| 4485 | } |
| 4486 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4487 | return srv.(MaintenanceServer).MoveLeader(ctx, req.(*MoveLeaderRequest)) |
| 4488 | } |
| 4489 | return interceptor(ctx, in, info, handler) |
| 4490 | } |
| 4491 | |
| 4492 | var _Maintenance_serviceDesc = grpc.ServiceDesc{ |
| 4493 | ServiceName: "etcdserverpb.Maintenance", |
| 4494 | HandlerType: (*MaintenanceServer)(nil), |
| 4495 | Methods: []grpc.MethodDesc{ |
| 4496 | { |
| 4497 | MethodName: "Alarm", |
| 4498 | Handler: _Maintenance_Alarm_Handler, |
| 4499 | }, |
| 4500 | { |
| 4501 | MethodName: "Status", |
| 4502 | Handler: _Maintenance_Status_Handler, |
| 4503 | }, |
| 4504 | { |
| 4505 | MethodName: "Defragment", |
| 4506 | Handler: _Maintenance_Defragment_Handler, |
| 4507 | }, |
| 4508 | { |
| 4509 | MethodName: "Hash", |
| 4510 | Handler: _Maintenance_Hash_Handler, |
| 4511 | }, |
| 4512 | { |
| 4513 | MethodName: "HashKV", |
| 4514 | Handler: _Maintenance_HashKV_Handler, |
| 4515 | }, |
| 4516 | { |
| 4517 | MethodName: "MoveLeader", |
| 4518 | Handler: _Maintenance_MoveLeader_Handler, |
| 4519 | }, |
| 4520 | }, |
| 4521 | Streams: []grpc.StreamDesc{ |
| 4522 | { |
| 4523 | StreamName: "Snapshot", |
| 4524 | Handler: _Maintenance_Snapshot_Handler, |
| 4525 | ServerStreams: true, |
| 4526 | }, |
| 4527 | }, |
| 4528 | Metadata: "rpc.proto", |
| 4529 | } |
| 4530 | |
| 4531 | // Client API for Auth service |
| 4532 | |
| 4533 | type AuthClient interface { |
| 4534 | // AuthEnable enables authentication. |
| 4535 | AuthEnable(ctx context.Context, in *AuthEnableRequest, opts ...grpc.CallOption) (*AuthEnableResponse, error) |
| 4536 | // AuthDisable disables authentication. |
| 4537 | AuthDisable(ctx context.Context, in *AuthDisableRequest, opts ...grpc.CallOption) (*AuthDisableResponse, error) |
| 4538 | // Authenticate processes an authenticate request. |
| 4539 | Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 4540 | // UserAdd adds a new user. User name cannot be empty. |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 4541 | UserAdd(ctx context.Context, in *AuthUserAddRequest, opts ...grpc.CallOption) (*AuthUserAddResponse, error) |
| 4542 | // UserGet gets detailed user information. |
| 4543 | UserGet(ctx context.Context, in *AuthUserGetRequest, opts ...grpc.CallOption) (*AuthUserGetResponse, error) |
| 4544 | // UserList gets a list of all users. |
| 4545 | UserList(ctx context.Context, in *AuthUserListRequest, opts ...grpc.CallOption) (*AuthUserListResponse, error) |
| 4546 | // UserDelete deletes a specified user. |
| 4547 | UserDelete(ctx context.Context, in *AuthUserDeleteRequest, opts ...grpc.CallOption) (*AuthUserDeleteResponse, error) |
| 4548 | // UserChangePassword changes the password of a specified user. |
| 4549 | UserChangePassword(ctx context.Context, in *AuthUserChangePasswordRequest, opts ...grpc.CallOption) (*AuthUserChangePasswordResponse, error) |
| 4550 | // UserGrant grants a role to a specified user. |
| 4551 | UserGrantRole(ctx context.Context, in *AuthUserGrantRoleRequest, opts ...grpc.CallOption) (*AuthUserGrantRoleResponse, error) |
| 4552 | // UserRevokeRole revokes a role of specified user. |
| 4553 | UserRevokeRole(ctx context.Context, in *AuthUserRevokeRoleRequest, opts ...grpc.CallOption) (*AuthUserRevokeRoleResponse, error) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 4554 | // RoleAdd adds a new role. Role name cannot be empty. |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 4555 | RoleAdd(ctx context.Context, in *AuthRoleAddRequest, opts ...grpc.CallOption) (*AuthRoleAddResponse, error) |
| 4556 | // RoleGet gets detailed role information. |
| 4557 | RoleGet(ctx context.Context, in *AuthRoleGetRequest, opts ...grpc.CallOption) (*AuthRoleGetResponse, error) |
| 4558 | // RoleList gets lists of all roles. |
| 4559 | RoleList(ctx context.Context, in *AuthRoleListRequest, opts ...grpc.CallOption) (*AuthRoleListResponse, error) |
| 4560 | // RoleDelete deletes a specified role. |
| 4561 | RoleDelete(ctx context.Context, in *AuthRoleDeleteRequest, opts ...grpc.CallOption) (*AuthRoleDeleteResponse, error) |
| 4562 | // RoleGrantPermission grants a permission of a specified key or range to a specified role. |
| 4563 | RoleGrantPermission(ctx context.Context, in *AuthRoleGrantPermissionRequest, opts ...grpc.CallOption) (*AuthRoleGrantPermissionResponse, error) |
| 4564 | // RoleRevokePermission revokes a key or range permission of a specified role. |
| 4565 | RoleRevokePermission(ctx context.Context, in *AuthRoleRevokePermissionRequest, opts ...grpc.CallOption) (*AuthRoleRevokePermissionResponse, error) |
| 4566 | } |
| 4567 | |
| 4568 | type authClient struct { |
| 4569 | cc *grpc.ClientConn |
| 4570 | } |
| 4571 | |
| 4572 | func NewAuthClient(cc *grpc.ClientConn) AuthClient { |
| 4573 | return &authClient{cc} |
| 4574 | } |
| 4575 | |
| 4576 | func (c *authClient) AuthEnable(ctx context.Context, in *AuthEnableRequest, opts ...grpc.CallOption) (*AuthEnableResponse, error) { |
| 4577 | out := new(AuthEnableResponse) |
| 4578 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/AuthEnable", in, out, c.cc, opts...) |
| 4579 | if err != nil { |
| 4580 | return nil, err |
| 4581 | } |
| 4582 | return out, nil |
| 4583 | } |
| 4584 | |
| 4585 | func (c *authClient) AuthDisable(ctx context.Context, in *AuthDisableRequest, opts ...grpc.CallOption) (*AuthDisableResponse, error) { |
| 4586 | out := new(AuthDisableResponse) |
| 4587 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/AuthDisable", in, out, c.cc, opts...) |
| 4588 | if err != nil { |
| 4589 | return nil, err |
| 4590 | } |
| 4591 | return out, nil |
| 4592 | } |
| 4593 | |
| 4594 | func (c *authClient) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) { |
| 4595 | out := new(AuthenticateResponse) |
| 4596 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/Authenticate", in, out, c.cc, opts...) |
| 4597 | if err != nil { |
| 4598 | return nil, err |
| 4599 | } |
| 4600 | return out, nil |
| 4601 | } |
| 4602 | |
| 4603 | func (c *authClient) UserAdd(ctx context.Context, in *AuthUserAddRequest, opts ...grpc.CallOption) (*AuthUserAddResponse, error) { |
| 4604 | out := new(AuthUserAddResponse) |
| 4605 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/UserAdd", in, out, c.cc, opts...) |
| 4606 | if err != nil { |
| 4607 | return nil, err |
| 4608 | } |
| 4609 | return out, nil |
| 4610 | } |
| 4611 | |
| 4612 | func (c *authClient) UserGet(ctx context.Context, in *AuthUserGetRequest, opts ...grpc.CallOption) (*AuthUserGetResponse, error) { |
| 4613 | out := new(AuthUserGetResponse) |
| 4614 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/UserGet", in, out, c.cc, opts...) |
| 4615 | if err != nil { |
| 4616 | return nil, err |
| 4617 | } |
| 4618 | return out, nil |
| 4619 | } |
| 4620 | |
| 4621 | func (c *authClient) UserList(ctx context.Context, in *AuthUserListRequest, opts ...grpc.CallOption) (*AuthUserListResponse, error) { |
| 4622 | out := new(AuthUserListResponse) |
| 4623 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/UserList", in, out, c.cc, opts...) |
| 4624 | if err != nil { |
| 4625 | return nil, err |
| 4626 | } |
| 4627 | return out, nil |
| 4628 | } |
| 4629 | |
| 4630 | func (c *authClient) UserDelete(ctx context.Context, in *AuthUserDeleteRequest, opts ...grpc.CallOption) (*AuthUserDeleteResponse, error) { |
| 4631 | out := new(AuthUserDeleteResponse) |
| 4632 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/UserDelete", in, out, c.cc, opts...) |
| 4633 | if err != nil { |
| 4634 | return nil, err |
| 4635 | } |
| 4636 | return out, nil |
| 4637 | } |
| 4638 | |
| 4639 | func (c *authClient) UserChangePassword(ctx context.Context, in *AuthUserChangePasswordRequest, opts ...grpc.CallOption) (*AuthUserChangePasswordResponse, error) { |
| 4640 | out := new(AuthUserChangePasswordResponse) |
| 4641 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/UserChangePassword", in, out, c.cc, opts...) |
| 4642 | if err != nil { |
| 4643 | return nil, err |
| 4644 | } |
| 4645 | return out, nil |
| 4646 | } |
| 4647 | |
| 4648 | func (c *authClient) UserGrantRole(ctx context.Context, in *AuthUserGrantRoleRequest, opts ...grpc.CallOption) (*AuthUserGrantRoleResponse, error) { |
| 4649 | out := new(AuthUserGrantRoleResponse) |
| 4650 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/UserGrantRole", in, out, c.cc, opts...) |
| 4651 | if err != nil { |
| 4652 | return nil, err |
| 4653 | } |
| 4654 | return out, nil |
| 4655 | } |
| 4656 | |
| 4657 | func (c *authClient) UserRevokeRole(ctx context.Context, in *AuthUserRevokeRoleRequest, opts ...grpc.CallOption) (*AuthUserRevokeRoleResponse, error) { |
| 4658 | out := new(AuthUserRevokeRoleResponse) |
| 4659 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/UserRevokeRole", in, out, c.cc, opts...) |
| 4660 | if err != nil { |
| 4661 | return nil, err |
| 4662 | } |
| 4663 | return out, nil |
| 4664 | } |
| 4665 | |
| 4666 | func (c *authClient) RoleAdd(ctx context.Context, in *AuthRoleAddRequest, opts ...grpc.CallOption) (*AuthRoleAddResponse, error) { |
| 4667 | out := new(AuthRoleAddResponse) |
| 4668 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/RoleAdd", in, out, c.cc, opts...) |
| 4669 | if err != nil { |
| 4670 | return nil, err |
| 4671 | } |
| 4672 | return out, nil |
| 4673 | } |
| 4674 | |
| 4675 | func (c *authClient) RoleGet(ctx context.Context, in *AuthRoleGetRequest, opts ...grpc.CallOption) (*AuthRoleGetResponse, error) { |
| 4676 | out := new(AuthRoleGetResponse) |
| 4677 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/RoleGet", in, out, c.cc, opts...) |
| 4678 | if err != nil { |
| 4679 | return nil, err |
| 4680 | } |
| 4681 | return out, nil |
| 4682 | } |
| 4683 | |
| 4684 | func (c *authClient) RoleList(ctx context.Context, in *AuthRoleListRequest, opts ...grpc.CallOption) (*AuthRoleListResponse, error) { |
| 4685 | out := new(AuthRoleListResponse) |
| 4686 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/RoleList", in, out, c.cc, opts...) |
| 4687 | if err != nil { |
| 4688 | return nil, err |
| 4689 | } |
| 4690 | return out, nil |
| 4691 | } |
| 4692 | |
| 4693 | func (c *authClient) RoleDelete(ctx context.Context, in *AuthRoleDeleteRequest, opts ...grpc.CallOption) (*AuthRoleDeleteResponse, error) { |
| 4694 | out := new(AuthRoleDeleteResponse) |
| 4695 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/RoleDelete", in, out, c.cc, opts...) |
| 4696 | if err != nil { |
| 4697 | return nil, err |
| 4698 | } |
| 4699 | return out, nil |
| 4700 | } |
| 4701 | |
| 4702 | func (c *authClient) RoleGrantPermission(ctx context.Context, in *AuthRoleGrantPermissionRequest, opts ...grpc.CallOption) (*AuthRoleGrantPermissionResponse, error) { |
| 4703 | out := new(AuthRoleGrantPermissionResponse) |
| 4704 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/RoleGrantPermission", in, out, c.cc, opts...) |
| 4705 | if err != nil { |
| 4706 | return nil, err |
| 4707 | } |
| 4708 | return out, nil |
| 4709 | } |
| 4710 | |
| 4711 | func (c *authClient) RoleRevokePermission(ctx context.Context, in *AuthRoleRevokePermissionRequest, opts ...grpc.CallOption) (*AuthRoleRevokePermissionResponse, error) { |
| 4712 | out := new(AuthRoleRevokePermissionResponse) |
| 4713 | err := grpc.Invoke(ctx, "/etcdserverpb.Auth/RoleRevokePermission", in, out, c.cc, opts...) |
| 4714 | if err != nil { |
| 4715 | return nil, err |
| 4716 | } |
| 4717 | return out, nil |
| 4718 | } |
| 4719 | |
| 4720 | // Server API for Auth service |
| 4721 | |
| 4722 | type AuthServer interface { |
| 4723 | // AuthEnable enables authentication. |
| 4724 | AuthEnable(context.Context, *AuthEnableRequest) (*AuthEnableResponse, error) |
| 4725 | // AuthDisable disables authentication. |
| 4726 | AuthDisable(context.Context, *AuthDisableRequest) (*AuthDisableResponse, error) |
| 4727 | // Authenticate processes an authenticate request. |
| 4728 | Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 4729 | // UserAdd adds a new user. User name cannot be empty. |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 4730 | UserAdd(context.Context, *AuthUserAddRequest) (*AuthUserAddResponse, error) |
| 4731 | // UserGet gets detailed user information. |
| 4732 | UserGet(context.Context, *AuthUserGetRequest) (*AuthUserGetResponse, error) |
| 4733 | // UserList gets a list of all users. |
| 4734 | UserList(context.Context, *AuthUserListRequest) (*AuthUserListResponse, error) |
| 4735 | // UserDelete deletes a specified user. |
| 4736 | UserDelete(context.Context, *AuthUserDeleteRequest) (*AuthUserDeleteResponse, error) |
| 4737 | // UserChangePassword changes the password of a specified user. |
| 4738 | UserChangePassword(context.Context, *AuthUserChangePasswordRequest) (*AuthUserChangePasswordResponse, error) |
| 4739 | // UserGrant grants a role to a specified user. |
| 4740 | UserGrantRole(context.Context, *AuthUserGrantRoleRequest) (*AuthUserGrantRoleResponse, error) |
| 4741 | // UserRevokeRole revokes a role of specified user. |
| 4742 | UserRevokeRole(context.Context, *AuthUserRevokeRoleRequest) (*AuthUserRevokeRoleResponse, error) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 4743 | // RoleAdd adds a new role. Role name cannot be empty. |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 4744 | RoleAdd(context.Context, *AuthRoleAddRequest) (*AuthRoleAddResponse, error) |
| 4745 | // RoleGet gets detailed role information. |
| 4746 | RoleGet(context.Context, *AuthRoleGetRequest) (*AuthRoleGetResponse, error) |
| 4747 | // RoleList gets lists of all roles. |
| 4748 | RoleList(context.Context, *AuthRoleListRequest) (*AuthRoleListResponse, error) |
| 4749 | // RoleDelete deletes a specified role. |
| 4750 | RoleDelete(context.Context, *AuthRoleDeleteRequest) (*AuthRoleDeleteResponse, error) |
| 4751 | // RoleGrantPermission grants a permission of a specified key or range to a specified role. |
| 4752 | RoleGrantPermission(context.Context, *AuthRoleGrantPermissionRequest) (*AuthRoleGrantPermissionResponse, error) |
| 4753 | // RoleRevokePermission revokes a key or range permission of a specified role. |
| 4754 | RoleRevokePermission(context.Context, *AuthRoleRevokePermissionRequest) (*AuthRoleRevokePermissionResponse, error) |
| 4755 | } |
| 4756 | |
| 4757 | func RegisterAuthServer(s *grpc.Server, srv AuthServer) { |
| 4758 | s.RegisterService(&_Auth_serviceDesc, srv) |
| 4759 | } |
| 4760 | |
| 4761 | func _Auth_AuthEnable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4762 | in := new(AuthEnableRequest) |
| 4763 | if err := dec(in); err != nil { |
| 4764 | return nil, err |
| 4765 | } |
| 4766 | if interceptor == nil { |
| 4767 | return srv.(AuthServer).AuthEnable(ctx, in) |
| 4768 | } |
| 4769 | info := &grpc.UnaryServerInfo{ |
| 4770 | Server: srv, |
| 4771 | FullMethod: "/etcdserverpb.Auth/AuthEnable", |
| 4772 | } |
| 4773 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4774 | return srv.(AuthServer).AuthEnable(ctx, req.(*AuthEnableRequest)) |
| 4775 | } |
| 4776 | return interceptor(ctx, in, info, handler) |
| 4777 | } |
| 4778 | |
| 4779 | func _Auth_AuthDisable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4780 | in := new(AuthDisableRequest) |
| 4781 | if err := dec(in); err != nil { |
| 4782 | return nil, err |
| 4783 | } |
| 4784 | if interceptor == nil { |
| 4785 | return srv.(AuthServer).AuthDisable(ctx, in) |
| 4786 | } |
| 4787 | info := &grpc.UnaryServerInfo{ |
| 4788 | Server: srv, |
| 4789 | FullMethod: "/etcdserverpb.Auth/AuthDisable", |
| 4790 | } |
| 4791 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4792 | return srv.(AuthServer).AuthDisable(ctx, req.(*AuthDisableRequest)) |
| 4793 | } |
| 4794 | return interceptor(ctx, in, info, handler) |
| 4795 | } |
| 4796 | |
| 4797 | func _Auth_Authenticate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4798 | in := new(AuthenticateRequest) |
| 4799 | if err := dec(in); err != nil { |
| 4800 | return nil, err |
| 4801 | } |
| 4802 | if interceptor == nil { |
| 4803 | return srv.(AuthServer).Authenticate(ctx, in) |
| 4804 | } |
| 4805 | info := &grpc.UnaryServerInfo{ |
| 4806 | Server: srv, |
| 4807 | FullMethod: "/etcdserverpb.Auth/Authenticate", |
| 4808 | } |
| 4809 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4810 | return srv.(AuthServer).Authenticate(ctx, req.(*AuthenticateRequest)) |
| 4811 | } |
| 4812 | return interceptor(ctx, in, info, handler) |
| 4813 | } |
| 4814 | |
| 4815 | func _Auth_UserAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4816 | in := new(AuthUserAddRequest) |
| 4817 | if err := dec(in); err != nil { |
| 4818 | return nil, err |
| 4819 | } |
| 4820 | if interceptor == nil { |
| 4821 | return srv.(AuthServer).UserAdd(ctx, in) |
| 4822 | } |
| 4823 | info := &grpc.UnaryServerInfo{ |
| 4824 | Server: srv, |
| 4825 | FullMethod: "/etcdserverpb.Auth/UserAdd", |
| 4826 | } |
| 4827 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4828 | return srv.(AuthServer).UserAdd(ctx, req.(*AuthUserAddRequest)) |
| 4829 | } |
| 4830 | return interceptor(ctx, in, info, handler) |
| 4831 | } |
| 4832 | |
| 4833 | func _Auth_UserGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4834 | in := new(AuthUserGetRequest) |
| 4835 | if err := dec(in); err != nil { |
| 4836 | return nil, err |
| 4837 | } |
| 4838 | if interceptor == nil { |
| 4839 | return srv.(AuthServer).UserGet(ctx, in) |
| 4840 | } |
| 4841 | info := &grpc.UnaryServerInfo{ |
| 4842 | Server: srv, |
| 4843 | FullMethod: "/etcdserverpb.Auth/UserGet", |
| 4844 | } |
| 4845 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4846 | return srv.(AuthServer).UserGet(ctx, req.(*AuthUserGetRequest)) |
| 4847 | } |
| 4848 | return interceptor(ctx, in, info, handler) |
| 4849 | } |
| 4850 | |
| 4851 | func _Auth_UserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4852 | in := new(AuthUserListRequest) |
| 4853 | if err := dec(in); err != nil { |
| 4854 | return nil, err |
| 4855 | } |
| 4856 | if interceptor == nil { |
| 4857 | return srv.(AuthServer).UserList(ctx, in) |
| 4858 | } |
| 4859 | info := &grpc.UnaryServerInfo{ |
| 4860 | Server: srv, |
| 4861 | FullMethod: "/etcdserverpb.Auth/UserList", |
| 4862 | } |
| 4863 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4864 | return srv.(AuthServer).UserList(ctx, req.(*AuthUserListRequest)) |
| 4865 | } |
| 4866 | return interceptor(ctx, in, info, handler) |
| 4867 | } |
| 4868 | |
| 4869 | func _Auth_UserDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4870 | in := new(AuthUserDeleteRequest) |
| 4871 | if err := dec(in); err != nil { |
| 4872 | return nil, err |
| 4873 | } |
| 4874 | if interceptor == nil { |
| 4875 | return srv.(AuthServer).UserDelete(ctx, in) |
| 4876 | } |
| 4877 | info := &grpc.UnaryServerInfo{ |
| 4878 | Server: srv, |
| 4879 | FullMethod: "/etcdserverpb.Auth/UserDelete", |
| 4880 | } |
| 4881 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4882 | return srv.(AuthServer).UserDelete(ctx, req.(*AuthUserDeleteRequest)) |
| 4883 | } |
| 4884 | return interceptor(ctx, in, info, handler) |
| 4885 | } |
| 4886 | |
| 4887 | func _Auth_UserChangePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4888 | in := new(AuthUserChangePasswordRequest) |
| 4889 | if err := dec(in); err != nil { |
| 4890 | return nil, err |
| 4891 | } |
| 4892 | if interceptor == nil { |
| 4893 | return srv.(AuthServer).UserChangePassword(ctx, in) |
| 4894 | } |
| 4895 | info := &grpc.UnaryServerInfo{ |
| 4896 | Server: srv, |
| 4897 | FullMethod: "/etcdserverpb.Auth/UserChangePassword", |
| 4898 | } |
| 4899 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4900 | return srv.(AuthServer).UserChangePassword(ctx, req.(*AuthUserChangePasswordRequest)) |
| 4901 | } |
| 4902 | return interceptor(ctx, in, info, handler) |
| 4903 | } |
| 4904 | |
| 4905 | func _Auth_UserGrantRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4906 | in := new(AuthUserGrantRoleRequest) |
| 4907 | if err := dec(in); err != nil { |
| 4908 | return nil, err |
| 4909 | } |
| 4910 | if interceptor == nil { |
| 4911 | return srv.(AuthServer).UserGrantRole(ctx, in) |
| 4912 | } |
| 4913 | info := &grpc.UnaryServerInfo{ |
| 4914 | Server: srv, |
| 4915 | FullMethod: "/etcdserverpb.Auth/UserGrantRole", |
| 4916 | } |
| 4917 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4918 | return srv.(AuthServer).UserGrantRole(ctx, req.(*AuthUserGrantRoleRequest)) |
| 4919 | } |
| 4920 | return interceptor(ctx, in, info, handler) |
| 4921 | } |
| 4922 | |
| 4923 | func _Auth_UserRevokeRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4924 | in := new(AuthUserRevokeRoleRequest) |
| 4925 | if err := dec(in); err != nil { |
| 4926 | return nil, err |
| 4927 | } |
| 4928 | if interceptor == nil { |
| 4929 | return srv.(AuthServer).UserRevokeRole(ctx, in) |
| 4930 | } |
| 4931 | info := &grpc.UnaryServerInfo{ |
| 4932 | Server: srv, |
| 4933 | FullMethod: "/etcdserverpb.Auth/UserRevokeRole", |
| 4934 | } |
| 4935 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4936 | return srv.(AuthServer).UserRevokeRole(ctx, req.(*AuthUserRevokeRoleRequest)) |
| 4937 | } |
| 4938 | return interceptor(ctx, in, info, handler) |
| 4939 | } |
| 4940 | |
| 4941 | func _Auth_RoleAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4942 | in := new(AuthRoleAddRequest) |
| 4943 | if err := dec(in); err != nil { |
| 4944 | return nil, err |
| 4945 | } |
| 4946 | if interceptor == nil { |
| 4947 | return srv.(AuthServer).RoleAdd(ctx, in) |
| 4948 | } |
| 4949 | info := &grpc.UnaryServerInfo{ |
| 4950 | Server: srv, |
| 4951 | FullMethod: "/etcdserverpb.Auth/RoleAdd", |
| 4952 | } |
| 4953 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4954 | return srv.(AuthServer).RoleAdd(ctx, req.(*AuthRoleAddRequest)) |
| 4955 | } |
| 4956 | return interceptor(ctx, in, info, handler) |
| 4957 | } |
| 4958 | |
| 4959 | func _Auth_RoleGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4960 | in := new(AuthRoleGetRequest) |
| 4961 | if err := dec(in); err != nil { |
| 4962 | return nil, err |
| 4963 | } |
| 4964 | if interceptor == nil { |
| 4965 | return srv.(AuthServer).RoleGet(ctx, in) |
| 4966 | } |
| 4967 | info := &grpc.UnaryServerInfo{ |
| 4968 | Server: srv, |
| 4969 | FullMethod: "/etcdserverpb.Auth/RoleGet", |
| 4970 | } |
| 4971 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4972 | return srv.(AuthServer).RoleGet(ctx, req.(*AuthRoleGetRequest)) |
| 4973 | } |
| 4974 | return interceptor(ctx, in, info, handler) |
| 4975 | } |
| 4976 | |
| 4977 | func _Auth_RoleList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4978 | in := new(AuthRoleListRequest) |
| 4979 | if err := dec(in); err != nil { |
| 4980 | return nil, err |
| 4981 | } |
| 4982 | if interceptor == nil { |
| 4983 | return srv.(AuthServer).RoleList(ctx, in) |
| 4984 | } |
| 4985 | info := &grpc.UnaryServerInfo{ |
| 4986 | Server: srv, |
| 4987 | FullMethod: "/etcdserverpb.Auth/RoleList", |
| 4988 | } |
| 4989 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 4990 | return srv.(AuthServer).RoleList(ctx, req.(*AuthRoleListRequest)) |
| 4991 | } |
| 4992 | return interceptor(ctx, in, info, handler) |
| 4993 | } |
| 4994 | |
| 4995 | func _Auth_RoleDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 4996 | in := new(AuthRoleDeleteRequest) |
| 4997 | if err := dec(in); err != nil { |
| 4998 | return nil, err |
| 4999 | } |
| 5000 | if interceptor == nil { |
| 5001 | return srv.(AuthServer).RoleDelete(ctx, in) |
| 5002 | } |
| 5003 | info := &grpc.UnaryServerInfo{ |
| 5004 | Server: srv, |
| 5005 | FullMethod: "/etcdserverpb.Auth/RoleDelete", |
| 5006 | } |
| 5007 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 5008 | return srv.(AuthServer).RoleDelete(ctx, req.(*AuthRoleDeleteRequest)) |
| 5009 | } |
| 5010 | return interceptor(ctx, in, info, handler) |
| 5011 | } |
| 5012 | |
| 5013 | func _Auth_RoleGrantPermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 5014 | in := new(AuthRoleGrantPermissionRequest) |
| 5015 | if err := dec(in); err != nil { |
| 5016 | return nil, err |
| 5017 | } |
| 5018 | if interceptor == nil { |
| 5019 | return srv.(AuthServer).RoleGrantPermission(ctx, in) |
| 5020 | } |
| 5021 | info := &grpc.UnaryServerInfo{ |
| 5022 | Server: srv, |
| 5023 | FullMethod: "/etcdserverpb.Auth/RoleGrantPermission", |
| 5024 | } |
| 5025 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 5026 | return srv.(AuthServer).RoleGrantPermission(ctx, req.(*AuthRoleGrantPermissionRequest)) |
| 5027 | } |
| 5028 | return interceptor(ctx, in, info, handler) |
| 5029 | } |
| 5030 | |
| 5031 | func _Auth_RoleRevokePermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 5032 | in := new(AuthRoleRevokePermissionRequest) |
| 5033 | if err := dec(in); err != nil { |
| 5034 | return nil, err |
| 5035 | } |
| 5036 | if interceptor == nil { |
| 5037 | return srv.(AuthServer).RoleRevokePermission(ctx, in) |
| 5038 | } |
| 5039 | info := &grpc.UnaryServerInfo{ |
| 5040 | Server: srv, |
| 5041 | FullMethod: "/etcdserverpb.Auth/RoleRevokePermission", |
| 5042 | } |
| 5043 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 5044 | return srv.(AuthServer).RoleRevokePermission(ctx, req.(*AuthRoleRevokePermissionRequest)) |
| 5045 | } |
| 5046 | return interceptor(ctx, in, info, handler) |
| 5047 | } |
| 5048 | |
| 5049 | var _Auth_serviceDesc = grpc.ServiceDesc{ |
| 5050 | ServiceName: "etcdserverpb.Auth", |
| 5051 | HandlerType: (*AuthServer)(nil), |
| 5052 | Methods: []grpc.MethodDesc{ |
| 5053 | { |
| 5054 | MethodName: "AuthEnable", |
| 5055 | Handler: _Auth_AuthEnable_Handler, |
| 5056 | }, |
| 5057 | { |
| 5058 | MethodName: "AuthDisable", |
| 5059 | Handler: _Auth_AuthDisable_Handler, |
| 5060 | }, |
| 5061 | { |
| 5062 | MethodName: "Authenticate", |
| 5063 | Handler: _Auth_Authenticate_Handler, |
| 5064 | }, |
| 5065 | { |
| 5066 | MethodName: "UserAdd", |
| 5067 | Handler: _Auth_UserAdd_Handler, |
| 5068 | }, |
| 5069 | { |
| 5070 | MethodName: "UserGet", |
| 5071 | Handler: _Auth_UserGet_Handler, |
| 5072 | }, |
| 5073 | { |
| 5074 | MethodName: "UserList", |
| 5075 | Handler: _Auth_UserList_Handler, |
| 5076 | }, |
| 5077 | { |
| 5078 | MethodName: "UserDelete", |
| 5079 | Handler: _Auth_UserDelete_Handler, |
| 5080 | }, |
| 5081 | { |
| 5082 | MethodName: "UserChangePassword", |
| 5083 | Handler: _Auth_UserChangePassword_Handler, |
| 5084 | }, |
| 5085 | { |
| 5086 | MethodName: "UserGrantRole", |
| 5087 | Handler: _Auth_UserGrantRole_Handler, |
| 5088 | }, |
| 5089 | { |
| 5090 | MethodName: "UserRevokeRole", |
| 5091 | Handler: _Auth_UserRevokeRole_Handler, |
| 5092 | }, |
| 5093 | { |
| 5094 | MethodName: "RoleAdd", |
| 5095 | Handler: _Auth_RoleAdd_Handler, |
| 5096 | }, |
| 5097 | { |
| 5098 | MethodName: "RoleGet", |
| 5099 | Handler: _Auth_RoleGet_Handler, |
| 5100 | }, |
| 5101 | { |
| 5102 | MethodName: "RoleList", |
| 5103 | Handler: _Auth_RoleList_Handler, |
| 5104 | }, |
| 5105 | { |
| 5106 | MethodName: "RoleDelete", |
| 5107 | Handler: _Auth_RoleDelete_Handler, |
| 5108 | }, |
| 5109 | { |
| 5110 | MethodName: "RoleGrantPermission", |
| 5111 | Handler: _Auth_RoleGrantPermission_Handler, |
| 5112 | }, |
| 5113 | { |
| 5114 | MethodName: "RoleRevokePermission", |
| 5115 | Handler: _Auth_RoleRevokePermission_Handler, |
| 5116 | }, |
| 5117 | }, |
| 5118 | Streams: []grpc.StreamDesc{}, |
| 5119 | Metadata: "rpc.proto", |
| 5120 | } |
| 5121 | |
| 5122 | func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { |
| 5123 | size := m.Size() |
| 5124 | dAtA = make([]byte, size) |
| 5125 | n, err := m.MarshalTo(dAtA) |
| 5126 | if err != nil { |
| 5127 | return nil, err |
| 5128 | } |
| 5129 | return dAtA[:n], nil |
| 5130 | } |
| 5131 | |
| 5132 | func (m *ResponseHeader) MarshalTo(dAtA []byte) (int, error) { |
| 5133 | var i int |
| 5134 | _ = i |
| 5135 | var l int |
| 5136 | _ = l |
| 5137 | if m.ClusterId != 0 { |
| 5138 | dAtA[i] = 0x8 |
| 5139 | i++ |
| 5140 | i = encodeVarintRpc(dAtA, i, uint64(m.ClusterId)) |
| 5141 | } |
| 5142 | if m.MemberId != 0 { |
| 5143 | dAtA[i] = 0x10 |
| 5144 | i++ |
| 5145 | i = encodeVarintRpc(dAtA, i, uint64(m.MemberId)) |
| 5146 | } |
| 5147 | if m.Revision != 0 { |
| 5148 | dAtA[i] = 0x18 |
| 5149 | i++ |
| 5150 | i = encodeVarintRpc(dAtA, i, uint64(m.Revision)) |
| 5151 | } |
| 5152 | if m.RaftTerm != 0 { |
| 5153 | dAtA[i] = 0x20 |
| 5154 | i++ |
| 5155 | i = encodeVarintRpc(dAtA, i, uint64(m.RaftTerm)) |
| 5156 | } |
| 5157 | return i, nil |
| 5158 | } |
| 5159 | |
| 5160 | func (m *RangeRequest) Marshal() (dAtA []byte, err error) { |
| 5161 | size := m.Size() |
| 5162 | dAtA = make([]byte, size) |
| 5163 | n, err := m.MarshalTo(dAtA) |
| 5164 | if err != nil { |
| 5165 | return nil, err |
| 5166 | } |
| 5167 | return dAtA[:n], nil |
| 5168 | } |
| 5169 | |
| 5170 | func (m *RangeRequest) MarshalTo(dAtA []byte) (int, error) { |
| 5171 | var i int |
| 5172 | _ = i |
| 5173 | var l int |
| 5174 | _ = l |
| 5175 | if len(m.Key) > 0 { |
| 5176 | dAtA[i] = 0xa |
| 5177 | i++ |
| 5178 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Key))) |
| 5179 | i += copy(dAtA[i:], m.Key) |
| 5180 | } |
| 5181 | if len(m.RangeEnd) > 0 { |
| 5182 | dAtA[i] = 0x12 |
| 5183 | i++ |
| 5184 | i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd))) |
| 5185 | i += copy(dAtA[i:], m.RangeEnd) |
| 5186 | } |
| 5187 | if m.Limit != 0 { |
| 5188 | dAtA[i] = 0x18 |
| 5189 | i++ |
| 5190 | i = encodeVarintRpc(dAtA, i, uint64(m.Limit)) |
| 5191 | } |
| 5192 | if m.Revision != 0 { |
| 5193 | dAtA[i] = 0x20 |
| 5194 | i++ |
| 5195 | i = encodeVarintRpc(dAtA, i, uint64(m.Revision)) |
| 5196 | } |
| 5197 | if m.SortOrder != 0 { |
| 5198 | dAtA[i] = 0x28 |
| 5199 | i++ |
| 5200 | i = encodeVarintRpc(dAtA, i, uint64(m.SortOrder)) |
| 5201 | } |
| 5202 | if m.SortTarget != 0 { |
| 5203 | dAtA[i] = 0x30 |
| 5204 | i++ |
| 5205 | i = encodeVarintRpc(dAtA, i, uint64(m.SortTarget)) |
| 5206 | } |
| 5207 | if m.Serializable { |
| 5208 | dAtA[i] = 0x38 |
| 5209 | i++ |
| 5210 | if m.Serializable { |
| 5211 | dAtA[i] = 1 |
| 5212 | } else { |
| 5213 | dAtA[i] = 0 |
| 5214 | } |
| 5215 | i++ |
| 5216 | } |
| 5217 | if m.KeysOnly { |
| 5218 | dAtA[i] = 0x40 |
| 5219 | i++ |
| 5220 | if m.KeysOnly { |
| 5221 | dAtA[i] = 1 |
| 5222 | } else { |
| 5223 | dAtA[i] = 0 |
| 5224 | } |
| 5225 | i++ |
| 5226 | } |
| 5227 | if m.CountOnly { |
| 5228 | dAtA[i] = 0x48 |
| 5229 | i++ |
| 5230 | if m.CountOnly { |
| 5231 | dAtA[i] = 1 |
| 5232 | } else { |
| 5233 | dAtA[i] = 0 |
| 5234 | } |
| 5235 | i++ |
| 5236 | } |
| 5237 | if m.MinModRevision != 0 { |
| 5238 | dAtA[i] = 0x50 |
| 5239 | i++ |
| 5240 | i = encodeVarintRpc(dAtA, i, uint64(m.MinModRevision)) |
| 5241 | } |
| 5242 | if m.MaxModRevision != 0 { |
| 5243 | dAtA[i] = 0x58 |
| 5244 | i++ |
| 5245 | i = encodeVarintRpc(dAtA, i, uint64(m.MaxModRevision)) |
| 5246 | } |
| 5247 | if m.MinCreateRevision != 0 { |
| 5248 | dAtA[i] = 0x60 |
| 5249 | i++ |
| 5250 | i = encodeVarintRpc(dAtA, i, uint64(m.MinCreateRevision)) |
| 5251 | } |
| 5252 | if m.MaxCreateRevision != 0 { |
| 5253 | dAtA[i] = 0x68 |
| 5254 | i++ |
| 5255 | i = encodeVarintRpc(dAtA, i, uint64(m.MaxCreateRevision)) |
| 5256 | } |
| 5257 | return i, nil |
| 5258 | } |
| 5259 | |
| 5260 | func (m *RangeResponse) Marshal() (dAtA []byte, err error) { |
| 5261 | size := m.Size() |
| 5262 | dAtA = make([]byte, size) |
| 5263 | n, err := m.MarshalTo(dAtA) |
| 5264 | if err != nil { |
| 5265 | return nil, err |
| 5266 | } |
| 5267 | return dAtA[:n], nil |
| 5268 | } |
| 5269 | |
| 5270 | func (m *RangeResponse) MarshalTo(dAtA []byte) (int, error) { |
| 5271 | var i int |
| 5272 | _ = i |
| 5273 | var l int |
| 5274 | _ = l |
| 5275 | if m.Header != nil { |
| 5276 | dAtA[i] = 0xa |
| 5277 | i++ |
| 5278 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 5279 | n1, err := m.Header.MarshalTo(dAtA[i:]) |
| 5280 | if err != nil { |
| 5281 | return 0, err |
| 5282 | } |
| 5283 | i += n1 |
| 5284 | } |
| 5285 | if len(m.Kvs) > 0 { |
| 5286 | for _, msg := range m.Kvs { |
| 5287 | dAtA[i] = 0x12 |
| 5288 | i++ |
| 5289 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 5290 | n, err := msg.MarshalTo(dAtA[i:]) |
| 5291 | if err != nil { |
| 5292 | return 0, err |
| 5293 | } |
| 5294 | i += n |
| 5295 | } |
| 5296 | } |
| 5297 | if m.More { |
| 5298 | dAtA[i] = 0x18 |
| 5299 | i++ |
| 5300 | if m.More { |
| 5301 | dAtA[i] = 1 |
| 5302 | } else { |
| 5303 | dAtA[i] = 0 |
| 5304 | } |
| 5305 | i++ |
| 5306 | } |
| 5307 | if m.Count != 0 { |
| 5308 | dAtA[i] = 0x20 |
| 5309 | i++ |
| 5310 | i = encodeVarintRpc(dAtA, i, uint64(m.Count)) |
| 5311 | } |
| 5312 | return i, nil |
| 5313 | } |
| 5314 | |
| 5315 | func (m *PutRequest) Marshal() (dAtA []byte, err error) { |
| 5316 | size := m.Size() |
| 5317 | dAtA = make([]byte, size) |
| 5318 | n, err := m.MarshalTo(dAtA) |
| 5319 | if err != nil { |
| 5320 | return nil, err |
| 5321 | } |
| 5322 | return dAtA[:n], nil |
| 5323 | } |
| 5324 | |
| 5325 | func (m *PutRequest) MarshalTo(dAtA []byte) (int, error) { |
| 5326 | var i int |
| 5327 | _ = i |
| 5328 | var l int |
| 5329 | _ = l |
| 5330 | if len(m.Key) > 0 { |
| 5331 | dAtA[i] = 0xa |
| 5332 | i++ |
| 5333 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Key))) |
| 5334 | i += copy(dAtA[i:], m.Key) |
| 5335 | } |
| 5336 | if len(m.Value) > 0 { |
| 5337 | dAtA[i] = 0x12 |
| 5338 | i++ |
| 5339 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Value))) |
| 5340 | i += copy(dAtA[i:], m.Value) |
| 5341 | } |
| 5342 | if m.Lease != 0 { |
| 5343 | dAtA[i] = 0x18 |
| 5344 | i++ |
| 5345 | i = encodeVarintRpc(dAtA, i, uint64(m.Lease)) |
| 5346 | } |
| 5347 | if m.PrevKv { |
| 5348 | dAtA[i] = 0x20 |
| 5349 | i++ |
| 5350 | if m.PrevKv { |
| 5351 | dAtA[i] = 1 |
| 5352 | } else { |
| 5353 | dAtA[i] = 0 |
| 5354 | } |
| 5355 | i++ |
| 5356 | } |
| 5357 | if m.IgnoreValue { |
| 5358 | dAtA[i] = 0x28 |
| 5359 | i++ |
| 5360 | if m.IgnoreValue { |
| 5361 | dAtA[i] = 1 |
| 5362 | } else { |
| 5363 | dAtA[i] = 0 |
| 5364 | } |
| 5365 | i++ |
| 5366 | } |
| 5367 | if m.IgnoreLease { |
| 5368 | dAtA[i] = 0x30 |
| 5369 | i++ |
| 5370 | if m.IgnoreLease { |
| 5371 | dAtA[i] = 1 |
| 5372 | } else { |
| 5373 | dAtA[i] = 0 |
| 5374 | } |
| 5375 | i++ |
| 5376 | } |
| 5377 | return i, nil |
| 5378 | } |
| 5379 | |
| 5380 | func (m *PutResponse) Marshal() (dAtA []byte, err error) { |
| 5381 | size := m.Size() |
| 5382 | dAtA = make([]byte, size) |
| 5383 | n, err := m.MarshalTo(dAtA) |
| 5384 | if err != nil { |
| 5385 | return nil, err |
| 5386 | } |
| 5387 | return dAtA[:n], nil |
| 5388 | } |
| 5389 | |
| 5390 | func (m *PutResponse) MarshalTo(dAtA []byte) (int, error) { |
| 5391 | var i int |
| 5392 | _ = i |
| 5393 | var l int |
| 5394 | _ = l |
| 5395 | if m.Header != nil { |
| 5396 | dAtA[i] = 0xa |
| 5397 | i++ |
| 5398 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 5399 | n2, err := m.Header.MarshalTo(dAtA[i:]) |
| 5400 | if err != nil { |
| 5401 | return 0, err |
| 5402 | } |
| 5403 | i += n2 |
| 5404 | } |
| 5405 | if m.PrevKv != nil { |
| 5406 | dAtA[i] = 0x12 |
| 5407 | i++ |
| 5408 | i = encodeVarintRpc(dAtA, i, uint64(m.PrevKv.Size())) |
| 5409 | n3, err := m.PrevKv.MarshalTo(dAtA[i:]) |
| 5410 | if err != nil { |
| 5411 | return 0, err |
| 5412 | } |
| 5413 | i += n3 |
| 5414 | } |
| 5415 | return i, nil |
| 5416 | } |
| 5417 | |
| 5418 | func (m *DeleteRangeRequest) Marshal() (dAtA []byte, err error) { |
| 5419 | size := m.Size() |
| 5420 | dAtA = make([]byte, size) |
| 5421 | n, err := m.MarshalTo(dAtA) |
| 5422 | if err != nil { |
| 5423 | return nil, err |
| 5424 | } |
| 5425 | return dAtA[:n], nil |
| 5426 | } |
| 5427 | |
| 5428 | func (m *DeleteRangeRequest) MarshalTo(dAtA []byte) (int, error) { |
| 5429 | var i int |
| 5430 | _ = i |
| 5431 | var l int |
| 5432 | _ = l |
| 5433 | if len(m.Key) > 0 { |
| 5434 | dAtA[i] = 0xa |
| 5435 | i++ |
| 5436 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Key))) |
| 5437 | i += copy(dAtA[i:], m.Key) |
| 5438 | } |
| 5439 | if len(m.RangeEnd) > 0 { |
| 5440 | dAtA[i] = 0x12 |
| 5441 | i++ |
| 5442 | i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd))) |
| 5443 | i += copy(dAtA[i:], m.RangeEnd) |
| 5444 | } |
| 5445 | if m.PrevKv { |
| 5446 | dAtA[i] = 0x18 |
| 5447 | i++ |
| 5448 | if m.PrevKv { |
| 5449 | dAtA[i] = 1 |
| 5450 | } else { |
| 5451 | dAtA[i] = 0 |
| 5452 | } |
| 5453 | i++ |
| 5454 | } |
| 5455 | return i, nil |
| 5456 | } |
| 5457 | |
| 5458 | func (m *DeleteRangeResponse) Marshal() (dAtA []byte, err error) { |
| 5459 | size := m.Size() |
| 5460 | dAtA = make([]byte, size) |
| 5461 | n, err := m.MarshalTo(dAtA) |
| 5462 | if err != nil { |
| 5463 | return nil, err |
| 5464 | } |
| 5465 | return dAtA[:n], nil |
| 5466 | } |
| 5467 | |
| 5468 | func (m *DeleteRangeResponse) MarshalTo(dAtA []byte) (int, error) { |
| 5469 | var i int |
| 5470 | _ = i |
| 5471 | var l int |
| 5472 | _ = l |
| 5473 | if m.Header != nil { |
| 5474 | dAtA[i] = 0xa |
| 5475 | i++ |
| 5476 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 5477 | n4, err := m.Header.MarshalTo(dAtA[i:]) |
| 5478 | if err != nil { |
| 5479 | return 0, err |
| 5480 | } |
| 5481 | i += n4 |
| 5482 | } |
| 5483 | if m.Deleted != 0 { |
| 5484 | dAtA[i] = 0x10 |
| 5485 | i++ |
| 5486 | i = encodeVarintRpc(dAtA, i, uint64(m.Deleted)) |
| 5487 | } |
| 5488 | if len(m.PrevKvs) > 0 { |
| 5489 | for _, msg := range m.PrevKvs { |
| 5490 | dAtA[i] = 0x1a |
| 5491 | i++ |
| 5492 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 5493 | n, err := msg.MarshalTo(dAtA[i:]) |
| 5494 | if err != nil { |
| 5495 | return 0, err |
| 5496 | } |
| 5497 | i += n |
| 5498 | } |
| 5499 | } |
| 5500 | return i, nil |
| 5501 | } |
| 5502 | |
| 5503 | func (m *RequestOp) Marshal() (dAtA []byte, err error) { |
| 5504 | size := m.Size() |
| 5505 | dAtA = make([]byte, size) |
| 5506 | n, err := m.MarshalTo(dAtA) |
| 5507 | if err != nil { |
| 5508 | return nil, err |
| 5509 | } |
| 5510 | return dAtA[:n], nil |
| 5511 | } |
| 5512 | |
| 5513 | func (m *RequestOp) MarshalTo(dAtA []byte) (int, error) { |
| 5514 | var i int |
| 5515 | _ = i |
| 5516 | var l int |
| 5517 | _ = l |
| 5518 | if m.Request != nil { |
| 5519 | nn5, err := m.Request.MarshalTo(dAtA[i:]) |
| 5520 | if err != nil { |
| 5521 | return 0, err |
| 5522 | } |
| 5523 | i += nn5 |
| 5524 | } |
| 5525 | return i, nil |
| 5526 | } |
| 5527 | |
| 5528 | func (m *RequestOp_RequestRange) MarshalTo(dAtA []byte) (int, error) { |
| 5529 | i := 0 |
| 5530 | if m.RequestRange != nil { |
| 5531 | dAtA[i] = 0xa |
| 5532 | i++ |
| 5533 | i = encodeVarintRpc(dAtA, i, uint64(m.RequestRange.Size())) |
| 5534 | n6, err := m.RequestRange.MarshalTo(dAtA[i:]) |
| 5535 | if err != nil { |
| 5536 | return 0, err |
| 5537 | } |
| 5538 | i += n6 |
| 5539 | } |
| 5540 | return i, nil |
| 5541 | } |
| 5542 | func (m *RequestOp_RequestPut) MarshalTo(dAtA []byte) (int, error) { |
| 5543 | i := 0 |
| 5544 | if m.RequestPut != nil { |
| 5545 | dAtA[i] = 0x12 |
| 5546 | i++ |
| 5547 | i = encodeVarintRpc(dAtA, i, uint64(m.RequestPut.Size())) |
| 5548 | n7, err := m.RequestPut.MarshalTo(dAtA[i:]) |
| 5549 | if err != nil { |
| 5550 | return 0, err |
| 5551 | } |
| 5552 | i += n7 |
| 5553 | } |
| 5554 | return i, nil |
| 5555 | } |
| 5556 | func (m *RequestOp_RequestDeleteRange) MarshalTo(dAtA []byte) (int, error) { |
| 5557 | i := 0 |
| 5558 | if m.RequestDeleteRange != nil { |
| 5559 | dAtA[i] = 0x1a |
| 5560 | i++ |
| 5561 | i = encodeVarintRpc(dAtA, i, uint64(m.RequestDeleteRange.Size())) |
| 5562 | n8, err := m.RequestDeleteRange.MarshalTo(dAtA[i:]) |
| 5563 | if err != nil { |
| 5564 | return 0, err |
| 5565 | } |
| 5566 | i += n8 |
| 5567 | } |
| 5568 | return i, nil |
| 5569 | } |
| 5570 | func (m *RequestOp_RequestTxn) MarshalTo(dAtA []byte) (int, error) { |
| 5571 | i := 0 |
| 5572 | if m.RequestTxn != nil { |
| 5573 | dAtA[i] = 0x22 |
| 5574 | i++ |
| 5575 | i = encodeVarintRpc(dAtA, i, uint64(m.RequestTxn.Size())) |
| 5576 | n9, err := m.RequestTxn.MarshalTo(dAtA[i:]) |
| 5577 | if err != nil { |
| 5578 | return 0, err |
| 5579 | } |
| 5580 | i += n9 |
| 5581 | } |
| 5582 | return i, nil |
| 5583 | } |
| 5584 | func (m *ResponseOp) Marshal() (dAtA []byte, err error) { |
| 5585 | size := m.Size() |
| 5586 | dAtA = make([]byte, size) |
| 5587 | n, err := m.MarshalTo(dAtA) |
| 5588 | if err != nil { |
| 5589 | return nil, err |
| 5590 | } |
| 5591 | return dAtA[:n], nil |
| 5592 | } |
| 5593 | |
| 5594 | func (m *ResponseOp) MarshalTo(dAtA []byte) (int, error) { |
| 5595 | var i int |
| 5596 | _ = i |
| 5597 | var l int |
| 5598 | _ = l |
| 5599 | if m.Response != nil { |
| 5600 | nn10, err := m.Response.MarshalTo(dAtA[i:]) |
| 5601 | if err != nil { |
| 5602 | return 0, err |
| 5603 | } |
| 5604 | i += nn10 |
| 5605 | } |
| 5606 | return i, nil |
| 5607 | } |
| 5608 | |
| 5609 | func (m *ResponseOp_ResponseRange) MarshalTo(dAtA []byte) (int, error) { |
| 5610 | i := 0 |
| 5611 | if m.ResponseRange != nil { |
| 5612 | dAtA[i] = 0xa |
| 5613 | i++ |
| 5614 | i = encodeVarintRpc(dAtA, i, uint64(m.ResponseRange.Size())) |
| 5615 | n11, err := m.ResponseRange.MarshalTo(dAtA[i:]) |
| 5616 | if err != nil { |
| 5617 | return 0, err |
| 5618 | } |
| 5619 | i += n11 |
| 5620 | } |
| 5621 | return i, nil |
| 5622 | } |
| 5623 | func (m *ResponseOp_ResponsePut) MarshalTo(dAtA []byte) (int, error) { |
| 5624 | i := 0 |
| 5625 | if m.ResponsePut != nil { |
| 5626 | dAtA[i] = 0x12 |
| 5627 | i++ |
| 5628 | i = encodeVarintRpc(dAtA, i, uint64(m.ResponsePut.Size())) |
| 5629 | n12, err := m.ResponsePut.MarshalTo(dAtA[i:]) |
| 5630 | if err != nil { |
| 5631 | return 0, err |
| 5632 | } |
| 5633 | i += n12 |
| 5634 | } |
| 5635 | return i, nil |
| 5636 | } |
| 5637 | func (m *ResponseOp_ResponseDeleteRange) MarshalTo(dAtA []byte) (int, error) { |
| 5638 | i := 0 |
| 5639 | if m.ResponseDeleteRange != nil { |
| 5640 | dAtA[i] = 0x1a |
| 5641 | i++ |
| 5642 | i = encodeVarintRpc(dAtA, i, uint64(m.ResponseDeleteRange.Size())) |
| 5643 | n13, err := m.ResponseDeleteRange.MarshalTo(dAtA[i:]) |
| 5644 | if err != nil { |
| 5645 | return 0, err |
| 5646 | } |
| 5647 | i += n13 |
| 5648 | } |
| 5649 | return i, nil |
| 5650 | } |
| 5651 | func (m *ResponseOp_ResponseTxn) MarshalTo(dAtA []byte) (int, error) { |
| 5652 | i := 0 |
| 5653 | if m.ResponseTxn != nil { |
| 5654 | dAtA[i] = 0x22 |
| 5655 | i++ |
| 5656 | i = encodeVarintRpc(dAtA, i, uint64(m.ResponseTxn.Size())) |
| 5657 | n14, err := m.ResponseTxn.MarshalTo(dAtA[i:]) |
| 5658 | if err != nil { |
| 5659 | return 0, err |
| 5660 | } |
| 5661 | i += n14 |
| 5662 | } |
| 5663 | return i, nil |
| 5664 | } |
| 5665 | func (m *Compare) Marshal() (dAtA []byte, err error) { |
| 5666 | size := m.Size() |
| 5667 | dAtA = make([]byte, size) |
| 5668 | n, err := m.MarshalTo(dAtA) |
| 5669 | if err != nil { |
| 5670 | return nil, err |
| 5671 | } |
| 5672 | return dAtA[:n], nil |
| 5673 | } |
| 5674 | |
| 5675 | func (m *Compare) MarshalTo(dAtA []byte) (int, error) { |
| 5676 | var i int |
| 5677 | _ = i |
| 5678 | var l int |
| 5679 | _ = l |
| 5680 | if m.Result != 0 { |
| 5681 | dAtA[i] = 0x8 |
| 5682 | i++ |
| 5683 | i = encodeVarintRpc(dAtA, i, uint64(m.Result)) |
| 5684 | } |
| 5685 | if m.Target != 0 { |
| 5686 | dAtA[i] = 0x10 |
| 5687 | i++ |
| 5688 | i = encodeVarintRpc(dAtA, i, uint64(m.Target)) |
| 5689 | } |
| 5690 | if len(m.Key) > 0 { |
| 5691 | dAtA[i] = 0x1a |
| 5692 | i++ |
| 5693 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Key))) |
| 5694 | i += copy(dAtA[i:], m.Key) |
| 5695 | } |
| 5696 | if m.TargetUnion != nil { |
| 5697 | nn15, err := m.TargetUnion.MarshalTo(dAtA[i:]) |
| 5698 | if err != nil { |
| 5699 | return 0, err |
| 5700 | } |
| 5701 | i += nn15 |
| 5702 | } |
| 5703 | if len(m.RangeEnd) > 0 { |
| 5704 | dAtA[i] = 0x82 |
| 5705 | i++ |
| 5706 | dAtA[i] = 0x4 |
| 5707 | i++ |
| 5708 | i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd))) |
| 5709 | i += copy(dAtA[i:], m.RangeEnd) |
| 5710 | } |
| 5711 | return i, nil |
| 5712 | } |
| 5713 | |
| 5714 | func (m *Compare_Version) MarshalTo(dAtA []byte) (int, error) { |
| 5715 | i := 0 |
| 5716 | dAtA[i] = 0x20 |
| 5717 | i++ |
| 5718 | i = encodeVarintRpc(dAtA, i, uint64(m.Version)) |
| 5719 | return i, nil |
| 5720 | } |
| 5721 | func (m *Compare_CreateRevision) MarshalTo(dAtA []byte) (int, error) { |
| 5722 | i := 0 |
| 5723 | dAtA[i] = 0x28 |
| 5724 | i++ |
| 5725 | i = encodeVarintRpc(dAtA, i, uint64(m.CreateRevision)) |
| 5726 | return i, nil |
| 5727 | } |
| 5728 | func (m *Compare_ModRevision) MarshalTo(dAtA []byte) (int, error) { |
| 5729 | i := 0 |
| 5730 | dAtA[i] = 0x30 |
| 5731 | i++ |
| 5732 | i = encodeVarintRpc(dAtA, i, uint64(m.ModRevision)) |
| 5733 | return i, nil |
| 5734 | } |
| 5735 | func (m *Compare_Value) MarshalTo(dAtA []byte) (int, error) { |
| 5736 | i := 0 |
| 5737 | if m.Value != nil { |
| 5738 | dAtA[i] = 0x3a |
| 5739 | i++ |
| 5740 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Value))) |
| 5741 | i += copy(dAtA[i:], m.Value) |
| 5742 | } |
| 5743 | return i, nil |
| 5744 | } |
| 5745 | func (m *Compare_Lease) MarshalTo(dAtA []byte) (int, error) { |
| 5746 | i := 0 |
| 5747 | dAtA[i] = 0x40 |
| 5748 | i++ |
| 5749 | i = encodeVarintRpc(dAtA, i, uint64(m.Lease)) |
| 5750 | return i, nil |
| 5751 | } |
| 5752 | func (m *TxnRequest) Marshal() (dAtA []byte, err error) { |
| 5753 | size := m.Size() |
| 5754 | dAtA = make([]byte, size) |
| 5755 | n, err := m.MarshalTo(dAtA) |
| 5756 | if err != nil { |
| 5757 | return nil, err |
| 5758 | } |
| 5759 | return dAtA[:n], nil |
| 5760 | } |
| 5761 | |
| 5762 | func (m *TxnRequest) MarshalTo(dAtA []byte) (int, error) { |
| 5763 | var i int |
| 5764 | _ = i |
| 5765 | var l int |
| 5766 | _ = l |
| 5767 | if len(m.Compare) > 0 { |
| 5768 | for _, msg := range m.Compare { |
| 5769 | dAtA[i] = 0xa |
| 5770 | i++ |
| 5771 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 5772 | n, err := msg.MarshalTo(dAtA[i:]) |
| 5773 | if err != nil { |
| 5774 | return 0, err |
| 5775 | } |
| 5776 | i += n |
| 5777 | } |
| 5778 | } |
| 5779 | if len(m.Success) > 0 { |
| 5780 | for _, msg := range m.Success { |
| 5781 | dAtA[i] = 0x12 |
| 5782 | i++ |
| 5783 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 5784 | n, err := msg.MarshalTo(dAtA[i:]) |
| 5785 | if err != nil { |
| 5786 | return 0, err |
| 5787 | } |
| 5788 | i += n |
| 5789 | } |
| 5790 | } |
| 5791 | if len(m.Failure) > 0 { |
| 5792 | for _, msg := range m.Failure { |
| 5793 | dAtA[i] = 0x1a |
| 5794 | i++ |
| 5795 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 5796 | n, err := msg.MarshalTo(dAtA[i:]) |
| 5797 | if err != nil { |
| 5798 | return 0, err |
| 5799 | } |
| 5800 | i += n |
| 5801 | } |
| 5802 | } |
| 5803 | return i, nil |
| 5804 | } |
| 5805 | |
| 5806 | func (m *TxnResponse) Marshal() (dAtA []byte, err error) { |
| 5807 | size := m.Size() |
| 5808 | dAtA = make([]byte, size) |
| 5809 | n, err := m.MarshalTo(dAtA) |
| 5810 | if err != nil { |
| 5811 | return nil, err |
| 5812 | } |
| 5813 | return dAtA[:n], nil |
| 5814 | } |
| 5815 | |
| 5816 | func (m *TxnResponse) MarshalTo(dAtA []byte) (int, error) { |
| 5817 | var i int |
| 5818 | _ = i |
| 5819 | var l int |
| 5820 | _ = l |
| 5821 | if m.Header != nil { |
| 5822 | dAtA[i] = 0xa |
| 5823 | i++ |
| 5824 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 5825 | n16, err := m.Header.MarshalTo(dAtA[i:]) |
| 5826 | if err != nil { |
| 5827 | return 0, err |
| 5828 | } |
| 5829 | i += n16 |
| 5830 | } |
| 5831 | if m.Succeeded { |
| 5832 | dAtA[i] = 0x10 |
| 5833 | i++ |
| 5834 | if m.Succeeded { |
| 5835 | dAtA[i] = 1 |
| 5836 | } else { |
| 5837 | dAtA[i] = 0 |
| 5838 | } |
| 5839 | i++ |
| 5840 | } |
| 5841 | if len(m.Responses) > 0 { |
| 5842 | for _, msg := range m.Responses { |
| 5843 | dAtA[i] = 0x1a |
| 5844 | i++ |
| 5845 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 5846 | n, err := msg.MarshalTo(dAtA[i:]) |
| 5847 | if err != nil { |
| 5848 | return 0, err |
| 5849 | } |
| 5850 | i += n |
| 5851 | } |
| 5852 | } |
| 5853 | return i, nil |
| 5854 | } |
| 5855 | |
| 5856 | func (m *CompactionRequest) Marshal() (dAtA []byte, err error) { |
| 5857 | size := m.Size() |
| 5858 | dAtA = make([]byte, size) |
| 5859 | n, err := m.MarshalTo(dAtA) |
| 5860 | if err != nil { |
| 5861 | return nil, err |
| 5862 | } |
| 5863 | return dAtA[:n], nil |
| 5864 | } |
| 5865 | |
| 5866 | func (m *CompactionRequest) MarshalTo(dAtA []byte) (int, error) { |
| 5867 | var i int |
| 5868 | _ = i |
| 5869 | var l int |
| 5870 | _ = l |
| 5871 | if m.Revision != 0 { |
| 5872 | dAtA[i] = 0x8 |
| 5873 | i++ |
| 5874 | i = encodeVarintRpc(dAtA, i, uint64(m.Revision)) |
| 5875 | } |
| 5876 | if m.Physical { |
| 5877 | dAtA[i] = 0x10 |
| 5878 | i++ |
| 5879 | if m.Physical { |
| 5880 | dAtA[i] = 1 |
| 5881 | } else { |
| 5882 | dAtA[i] = 0 |
| 5883 | } |
| 5884 | i++ |
| 5885 | } |
| 5886 | return i, nil |
| 5887 | } |
| 5888 | |
| 5889 | func (m *CompactionResponse) Marshal() (dAtA []byte, err error) { |
| 5890 | size := m.Size() |
| 5891 | dAtA = make([]byte, size) |
| 5892 | n, err := m.MarshalTo(dAtA) |
| 5893 | if err != nil { |
| 5894 | return nil, err |
| 5895 | } |
| 5896 | return dAtA[:n], nil |
| 5897 | } |
| 5898 | |
| 5899 | func (m *CompactionResponse) MarshalTo(dAtA []byte) (int, error) { |
| 5900 | var i int |
| 5901 | _ = i |
| 5902 | var l int |
| 5903 | _ = l |
| 5904 | if m.Header != nil { |
| 5905 | dAtA[i] = 0xa |
| 5906 | i++ |
| 5907 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 5908 | n17, err := m.Header.MarshalTo(dAtA[i:]) |
| 5909 | if err != nil { |
| 5910 | return 0, err |
| 5911 | } |
| 5912 | i += n17 |
| 5913 | } |
| 5914 | return i, nil |
| 5915 | } |
| 5916 | |
| 5917 | func (m *HashRequest) Marshal() (dAtA []byte, err error) { |
| 5918 | size := m.Size() |
| 5919 | dAtA = make([]byte, size) |
| 5920 | n, err := m.MarshalTo(dAtA) |
| 5921 | if err != nil { |
| 5922 | return nil, err |
| 5923 | } |
| 5924 | return dAtA[:n], nil |
| 5925 | } |
| 5926 | |
| 5927 | func (m *HashRequest) MarshalTo(dAtA []byte) (int, error) { |
| 5928 | var i int |
| 5929 | _ = i |
| 5930 | var l int |
| 5931 | _ = l |
| 5932 | return i, nil |
| 5933 | } |
| 5934 | |
| 5935 | func (m *HashKVRequest) Marshal() (dAtA []byte, err error) { |
| 5936 | size := m.Size() |
| 5937 | dAtA = make([]byte, size) |
| 5938 | n, err := m.MarshalTo(dAtA) |
| 5939 | if err != nil { |
| 5940 | return nil, err |
| 5941 | } |
| 5942 | return dAtA[:n], nil |
| 5943 | } |
| 5944 | |
| 5945 | func (m *HashKVRequest) MarshalTo(dAtA []byte) (int, error) { |
| 5946 | var i int |
| 5947 | _ = i |
| 5948 | var l int |
| 5949 | _ = l |
| 5950 | if m.Revision != 0 { |
| 5951 | dAtA[i] = 0x8 |
| 5952 | i++ |
| 5953 | i = encodeVarintRpc(dAtA, i, uint64(m.Revision)) |
| 5954 | } |
| 5955 | return i, nil |
| 5956 | } |
| 5957 | |
| 5958 | func (m *HashKVResponse) Marshal() (dAtA []byte, err error) { |
| 5959 | size := m.Size() |
| 5960 | dAtA = make([]byte, size) |
| 5961 | n, err := m.MarshalTo(dAtA) |
| 5962 | if err != nil { |
| 5963 | return nil, err |
| 5964 | } |
| 5965 | return dAtA[:n], nil |
| 5966 | } |
| 5967 | |
| 5968 | func (m *HashKVResponse) MarshalTo(dAtA []byte) (int, error) { |
| 5969 | var i int |
| 5970 | _ = i |
| 5971 | var l int |
| 5972 | _ = l |
| 5973 | if m.Header != nil { |
| 5974 | dAtA[i] = 0xa |
| 5975 | i++ |
| 5976 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 5977 | n18, err := m.Header.MarshalTo(dAtA[i:]) |
| 5978 | if err != nil { |
| 5979 | return 0, err |
| 5980 | } |
| 5981 | i += n18 |
| 5982 | } |
| 5983 | if m.Hash != 0 { |
| 5984 | dAtA[i] = 0x10 |
| 5985 | i++ |
| 5986 | i = encodeVarintRpc(dAtA, i, uint64(m.Hash)) |
| 5987 | } |
| 5988 | if m.CompactRevision != 0 { |
| 5989 | dAtA[i] = 0x18 |
| 5990 | i++ |
| 5991 | i = encodeVarintRpc(dAtA, i, uint64(m.CompactRevision)) |
| 5992 | } |
| 5993 | return i, nil |
| 5994 | } |
| 5995 | |
| 5996 | func (m *HashResponse) Marshal() (dAtA []byte, err error) { |
| 5997 | size := m.Size() |
| 5998 | dAtA = make([]byte, size) |
| 5999 | n, err := m.MarshalTo(dAtA) |
| 6000 | if err != nil { |
| 6001 | return nil, err |
| 6002 | } |
| 6003 | return dAtA[:n], nil |
| 6004 | } |
| 6005 | |
| 6006 | func (m *HashResponse) MarshalTo(dAtA []byte) (int, error) { |
| 6007 | var i int |
| 6008 | _ = i |
| 6009 | var l int |
| 6010 | _ = l |
| 6011 | if m.Header != nil { |
| 6012 | dAtA[i] = 0xa |
| 6013 | i++ |
| 6014 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 6015 | n19, err := m.Header.MarshalTo(dAtA[i:]) |
| 6016 | if err != nil { |
| 6017 | return 0, err |
| 6018 | } |
| 6019 | i += n19 |
| 6020 | } |
| 6021 | if m.Hash != 0 { |
| 6022 | dAtA[i] = 0x10 |
| 6023 | i++ |
| 6024 | i = encodeVarintRpc(dAtA, i, uint64(m.Hash)) |
| 6025 | } |
| 6026 | return i, nil |
| 6027 | } |
| 6028 | |
| 6029 | func (m *SnapshotRequest) Marshal() (dAtA []byte, err error) { |
| 6030 | size := m.Size() |
| 6031 | dAtA = make([]byte, size) |
| 6032 | n, err := m.MarshalTo(dAtA) |
| 6033 | if err != nil { |
| 6034 | return nil, err |
| 6035 | } |
| 6036 | return dAtA[:n], nil |
| 6037 | } |
| 6038 | |
| 6039 | func (m *SnapshotRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6040 | var i int |
| 6041 | _ = i |
| 6042 | var l int |
| 6043 | _ = l |
| 6044 | return i, nil |
| 6045 | } |
| 6046 | |
| 6047 | func (m *SnapshotResponse) Marshal() (dAtA []byte, err error) { |
| 6048 | size := m.Size() |
| 6049 | dAtA = make([]byte, size) |
| 6050 | n, err := m.MarshalTo(dAtA) |
| 6051 | if err != nil { |
| 6052 | return nil, err |
| 6053 | } |
| 6054 | return dAtA[:n], nil |
| 6055 | } |
| 6056 | |
| 6057 | func (m *SnapshotResponse) MarshalTo(dAtA []byte) (int, error) { |
| 6058 | var i int |
| 6059 | _ = i |
| 6060 | var l int |
| 6061 | _ = l |
| 6062 | if m.Header != nil { |
| 6063 | dAtA[i] = 0xa |
| 6064 | i++ |
| 6065 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 6066 | n20, err := m.Header.MarshalTo(dAtA[i:]) |
| 6067 | if err != nil { |
| 6068 | return 0, err |
| 6069 | } |
| 6070 | i += n20 |
| 6071 | } |
| 6072 | if m.RemainingBytes != 0 { |
| 6073 | dAtA[i] = 0x10 |
| 6074 | i++ |
| 6075 | i = encodeVarintRpc(dAtA, i, uint64(m.RemainingBytes)) |
| 6076 | } |
| 6077 | if len(m.Blob) > 0 { |
| 6078 | dAtA[i] = 0x1a |
| 6079 | i++ |
| 6080 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Blob))) |
| 6081 | i += copy(dAtA[i:], m.Blob) |
| 6082 | } |
| 6083 | return i, nil |
| 6084 | } |
| 6085 | |
| 6086 | func (m *WatchRequest) Marshal() (dAtA []byte, err error) { |
| 6087 | size := m.Size() |
| 6088 | dAtA = make([]byte, size) |
| 6089 | n, err := m.MarshalTo(dAtA) |
| 6090 | if err != nil { |
| 6091 | return nil, err |
| 6092 | } |
| 6093 | return dAtA[:n], nil |
| 6094 | } |
| 6095 | |
| 6096 | func (m *WatchRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6097 | var i int |
| 6098 | _ = i |
| 6099 | var l int |
| 6100 | _ = l |
| 6101 | if m.RequestUnion != nil { |
| 6102 | nn21, err := m.RequestUnion.MarshalTo(dAtA[i:]) |
| 6103 | if err != nil { |
| 6104 | return 0, err |
| 6105 | } |
| 6106 | i += nn21 |
| 6107 | } |
| 6108 | return i, nil |
| 6109 | } |
| 6110 | |
| 6111 | func (m *WatchRequest_CreateRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6112 | i := 0 |
| 6113 | if m.CreateRequest != nil { |
| 6114 | dAtA[i] = 0xa |
| 6115 | i++ |
| 6116 | i = encodeVarintRpc(dAtA, i, uint64(m.CreateRequest.Size())) |
| 6117 | n22, err := m.CreateRequest.MarshalTo(dAtA[i:]) |
| 6118 | if err != nil { |
| 6119 | return 0, err |
| 6120 | } |
| 6121 | i += n22 |
| 6122 | } |
| 6123 | return i, nil |
| 6124 | } |
| 6125 | func (m *WatchRequest_CancelRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6126 | i := 0 |
| 6127 | if m.CancelRequest != nil { |
| 6128 | dAtA[i] = 0x12 |
| 6129 | i++ |
| 6130 | i = encodeVarintRpc(dAtA, i, uint64(m.CancelRequest.Size())) |
| 6131 | n23, err := m.CancelRequest.MarshalTo(dAtA[i:]) |
| 6132 | if err != nil { |
| 6133 | return 0, err |
| 6134 | } |
| 6135 | i += n23 |
| 6136 | } |
| 6137 | return i, nil |
| 6138 | } |
| 6139 | func (m *WatchRequest_ProgressRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6140 | i := 0 |
| 6141 | if m.ProgressRequest != nil { |
| 6142 | dAtA[i] = 0x1a |
| 6143 | i++ |
| 6144 | i = encodeVarintRpc(dAtA, i, uint64(m.ProgressRequest.Size())) |
| 6145 | n24, err := m.ProgressRequest.MarshalTo(dAtA[i:]) |
| 6146 | if err != nil { |
| 6147 | return 0, err |
| 6148 | } |
| 6149 | i += n24 |
| 6150 | } |
| 6151 | return i, nil |
| 6152 | } |
| 6153 | func (m *WatchCreateRequest) Marshal() (dAtA []byte, err error) { |
| 6154 | size := m.Size() |
| 6155 | dAtA = make([]byte, size) |
| 6156 | n, err := m.MarshalTo(dAtA) |
| 6157 | if err != nil { |
| 6158 | return nil, err |
| 6159 | } |
| 6160 | return dAtA[:n], nil |
| 6161 | } |
| 6162 | |
| 6163 | func (m *WatchCreateRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6164 | var i int |
| 6165 | _ = i |
| 6166 | var l int |
| 6167 | _ = l |
| 6168 | if len(m.Key) > 0 { |
| 6169 | dAtA[i] = 0xa |
| 6170 | i++ |
| 6171 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Key))) |
| 6172 | i += copy(dAtA[i:], m.Key) |
| 6173 | } |
| 6174 | if len(m.RangeEnd) > 0 { |
| 6175 | dAtA[i] = 0x12 |
| 6176 | i++ |
| 6177 | i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd))) |
| 6178 | i += copy(dAtA[i:], m.RangeEnd) |
| 6179 | } |
| 6180 | if m.StartRevision != 0 { |
| 6181 | dAtA[i] = 0x18 |
| 6182 | i++ |
| 6183 | i = encodeVarintRpc(dAtA, i, uint64(m.StartRevision)) |
| 6184 | } |
| 6185 | if m.ProgressNotify { |
| 6186 | dAtA[i] = 0x20 |
| 6187 | i++ |
| 6188 | if m.ProgressNotify { |
| 6189 | dAtA[i] = 1 |
| 6190 | } else { |
| 6191 | dAtA[i] = 0 |
| 6192 | } |
| 6193 | i++ |
| 6194 | } |
| 6195 | if len(m.Filters) > 0 { |
| 6196 | dAtA26 := make([]byte, len(m.Filters)*10) |
| 6197 | var j25 int |
| 6198 | for _, num := range m.Filters { |
| 6199 | for num >= 1<<7 { |
| 6200 | dAtA26[j25] = uint8(uint64(num)&0x7f | 0x80) |
| 6201 | num >>= 7 |
| 6202 | j25++ |
| 6203 | } |
| 6204 | dAtA26[j25] = uint8(num) |
| 6205 | j25++ |
| 6206 | } |
| 6207 | dAtA[i] = 0x2a |
| 6208 | i++ |
| 6209 | i = encodeVarintRpc(dAtA, i, uint64(j25)) |
| 6210 | i += copy(dAtA[i:], dAtA26[:j25]) |
| 6211 | } |
| 6212 | if m.PrevKv { |
| 6213 | dAtA[i] = 0x30 |
| 6214 | i++ |
| 6215 | if m.PrevKv { |
| 6216 | dAtA[i] = 1 |
| 6217 | } else { |
| 6218 | dAtA[i] = 0 |
| 6219 | } |
| 6220 | i++ |
| 6221 | } |
| 6222 | if m.WatchId != 0 { |
| 6223 | dAtA[i] = 0x38 |
| 6224 | i++ |
| 6225 | i = encodeVarintRpc(dAtA, i, uint64(m.WatchId)) |
| 6226 | } |
| 6227 | if m.Fragment { |
| 6228 | dAtA[i] = 0x40 |
| 6229 | i++ |
| 6230 | if m.Fragment { |
| 6231 | dAtA[i] = 1 |
| 6232 | } else { |
| 6233 | dAtA[i] = 0 |
| 6234 | } |
| 6235 | i++ |
| 6236 | } |
| 6237 | return i, nil |
| 6238 | } |
| 6239 | |
| 6240 | func (m *WatchCancelRequest) Marshal() (dAtA []byte, err error) { |
| 6241 | size := m.Size() |
| 6242 | dAtA = make([]byte, size) |
| 6243 | n, err := m.MarshalTo(dAtA) |
| 6244 | if err != nil { |
| 6245 | return nil, err |
| 6246 | } |
| 6247 | return dAtA[:n], nil |
| 6248 | } |
| 6249 | |
| 6250 | func (m *WatchCancelRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6251 | var i int |
| 6252 | _ = i |
| 6253 | var l int |
| 6254 | _ = l |
| 6255 | if m.WatchId != 0 { |
| 6256 | dAtA[i] = 0x8 |
| 6257 | i++ |
| 6258 | i = encodeVarintRpc(dAtA, i, uint64(m.WatchId)) |
| 6259 | } |
| 6260 | return i, nil |
| 6261 | } |
| 6262 | |
| 6263 | func (m *WatchProgressRequest) Marshal() (dAtA []byte, err error) { |
| 6264 | size := m.Size() |
| 6265 | dAtA = make([]byte, size) |
| 6266 | n, err := m.MarshalTo(dAtA) |
| 6267 | if err != nil { |
| 6268 | return nil, err |
| 6269 | } |
| 6270 | return dAtA[:n], nil |
| 6271 | } |
| 6272 | |
| 6273 | func (m *WatchProgressRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6274 | var i int |
| 6275 | _ = i |
| 6276 | var l int |
| 6277 | _ = l |
| 6278 | return i, nil |
| 6279 | } |
| 6280 | |
| 6281 | func (m *WatchResponse) 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 *WatchResponse) 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 | n27, err := m.Header.MarshalTo(dAtA[i:]) |
| 6301 | if err != nil { |
| 6302 | return 0, err |
| 6303 | } |
| 6304 | i += n27 |
| 6305 | } |
| 6306 | if m.WatchId != 0 { |
| 6307 | dAtA[i] = 0x10 |
| 6308 | i++ |
| 6309 | i = encodeVarintRpc(dAtA, i, uint64(m.WatchId)) |
| 6310 | } |
| 6311 | if m.Created { |
| 6312 | dAtA[i] = 0x18 |
| 6313 | i++ |
| 6314 | if m.Created { |
| 6315 | dAtA[i] = 1 |
| 6316 | } else { |
| 6317 | dAtA[i] = 0 |
| 6318 | } |
| 6319 | i++ |
| 6320 | } |
| 6321 | if m.Canceled { |
| 6322 | dAtA[i] = 0x20 |
| 6323 | i++ |
| 6324 | if m.Canceled { |
| 6325 | dAtA[i] = 1 |
| 6326 | } else { |
| 6327 | dAtA[i] = 0 |
| 6328 | } |
| 6329 | i++ |
| 6330 | } |
| 6331 | if m.CompactRevision != 0 { |
| 6332 | dAtA[i] = 0x28 |
| 6333 | i++ |
| 6334 | i = encodeVarintRpc(dAtA, i, uint64(m.CompactRevision)) |
| 6335 | } |
| 6336 | if len(m.CancelReason) > 0 { |
| 6337 | dAtA[i] = 0x32 |
| 6338 | i++ |
| 6339 | i = encodeVarintRpc(dAtA, i, uint64(len(m.CancelReason))) |
| 6340 | i += copy(dAtA[i:], m.CancelReason) |
| 6341 | } |
| 6342 | if m.Fragment { |
| 6343 | dAtA[i] = 0x38 |
| 6344 | i++ |
| 6345 | if m.Fragment { |
| 6346 | dAtA[i] = 1 |
| 6347 | } else { |
| 6348 | dAtA[i] = 0 |
| 6349 | } |
| 6350 | i++ |
| 6351 | } |
| 6352 | if len(m.Events) > 0 { |
| 6353 | for _, msg := range m.Events { |
| 6354 | dAtA[i] = 0x5a |
| 6355 | i++ |
| 6356 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 6357 | n, err := msg.MarshalTo(dAtA[i:]) |
| 6358 | if err != nil { |
| 6359 | return 0, err |
| 6360 | } |
| 6361 | i += n |
| 6362 | } |
| 6363 | } |
| 6364 | return i, nil |
| 6365 | } |
| 6366 | |
| 6367 | func (m *LeaseGrantRequest) Marshal() (dAtA []byte, err error) { |
| 6368 | size := m.Size() |
| 6369 | dAtA = make([]byte, size) |
| 6370 | n, err := m.MarshalTo(dAtA) |
| 6371 | if err != nil { |
| 6372 | return nil, err |
| 6373 | } |
| 6374 | return dAtA[:n], nil |
| 6375 | } |
| 6376 | |
| 6377 | func (m *LeaseGrantRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6378 | var i int |
| 6379 | _ = i |
| 6380 | var l int |
| 6381 | _ = l |
| 6382 | if m.TTL != 0 { |
| 6383 | dAtA[i] = 0x8 |
| 6384 | i++ |
| 6385 | i = encodeVarintRpc(dAtA, i, uint64(m.TTL)) |
| 6386 | } |
| 6387 | if m.ID != 0 { |
| 6388 | dAtA[i] = 0x10 |
| 6389 | i++ |
| 6390 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6391 | } |
| 6392 | return i, nil |
| 6393 | } |
| 6394 | |
| 6395 | func (m *LeaseGrantResponse) Marshal() (dAtA []byte, err error) { |
| 6396 | size := m.Size() |
| 6397 | dAtA = make([]byte, size) |
| 6398 | n, err := m.MarshalTo(dAtA) |
| 6399 | if err != nil { |
| 6400 | return nil, err |
| 6401 | } |
| 6402 | return dAtA[:n], nil |
| 6403 | } |
| 6404 | |
| 6405 | func (m *LeaseGrantResponse) MarshalTo(dAtA []byte) (int, error) { |
| 6406 | var i int |
| 6407 | _ = i |
| 6408 | var l int |
| 6409 | _ = l |
| 6410 | if m.Header != nil { |
| 6411 | dAtA[i] = 0xa |
| 6412 | i++ |
| 6413 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 6414 | n28, err := m.Header.MarshalTo(dAtA[i:]) |
| 6415 | if err != nil { |
| 6416 | return 0, err |
| 6417 | } |
| 6418 | i += n28 |
| 6419 | } |
| 6420 | if m.ID != 0 { |
| 6421 | dAtA[i] = 0x10 |
| 6422 | i++ |
| 6423 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6424 | } |
| 6425 | if m.TTL != 0 { |
| 6426 | dAtA[i] = 0x18 |
| 6427 | i++ |
| 6428 | i = encodeVarintRpc(dAtA, i, uint64(m.TTL)) |
| 6429 | } |
| 6430 | if len(m.Error) > 0 { |
| 6431 | dAtA[i] = 0x22 |
| 6432 | i++ |
| 6433 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Error))) |
| 6434 | i += copy(dAtA[i:], m.Error) |
| 6435 | } |
| 6436 | return i, nil |
| 6437 | } |
| 6438 | |
| 6439 | func (m *LeaseRevokeRequest) Marshal() (dAtA []byte, err error) { |
| 6440 | size := m.Size() |
| 6441 | dAtA = make([]byte, size) |
| 6442 | n, err := m.MarshalTo(dAtA) |
| 6443 | if err != nil { |
| 6444 | return nil, err |
| 6445 | } |
| 6446 | return dAtA[:n], nil |
| 6447 | } |
| 6448 | |
| 6449 | func (m *LeaseRevokeRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6450 | var i int |
| 6451 | _ = i |
| 6452 | var l int |
| 6453 | _ = l |
| 6454 | if m.ID != 0 { |
| 6455 | dAtA[i] = 0x8 |
| 6456 | i++ |
| 6457 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6458 | } |
| 6459 | return i, nil |
| 6460 | } |
| 6461 | |
| 6462 | func (m *LeaseRevokeResponse) 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 *LeaseRevokeResponse) MarshalTo(dAtA []byte) (int, error) { |
| 6473 | var i int |
| 6474 | _ = i |
| 6475 | var l int |
| 6476 | _ = l |
| 6477 | if m.Header != nil { |
| 6478 | dAtA[i] = 0xa |
| 6479 | i++ |
| 6480 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 6481 | n29, err := m.Header.MarshalTo(dAtA[i:]) |
| 6482 | if err != nil { |
| 6483 | return 0, err |
| 6484 | } |
| 6485 | i += n29 |
| 6486 | } |
| 6487 | return i, nil |
| 6488 | } |
| 6489 | |
| 6490 | func (m *LeaseCheckpoint) Marshal() (dAtA []byte, err error) { |
| 6491 | size := m.Size() |
| 6492 | dAtA = make([]byte, size) |
| 6493 | n, err := m.MarshalTo(dAtA) |
| 6494 | if err != nil { |
| 6495 | return nil, err |
| 6496 | } |
| 6497 | return dAtA[:n], nil |
| 6498 | } |
| 6499 | |
| 6500 | func (m *LeaseCheckpoint) MarshalTo(dAtA []byte) (int, error) { |
| 6501 | var i int |
| 6502 | _ = i |
| 6503 | var l int |
| 6504 | _ = l |
| 6505 | if m.ID != 0 { |
| 6506 | dAtA[i] = 0x8 |
| 6507 | i++ |
| 6508 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6509 | } |
| 6510 | if m.Remaining_TTL != 0 { |
| 6511 | dAtA[i] = 0x10 |
| 6512 | i++ |
| 6513 | i = encodeVarintRpc(dAtA, i, uint64(m.Remaining_TTL)) |
| 6514 | } |
| 6515 | return i, nil |
| 6516 | } |
| 6517 | |
| 6518 | func (m *LeaseCheckpointRequest) Marshal() (dAtA []byte, err error) { |
| 6519 | size := m.Size() |
| 6520 | dAtA = make([]byte, size) |
| 6521 | n, err := m.MarshalTo(dAtA) |
| 6522 | if err != nil { |
| 6523 | return nil, err |
| 6524 | } |
| 6525 | return dAtA[:n], nil |
| 6526 | } |
| 6527 | |
| 6528 | func (m *LeaseCheckpointRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6529 | var i int |
| 6530 | _ = i |
| 6531 | var l int |
| 6532 | _ = l |
| 6533 | if len(m.Checkpoints) > 0 { |
| 6534 | for _, msg := range m.Checkpoints { |
| 6535 | dAtA[i] = 0xa |
| 6536 | i++ |
| 6537 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 6538 | n, err := msg.MarshalTo(dAtA[i:]) |
| 6539 | if err != nil { |
| 6540 | return 0, err |
| 6541 | } |
| 6542 | i += n |
| 6543 | } |
| 6544 | } |
| 6545 | return i, nil |
| 6546 | } |
| 6547 | |
| 6548 | func (m *LeaseCheckpointResponse) Marshal() (dAtA []byte, err error) { |
| 6549 | size := m.Size() |
| 6550 | dAtA = make([]byte, size) |
| 6551 | n, err := m.MarshalTo(dAtA) |
| 6552 | if err != nil { |
| 6553 | return nil, err |
| 6554 | } |
| 6555 | return dAtA[:n], nil |
| 6556 | } |
| 6557 | |
| 6558 | func (m *LeaseCheckpointResponse) MarshalTo(dAtA []byte) (int, error) { |
| 6559 | var i int |
| 6560 | _ = i |
| 6561 | var l int |
| 6562 | _ = l |
| 6563 | if m.Header != nil { |
| 6564 | dAtA[i] = 0xa |
| 6565 | i++ |
| 6566 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 6567 | n30, err := m.Header.MarshalTo(dAtA[i:]) |
| 6568 | if err != nil { |
| 6569 | return 0, err |
| 6570 | } |
| 6571 | i += n30 |
| 6572 | } |
| 6573 | return i, nil |
| 6574 | } |
| 6575 | |
| 6576 | func (m *LeaseKeepAliveRequest) Marshal() (dAtA []byte, err error) { |
| 6577 | size := m.Size() |
| 6578 | dAtA = make([]byte, size) |
| 6579 | n, err := m.MarshalTo(dAtA) |
| 6580 | if err != nil { |
| 6581 | return nil, err |
| 6582 | } |
| 6583 | return dAtA[:n], nil |
| 6584 | } |
| 6585 | |
| 6586 | func (m *LeaseKeepAliveRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6587 | var i int |
| 6588 | _ = i |
| 6589 | var l int |
| 6590 | _ = l |
| 6591 | if m.ID != 0 { |
| 6592 | dAtA[i] = 0x8 |
| 6593 | i++ |
| 6594 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6595 | } |
| 6596 | return i, nil |
| 6597 | } |
| 6598 | |
| 6599 | func (m *LeaseKeepAliveResponse) Marshal() (dAtA []byte, err error) { |
| 6600 | size := m.Size() |
| 6601 | dAtA = make([]byte, size) |
| 6602 | n, err := m.MarshalTo(dAtA) |
| 6603 | if err != nil { |
| 6604 | return nil, err |
| 6605 | } |
| 6606 | return dAtA[:n], nil |
| 6607 | } |
| 6608 | |
| 6609 | func (m *LeaseKeepAliveResponse) MarshalTo(dAtA []byte) (int, error) { |
| 6610 | var i int |
| 6611 | _ = i |
| 6612 | var l int |
| 6613 | _ = l |
| 6614 | if m.Header != nil { |
| 6615 | dAtA[i] = 0xa |
| 6616 | i++ |
| 6617 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 6618 | n31, err := m.Header.MarshalTo(dAtA[i:]) |
| 6619 | if err != nil { |
| 6620 | return 0, err |
| 6621 | } |
| 6622 | i += n31 |
| 6623 | } |
| 6624 | if m.ID != 0 { |
| 6625 | dAtA[i] = 0x10 |
| 6626 | i++ |
| 6627 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6628 | } |
| 6629 | if m.TTL != 0 { |
| 6630 | dAtA[i] = 0x18 |
| 6631 | i++ |
| 6632 | i = encodeVarintRpc(dAtA, i, uint64(m.TTL)) |
| 6633 | } |
| 6634 | return i, nil |
| 6635 | } |
| 6636 | |
| 6637 | func (m *LeaseTimeToLiveRequest) Marshal() (dAtA []byte, err error) { |
| 6638 | size := m.Size() |
| 6639 | dAtA = make([]byte, size) |
| 6640 | n, err := m.MarshalTo(dAtA) |
| 6641 | if err != nil { |
| 6642 | return nil, err |
| 6643 | } |
| 6644 | return dAtA[:n], nil |
| 6645 | } |
| 6646 | |
| 6647 | func (m *LeaseTimeToLiveRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6648 | var i int |
| 6649 | _ = i |
| 6650 | var l int |
| 6651 | _ = l |
| 6652 | if m.ID != 0 { |
| 6653 | dAtA[i] = 0x8 |
| 6654 | i++ |
| 6655 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6656 | } |
| 6657 | if m.Keys { |
| 6658 | dAtA[i] = 0x10 |
| 6659 | i++ |
| 6660 | if m.Keys { |
| 6661 | dAtA[i] = 1 |
| 6662 | } else { |
| 6663 | dAtA[i] = 0 |
| 6664 | } |
| 6665 | i++ |
| 6666 | } |
| 6667 | return i, nil |
| 6668 | } |
| 6669 | |
| 6670 | func (m *LeaseTimeToLiveResponse) Marshal() (dAtA []byte, err error) { |
| 6671 | size := m.Size() |
| 6672 | dAtA = make([]byte, size) |
| 6673 | n, err := m.MarshalTo(dAtA) |
| 6674 | if err != nil { |
| 6675 | return nil, err |
| 6676 | } |
| 6677 | return dAtA[:n], nil |
| 6678 | } |
| 6679 | |
| 6680 | func (m *LeaseTimeToLiveResponse) MarshalTo(dAtA []byte) (int, error) { |
| 6681 | var i int |
| 6682 | _ = i |
| 6683 | var l int |
| 6684 | _ = l |
| 6685 | if m.Header != nil { |
| 6686 | dAtA[i] = 0xa |
| 6687 | i++ |
| 6688 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 6689 | n32, err := m.Header.MarshalTo(dAtA[i:]) |
| 6690 | if err != nil { |
| 6691 | return 0, err |
| 6692 | } |
| 6693 | i += n32 |
| 6694 | } |
| 6695 | if m.ID != 0 { |
| 6696 | dAtA[i] = 0x10 |
| 6697 | i++ |
| 6698 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6699 | } |
| 6700 | if m.TTL != 0 { |
| 6701 | dAtA[i] = 0x18 |
| 6702 | i++ |
| 6703 | i = encodeVarintRpc(dAtA, i, uint64(m.TTL)) |
| 6704 | } |
| 6705 | if m.GrantedTTL != 0 { |
| 6706 | dAtA[i] = 0x20 |
| 6707 | i++ |
| 6708 | i = encodeVarintRpc(dAtA, i, uint64(m.GrantedTTL)) |
| 6709 | } |
| 6710 | if len(m.Keys) > 0 { |
| 6711 | for _, b := range m.Keys { |
| 6712 | dAtA[i] = 0x2a |
| 6713 | i++ |
| 6714 | i = encodeVarintRpc(dAtA, i, uint64(len(b))) |
| 6715 | i += copy(dAtA[i:], b) |
| 6716 | } |
| 6717 | } |
| 6718 | return i, nil |
| 6719 | } |
| 6720 | |
| 6721 | func (m *LeaseLeasesRequest) Marshal() (dAtA []byte, err error) { |
| 6722 | size := m.Size() |
| 6723 | dAtA = make([]byte, size) |
| 6724 | n, err := m.MarshalTo(dAtA) |
| 6725 | if err != nil { |
| 6726 | return nil, err |
| 6727 | } |
| 6728 | return dAtA[:n], nil |
| 6729 | } |
| 6730 | |
| 6731 | func (m *LeaseLeasesRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6732 | var i int |
| 6733 | _ = i |
| 6734 | var l int |
| 6735 | _ = l |
| 6736 | return i, nil |
| 6737 | } |
| 6738 | |
| 6739 | func (m *LeaseStatus) Marshal() (dAtA []byte, err error) { |
| 6740 | size := m.Size() |
| 6741 | dAtA = make([]byte, size) |
| 6742 | n, err := m.MarshalTo(dAtA) |
| 6743 | if err != nil { |
| 6744 | return nil, err |
| 6745 | } |
| 6746 | return dAtA[:n], nil |
| 6747 | } |
| 6748 | |
| 6749 | func (m *LeaseStatus) MarshalTo(dAtA []byte) (int, error) { |
| 6750 | var i int |
| 6751 | _ = i |
| 6752 | var l int |
| 6753 | _ = l |
| 6754 | if m.ID != 0 { |
| 6755 | dAtA[i] = 0x8 |
| 6756 | i++ |
| 6757 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6758 | } |
| 6759 | return i, nil |
| 6760 | } |
| 6761 | |
| 6762 | func (m *LeaseLeasesResponse) Marshal() (dAtA []byte, err error) { |
| 6763 | size := m.Size() |
| 6764 | dAtA = make([]byte, size) |
| 6765 | n, err := m.MarshalTo(dAtA) |
| 6766 | if err != nil { |
| 6767 | return nil, err |
| 6768 | } |
| 6769 | return dAtA[:n], nil |
| 6770 | } |
| 6771 | |
| 6772 | func (m *LeaseLeasesResponse) MarshalTo(dAtA []byte) (int, error) { |
| 6773 | var i int |
| 6774 | _ = i |
| 6775 | var l int |
| 6776 | _ = l |
| 6777 | if m.Header != nil { |
| 6778 | dAtA[i] = 0xa |
| 6779 | i++ |
| 6780 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 6781 | n33, err := m.Header.MarshalTo(dAtA[i:]) |
| 6782 | if err != nil { |
| 6783 | return 0, err |
| 6784 | } |
| 6785 | i += n33 |
| 6786 | } |
| 6787 | if len(m.Leases) > 0 { |
| 6788 | for _, msg := range m.Leases { |
| 6789 | dAtA[i] = 0x12 |
| 6790 | i++ |
| 6791 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 6792 | n, err := msg.MarshalTo(dAtA[i:]) |
| 6793 | if err != nil { |
| 6794 | return 0, err |
| 6795 | } |
| 6796 | i += n |
| 6797 | } |
| 6798 | } |
| 6799 | return i, nil |
| 6800 | } |
| 6801 | |
| 6802 | func (m *Member) Marshal() (dAtA []byte, err error) { |
| 6803 | size := m.Size() |
| 6804 | dAtA = make([]byte, size) |
| 6805 | n, err := m.MarshalTo(dAtA) |
| 6806 | if err != nil { |
| 6807 | return nil, err |
| 6808 | } |
| 6809 | return dAtA[:n], nil |
| 6810 | } |
| 6811 | |
| 6812 | func (m *Member) MarshalTo(dAtA []byte) (int, error) { |
| 6813 | var i int |
| 6814 | _ = i |
| 6815 | var l int |
| 6816 | _ = l |
| 6817 | if m.ID != 0 { |
| 6818 | dAtA[i] = 0x8 |
| 6819 | i++ |
| 6820 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6821 | } |
| 6822 | if len(m.Name) > 0 { |
| 6823 | dAtA[i] = 0x12 |
| 6824 | i++ |
| 6825 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 6826 | i += copy(dAtA[i:], m.Name) |
| 6827 | } |
| 6828 | if len(m.PeerURLs) > 0 { |
| 6829 | for _, s := range m.PeerURLs { |
| 6830 | dAtA[i] = 0x1a |
| 6831 | i++ |
| 6832 | l = len(s) |
| 6833 | for l >= 1<<7 { |
| 6834 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 6835 | l >>= 7 |
| 6836 | i++ |
| 6837 | } |
| 6838 | dAtA[i] = uint8(l) |
| 6839 | i++ |
| 6840 | i += copy(dAtA[i:], s) |
| 6841 | } |
| 6842 | } |
| 6843 | if len(m.ClientURLs) > 0 { |
| 6844 | for _, s := range m.ClientURLs { |
| 6845 | dAtA[i] = 0x22 |
| 6846 | i++ |
| 6847 | l = len(s) |
| 6848 | for l >= 1<<7 { |
| 6849 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 6850 | l >>= 7 |
| 6851 | i++ |
| 6852 | } |
| 6853 | dAtA[i] = uint8(l) |
| 6854 | i++ |
| 6855 | i += copy(dAtA[i:], s) |
| 6856 | } |
| 6857 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 6858 | if m.IsLearner { |
| 6859 | dAtA[i] = 0x28 |
| 6860 | i++ |
| 6861 | if m.IsLearner { |
| 6862 | dAtA[i] = 1 |
| 6863 | } else { |
| 6864 | dAtA[i] = 0 |
| 6865 | } |
| 6866 | i++ |
| 6867 | } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 6868 | return i, nil |
| 6869 | } |
| 6870 | |
| 6871 | func (m *MemberAddRequest) Marshal() (dAtA []byte, err error) { |
| 6872 | size := m.Size() |
| 6873 | dAtA = make([]byte, size) |
| 6874 | n, err := m.MarshalTo(dAtA) |
| 6875 | if err != nil { |
| 6876 | return nil, err |
| 6877 | } |
| 6878 | return dAtA[:n], nil |
| 6879 | } |
| 6880 | |
| 6881 | func (m *MemberAddRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6882 | var i int |
| 6883 | _ = i |
| 6884 | var l int |
| 6885 | _ = l |
| 6886 | if len(m.PeerURLs) > 0 { |
| 6887 | for _, s := range m.PeerURLs { |
| 6888 | dAtA[i] = 0xa |
| 6889 | i++ |
| 6890 | l = len(s) |
| 6891 | for l >= 1<<7 { |
| 6892 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 6893 | l >>= 7 |
| 6894 | i++ |
| 6895 | } |
| 6896 | dAtA[i] = uint8(l) |
| 6897 | i++ |
| 6898 | i += copy(dAtA[i:], s) |
| 6899 | } |
| 6900 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 6901 | if m.IsLearner { |
| 6902 | dAtA[i] = 0x10 |
| 6903 | i++ |
| 6904 | if m.IsLearner { |
| 6905 | dAtA[i] = 1 |
| 6906 | } else { |
| 6907 | dAtA[i] = 0 |
| 6908 | } |
| 6909 | i++ |
| 6910 | } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 6911 | return i, nil |
| 6912 | } |
| 6913 | |
| 6914 | func (m *MemberAddResponse) Marshal() (dAtA []byte, err error) { |
| 6915 | size := m.Size() |
| 6916 | dAtA = make([]byte, size) |
| 6917 | n, err := m.MarshalTo(dAtA) |
| 6918 | if err != nil { |
| 6919 | return nil, err |
| 6920 | } |
| 6921 | return dAtA[:n], nil |
| 6922 | } |
| 6923 | |
| 6924 | func (m *MemberAddResponse) MarshalTo(dAtA []byte) (int, error) { |
| 6925 | var i int |
| 6926 | _ = i |
| 6927 | var l int |
| 6928 | _ = l |
| 6929 | if m.Header != nil { |
| 6930 | dAtA[i] = 0xa |
| 6931 | i++ |
| 6932 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 6933 | n34, err := m.Header.MarshalTo(dAtA[i:]) |
| 6934 | if err != nil { |
| 6935 | return 0, err |
| 6936 | } |
| 6937 | i += n34 |
| 6938 | } |
| 6939 | if m.Member != nil { |
| 6940 | dAtA[i] = 0x12 |
| 6941 | i++ |
| 6942 | i = encodeVarintRpc(dAtA, i, uint64(m.Member.Size())) |
| 6943 | n35, err := m.Member.MarshalTo(dAtA[i:]) |
| 6944 | if err != nil { |
| 6945 | return 0, err |
| 6946 | } |
| 6947 | i += n35 |
| 6948 | } |
| 6949 | if len(m.Members) > 0 { |
| 6950 | for _, msg := range m.Members { |
| 6951 | dAtA[i] = 0x1a |
| 6952 | i++ |
| 6953 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 6954 | n, err := msg.MarshalTo(dAtA[i:]) |
| 6955 | if err != nil { |
| 6956 | return 0, err |
| 6957 | } |
| 6958 | i += n |
| 6959 | } |
| 6960 | } |
| 6961 | return i, nil |
| 6962 | } |
| 6963 | |
| 6964 | func (m *MemberRemoveRequest) Marshal() (dAtA []byte, err error) { |
| 6965 | size := m.Size() |
| 6966 | dAtA = make([]byte, size) |
| 6967 | n, err := m.MarshalTo(dAtA) |
| 6968 | if err != nil { |
| 6969 | return nil, err |
| 6970 | } |
| 6971 | return dAtA[:n], nil |
| 6972 | } |
| 6973 | |
| 6974 | func (m *MemberRemoveRequest) MarshalTo(dAtA []byte) (int, error) { |
| 6975 | var i int |
| 6976 | _ = i |
| 6977 | var l int |
| 6978 | _ = l |
| 6979 | if m.ID != 0 { |
| 6980 | dAtA[i] = 0x8 |
| 6981 | i++ |
| 6982 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 6983 | } |
| 6984 | return i, nil |
| 6985 | } |
| 6986 | |
| 6987 | func (m *MemberRemoveResponse) Marshal() (dAtA []byte, err error) { |
| 6988 | size := m.Size() |
| 6989 | dAtA = make([]byte, size) |
| 6990 | n, err := m.MarshalTo(dAtA) |
| 6991 | if err != nil { |
| 6992 | return nil, err |
| 6993 | } |
| 6994 | return dAtA[:n], nil |
| 6995 | } |
| 6996 | |
| 6997 | func (m *MemberRemoveResponse) MarshalTo(dAtA []byte) (int, error) { |
| 6998 | var i int |
| 6999 | _ = i |
| 7000 | var l int |
| 7001 | _ = l |
| 7002 | if m.Header != nil { |
| 7003 | dAtA[i] = 0xa |
| 7004 | i++ |
| 7005 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 7006 | n36, err := m.Header.MarshalTo(dAtA[i:]) |
| 7007 | if err != nil { |
| 7008 | return 0, err |
| 7009 | } |
| 7010 | i += n36 |
| 7011 | } |
| 7012 | if len(m.Members) > 0 { |
| 7013 | for _, msg := range m.Members { |
| 7014 | dAtA[i] = 0x12 |
| 7015 | i++ |
| 7016 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 7017 | n, err := msg.MarshalTo(dAtA[i:]) |
| 7018 | if err != nil { |
| 7019 | return 0, err |
| 7020 | } |
| 7021 | i += n |
| 7022 | } |
| 7023 | } |
| 7024 | return i, nil |
| 7025 | } |
| 7026 | |
| 7027 | func (m *MemberUpdateRequest) Marshal() (dAtA []byte, err error) { |
| 7028 | size := m.Size() |
| 7029 | dAtA = make([]byte, size) |
| 7030 | n, err := m.MarshalTo(dAtA) |
| 7031 | if err != nil { |
| 7032 | return nil, err |
| 7033 | } |
| 7034 | return dAtA[:n], nil |
| 7035 | } |
| 7036 | |
| 7037 | func (m *MemberUpdateRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7038 | var i int |
| 7039 | _ = i |
| 7040 | var l int |
| 7041 | _ = l |
| 7042 | if m.ID != 0 { |
| 7043 | dAtA[i] = 0x8 |
| 7044 | i++ |
| 7045 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 7046 | } |
| 7047 | if len(m.PeerURLs) > 0 { |
| 7048 | for _, s := range m.PeerURLs { |
| 7049 | dAtA[i] = 0x12 |
| 7050 | i++ |
| 7051 | l = len(s) |
| 7052 | for l >= 1<<7 { |
| 7053 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 7054 | l >>= 7 |
| 7055 | i++ |
| 7056 | } |
| 7057 | dAtA[i] = uint8(l) |
| 7058 | i++ |
| 7059 | i += copy(dAtA[i:], s) |
| 7060 | } |
| 7061 | } |
| 7062 | return i, nil |
| 7063 | } |
| 7064 | |
| 7065 | func (m *MemberUpdateResponse) Marshal() (dAtA []byte, err error) { |
| 7066 | size := m.Size() |
| 7067 | dAtA = make([]byte, size) |
| 7068 | n, err := m.MarshalTo(dAtA) |
| 7069 | if err != nil { |
| 7070 | return nil, err |
| 7071 | } |
| 7072 | return dAtA[:n], nil |
| 7073 | } |
| 7074 | |
| 7075 | func (m *MemberUpdateResponse) MarshalTo(dAtA []byte) (int, error) { |
| 7076 | var i int |
| 7077 | _ = i |
| 7078 | var l int |
| 7079 | _ = l |
| 7080 | if m.Header != nil { |
| 7081 | dAtA[i] = 0xa |
| 7082 | i++ |
| 7083 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 7084 | n37, err := m.Header.MarshalTo(dAtA[i:]) |
| 7085 | if err != nil { |
| 7086 | return 0, err |
| 7087 | } |
| 7088 | i += n37 |
| 7089 | } |
| 7090 | if len(m.Members) > 0 { |
| 7091 | for _, msg := range m.Members { |
| 7092 | dAtA[i] = 0x12 |
| 7093 | i++ |
| 7094 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 7095 | n, err := msg.MarshalTo(dAtA[i:]) |
| 7096 | if err != nil { |
| 7097 | return 0, err |
| 7098 | } |
| 7099 | i += n |
| 7100 | } |
| 7101 | } |
| 7102 | return i, nil |
| 7103 | } |
| 7104 | |
| 7105 | func (m *MemberListRequest) Marshal() (dAtA []byte, err error) { |
| 7106 | size := m.Size() |
| 7107 | dAtA = make([]byte, size) |
| 7108 | n, err := m.MarshalTo(dAtA) |
| 7109 | if err != nil { |
| 7110 | return nil, err |
| 7111 | } |
| 7112 | return dAtA[:n], nil |
| 7113 | } |
| 7114 | |
| 7115 | func (m *MemberListRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7116 | var i int |
| 7117 | _ = i |
| 7118 | var l int |
| 7119 | _ = l |
| 7120 | return i, nil |
| 7121 | } |
| 7122 | |
| 7123 | func (m *MemberListResponse) Marshal() (dAtA []byte, err error) { |
| 7124 | size := m.Size() |
| 7125 | dAtA = make([]byte, size) |
| 7126 | n, err := m.MarshalTo(dAtA) |
| 7127 | if err != nil { |
| 7128 | return nil, err |
| 7129 | } |
| 7130 | return dAtA[:n], nil |
| 7131 | } |
| 7132 | |
| 7133 | func (m *MemberListResponse) MarshalTo(dAtA []byte) (int, error) { |
| 7134 | var i int |
| 7135 | _ = i |
| 7136 | var l int |
| 7137 | _ = l |
| 7138 | if m.Header != nil { |
| 7139 | dAtA[i] = 0xa |
| 7140 | i++ |
| 7141 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 7142 | n38, err := m.Header.MarshalTo(dAtA[i:]) |
| 7143 | if err != nil { |
| 7144 | return 0, err |
| 7145 | } |
| 7146 | i += n38 |
| 7147 | } |
| 7148 | if len(m.Members) > 0 { |
| 7149 | for _, msg := range m.Members { |
| 7150 | dAtA[i] = 0x12 |
| 7151 | i++ |
| 7152 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 7153 | n, err := msg.MarshalTo(dAtA[i:]) |
| 7154 | if err != nil { |
| 7155 | return 0, err |
| 7156 | } |
| 7157 | i += n |
| 7158 | } |
| 7159 | } |
| 7160 | return i, nil |
| 7161 | } |
| 7162 | |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 7163 | func (m *MemberPromoteRequest) Marshal() (dAtA []byte, err error) { |
| 7164 | size := m.Size() |
| 7165 | dAtA = make([]byte, size) |
| 7166 | n, err := m.MarshalTo(dAtA) |
| 7167 | if err != nil { |
| 7168 | return nil, err |
| 7169 | } |
| 7170 | return dAtA[:n], nil |
| 7171 | } |
| 7172 | |
| 7173 | func (m *MemberPromoteRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7174 | var i int |
| 7175 | _ = i |
| 7176 | var l int |
| 7177 | _ = l |
| 7178 | if m.ID != 0 { |
| 7179 | dAtA[i] = 0x8 |
| 7180 | i++ |
| 7181 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 7182 | } |
| 7183 | return i, nil |
| 7184 | } |
| 7185 | |
| 7186 | func (m *MemberPromoteResponse) Marshal() (dAtA []byte, err error) { |
| 7187 | size := m.Size() |
| 7188 | dAtA = make([]byte, size) |
| 7189 | n, err := m.MarshalTo(dAtA) |
| 7190 | if err != nil { |
| 7191 | return nil, err |
| 7192 | } |
| 7193 | return dAtA[:n], nil |
| 7194 | } |
| 7195 | |
| 7196 | func (m *MemberPromoteResponse) MarshalTo(dAtA []byte) (int, error) { |
| 7197 | var i int |
| 7198 | _ = i |
| 7199 | var l int |
| 7200 | _ = l |
| 7201 | if m.Header != nil { |
| 7202 | dAtA[i] = 0xa |
| 7203 | i++ |
| 7204 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
| 7205 | n39, err := m.Header.MarshalTo(dAtA[i:]) |
| 7206 | if err != nil { |
| 7207 | return 0, err |
| 7208 | } |
| 7209 | i += n39 |
| 7210 | } |
| 7211 | if len(m.Members) > 0 { |
| 7212 | for _, msg := range m.Members { |
| 7213 | dAtA[i] = 0x12 |
| 7214 | i++ |
| 7215 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 7216 | n, err := msg.MarshalTo(dAtA[i:]) |
| 7217 | if err != nil { |
| 7218 | return 0, err |
| 7219 | } |
| 7220 | i += n |
| 7221 | } |
| 7222 | } |
| 7223 | return i, nil |
| 7224 | } |
| 7225 | |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 7226 | func (m *DefragmentRequest) Marshal() (dAtA []byte, err error) { |
| 7227 | size := m.Size() |
| 7228 | dAtA = make([]byte, size) |
| 7229 | n, err := m.MarshalTo(dAtA) |
| 7230 | if err != nil { |
| 7231 | return nil, err |
| 7232 | } |
| 7233 | return dAtA[:n], nil |
| 7234 | } |
| 7235 | |
| 7236 | func (m *DefragmentRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7237 | var i int |
| 7238 | _ = i |
| 7239 | var l int |
| 7240 | _ = l |
| 7241 | return i, nil |
| 7242 | } |
| 7243 | |
| 7244 | func (m *DefragmentResponse) Marshal() (dAtA []byte, err error) { |
| 7245 | size := m.Size() |
| 7246 | dAtA = make([]byte, size) |
| 7247 | n, err := m.MarshalTo(dAtA) |
| 7248 | if err != nil { |
| 7249 | return nil, err |
| 7250 | } |
| 7251 | return dAtA[:n], nil |
| 7252 | } |
| 7253 | |
| 7254 | func (m *DefragmentResponse) MarshalTo(dAtA []byte) (int, error) { |
| 7255 | var i int |
| 7256 | _ = i |
| 7257 | var l int |
| 7258 | _ = l |
| 7259 | if m.Header != nil { |
| 7260 | dAtA[i] = 0xa |
| 7261 | i++ |
| 7262 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 7263 | n40, err := m.Header.MarshalTo(dAtA[i:]) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 7264 | if err != nil { |
| 7265 | return 0, err |
| 7266 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 7267 | i += n40 |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 7268 | } |
| 7269 | return i, nil |
| 7270 | } |
| 7271 | |
| 7272 | func (m *MoveLeaderRequest) Marshal() (dAtA []byte, err error) { |
| 7273 | size := m.Size() |
| 7274 | dAtA = make([]byte, size) |
| 7275 | n, err := m.MarshalTo(dAtA) |
| 7276 | if err != nil { |
| 7277 | return nil, err |
| 7278 | } |
| 7279 | return dAtA[:n], nil |
| 7280 | } |
| 7281 | |
| 7282 | func (m *MoveLeaderRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7283 | var i int |
| 7284 | _ = i |
| 7285 | var l int |
| 7286 | _ = l |
| 7287 | if m.TargetID != 0 { |
| 7288 | dAtA[i] = 0x8 |
| 7289 | i++ |
| 7290 | i = encodeVarintRpc(dAtA, i, uint64(m.TargetID)) |
| 7291 | } |
| 7292 | return i, nil |
| 7293 | } |
| 7294 | |
| 7295 | func (m *MoveLeaderResponse) Marshal() (dAtA []byte, err error) { |
| 7296 | size := m.Size() |
| 7297 | dAtA = make([]byte, size) |
| 7298 | n, err := m.MarshalTo(dAtA) |
| 7299 | if err != nil { |
| 7300 | return nil, err |
| 7301 | } |
| 7302 | return dAtA[:n], nil |
| 7303 | } |
| 7304 | |
| 7305 | func (m *MoveLeaderResponse) MarshalTo(dAtA []byte) (int, error) { |
| 7306 | var i int |
| 7307 | _ = i |
| 7308 | var l int |
| 7309 | _ = l |
| 7310 | if m.Header != nil { |
| 7311 | dAtA[i] = 0xa |
| 7312 | i++ |
| 7313 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 7314 | n41, err := m.Header.MarshalTo(dAtA[i:]) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 7315 | if err != nil { |
| 7316 | return 0, err |
| 7317 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 7318 | i += n41 |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 7319 | } |
| 7320 | return i, nil |
| 7321 | } |
| 7322 | |
| 7323 | func (m *AlarmRequest) Marshal() (dAtA []byte, err error) { |
| 7324 | size := m.Size() |
| 7325 | dAtA = make([]byte, size) |
| 7326 | n, err := m.MarshalTo(dAtA) |
| 7327 | if err != nil { |
| 7328 | return nil, err |
| 7329 | } |
| 7330 | return dAtA[:n], nil |
| 7331 | } |
| 7332 | |
| 7333 | func (m *AlarmRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7334 | var i int |
| 7335 | _ = i |
| 7336 | var l int |
| 7337 | _ = l |
| 7338 | if m.Action != 0 { |
| 7339 | dAtA[i] = 0x8 |
| 7340 | i++ |
| 7341 | i = encodeVarintRpc(dAtA, i, uint64(m.Action)) |
| 7342 | } |
| 7343 | if m.MemberID != 0 { |
| 7344 | dAtA[i] = 0x10 |
| 7345 | i++ |
| 7346 | i = encodeVarintRpc(dAtA, i, uint64(m.MemberID)) |
| 7347 | } |
| 7348 | if m.Alarm != 0 { |
| 7349 | dAtA[i] = 0x18 |
| 7350 | i++ |
| 7351 | i = encodeVarintRpc(dAtA, i, uint64(m.Alarm)) |
| 7352 | } |
| 7353 | return i, nil |
| 7354 | } |
| 7355 | |
| 7356 | func (m *AlarmMember) Marshal() (dAtA []byte, err error) { |
| 7357 | size := m.Size() |
| 7358 | dAtA = make([]byte, size) |
| 7359 | n, err := m.MarshalTo(dAtA) |
| 7360 | if err != nil { |
| 7361 | return nil, err |
| 7362 | } |
| 7363 | return dAtA[:n], nil |
| 7364 | } |
| 7365 | |
| 7366 | func (m *AlarmMember) MarshalTo(dAtA []byte) (int, error) { |
| 7367 | var i int |
| 7368 | _ = i |
| 7369 | var l int |
| 7370 | _ = l |
| 7371 | if m.MemberID != 0 { |
| 7372 | dAtA[i] = 0x8 |
| 7373 | i++ |
| 7374 | i = encodeVarintRpc(dAtA, i, uint64(m.MemberID)) |
| 7375 | } |
| 7376 | if m.Alarm != 0 { |
| 7377 | dAtA[i] = 0x10 |
| 7378 | i++ |
| 7379 | i = encodeVarintRpc(dAtA, i, uint64(m.Alarm)) |
| 7380 | } |
| 7381 | return i, nil |
| 7382 | } |
| 7383 | |
| 7384 | func (m *AlarmResponse) Marshal() (dAtA []byte, err error) { |
| 7385 | size := m.Size() |
| 7386 | dAtA = make([]byte, size) |
| 7387 | n, err := m.MarshalTo(dAtA) |
| 7388 | if err != nil { |
| 7389 | return nil, err |
| 7390 | } |
| 7391 | return dAtA[:n], nil |
| 7392 | } |
| 7393 | |
| 7394 | func (m *AlarmResponse) MarshalTo(dAtA []byte) (int, error) { |
| 7395 | var i int |
| 7396 | _ = i |
| 7397 | var l int |
| 7398 | _ = l |
| 7399 | if m.Header != nil { |
| 7400 | dAtA[i] = 0xa |
| 7401 | i++ |
| 7402 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 7403 | n42, err := m.Header.MarshalTo(dAtA[i:]) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 7404 | if err != nil { |
| 7405 | return 0, err |
| 7406 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 7407 | i += n42 |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 7408 | } |
| 7409 | if len(m.Alarms) > 0 { |
| 7410 | for _, msg := range m.Alarms { |
| 7411 | dAtA[i] = 0x12 |
| 7412 | i++ |
| 7413 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 7414 | n, err := msg.MarshalTo(dAtA[i:]) |
| 7415 | if err != nil { |
| 7416 | return 0, err |
| 7417 | } |
| 7418 | i += n |
| 7419 | } |
| 7420 | } |
| 7421 | return i, nil |
| 7422 | } |
| 7423 | |
| 7424 | func (m *StatusRequest) Marshal() (dAtA []byte, err error) { |
| 7425 | size := m.Size() |
| 7426 | dAtA = make([]byte, size) |
| 7427 | n, err := m.MarshalTo(dAtA) |
| 7428 | if err != nil { |
| 7429 | return nil, err |
| 7430 | } |
| 7431 | return dAtA[:n], nil |
| 7432 | } |
| 7433 | |
| 7434 | func (m *StatusRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7435 | var i int |
| 7436 | _ = i |
| 7437 | var l int |
| 7438 | _ = l |
| 7439 | return i, nil |
| 7440 | } |
| 7441 | |
| 7442 | func (m *StatusResponse) Marshal() (dAtA []byte, err error) { |
| 7443 | size := m.Size() |
| 7444 | dAtA = make([]byte, size) |
| 7445 | n, err := m.MarshalTo(dAtA) |
| 7446 | if err != nil { |
| 7447 | return nil, err |
| 7448 | } |
| 7449 | return dAtA[:n], nil |
| 7450 | } |
| 7451 | |
| 7452 | func (m *StatusResponse) MarshalTo(dAtA []byte) (int, error) { |
| 7453 | var i int |
| 7454 | _ = i |
| 7455 | var l int |
| 7456 | _ = l |
| 7457 | if m.Header != nil { |
| 7458 | dAtA[i] = 0xa |
| 7459 | i++ |
| 7460 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 7461 | n43, err := m.Header.MarshalTo(dAtA[i:]) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 7462 | if err != nil { |
| 7463 | return 0, err |
| 7464 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 7465 | i += n43 |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 7466 | } |
| 7467 | if len(m.Version) > 0 { |
| 7468 | dAtA[i] = 0x12 |
| 7469 | i++ |
| 7470 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Version))) |
| 7471 | i += copy(dAtA[i:], m.Version) |
| 7472 | } |
| 7473 | if m.DbSize != 0 { |
| 7474 | dAtA[i] = 0x18 |
| 7475 | i++ |
| 7476 | i = encodeVarintRpc(dAtA, i, uint64(m.DbSize)) |
| 7477 | } |
| 7478 | if m.Leader != 0 { |
| 7479 | dAtA[i] = 0x20 |
| 7480 | i++ |
| 7481 | i = encodeVarintRpc(dAtA, i, uint64(m.Leader)) |
| 7482 | } |
| 7483 | if m.RaftIndex != 0 { |
| 7484 | dAtA[i] = 0x28 |
| 7485 | i++ |
| 7486 | i = encodeVarintRpc(dAtA, i, uint64(m.RaftIndex)) |
| 7487 | } |
| 7488 | if m.RaftTerm != 0 { |
| 7489 | dAtA[i] = 0x30 |
| 7490 | i++ |
| 7491 | i = encodeVarintRpc(dAtA, i, uint64(m.RaftTerm)) |
| 7492 | } |
| 7493 | if m.RaftAppliedIndex != 0 { |
| 7494 | dAtA[i] = 0x38 |
| 7495 | i++ |
| 7496 | i = encodeVarintRpc(dAtA, i, uint64(m.RaftAppliedIndex)) |
| 7497 | } |
| 7498 | if len(m.Errors) > 0 { |
| 7499 | for _, s := range m.Errors { |
| 7500 | dAtA[i] = 0x42 |
| 7501 | i++ |
| 7502 | l = len(s) |
| 7503 | for l >= 1<<7 { |
| 7504 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 7505 | l >>= 7 |
| 7506 | i++ |
| 7507 | } |
| 7508 | dAtA[i] = uint8(l) |
| 7509 | i++ |
| 7510 | i += copy(dAtA[i:], s) |
| 7511 | } |
| 7512 | } |
| 7513 | if m.DbSizeInUse != 0 { |
| 7514 | dAtA[i] = 0x48 |
| 7515 | i++ |
| 7516 | i = encodeVarintRpc(dAtA, i, uint64(m.DbSizeInUse)) |
| 7517 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 7518 | if m.IsLearner { |
| 7519 | dAtA[i] = 0x50 |
| 7520 | i++ |
| 7521 | if m.IsLearner { |
| 7522 | dAtA[i] = 1 |
| 7523 | } else { |
| 7524 | dAtA[i] = 0 |
| 7525 | } |
| 7526 | i++ |
| 7527 | } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 7528 | return i, nil |
| 7529 | } |
| 7530 | |
| 7531 | func (m *AuthEnableRequest) Marshal() (dAtA []byte, err error) { |
| 7532 | size := m.Size() |
| 7533 | dAtA = make([]byte, size) |
| 7534 | n, err := m.MarshalTo(dAtA) |
| 7535 | if err != nil { |
| 7536 | return nil, err |
| 7537 | } |
| 7538 | return dAtA[:n], nil |
| 7539 | } |
| 7540 | |
| 7541 | func (m *AuthEnableRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7542 | var i int |
| 7543 | _ = i |
| 7544 | var l int |
| 7545 | _ = l |
| 7546 | return i, nil |
| 7547 | } |
| 7548 | |
| 7549 | func (m *AuthDisableRequest) Marshal() (dAtA []byte, err error) { |
| 7550 | size := m.Size() |
| 7551 | dAtA = make([]byte, size) |
| 7552 | n, err := m.MarshalTo(dAtA) |
| 7553 | if err != nil { |
| 7554 | return nil, err |
| 7555 | } |
| 7556 | return dAtA[:n], nil |
| 7557 | } |
| 7558 | |
| 7559 | func (m *AuthDisableRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7560 | var i int |
| 7561 | _ = i |
| 7562 | var l int |
| 7563 | _ = l |
| 7564 | return i, nil |
| 7565 | } |
| 7566 | |
| 7567 | func (m *AuthenticateRequest) Marshal() (dAtA []byte, err error) { |
| 7568 | size := m.Size() |
| 7569 | dAtA = make([]byte, size) |
| 7570 | n, err := m.MarshalTo(dAtA) |
| 7571 | if err != nil { |
| 7572 | return nil, err |
| 7573 | } |
| 7574 | return dAtA[:n], nil |
| 7575 | } |
| 7576 | |
| 7577 | func (m *AuthenticateRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7578 | var i int |
| 7579 | _ = i |
| 7580 | var l int |
| 7581 | _ = l |
| 7582 | if len(m.Name) > 0 { |
| 7583 | dAtA[i] = 0xa |
| 7584 | i++ |
| 7585 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 7586 | i += copy(dAtA[i:], m.Name) |
| 7587 | } |
| 7588 | if len(m.Password) > 0 { |
| 7589 | dAtA[i] = 0x12 |
| 7590 | i++ |
| 7591 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Password))) |
| 7592 | i += copy(dAtA[i:], m.Password) |
| 7593 | } |
| 7594 | return i, nil |
| 7595 | } |
| 7596 | |
| 7597 | func (m *AuthUserAddRequest) Marshal() (dAtA []byte, err error) { |
| 7598 | size := m.Size() |
| 7599 | dAtA = make([]byte, size) |
| 7600 | n, err := m.MarshalTo(dAtA) |
| 7601 | if err != nil { |
| 7602 | return nil, err |
| 7603 | } |
| 7604 | return dAtA[:n], nil |
| 7605 | } |
| 7606 | |
| 7607 | func (m *AuthUserAddRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7608 | var i int |
| 7609 | _ = i |
| 7610 | var l int |
| 7611 | _ = l |
| 7612 | if len(m.Name) > 0 { |
| 7613 | dAtA[i] = 0xa |
| 7614 | i++ |
| 7615 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 7616 | i += copy(dAtA[i:], m.Name) |
| 7617 | } |
| 7618 | if len(m.Password) > 0 { |
| 7619 | dAtA[i] = 0x12 |
| 7620 | i++ |
| 7621 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Password))) |
| 7622 | i += copy(dAtA[i:], m.Password) |
| 7623 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 7624 | if m.Options != nil { |
| 7625 | dAtA[i] = 0x1a |
| 7626 | i++ |
| 7627 | i = encodeVarintRpc(dAtA, i, uint64(m.Options.Size())) |
| 7628 | n44, err := m.Options.MarshalTo(dAtA[i:]) |
| 7629 | if err != nil { |
| 7630 | return 0, err |
| 7631 | } |
| 7632 | i += n44 |
| 7633 | } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 7634 | return i, nil |
| 7635 | } |
| 7636 | |
| 7637 | func (m *AuthUserGetRequest) Marshal() (dAtA []byte, err error) { |
| 7638 | size := m.Size() |
| 7639 | dAtA = make([]byte, size) |
| 7640 | n, err := m.MarshalTo(dAtA) |
| 7641 | if err != nil { |
| 7642 | return nil, err |
| 7643 | } |
| 7644 | return dAtA[:n], nil |
| 7645 | } |
| 7646 | |
| 7647 | func (m *AuthUserGetRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7648 | var i int |
| 7649 | _ = i |
| 7650 | var l int |
| 7651 | _ = l |
| 7652 | if len(m.Name) > 0 { |
| 7653 | dAtA[i] = 0xa |
| 7654 | i++ |
| 7655 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 7656 | i += copy(dAtA[i:], m.Name) |
| 7657 | } |
| 7658 | return i, nil |
| 7659 | } |
| 7660 | |
| 7661 | func (m *AuthUserDeleteRequest) Marshal() (dAtA []byte, err error) { |
| 7662 | size := m.Size() |
| 7663 | dAtA = make([]byte, size) |
| 7664 | n, err := m.MarshalTo(dAtA) |
| 7665 | if err != nil { |
| 7666 | return nil, err |
| 7667 | } |
| 7668 | return dAtA[:n], nil |
| 7669 | } |
| 7670 | |
| 7671 | func (m *AuthUserDeleteRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7672 | var i int |
| 7673 | _ = i |
| 7674 | var l int |
| 7675 | _ = l |
| 7676 | if len(m.Name) > 0 { |
| 7677 | dAtA[i] = 0xa |
| 7678 | i++ |
| 7679 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 7680 | i += copy(dAtA[i:], m.Name) |
| 7681 | } |
| 7682 | return i, nil |
| 7683 | } |
| 7684 | |
| 7685 | func (m *AuthUserChangePasswordRequest) Marshal() (dAtA []byte, err error) { |
| 7686 | size := m.Size() |
| 7687 | dAtA = make([]byte, size) |
| 7688 | n, err := m.MarshalTo(dAtA) |
| 7689 | if err != nil { |
| 7690 | return nil, err |
| 7691 | } |
| 7692 | return dAtA[:n], nil |
| 7693 | } |
| 7694 | |
| 7695 | func (m *AuthUserChangePasswordRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7696 | var i int |
| 7697 | _ = i |
| 7698 | var l int |
| 7699 | _ = l |
| 7700 | if len(m.Name) > 0 { |
| 7701 | dAtA[i] = 0xa |
| 7702 | i++ |
| 7703 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 7704 | i += copy(dAtA[i:], m.Name) |
| 7705 | } |
| 7706 | if len(m.Password) > 0 { |
| 7707 | dAtA[i] = 0x12 |
| 7708 | i++ |
| 7709 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Password))) |
| 7710 | i += copy(dAtA[i:], m.Password) |
| 7711 | } |
| 7712 | return i, nil |
| 7713 | } |
| 7714 | |
| 7715 | func (m *AuthUserGrantRoleRequest) Marshal() (dAtA []byte, err error) { |
| 7716 | size := m.Size() |
| 7717 | dAtA = make([]byte, size) |
| 7718 | n, err := m.MarshalTo(dAtA) |
| 7719 | if err != nil { |
| 7720 | return nil, err |
| 7721 | } |
| 7722 | return dAtA[:n], nil |
| 7723 | } |
| 7724 | |
| 7725 | func (m *AuthUserGrantRoleRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7726 | var i int |
| 7727 | _ = i |
| 7728 | var l int |
| 7729 | _ = l |
| 7730 | if len(m.User) > 0 { |
| 7731 | dAtA[i] = 0xa |
| 7732 | i++ |
| 7733 | i = encodeVarintRpc(dAtA, i, uint64(len(m.User))) |
| 7734 | i += copy(dAtA[i:], m.User) |
| 7735 | } |
| 7736 | if len(m.Role) > 0 { |
| 7737 | dAtA[i] = 0x12 |
| 7738 | i++ |
| 7739 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Role))) |
| 7740 | i += copy(dAtA[i:], m.Role) |
| 7741 | } |
| 7742 | return i, nil |
| 7743 | } |
| 7744 | |
| 7745 | func (m *AuthUserRevokeRoleRequest) Marshal() (dAtA []byte, err error) { |
| 7746 | size := m.Size() |
| 7747 | dAtA = make([]byte, size) |
| 7748 | n, err := m.MarshalTo(dAtA) |
| 7749 | if err != nil { |
| 7750 | return nil, err |
| 7751 | } |
| 7752 | return dAtA[:n], nil |
| 7753 | } |
| 7754 | |
| 7755 | func (m *AuthUserRevokeRoleRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7756 | var i int |
| 7757 | _ = i |
| 7758 | var l int |
| 7759 | _ = l |
| 7760 | if len(m.Name) > 0 { |
| 7761 | dAtA[i] = 0xa |
| 7762 | i++ |
| 7763 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 7764 | i += copy(dAtA[i:], m.Name) |
| 7765 | } |
| 7766 | if len(m.Role) > 0 { |
| 7767 | dAtA[i] = 0x12 |
| 7768 | i++ |
| 7769 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Role))) |
| 7770 | i += copy(dAtA[i:], m.Role) |
| 7771 | } |
| 7772 | return i, nil |
| 7773 | } |
| 7774 | |
| 7775 | func (m *AuthRoleAddRequest) Marshal() (dAtA []byte, err error) { |
| 7776 | size := m.Size() |
| 7777 | dAtA = make([]byte, size) |
| 7778 | n, err := m.MarshalTo(dAtA) |
| 7779 | if err != nil { |
| 7780 | return nil, err |
| 7781 | } |
| 7782 | return dAtA[:n], nil |
| 7783 | } |
| 7784 | |
| 7785 | func (m *AuthRoleAddRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7786 | var i int |
| 7787 | _ = i |
| 7788 | var l int |
| 7789 | _ = l |
| 7790 | if len(m.Name) > 0 { |
| 7791 | dAtA[i] = 0xa |
| 7792 | i++ |
| 7793 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 7794 | i += copy(dAtA[i:], m.Name) |
| 7795 | } |
| 7796 | return i, nil |
| 7797 | } |
| 7798 | |
| 7799 | func (m *AuthRoleGetRequest) Marshal() (dAtA []byte, err error) { |
| 7800 | size := m.Size() |
| 7801 | dAtA = make([]byte, size) |
| 7802 | n, err := m.MarshalTo(dAtA) |
| 7803 | if err != nil { |
| 7804 | return nil, err |
| 7805 | } |
| 7806 | return dAtA[:n], nil |
| 7807 | } |
| 7808 | |
| 7809 | func (m *AuthRoleGetRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7810 | var i int |
| 7811 | _ = i |
| 7812 | var l int |
| 7813 | _ = l |
| 7814 | if len(m.Role) > 0 { |
| 7815 | dAtA[i] = 0xa |
| 7816 | i++ |
| 7817 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Role))) |
| 7818 | i += copy(dAtA[i:], m.Role) |
| 7819 | } |
| 7820 | return i, nil |
| 7821 | } |
| 7822 | |
| 7823 | func (m *AuthUserListRequest) Marshal() (dAtA []byte, err error) { |
| 7824 | size := m.Size() |
| 7825 | dAtA = make([]byte, size) |
| 7826 | n, err := m.MarshalTo(dAtA) |
| 7827 | if err != nil { |
| 7828 | return nil, err |
| 7829 | } |
| 7830 | return dAtA[:n], nil |
| 7831 | } |
| 7832 | |
| 7833 | func (m *AuthUserListRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7834 | var i int |
| 7835 | _ = i |
| 7836 | var l int |
| 7837 | _ = l |
| 7838 | return i, nil |
| 7839 | } |
| 7840 | |
| 7841 | func (m *AuthRoleListRequest) Marshal() (dAtA []byte, err error) { |
| 7842 | size := m.Size() |
| 7843 | dAtA = make([]byte, size) |
| 7844 | n, err := m.MarshalTo(dAtA) |
| 7845 | if err != nil { |
| 7846 | return nil, err |
| 7847 | } |
| 7848 | return dAtA[:n], nil |
| 7849 | } |
| 7850 | |
| 7851 | func (m *AuthRoleListRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7852 | var i int |
| 7853 | _ = i |
| 7854 | var l int |
| 7855 | _ = l |
| 7856 | return i, nil |
| 7857 | } |
| 7858 | |
| 7859 | func (m *AuthRoleDeleteRequest) Marshal() (dAtA []byte, err error) { |
| 7860 | size := m.Size() |
| 7861 | dAtA = make([]byte, size) |
| 7862 | n, err := m.MarshalTo(dAtA) |
| 7863 | if err != nil { |
| 7864 | return nil, err |
| 7865 | } |
| 7866 | return dAtA[:n], nil |
| 7867 | } |
| 7868 | |
| 7869 | func (m *AuthRoleDeleteRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7870 | var i int |
| 7871 | _ = i |
| 7872 | var l int |
| 7873 | _ = l |
| 7874 | if len(m.Role) > 0 { |
| 7875 | dAtA[i] = 0xa |
| 7876 | i++ |
| 7877 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Role))) |
| 7878 | i += copy(dAtA[i:], m.Role) |
| 7879 | } |
| 7880 | return i, nil |
| 7881 | } |
| 7882 | |
| 7883 | func (m *AuthRoleGrantPermissionRequest) Marshal() (dAtA []byte, err error) { |
| 7884 | size := m.Size() |
| 7885 | dAtA = make([]byte, size) |
| 7886 | n, err := m.MarshalTo(dAtA) |
| 7887 | if err != nil { |
| 7888 | return nil, err |
| 7889 | } |
| 7890 | return dAtA[:n], nil |
| 7891 | } |
| 7892 | |
| 7893 | func (m *AuthRoleGrantPermissionRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7894 | var i int |
| 7895 | _ = i |
| 7896 | var l int |
| 7897 | _ = l |
| 7898 | if len(m.Name) > 0 { |
| 7899 | dAtA[i] = 0xa |
| 7900 | i++ |
| 7901 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 7902 | i += copy(dAtA[i:], m.Name) |
| 7903 | } |
| 7904 | if m.Perm != nil { |
| 7905 | dAtA[i] = 0x12 |
| 7906 | i++ |
| 7907 | i = encodeVarintRpc(dAtA, i, uint64(m.Perm.Size())) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 7908 | n45, err := m.Perm.MarshalTo(dAtA[i:]) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 7909 | if err != nil { |
| 7910 | return 0, err |
| 7911 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 7912 | i += n45 |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 7913 | } |
| 7914 | return i, nil |
| 7915 | } |
| 7916 | |
| 7917 | func (m *AuthRoleRevokePermissionRequest) Marshal() (dAtA []byte, err error) { |
| 7918 | size := m.Size() |
| 7919 | dAtA = make([]byte, size) |
| 7920 | n, err := m.MarshalTo(dAtA) |
| 7921 | if err != nil { |
| 7922 | return nil, err |
| 7923 | } |
| 7924 | return dAtA[:n], nil |
| 7925 | } |
| 7926 | |
| 7927 | func (m *AuthRoleRevokePermissionRequest) MarshalTo(dAtA []byte) (int, error) { |
| 7928 | var i int |
| 7929 | _ = i |
| 7930 | var l int |
| 7931 | _ = l |
| 7932 | if len(m.Role) > 0 { |
| 7933 | dAtA[i] = 0xa |
| 7934 | i++ |
| 7935 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Role))) |
| 7936 | i += copy(dAtA[i:], m.Role) |
| 7937 | } |
| 7938 | if len(m.Key) > 0 { |
| 7939 | dAtA[i] = 0x12 |
| 7940 | i++ |
| 7941 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Key))) |
| 7942 | i += copy(dAtA[i:], m.Key) |
| 7943 | } |
| 7944 | if len(m.RangeEnd) > 0 { |
| 7945 | dAtA[i] = 0x1a |
| 7946 | i++ |
| 7947 | i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd))) |
| 7948 | i += copy(dAtA[i:], m.RangeEnd) |
| 7949 | } |
| 7950 | return i, nil |
| 7951 | } |
| 7952 | |
| 7953 | func (m *AuthEnableResponse) 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 *AuthEnableResponse) 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())) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 7972 | n46, err := m.Header.MarshalTo(dAtA[i:]) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 7973 | if err != nil { |
| 7974 | return 0, err |
| 7975 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 7976 | i += n46 |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 7977 | } |
| 7978 | return i, nil |
| 7979 | } |
| 7980 | |
| 7981 | func (m *AuthDisableResponse) 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 *AuthDisableResponse) 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())) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8000 | n47, err := m.Header.MarshalTo(dAtA[i:]) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8001 | if err != nil { |
| 8002 | return 0, err |
| 8003 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8004 | i += n47 |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8005 | } |
| 8006 | return i, nil |
| 8007 | } |
| 8008 | |
| 8009 | func (m *AuthenticateResponse) 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 *AuthenticateResponse) 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())) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8028 | n48, err := m.Header.MarshalTo(dAtA[i:]) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8029 | if err != nil { |
| 8030 | return 0, err |
| 8031 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8032 | i += n48 |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8033 | } |
| 8034 | if len(m.Token) > 0 { |
| 8035 | dAtA[i] = 0x12 |
| 8036 | i++ |
| 8037 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Token))) |
| 8038 | i += copy(dAtA[i:], m.Token) |
| 8039 | } |
| 8040 | return i, nil |
| 8041 | } |
| 8042 | |
| 8043 | func (m *AuthUserAddResponse) Marshal() (dAtA []byte, err error) { |
| 8044 | size := m.Size() |
| 8045 | dAtA = make([]byte, size) |
| 8046 | n, err := m.MarshalTo(dAtA) |
| 8047 | if err != nil { |
| 8048 | return nil, err |
| 8049 | } |
| 8050 | return dAtA[:n], nil |
| 8051 | } |
| 8052 | |
| 8053 | func (m *AuthUserAddResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8054 | var i int |
| 8055 | _ = i |
| 8056 | var l int |
| 8057 | _ = l |
| 8058 | if m.Header != nil { |
| 8059 | dAtA[i] = 0xa |
| 8060 | i++ |
| 8061 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8062 | n49, err := m.Header.MarshalTo(dAtA[i:]) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8063 | if err != nil { |
| 8064 | return 0, err |
| 8065 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8066 | i += n49 |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8067 | } |
| 8068 | return i, nil |
| 8069 | } |
| 8070 | |
| 8071 | func (m *AuthUserGetResponse) Marshal() (dAtA []byte, err error) { |
| 8072 | size := m.Size() |
| 8073 | dAtA = make([]byte, size) |
| 8074 | n, err := m.MarshalTo(dAtA) |
| 8075 | if err != nil { |
| 8076 | return nil, err |
| 8077 | } |
| 8078 | return dAtA[:n], nil |
| 8079 | } |
| 8080 | |
| 8081 | func (m *AuthUserGetResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8082 | var i int |
| 8083 | _ = i |
| 8084 | var l int |
| 8085 | _ = l |
| 8086 | if m.Header != nil { |
| 8087 | dAtA[i] = 0xa |
| 8088 | i++ |
| 8089 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8090 | n50, err := m.Header.MarshalTo(dAtA[i:]) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8091 | if err != nil { |
| 8092 | return 0, err |
| 8093 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8094 | i += n50 |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8095 | } |
| 8096 | if len(m.Roles) > 0 { |
| 8097 | for _, s := range m.Roles { |
| 8098 | dAtA[i] = 0x12 |
| 8099 | i++ |
| 8100 | l = len(s) |
| 8101 | for l >= 1<<7 { |
| 8102 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 8103 | l >>= 7 |
| 8104 | i++ |
| 8105 | } |
| 8106 | dAtA[i] = uint8(l) |
| 8107 | i++ |
| 8108 | i += copy(dAtA[i:], s) |
| 8109 | } |
| 8110 | } |
| 8111 | return i, nil |
| 8112 | } |
| 8113 | |
| 8114 | func (m *AuthUserDeleteResponse) Marshal() (dAtA []byte, err error) { |
| 8115 | size := m.Size() |
| 8116 | dAtA = make([]byte, size) |
| 8117 | n, err := m.MarshalTo(dAtA) |
| 8118 | if err != nil { |
| 8119 | return nil, err |
| 8120 | } |
| 8121 | return dAtA[:n], nil |
| 8122 | } |
| 8123 | |
| 8124 | func (m *AuthUserDeleteResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8125 | var i int |
| 8126 | _ = i |
| 8127 | var l int |
| 8128 | _ = l |
| 8129 | if m.Header != nil { |
| 8130 | dAtA[i] = 0xa |
| 8131 | i++ |
| 8132 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8133 | n51, err := m.Header.MarshalTo(dAtA[i:]) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8134 | if err != nil { |
| 8135 | return 0, err |
| 8136 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8137 | i += n51 |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8138 | } |
| 8139 | return i, nil |
| 8140 | } |
| 8141 | |
| 8142 | func (m *AuthUserChangePasswordResponse) Marshal() (dAtA []byte, err error) { |
| 8143 | size := m.Size() |
| 8144 | dAtA = make([]byte, size) |
| 8145 | n, err := m.MarshalTo(dAtA) |
| 8146 | if err != nil { |
| 8147 | return nil, err |
| 8148 | } |
| 8149 | return dAtA[:n], nil |
| 8150 | } |
| 8151 | |
| 8152 | func (m *AuthUserChangePasswordResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8153 | var i int |
| 8154 | _ = i |
| 8155 | var l int |
| 8156 | _ = l |
| 8157 | if m.Header != nil { |
| 8158 | dAtA[i] = 0xa |
| 8159 | i++ |
| 8160 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8161 | n52, err := m.Header.MarshalTo(dAtA[i:]) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8162 | if err != nil { |
| 8163 | return 0, err |
| 8164 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8165 | i += n52 |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8166 | } |
| 8167 | return i, nil |
| 8168 | } |
| 8169 | |
| 8170 | func (m *AuthUserGrantRoleResponse) Marshal() (dAtA []byte, err error) { |
| 8171 | size := m.Size() |
| 8172 | dAtA = make([]byte, size) |
| 8173 | n, err := m.MarshalTo(dAtA) |
| 8174 | if err != nil { |
| 8175 | return nil, err |
| 8176 | } |
| 8177 | return dAtA[:n], nil |
| 8178 | } |
| 8179 | |
| 8180 | func (m *AuthUserGrantRoleResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8181 | var i int |
| 8182 | _ = i |
| 8183 | var l int |
| 8184 | _ = l |
| 8185 | if m.Header != nil { |
| 8186 | dAtA[i] = 0xa |
| 8187 | i++ |
| 8188 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8189 | n53, err := m.Header.MarshalTo(dAtA[i:]) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8190 | if err != nil { |
| 8191 | return 0, err |
| 8192 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8193 | i += n53 |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8194 | } |
| 8195 | return i, nil |
| 8196 | } |
| 8197 | |
| 8198 | func (m *AuthUserRevokeRoleResponse) Marshal() (dAtA []byte, err error) { |
| 8199 | size := m.Size() |
| 8200 | dAtA = make([]byte, size) |
| 8201 | n, err := m.MarshalTo(dAtA) |
| 8202 | if err != nil { |
| 8203 | return nil, err |
| 8204 | } |
| 8205 | return dAtA[:n], nil |
| 8206 | } |
| 8207 | |
| 8208 | func (m *AuthUserRevokeRoleResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8209 | var i int |
| 8210 | _ = i |
| 8211 | var l int |
| 8212 | _ = l |
| 8213 | if m.Header != nil { |
| 8214 | dAtA[i] = 0xa |
| 8215 | i++ |
| 8216 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8217 | n54, err := m.Header.MarshalTo(dAtA[i:]) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8218 | if err != nil { |
| 8219 | return 0, err |
| 8220 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8221 | i += n54 |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8222 | } |
| 8223 | return i, nil |
| 8224 | } |
| 8225 | |
| 8226 | func (m *AuthRoleAddResponse) Marshal() (dAtA []byte, err error) { |
| 8227 | size := m.Size() |
| 8228 | dAtA = make([]byte, size) |
| 8229 | n, err := m.MarshalTo(dAtA) |
| 8230 | if err != nil { |
| 8231 | return nil, err |
| 8232 | } |
| 8233 | return dAtA[:n], nil |
| 8234 | } |
| 8235 | |
| 8236 | func (m *AuthRoleAddResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8237 | var i int |
| 8238 | _ = i |
| 8239 | var l int |
| 8240 | _ = l |
| 8241 | if m.Header != nil { |
| 8242 | dAtA[i] = 0xa |
| 8243 | i++ |
| 8244 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8245 | n55, err := m.Header.MarshalTo(dAtA[i:]) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8246 | if err != nil { |
| 8247 | return 0, err |
| 8248 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8249 | i += n55 |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8250 | } |
| 8251 | return i, nil |
| 8252 | } |
| 8253 | |
| 8254 | func (m *AuthRoleGetResponse) Marshal() (dAtA []byte, err error) { |
| 8255 | size := m.Size() |
| 8256 | dAtA = make([]byte, size) |
| 8257 | n, err := m.MarshalTo(dAtA) |
| 8258 | if err != nil { |
| 8259 | return nil, err |
| 8260 | } |
| 8261 | return dAtA[:n], nil |
| 8262 | } |
| 8263 | |
| 8264 | func (m *AuthRoleGetResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8265 | var i int |
| 8266 | _ = i |
| 8267 | var l int |
| 8268 | _ = l |
| 8269 | if m.Header != nil { |
| 8270 | dAtA[i] = 0xa |
| 8271 | i++ |
| 8272 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8273 | n56, err := m.Header.MarshalTo(dAtA[i:]) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8274 | if err != nil { |
| 8275 | return 0, err |
| 8276 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8277 | i += n56 |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8278 | } |
| 8279 | if len(m.Perm) > 0 { |
| 8280 | for _, msg := range m.Perm { |
| 8281 | dAtA[i] = 0x12 |
| 8282 | i++ |
| 8283 | i = encodeVarintRpc(dAtA, i, uint64(msg.Size())) |
| 8284 | n, err := msg.MarshalTo(dAtA[i:]) |
| 8285 | if err != nil { |
| 8286 | return 0, err |
| 8287 | } |
| 8288 | i += n |
| 8289 | } |
| 8290 | } |
| 8291 | return i, nil |
| 8292 | } |
| 8293 | |
| 8294 | func (m *AuthRoleListResponse) Marshal() (dAtA []byte, err error) { |
| 8295 | size := m.Size() |
| 8296 | dAtA = make([]byte, size) |
| 8297 | n, err := m.MarshalTo(dAtA) |
| 8298 | if err != nil { |
| 8299 | return nil, err |
| 8300 | } |
| 8301 | return dAtA[:n], nil |
| 8302 | } |
| 8303 | |
| 8304 | func (m *AuthRoleListResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8305 | var i int |
| 8306 | _ = i |
| 8307 | var l int |
| 8308 | _ = l |
| 8309 | if m.Header != nil { |
| 8310 | dAtA[i] = 0xa |
| 8311 | i++ |
| 8312 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8313 | n57, err := m.Header.MarshalTo(dAtA[i:]) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8314 | if err != nil { |
| 8315 | return 0, err |
| 8316 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8317 | i += n57 |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8318 | } |
| 8319 | if len(m.Roles) > 0 { |
| 8320 | for _, s := range m.Roles { |
| 8321 | dAtA[i] = 0x12 |
| 8322 | i++ |
| 8323 | l = len(s) |
| 8324 | for l >= 1<<7 { |
| 8325 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 8326 | l >>= 7 |
| 8327 | i++ |
| 8328 | } |
| 8329 | dAtA[i] = uint8(l) |
| 8330 | i++ |
| 8331 | i += copy(dAtA[i:], s) |
| 8332 | } |
| 8333 | } |
| 8334 | return i, nil |
| 8335 | } |
| 8336 | |
| 8337 | func (m *AuthUserListResponse) Marshal() (dAtA []byte, err error) { |
| 8338 | size := m.Size() |
| 8339 | dAtA = make([]byte, size) |
| 8340 | n, err := m.MarshalTo(dAtA) |
| 8341 | if err != nil { |
| 8342 | return nil, err |
| 8343 | } |
| 8344 | return dAtA[:n], nil |
| 8345 | } |
| 8346 | |
| 8347 | func (m *AuthUserListResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8348 | var i int |
| 8349 | _ = i |
| 8350 | var l int |
| 8351 | _ = l |
| 8352 | if m.Header != nil { |
| 8353 | dAtA[i] = 0xa |
| 8354 | i++ |
| 8355 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8356 | n58, err := m.Header.MarshalTo(dAtA[i:]) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8357 | if err != nil { |
| 8358 | return 0, err |
| 8359 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8360 | i += n58 |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8361 | } |
| 8362 | if len(m.Users) > 0 { |
| 8363 | for _, s := range m.Users { |
| 8364 | dAtA[i] = 0x12 |
| 8365 | i++ |
| 8366 | l = len(s) |
| 8367 | for l >= 1<<7 { |
| 8368 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 8369 | l >>= 7 |
| 8370 | i++ |
| 8371 | } |
| 8372 | dAtA[i] = uint8(l) |
| 8373 | i++ |
| 8374 | i += copy(dAtA[i:], s) |
| 8375 | } |
| 8376 | } |
| 8377 | return i, nil |
| 8378 | } |
| 8379 | |
| 8380 | func (m *AuthRoleDeleteResponse) Marshal() (dAtA []byte, err error) { |
| 8381 | size := m.Size() |
| 8382 | dAtA = make([]byte, size) |
| 8383 | n, err := m.MarshalTo(dAtA) |
| 8384 | if err != nil { |
| 8385 | return nil, err |
| 8386 | } |
| 8387 | return dAtA[:n], nil |
| 8388 | } |
| 8389 | |
| 8390 | func (m *AuthRoleDeleteResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8391 | var i int |
| 8392 | _ = i |
| 8393 | var l int |
| 8394 | _ = l |
| 8395 | if m.Header != nil { |
| 8396 | dAtA[i] = 0xa |
| 8397 | i++ |
| 8398 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8399 | n59, err := m.Header.MarshalTo(dAtA[i:]) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8400 | if err != nil { |
| 8401 | return 0, err |
| 8402 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8403 | i += n59 |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8404 | } |
| 8405 | return i, nil |
| 8406 | } |
| 8407 | |
| 8408 | func (m *AuthRoleGrantPermissionResponse) Marshal() (dAtA []byte, err error) { |
| 8409 | size := m.Size() |
| 8410 | dAtA = make([]byte, size) |
| 8411 | n, err := m.MarshalTo(dAtA) |
| 8412 | if err != nil { |
| 8413 | return nil, err |
| 8414 | } |
| 8415 | return dAtA[:n], nil |
| 8416 | } |
| 8417 | |
| 8418 | func (m *AuthRoleGrantPermissionResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8419 | var i int |
| 8420 | _ = i |
| 8421 | var l int |
| 8422 | _ = l |
| 8423 | if m.Header != nil { |
| 8424 | dAtA[i] = 0xa |
| 8425 | i++ |
| 8426 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8427 | n60, err := m.Header.MarshalTo(dAtA[i:]) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8428 | if err != nil { |
| 8429 | return 0, err |
| 8430 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8431 | i += n60 |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8432 | } |
| 8433 | return i, nil |
| 8434 | } |
| 8435 | |
| 8436 | func (m *AuthRoleRevokePermissionResponse) Marshal() (dAtA []byte, err error) { |
| 8437 | size := m.Size() |
| 8438 | dAtA = make([]byte, size) |
| 8439 | n, err := m.MarshalTo(dAtA) |
| 8440 | if err != nil { |
| 8441 | return nil, err |
| 8442 | } |
| 8443 | return dAtA[:n], nil |
| 8444 | } |
| 8445 | |
| 8446 | func (m *AuthRoleRevokePermissionResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8447 | var i int |
| 8448 | _ = i |
| 8449 | var l int |
| 8450 | _ = l |
| 8451 | if m.Header != nil { |
| 8452 | dAtA[i] = 0xa |
| 8453 | i++ |
| 8454 | i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8455 | n61, err := m.Header.MarshalTo(dAtA[i:]) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8456 | if err != nil { |
| 8457 | return 0, err |
| 8458 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 8459 | i += n61 |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 8460 | } |
| 8461 | return i, nil |
| 8462 | } |
| 8463 | |
| 8464 | func encodeVarintRpc(dAtA []byte, offset int, v uint64) int { |
| 8465 | for v >= 1<<7 { |
| 8466 | dAtA[offset] = uint8(v&0x7f | 0x80) |
| 8467 | v >>= 7 |
| 8468 | offset++ |
| 8469 | } |
| 8470 | dAtA[offset] = uint8(v) |
| 8471 | return offset + 1 |
| 8472 | } |
| 8473 | func (m *ResponseHeader) Size() (n int) { |
| 8474 | var l int |
| 8475 | _ = l |
| 8476 | if m.ClusterId != 0 { |
| 8477 | n += 1 + sovRpc(uint64(m.ClusterId)) |
| 8478 | } |
| 8479 | if m.MemberId != 0 { |
| 8480 | n += 1 + sovRpc(uint64(m.MemberId)) |
| 8481 | } |
| 8482 | if m.Revision != 0 { |
| 8483 | n += 1 + sovRpc(uint64(m.Revision)) |
| 8484 | } |
| 8485 | if m.RaftTerm != 0 { |
| 8486 | n += 1 + sovRpc(uint64(m.RaftTerm)) |
| 8487 | } |
| 8488 | return n |
| 8489 | } |
| 8490 | |
| 8491 | func (m *RangeRequest) Size() (n int) { |
| 8492 | var l int |
| 8493 | _ = l |
| 8494 | l = len(m.Key) |
| 8495 | if l > 0 { |
| 8496 | n += 1 + l + sovRpc(uint64(l)) |
| 8497 | } |
| 8498 | l = len(m.RangeEnd) |
| 8499 | if l > 0 { |
| 8500 | n += 1 + l + sovRpc(uint64(l)) |
| 8501 | } |
| 8502 | if m.Limit != 0 { |
| 8503 | n += 1 + sovRpc(uint64(m.Limit)) |
| 8504 | } |
| 8505 | if m.Revision != 0 { |
| 8506 | n += 1 + sovRpc(uint64(m.Revision)) |
| 8507 | } |
| 8508 | if m.SortOrder != 0 { |
| 8509 | n += 1 + sovRpc(uint64(m.SortOrder)) |
| 8510 | } |
| 8511 | if m.SortTarget != 0 { |
| 8512 | n += 1 + sovRpc(uint64(m.SortTarget)) |
| 8513 | } |
| 8514 | if m.Serializable { |
| 8515 | n += 2 |
| 8516 | } |
| 8517 | if m.KeysOnly { |
| 8518 | n += 2 |
| 8519 | } |
| 8520 | if m.CountOnly { |
| 8521 | n += 2 |
| 8522 | } |
| 8523 | if m.MinModRevision != 0 { |
| 8524 | n += 1 + sovRpc(uint64(m.MinModRevision)) |
| 8525 | } |
| 8526 | if m.MaxModRevision != 0 { |
| 8527 | n += 1 + sovRpc(uint64(m.MaxModRevision)) |
| 8528 | } |
| 8529 | if m.MinCreateRevision != 0 { |
| 8530 | n += 1 + sovRpc(uint64(m.MinCreateRevision)) |
| 8531 | } |
| 8532 | if m.MaxCreateRevision != 0 { |
| 8533 | n += 1 + sovRpc(uint64(m.MaxCreateRevision)) |
| 8534 | } |
| 8535 | return n |
| 8536 | } |
| 8537 | |
| 8538 | func (m *RangeResponse) Size() (n int) { |
| 8539 | var l int |
| 8540 | _ = l |
| 8541 | if m.Header != nil { |
| 8542 | l = m.Header.Size() |
| 8543 | n += 1 + l + sovRpc(uint64(l)) |
| 8544 | } |
| 8545 | if len(m.Kvs) > 0 { |
| 8546 | for _, e := range m.Kvs { |
| 8547 | l = e.Size() |
| 8548 | n += 1 + l + sovRpc(uint64(l)) |
| 8549 | } |
| 8550 | } |
| 8551 | if m.More { |
| 8552 | n += 2 |
| 8553 | } |
| 8554 | if m.Count != 0 { |
| 8555 | n += 1 + sovRpc(uint64(m.Count)) |
| 8556 | } |
| 8557 | return n |
| 8558 | } |
| 8559 | |
| 8560 | func (m *PutRequest) Size() (n int) { |
| 8561 | var l int |
| 8562 | _ = l |
| 8563 | l = len(m.Key) |
| 8564 | if l > 0 { |
| 8565 | n += 1 + l + sovRpc(uint64(l)) |
| 8566 | } |
| 8567 | l = len(m.Value) |
| 8568 | if l > 0 { |
| 8569 | n += 1 + l + sovRpc(uint64(l)) |
| 8570 | } |
| 8571 | if m.Lease != 0 { |
| 8572 | n += 1 + sovRpc(uint64(m.Lease)) |
| 8573 | } |
| 8574 | if m.PrevKv { |
| 8575 | n += 2 |
| 8576 | } |
| 8577 | if m.IgnoreValue { |
| 8578 | n += 2 |
| 8579 | } |
| 8580 | if m.IgnoreLease { |
| 8581 | n += 2 |
| 8582 | } |
| 8583 | return n |
| 8584 | } |
| 8585 | |
| 8586 | func (m *PutResponse) Size() (n int) { |
| 8587 | var l int |
| 8588 | _ = l |
| 8589 | if m.Header != nil { |
| 8590 | l = m.Header.Size() |
| 8591 | n += 1 + l + sovRpc(uint64(l)) |
| 8592 | } |
| 8593 | if m.PrevKv != nil { |
| 8594 | l = m.PrevKv.Size() |
| 8595 | n += 1 + l + sovRpc(uint64(l)) |
| 8596 | } |
| 8597 | return n |
| 8598 | } |
| 8599 | |
| 8600 | func (m *DeleteRangeRequest) Size() (n int) { |
| 8601 | var l int |
| 8602 | _ = l |
| 8603 | l = len(m.Key) |
| 8604 | if l > 0 { |
| 8605 | n += 1 + l + sovRpc(uint64(l)) |
| 8606 | } |
| 8607 | l = len(m.RangeEnd) |
| 8608 | if l > 0 { |
| 8609 | n += 1 + l + sovRpc(uint64(l)) |
| 8610 | } |
| 8611 | if m.PrevKv { |
| 8612 | n += 2 |
| 8613 | } |
| 8614 | return n |
| 8615 | } |
| 8616 | |
| 8617 | func (m *DeleteRangeResponse) Size() (n int) { |
| 8618 | var l int |
| 8619 | _ = l |
| 8620 | if m.Header != nil { |
| 8621 | l = m.Header.Size() |
| 8622 | n += 1 + l + sovRpc(uint64(l)) |
| 8623 | } |
| 8624 | if m.Deleted != 0 { |
| 8625 | n += 1 + sovRpc(uint64(m.Deleted)) |
| 8626 | } |
| 8627 | if len(m.PrevKvs) > 0 { |
| 8628 | for _, e := range m.PrevKvs { |
| 8629 | l = e.Size() |
| 8630 | n += 1 + l + sovRpc(uint64(l)) |
| 8631 | } |
| 8632 | } |
| 8633 | return n |
| 8634 | } |
| 8635 | |
| 8636 | func (m *RequestOp) Size() (n int) { |
| 8637 | var l int |
| 8638 | _ = l |
| 8639 | if m.Request != nil { |
| 8640 | n += m.Request.Size() |
| 8641 | } |
| 8642 | return n |
| 8643 | } |
| 8644 | |
| 8645 | func (m *RequestOp_RequestRange) Size() (n int) { |
| 8646 | var l int |
| 8647 | _ = l |
| 8648 | if m.RequestRange != nil { |
| 8649 | l = m.RequestRange.Size() |
| 8650 | n += 1 + l + sovRpc(uint64(l)) |
| 8651 | } |
| 8652 | return n |
| 8653 | } |
| 8654 | func (m *RequestOp_RequestPut) Size() (n int) { |
| 8655 | var l int |
| 8656 | _ = l |
| 8657 | if m.RequestPut != nil { |
| 8658 | l = m.RequestPut.Size() |
| 8659 | n += 1 + l + sovRpc(uint64(l)) |
| 8660 | } |
| 8661 | return n |
| 8662 | } |
| 8663 | func (m *RequestOp_RequestDeleteRange) Size() (n int) { |
| 8664 | var l int |
| 8665 | _ = l |
| 8666 | if m.RequestDeleteRange != nil { |
| 8667 | l = m.RequestDeleteRange.Size() |
| 8668 | n += 1 + l + sovRpc(uint64(l)) |
| 8669 | } |
| 8670 | return n |
| 8671 | } |
| 8672 | func (m *RequestOp_RequestTxn) Size() (n int) { |
| 8673 | var l int |
| 8674 | _ = l |
| 8675 | if m.RequestTxn != nil { |
| 8676 | l = m.RequestTxn.Size() |
| 8677 | n += 1 + l + sovRpc(uint64(l)) |
| 8678 | } |
| 8679 | return n |
| 8680 | } |
| 8681 | func (m *ResponseOp) Size() (n int) { |
| 8682 | var l int |
| 8683 | _ = l |
| 8684 | if m.Response != nil { |
| 8685 | n += m.Response.Size() |
| 8686 | } |
| 8687 | return n |
| 8688 | } |
| 8689 | |
| 8690 | func (m *ResponseOp_ResponseRange) Size() (n int) { |
| 8691 | var l int |
| 8692 | _ = l |
| 8693 | if m.ResponseRange != nil { |
| 8694 | l = m.ResponseRange.Size() |
| 8695 | n += 1 + l + sovRpc(uint64(l)) |
| 8696 | } |
| 8697 | return n |
| 8698 | } |
| 8699 | func (m *ResponseOp_ResponsePut) Size() (n int) { |
| 8700 | var l int |
| 8701 | _ = l |
| 8702 | if m.ResponsePut != nil { |
| 8703 | l = m.ResponsePut.Size() |
| 8704 | n += 1 + l + sovRpc(uint64(l)) |
| 8705 | } |
| 8706 | return n |
| 8707 | } |
| 8708 | func (m *ResponseOp_ResponseDeleteRange) Size() (n int) { |
| 8709 | var l int |
| 8710 | _ = l |
| 8711 | if m.ResponseDeleteRange != nil { |
| 8712 | l = m.ResponseDeleteRange.Size() |
| 8713 | n += 1 + l + sovRpc(uint64(l)) |
| 8714 | } |
| 8715 | return n |
| 8716 | } |
| 8717 | func (m *ResponseOp_ResponseTxn) Size() (n int) { |
| 8718 | var l int |
| 8719 | _ = l |
| 8720 | if m.ResponseTxn != nil { |
| 8721 | l = m.ResponseTxn.Size() |
| 8722 | n += 1 + l + sovRpc(uint64(l)) |
| 8723 | } |
| 8724 | return n |
| 8725 | } |
| 8726 | func (m *Compare) Size() (n int) { |
| 8727 | var l int |
| 8728 | _ = l |
| 8729 | if m.Result != 0 { |
| 8730 | n += 1 + sovRpc(uint64(m.Result)) |
| 8731 | } |
| 8732 | if m.Target != 0 { |
| 8733 | n += 1 + sovRpc(uint64(m.Target)) |
| 8734 | } |
| 8735 | l = len(m.Key) |
| 8736 | if l > 0 { |
| 8737 | n += 1 + l + sovRpc(uint64(l)) |
| 8738 | } |
| 8739 | if m.TargetUnion != nil { |
| 8740 | n += m.TargetUnion.Size() |
| 8741 | } |
| 8742 | l = len(m.RangeEnd) |
| 8743 | if l > 0 { |
| 8744 | n += 2 + l + sovRpc(uint64(l)) |
| 8745 | } |
| 8746 | return n |
| 8747 | } |
| 8748 | |
| 8749 | func (m *Compare_Version) Size() (n int) { |
| 8750 | var l int |
| 8751 | _ = l |
| 8752 | n += 1 + sovRpc(uint64(m.Version)) |
| 8753 | return n |
| 8754 | } |
| 8755 | func (m *Compare_CreateRevision) Size() (n int) { |
| 8756 | var l int |
| 8757 | _ = l |
| 8758 | n += 1 + sovRpc(uint64(m.CreateRevision)) |
| 8759 | return n |
| 8760 | } |
| 8761 | func (m *Compare_ModRevision) Size() (n int) { |
| 8762 | var l int |
| 8763 | _ = l |
| 8764 | n += 1 + sovRpc(uint64(m.ModRevision)) |
| 8765 | return n |
| 8766 | } |
| 8767 | func (m *Compare_Value) Size() (n int) { |
| 8768 | var l int |
| 8769 | _ = l |
| 8770 | if m.Value != nil { |
| 8771 | l = len(m.Value) |
| 8772 | n += 1 + l + sovRpc(uint64(l)) |
| 8773 | } |
| 8774 | return n |
| 8775 | } |
| 8776 | func (m *Compare_Lease) Size() (n int) { |
| 8777 | var l int |
| 8778 | _ = l |
| 8779 | n += 1 + sovRpc(uint64(m.Lease)) |
| 8780 | return n |
| 8781 | } |
| 8782 | func (m *TxnRequest) Size() (n int) { |
| 8783 | var l int |
| 8784 | _ = l |
| 8785 | if len(m.Compare) > 0 { |
| 8786 | for _, e := range m.Compare { |
| 8787 | l = e.Size() |
| 8788 | n += 1 + l + sovRpc(uint64(l)) |
| 8789 | } |
| 8790 | } |
| 8791 | if len(m.Success) > 0 { |
| 8792 | for _, e := range m.Success { |
| 8793 | l = e.Size() |
| 8794 | n += 1 + l + sovRpc(uint64(l)) |
| 8795 | } |
| 8796 | } |
| 8797 | if len(m.Failure) > 0 { |
| 8798 | for _, e := range m.Failure { |
| 8799 | l = e.Size() |
| 8800 | n += 1 + l + sovRpc(uint64(l)) |
| 8801 | } |
| 8802 | } |
| 8803 | return n |
| 8804 | } |
| 8805 | |
| 8806 | func (m *TxnResponse) Size() (n int) { |
| 8807 | var l int |
| 8808 | _ = l |
| 8809 | if m.Header != nil { |
| 8810 | l = m.Header.Size() |
| 8811 | n += 1 + l + sovRpc(uint64(l)) |
| 8812 | } |
| 8813 | if m.Succeeded { |
| 8814 | n += 2 |
| 8815 | } |
| 8816 | if len(m.Responses) > 0 { |
| 8817 | for _, e := range m.Responses { |
| 8818 | l = e.Size() |
| 8819 | n += 1 + l + sovRpc(uint64(l)) |
| 8820 | } |
| 8821 | } |
| 8822 | return n |
| 8823 | } |
| 8824 | |
| 8825 | func (m *CompactionRequest) Size() (n int) { |
| 8826 | var l int |
| 8827 | _ = l |
| 8828 | if m.Revision != 0 { |
| 8829 | n += 1 + sovRpc(uint64(m.Revision)) |
| 8830 | } |
| 8831 | if m.Physical { |
| 8832 | n += 2 |
| 8833 | } |
| 8834 | return n |
| 8835 | } |
| 8836 | |
| 8837 | func (m *CompactionResponse) Size() (n int) { |
| 8838 | var l int |
| 8839 | _ = l |
| 8840 | if m.Header != nil { |
| 8841 | l = m.Header.Size() |
| 8842 | n += 1 + l + sovRpc(uint64(l)) |
| 8843 | } |
| 8844 | return n |
| 8845 | } |
| 8846 | |
| 8847 | func (m *HashRequest) Size() (n int) { |
| 8848 | var l int |
| 8849 | _ = l |
| 8850 | return n |
| 8851 | } |
| 8852 | |
| 8853 | func (m *HashKVRequest) Size() (n int) { |
| 8854 | var l int |
| 8855 | _ = l |
| 8856 | if m.Revision != 0 { |
| 8857 | n += 1 + sovRpc(uint64(m.Revision)) |
| 8858 | } |
| 8859 | return n |
| 8860 | } |
| 8861 | |
| 8862 | func (m *HashKVResponse) Size() (n int) { |
| 8863 | var l int |
| 8864 | _ = l |
| 8865 | if m.Header != nil { |
| 8866 | l = m.Header.Size() |
| 8867 | n += 1 + l + sovRpc(uint64(l)) |
| 8868 | } |
| 8869 | if m.Hash != 0 { |
| 8870 | n += 1 + sovRpc(uint64(m.Hash)) |
| 8871 | } |
| 8872 | if m.CompactRevision != 0 { |
| 8873 | n += 1 + sovRpc(uint64(m.CompactRevision)) |
| 8874 | } |
| 8875 | return n |
| 8876 | } |
| 8877 | |
| 8878 | func (m *HashResponse) Size() (n int) { |
| 8879 | var l int |
| 8880 | _ = l |
| 8881 | if m.Header != nil { |
| 8882 | l = m.Header.Size() |
| 8883 | n += 1 + l + sovRpc(uint64(l)) |
| 8884 | } |
| 8885 | if m.Hash != 0 { |
| 8886 | n += 1 + sovRpc(uint64(m.Hash)) |
| 8887 | } |
| 8888 | return n |
| 8889 | } |
| 8890 | |
| 8891 | func (m *SnapshotRequest) Size() (n int) { |
| 8892 | var l int |
| 8893 | _ = l |
| 8894 | return n |
| 8895 | } |
| 8896 | |
| 8897 | func (m *SnapshotResponse) Size() (n int) { |
| 8898 | var l int |
| 8899 | _ = l |
| 8900 | if m.Header != nil { |
| 8901 | l = m.Header.Size() |
| 8902 | n += 1 + l + sovRpc(uint64(l)) |
| 8903 | } |
| 8904 | if m.RemainingBytes != 0 { |
| 8905 | n += 1 + sovRpc(uint64(m.RemainingBytes)) |
| 8906 | } |
| 8907 | l = len(m.Blob) |
| 8908 | if l > 0 { |
| 8909 | n += 1 + l + sovRpc(uint64(l)) |
| 8910 | } |
| 8911 | return n |
| 8912 | } |
| 8913 | |
| 8914 | func (m *WatchRequest) Size() (n int) { |
| 8915 | var l int |
| 8916 | _ = l |
| 8917 | if m.RequestUnion != nil { |
| 8918 | n += m.RequestUnion.Size() |
| 8919 | } |
| 8920 | return n |
| 8921 | } |
| 8922 | |
| 8923 | func (m *WatchRequest_CreateRequest) Size() (n int) { |
| 8924 | var l int |
| 8925 | _ = l |
| 8926 | if m.CreateRequest != nil { |
| 8927 | l = m.CreateRequest.Size() |
| 8928 | n += 1 + l + sovRpc(uint64(l)) |
| 8929 | } |
| 8930 | return n |
| 8931 | } |
| 8932 | func (m *WatchRequest_CancelRequest) Size() (n int) { |
| 8933 | var l int |
| 8934 | _ = l |
| 8935 | if m.CancelRequest != nil { |
| 8936 | l = m.CancelRequest.Size() |
| 8937 | n += 1 + l + sovRpc(uint64(l)) |
| 8938 | } |
| 8939 | return n |
| 8940 | } |
| 8941 | func (m *WatchRequest_ProgressRequest) Size() (n int) { |
| 8942 | var l int |
| 8943 | _ = l |
| 8944 | if m.ProgressRequest != nil { |
| 8945 | l = m.ProgressRequest.Size() |
| 8946 | n += 1 + l + sovRpc(uint64(l)) |
| 8947 | } |
| 8948 | return n |
| 8949 | } |
| 8950 | func (m *WatchCreateRequest) Size() (n int) { |
| 8951 | var l int |
| 8952 | _ = l |
| 8953 | l = len(m.Key) |
| 8954 | if l > 0 { |
| 8955 | n += 1 + l + sovRpc(uint64(l)) |
| 8956 | } |
| 8957 | l = len(m.RangeEnd) |
| 8958 | if l > 0 { |
| 8959 | n += 1 + l + sovRpc(uint64(l)) |
| 8960 | } |
| 8961 | if m.StartRevision != 0 { |
| 8962 | n += 1 + sovRpc(uint64(m.StartRevision)) |
| 8963 | } |
| 8964 | if m.ProgressNotify { |
| 8965 | n += 2 |
| 8966 | } |
| 8967 | if len(m.Filters) > 0 { |
| 8968 | l = 0 |
| 8969 | for _, e := range m.Filters { |
| 8970 | l += sovRpc(uint64(e)) |
| 8971 | } |
| 8972 | n += 1 + sovRpc(uint64(l)) + l |
| 8973 | } |
| 8974 | if m.PrevKv { |
| 8975 | n += 2 |
| 8976 | } |
| 8977 | if m.WatchId != 0 { |
| 8978 | n += 1 + sovRpc(uint64(m.WatchId)) |
| 8979 | } |
| 8980 | if m.Fragment { |
| 8981 | n += 2 |
| 8982 | } |
| 8983 | return n |
| 8984 | } |
| 8985 | |
| 8986 | func (m *WatchCancelRequest) Size() (n int) { |
| 8987 | var l int |
| 8988 | _ = l |
| 8989 | if m.WatchId != 0 { |
| 8990 | n += 1 + sovRpc(uint64(m.WatchId)) |
| 8991 | } |
| 8992 | return n |
| 8993 | } |
| 8994 | |
| 8995 | func (m *WatchProgressRequest) Size() (n int) { |
| 8996 | var l int |
| 8997 | _ = l |
| 8998 | return n |
| 8999 | } |
| 9000 | |
| 9001 | func (m *WatchResponse) Size() (n int) { |
| 9002 | var l int |
| 9003 | _ = l |
| 9004 | if m.Header != nil { |
| 9005 | l = m.Header.Size() |
| 9006 | n += 1 + l + sovRpc(uint64(l)) |
| 9007 | } |
| 9008 | if m.WatchId != 0 { |
| 9009 | n += 1 + sovRpc(uint64(m.WatchId)) |
| 9010 | } |
| 9011 | if m.Created { |
| 9012 | n += 2 |
| 9013 | } |
| 9014 | if m.Canceled { |
| 9015 | n += 2 |
| 9016 | } |
| 9017 | if m.CompactRevision != 0 { |
| 9018 | n += 1 + sovRpc(uint64(m.CompactRevision)) |
| 9019 | } |
| 9020 | l = len(m.CancelReason) |
| 9021 | if l > 0 { |
| 9022 | n += 1 + l + sovRpc(uint64(l)) |
| 9023 | } |
| 9024 | if m.Fragment { |
| 9025 | n += 2 |
| 9026 | } |
| 9027 | if len(m.Events) > 0 { |
| 9028 | for _, e := range m.Events { |
| 9029 | l = e.Size() |
| 9030 | n += 1 + l + sovRpc(uint64(l)) |
| 9031 | } |
| 9032 | } |
| 9033 | return n |
| 9034 | } |
| 9035 | |
| 9036 | func (m *LeaseGrantRequest) Size() (n int) { |
| 9037 | var l int |
| 9038 | _ = l |
| 9039 | if m.TTL != 0 { |
| 9040 | n += 1 + sovRpc(uint64(m.TTL)) |
| 9041 | } |
| 9042 | if m.ID != 0 { |
| 9043 | n += 1 + sovRpc(uint64(m.ID)) |
| 9044 | } |
| 9045 | return n |
| 9046 | } |
| 9047 | |
| 9048 | func (m *LeaseGrantResponse) Size() (n int) { |
| 9049 | var l int |
| 9050 | _ = l |
| 9051 | if m.Header != nil { |
| 9052 | l = m.Header.Size() |
| 9053 | n += 1 + l + sovRpc(uint64(l)) |
| 9054 | } |
| 9055 | if m.ID != 0 { |
| 9056 | n += 1 + sovRpc(uint64(m.ID)) |
| 9057 | } |
| 9058 | if m.TTL != 0 { |
| 9059 | n += 1 + sovRpc(uint64(m.TTL)) |
| 9060 | } |
| 9061 | l = len(m.Error) |
| 9062 | if l > 0 { |
| 9063 | n += 1 + l + sovRpc(uint64(l)) |
| 9064 | } |
| 9065 | return n |
| 9066 | } |
| 9067 | |
| 9068 | func (m *LeaseRevokeRequest) Size() (n int) { |
| 9069 | var l int |
| 9070 | _ = l |
| 9071 | if m.ID != 0 { |
| 9072 | n += 1 + sovRpc(uint64(m.ID)) |
| 9073 | } |
| 9074 | return n |
| 9075 | } |
| 9076 | |
| 9077 | func (m *LeaseRevokeResponse) Size() (n int) { |
| 9078 | var l int |
| 9079 | _ = l |
| 9080 | if m.Header != nil { |
| 9081 | l = m.Header.Size() |
| 9082 | n += 1 + l + sovRpc(uint64(l)) |
| 9083 | } |
| 9084 | return n |
| 9085 | } |
| 9086 | |
| 9087 | func (m *LeaseCheckpoint) Size() (n int) { |
| 9088 | var l int |
| 9089 | _ = l |
| 9090 | if m.ID != 0 { |
| 9091 | n += 1 + sovRpc(uint64(m.ID)) |
| 9092 | } |
| 9093 | if m.Remaining_TTL != 0 { |
| 9094 | n += 1 + sovRpc(uint64(m.Remaining_TTL)) |
| 9095 | } |
| 9096 | return n |
| 9097 | } |
| 9098 | |
| 9099 | func (m *LeaseCheckpointRequest) Size() (n int) { |
| 9100 | var l int |
| 9101 | _ = l |
| 9102 | if len(m.Checkpoints) > 0 { |
| 9103 | for _, e := range m.Checkpoints { |
| 9104 | l = e.Size() |
| 9105 | n += 1 + l + sovRpc(uint64(l)) |
| 9106 | } |
| 9107 | } |
| 9108 | return n |
| 9109 | } |
| 9110 | |
| 9111 | func (m *LeaseCheckpointResponse) Size() (n int) { |
| 9112 | var l int |
| 9113 | _ = l |
| 9114 | if m.Header != nil { |
| 9115 | l = m.Header.Size() |
| 9116 | n += 1 + l + sovRpc(uint64(l)) |
| 9117 | } |
| 9118 | return n |
| 9119 | } |
| 9120 | |
| 9121 | func (m *LeaseKeepAliveRequest) Size() (n int) { |
| 9122 | var l int |
| 9123 | _ = l |
| 9124 | if m.ID != 0 { |
| 9125 | n += 1 + sovRpc(uint64(m.ID)) |
| 9126 | } |
| 9127 | return n |
| 9128 | } |
| 9129 | |
| 9130 | func (m *LeaseKeepAliveResponse) Size() (n int) { |
| 9131 | var l int |
| 9132 | _ = l |
| 9133 | if m.Header != nil { |
| 9134 | l = m.Header.Size() |
| 9135 | n += 1 + l + sovRpc(uint64(l)) |
| 9136 | } |
| 9137 | if m.ID != 0 { |
| 9138 | n += 1 + sovRpc(uint64(m.ID)) |
| 9139 | } |
| 9140 | if m.TTL != 0 { |
| 9141 | n += 1 + sovRpc(uint64(m.TTL)) |
| 9142 | } |
| 9143 | return n |
| 9144 | } |
| 9145 | |
| 9146 | func (m *LeaseTimeToLiveRequest) Size() (n int) { |
| 9147 | var l int |
| 9148 | _ = l |
| 9149 | if m.ID != 0 { |
| 9150 | n += 1 + sovRpc(uint64(m.ID)) |
| 9151 | } |
| 9152 | if m.Keys { |
| 9153 | n += 2 |
| 9154 | } |
| 9155 | return n |
| 9156 | } |
| 9157 | |
| 9158 | func (m *LeaseTimeToLiveResponse) Size() (n int) { |
| 9159 | var l int |
| 9160 | _ = l |
| 9161 | if m.Header != nil { |
| 9162 | l = m.Header.Size() |
| 9163 | n += 1 + l + sovRpc(uint64(l)) |
| 9164 | } |
| 9165 | if m.ID != 0 { |
| 9166 | n += 1 + sovRpc(uint64(m.ID)) |
| 9167 | } |
| 9168 | if m.TTL != 0 { |
| 9169 | n += 1 + sovRpc(uint64(m.TTL)) |
| 9170 | } |
| 9171 | if m.GrantedTTL != 0 { |
| 9172 | n += 1 + sovRpc(uint64(m.GrantedTTL)) |
| 9173 | } |
| 9174 | if len(m.Keys) > 0 { |
| 9175 | for _, b := range m.Keys { |
| 9176 | l = len(b) |
| 9177 | n += 1 + l + sovRpc(uint64(l)) |
| 9178 | } |
| 9179 | } |
| 9180 | return n |
| 9181 | } |
| 9182 | |
| 9183 | func (m *LeaseLeasesRequest) Size() (n int) { |
| 9184 | var l int |
| 9185 | _ = l |
| 9186 | return n |
| 9187 | } |
| 9188 | |
| 9189 | func (m *LeaseStatus) Size() (n int) { |
| 9190 | var l int |
| 9191 | _ = l |
| 9192 | if m.ID != 0 { |
| 9193 | n += 1 + sovRpc(uint64(m.ID)) |
| 9194 | } |
| 9195 | return n |
| 9196 | } |
| 9197 | |
| 9198 | func (m *LeaseLeasesResponse) Size() (n int) { |
| 9199 | var l int |
| 9200 | _ = l |
| 9201 | if m.Header != nil { |
| 9202 | l = m.Header.Size() |
| 9203 | n += 1 + l + sovRpc(uint64(l)) |
| 9204 | } |
| 9205 | if len(m.Leases) > 0 { |
| 9206 | for _, e := range m.Leases { |
| 9207 | l = e.Size() |
| 9208 | n += 1 + l + sovRpc(uint64(l)) |
| 9209 | } |
| 9210 | } |
| 9211 | return n |
| 9212 | } |
| 9213 | |
| 9214 | func (m *Member) Size() (n int) { |
| 9215 | var l int |
| 9216 | _ = l |
| 9217 | if m.ID != 0 { |
| 9218 | n += 1 + sovRpc(uint64(m.ID)) |
| 9219 | } |
| 9220 | l = len(m.Name) |
| 9221 | if l > 0 { |
| 9222 | n += 1 + l + sovRpc(uint64(l)) |
| 9223 | } |
| 9224 | if len(m.PeerURLs) > 0 { |
| 9225 | for _, s := range m.PeerURLs { |
| 9226 | l = len(s) |
| 9227 | n += 1 + l + sovRpc(uint64(l)) |
| 9228 | } |
| 9229 | } |
| 9230 | if len(m.ClientURLs) > 0 { |
| 9231 | for _, s := range m.ClientURLs { |
| 9232 | l = len(s) |
| 9233 | n += 1 + l + sovRpc(uint64(l)) |
| 9234 | } |
| 9235 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 9236 | if m.IsLearner { |
| 9237 | n += 2 |
| 9238 | } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 9239 | return n |
| 9240 | } |
| 9241 | |
| 9242 | func (m *MemberAddRequest) Size() (n int) { |
| 9243 | var l int |
| 9244 | _ = l |
| 9245 | if len(m.PeerURLs) > 0 { |
| 9246 | for _, s := range m.PeerURLs { |
| 9247 | l = len(s) |
| 9248 | n += 1 + l + sovRpc(uint64(l)) |
| 9249 | } |
| 9250 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 9251 | if m.IsLearner { |
| 9252 | n += 2 |
| 9253 | } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 9254 | return n |
| 9255 | } |
| 9256 | |
| 9257 | func (m *MemberAddResponse) Size() (n int) { |
| 9258 | var l int |
| 9259 | _ = l |
| 9260 | if m.Header != nil { |
| 9261 | l = m.Header.Size() |
| 9262 | n += 1 + l + sovRpc(uint64(l)) |
| 9263 | } |
| 9264 | if m.Member != nil { |
| 9265 | l = m.Member.Size() |
| 9266 | n += 1 + l + sovRpc(uint64(l)) |
| 9267 | } |
| 9268 | if len(m.Members) > 0 { |
| 9269 | for _, e := range m.Members { |
| 9270 | l = e.Size() |
| 9271 | n += 1 + l + sovRpc(uint64(l)) |
| 9272 | } |
| 9273 | } |
| 9274 | return n |
| 9275 | } |
| 9276 | |
| 9277 | func (m *MemberRemoveRequest) Size() (n int) { |
| 9278 | var l int |
| 9279 | _ = l |
| 9280 | if m.ID != 0 { |
| 9281 | n += 1 + sovRpc(uint64(m.ID)) |
| 9282 | } |
| 9283 | return n |
| 9284 | } |
| 9285 | |
| 9286 | func (m *MemberRemoveResponse) Size() (n int) { |
| 9287 | var l int |
| 9288 | _ = l |
| 9289 | if m.Header != nil { |
| 9290 | l = m.Header.Size() |
| 9291 | n += 1 + l + sovRpc(uint64(l)) |
| 9292 | } |
| 9293 | if len(m.Members) > 0 { |
| 9294 | for _, e := range m.Members { |
| 9295 | l = e.Size() |
| 9296 | n += 1 + l + sovRpc(uint64(l)) |
| 9297 | } |
| 9298 | } |
| 9299 | return n |
| 9300 | } |
| 9301 | |
| 9302 | func (m *MemberUpdateRequest) Size() (n int) { |
| 9303 | var l int |
| 9304 | _ = l |
| 9305 | if m.ID != 0 { |
| 9306 | n += 1 + sovRpc(uint64(m.ID)) |
| 9307 | } |
| 9308 | if len(m.PeerURLs) > 0 { |
| 9309 | for _, s := range m.PeerURLs { |
| 9310 | l = len(s) |
| 9311 | n += 1 + l + sovRpc(uint64(l)) |
| 9312 | } |
| 9313 | } |
| 9314 | return n |
| 9315 | } |
| 9316 | |
| 9317 | func (m *MemberUpdateResponse) Size() (n int) { |
| 9318 | var l int |
| 9319 | _ = l |
| 9320 | if m.Header != nil { |
| 9321 | l = m.Header.Size() |
| 9322 | n += 1 + l + sovRpc(uint64(l)) |
| 9323 | } |
| 9324 | if len(m.Members) > 0 { |
| 9325 | for _, e := range m.Members { |
| 9326 | l = e.Size() |
| 9327 | n += 1 + l + sovRpc(uint64(l)) |
| 9328 | } |
| 9329 | } |
| 9330 | return n |
| 9331 | } |
| 9332 | |
| 9333 | func (m *MemberListRequest) Size() (n int) { |
| 9334 | var l int |
| 9335 | _ = l |
| 9336 | return n |
| 9337 | } |
| 9338 | |
| 9339 | func (m *MemberListResponse) Size() (n int) { |
| 9340 | var l int |
| 9341 | _ = l |
| 9342 | if m.Header != nil { |
| 9343 | l = m.Header.Size() |
| 9344 | n += 1 + l + sovRpc(uint64(l)) |
| 9345 | } |
| 9346 | if len(m.Members) > 0 { |
| 9347 | for _, e := range m.Members { |
| 9348 | l = e.Size() |
| 9349 | n += 1 + l + sovRpc(uint64(l)) |
| 9350 | } |
| 9351 | } |
| 9352 | return n |
| 9353 | } |
| 9354 | |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 9355 | func (m *MemberPromoteRequest) Size() (n int) { |
| 9356 | var l int |
| 9357 | _ = l |
| 9358 | if m.ID != 0 { |
| 9359 | n += 1 + sovRpc(uint64(m.ID)) |
| 9360 | } |
| 9361 | return n |
| 9362 | } |
| 9363 | |
| 9364 | func (m *MemberPromoteResponse) Size() (n int) { |
| 9365 | var l int |
| 9366 | _ = l |
| 9367 | if m.Header != nil { |
| 9368 | l = m.Header.Size() |
| 9369 | n += 1 + l + sovRpc(uint64(l)) |
| 9370 | } |
| 9371 | if len(m.Members) > 0 { |
| 9372 | for _, e := range m.Members { |
| 9373 | l = e.Size() |
| 9374 | n += 1 + l + sovRpc(uint64(l)) |
| 9375 | } |
| 9376 | } |
| 9377 | return n |
| 9378 | } |
| 9379 | |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 9380 | func (m *DefragmentRequest) Size() (n int) { |
| 9381 | var l int |
| 9382 | _ = l |
| 9383 | return n |
| 9384 | } |
| 9385 | |
| 9386 | func (m *DefragmentResponse) Size() (n int) { |
| 9387 | var l int |
| 9388 | _ = l |
| 9389 | if m.Header != nil { |
| 9390 | l = m.Header.Size() |
| 9391 | n += 1 + l + sovRpc(uint64(l)) |
| 9392 | } |
| 9393 | return n |
| 9394 | } |
| 9395 | |
| 9396 | func (m *MoveLeaderRequest) Size() (n int) { |
| 9397 | var l int |
| 9398 | _ = l |
| 9399 | if m.TargetID != 0 { |
| 9400 | n += 1 + sovRpc(uint64(m.TargetID)) |
| 9401 | } |
| 9402 | return n |
| 9403 | } |
| 9404 | |
| 9405 | func (m *MoveLeaderResponse) Size() (n int) { |
| 9406 | var l int |
| 9407 | _ = l |
| 9408 | if m.Header != nil { |
| 9409 | l = m.Header.Size() |
| 9410 | n += 1 + l + sovRpc(uint64(l)) |
| 9411 | } |
| 9412 | return n |
| 9413 | } |
| 9414 | |
| 9415 | func (m *AlarmRequest) Size() (n int) { |
| 9416 | var l int |
| 9417 | _ = l |
| 9418 | if m.Action != 0 { |
| 9419 | n += 1 + sovRpc(uint64(m.Action)) |
| 9420 | } |
| 9421 | if m.MemberID != 0 { |
| 9422 | n += 1 + sovRpc(uint64(m.MemberID)) |
| 9423 | } |
| 9424 | if m.Alarm != 0 { |
| 9425 | n += 1 + sovRpc(uint64(m.Alarm)) |
| 9426 | } |
| 9427 | return n |
| 9428 | } |
| 9429 | |
| 9430 | func (m *AlarmMember) Size() (n int) { |
| 9431 | var l int |
| 9432 | _ = l |
| 9433 | if m.MemberID != 0 { |
| 9434 | n += 1 + sovRpc(uint64(m.MemberID)) |
| 9435 | } |
| 9436 | if m.Alarm != 0 { |
| 9437 | n += 1 + sovRpc(uint64(m.Alarm)) |
| 9438 | } |
| 9439 | return n |
| 9440 | } |
| 9441 | |
| 9442 | func (m *AlarmResponse) Size() (n int) { |
| 9443 | var l int |
| 9444 | _ = l |
| 9445 | if m.Header != nil { |
| 9446 | l = m.Header.Size() |
| 9447 | n += 1 + l + sovRpc(uint64(l)) |
| 9448 | } |
| 9449 | if len(m.Alarms) > 0 { |
| 9450 | for _, e := range m.Alarms { |
| 9451 | l = e.Size() |
| 9452 | n += 1 + l + sovRpc(uint64(l)) |
| 9453 | } |
| 9454 | } |
| 9455 | return n |
| 9456 | } |
| 9457 | |
| 9458 | func (m *StatusRequest) Size() (n int) { |
| 9459 | var l int |
| 9460 | _ = l |
| 9461 | return n |
| 9462 | } |
| 9463 | |
| 9464 | func (m *StatusResponse) 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 | l = len(m.Version) |
| 9472 | if l > 0 { |
| 9473 | n += 1 + l + sovRpc(uint64(l)) |
| 9474 | } |
| 9475 | if m.DbSize != 0 { |
| 9476 | n += 1 + sovRpc(uint64(m.DbSize)) |
| 9477 | } |
| 9478 | if m.Leader != 0 { |
| 9479 | n += 1 + sovRpc(uint64(m.Leader)) |
| 9480 | } |
| 9481 | if m.RaftIndex != 0 { |
| 9482 | n += 1 + sovRpc(uint64(m.RaftIndex)) |
| 9483 | } |
| 9484 | if m.RaftTerm != 0 { |
| 9485 | n += 1 + sovRpc(uint64(m.RaftTerm)) |
| 9486 | } |
| 9487 | if m.RaftAppliedIndex != 0 { |
| 9488 | n += 1 + sovRpc(uint64(m.RaftAppliedIndex)) |
| 9489 | } |
| 9490 | if len(m.Errors) > 0 { |
| 9491 | for _, s := range m.Errors { |
| 9492 | l = len(s) |
| 9493 | n += 1 + l + sovRpc(uint64(l)) |
| 9494 | } |
| 9495 | } |
| 9496 | if m.DbSizeInUse != 0 { |
| 9497 | n += 1 + sovRpc(uint64(m.DbSizeInUse)) |
| 9498 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 9499 | if m.IsLearner { |
| 9500 | n += 2 |
| 9501 | } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 9502 | return n |
| 9503 | } |
| 9504 | |
| 9505 | func (m *AuthEnableRequest) Size() (n int) { |
| 9506 | var l int |
| 9507 | _ = l |
| 9508 | return n |
| 9509 | } |
| 9510 | |
| 9511 | func (m *AuthDisableRequest) Size() (n int) { |
| 9512 | var l int |
| 9513 | _ = l |
| 9514 | return n |
| 9515 | } |
| 9516 | |
| 9517 | func (m *AuthenticateRequest) Size() (n int) { |
| 9518 | var l int |
| 9519 | _ = l |
| 9520 | l = len(m.Name) |
| 9521 | if l > 0 { |
| 9522 | n += 1 + l + sovRpc(uint64(l)) |
| 9523 | } |
| 9524 | l = len(m.Password) |
| 9525 | if l > 0 { |
| 9526 | n += 1 + l + sovRpc(uint64(l)) |
| 9527 | } |
| 9528 | return n |
| 9529 | } |
| 9530 | |
| 9531 | func (m *AuthUserAddRequest) Size() (n int) { |
| 9532 | var l int |
| 9533 | _ = l |
| 9534 | l = len(m.Name) |
| 9535 | if l > 0 { |
| 9536 | n += 1 + l + sovRpc(uint64(l)) |
| 9537 | } |
| 9538 | l = len(m.Password) |
| 9539 | if l > 0 { |
| 9540 | n += 1 + l + sovRpc(uint64(l)) |
| 9541 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 9542 | if m.Options != nil { |
| 9543 | l = m.Options.Size() |
| 9544 | n += 1 + l + sovRpc(uint64(l)) |
| 9545 | } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 9546 | return n |
| 9547 | } |
| 9548 | |
| 9549 | func (m *AuthUserGetRequest) Size() (n int) { |
| 9550 | var l int |
| 9551 | _ = l |
| 9552 | l = len(m.Name) |
| 9553 | if l > 0 { |
| 9554 | n += 1 + l + sovRpc(uint64(l)) |
| 9555 | } |
| 9556 | return n |
| 9557 | } |
| 9558 | |
| 9559 | func (m *AuthUserDeleteRequest) Size() (n int) { |
| 9560 | var l int |
| 9561 | _ = l |
| 9562 | l = len(m.Name) |
| 9563 | if l > 0 { |
| 9564 | n += 1 + l + sovRpc(uint64(l)) |
| 9565 | } |
| 9566 | return n |
| 9567 | } |
| 9568 | |
| 9569 | func (m *AuthUserChangePasswordRequest) Size() (n int) { |
| 9570 | var l int |
| 9571 | _ = l |
| 9572 | l = len(m.Name) |
| 9573 | if l > 0 { |
| 9574 | n += 1 + l + sovRpc(uint64(l)) |
| 9575 | } |
| 9576 | l = len(m.Password) |
| 9577 | if l > 0 { |
| 9578 | n += 1 + l + sovRpc(uint64(l)) |
| 9579 | } |
| 9580 | return n |
| 9581 | } |
| 9582 | |
| 9583 | func (m *AuthUserGrantRoleRequest) Size() (n int) { |
| 9584 | var l int |
| 9585 | _ = l |
| 9586 | l = len(m.User) |
| 9587 | if l > 0 { |
| 9588 | n += 1 + l + sovRpc(uint64(l)) |
| 9589 | } |
| 9590 | l = len(m.Role) |
| 9591 | if l > 0 { |
| 9592 | n += 1 + l + sovRpc(uint64(l)) |
| 9593 | } |
| 9594 | return n |
| 9595 | } |
| 9596 | |
| 9597 | func (m *AuthUserRevokeRoleRequest) Size() (n int) { |
| 9598 | var l int |
| 9599 | _ = l |
| 9600 | l = len(m.Name) |
| 9601 | if l > 0 { |
| 9602 | n += 1 + l + sovRpc(uint64(l)) |
| 9603 | } |
| 9604 | l = len(m.Role) |
| 9605 | if l > 0 { |
| 9606 | n += 1 + l + sovRpc(uint64(l)) |
| 9607 | } |
| 9608 | return n |
| 9609 | } |
| 9610 | |
| 9611 | func (m *AuthRoleAddRequest) Size() (n int) { |
| 9612 | var l int |
| 9613 | _ = l |
| 9614 | l = len(m.Name) |
| 9615 | if l > 0 { |
| 9616 | n += 1 + l + sovRpc(uint64(l)) |
| 9617 | } |
| 9618 | return n |
| 9619 | } |
| 9620 | |
| 9621 | func (m *AuthRoleGetRequest) Size() (n int) { |
| 9622 | var l int |
| 9623 | _ = l |
| 9624 | l = len(m.Role) |
| 9625 | if l > 0 { |
| 9626 | n += 1 + l + sovRpc(uint64(l)) |
| 9627 | } |
| 9628 | return n |
| 9629 | } |
| 9630 | |
| 9631 | func (m *AuthUserListRequest) Size() (n int) { |
| 9632 | var l int |
| 9633 | _ = l |
| 9634 | return n |
| 9635 | } |
| 9636 | |
| 9637 | func (m *AuthRoleListRequest) Size() (n int) { |
| 9638 | var l int |
| 9639 | _ = l |
| 9640 | return n |
| 9641 | } |
| 9642 | |
| 9643 | func (m *AuthRoleDeleteRequest) Size() (n int) { |
| 9644 | var l int |
| 9645 | _ = l |
| 9646 | l = len(m.Role) |
| 9647 | if l > 0 { |
| 9648 | n += 1 + l + sovRpc(uint64(l)) |
| 9649 | } |
| 9650 | return n |
| 9651 | } |
| 9652 | |
| 9653 | func (m *AuthRoleGrantPermissionRequest) Size() (n int) { |
| 9654 | var l int |
| 9655 | _ = l |
| 9656 | l = len(m.Name) |
| 9657 | if l > 0 { |
| 9658 | n += 1 + l + sovRpc(uint64(l)) |
| 9659 | } |
| 9660 | if m.Perm != nil { |
| 9661 | l = m.Perm.Size() |
| 9662 | n += 1 + l + sovRpc(uint64(l)) |
| 9663 | } |
| 9664 | return n |
| 9665 | } |
| 9666 | |
| 9667 | func (m *AuthRoleRevokePermissionRequest) Size() (n int) { |
| 9668 | var l int |
| 9669 | _ = l |
| 9670 | l = len(m.Role) |
| 9671 | if l > 0 { |
| 9672 | n += 1 + l + sovRpc(uint64(l)) |
| 9673 | } |
| 9674 | l = len(m.Key) |
| 9675 | if l > 0 { |
| 9676 | n += 1 + l + sovRpc(uint64(l)) |
| 9677 | } |
| 9678 | l = len(m.RangeEnd) |
| 9679 | if l > 0 { |
| 9680 | n += 1 + l + sovRpc(uint64(l)) |
| 9681 | } |
| 9682 | return n |
| 9683 | } |
| 9684 | |
| 9685 | func (m *AuthEnableResponse) Size() (n int) { |
| 9686 | var l int |
| 9687 | _ = l |
| 9688 | if m.Header != nil { |
| 9689 | l = m.Header.Size() |
| 9690 | n += 1 + l + sovRpc(uint64(l)) |
| 9691 | } |
| 9692 | return n |
| 9693 | } |
| 9694 | |
| 9695 | func (m *AuthDisableResponse) Size() (n int) { |
| 9696 | var l int |
| 9697 | _ = l |
| 9698 | if m.Header != nil { |
| 9699 | l = m.Header.Size() |
| 9700 | n += 1 + l + sovRpc(uint64(l)) |
| 9701 | } |
| 9702 | return n |
| 9703 | } |
| 9704 | |
| 9705 | func (m *AuthenticateResponse) Size() (n int) { |
| 9706 | var l int |
| 9707 | _ = l |
| 9708 | if m.Header != nil { |
| 9709 | l = m.Header.Size() |
| 9710 | n += 1 + l + sovRpc(uint64(l)) |
| 9711 | } |
| 9712 | l = len(m.Token) |
| 9713 | if l > 0 { |
| 9714 | n += 1 + l + sovRpc(uint64(l)) |
| 9715 | } |
| 9716 | return n |
| 9717 | } |
| 9718 | |
| 9719 | func (m *AuthUserAddResponse) Size() (n int) { |
| 9720 | var l int |
| 9721 | _ = l |
| 9722 | if m.Header != nil { |
| 9723 | l = m.Header.Size() |
| 9724 | n += 1 + l + sovRpc(uint64(l)) |
| 9725 | } |
| 9726 | return n |
| 9727 | } |
| 9728 | |
| 9729 | func (m *AuthUserGetResponse) Size() (n int) { |
| 9730 | var l int |
| 9731 | _ = l |
| 9732 | if m.Header != nil { |
| 9733 | l = m.Header.Size() |
| 9734 | n += 1 + l + sovRpc(uint64(l)) |
| 9735 | } |
| 9736 | if len(m.Roles) > 0 { |
| 9737 | for _, s := range m.Roles { |
| 9738 | l = len(s) |
| 9739 | n += 1 + l + sovRpc(uint64(l)) |
| 9740 | } |
| 9741 | } |
| 9742 | return n |
| 9743 | } |
| 9744 | |
| 9745 | func (m *AuthUserDeleteResponse) Size() (n int) { |
| 9746 | var l int |
| 9747 | _ = l |
| 9748 | if m.Header != nil { |
| 9749 | l = m.Header.Size() |
| 9750 | n += 1 + l + sovRpc(uint64(l)) |
| 9751 | } |
| 9752 | return n |
| 9753 | } |
| 9754 | |
| 9755 | func (m *AuthUserChangePasswordResponse) Size() (n int) { |
| 9756 | var l int |
| 9757 | _ = l |
| 9758 | if m.Header != nil { |
| 9759 | l = m.Header.Size() |
| 9760 | n += 1 + l + sovRpc(uint64(l)) |
| 9761 | } |
| 9762 | return n |
| 9763 | } |
| 9764 | |
| 9765 | func (m *AuthUserGrantRoleResponse) Size() (n int) { |
| 9766 | var l int |
| 9767 | _ = l |
| 9768 | if m.Header != nil { |
| 9769 | l = m.Header.Size() |
| 9770 | n += 1 + l + sovRpc(uint64(l)) |
| 9771 | } |
| 9772 | return n |
| 9773 | } |
| 9774 | |
| 9775 | func (m *AuthUserRevokeRoleResponse) Size() (n int) { |
| 9776 | var l int |
| 9777 | _ = l |
| 9778 | if m.Header != nil { |
| 9779 | l = m.Header.Size() |
| 9780 | n += 1 + l + sovRpc(uint64(l)) |
| 9781 | } |
| 9782 | return n |
| 9783 | } |
| 9784 | |
| 9785 | func (m *AuthRoleAddResponse) Size() (n int) { |
| 9786 | var l int |
| 9787 | _ = l |
| 9788 | if m.Header != nil { |
| 9789 | l = m.Header.Size() |
| 9790 | n += 1 + l + sovRpc(uint64(l)) |
| 9791 | } |
| 9792 | return n |
| 9793 | } |
| 9794 | |
| 9795 | func (m *AuthRoleGetResponse) Size() (n int) { |
| 9796 | var l int |
| 9797 | _ = l |
| 9798 | if m.Header != nil { |
| 9799 | l = m.Header.Size() |
| 9800 | n += 1 + l + sovRpc(uint64(l)) |
| 9801 | } |
| 9802 | if len(m.Perm) > 0 { |
| 9803 | for _, e := range m.Perm { |
| 9804 | l = e.Size() |
| 9805 | n += 1 + l + sovRpc(uint64(l)) |
| 9806 | } |
| 9807 | } |
| 9808 | return n |
| 9809 | } |
| 9810 | |
| 9811 | func (m *AuthRoleListResponse) Size() (n int) { |
| 9812 | var l int |
| 9813 | _ = l |
| 9814 | if m.Header != nil { |
| 9815 | l = m.Header.Size() |
| 9816 | n += 1 + l + sovRpc(uint64(l)) |
| 9817 | } |
| 9818 | if len(m.Roles) > 0 { |
| 9819 | for _, s := range m.Roles { |
| 9820 | l = len(s) |
| 9821 | n += 1 + l + sovRpc(uint64(l)) |
| 9822 | } |
| 9823 | } |
| 9824 | return n |
| 9825 | } |
| 9826 | |
| 9827 | func (m *AuthUserListResponse) Size() (n int) { |
| 9828 | var l int |
| 9829 | _ = l |
| 9830 | if m.Header != nil { |
| 9831 | l = m.Header.Size() |
| 9832 | n += 1 + l + sovRpc(uint64(l)) |
| 9833 | } |
| 9834 | if len(m.Users) > 0 { |
| 9835 | for _, s := range m.Users { |
| 9836 | l = len(s) |
| 9837 | n += 1 + l + sovRpc(uint64(l)) |
| 9838 | } |
| 9839 | } |
| 9840 | return n |
| 9841 | } |
| 9842 | |
| 9843 | func (m *AuthRoleDeleteResponse) Size() (n int) { |
| 9844 | var l int |
| 9845 | _ = l |
| 9846 | if m.Header != nil { |
| 9847 | l = m.Header.Size() |
| 9848 | n += 1 + l + sovRpc(uint64(l)) |
| 9849 | } |
| 9850 | return n |
| 9851 | } |
| 9852 | |
| 9853 | func (m *AuthRoleGrantPermissionResponse) Size() (n int) { |
| 9854 | var l int |
| 9855 | _ = l |
| 9856 | if m.Header != nil { |
| 9857 | l = m.Header.Size() |
| 9858 | n += 1 + l + sovRpc(uint64(l)) |
| 9859 | } |
| 9860 | return n |
| 9861 | } |
| 9862 | |
| 9863 | func (m *AuthRoleRevokePermissionResponse) Size() (n int) { |
| 9864 | var l int |
| 9865 | _ = l |
| 9866 | if m.Header != nil { |
| 9867 | l = m.Header.Size() |
| 9868 | n += 1 + l + sovRpc(uint64(l)) |
| 9869 | } |
| 9870 | return n |
| 9871 | } |
| 9872 | |
| 9873 | func sovRpc(x uint64) (n int) { |
| 9874 | for { |
| 9875 | n++ |
| 9876 | x >>= 7 |
| 9877 | if x == 0 { |
| 9878 | break |
| 9879 | } |
| 9880 | } |
| 9881 | return n |
| 9882 | } |
| 9883 | func sozRpc(x uint64) (n int) { |
| 9884 | return sovRpc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 9885 | } |
| 9886 | func (m *ResponseHeader) Unmarshal(dAtA []byte) error { |
| 9887 | l := len(dAtA) |
| 9888 | iNdEx := 0 |
| 9889 | for iNdEx < l { |
| 9890 | preIndex := iNdEx |
| 9891 | var wire uint64 |
| 9892 | for shift := uint(0); ; shift += 7 { |
| 9893 | if shift >= 64 { |
| 9894 | return ErrIntOverflowRpc |
| 9895 | } |
| 9896 | if iNdEx >= l { |
| 9897 | return io.ErrUnexpectedEOF |
| 9898 | } |
| 9899 | b := dAtA[iNdEx] |
| 9900 | iNdEx++ |
| 9901 | wire |= (uint64(b) & 0x7F) << shift |
| 9902 | if b < 0x80 { |
| 9903 | break |
| 9904 | } |
| 9905 | } |
| 9906 | fieldNum := int32(wire >> 3) |
| 9907 | wireType := int(wire & 0x7) |
| 9908 | if wireType == 4 { |
| 9909 | return fmt.Errorf("proto: ResponseHeader: wiretype end group for non-group") |
| 9910 | } |
| 9911 | if fieldNum <= 0 { |
| 9912 | return fmt.Errorf("proto: ResponseHeader: illegal tag %d (wire type %d)", fieldNum, wire) |
| 9913 | } |
| 9914 | switch fieldNum { |
| 9915 | case 1: |
| 9916 | if wireType != 0 { |
| 9917 | return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) |
| 9918 | } |
| 9919 | m.ClusterId = 0 |
| 9920 | for shift := uint(0); ; shift += 7 { |
| 9921 | if shift >= 64 { |
| 9922 | return ErrIntOverflowRpc |
| 9923 | } |
| 9924 | if iNdEx >= l { |
| 9925 | return io.ErrUnexpectedEOF |
| 9926 | } |
| 9927 | b := dAtA[iNdEx] |
| 9928 | iNdEx++ |
| 9929 | m.ClusterId |= (uint64(b) & 0x7F) << shift |
| 9930 | if b < 0x80 { |
| 9931 | break |
| 9932 | } |
| 9933 | } |
| 9934 | case 2: |
| 9935 | if wireType != 0 { |
| 9936 | return fmt.Errorf("proto: wrong wireType = %d for field MemberId", wireType) |
| 9937 | } |
| 9938 | m.MemberId = 0 |
| 9939 | for shift := uint(0); ; shift += 7 { |
| 9940 | if shift >= 64 { |
| 9941 | return ErrIntOverflowRpc |
| 9942 | } |
| 9943 | if iNdEx >= l { |
| 9944 | return io.ErrUnexpectedEOF |
| 9945 | } |
| 9946 | b := dAtA[iNdEx] |
| 9947 | iNdEx++ |
| 9948 | m.MemberId |= (uint64(b) & 0x7F) << shift |
| 9949 | if b < 0x80 { |
| 9950 | break |
| 9951 | } |
| 9952 | } |
| 9953 | case 3: |
| 9954 | if wireType != 0 { |
| 9955 | return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) |
| 9956 | } |
| 9957 | m.Revision = 0 |
| 9958 | for shift := uint(0); ; shift += 7 { |
| 9959 | if shift >= 64 { |
| 9960 | return ErrIntOverflowRpc |
| 9961 | } |
| 9962 | if iNdEx >= l { |
| 9963 | return io.ErrUnexpectedEOF |
| 9964 | } |
| 9965 | b := dAtA[iNdEx] |
| 9966 | iNdEx++ |
| 9967 | m.Revision |= (int64(b) & 0x7F) << shift |
| 9968 | if b < 0x80 { |
| 9969 | break |
| 9970 | } |
| 9971 | } |
| 9972 | case 4: |
| 9973 | if wireType != 0 { |
| 9974 | return fmt.Errorf("proto: wrong wireType = %d for field RaftTerm", wireType) |
| 9975 | } |
| 9976 | m.RaftTerm = 0 |
| 9977 | for shift := uint(0); ; shift += 7 { |
| 9978 | if shift >= 64 { |
| 9979 | return ErrIntOverflowRpc |
| 9980 | } |
| 9981 | if iNdEx >= l { |
| 9982 | return io.ErrUnexpectedEOF |
| 9983 | } |
| 9984 | b := dAtA[iNdEx] |
| 9985 | iNdEx++ |
| 9986 | m.RaftTerm |= (uint64(b) & 0x7F) << shift |
| 9987 | if b < 0x80 { |
| 9988 | break |
| 9989 | } |
| 9990 | } |
| 9991 | default: |
| 9992 | iNdEx = preIndex |
| 9993 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 9994 | if err != nil { |
| 9995 | return err |
| 9996 | } |
| 9997 | if skippy < 0 { |
| 9998 | return ErrInvalidLengthRpc |
| 9999 | } |
| 10000 | if (iNdEx + skippy) > l { |
| 10001 | return io.ErrUnexpectedEOF |
| 10002 | } |
| 10003 | iNdEx += skippy |
| 10004 | } |
| 10005 | } |
| 10006 | |
| 10007 | if iNdEx > l { |
| 10008 | return io.ErrUnexpectedEOF |
| 10009 | } |
| 10010 | return nil |
| 10011 | } |
| 10012 | func (m *RangeRequest) Unmarshal(dAtA []byte) error { |
| 10013 | l := len(dAtA) |
| 10014 | iNdEx := 0 |
| 10015 | for iNdEx < l { |
| 10016 | preIndex := iNdEx |
| 10017 | var wire uint64 |
| 10018 | for shift := uint(0); ; shift += 7 { |
| 10019 | if shift >= 64 { |
| 10020 | return ErrIntOverflowRpc |
| 10021 | } |
| 10022 | if iNdEx >= l { |
| 10023 | return io.ErrUnexpectedEOF |
| 10024 | } |
| 10025 | b := dAtA[iNdEx] |
| 10026 | iNdEx++ |
| 10027 | wire |= (uint64(b) & 0x7F) << shift |
| 10028 | if b < 0x80 { |
| 10029 | break |
| 10030 | } |
| 10031 | } |
| 10032 | fieldNum := int32(wire >> 3) |
| 10033 | wireType := int(wire & 0x7) |
| 10034 | if wireType == 4 { |
| 10035 | return fmt.Errorf("proto: RangeRequest: wiretype end group for non-group") |
| 10036 | } |
| 10037 | if fieldNum <= 0 { |
| 10038 | return fmt.Errorf("proto: RangeRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 10039 | } |
| 10040 | switch fieldNum { |
| 10041 | case 1: |
| 10042 | if wireType != 2 { |
| 10043 | return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| 10044 | } |
| 10045 | var byteLen int |
| 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 | byteLen |= (int(b) & 0x7F) << shift |
| 10056 | if b < 0x80 { |
| 10057 | break |
| 10058 | } |
| 10059 | } |
| 10060 | if byteLen < 0 { |
| 10061 | return ErrInvalidLengthRpc |
| 10062 | } |
| 10063 | postIndex := iNdEx + byteLen |
| 10064 | if postIndex > l { |
| 10065 | return io.ErrUnexpectedEOF |
| 10066 | } |
| 10067 | m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) |
| 10068 | if m.Key == nil { |
| 10069 | m.Key = []byte{} |
| 10070 | } |
| 10071 | iNdEx = postIndex |
| 10072 | case 2: |
| 10073 | if wireType != 2 { |
| 10074 | return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType) |
| 10075 | } |
| 10076 | var byteLen int |
| 10077 | for shift := uint(0); ; shift += 7 { |
| 10078 | if shift >= 64 { |
| 10079 | return ErrIntOverflowRpc |
| 10080 | } |
| 10081 | if iNdEx >= l { |
| 10082 | return io.ErrUnexpectedEOF |
| 10083 | } |
| 10084 | b := dAtA[iNdEx] |
| 10085 | iNdEx++ |
| 10086 | byteLen |= (int(b) & 0x7F) << shift |
| 10087 | if b < 0x80 { |
| 10088 | break |
| 10089 | } |
| 10090 | } |
| 10091 | if byteLen < 0 { |
| 10092 | return ErrInvalidLengthRpc |
| 10093 | } |
| 10094 | postIndex := iNdEx + byteLen |
| 10095 | if postIndex > l { |
| 10096 | return io.ErrUnexpectedEOF |
| 10097 | } |
| 10098 | m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...) |
| 10099 | if m.RangeEnd == nil { |
| 10100 | m.RangeEnd = []byte{} |
| 10101 | } |
| 10102 | iNdEx = postIndex |
| 10103 | case 3: |
| 10104 | if wireType != 0 { |
| 10105 | return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) |
| 10106 | } |
| 10107 | m.Limit = 0 |
| 10108 | for shift := uint(0); ; shift += 7 { |
| 10109 | if shift >= 64 { |
| 10110 | return ErrIntOverflowRpc |
| 10111 | } |
| 10112 | if iNdEx >= l { |
| 10113 | return io.ErrUnexpectedEOF |
| 10114 | } |
| 10115 | b := dAtA[iNdEx] |
| 10116 | iNdEx++ |
| 10117 | m.Limit |= (int64(b) & 0x7F) << shift |
| 10118 | if b < 0x80 { |
| 10119 | break |
| 10120 | } |
| 10121 | } |
| 10122 | case 4: |
| 10123 | if wireType != 0 { |
| 10124 | return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) |
| 10125 | } |
| 10126 | m.Revision = 0 |
| 10127 | for shift := uint(0); ; shift += 7 { |
| 10128 | if shift >= 64 { |
| 10129 | return ErrIntOverflowRpc |
| 10130 | } |
| 10131 | if iNdEx >= l { |
| 10132 | return io.ErrUnexpectedEOF |
| 10133 | } |
| 10134 | b := dAtA[iNdEx] |
| 10135 | iNdEx++ |
| 10136 | m.Revision |= (int64(b) & 0x7F) << shift |
| 10137 | if b < 0x80 { |
| 10138 | break |
| 10139 | } |
| 10140 | } |
| 10141 | case 5: |
| 10142 | if wireType != 0 { |
| 10143 | return fmt.Errorf("proto: wrong wireType = %d for field SortOrder", wireType) |
| 10144 | } |
| 10145 | m.SortOrder = 0 |
| 10146 | for shift := uint(0); ; shift += 7 { |
| 10147 | if shift >= 64 { |
| 10148 | return ErrIntOverflowRpc |
| 10149 | } |
| 10150 | if iNdEx >= l { |
| 10151 | return io.ErrUnexpectedEOF |
| 10152 | } |
| 10153 | b := dAtA[iNdEx] |
| 10154 | iNdEx++ |
| 10155 | m.SortOrder |= (RangeRequest_SortOrder(b) & 0x7F) << shift |
| 10156 | if b < 0x80 { |
| 10157 | break |
| 10158 | } |
| 10159 | } |
| 10160 | case 6: |
| 10161 | if wireType != 0 { |
| 10162 | return fmt.Errorf("proto: wrong wireType = %d for field SortTarget", wireType) |
| 10163 | } |
| 10164 | m.SortTarget = 0 |
| 10165 | for shift := uint(0); ; shift += 7 { |
| 10166 | if shift >= 64 { |
| 10167 | return ErrIntOverflowRpc |
| 10168 | } |
| 10169 | if iNdEx >= l { |
| 10170 | return io.ErrUnexpectedEOF |
| 10171 | } |
| 10172 | b := dAtA[iNdEx] |
| 10173 | iNdEx++ |
| 10174 | m.SortTarget |= (RangeRequest_SortTarget(b) & 0x7F) << shift |
| 10175 | if b < 0x80 { |
| 10176 | break |
| 10177 | } |
| 10178 | } |
| 10179 | case 7: |
| 10180 | if wireType != 0 { |
| 10181 | return fmt.Errorf("proto: wrong wireType = %d for field Serializable", wireType) |
| 10182 | } |
| 10183 | var v int |
| 10184 | for shift := uint(0); ; shift += 7 { |
| 10185 | if shift >= 64 { |
| 10186 | return ErrIntOverflowRpc |
| 10187 | } |
| 10188 | if iNdEx >= l { |
| 10189 | return io.ErrUnexpectedEOF |
| 10190 | } |
| 10191 | b := dAtA[iNdEx] |
| 10192 | iNdEx++ |
| 10193 | v |= (int(b) & 0x7F) << shift |
| 10194 | if b < 0x80 { |
| 10195 | break |
| 10196 | } |
| 10197 | } |
| 10198 | m.Serializable = bool(v != 0) |
| 10199 | case 8: |
| 10200 | if wireType != 0 { |
| 10201 | return fmt.Errorf("proto: wrong wireType = %d for field KeysOnly", wireType) |
| 10202 | } |
| 10203 | var v int |
| 10204 | for shift := uint(0); ; shift += 7 { |
| 10205 | if shift >= 64 { |
| 10206 | return ErrIntOverflowRpc |
| 10207 | } |
| 10208 | if iNdEx >= l { |
| 10209 | return io.ErrUnexpectedEOF |
| 10210 | } |
| 10211 | b := dAtA[iNdEx] |
| 10212 | iNdEx++ |
| 10213 | v |= (int(b) & 0x7F) << shift |
| 10214 | if b < 0x80 { |
| 10215 | break |
| 10216 | } |
| 10217 | } |
| 10218 | m.KeysOnly = bool(v != 0) |
| 10219 | case 9: |
| 10220 | if wireType != 0 { |
| 10221 | return fmt.Errorf("proto: wrong wireType = %d for field CountOnly", wireType) |
| 10222 | } |
| 10223 | var v int |
| 10224 | for shift := uint(0); ; shift += 7 { |
| 10225 | if shift >= 64 { |
| 10226 | return ErrIntOverflowRpc |
| 10227 | } |
| 10228 | if iNdEx >= l { |
| 10229 | return io.ErrUnexpectedEOF |
| 10230 | } |
| 10231 | b := dAtA[iNdEx] |
| 10232 | iNdEx++ |
| 10233 | v |= (int(b) & 0x7F) << shift |
| 10234 | if b < 0x80 { |
| 10235 | break |
| 10236 | } |
| 10237 | } |
| 10238 | m.CountOnly = bool(v != 0) |
| 10239 | case 10: |
| 10240 | if wireType != 0 { |
| 10241 | return fmt.Errorf("proto: wrong wireType = %d for field MinModRevision", wireType) |
| 10242 | } |
| 10243 | m.MinModRevision = 0 |
| 10244 | for shift := uint(0); ; shift += 7 { |
| 10245 | if shift >= 64 { |
| 10246 | return ErrIntOverflowRpc |
| 10247 | } |
| 10248 | if iNdEx >= l { |
| 10249 | return io.ErrUnexpectedEOF |
| 10250 | } |
| 10251 | b := dAtA[iNdEx] |
| 10252 | iNdEx++ |
| 10253 | m.MinModRevision |= (int64(b) & 0x7F) << shift |
| 10254 | if b < 0x80 { |
| 10255 | break |
| 10256 | } |
| 10257 | } |
| 10258 | case 11: |
| 10259 | if wireType != 0 { |
| 10260 | return fmt.Errorf("proto: wrong wireType = %d for field MaxModRevision", wireType) |
| 10261 | } |
| 10262 | m.MaxModRevision = 0 |
| 10263 | for shift := uint(0); ; shift += 7 { |
| 10264 | if shift >= 64 { |
| 10265 | return ErrIntOverflowRpc |
| 10266 | } |
| 10267 | if iNdEx >= l { |
| 10268 | return io.ErrUnexpectedEOF |
| 10269 | } |
| 10270 | b := dAtA[iNdEx] |
| 10271 | iNdEx++ |
| 10272 | m.MaxModRevision |= (int64(b) & 0x7F) << shift |
| 10273 | if b < 0x80 { |
| 10274 | break |
| 10275 | } |
| 10276 | } |
| 10277 | case 12: |
| 10278 | if wireType != 0 { |
| 10279 | return fmt.Errorf("proto: wrong wireType = %d for field MinCreateRevision", wireType) |
| 10280 | } |
| 10281 | m.MinCreateRevision = 0 |
| 10282 | for shift := uint(0); ; shift += 7 { |
| 10283 | if shift >= 64 { |
| 10284 | return ErrIntOverflowRpc |
| 10285 | } |
| 10286 | if iNdEx >= l { |
| 10287 | return io.ErrUnexpectedEOF |
| 10288 | } |
| 10289 | b := dAtA[iNdEx] |
| 10290 | iNdEx++ |
| 10291 | m.MinCreateRevision |= (int64(b) & 0x7F) << shift |
| 10292 | if b < 0x80 { |
| 10293 | break |
| 10294 | } |
| 10295 | } |
| 10296 | case 13: |
| 10297 | if wireType != 0 { |
| 10298 | return fmt.Errorf("proto: wrong wireType = %d for field MaxCreateRevision", wireType) |
| 10299 | } |
| 10300 | m.MaxCreateRevision = 0 |
| 10301 | for shift := uint(0); ; shift += 7 { |
| 10302 | if shift >= 64 { |
| 10303 | return ErrIntOverflowRpc |
| 10304 | } |
| 10305 | if iNdEx >= l { |
| 10306 | return io.ErrUnexpectedEOF |
| 10307 | } |
| 10308 | b := dAtA[iNdEx] |
| 10309 | iNdEx++ |
| 10310 | m.MaxCreateRevision |= (int64(b) & 0x7F) << shift |
| 10311 | if b < 0x80 { |
| 10312 | break |
| 10313 | } |
| 10314 | } |
| 10315 | default: |
| 10316 | iNdEx = preIndex |
| 10317 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 10318 | if err != nil { |
| 10319 | return err |
| 10320 | } |
| 10321 | if skippy < 0 { |
| 10322 | return ErrInvalidLengthRpc |
| 10323 | } |
| 10324 | if (iNdEx + skippy) > l { |
| 10325 | return io.ErrUnexpectedEOF |
| 10326 | } |
| 10327 | iNdEx += skippy |
| 10328 | } |
| 10329 | } |
| 10330 | |
| 10331 | if iNdEx > l { |
| 10332 | return io.ErrUnexpectedEOF |
| 10333 | } |
| 10334 | return nil |
| 10335 | } |
| 10336 | func (m *RangeResponse) Unmarshal(dAtA []byte) error { |
| 10337 | l := len(dAtA) |
| 10338 | iNdEx := 0 |
| 10339 | for iNdEx < l { |
| 10340 | preIndex := iNdEx |
| 10341 | var wire uint64 |
| 10342 | for shift := uint(0); ; shift += 7 { |
| 10343 | if shift >= 64 { |
| 10344 | return ErrIntOverflowRpc |
| 10345 | } |
| 10346 | if iNdEx >= l { |
| 10347 | return io.ErrUnexpectedEOF |
| 10348 | } |
| 10349 | b := dAtA[iNdEx] |
| 10350 | iNdEx++ |
| 10351 | wire |= (uint64(b) & 0x7F) << shift |
| 10352 | if b < 0x80 { |
| 10353 | break |
| 10354 | } |
| 10355 | } |
| 10356 | fieldNum := int32(wire >> 3) |
| 10357 | wireType := int(wire & 0x7) |
| 10358 | if wireType == 4 { |
| 10359 | return fmt.Errorf("proto: RangeResponse: wiretype end group for non-group") |
| 10360 | } |
| 10361 | if fieldNum <= 0 { |
| 10362 | return fmt.Errorf("proto: RangeResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 10363 | } |
| 10364 | switch fieldNum { |
| 10365 | case 1: |
| 10366 | if wireType != 2 { |
| 10367 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 10368 | } |
| 10369 | var msglen int |
| 10370 | for shift := uint(0); ; shift += 7 { |
| 10371 | if shift >= 64 { |
| 10372 | return ErrIntOverflowRpc |
| 10373 | } |
| 10374 | if iNdEx >= l { |
| 10375 | return io.ErrUnexpectedEOF |
| 10376 | } |
| 10377 | b := dAtA[iNdEx] |
| 10378 | iNdEx++ |
| 10379 | msglen |= (int(b) & 0x7F) << shift |
| 10380 | if b < 0x80 { |
| 10381 | break |
| 10382 | } |
| 10383 | } |
| 10384 | if msglen < 0 { |
| 10385 | return ErrInvalidLengthRpc |
| 10386 | } |
| 10387 | postIndex := iNdEx + msglen |
| 10388 | if postIndex > l { |
| 10389 | return io.ErrUnexpectedEOF |
| 10390 | } |
| 10391 | if m.Header == nil { |
| 10392 | m.Header = &ResponseHeader{} |
| 10393 | } |
| 10394 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 10395 | return err |
| 10396 | } |
| 10397 | iNdEx = postIndex |
| 10398 | case 2: |
| 10399 | if wireType != 2 { |
| 10400 | return fmt.Errorf("proto: wrong wireType = %d for field Kvs", wireType) |
| 10401 | } |
| 10402 | var msglen int |
| 10403 | for shift := uint(0); ; shift += 7 { |
| 10404 | if shift >= 64 { |
| 10405 | return ErrIntOverflowRpc |
| 10406 | } |
| 10407 | if iNdEx >= l { |
| 10408 | return io.ErrUnexpectedEOF |
| 10409 | } |
| 10410 | b := dAtA[iNdEx] |
| 10411 | iNdEx++ |
| 10412 | msglen |= (int(b) & 0x7F) << shift |
| 10413 | if b < 0x80 { |
| 10414 | break |
| 10415 | } |
| 10416 | } |
| 10417 | if msglen < 0 { |
| 10418 | return ErrInvalidLengthRpc |
| 10419 | } |
| 10420 | postIndex := iNdEx + msglen |
| 10421 | if postIndex > l { |
| 10422 | return io.ErrUnexpectedEOF |
| 10423 | } |
| 10424 | m.Kvs = append(m.Kvs, &mvccpb.KeyValue{}) |
| 10425 | if err := m.Kvs[len(m.Kvs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 10426 | return err |
| 10427 | } |
| 10428 | iNdEx = postIndex |
| 10429 | case 3: |
| 10430 | if wireType != 0 { |
| 10431 | return fmt.Errorf("proto: wrong wireType = %d for field More", wireType) |
| 10432 | } |
| 10433 | var v int |
| 10434 | for shift := uint(0); ; shift += 7 { |
| 10435 | if shift >= 64 { |
| 10436 | return ErrIntOverflowRpc |
| 10437 | } |
| 10438 | if iNdEx >= l { |
| 10439 | return io.ErrUnexpectedEOF |
| 10440 | } |
| 10441 | b := dAtA[iNdEx] |
| 10442 | iNdEx++ |
| 10443 | v |= (int(b) & 0x7F) << shift |
| 10444 | if b < 0x80 { |
| 10445 | break |
| 10446 | } |
| 10447 | } |
| 10448 | m.More = bool(v != 0) |
| 10449 | case 4: |
| 10450 | if wireType != 0 { |
| 10451 | return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) |
| 10452 | } |
| 10453 | m.Count = 0 |
| 10454 | for shift := uint(0); ; shift += 7 { |
| 10455 | if shift >= 64 { |
| 10456 | return ErrIntOverflowRpc |
| 10457 | } |
| 10458 | if iNdEx >= l { |
| 10459 | return io.ErrUnexpectedEOF |
| 10460 | } |
| 10461 | b := dAtA[iNdEx] |
| 10462 | iNdEx++ |
| 10463 | m.Count |= (int64(b) & 0x7F) << shift |
| 10464 | if b < 0x80 { |
| 10465 | break |
| 10466 | } |
| 10467 | } |
| 10468 | default: |
| 10469 | iNdEx = preIndex |
| 10470 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 10471 | if err != nil { |
| 10472 | return err |
| 10473 | } |
| 10474 | if skippy < 0 { |
| 10475 | return ErrInvalidLengthRpc |
| 10476 | } |
| 10477 | if (iNdEx + skippy) > l { |
| 10478 | return io.ErrUnexpectedEOF |
| 10479 | } |
| 10480 | iNdEx += skippy |
| 10481 | } |
| 10482 | } |
| 10483 | |
| 10484 | if iNdEx > l { |
| 10485 | return io.ErrUnexpectedEOF |
| 10486 | } |
| 10487 | return nil |
| 10488 | } |
| 10489 | func (m *PutRequest) Unmarshal(dAtA []byte) error { |
| 10490 | l := len(dAtA) |
| 10491 | iNdEx := 0 |
| 10492 | for iNdEx < l { |
| 10493 | preIndex := iNdEx |
| 10494 | var wire uint64 |
| 10495 | for shift := uint(0); ; shift += 7 { |
| 10496 | if shift >= 64 { |
| 10497 | return ErrIntOverflowRpc |
| 10498 | } |
| 10499 | if iNdEx >= l { |
| 10500 | return io.ErrUnexpectedEOF |
| 10501 | } |
| 10502 | b := dAtA[iNdEx] |
| 10503 | iNdEx++ |
| 10504 | wire |= (uint64(b) & 0x7F) << shift |
| 10505 | if b < 0x80 { |
| 10506 | break |
| 10507 | } |
| 10508 | } |
| 10509 | fieldNum := int32(wire >> 3) |
| 10510 | wireType := int(wire & 0x7) |
| 10511 | if wireType == 4 { |
| 10512 | return fmt.Errorf("proto: PutRequest: wiretype end group for non-group") |
| 10513 | } |
| 10514 | if fieldNum <= 0 { |
| 10515 | return fmt.Errorf("proto: PutRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 10516 | } |
| 10517 | switch fieldNum { |
| 10518 | case 1: |
| 10519 | if wireType != 2 { |
| 10520 | return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| 10521 | } |
| 10522 | var byteLen int |
| 10523 | for shift := uint(0); ; shift += 7 { |
| 10524 | if shift >= 64 { |
| 10525 | return ErrIntOverflowRpc |
| 10526 | } |
| 10527 | if iNdEx >= l { |
| 10528 | return io.ErrUnexpectedEOF |
| 10529 | } |
| 10530 | b := dAtA[iNdEx] |
| 10531 | iNdEx++ |
| 10532 | byteLen |= (int(b) & 0x7F) << shift |
| 10533 | if b < 0x80 { |
| 10534 | break |
| 10535 | } |
| 10536 | } |
| 10537 | if byteLen < 0 { |
| 10538 | return ErrInvalidLengthRpc |
| 10539 | } |
| 10540 | postIndex := iNdEx + byteLen |
| 10541 | if postIndex > l { |
| 10542 | return io.ErrUnexpectedEOF |
| 10543 | } |
| 10544 | m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) |
| 10545 | if m.Key == nil { |
| 10546 | m.Key = []byte{} |
| 10547 | } |
| 10548 | iNdEx = postIndex |
| 10549 | case 2: |
| 10550 | if wireType != 2 { |
| 10551 | return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) |
| 10552 | } |
| 10553 | var byteLen int |
| 10554 | for shift := uint(0); ; shift += 7 { |
| 10555 | if shift >= 64 { |
| 10556 | return ErrIntOverflowRpc |
| 10557 | } |
| 10558 | if iNdEx >= l { |
| 10559 | return io.ErrUnexpectedEOF |
| 10560 | } |
| 10561 | b := dAtA[iNdEx] |
| 10562 | iNdEx++ |
| 10563 | byteLen |= (int(b) & 0x7F) << shift |
| 10564 | if b < 0x80 { |
| 10565 | break |
| 10566 | } |
| 10567 | } |
| 10568 | if byteLen < 0 { |
| 10569 | return ErrInvalidLengthRpc |
| 10570 | } |
| 10571 | postIndex := iNdEx + byteLen |
| 10572 | if postIndex > l { |
| 10573 | return io.ErrUnexpectedEOF |
| 10574 | } |
| 10575 | m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) |
| 10576 | if m.Value == nil { |
| 10577 | m.Value = []byte{} |
| 10578 | } |
| 10579 | iNdEx = postIndex |
| 10580 | case 3: |
| 10581 | if wireType != 0 { |
| 10582 | return fmt.Errorf("proto: wrong wireType = %d for field Lease", wireType) |
| 10583 | } |
| 10584 | m.Lease = 0 |
| 10585 | for shift := uint(0); ; shift += 7 { |
| 10586 | if shift >= 64 { |
| 10587 | return ErrIntOverflowRpc |
| 10588 | } |
| 10589 | if iNdEx >= l { |
| 10590 | return io.ErrUnexpectedEOF |
| 10591 | } |
| 10592 | b := dAtA[iNdEx] |
| 10593 | iNdEx++ |
| 10594 | m.Lease |= (int64(b) & 0x7F) << shift |
| 10595 | if b < 0x80 { |
| 10596 | break |
| 10597 | } |
| 10598 | } |
| 10599 | case 4: |
| 10600 | if wireType != 0 { |
| 10601 | return fmt.Errorf("proto: wrong wireType = %d for field PrevKv", wireType) |
| 10602 | } |
| 10603 | var v int |
| 10604 | for shift := uint(0); ; shift += 7 { |
| 10605 | if shift >= 64 { |
| 10606 | return ErrIntOverflowRpc |
| 10607 | } |
| 10608 | if iNdEx >= l { |
| 10609 | return io.ErrUnexpectedEOF |
| 10610 | } |
| 10611 | b := dAtA[iNdEx] |
| 10612 | iNdEx++ |
| 10613 | v |= (int(b) & 0x7F) << shift |
| 10614 | if b < 0x80 { |
| 10615 | break |
| 10616 | } |
| 10617 | } |
| 10618 | m.PrevKv = bool(v != 0) |
| 10619 | case 5: |
| 10620 | if wireType != 0 { |
| 10621 | return fmt.Errorf("proto: wrong wireType = %d for field IgnoreValue", wireType) |
| 10622 | } |
| 10623 | var v int |
| 10624 | for shift := uint(0); ; shift += 7 { |
| 10625 | if shift >= 64 { |
| 10626 | return ErrIntOverflowRpc |
| 10627 | } |
| 10628 | if iNdEx >= l { |
| 10629 | return io.ErrUnexpectedEOF |
| 10630 | } |
| 10631 | b := dAtA[iNdEx] |
| 10632 | iNdEx++ |
| 10633 | v |= (int(b) & 0x7F) << shift |
| 10634 | if b < 0x80 { |
| 10635 | break |
| 10636 | } |
| 10637 | } |
| 10638 | m.IgnoreValue = bool(v != 0) |
| 10639 | case 6: |
| 10640 | if wireType != 0 { |
| 10641 | return fmt.Errorf("proto: wrong wireType = %d for field IgnoreLease", wireType) |
| 10642 | } |
| 10643 | var v int |
| 10644 | for shift := uint(0); ; shift += 7 { |
| 10645 | if shift >= 64 { |
| 10646 | return ErrIntOverflowRpc |
| 10647 | } |
| 10648 | if iNdEx >= l { |
| 10649 | return io.ErrUnexpectedEOF |
| 10650 | } |
| 10651 | b := dAtA[iNdEx] |
| 10652 | iNdEx++ |
| 10653 | v |= (int(b) & 0x7F) << shift |
| 10654 | if b < 0x80 { |
| 10655 | break |
| 10656 | } |
| 10657 | } |
| 10658 | m.IgnoreLease = bool(v != 0) |
| 10659 | default: |
| 10660 | iNdEx = preIndex |
| 10661 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 10662 | if err != nil { |
| 10663 | return err |
| 10664 | } |
| 10665 | if skippy < 0 { |
| 10666 | return ErrInvalidLengthRpc |
| 10667 | } |
| 10668 | if (iNdEx + skippy) > l { |
| 10669 | return io.ErrUnexpectedEOF |
| 10670 | } |
| 10671 | iNdEx += skippy |
| 10672 | } |
| 10673 | } |
| 10674 | |
| 10675 | if iNdEx > l { |
| 10676 | return io.ErrUnexpectedEOF |
| 10677 | } |
| 10678 | return nil |
| 10679 | } |
| 10680 | func (m *PutResponse) Unmarshal(dAtA []byte) error { |
| 10681 | l := len(dAtA) |
| 10682 | iNdEx := 0 |
| 10683 | for iNdEx < l { |
| 10684 | preIndex := iNdEx |
| 10685 | var wire uint64 |
| 10686 | for shift := uint(0); ; shift += 7 { |
| 10687 | if shift >= 64 { |
| 10688 | return ErrIntOverflowRpc |
| 10689 | } |
| 10690 | if iNdEx >= l { |
| 10691 | return io.ErrUnexpectedEOF |
| 10692 | } |
| 10693 | b := dAtA[iNdEx] |
| 10694 | iNdEx++ |
| 10695 | wire |= (uint64(b) & 0x7F) << shift |
| 10696 | if b < 0x80 { |
| 10697 | break |
| 10698 | } |
| 10699 | } |
| 10700 | fieldNum := int32(wire >> 3) |
| 10701 | wireType := int(wire & 0x7) |
| 10702 | if wireType == 4 { |
| 10703 | return fmt.Errorf("proto: PutResponse: wiretype end group for non-group") |
| 10704 | } |
| 10705 | if fieldNum <= 0 { |
| 10706 | return fmt.Errorf("proto: PutResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 10707 | } |
| 10708 | switch fieldNum { |
| 10709 | case 1: |
| 10710 | if wireType != 2 { |
| 10711 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 10712 | } |
| 10713 | var msglen int |
| 10714 | for shift := uint(0); ; shift += 7 { |
| 10715 | if shift >= 64 { |
| 10716 | return ErrIntOverflowRpc |
| 10717 | } |
| 10718 | if iNdEx >= l { |
| 10719 | return io.ErrUnexpectedEOF |
| 10720 | } |
| 10721 | b := dAtA[iNdEx] |
| 10722 | iNdEx++ |
| 10723 | msglen |= (int(b) & 0x7F) << shift |
| 10724 | if b < 0x80 { |
| 10725 | break |
| 10726 | } |
| 10727 | } |
| 10728 | if msglen < 0 { |
| 10729 | return ErrInvalidLengthRpc |
| 10730 | } |
| 10731 | postIndex := iNdEx + msglen |
| 10732 | if postIndex > l { |
| 10733 | return io.ErrUnexpectedEOF |
| 10734 | } |
| 10735 | if m.Header == nil { |
| 10736 | m.Header = &ResponseHeader{} |
| 10737 | } |
| 10738 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 10739 | return err |
| 10740 | } |
| 10741 | iNdEx = postIndex |
| 10742 | case 2: |
| 10743 | if wireType != 2 { |
| 10744 | return fmt.Errorf("proto: wrong wireType = %d for field PrevKv", wireType) |
| 10745 | } |
| 10746 | var msglen int |
| 10747 | for shift := uint(0); ; shift += 7 { |
| 10748 | if shift >= 64 { |
| 10749 | return ErrIntOverflowRpc |
| 10750 | } |
| 10751 | if iNdEx >= l { |
| 10752 | return io.ErrUnexpectedEOF |
| 10753 | } |
| 10754 | b := dAtA[iNdEx] |
| 10755 | iNdEx++ |
| 10756 | msglen |= (int(b) & 0x7F) << shift |
| 10757 | if b < 0x80 { |
| 10758 | break |
| 10759 | } |
| 10760 | } |
| 10761 | if msglen < 0 { |
| 10762 | return ErrInvalidLengthRpc |
| 10763 | } |
| 10764 | postIndex := iNdEx + msglen |
| 10765 | if postIndex > l { |
| 10766 | return io.ErrUnexpectedEOF |
| 10767 | } |
| 10768 | if m.PrevKv == nil { |
| 10769 | m.PrevKv = &mvccpb.KeyValue{} |
| 10770 | } |
| 10771 | if err := m.PrevKv.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 10772 | return err |
| 10773 | } |
| 10774 | iNdEx = postIndex |
| 10775 | default: |
| 10776 | iNdEx = preIndex |
| 10777 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 10778 | if err != nil { |
| 10779 | return err |
| 10780 | } |
| 10781 | if skippy < 0 { |
| 10782 | return ErrInvalidLengthRpc |
| 10783 | } |
| 10784 | if (iNdEx + skippy) > l { |
| 10785 | return io.ErrUnexpectedEOF |
| 10786 | } |
| 10787 | iNdEx += skippy |
| 10788 | } |
| 10789 | } |
| 10790 | |
| 10791 | if iNdEx > l { |
| 10792 | return io.ErrUnexpectedEOF |
| 10793 | } |
| 10794 | return nil |
| 10795 | } |
| 10796 | func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { |
| 10797 | l := len(dAtA) |
| 10798 | iNdEx := 0 |
| 10799 | for iNdEx < l { |
| 10800 | preIndex := iNdEx |
| 10801 | var wire uint64 |
| 10802 | for shift := uint(0); ; shift += 7 { |
| 10803 | if shift >= 64 { |
| 10804 | return ErrIntOverflowRpc |
| 10805 | } |
| 10806 | if iNdEx >= l { |
| 10807 | return io.ErrUnexpectedEOF |
| 10808 | } |
| 10809 | b := dAtA[iNdEx] |
| 10810 | iNdEx++ |
| 10811 | wire |= (uint64(b) & 0x7F) << shift |
| 10812 | if b < 0x80 { |
| 10813 | break |
| 10814 | } |
| 10815 | } |
| 10816 | fieldNum := int32(wire >> 3) |
| 10817 | wireType := int(wire & 0x7) |
| 10818 | if wireType == 4 { |
| 10819 | return fmt.Errorf("proto: DeleteRangeRequest: wiretype end group for non-group") |
| 10820 | } |
| 10821 | if fieldNum <= 0 { |
| 10822 | return fmt.Errorf("proto: DeleteRangeRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 10823 | } |
| 10824 | switch fieldNum { |
| 10825 | case 1: |
| 10826 | if wireType != 2 { |
| 10827 | return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| 10828 | } |
| 10829 | var byteLen int |
| 10830 | for shift := uint(0); ; shift += 7 { |
| 10831 | if shift >= 64 { |
| 10832 | return ErrIntOverflowRpc |
| 10833 | } |
| 10834 | if iNdEx >= l { |
| 10835 | return io.ErrUnexpectedEOF |
| 10836 | } |
| 10837 | b := dAtA[iNdEx] |
| 10838 | iNdEx++ |
| 10839 | byteLen |= (int(b) & 0x7F) << shift |
| 10840 | if b < 0x80 { |
| 10841 | break |
| 10842 | } |
| 10843 | } |
| 10844 | if byteLen < 0 { |
| 10845 | return ErrInvalidLengthRpc |
| 10846 | } |
| 10847 | postIndex := iNdEx + byteLen |
| 10848 | if postIndex > l { |
| 10849 | return io.ErrUnexpectedEOF |
| 10850 | } |
| 10851 | m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) |
| 10852 | if m.Key == nil { |
| 10853 | m.Key = []byte{} |
| 10854 | } |
| 10855 | iNdEx = postIndex |
| 10856 | case 2: |
| 10857 | if wireType != 2 { |
| 10858 | return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType) |
| 10859 | } |
| 10860 | var byteLen int |
| 10861 | for shift := uint(0); ; shift += 7 { |
| 10862 | if shift >= 64 { |
| 10863 | return ErrIntOverflowRpc |
| 10864 | } |
| 10865 | if iNdEx >= l { |
| 10866 | return io.ErrUnexpectedEOF |
| 10867 | } |
| 10868 | b := dAtA[iNdEx] |
| 10869 | iNdEx++ |
| 10870 | byteLen |= (int(b) & 0x7F) << shift |
| 10871 | if b < 0x80 { |
| 10872 | break |
| 10873 | } |
| 10874 | } |
| 10875 | if byteLen < 0 { |
| 10876 | return ErrInvalidLengthRpc |
| 10877 | } |
| 10878 | postIndex := iNdEx + byteLen |
| 10879 | if postIndex > l { |
| 10880 | return io.ErrUnexpectedEOF |
| 10881 | } |
| 10882 | m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...) |
| 10883 | if m.RangeEnd == nil { |
| 10884 | m.RangeEnd = []byte{} |
| 10885 | } |
| 10886 | iNdEx = postIndex |
| 10887 | case 3: |
| 10888 | if wireType != 0 { |
| 10889 | return fmt.Errorf("proto: wrong wireType = %d for field PrevKv", wireType) |
| 10890 | } |
| 10891 | var v int |
| 10892 | for shift := uint(0); ; shift += 7 { |
| 10893 | if shift >= 64 { |
| 10894 | return ErrIntOverflowRpc |
| 10895 | } |
| 10896 | if iNdEx >= l { |
| 10897 | return io.ErrUnexpectedEOF |
| 10898 | } |
| 10899 | b := dAtA[iNdEx] |
| 10900 | iNdEx++ |
| 10901 | v |= (int(b) & 0x7F) << shift |
| 10902 | if b < 0x80 { |
| 10903 | break |
| 10904 | } |
| 10905 | } |
| 10906 | m.PrevKv = bool(v != 0) |
| 10907 | default: |
| 10908 | iNdEx = preIndex |
| 10909 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 10910 | if err != nil { |
| 10911 | return err |
| 10912 | } |
| 10913 | if skippy < 0 { |
| 10914 | return ErrInvalidLengthRpc |
| 10915 | } |
| 10916 | if (iNdEx + skippy) > l { |
| 10917 | return io.ErrUnexpectedEOF |
| 10918 | } |
| 10919 | iNdEx += skippy |
| 10920 | } |
| 10921 | } |
| 10922 | |
| 10923 | if iNdEx > l { |
| 10924 | return io.ErrUnexpectedEOF |
| 10925 | } |
| 10926 | return nil |
| 10927 | } |
| 10928 | func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { |
| 10929 | l := len(dAtA) |
| 10930 | iNdEx := 0 |
| 10931 | for iNdEx < l { |
| 10932 | preIndex := iNdEx |
| 10933 | var wire uint64 |
| 10934 | for shift := uint(0); ; shift += 7 { |
| 10935 | if shift >= 64 { |
| 10936 | return ErrIntOverflowRpc |
| 10937 | } |
| 10938 | if iNdEx >= l { |
| 10939 | return io.ErrUnexpectedEOF |
| 10940 | } |
| 10941 | b := dAtA[iNdEx] |
| 10942 | iNdEx++ |
| 10943 | wire |= (uint64(b) & 0x7F) << shift |
| 10944 | if b < 0x80 { |
| 10945 | break |
| 10946 | } |
| 10947 | } |
| 10948 | fieldNum := int32(wire >> 3) |
| 10949 | wireType := int(wire & 0x7) |
| 10950 | if wireType == 4 { |
| 10951 | return fmt.Errorf("proto: DeleteRangeResponse: wiretype end group for non-group") |
| 10952 | } |
| 10953 | if fieldNum <= 0 { |
| 10954 | return fmt.Errorf("proto: DeleteRangeResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 10955 | } |
| 10956 | switch fieldNum { |
| 10957 | case 1: |
| 10958 | if wireType != 2 { |
| 10959 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 10960 | } |
| 10961 | var msglen int |
| 10962 | for shift := uint(0); ; shift += 7 { |
| 10963 | if shift >= 64 { |
| 10964 | return ErrIntOverflowRpc |
| 10965 | } |
| 10966 | if iNdEx >= l { |
| 10967 | return io.ErrUnexpectedEOF |
| 10968 | } |
| 10969 | b := dAtA[iNdEx] |
| 10970 | iNdEx++ |
| 10971 | msglen |= (int(b) & 0x7F) << shift |
| 10972 | if b < 0x80 { |
| 10973 | break |
| 10974 | } |
| 10975 | } |
| 10976 | if msglen < 0 { |
| 10977 | return ErrInvalidLengthRpc |
| 10978 | } |
| 10979 | postIndex := iNdEx + msglen |
| 10980 | if postIndex > l { |
| 10981 | return io.ErrUnexpectedEOF |
| 10982 | } |
| 10983 | if m.Header == nil { |
| 10984 | m.Header = &ResponseHeader{} |
| 10985 | } |
| 10986 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 10987 | return err |
| 10988 | } |
| 10989 | iNdEx = postIndex |
| 10990 | case 2: |
| 10991 | if wireType != 0 { |
| 10992 | return fmt.Errorf("proto: wrong wireType = %d for field Deleted", wireType) |
| 10993 | } |
| 10994 | m.Deleted = 0 |
| 10995 | for shift := uint(0); ; shift += 7 { |
| 10996 | if shift >= 64 { |
| 10997 | return ErrIntOverflowRpc |
| 10998 | } |
| 10999 | if iNdEx >= l { |
| 11000 | return io.ErrUnexpectedEOF |
| 11001 | } |
| 11002 | b := dAtA[iNdEx] |
| 11003 | iNdEx++ |
| 11004 | m.Deleted |= (int64(b) & 0x7F) << shift |
| 11005 | if b < 0x80 { |
| 11006 | break |
| 11007 | } |
| 11008 | } |
| 11009 | case 3: |
| 11010 | if wireType != 2 { |
| 11011 | return fmt.Errorf("proto: wrong wireType = %d for field PrevKvs", wireType) |
| 11012 | } |
| 11013 | var msglen int |
| 11014 | for shift := uint(0); ; shift += 7 { |
| 11015 | if shift >= 64 { |
| 11016 | return ErrIntOverflowRpc |
| 11017 | } |
| 11018 | if iNdEx >= l { |
| 11019 | return io.ErrUnexpectedEOF |
| 11020 | } |
| 11021 | b := dAtA[iNdEx] |
| 11022 | iNdEx++ |
| 11023 | msglen |= (int(b) & 0x7F) << shift |
| 11024 | if b < 0x80 { |
| 11025 | break |
| 11026 | } |
| 11027 | } |
| 11028 | if msglen < 0 { |
| 11029 | return ErrInvalidLengthRpc |
| 11030 | } |
| 11031 | postIndex := iNdEx + msglen |
| 11032 | if postIndex > l { |
| 11033 | return io.ErrUnexpectedEOF |
| 11034 | } |
| 11035 | m.PrevKvs = append(m.PrevKvs, &mvccpb.KeyValue{}) |
| 11036 | if err := m.PrevKvs[len(m.PrevKvs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11037 | return err |
| 11038 | } |
| 11039 | iNdEx = postIndex |
| 11040 | default: |
| 11041 | iNdEx = preIndex |
| 11042 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 11043 | if err != nil { |
| 11044 | return err |
| 11045 | } |
| 11046 | if skippy < 0 { |
| 11047 | return ErrInvalidLengthRpc |
| 11048 | } |
| 11049 | if (iNdEx + skippy) > l { |
| 11050 | return io.ErrUnexpectedEOF |
| 11051 | } |
| 11052 | iNdEx += skippy |
| 11053 | } |
| 11054 | } |
| 11055 | |
| 11056 | if iNdEx > l { |
| 11057 | return io.ErrUnexpectedEOF |
| 11058 | } |
| 11059 | return nil |
| 11060 | } |
| 11061 | func (m *RequestOp) Unmarshal(dAtA []byte) error { |
| 11062 | l := len(dAtA) |
| 11063 | iNdEx := 0 |
| 11064 | for iNdEx < l { |
| 11065 | preIndex := iNdEx |
| 11066 | var wire uint64 |
| 11067 | for shift := uint(0); ; shift += 7 { |
| 11068 | if shift >= 64 { |
| 11069 | return ErrIntOverflowRpc |
| 11070 | } |
| 11071 | if iNdEx >= l { |
| 11072 | return io.ErrUnexpectedEOF |
| 11073 | } |
| 11074 | b := dAtA[iNdEx] |
| 11075 | iNdEx++ |
| 11076 | wire |= (uint64(b) & 0x7F) << shift |
| 11077 | if b < 0x80 { |
| 11078 | break |
| 11079 | } |
| 11080 | } |
| 11081 | fieldNum := int32(wire >> 3) |
| 11082 | wireType := int(wire & 0x7) |
| 11083 | if wireType == 4 { |
| 11084 | return fmt.Errorf("proto: RequestOp: wiretype end group for non-group") |
| 11085 | } |
| 11086 | if fieldNum <= 0 { |
| 11087 | return fmt.Errorf("proto: RequestOp: illegal tag %d (wire type %d)", fieldNum, wire) |
| 11088 | } |
| 11089 | switch fieldNum { |
| 11090 | case 1: |
| 11091 | if wireType != 2 { |
| 11092 | return fmt.Errorf("proto: wrong wireType = %d for field RequestRange", wireType) |
| 11093 | } |
| 11094 | var msglen int |
| 11095 | for shift := uint(0); ; shift += 7 { |
| 11096 | if shift >= 64 { |
| 11097 | return ErrIntOverflowRpc |
| 11098 | } |
| 11099 | if iNdEx >= l { |
| 11100 | return io.ErrUnexpectedEOF |
| 11101 | } |
| 11102 | b := dAtA[iNdEx] |
| 11103 | iNdEx++ |
| 11104 | msglen |= (int(b) & 0x7F) << shift |
| 11105 | if b < 0x80 { |
| 11106 | break |
| 11107 | } |
| 11108 | } |
| 11109 | if msglen < 0 { |
| 11110 | return ErrInvalidLengthRpc |
| 11111 | } |
| 11112 | postIndex := iNdEx + msglen |
| 11113 | if postIndex > l { |
| 11114 | return io.ErrUnexpectedEOF |
| 11115 | } |
| 11116 | v := &RangeRequest{} |
| 11117 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11118 | return err |
| 11119 | } |
| 11120 | m.Request = &RequestOp_RequestRange{v} |
| 11121 | iNdEx = postIndex |
| 11122 | case 2: |
| 11123 | if wireType != 2 { |
| 11124 | return fmt.Errorf("proto: wrong wireType = %d for field RequestPut", wireType) |
| 11125 | } |
| 11126 | var msglen int |
| 11127 | for shift := uint(0); ; shift += 7 { |
| 11128 | if shift >= 64 { |
| 11129 | return ErrIntOverflowRpc |
| 11130 | } |
| 11131 | if iNdEx >= l { |
| 11132 | return io.ErrUnexpectedEOF |
| 11133 | } |
| 11134 | b := dAtA[iNdEx] |
| 11135 | iNdEx++ |
| 11136 | msglen |= (int(b) & 0x7F) << shift |
| 11137 | if b < 0x80 { |
| 11138 | break |
| 11139 | } |
| 11140 | } |
| 11141 | if msglen < 0 { |
| 11142 | return ErrInvalidLengthRpc |
| 11143 | } |
| 11144 | postIndex := iNdEx + msglen |
| 11145 | if postIndex > l { |
| 11146 | return io.ErrUnexpectedEOF |
| 11147 | } |
| 11148 | v := &PutRequest{} |
| 11149 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11150 | return err |
| 11151 | } |
| 11152 | m.Request = &RequestOp_RequestPut{v} |
| 11153 | iNdEx = postIndex |
| 11154 | case 3: |
| 11155 | if wireType != 2 { |
| 11156 | return fmt.Errorf("proto: wrong wireType = %d for field RequestDeleteRange", wireType) |
| 11157 | } |
| 11158 | var msglen int |
| 11159 | for shift := uint(0); ; shift += 7 { |
| 11160 | if shift >= 64 { |
| 11161 | return ErrIntOverflowRpc |
| 11162 | } |
| 11163 | if iNdEx >= l { |
| 11164 | return io.ErrUnexpectedEOF |
| 11165 | } |
| 11166 | b := dAtA[iNdEx] |
| 11167 | iNdEx++ |
| 11168 | msglen |= (int(b) & 0x7F) << shift |
| 11169 | if b < 0x80 { |
| 11170 | break |
| 11171 | } |
| 11172 | } |
| 11173 | if msglen < 0 { |
| 11174 | return ErrInvalidLengthRpc |
| 11175 | } |
| 11176 | postIndex := iNdEx + msglen |
| 11177 | if postIndex > l { |
| 11178 | return io.ErrUnexpectedEOF |
| 11179 | } |
| 11180 | v := &DeleteRangeRequest{} |
| 11181 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11182 | return err |
| 11183 | } |
| 11184 | m.Request = &RequestOp_RequestDeleteRange{v} |
| 11185 | iNdEx = postIndex |
| 11186 | case 4: |
| 11187 | if wireType != 2 { |
| 11188 | return fmt.Errorf("proto: wrong wireType = %d for field RequestTxn", wireType) |
| 11189 | } |
| 11190 | var msglen int |
| 11191 | for shift := uint(0); ; shift += 7 { |
| 11192 | if shift >= 64 { |
| 11193 | return ErrIntOverflowRpc |
| 11194 | } |
| 11195 | if iNdEx >= l { |
| 11196 | return io.ErrUnexpectedEOF |
| 11197 | } |
| 11198 | b := dAtA[iNdEx] |
| 11199 | iNdEx++ |
| 11200 | msglen |= (int(b) & 0x7F) << shift |
| 11201 | if b < 0x80 { |
| 11202 | break |
| 11203 | } |
| 11204 | } |
| 11205 | if msglen < 0 { |
| 11206 | return ErrInvalidLengthRpc |
| 11207 | } |
| 11208 | postIndex := iNdEx + msglen |
| 11209 | if postIndex > l { |
| 11210 | return io.ErrUnexpectedEOF |
| 11211 | } |
| 11212 | v := &TxnRequest{} |
| 11213 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11214 | return err |
| 11215 | } |
| 11216 | m.Request = &RequestOp_RequestTxn{v} |
| 11217 | iNdEx = postIndex |
| 11218 | default: |
| 11219 | iNdEx = preIndex |
| 11220 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 11221 | if err != nil { |
| 11222 | return err |
| 11223 | } |
| 11224 | if skippy < 0 { |
| 11225 | return ErrInvalidLengthRpc |
| 11226 | } |
| 11227 | if (iNdEx + skippy) > l { |
| 11228 | return io.ErrUnexpectedEOF |
| 11229 | } |
| 11230 | iNdEx += skippy |
| 11231 | } |
| 11232 | } |
| 11233 | |
| 11234 | if iNdEx > l { |
| 11235 | return io.ErrUnexpectedEOF |
| 11236 | } |
| 11237 | return nil |
| 11238 | } |
| 11239 | func (m *ResponseOp) Unmarshal(dAtA []byte) error { |
| 11240 | l := len(dAtA) |
| 11241 | iNdEx := 0 |
| 11242 | for iNdEx < l { |
| 11243 | preIndex := iNdEx |
| 11244 | var wire uint64 |
| 11245 | for shift := uint(0); ; shift += 7 { |
| 11246 | if shift >= 64 { |
| 11247 | return ErrIntOverflowRpc |
| 11248 | } |
| 11249 | if iNdEx >= l { |
| 11250 | return io.ErrUnexpectedEOF |
| 11251 | } |
| 11252 | b := dAtA[iNdEx] |
| 11253 | iNdEx++ |
| 11254 | wire |= (uint64(b) & 0x7F) << shift |
| 11255 | if b < 0x80 { |
| 11256 | break |
| 11257 | } |
| 11258 | } |
| 11259 | fieldNum := int32(wire >> 3) |
| 11260 | wireType := int(wire & 0x7) |
| 11261 | if wireType == 4 { |
| 11262 | return fmt.Errorf("proto: ResponseOp: wiretype end group for non-group") |
| 11263 | } |
| 11264 | if fieldNum <= 0 { |
| 11265 | return fmt.Errorf("proto: ResponseOp: illegal tag %d (wire type %d)", fieldNum, wire) |
| 11266 | } |
| 11267 | switch fieldNum { |
| 11268 | case 1: |
| 11269 | if wireType != 2 { |
| 11270 | return fmt.Errorf("proto: wrong wireType = %d for field ResponseRange", wireType) |
| 11271 | } |
| 11272 | var msglen int |
| 11273 | for shift := uint(0); ; shift += 7 { |
| 11274 | if shift >= 64 { |
| 11275 | return ErrIntOverflowRpc |
| 11276 | } |
| 11277 | if iNdEx >= l { |
| 11278 | return io.ErrUnexpectedEOF |
| 11279 | } |
| 11280 | b := dAtA[iNdEx] |
| 11281 | iNdEx++ |
| 11282 | msglen |= (int(b) & 0x7F) << shift |
| 11283 | if b < 0x80 { |
| 11284 | break |
| 11285 | } |
| 11286 | } |
| 11287 | if msglen < 0 { |
| 11288 | return ErrInvalidLengthRpc |
| 11289 | } |
| 11290 | postIndex := iNdEx + msglen |
| 11291 | if postIndex > l { |
| 11292 | return io.ErrUnexpectedEOF |
| 11293 | } |
| 11294 | v := &RangeResponse{} |
| 11295 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11296 | return err |
| 11297 | } |
| 11298 | m.Response = &ResponseOp_ResponseRange{v} |
| 11299 | iNdEx = postIndex |
| 11300 | case 2: |
| 11301 | if wireType != 2 { |
| 11302 | return fmt.Errorf("proto: wrong wireType = %d for field ResponsePut", wireType) |
| 11303 | } |
| 11304 | var msglen int |
| 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 | msglen |= (int(b) & 0x7F) << shift |
| 11315 | if b < 0x80 { |
| 11316 | break |
| 11317 | } |
| 11318 | } |
| 11319 | if msglen < 0 { |
| 11320 | return ErrInvalidLengthRpc |
| 11321 | } |
| 11322 | postIndex := iNdEx + msglen |
| 11323 | if postIndex > l { |
| 11324 | return io.ErrUnexpectedEOF |
| 11325 | } |
| 11326 | v := &PutResponse{} |
| 11327 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11328 | return err |
| 11329 | } |
| 11330 | m.Response = &ResponseOp_ResponsePut{v} |
| 11331 | iNdEx = postIndex |
| 11332 | case 3: |
| 11333 | if wireType != 2 { |
| 11334 | return fmt.Errorf("proto: wrong wireType = %d for field ResponseDeleteRange", wireType) |
| 11335 | } |
| 11336 | var msglen int |
| 11337 | for shift := uint(0); ; shift += 7 { |
| 11338 | if shift >= 64 { |
| 11339 | return ErrIntOverflowRpc |
| 11340 | } |
| 11341 | if iNdEx >= l { |
| 11342 | return io.ErrUnexpectedEOF |
| 11343 | } |
| 11344 | b := dAtA[iNdEx] |
| 11345 | iNdEx++ |
| 11346 | msglen |= (int(b) & 0x7F) << shift |
| 11347 | if b < 0x80 { |
| 11348 | break |
| 11349 | } |
| 11350 | } |
| 11351 | if msglen < 0 { |
| 11352 | return ErrInvalidLengthRpc |
| 11353 | } |
| 11354 | postIndex := iNdEx + msglen |
| 11355 | if postIndex > l { |
| 11356 | return io.ErrUnexpectedEOF |
| 11357 | } |
| 11358 | v := &DeleteRangeResponse{} |
| 11359 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11360 | return err |
| 11361 | } |
| 11362 | m.Response = &ResponseOp_ResponseDeleteRange{v} |
| 11363 | iNdEx = postIndex |
| 11364 | case 4: |
| 11365 | if wireType != 2 { |
| 11366 | return fmt.Errorf("proto: wrong wireType = %d for field ResponseTxn", wireType) |
| 11367 | } |
| 11368 | var msglen int |
| 11369 | for shift := uint(0); ; shift += 7 { |
| 11370 | if shift >= 64 { |
| 11371 | return ErrIntOverflowRpc |
| 11372 | } |
| 11373 | if iNdEx >= l { |
| 11374 | return io.ErrUnexpectedEOF |
| 11375 | } |
| 11376 | b := dAtA[iNdEx] |
| 11377 | iNdEx++ |
| 11378 | msglen |= (int(b) & 0x7F) << shift |
| 11379 | if b < 0x80 { |
| 11380 | break |
| 11381 | } |
| 11382 | } |
| 11383 | if msglen < 0 { |
| 11384 | return ErrInvalidLengthRpc |
| 11385 | } |
| 11386 | postIndex := iNdEx + msglen |
| 11387 | if postIndex > l { |
| 11388 | return io.ErrUnexpectedEOF |
| 11389 | } |
| 11390 | v := &TxnResponse{} |
| 11391 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11392 | return err |
| 11393 | } |
| 11394 | m.Response = &ResponseOp_ResponseTxn{v} |
| 11395 | iNdEx = postIndex |
| 11396 | default: |
| 11397 | iNdEx = preIndex |
| 11398 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 11399 | if err != nil { |
| 11400 | return err |
| 11401 | } |
| 11402 | if skippy < 0 { |
| 11403 | return ErrInvalidLengthRpc |
| 11404 | } |
| 11405 | if (iNdEx + skippy) > l { |
| 11406 | return io.ErrUnexpectedEOF |
| 11407 | } |
| 11408 | iNdEx += skippy |
| 11409 | } |
| 11410 | } |
| 11411 | |
| 11412 | if iNdEx > l { |
| 11413 | return io.ErrUnexpectedEOF |
| 11414 | } |
| 11415 | return nil |
| 11416 | } |
| 11417 | func (m *Compare) Unmarshal(dAtA []byte) error { |
| 11418 | l := len(dAtA) |
| 11419 | iNdEx := 0 |
| 11420 | for iNdEx < l { |
| 11421 | preIndex := iNdEx |
| 11422 | var wire uint64 |
| 11423 | for shift := uint(0); ; shift += 7 { |
| 11424 | if shift >= 64 { |
| 11425 | return ErrIntOverflowRpc |
| 11426 | } |
| 11427 | if iNdEx >= l { |
| 11428 | return io.ErrUnexpectedEOF |
| 11429 | } |
| 11430 | b := dAtA[iNdEx] |
| 11431 | iNdEx++ |
| 11432 | wire |= (uint64(b) & 0x7F) << shift |
| 11433 | if b < 0x80 { |
| 11434 | break |
| 11435 | } |
| 11436 | } |
| 11437 | fieldNum := int32(wire >> 3) |
| 11438 | wireType := int(wire & 0x7) |
| 11439 | if wireType == 4 { |
| 11440 | return fmt.Errorf("proto: Compare: wiretype end group for non-group") |
| 11441 | } |
| 11442 | if fieldNum <= 0 { |
| 11443 | return fmt.Errorf("proto: Compare: illegal tag %d (wire type %d)", fieldNum, wire) |
| 11444 | } |
| 11445 | switch fieldNum { |
| 11446 | case 1: |
| 11447 | if wireType != 0 { |
| 11448 | return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) |
| 11449 | } |
| 11450 | m.Result = 0 |
| 11451 | for shift := uint(0); ; shift += 7 { |
| 11452 | if shift >= 64 { |
| 11453 | return ErrIntOverflowRpc |
| 11454 | } |
| 11455 | if iNdEx >= l { |
| 11456 | return io.ErrUnexpectedEOF |
| 11457 | } |
| 11458 | b := dAtA[iNdEx] |
| 11459 | iNdEx++ |
| 11460 | m.Result |= (Compare_CompareResult(b) & 0x7F) << shift |
| 11461 | if b < 0x80 { |
| 11462 | break |
| 11463 | } |
| 11464 | } |
| 11465 | case 2: |
| 11466 | if wireType != 0 { |
| 11467 | return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) |
| 11468 | } |
| 11469 | m.Target = 0 |
| 11470 | for shift := uint(0); ; shift += 7 { |
| 11471 | if shift >= 64 { |
| 11472 | return ErrIntOverflowRpc |
| 11473 | } |
| 11474 | if iNdEx >= l { |
| 11475 | return io.ErrUnexpectedEOF |
| 11476 | } |
| 11477 | b := dAtA[iNdEx] |
| 11478 | iNdEx++ |
| 11479 | m.Target |= (Compare_CompareTarget(b) & 0x7F) << shift |
| 11480 | if b < 0x80 { |
| 11481 | break |
| 11482 | } |
| 11483 | } |
| 11484 | case 3: |
| 11485 | if wireType != 2 { |
| 11486 | return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| 11487 | } |
| 11488 | var byteLen int |
| 11489 | for shift := uint(0); ; shift += 7 { |
| 11490 | if shift >= 64 { |
| 11491 | return ErrIntOverflowRpc |
| 11492 | } |
| 11493 | if iNdEx >= l { |
| 11494 | return io.ErrUnexpectedEOF |
| 11495 | } |
| 11496 | b := dAtA[iNdEx] |
| 11497 | iNdEx++ |
| 11498 | byteLen |= (int(b) & 0x7F) << shift |
| 11499 | if b < 0x80 { |
| 11500 | break |
| 11501 | } |
| 11502 | } |
| 11503 | if byteLen < 0 { |
| 11504 | return ErrInvalidLengthRpc |
| 11505 | } |
| 11506 | postIndex := iNdEx + byteLen |
| 11507 | if postIndex > l { |
| 11508 | return io.ErrUnexpectedEOF |
| 11509 | } |
| 11510 | m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) |
| 11511 | if m.Key == nil { |
| 11512 | m.Key = []byte{} |
| 11513 | } |
| 11514 | iNdEx = postIndex |
| 11515 | case 4: |
| 11516 | if wireType != 0 { |
| 11517 | return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) |
| 11518 | } |
| 11519 | var v int64 |
| 11520 | for shift := uint(0); ; shift += 7 { |
| 11521 | if shift >= 64 { |
| 11522 | return ErrIntOverflowRpc |
| 11523 | } |
| 11524 | if iNdEx >= l { |
| 11525 | return io.ErrUnexpectedEOF |
| 11526 | } |
| 11527 | b := dAtA[iNdEx] |
| 11528 | iNdEx++ |
| 11529 | v |= (int64(b) & 0x7F) << shift |
| 11530 | if b < 0x80 { |
| 11531 | break |
| 11532 | } |
| 11533 | } |
| 11534 | m.TargetUnion = &Compare_Version{v} |
| 11535 | case 5: |
| 11536 | if wireType != 0 { |
| 11537 | return fmt.Errorf("proto: wrong wireType = %d for field CreateRevision", wireType) |
| 11538 | } |
| 11539 | var v int64 |
| 11540 | for shift := uint(0); ; shift += 7 { |
| 11541 | if shift >= 64 { |
| 11542 | return ErrIntOverflowRpc |
| 11543 | } |
| 11544 | if iNdEx >= l { |
| 11545 | return io.ErrUnexpectedEOF |
| 11546 | } |
| 11547 | b := dAtA[iNdEx] |
| 11548 | iNdEx++ |
| 11549 | v |= (int64(b) & 0x7F) << shift |
| 11550 | if b < 0x80 { |
| 11551 | break |
| 11552 | } |
| 11553 | } |
| 11554 | m.TargetUnion = &Compare_CreateRevision{v} |
| 11555 | case 6: |
| 11556 | if wireType != 0 { |
| 11557 | return fmt.Errorf("proto: wrong wireType = %d for field ModRevision", wireType) |
| 11558 | } |
| 11559 | var v int64 |
| 11560 | for shift := uint(0); ; shift += 7 { |
| 11561 | if shift >= 64 { |
| 11562 | return ErrIntOverflowRpc |
| 11563 | } |
| 11564 | if iNdEx >= l { |
| 11565 | return io.ErrUnexpectedEOF |
| 11566 | } |
| 11567 | b := dAtA[iNdEx] |
| 11568 | iNdEx++ |
| 11569 | v |= (int64(b) & 0x7F) << shift |
| 11570 | if b < 0x80 { |
| 11571 | break |
| 11572 | } |
| 11573 | } |
| 11574 | m.TargetUnion = &Compare_ModRevision{v} |
| 11575 | case 7: |
| 11576 | if wireType != 2 { |
| 11577 | return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) |
| 11578 | } |
| 11579 | var byteLen int |
| 11580 | for shift := uint(0); ; shift += 7 { |
| 11581 | if shift >= 64 { |
| 11582 | return ErrIntOverflowRpc |
| 11583 | } |
| 11584 | if iNdEx >= l { |
| 11585 | return io.ErrUnexpectedEOF |
| 11586 | } |
| 11587 | b := dAtA[iNdEx] |
| 11588 | iNdEx++ |
| 11589 | byteLen |= (int(b) & 0x7F) << shift |
| 11590 | if b < 0x80 { |
| 11591 | break |
| 11592 | } |
| 11593 | } |
| 11594 | if byteLen < 0 { |
| 11595 | return ErrInvalidLengthRpc |
| 11596 | } |
| 11597 | postIndex := iNdEx + byteLen |
| 11598 | if postIndex > l { |
| 11599 | return io.ErrUnexpectedEOF |
| 11600 | } |
| 11601 | v := make([]byte, postIndex-iNdEx) |
| 11602 | copy(v, dAtA[iNdEx:postIndex]) |
| 11603 | m.TargetUnion = &Compare_Value{v} |
| 11604 | iNdEx = postIndex |
| 11605 | case 8: |
| 11606 | if wireType != 0 { |
| 11607 | return fmt.Errorf("proto: wrong wireType = %d for field Lease", wireType) |
| 11608 | } |
| 11609 | var v int64 |
| 11610 | for shift := uint(0); ; shift += 7 { |
| 11611 | if shift >= 64 { |
| 11612 | return ErrIntOverflowRpc |
| 11613 | } |
| 11614 | if iNdEx >= l { |
| 11615 | return io.ErrUnexpectedEOF |
| 11616 | } |
| 11617 | b := dAtA[iNdEx] |
| 11618 | iNdEx++ |
| 11619 | v |= (int64(b) & 0x7F) << shift |
| 11620 | if b < 0x80 { |
| 11621 | break |
| 11622 | } |
| 11623 | } |
| 11624 | m.TargetUnion = &Compare_Lease{v} |
| 11625 | case 64: |
| 11626 | if wireType != 2 { |
| 11627 | return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType) |
| 11628 | } |
| 11629 | var byteLen int |
| 11630 | for shift := uint(0); ; shift += 7 { |
| 11631 | if shift >= 64 { |
| 11632 | return ErrIntOverflowRpc |
| 11633 | } |
| 11634 | if iNdEx >= l { |
| 11635 | return io.ErrUnexpectedEOF |
| 11636 | } |
| 11637 | b := dAtA[iNdEx] |
| 11638 | iNdEx++ |
| 11639 | byteLen |= (int(b) & 0x7F) << shift |
| 11640 | if b < 0x80 { |
| 11641 | break |
| 11642 | } |
| 11643 | } |
| 11644 | if byteLen < 0 { |
| 11645 | return ErrInvalidLengthRpc |
| 11646 | } |
| 11647 | postIndex := iNdEx + byteLen |
| 11648 | if postIndex > l { |
| 11649 | return io.ErrUnexpectedEOF |
| 11650 | } |
| 11651 | m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...) |
| 11652 | if m.RangeEnd == nil { |
| 11653 | m.RangeEnd = []byte{} |
| 11654 | } |
| 11655 | iNdEx = postIndex |
| 11656 | default: |
| 11657 | iNdEx = preIndex |
| 11658 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 11659 | if err != nil { |
| 11660 | return err |
| 11661 | } |
| 11662 | if skippy < 0 { |
| 11663 | return ErrInvalidLengthRpc |
| 11664 | } |
| 11665 | if (iNdEx + skippy) > l { |
| 11666 | return io.ErrUnexpectedEOF |
| 11667 | } |
| 11668 | iNdEx += skippy |
| 11669 | } |
| 11670 | } |
| 11671 | |
| 11672 | if iNdEx > l { |
| 11673 | return io.ErrUnexpectedEOF |
| 11674 | } |
| 11675 | return nil |
| 11676 | } |
| 11677 | func (m *TxnRequest) Unmarshal(dAtA []byte) error { |
| 11678 | l := len(dAtA) |
| 11679 | iNdEx := 0 |
| 11680 | for iNdEx < l { |
| 11681 | preIndex := iNdEx |
| 11682 | var wire uint64 |
| 11683 | for shift := uint(0); ; shift += 7 { |
| 11684 | if shift >= 64 { |
| 11685 | return ErrIntOverflowRpc |
| 11686 | } |
| 11687 | if iNdEx >= l { |
| 11688 | return io.ErrUnexpectedEOF |
| 11689 | } |
| 11690 | b := dAtA[iNdEx] |
| 11691 | iNdEx++ |
| 11692 | wire |= (uint64(b) & 0x7F) << shift |
| 11693 | if b < 0x80 { |
| 11694 | break |
| 11695 | } |
| 11696 | } |
| 11697 | fieldNum := int32(wire >> 3) |
| 11698 | wireType := int(wire & 0x7) |
| 11699 | if wireType == 4 { |
| 11700 | return fmt.Errorf("proto: TxnRequest: wiretype end group for non-group") |
| 11701 | } |
| 11702 | if fieldNum <= 0 { |
| 11703 | return fmt.Errorf("proto: TxnRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 11704 | } |
| 11705 | switch fieldNum { |
| 11706 | case 1: |
| 11707 | if wireType != 2 { |
| 11708 | return fmt.Errorf("proto: wrong wireType = %d for field Compare", wireType) |
| 11709 | } |
| 11710 | var msglen int |
| 11711 | for shift := uint(0); ; shift += 7 { |
| 11712 | if shift >= 64 { |
| 11713 | return ErrIntOverflowRpc |
| 11714 | } |
| 11715 | if iNdEx >= l { |
| 11716 | return io.ErrUnexpectedEOF |
| 11717 | } |
| 11718 | b := dAtA[iNdEx] |
| 11719 | iNdEx++ |
| 11720 | msglen |= (int(b) & 0x7F) << shift |
| 11721 | if b < 0x80 { |
| 11722 | break |
| 11723 | } |
| 11724 | } |
| 11725 | if msglen < 0 { |
| 11726 | return ErrInvalidLengthRpc |
| 11727 | } |
| 11728 | postIndex := iNdEx + msglen |
| 11729 | if postIndex > l { |
| 11730 | return io.ErrUnexpectedEOF |
| 11731 | } |
| 11732 | m.Compare = append(m.Compare, &Compare{}) |
| 11733 | if err := m.Compare[len(m.Compare)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11734 | return err |
| 11735 | } |
| 11736 | iNdEx = postIndex |
| 11737 | case 2: |
| 11738 | if wireType != 2 { |
| 11739 | return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType) |
| 11740 | } |
| 11741 | var msglen int |
| 11742 | for shift := uint(0); ; shift += 7 { |
| 11743 | if shift >= 64 { |
| 11744 | return ErrIntOverflowRpc |
| 11745 | } |
| 11746 | if iNdEx >= l { |
| 11747 | return io.ErrUnexpectedEOF |
| 11748 | } |
| 11749 | b := dAtA[iNdEx] |
| 11750 | iNdEx++ |
| 11751 | msglen |= (int(b) & 0x7F) << shift |
| 11752 | if b < 0x80 { |
| 11753 | break |
| 11754 | } |
| 11755 | } |
| 11756 | if msglen < 0 { |
| 11757 | return ErrInvalidLengthRpc |
| 11758 | } |
| 11759 | postIndex := iNdEx + msglen |
| 11760 | if postIndex > l { |
| 11761 | return io.ErrUnexpectedEOF |
| 11762 | } |
| 11763 | m.Success = append(m.Success, &RequestOp{}) |
| 11764 | if err := m.Success[len(m.Success)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11765 | return err |
| 11766 | } |
| 11767 | iNdEx = postIndex |
| 11768 | case 3: |
| 11769 | if wireType != 2 { |
| 11770 | return fmt.Errorf("proto: wrong wireType = %d for field Failure", wireType) |
| 11771 | } |
| 11772 | var msglen int |
| 11773 | for shift := uint(0); ; shift += 7 { |
| 11774 | if shift >= 64 { |
| 11775 | return ErrIntOverflowRpc |
| 11776 | } |
| 11777 | if iNdEx >= l { |
| 11778 | return io.ErrUnexpectedEOF |
| 11779 | } |
| 11780 | b := dAtA[iNdEx] |
| 11781 | iNdEx++ |
| 11782 | msglen |= (int(b) & 0x7F) << shift |
| 11783 | if b < 0x80 { |
| 11784 | break |
| 11785 | } |
| 11786 | } |
| 11787 | if msglen < 0 { |
| 11788 | return ErrInvalidLengthRpc |
| 11789 | } |
| 11790 | postIndex := iNdEx + msglen |
| 11791 | if postIndex > l { |
| 11792 | return io.ErrUnexpectedEOF |
| 11793 | } |
| 11794 | m.Failure = append(m.Failure, &RequestOp{}) |
| 11795 | if err := m.Failure[len(m.Failure)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11796 | return err |
| 11797 | } |
| 11798 | iNdEx = postIndex |
| 11799 | default: |
| 11800 | iNdEx = preIndex |
| 11801 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 11802 | if err != nil { |
| 11803 | return err |
| 11804 | } |
| 11805 | if skippy < 0 { |
| 11806 | return ErrInvalidLengthRpc |
| 11807 | } |
| 11808 | if (iNdEx + skippy) > l { |
| 11809 | return io.ErrUnexpectedEOF |
| 11810 | } |
| 11811 | iNdEx += skippy |
| 11812 | } |
| 11813 | } |
| 11814 | |
| 11815 | if iNdEx > l { |
| 11816 | return io.ErrUnexpectedEOF |
| 11817 | } |
| 11818 | return nil |
| 11819 | } |
| 11820 | func (m *TxnResponse) Unmarshal(dAtA []byte) error { |
| 11821 | l := len(dAtA) |
| 11822 | iNdEx := 0 |
| 11823 | for iNdEx < l { |
| 11824 | preIndex := iNdEx |
| 11825 | var wire uint64 |
| 11826 | for shift := uint(0); ; shift += 7 { |
| 11827 | if shift >= 64 { |
| 11828 | return ErrIntOverflowRpc |
| 11829 | } |
| 11830 | if iNdEx >= l { |
| 11831 | return io.ErrUnexpectedEOF |
| 11832 | } |
| 11833 | b := dAtA[iNdEx] |
| 11834 | iNdEx++ |
| 11835 | wire |= (uint64(b) & 0x7F) << shift |
| 11836 | if b < 0x80 { |
| 11837 | break |
| 11838 | } |
| 11839 | } |
| 11840 | fieldNum := int32(wire >> 3) |
| 11841 | wireType := int(wire & 0x7) |
| 11842 | if wireType == 4 { |
| 11843 | return fmt.Errorf("proto: TxnResponse: wiretype end group for non-group") |
| 11844 | } |
| 11845 | if fieldNum <= 0 { |
| 11846 | return fmt.Errorf("proto: TxnResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 11847 | } |
| 11848 | switch fieldNum { |
| 11849 | case 1: |
| 11850 | if wireType != 2 { |
| 11851 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 11852 | } |
| 11853 | var msglen int |
| 11854 | for shift := uint(0); ; shift += 7 { |
| 11855 | if shift >= 64 { |
| 11856 | return ErrIntOverflowRpc |
| 11857 | } |
| 11858 | if iNdEx >= l { |
| 11859 | return io.ErrUnexpectedEOF |
| 11860 | } |
| 11861 | b := dAtA[iNdEx] |
| 11862 | iNdEx++ |
| 11863 | msglen |= (int(b) & 0x7F) << shift |
| 11864 | if b < 0x80 { |
| 11865 | break |
| 11866 | } |
| 11867 | } |
| 11868 | if msglen < 0 { |
| 11869 | return ErrInvalidLengthRpc |
| 11870 | } |
| 11871 | postIndex := iNdEx + msglen |
| 11872 | if postIndex > l { |
| 11873 | return io.ErrUnexpectedEOF |
| 11874 | } |
| 11875 | if m.Header == nil { |
| 11876 | m.Header = &ResponseHeader{} |
| 11877 | } |
| 11878 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11879 | return err |
| 11880 | } |
| 11881 | iNdEx = postIndex |
| 11882 | case 2: |
| 11883 | if wireType != 0 { |
| 11884 | return fmt.Errorf("proto: wrong wireType = %d for field Succeeded", wireType) |
| 11885 | } |
| 11886 | var v int |
| 11887 | for shift := uint(0); ; shift += 7 { |
| 11888 | if shift >= 64 { |
| 11889 | return ErrIntOverflowRpc |
| 11890 | } |
| 11891 | if iNdEx >= l { |
| 11892 | return io.ErrUnexpectedEOF |
| 11893 | } |
| 11894 | b := dAtA[iNdEx] |
| 11895 | iNdEx++ |
| 11896 | v |= (int(b) & 0x7F) << shift |
| 11897 | if b < 0x80 { |
| 11898 | break |
| 11899 | } |
| 11900 | } |
| 11901 | m.Succeeded = bool(v != 0) |
| 11902 | case 3: |
| 11903 | if wireType != 2 { |
| 11904 | return fmt.Errorf("proto: wrong wireType = %d for field Responses", wireType) |
| 11905 | } |
| 11906 | var msglen int |
| 11907 | for shift := uint(0); ; shift += 7 { |
| 11908 | if shift >= 64 { |
| 11909 | return ErrIntOverflowRpc |
| 11910 | } |
| 11911 | if iNdEx >= l { |
| 11912 | return io.ErrUnexpectedEOF |
| 11913 | } |
| 11914 | b := dAtA[iNdEx] |
| 11915 | iNdEx++ |
| 11916 | msglen |= (int(b) & 0x7F) << shift |
| 11917 | if b < 0x80 { |
| 11918 | break |
| 11919 | } |
| 11920 | } |
| 11921 | if msglen < 0 { |
| 11922 | return ErrInvalidLengthRpc |
| 11923 | } |
| 11924 | postIndex := iNdEx + msglen |
| 11925 | if postIndex > l { |
| 11926 | return io.ErrUnexpectedEOF |
| 11927 | } |
| 11928 | m.Responses = append(m.Responses, &ResponseOp{}) |
| 11929 | if err := m.Responses[len(m.Responses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 11930 | return err |
| 11931 | } |
| 11932 | iNdEx = postIndex |
| 11933 | default: |
| 11934 | iNdEx = preIndex |
| 11935 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 11936 | if err != nil { |
| 11937 | return err |
| 11938 | } |
| 11939 | if skippy < 0 { |
| 11940 | return ErrInvalidLengthRpc |
| 11941 | } |
| 11942 | if (iNdEx + skippy) > l { |
| 11943 | return io.ErrUnexpectedEOF |
| 11944 | } |
| 11945 | iNdEx += skippy |
| 11946 | } |
| 11947 | } |
| 11948 | |
| 11949 | if iNdEx > l { |
| 11950 | return io.ErrUnexpectedEOF |
| 11951 | } |
| 11952 | return nil |
| 11953 | } |
| 11954 | func (m *CompactionRequest) Unmarshal(dAtA []byte) error { |
| 11955 | l := len(dAtA) |
| 11956 | iNdEx := 0 |
| 11957 | for iNdEx < l { |
| 11958 | preIndex := iNdEx |
| 11959 | var wire uint64 |
| 11960 | for shift := uint(0); ; shift += 7 { |
| 11961 | if shift >= 64 { |
| 11962 | return ErrIntOverflowRpc |
| 11963 | } |
| 11964 | if iNdEx >= l { |
| 11965 | return io.ErrUnexpectedEOF |
| 11966 | } |
| 11967 | b := dAtA[iNdEx] |
| 11968 | iNdEx++ |
| 11969 | wire |= (uint64(b) & 0x7F) << shift |
| 11970 | if b < 0x80 { |
| 11971 | break |
| 11972 | } |
| 11973 | } |
| 11974 | fieldNum := int32(wire >> 3) |
| 11975 | wireType := int(wire & 0x7) |
| 11976 | if wireType == 4 { |
| 11977 | return fmt.Errorf("proto: CompactionRequest: wiretype end group for non-group") |
| 11978 | } |
| 11979 | if fieldNum <= 0 { |
| 11980 | return fmt.Errorf("proto: CompactionRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 11981 | } |
| 11982 | switch fieldNum { |
| 11983 | case 1: |
| 11984 | if wireType != 0 { |
| 11985 | return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) |
| 11986 | } |
| 11987 | m.Revision = 0 |
| 11988 | for shift := uint(0); ; shift += 7 { |
| 11989 | if shift >= 64 { |
| 11990 | return ErrIntOverflowRpc |
| 11991 | } |
| 11992 | if iNdEx >= l { |
| 11993 | return io.ErrUnexpectedEOF |
| 11994 | } |
| 11995 | b := dAtA[iNdEx] |
| 11996 | iNdEx++ |
| 11997 | m.Revision |= (int64(b) & 0x7F) << shift |
| 11998 | if b < 0x80 { |
| 11999 | break |
| 12000 | } |
| 12001 | } |
| 12002 | case 2: |
| 12003 | if wireType != 0 { |
| 12004 | return fmt.Errorf("proto: wrong wireType = %d for field Physical", wireType) |
| 12005 | } |
| 12006 | var v int |
| 12007 | for shift := uint(0); ; shift += 7 { |
| 12008 | if shift >= 64 { |
| 12009 | return ErrIntOverflowRpc |
| 12010 | } |
| 12011 | if iNdEx >= l { |
| 12012 | return io.ErrUnexpectedEOF |
| 12013 | } |
| 12014 | b := dAtA[iNdEx] |
| 12015 | iNdEx++ |
| 12016 | v |= (int(b) & 0x7F) << shift |
| 12017 | if b < 0x80 { |
| 12018 | break |
| 12019 | } |
| 12020 | } |
| 12021 | m.Physical = bool(v != 0) |
| 12022 | default: |
| 12023 | iNdEx = preIndex |
| 12024 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 12025 | if err != nil { |
| 12026 | return err |
| 12027 | } |
| 12028 | if skippy < 0 { |
| 12029 | return ErrInvalidLengthRpc |
| 12030 | } |
| 12031 | if (iNdEx + skippy) > l { |
| 12032 | return io.ErrUnexpectedEOF |
| 12033 | } |
| 12034 | iNdEx += skippy |
| 12035 | } |
| 12036 | } |
| 12037 | |
| 12038 | if iNdEx > l { |
| 12039 | return io.ErrUnexpectedEOF |
| 12040 | } |
| 12041 | return nil |
| 12042 | } |
| 12043 | func (m *CompactionResponse) Unmarshal(dAtA []byte) error { |
| 12044 | l := len(dAtA) |
| 12045 | iNdEx := 0 |
| 12046 | for iNdEx < l { |
| 12047 | preIndex := iNdEx |
| 12048 | var wire uint64 |
| 12049 | for shift := uint(0); ; shift += 7 { |
| 12050 | if shift >= 64 { |
| 12051 | return ErrIntOverflowRpc |
| 12052 | } |
| 12053 | if iNdEx >= l { |
| 12054 | return io.ErrUnexpectedEOF |
| 12055 | } |
| 12056 | b := dAtA[iNdEx] |
| 12057 | iNdEx++ |
| 12058 | wire |= (uint64(b) & 0x7F) << shift |
| 12059 | if b < 0x80 { |
| 12060 | break |
| 12061 | } |
| 12062 | } |
| 12063 | fieldNum := int32(wire >> 3) |
| 12064 | wireType := int(wire & 0x7) |
| 12065 | if wireType == 4 { |
| 12066 | return fmt.Errorf("proto: CompactionResponse: wiretype end group for non-group") |
| 12067 | } |
| 12068 | if fieldNum <= 0 { |
| 12069 | return fmt.Errorf("proto: CompactionResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 12070 | } |
| 12071 | switch fieldNum { |
| 12072 | case 1: |
| 12073 | if wireType != 2 { |
| 12074 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 12075 | } |
| 12076 | var msglen int |
| 12077 | for shift := uint(0); ; shift += 7 { |
| 12078 | if shift >= 64 { |
| 12079 | return ErrIntOverflowRpc |
| 12080 | } |
| 12081 | if iNdEx >= l { |
| 12082 | return io.ErrUnexpectedEOF |
| 12083 | } |
| 12084 | b := dAtA[iNdEx] |
| 12085 | iNdEx++ |
| 12086 | msglen |= (int(b) & 0x7F) << shift |
| 12087 | if b < 0x80 { |
| 12088 | break |
| 12089 | } |
| 12090 | } |
| 12091 | if msglen < 0 { |
| 12092 | return ErrInvalidLengthRpc |
| 12093 | } |
| 12094 | postIndex := iNdEx + msglen |
| 12095 | if postIndex > l { |
| 12096 | return io.ErrUnexpectedEOF |
| 12097 | } |
| 12098 | if m.Header == nil { |
| 12099 | m.Header = &ResponseHeader{} |
| 12100 | } |
| 12101 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 12102 | return err |
| 12103 | } |
| 12104 | iNdEx = postIndex |
| 12105 | default: |
| 12106 | iNdEx = preIndex |
| 12107 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 12108 | if err != nil { |
| 12109 | return err |
| 12110 | } |
| 12111 | if skippy < 0 { |
| 12112 | return ErrInvalidLengthRpc |
| 12113 | } |
| 12114 | if (iNdEx + skippy) > l { |
| 12115 | return io.ErrUnexpectedEOF |
| 12116 | } |
| 12117 | iNdEx += skippy |
| 12118 | } |
| 12119 | } |
| 12120 | |
| 12121 | if iNdEx > l { |
| 12122 | return io.ErrUnexpectedEOF |
| 12123 | } |
| 12124 | return nil |
| 12125 | } |
| 12126 | func (m *HashRequest) Unmarshal(dAtA []byte) error { |
| 12127 | l := len(dAtA) |
| 12128 | iNdEx := 0 |
| 12129 | for iNdEx < l { |
| 12130 | preIndex := iNdEx |
| 12131 | var wire uint64 |
| 12132 | for shift := uint(0); ; shift += 7 { |
| 12133 | if shift >= 64 { |
| 12134 | return ErrIntOverflowRpc |
| 12135 | } |
| 12136 | if iNdEx >= l { |
| 12137 | return io.ErrUnexpectedEOF |
| 12138 | } |
| 12139 | b := dAtA[iNdEx] |
| 12140 | iNdEx++ |
| 12141 | wire |= (uint64(b) & 0x7F) << shift |
| 12142 | if b < 0x80 { |
| 12143 | break |
| 12144 | } |
| 12145 | } |
| 12146 | fieldNum := int32(wire >> 3) |
| 12147 | wireType := int(wire & 0x7) |
| 12148 | if wireType == 4 { |
| 12149 | return fmt.Errorf("proto: HashRequest: wiretype end group for non-group") |
| 12150 | } |
| 12151 | if fieldNum <= 0 { |
| 12152 | return fmt.Errorf("proto: HashRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 12153 | } |
| 12154 | switch fieldNum { |
| 12155 | default: |
| 12156 | iNdEx = preIndex |
| 12157 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 12158 | if err != nil { |
| 12159 | return err |
| 12160 | } |
| 12161 | if skippy < 0 { |
| 12162 | return ErrInvalidLengthRpc |
| 12163 | } |
| 12164 | if (iNdEx + skippy) > l { |
| 12165 | return io.ErrUnexpectedEOF |
| 12166 | } |
| 12167 | iNdEx += skippy |
| 12168 | } |
| 12169 | } |
| 12170 | |
| 12171 | if iNdEx > l { |
| 12172 | return io.ErrUnexpectedEOF |
| 12173 | } |
| 12174 | return nil |
| 12175 | } |
| 12176 | func (m *HashKVRequest) Unmarshal(dAtA []byte) error { |
| 12177 | l := len(dAtA) |
| 12178 | iNdEx := 0 |
| 12179 | for iNdEx < l { |
| 12180 | preIndex := iNdEx |
| 12181 | var wire uint64 |
| 12182 | for shift := uint(0); ; shift += 7 { |
| 12183 | if shift >= 64 { |
| 12184 | return ErrIntOverflowRpc |
| 12185 | } |
| 12186 | if iNdEx >= l { |
| 12187 | return io.ErrUnexpectedEOF |
| 12188 | } |
| 12189 | b := dAtA[iNdEx] |
| 12190 | iNdEx++ |
| 12191 | wire |= (uint64(b) & 0x7F) << shift |
| 12192 | if b < 0x80 { |
| 12193 | break |
| 12194 | } |
| 12195 | } |
| 12196 | fieldNum := int32(wire >> 3) |
| 12197 | wireType := int(wire & 0x7) |
| 12198 | if wireType == 4 { |
| 12199 | return fmt.Errorf("proto: HashKVRequest: wiretype end group for non-group") |
| 12200 | } |
| 12201 | if fieldNum <= 0 { |
| 12202 | return fmt.Errorf("proto: HashKVRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 12203 | } |
| 12204 | switch fieldNum { |
| 12205 | case 1: |
| 12206 | if wireType != 0 { |
| 12207 | return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) |
| 12208 | } |
| 12209 | m.Revision = 0 |
| 12210 | for shift := uint(0); ; shift += 7 { |
| 12211 | if shift >= 64 { |
| 12212 | return ErrIntOverflowRpc |
| 12213 | } |
| 12214 | if iNdEx >= l { |
| 12215 | return io.ErrUnexpectedEOF |
| 12216 | } |
| 12217 | b := dAtA[iNdEx] |
| 12218 | iNdEx++ |
| 12219 | m.Revision |= (int64(b) & 0x7F) << shift |
| 12220 | if b < 0x80 { |
| 12221 | break |
| 12222 | } |
| 12223 | } |
| 12224 | default: |
| 12225 | iNdEx = preIndex |
| 12226 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 12227 | if err != nil { |
| 12228 | return err |
| 12229 | } |
| 12230 | if skippy < 0 { |
| 12231 | return ErrInvalidLengthRpc |
| 12232 | } |
| 12233 | if (iNdEx + skippy) > l { |
| 12234 | return io.ErrUnexpectedEOF |
| 12235 | } |
| 12236 | iNdEx += skippy |
| 12237 | } |
| 12238 | } |
| 12239 | |
| 12240 | if iNdEx > l { |
| 12241 | return io.ErrUnexpectedEOF |
| 12242 | } |
| 12243 | return nil |
| 12244 | } |
| 12245 | func (m *HashKVResponse) Unmarshal(dAtA []byte) error { |
| 12246 | l := len(dAtA) |
| 12247 | iNdEx := 0 |
| 12248 | for iNdEx < l { |
| 12249 | preIndex := iNdEx |
| 12250 | var wire uint64 |
| 12251 | for shift := uint(0); ; shift += 7 { |
| 12252 | if shift >= 64 { |
| 12253 | return ErrIntOverflowRpc |
| 12254 | } |
| 12255 | if iNdEx >= l { |
| 12256 | return io.ErrUnexpectedEOF |
| 12257 | } |
| 12258 | b := dAtA[iNdEx] |
| 12259 | iNdEx++ |
| 12260 | wire |= (uint64(b) & 0x7F) << shift |
| 12261 | if b < 0x80 { |
| 12262 | break |
| 12263 | } |
| 12264 | } |
| 12265 | fieldNum := int32(wire >> 3) |
| 12266 | wireType := int(wire & 0x7) |
| 12267 | if wireType == 4 { |
| 12268 | return fmt.Errorf("proto: HashKVResponse: wiretype end group for non-group") |
| 12269 | } |
| 12270 | if fieldNum <= 0 { |
| 12271 | return fmt.Errorf("proto: HashKVResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 12272 | } |
| 12273 | switch fieldNum { |
| 12274 | case 1: |
| 12275 | if wireType != 2 { |
| 12276 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 12277 | } |
| 12278 | var msglen int |
| 12279 | for shift := uint(0); ; shift += 7 { |
| 12280 | if shift >= 64 { |
| 12281 | return ErrIntOverflowRpc |
| 12282 | } |
| 12283 | if iNdEx >= l { |
| 12284 | return io.ErrUnexpectedEOF |
| 12285 | } |
| 12286 | b := dAtA[iNdEx] |
| 12287 | iNdEx++ |
| 12288 | msglen |= (int(b) & 0x7F) << shift |
| 12289 | if b < 0x80 { |
| 12290 | break |
| 12291 | } |
| 12292 | } |
| 12293 | if msglen < 0 { |
| 12294 | return ErrInvalidLengthRpc |
| 12295 | } |
| 12296 | postIndex := iNdEx + msglen |
| 12297 | if postIndex > l { |
| 12298 | return io.ErrUnexpectedEOF |
| 12299 | } |
| 12300 | if m.Header == nil { |
| 12301 | m.Header = &ResponseHeader{} |
| 12302 | } |
| 12303 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 12304 | return err |
| 12305 | } |
| 12306 | iNdEx = postIndex |
| 12307 | case 2: |
| 12308 | if wireType != 0 { |
| 12309 | return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) |
| 12310 | } |
| 12311 | m.Hash = 0 |
| 12312 | for shift := uint(0); ; shift += 7 { |
| 12313 | if shift >= 64 { |
| 12314 | return ErrIntOverflowRpc |
| 12315 | } |
| 12316 | if iNdEx >= l { |
| 12317 | return io.ErrUnexpectedEOF |
| 12318 | } |
| 12319 | b := dAtA[iNdEx] |
| 12320 | iNdEx++ |
| 12321 | m.Hash |= (uint32(b) & 0x7F) << shift |
| 12322 | if b < 0x80 { |
| 12323 | break |
| 12324 | } |
| 12325 | } |
| 12326 | case 3: |
| 12327 | if wireType != 0 { |
| 12328 | return fmt.Errorf("proto: wrong wireType = %d for field CompactRevision", wireType) |
| 12329 | } |
| 12330 | m.CompactRevision = 0 |
| 12331 | for shift := uint(0); ; shift += 7 { |
| 12332 | if shift >= 64 { |
| 12333 | return ErrIntOverflowRpc |
| 12334 | } |
| 12335 | if iNdEx >= l { |
| 12336 | return io.ErrUnexpectedEOF |
| 12337 | } |
| 12338 | b := dAtA[iNdEx] |
| 12339 | iNdEx++ |
| 12340 | m.CompactRevision |= (int64(b) & 0x7F) << shift |
| 12341 | if b < 0x80 { |
| 12342 | break |
| 12343 | } |
| 12344 | } |
| 12345 | default: |
| 12346 | iNdEx = preIndex |
| 12347 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 12348 | if err != nil { |
| 12349 | return err |
| 12350 | } |
| 12351 | if skippy < 0 { |
| 12352 | return ErrInvalidLengthRpc |
| 12353 | } |
| 12354 | if (iNdEx + skippy) > l { |
| 12355 | return io.ErrUnexpectedEOF |
| 12356 | } |
| 12357 | iNdEx += skippy |
| 12358 | } |
| 12359 | } |
| 12360 | |
| 12361 | if iNdEx > l { |
| 12362 | return io.ErrUnexpectedEOF |
| 12363 | } |
| 12364 | return nil |
| 12365 | } |
| 12366 | func (m *HashResponse) Unmarshal(dAtA []byte) error { |
| 12367 | l := len(dAtA) |
| 12368 | iNdEx := 0 |
| 12369 | for iNdEx < l { |
| 12370 | preIndex := iNdEx |
| 12371 | var wire uint64 |
| 12372 | for shift := uint(0); ; shift += 7 { |
| 12373 | if shift >= 64 { |
| 12374 | return ErrIntOverflowRpc |
| 12375 | } |
| 12376 | if iNdEx >= l { |
| 12377 | return io.ErrUnexpectedEOF |
| 12378 | } |
| 12379 | b := dAtA[iNdEx] |
| 12380 | iNdEx++ |
| 12381 | wire |= (uint64(b) & 0x7F) << shift |
| 12382 | if b < 0x80 { |
| 12383 | break |
| 12384 | } |
| 12385 | } |
| 12386 | fieldNum := int32(wire >> 3) |
| 12387 | wireType := int(wire & 0x7) |
| 12388 | if wireType == 4 { |
| 12389 | return fmt.Errorf("proto: HashResponse: wiretype end group for non-group") |
| 12390 | } |
| 12391 | if fieldNum <= 0 { |
| 12392 | return fmt.Errorf("proto: HashResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 12393 | } |
| 12394 | switch fieldNum { |
| 12395 | case 1: |
| 12396 | if wireType != 2 { |
| 12397 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 12398 | } |
| 12399 | var msglen int |
| 12400 | for shift := uint(0); ; shift += 7 { |
| 12401 | if shift >= 64 { |
| 12402 | return ErrIntOverflowRpc |
| 12403 | } |
| 12404 | if iNdEx >= l { |
| 12405 | return io.ErrUnexpectedEOF |
| 12406 | } |
| 12407 | b := dAtA[iNdEx] |
| 12408 | iNdEx++ |
| 12409 | msglen |= (int(b) & 0x7F) << shift |
| 12410 | if b < 0x80 { |
| 12411 | break |
| 12412 | } |
| 12413 | } |
| 12414 | if msglen < 0 { |
| 12415 | return ErrInvalidLengthRpc |
| 12416 | } |
| 12417 | postIndex := iNdEx + msglen |
| 12418 | if postIndex > l { |
| 12419 | return io.ErrUnexpectedEOF |
| 12420 | } |
| 12421 | if m.Header == nil { |
| 12422 | m.Header = &ResponseHeader{} |
| 12423 | } |
| 12424 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 12425 | return err |
| 12426 | } |
| 12427 | iNdEx = postIndex |
| 12428 | case 2: |
| 12429 | if wireType != 0 { |
| 12430 | return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) |
| 12431 | } |
| 12432 | m.Hash = 0 |
| 12433 | for shift := uint(0); ; shift += 7 { |
| 12434 | if shift >= 64 { |
| 12435 | return ErrIntOverflowRpc |
| 12436 | } |
| 12437 | if iNdEx >= l { |
| 12438 | return io.ErrUnexpectedEOF |
| 12439 | } |
| 12440 | b := dAtA[iNdEx] |
| 12441 | iNdEx++ |
| 12442 | m.Hash |= (uint32(b) & 0x7F) << shift |
| 12443 | if b < 0x80 { |
| 12444 | break |
| 12445 | } |
| 12446 | } |
| 12447 | default: |
| 12448 | iNdEx = preIndex |
| 12449 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 12450 | if err != nil { |
| 12451 | return err |
| 12452 | } |
| 12453 | if skippy < 0 { |
| 12454 | return ErrInvalidLengthRpc |
| 12455 | } |
| 12456 | if (iNdEx + skippy) > l { |
| 12457 | return io.ErrUnexpectedEOF |
| 12458 | } |
| 12459 | iNdEx += skippy |
| 12460 | } |
| 12461 | } |
| 12462 | |
| 12463 | if iNdEx > l { |
| 12464 | return io.ErrUnexpectedEOF |
| 12465 | } |
| 12466 | return nil |
| 12467 | } |
| 12468 | func (m *SnapshotRequest) Unmarshal(dAtA []byte) error { |
| 12469 | l := len(dAtA) |
| 12470 | iNdEx := 0 |
| 12471 | for iNdEx < l { |
| 12472 | preIndex := iNdEx |
| 12473 | var wire uint64 |
| 12474 | for shift := uint(0); ; shift += 7 { |
| 12475 | if shift >= 64 { |
| 12476 | return ErrIntOverflowRpc |
| 12477 | } |
| 12478 | if iNdEx >= l { |
| 12479 | return io.ErrUnexpectedEOF |
| 12480 | } |
| 12481 | b := dAtA[iNdEx] |
| 12482 | iNdEx++ |
| 12483 | wire |= (uint64(b) & 0x7F) << shift |
| 12484 | if b < 0x80 { |
| 12485 | break |
| 12486 | } |
| 12487 | } |
| 12488 | fieldNum := int32(wire >> 3) |
| 12489 | wireType := int(wire & 0x7) |
| 12490 | if wireType == 4 { |
| 12491 | return fmt.Errorf("proto: SnapshotRequest: wiretype end group for non-group") |
| 12492 | } |
| 12493 | if fieldNum <= 0 { |
| 12494 | return fmt.Errorf("proto: SnapshotRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 12495 | } |
| 12496 | switch fieldNum { |
| 12497 | default: |
| 12498 | iNdEx = preIndex |
| 12499 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 12500 | if err != nil { |
| 12501 | return err |
| 12502 | } |
| 12503 | if skippy < 0 { |
| 12504 | return ErrInvalidLengthRpc |
| 12505 | } |
| 12506 | if (iNdEx + skippy) > l { |
| 12507 | return io.ErrUnexpectedEOF |
| 12508 | } |
| 12509 | iNdEx += skippy |
| 12510 | } |
| 12511 | } |
| 12512 | |
| 12513 | if iNdEx > l { |
| 12514 | return io.ErrUnexpectedEOF |
| 12515 | } |
| 12516 | return nil |
| 12517 | } |
| 12518 | func (m *SnapshotResponse) Unmarshal(dAtA []byte) error { |
| 12519 | l := len(dAtA) |
| 12520 | iNdEx := 0 |
| 12521 | for iNdEx < l { |
| 12522 | preIndex := iNdEx |
| 12523 | var wire uint64 |
| 12524 | for shift := uint(0); ; shift += 7 { |
| 12525 | if shift >= 64 { |
| 12526 | return ErrIntOverflowRpc |
| 12527 | } |
| 12528 | if iNdEx >= l { |
| 12529 | return io.ErrUnexpectedEOF |
| 12530 | } |
| 12531 | b := dAtA[iNdEx] |
| 12532 | iNdEx++ |
| 12533 | wire |= (uint64(b) & 0x7F) << shift |
| 12534 | if b < 0x80 { |
| 12535 | break |
| 12536 | } |
| 12537 | } |
| 12538 | fieldNum := int32(wire >> 3) |
| 12539 | wireType := int(wire & 0x7) |
| 12540 | if wireType == 4 { |
| 12541 | return fmt.Errorf("proto: SnapshotResponse: wiretype end group for non-group") |
| 12542 | } |
| 12543 | if fieldNum <= 0 { |
| 12544 | return fmt.Errorf("proto: SnapshotResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 12545 | } |
| 12546 | switch fieldNum { |
| 12547 | case 1: |
| 12548 | if wireType != 2 { |
| 12549 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 12550 | } |
| 12551 | var msglen int |
| 12552 | for shift := uint(0); ; shift += 7 { |
| 12553 | if shift >= 64 { |
| 12554 | return ErrIntOverflowRpc |
| 12555 | } |
| 12556 | if iNdEx >= l { |
| 12557 | return io.ErrUnexpectedEOF |
| 12558 | } |
| 12559 | b := dAtA[iNdEx] |
| 12560 | iNdEx++ |
| 12561 | msglen |= (int(b) & 0x7F) << shift |
| 12562 | if b < 0x80 { |
| 12563 | break |
| 12564 | } |
| 12565 | } |
| 12566 | if msglen < 0 { |
| 12567 | return ErrInvalidLengthRpc |
| 12568 | } |
| 12569 | postIndex := iNdEx + msglen |
| 12570 | if postIndex > l { |
| 12571 | return io.ErrUnexpectedEOF |
| 12572 | } |
| 12573 | if m.Header == nil { |
| 12574 | m.Header = &ResponseHeader{} |
| 12575 | } |
| 12576 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 12577 | return err |
| 12578 | } |
| 12579 | iNdEx = postIndex |
| 12580 | case 2: |
| 12581 | if wireType != 0 { |
| 12582 | return fmt.Errorf("proto: wrong wireType = %d for field RemainingBytes", wireType) |
| 12583 | } |
| 12584 | m.RemainingBytes = 0 |
| 12585 | for shift := uint(0); ; shift += 7 { |
| 12586 | if shift >= 64 { |
| 12587 | return ErrIntOverflowRpc |
| 12588 | } |
| 12589 | if iNdEx >= l { |
| 12590 | return io.ErrUnexpectedEOF |
| 12591 | } |
| 12592 | b := dAtA[iNdEx] |
| 12593 | iNdEx++ |
| 12594 | m.RemainingBytes |= (uint64(b) & 0x7F) << shift |
| 12595 | if b < 0x80 { |
| 12596 | break |
| 12597 | } |
| 12598 | } |
| 12599 | case 3: |
| 12600 | if wireType != 2 { |
| 12601 | return fmt.Errorf("proto: wrong wireType = %d for field Blob", wireType) |
| 12602 | } |
| 12603 | var byteLen int |
| 12604 | for shift := uint(0); ; shift += 7 { |
| 12605 | if shift >= 64 { |
| 12606 | return ErrIntOverflowRpc |
| 12607 | } |
| 12608 | if iNdEx >= l { |
| 12609 | return io.ErrUnexpectedEOF |
| 12610 | } |
| 12611 | b := dAtA[iNdEx] |
| 12612 | iNdEx++ |
| 12613 | byteLen |= (int(b) & 0x7F) << shift |
| 12614 | if b < 0x80 { |
| 12615 | break |
| 12616 | } |
| 12617 | } |
| 12618 | if byteLen < 0 { |
| 12619 | return ErrInvalidLengthRpc |
| 12620 | } |
| 12621 | postIndex := iNdEx + byteLen |
| 12622 | if postIndex > l { |
| 12623 | return io.ErrUnexpectedEOF |
| 12624 | } |
| 12625 | m.Blob = append(m.Blob[:0], dAtA[iNdEx:postIndex]...) |
| 12626 | if m.Blob == nil { |
| 12627 | m.Blob = []byte{} |
| 12628 | } |
| 12629 | iNdEx = postIndex |
| 12630 | default: |
| 12631 | iNdEx = preIndex |
| 12632 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 12633 | if err != nil { |
| 12634 | return err |
| 12635 | } |
| 12636 | if skippy < 0 { |
| 12637 | return ErrInvalidLengthRpc |
| 12638 | } |
| 12639 | if (iNdEx + skippy) > l { |
| 12640 | return io.ErrUnexpectedEOF |
| 12641 | } |
| 12642 | iNdEx += skippy |
| 12643 | } |
| 12644 | } |
| 12645 | |
| 12646 | if iNdEx > l { |
| 12647 | return io.ErrUnexpectedEOF |
| 12648 | } |
| 12649 | return nil |
| 12650 | } |
| 12651 | func (m *WatchRequest) Unmarshal(dAtA []byte) error { |
| 12652 | l := len(dAtA) |
| 12653 | iNdEx := 0 |
| 12654 | for iNdEx < l { |
| 12655 | preIndex := iNdEx |
| 12656 | var wire uint64 |
| 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 | wire |= (uint64(b) & 0x7F) << shift |
| 12667 | if b < 0x80 { |
| 12668 | break |
| 12669 | } |
| 12670 | } |
| 12671 | fieldNum := int32(wire >> 3) |
| 12672 | wireType := int(wire & 0x7) |
| 12673 | if wireType == 4 { |
| 12674 | return fmt.Errorf("proto: WatchRequest: wiretype end group for non-group") |
| 12675 | } |
| 12676 | if fieldNum <= 0 { |
| 12677 | return fmt.Errorf("proto: WatchRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 12678 | } |
| 12679 | switch fieldNum { |
| 12680 | case 1: |
| 12681 | if wireType != 2 { |
| 12682 | return fmt.Errorf("proto: wrong wireType = %d for field CreateRequest", wireType) |
| 12683 | } |
| 12684 | var msglen int |
| 12685 | for shift := uint(0); ; shift += 7 { |
| 12686 | if shift >= 64 { |
| 12687 | return ErrIntOverflowRpc |
| 12688 | } |
| 12689 | if iNdEx >= l { |
| 12690 | return io.ErrUnexpectedEOF |
| 12691 | } |
| 12692 | b := dAtA[iNdEx] |
| 12693 | iNdEx++ |
| 12694 | msglen |= (int(b) & 0x7F) << shift |
| 12695 | if b < 0x80 { |
| 12696 | break |
| 12697 | } |
| 12698 | } |
| 12699 | if msglen < 0 { |
| 12700 | return ErrInvalidLengthRpc |
| 12701 | } |
| 12702 | postIndex := iNdEx + msglen |
| 12703 | if postIndex > l { |
| 12704 | return io.ErrUnexpectedEOF |
| 12705 | } |
| 12706 | v := &WatchCreateRequest{} |
| 12707 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 12708 | return err |
| 12709 | } |
| 12710 | m.RequestUnion = &WatchRequest_CreateRequest{v} |
| 12711 | iNdEx = postIndex |
| 12712 | case 2: |
| 12713 | if wireType != 2 { |
| 12714 | return fmt.Errorf("proto: wrong wireType = %d for field CancelRequest", wireType) |
| 12715 | } |
| 12716 | var msglen int |
| 12717 | for shift := uint(0); ; shift += 7 { |
| 12718 | if shift >= 64 { |
| 12719 | return ErrIntOverflowRpc |
| 12720 | } |
| 12721 | if iNdEx >= l { |
| 12722 | return io.ErrUnexpectedEOF |
| 12723 | } |
| 12724 | b := dAtA[iNdEx] |
| 12725 | iNdEx++ |
| 12726 | msglen |= (int(b) & 0x7F) << shift |
| 12727 | if b < 0x80 { |
| 12728 | break |
| 12729 | } |
| 12730 | } |
| 12731 | if msglen < 0 { |
| 12732 | return ErrInvalidLengthRpc |
| 12733 | } |
| 12734 | postIndex := iNdEx + msglen |
| 12735 | if postIndex > l { |
| 12736 | return io.ErrUnexpectedEOF |
| 12737 | } |
| 12738 | v := &WatchCancelRequest{} |
| 12739 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 12740 | return err |
| 12741 | } |
| 12742 | m.RequestUnion = &WatchRequest_CancelRequest{v} |
| 12743 | iNdEx = postIndex |
| 12744 | case 3: |
| 12745 | if wireType != 2 { |
| 12746 | return fmt.Errorf("proto: wrong wireType = %d for field ProgressRequest", wireType) |
| 12747 | } |
| 12748 | var msglen int |
| 12749 | for shift := uint(0); ; shift += 7 { |
| 12750 | if shift >= 64 { |
| 12751 | return ErrIntOverflowRpc |
| 12752 | } |
| 12753 | if iNdEx >= l { |
| 12754 | return io.ErrUnexpectedEOF |
| 12755 | } |
| 12756 | b := dAtA[iNdEx] |
| 12757 | iNdEx++ |
| 12758 | msglen |= (int(b) & 0x7F) << shift |
| 12759 | if b < 0x80 { |
| 12760 | break |
| 12761 | } |
| 12762 | } |
| 12763 | if msglen < 0 { |
| 12764 | return ErrInvalidLengthRpc |
| 12765 | } |
| 12766 | postIndex := iNdEx + msglen |
| 12767 | if postIndex > l { |
| 12768 | return io.ErrUnexpectedEOF |
| 12769 | } |
| 12770 | v := &WatchProgressRequest{} |
| 12771 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 12772 | return err |
| 12773 | } |
| 12774 | m.RequestUnion = &WatchRequest_ProgressRequest{v} |
| 12775 | iNdEx = postIndex |
| 12776 | default: |
| 12777 | iNdEx = preIndex |
| 12778 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 12779 | if err != nil { |
| 12780 | return err |
| 12781 | } |
| 12782 | if skippy < 0 { |
| 12783 | return ErrInvalidLengthRpc |
| 12784 | } |
| 12785 | if (iNdEx + skippy) > l { |
| 12786 | return io.ErrUnexpectedEOF |
| 12787 | } |
| 12788 | iNdEx += skippy |
| 12789 | } |
| 12790 | } |
| 12791 | |
| 12792 | if iNdEx > l { |
| 12793 | return io.ErrUnexpectedEOF |
| 12794 | } |
| 12795 | return nil |
| 12796 | } |
| 12797 | func (m *WatchCreateRequest) Unmarshal(dAtA []byte) error { |
| 12798 | l := len(dAtA) |
| 12799 | iNdEx := 0 |
| 12800 | for iNdEx < l { |
| 12801 | preIndex := iNdEx |
| 12802 | var wire uint64 |
| 12803 | for shift := uint(0); ; shift += 7 { |
| 12804 | if shift >= 64 { |
| 12805 | return ErrIntOverflowRpc |
| 12806 | } |
| 12807 | if iNdEx >= l { |
| 12808 | return io.ErrUnexpectedEOF |
| 12809 | } |
| 12810 | b := dAtA[iNdEx] |
| 12811 | iNdEx++ |
| 12812 | wire |= (uint64(b) & 0x7F) << shift |
| 12813 | if b < 0x80 { |
| 12814 | break |
| 12815 | } |
| 12816 | } |
| 12817 | fieldNum := int32(wire >> 3) |
| 12818 | wireType := int(wire & 0x7) |
| 12819 | if wireType == 4 { |
| 12820 | return fmt.Errorf("proto: WatchCreateRequest: wiretype end group for non-group") |
| 12821 | } |
| 12822 | if fieldNum <= 0 { |
| 12823 | return fmt.Errorf("proto: WatchCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 12824 | } |
| 12825 | switch fieldNum { |
| 12826 | case 1: |
| 12827 | if wireType != 2 { |
| 12828 | return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| 12829 | } |
| 12830 | var byteLen int |
| 12831 | for shift := uint(0); ; shift += 7 { |
| 12832 | if shift >= 64 { |
| 12833 | return ErrIntOverflowRpc |
| 12834 | } |
| 12835 | if iNdEx >= l { |
| 12836 | return io.ErrUnexpectedEOF |
| 12837 | } |
| 12838 | b := dAtA[iNdEx] |
| 12839 | iNdEx++ |
| 12840 | byteLen |= (int(b) & 0x7F) << shift |
| 12841 | if b < 0x80 { |
| 12842 | break |
| 12843 | } |
| 12844 | } |
| 12845 | if byteLen < 0 { |
| 12846 | return ErrInvalidLengthRpc |
| 12847 | } |
| 12848 | postIndex := iNdEx + byteLen |
| 12849 | if postIndex > l { |
| 12850 | return io.ErrUnexpectedEOF |
| 12851 | } |
| 12852 | m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) |
| 12853 | if m.Key == nil { |
| 12854 | m.Key = []byte{} |
| 12855 | } |
| 12856 | iNdEx = postIndex |
| 12857 | case 2: |
| 12858 | if wireType != 2 { |
| 12859 | return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType) |
| 12860 | } |
| 12861 | var byteLen int |
| 12862 | for shift := uint(0); ; shift += 7 { |
| 12863 | if shift >= 64 { |
| 12864 | return ErrIntOverflowRpc |
| 12865 | } |
| 12866 | if iNdEx >= l { |
| 12867 | return io.ErrUnexpectedEOF |
| 12868 | } |
| 12869 | b := dAtA[iNdEx] |
| 12870 | iNdEx++ |
| 12871 | byteLen |= (int(b) & 0x7F) << shift |
| 12872 | if b < 0x80 { |
| 12873 | break |
| 12874 | } |
| 12875 | } |
| 12876 | if byteLen < 0 { |
| 12877 | return ErrInvalidLengthRpc |
| 12878 | } |
| 12879 | postIndex := iNdEx + byteLen |
| 12880 | if postIndex > l { |
| 12881 | return io.ErrUnexpectedEOF |
| 12882 | } |
| 12883 | m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...) |
| 12884 | if m.RangeEnd == nil { |
| 12885 | m.RangeEnd = []byte{} |
| 12886 | } |
| 12887 | iNdEx = postIndex |
| 12888 | case 3: |
| 12889 | if wireType != 0 { |
| 12890 | return fmt.Errorf("proto: wrong wireType = %d for field StartRevision", wireType) |
| 12891 | } |
| 12892 | m.StartRevision = 0 |
| 12893 | for shift := uint(0); ; shift += 7 { |
| 12894 | if shift >= 64 { |
| 12895 | return ErrIntOverflowRpc |
| 12896 | } |
| 12897 | if iNdEx >= l { |
| 12898 | return io.ErrUnexpectedEOF |
| 12899 | } |
| 12900 | b := dAtA[iNdEx] |
| 12901 | iNdEx++ |
| 12902 | m.StartRevision |= (int64(b) & 0x7F) << shift |
| 12903 | if b < 0x80 { |
| 12904 | break |
| 12905 | } |
| 12906 | } |
| 12907 | case 4: |
| 12908 | if wireType != 0 { |
| 12909 | return fmt.Errorf("proto: wrong wireType = %d for field ProgressNotify", wireType) |
| 12910 | } |
| 12911 | var v int |
| 12912 | for shift := uint(0); ; shift += 7 { |
| 12913 | if shift >= 64 { |
| 12914 | return ErrIntOverflowRpc |
| 12915 | } |
| 12916 | if iNdEx >= l { |
| 12917 | return io.ErrUnexpectedEOF |
| 12918 | } |
| 12919 | b := dAtA[iNdEx] |
| 12920 | iNdEx++ |
| 12921 | v |= (int(b) & 0x7F) << shift |
| 12922 | if b < 0x80 { |
| 12923 | break |
| 12924 | } |
| 12925 | } |
| 12926 | m.ProgressNotify = bool(v != 0) |
| 12927 | case 5: |
| 12928 | if wireType == 0 { |
| 12929 | var v WatchCreateRequest_FilterType |
| 12930 | for shift := uint(0); ; shift += 7 { |
| 12931 | if shift >= 64 { |
| 12932 | return ErrIntOverflowRpc |
| 12933 | } |
| 12934 | if iNdEx >= l { |
| 12935 | return io.ErrUnexpectedEOF |
| 12936 | } |
| 12937 | b := dAtA[iNdEx] |
| 12938 | iNdEx++ |
| 12939 | v |= (WatchCreateRequest_FilterType(b) & 0x7F) << shift |
| 12940 | if b < 0x80 { |
| 12941 | break |
| 12942 | } |
| 12943 | } |
| 12944 | m.Filters = append(m.Filters, v) |
| 12945 | } else if wireType == 2 { |
| 12946 | var packedLen int |
| 12947 | for shift := uint(0); ; shift += 7 { |
| 12948 | if shift >= 64 { |
| 12949 | return ErrIntOverflowRpc |
| 12950 | } |
| 12951 | if iNdEx >= l { |
| 12952 | return io.ErrUnexpectedEOF |
| 12953 | } |
| 12954 | b := dAtA[iNdEx] |
| 12955 | iNdEx++ |
| 12956 | packedLen |= (int(b) & 0x7F) << shift |
| 12957 | if b < 0x80 { |
| 12958 | break |
| 12959 | } |
| 12960 | } |
| 12961 | if packedLen < 0 { |
| 12962 | return ErrInvalidLengthRpc |
| 12963 | } |
| 12964 | postIndex := iNdEx + packedLen |
| 12965 | if postIndex > l { |
| 12966 | return io.ErrUnexpectedEOF |
| 12967 | } |
| 12968 | for iNdEx < postIndex { |
| 12969 | var v WatchCreateRequest_FilterType |
| 12970 | for shift := uint(0); ; shift += 7 { |
| 12971 | if shift >= 64 { |
| 12972 | return ErrIntOverflowRpc |
| 12973 | } |
| 12974 | if iNdEx >= l { |
| 12975 | return io.ErrUnexpectedEOF |
| 12976 | } |
| 12977 | b := dAtA[iNdEx] |
| 12978 | iNdEx++ |
| 12979 | v |= (WatchCreateRequest_FilterType(b) & 0x7F) << shift |
| 12980 | if b < 0x80 { |
| 12981 | break |
| 12982 | } |
| 12983 | } |
| 12984 | m.Filters = append(m.Filters, v) |
| 12985 | } |
| 12986 | } else { |
| 12987 | return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType) |
| 12988 | } |
| 12989 | case 6: |
| 12990 | if wireType != 0 { |
| 12991 | return fmt.Errorf("proto: wrong wireType = %d for field PrevKv", wireType) |
| 12992 | } |
| 12993 | var v int |
| 12994 | for shift := uint(0); ; shift += 7 { |
| 12995 | if shift >= 64 { |
| 12996 | return ErrIntOverflowRpc |
| 12997 | } |
| 12998 | if iNdEx >= l { |
| 12999 | return io.ErrUnexpectedEOF |
| 13000 | } |
| 13001 | b := dAtA[iNdEx] |
| 13002 | iNdEx++ |
| 13003 | v |= (int(b) & 0x7F) << shift |
| 13004 | if b < 0x80 { |
| 13005 | break |
| 13006 | } |
| 13007 | } |
| 13008 | m.PrevKv = bool(v != 0) |
| 13009 | case 7: |
| 13010 | if wireType != 0 { |
| 13011 | return fmt.Errorf("proto: wrong wireType = %d for field WatchId", wireType) |
| 13012 | } |
| 13013 | m.WatchId = 0 |
| 13014 | for shift := uint(0); ; shift += 7 { |
| 13015 | if shift >= 64 { |
| 13016 | return ErrIntOverflowRpc |
| 13017 | } |
| 13018 | if iNdEx >= l { |
| 13019 | return io.ErrUnexpectedEOF |
| 13020 | } |
| 13021 | b := dAtA[iNdEx] |
| 13022 | iNdEx++ |
| 13023 | m.WatchId |= (int64(b) & 0x7F) << shift |
| 13024 | if b < 0x80 { |
| 13025 | break |
| 13026 | } |
| 13027 | } |
| 13028 | case 8: |
| 13029 | if wireType != 0 { |
| 13030 | return fmt.Errorf("proto: wrong wireType = %d for field Fragment", wireType) |
| 13031 | } |
| 13032 | var v int |
| 13033 | for shift := uint(0); ; shift += 7 { |
| 13034 | if shift >= 64 { |
| 13035 | return ErrIntOverflowRpc |
| 13036 | } |
| 13037 | if iNdEx >= l { |
| 13038 | return io.ErrUnexpectedEOF |
| 13039 | } |
| 13040 | b := dAtA[iNdEx] |
| 13041 | iNdEx++ |
| 13042 | v |= (int(b) & 0x7F) << shift |
| 13043 | if b < 0x80 { |
| 13044 | break |
| 13045 | } |
| 13046 | } |
| 13047 | m.Fragment = bool(v != 0) |
| 13048 | default: |
| 13049 | iNdEx = preIndex |
| 13050 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 13051 | if err != nil { |
| 13052 | return err |
| 13053 | } |
| 13054 | if skippy < 0 { |
| 13055 | return ErrInvalidLengthRpc |
| 13056 | } |
| 13057 | if (iNdEx + skippy) > l { |
| 13058 | return io.ErrUnexpectedEOF |
| 13059 | } |
| 13060 | iNdEx += skippy |
| 13061 | } |
| 13062 | } |
| 13063 | |
| 13064 | if iNdEx > l { |
| 13065 | return io.ErrUnexpectedEOF |
| 13066 | } |
| 13067 | return nil |
| 13068 | } |
| 13069 | func (m *WatchCancelRequest) Unmarshal(dAtA []byte) error { |
| 13070 | l := len(dAtA) |
| 13071 | iNdEx := 0 |
| 13072 | for iNdEx < l { |
| 13073 | preIndex := iNdEx |
| 13074 | var wire uint64 |
| 13075 | for shift := uint(0); ; shift += 7 { |
| 13076 | if shift >= 64 { |
| 13077 | return ErrIntOverflowRpc |
| 13078 | } |
| 13079 | if iNdEx >= l { |
| 13080 | return io.ErrUnexpectedEOF |
| 13081 | } |
| 13082 | b := dAtA[iNdEx] |
| 13083 | iNdEx++ |
| 13084 | wire |= (uint64(b) & 0x7F) << shift |
| 13085 | if b < 0x80 { |
| 13086 | break |
| 13087 | } |
| 13088 | } |
| 13089 | fieldNum := int32(wire >> 3) |
| 13090 | wireType := int(wire & 0x7) |
| 13091 | if wireType == 4 { |
| 13092 | return fmt.Errorf("proto: WatchCancelRequest: wiretype end group for non-group") |
| 13093 | } |
| 13094 | if fieldNum <= 0 { |
| 13095 | return fmt.Errorf("proto: WatchCancelRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 13096 | } |
| 13097 | switch fieldNum { |
| 13098 | case 1: |
| 13099 | if wireType != 0 { |
| 13100 | return fmt.Errorf("proto: wrong wireType = %d for field WatchId", wireType) |
| 13101 | } |
| 13102 | m.WatchId = 0 |
| 13103 | for shift := uint(0); ; shift += 7 { |
| 13104 | if shift >= 64 { |
| 13105 | return ErrIntOverflowRpc |
| 13106 | } |
| 13107 | if iNdEx >= l { |
| 13108 | return io.ErrUnexpectedEOF |
| 13109 | } |
| 13110 | b := dAtA[iNdEx] |
| 13111 | iNdEx++ |
| 13112 | m.WatchId |= (int64(b) & 0x7F) << shift |
| 13113 | if b < 0x80 { |
| 13114 | break |
| 13115 | } |
| 13116 | } |
| 13117 | default: |
| 13118 | iNdEx = preIndex |
| 13119 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 13120 | if err != nil { |
| 13121 | return err |
| 13122 | } |
| 13123 | if skippy < 0 { |
| 13124 | return ErrInvalidLengthRpc |
| 13125 | } |
| 13126 | if (iNdEx + skippy) > l { |
| 13127 | return io.ErrUnexpectedEOF |
| 13128 | } |
| 13129 | iNdEx += skippy |
| 13130 | } |
| 13131 | } |
| 13132 | |
| 13133 | if iNdEx > l { |
| 13134 | return io.ErrUnexpectedEOF |
| 13135 | } |
| 13136 | return nil |
| 13137 | } |
| 13138 | func (m *WatchProgressRequest) Unmarshal(dAtA []byte) error { |
| 13139 | l := len(dAtA) |
| 13140 | iNdEx := 0 |
| 13141 | for iNdEx < l { |
| 13142 | preIndex := iNdEx |
| 13143 | var wire uint64 |
| 13144 | for shift := uint(0); ; shift += 7 { |
| 13145 | if shift >= 64 { |
| 13146 | return ErrIntOverflowRpc |
| 13147 | } |
| 13148 | if iNdEx >= l { |
| 13149 | return io.ErrUnexpectedEOF |
| 13150 | } |
| 13151 | b := dAtA[iNdEx] |
| 13152 | iNdEx++ |
| 13153 | wire |= (uint64(b) & 0x7F) << shift |
| 13154 | if b < 0x80 { |
| 13155 | break |
| 13156 | } |
| 13157 | } |
| 13158 | fieldNum := int32(wire >> 3) |
| 13159 | wireType := int(wire & 0x7) |
| 13160 | if wireType == 4 { |
| 13161 | return fmt.Errorf("proto: WatchProgressRequest: wiretype end group for non-group") |
| 13162 | } |
| 13163 | if fieldNum <= 0 { |
| 13164 | return fmt.Errorf("proto: WatchProgressRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 13165 | } |
| 13166 | switch fieldNum { |
| 13167 | default: |
| 13168 | iNdEx = preIndex |
| 13169 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 13170 | if err != nil { |
| 13171 | return err |
| 13172 | } |
| 13173 | if skippy < 0 { |
| 13174 | return ErrInvalidLengthRpc |
| 13175 | } |
| 13176 | if (iNdEx + skippy) > l { |
| 13177 | return io.ErrUnexpectedEOF |
| 13178 | } |
| 13179 | iNdEx += skippy |
| 13180 | } |
| 13181 | } |
| 13182 | |
| 13183 | if iNdEx > l { |
| 13184 | return io.ErrUnexpectedEOF |
| 13185 | } |
| 13186 | return nil |
| 13187 | } |
| 13188 | func (m *WatchResponse) Unmarshal(dAtA []byte) error { |
| 13189 | l := len(dAtA) |
| 13190 | iNdEx := 0 |
| 13191 | for iNdEx < l { |
| 13192 | preIndex := iNdEx |
| 13193 | var wire uint64 |
| 13194 | for shift := uint(0); ; shift += 7 { |
| 13195 | if shift >= 64 { |
| 13196 | return ErrIntOverflowRpc |
| 13197 | } |
| 13198 | if iNdEx >= l { |
| 13199 | return io.ErrUnexpectedEOF |
| 13200 | } |
| 13201 | b := dAtA[iNdEx] |
| 13202 | iNdEx++ |
| 13203 | wire |= (uint64(b) & 0x7F) << shift |
| 13204 | if b < 0x80 { |
| 13205 | break |
| 13206 | } |
| 13207 | } |
| 13208 | fieldNum := int32(wire >> 3) |
| 13209 | wireType := int(wire & 0x7) |
| 13210 | if wireType == 4 { |
| 13211 | return fmt.Errorf("proto: WatchResponse: wiretype end group for non-group") |
| 13212 | } |
| 13213 | if fieldNum <= 0 { |
| 13214 | return fmt.Errorf("proto: WatchResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 13215 | } |
| 13216 | switch fieldNum { |
| 13217 | case 1: |
| 13218 | if wireType != 2 { |
| 13219 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 13220 | } |
| 13221 | var msglen int |
| 13222 | for shift := uint(0); ; shift += 7 { |
| 13223 | if shift >= 64 { |
| 13224 | return ErrIntOverflowRpc |
| 13225 | } |
| 13226 | if iNdEx >= l { |
| 13227 | return io.ErrUnexpectedEOF |
| 13228 | } |
| 13229 | b := dAtA[iNdEx] |
| 13230 | iNdEx++ |
| 13231 | msglen |= (int(b) & 0x7F) << shift |
| 13232 | if b < 0x80 { |
| 13233 | break |
| 13234 | } |
| 13235 | } |
| 13236 | if msglen < 0 { |
| 13237 | return ErrInvalidLengthRpc |
| 13238 | } |
| 13239 | postIndex := iNdEx + msglen |
| 13240 | if postIndex > l { |
| 13241 | return io.ErrUnexpectedEOF |
| 13242 | } |
| 13243 | if m.Header == nil { |
| 13244 | m.Header = &ResponseHeader{} |
| 13245 | } |
| 13246 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 13247 | return err |
| 13248 | } |
| 13249 | iNdEx = postIndex |
| 13250 | case 2: |
| 13251 | if wireType != 0 { |
| 13252 | return fmt.Errorf("proto: wrong wireType = %d for field WatchId", wireType) |
| 13253 | } |
| 13254 | m.WatchId = 0 |
| 13255 | for shift := uint(0); ; shift += 7 { |
| 13256 | if shift >= 64 { |
| 13257 | return ErrIntOverflowRpc |
| 13258 | } |
| 13259 | if iNdEx >= l { |
| 13260 | return io.ErrUnexpectedEOF |
| 13261 | } |
| 13262 | b := dAtA[iNdEx] |
| 13263 | iNdEx++ |
| 13264 | m.WatchId |= (int64(b) & 0x7F) << shift |
| 13265 | if b < 0x80 { |
| 13266 | break |
| 13267 | } |
| 13268 | } |
| 13269 | case 3: |
| 13270 | if wireType != 0 { |
| 13271 | return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) |
| 13272 | } |
| 13273 | var v int |
| 13274 | for shift := uint(0); ; shift += 7 { |
| 13275 | if shift >= 64 { |
| 13276 | return ErrIntOverflowRpc |
| 13277 | } |
| 13278 | if iNdEx >= l { |
| 13279 | return io.ErrUnexpectedEOF |
| 13280 | } |
| 13281 | b := dAtA[iNdEx] |
| 13282 | iNdEx++ |
| 13283 | v |= (int(b) & 0x7F) << shift |
| 13284 | if b < 0x80 { |
| 13285 | break |
| 13286 | } |
| 13287 | } |
| 13288 | m.Created = bool(v != 0) |
| 13289 | case 4: |
| 13290 | if wireType != 0 { |
| 13291 | return fmt.Errorf("proto: wrong wireType = %d for field Canceled", wireType) |
| 13292 | } |
| 13293 | var v int |
| 13294 | for shift := uint(0); ; shift += 7 { |
| 13295 | if shift >= 64 { |
| 13296 | return ErrIntOverflowRpc |
| 13297 | } |
| 13298 | if iNdEx >= l { |
| 13299 | return io.ErrUnexpectedEOF |
| 13300 | } |
| 13301 | b := dAtA[iNdEx] |
| 13302 | iNdEx++ |
| 13303 | v |= (int(b) & 0x7F) << shift |
| 13304 | if b < 0x80 { |
| 13305 | break |
| 13306 | } |
| 13307 | } |
| 13308 | m.Canceled = bool(v != 0) |
| 13309 | case 5: |
| 13310 | if wireType != 0 { |
| 13311 | return fmt.Errorf("proto: wrong wireType = %d for field CompactRevision", wireType) |
| 13312 | } |
| 13313 | m.CompactRevision = 0 |
| 13314 | for shift := uint(0); ; shift += 7 { |
| 13315 | if shift >= 64 { |
| 13316 | return ErrIntOverflowRpc |
| 13317 | } |
| 13318 | if iNdEx >= l { |
| 13319 | return io.ErrUnexpectedEOF |
| 13320 | } |
| 13321 | b := dAtA[iNdEx] |
| 13322 | iNdEx++ |
| 13323 | m.CompactRevision |= (int64(b) & 0x7F) << shift |
| 13324 | if b < 0x80 { |
| 13325 | break |
| 13326 | } |
| 13327 | } |
| 13328 | case 6: |
| 13329 | if wireType != 2 { |
| 13330 | return fmt.Errorf("proto: wrong wireType = %d for field CancelReason", wireType) |
| 13331 | } |
| 13332 | var stringLen uint64 |
| 13333 | for shift := uint(0); ; shift += 7 { |
| 13334 | if shift >= 64 { |
| 13335 | return ErrIntOverflowRpc |
| 13336 | } |
| 13337 | if iNdEx >= l { |
| 13338 | return io.ErrUnexpectedEOF |
| 13339 | } |
| 13340 | b := dAtA[iNdEx] |
| 13341 | iNdEx++ |
| 13342 | stringLen |= (uint64(b) & 0x7F) << shift |
| 13343 | if b < 0x80 { |
| 13344 | break |
| 13345 | } |
| 13346 | } |
| 13347 | intStringLen := int(stringLen) |
| 13348 | if intStringLen < 0 { |
| 13349 | return ErrInvalidLengthRpc |
| 13350 | } |
| 13351 | postIndex := iNdEx + intStringLen |
| 13352 | if postIndex > l { |
| 13353 | return io.ErrUnexpectedEOF |
| 13354 | } |
| 13355 | m.CancelReason = string(dAtA[iNdEx:postIndex]) |
| 13356 | iNdEx = postIndex |
| 13357 | case 7: |
| 13358 | if wireType != 0 { |
| 13359 | return fmt.Errorf("proto: wrong wireType = %d for field Fragment", wireType) |
| 13360 | } |
| 13361 | var v int |
| 13362 | for shift := uint(0); ; shift += 7 { |
| 13363 | if shift >= 64 { |
| 13364 | return ErrIntOverflowRpc |
| 13365 | } |
| 13366 | if iNdEx >= l { |
| 13367 | return io.ErrUnexpectedEOF |
| 13368 | } |
| 13369 | b := dAtA[iNdEx] |
| 13370 | iNdEx++ |
| 13371 | v |= (int(b) & 0x7F) << shift |
| 13372 | if b < 0x80 { |
| 13373 | break |
| 13374 | } |
| 13375 | } |
| 13376 | m.Fragment = bool(v != 0) |
| 13377 | case 11: |
| 13378 | if wireType != 2 { |
| 13379 | return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) |
| 13380 | } |
| 13381 | var msglen int |
| 13382 | for shift := uint(0); ; shift += 7 { |
| 13383 | if shift >= 64 { |
| 13384 | return ErrIntOverflowRpc |
| 13385 | } |
| 13386 | if iNdEx >= l { |
| 13387 | return io.ErrUnexpectedEOF |
| 13388 | } |
| 13389 | b := dAtA[iNdEx] |
| 13390 | iNdEx++ |
| 13391 | msglen |= (int(b) & 0x7F) << shift |
| 13392 | if b < 0x80 { |
| 13393 | break |
| 13394 | } |
| 13395 | } |
| 13396 | if msglen < 0 { |
| 13397 | return ErrInvalidLengthRpc |
| 13398 | } |
| 13399 | postIndex := iNdEx + msglen |
| 13400 | if postIndex > l { |
| 13401 | return io.ErrUnexpectedEOF |
| 13402 | } |
| 13403 | m.Events = append(m.Events, &mvccpb.Event{}) |
| 13404 | if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 13405 | return err |
| 13406 | } |
| 13407 | iNdEx = postIndex |
| 13408 | default: |
| 13409 | iNdEx = preIndex |
| 13410 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 13411 | if err != nil { |
| 13412 | return err |
| 13413 | } |
| 13414 | if skippy < 0 { |
| 13415 | return ErrInvalidLengthRpc |
| 13416 | } |
| 13417 | if (iNdEx + skippy) > l { |
| 13418 | return io.ErrUnexpectedEOF |
| 13419 | } |
| 13420 | iNdEx += skippy |
| 13421 | } |
| 13422 | } |
| 13423 | |
| 13424 | if iNdEx > l { |
| 13425 | return io.ErrUnexpectedEOF |
| 13426 | } |
| 13427 | return nil |
| 13428 | } |
| 13429 | func (m *LeaseGrantRequest) Unmarshal(dAtA []byte) error { |
| 13430 | l := len(dAtA) |
| 13431 | iNdEx := 0 |
| 13432 | for iNdEx < l { |
| 13433 | preIndex := iNdEx |
| 13434 | var wire uint64 |
| 13435 | for shift := uint(0); ; shift += 7 { |
| 13436 | if shift >= 64 { |
| 13437 | return ErrIntOverflowRpc |
| 13438 | } |
| 13439 | if iNdEx >= l { |
| 13440 | return io.ErrUnexpectedEOF |
| 13441 | } |
| 13442 | b := dAtA[iNdEx] |
| 13443 | iNdEx++ |
| 13444 | wire |= (uint64(b) & 0x7F) << shift |
| 13445 | if b < 0x80 { |
| 13446 | break |
| 13447 | } |
| 13448 | } |
| 13449 | fieldNum := int32(wire >> 3) |
| 13450 | wireType := int(wire & 0x7) |
| 13451 | if wireType == 4 { |
| 13452 | return fmt.Errorf("proto: LeaseGrantRequest: wiretype end group for non-group") |
| 13453 | } |
| 13454 | if fieldNum <= 0 { |
| 13455 | return fmt.Errorf("proto: LeaseGrantRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 13456 | } |
| 13457 | switch fieldNum { |
| 13458 | case 1: |
| 13459 | if wireType != 0 { |
| 13460 | return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) |
| 13461 | } |
| 13462 | m.TTL = 0 |
| 13463 | for shift := uint(0); ; shift += 7 { |
| 13464 | if shift >= 64 { |
| 13465 | return ErrIntOverflowRpc |
| 13466 | } |
| 13467 | if iNdEx >= l { |
| 13468 | return io.ErrUnexpectedEOF |
| 13469 | } |
| 13470 | b := dAtA[iNdEx] |
| 13471 | iNdEx++ |
| 13472 | m.TTL |= (int64(b) & 0x7F) << shift |
| 13473 | if b < 0x80 { |
| 13474 | break |
| 13475 | } |
| 13476 | } |
| 13477 | case 2: |
| 13478 | if wireType != 0 { |
| 13479 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 13480 | } |
| 13481 | m.ID = 0 |
| 13482 | for shift := uint(0); ; shift += 7 { |
| 13483 | if shift >= 64 { |
| 13484 | return ErrIntOverflowRpc |
| 13485 | } |
| 13486 | if iNdEx >= l { |
| 13487 | return io.ErrUnexpectedEOF |
| 13488 | } |
| 13489 | b := dAtA[iNdEx] |
| 13490 | iNdEx++ |
| 13491 | m.ID |= (int64(b) & 0x7F) << shift |
| 13492 | if b < 0x80 { |
| 13493 | break |
| 13494 | } |
| 13495 | } |
| 13496 | default: |
| 13497 | iNdEx = preIndex |
| 13498 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 13499 | if err != nil { |
| 13500 | return err |
| 13501 | } |
| 13502 | if skippy < 0 { |
| 13503 | return ErrInvalidLengthRpc |
| 13504 | } |
| 13505 | if (iNdEx + skippy) > l { |
| 13506 | return io.ErrUnexpectedEOF |
| 13507 | } |
| 13508 | iNdEx += skippy |
| 13509 | } |
| 13510 | } |
| 13511 | |
| 13512 | if iNdEx > l { |
| 13513 | return io.ErrUnexpectedEOF |
| 13514 | } |
| 13515 | return nil |
| 13516 | } |
| 13517 | func (m *LeaseGrantResponse) Unmarshal(dAtA []byte) error { |
| 13518 | l := len(dAtA) |
| 13519 | iNdEx := 0 |
| 13520 | for iNdEx < l { |
| 13521 | preIndex := iNdEx |
| 13522 | var wire uint64 |
| 13523 | for shift := uint(0); ; shift += 7 { |
| 13524 | if shift >= 64 { |
| 13525 | return ErrIntOverflowRpc |
| 13526 | } |
| 13527 | if iNdEx >= l { |
| 13528 | return io.ErrUnexpectedEOF |
| 13529 | } |
| 13530 | b := dAtA[iNdEx] |
| 13531 | iNdEx++ |
| 13532 | wire |= (uint64(b) & 0x7F) << shift |
| 13533 | if b < 0x80 { |
| 13534 | break |
| 13535 | } |
| 13536 | } |
| 13537 | fieldNum := int32(wire >> 3) |
| 13538 | wireType := int(wire & 0x7) |
| 13539 | if wireType == 4 { |
| 13540 | return fmt.Errorf("proto: LeaseGrantResponse: wiretype end group for non-group") |
| 13541 | } |
| 13542 | if fieldNum <= 0 { |
| 13543 | return fmt.Errorf("proto: LeaseGrantResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 13544 | } |
| 13545 | switch fieldNum { |
| 13546 | case 1: |
| 13547 | if wireType != 2 { |
| 13548 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 13549 | } |
| 13550 | var msglen int |
| 13551 | for shift := uint(0); ; shift += 7 { |
| 13552 | if shift >= 64 { |
| 13553 | return ErrIntOverflowRpc |
| 13554 | } |
| 13555 | if iNdEx >= l { |
| 13556 | return io.ErrUnexpectedEOF |
| 13557 | } |
| 13558 | b := dAtA[iNdEx] |
| 13559 | iNdEx++ |
| 13560 | msglen |= (int(b) & 0x7F) << shift |
| 13561 | if b < 0x80 { |
| 13562 | break |
| 13563 | } |
| 13564 | } |
| 13565 | if msglen < 0 { |
| 13566 | return ErrInvalidLengthRpc |
| 13567 | } |
| 13568 | postIndex := iNdEx + msglen |
| 13569 | if postIndex > l { |
| 13570 | return io.ErrUnexpectedEOF |
| 13571 | } |
| 13572 | if m.Header == nil { |
| 13573 | m.Header = &ResponseHeader{} |
| 13574 | } |
| 13575 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 13576 | return err |
| 13577 | } |
| 13578 | iNdEx = postIndex |
| 13579 | case 2: |
| 13580 | if wireType != 0 { |
| 13581 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 13582 | } |
| 13583 | m.ID = 0 |
| 13584 | for shift := uint(0); ; shift += 7 { |
| 13585 | if shift >= 64 { |
| 13586 | return ErrIntOverflowRpc |
| 13587 | } |
| 13588 | if iNdEx >= l { |
| 13589 | return io.ErrUnexpectedEOF |
| 13590 | } |
| 13591 | b := dAtA[iNdEx] |
| 13592 | iNdEx++ |
| 13593 | m.ID |= (int64(b) & 0x7F) << shift |
| 13594 | if b < 0x80 { |
| 13595 | break |
| 13596 | } |
| 13597 | } |
| 13598 | case 3: |
| 13599 | if wireType != 0 { |
| 13600 | return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) |
| 13601 | } |
| 13602 | m.TTL = 0 |
| 13603 | for shift := uint(0); ; shift += 7 { |
| 13604 | if shift >= 64 { |
| 13605 | return ErrIntOverflowRpc |
| 13606 | } |
| 13607 | if iNdEx >= l { |
| 13608 | return io.ErrUnexpectedEOF |
| 13609 | } |
| 13610 | b := dAtA[iNdEx] |
| 13611 | iNdEx++ |
| 13612 | m.TTL |= (int64(b) & 0x7F) << shift |
| 13613 | if b < 0x80 { |
| 13614 | break |
| 13615 | } |
| 13616 | } |
| 13617 | case 4: |
| 13618 | if wireType != 2 { |
| 13619 | return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) |
| 13620 | } |
| 13621 | var stringLen uint64 |
| 13622 | for shift := uint(0); ; shift += 7 { |
| 13623 | if shift >= 64 { |
| 13624 | return ErrIntOverflowRpc |
| 13625 | } |
| 13626 | if iNdEx >= l { |
| 13627 | return io.ErrUnexpectedEOF |
| 13628 | } |
| 13629 | b := dAtA[iNdEx] |
| 13630 | iNdEx++ |
| 13631 | stringLen |= (uint64(b) & 0x7F) << shift |
| 13632 | if b < 0x80 { |
| 13633 | break |
| 13634 | } |
| 13635 | } |
| 13636 | intStringLen := int(stringLen) |
| 13637 | if intStringLen < 0 { |
| 13638 | return ErrInvalidLengthRpc |
| 13639 | } |
| 13640 | postIndex := iNdEx + intStringLen |
| 13641 | if postIndex > l { |
| 13642 | return io.ErrUnexpectedEOF |
| 13643 | } |
| 13644 | m.Error = string(dAtA[iNdEx:postIndex]) |
| 13645 | iNdEx = postIndex |
| 13646 | default: |
| 13647 | iNdEx = preIndex |
| 13648 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 13649 | if err != nil { |
| 13650 | return err |
| 13651 | } |
| 13652 | if skippy < 0 { |
| 13653 | return ErrInvalidLengthRpc |
| 13654 | } |
| 13655 | if (iNdEx + skippy) > l { |
| 13656 | return io.ErrUnexpectedEOF |
| 13657 | } |
| 13658 | iNdEx += skippy |
| 13659 | } |
| 13660 | } |
| 13661 | |
| 13662 | if iNdEx > l { |
| 13663 | return io.ErrUnexpectedEOF |
| 13664 | } |
| 13665 | return nil |
| 13666 | } |
| 13667 | func (m *LeaseRevokeRequest) Unmarshal(dAtA []byte) error { |
| 13668 | l := len(dAtA) |
| 13669 | iNdEx := 0 |
| 13670 | for iNdEx < l { |
| 13671 | preIndex := iNdEx |
| 13672 | var wire uint64 |
| 13673 | for shift := uint(0); ; shift += 7 { |
| 13674 | if shift >= 64 { |
| 13675 | return ErrIntOverflowRpc |
| 13676 | } |
| 13677 | if iNdEx >= l { |
| 13678 | return io.ErrUnexpectedEOF |
| 13679 | } |
| 13680 | b := dAtA[iNdEx] |
| 13681 | iNdEx++ |
| 13682 | wire |= (uint64(b) & 0x7F) << shift |
| 13683 | if b < 0x80 { |
| 13684 | break |
| 13685 | } |
| 13686 | } |
| 13687 | fieldNum := int32(wire >> 3) |
| 13688 | wireType := int(wire & 0x7) |
| 13689 | if wireType == 4 { |
| 13690 | return fmt.Errorf("proto: LeaseRevokeRequest: wiretype end group for non-group") |
| 13691 | } |
| 13692 | if fieldNum <= 0 { |
| 13693 | return fmt.Errorf("proto: LeaseRevokeRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 13694 | } |
| 13695 | switch fieldNum { |
| 13696 | case 1: |
| 13697 | if wireType != 0 { |
| 13698 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 13699 | } |
| 13700 | m.ID = 0 |
| 13701 | for shift := uint(0); ; shift += 7 { |
| 13702 | if shift >= 64 { |
| 13703 | return ErrIntOverflowRpc |
| 13704 | } |
| 13705 | if iNdEx >= l { |
| 13706 | return io.ErrUnexpectedEOF |
| 13707 | } |
| 13708 | b := dAtA[iNdEx] |
| 13709 | iNdEx++ |
| 13710 | m.ID |= (int64(b) & 0x7F) << shift |
| 13711 | if b < 0x80 { |
| 13712 | break |
| 13713 | } |
| 13714 | } |
| 13715 | default: |
| 13716 | iNdEx = preIndex |
| 13717 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 13718 | if err != nil { |
| 13719 | return err |
| 13720 | } |
| 13721 | if skippy < 0 { |
| 13722 | return ErrInvalidLengthRpc |
| 13723 | } |
| 13724 | if (iNdEx + skippy) > l { |
| 13725 | return io.ErrUnexpectedEOF |
| 13726 | } |
| 13727 | iNdEx += skippy |
| 13728 | } |
| 13729 | } |
| 13730 | |
| 13731 | if iNdEx > l { |
| 13732 | return io.ErrUnexpectedEOF |
| 13733 | } |
| 13734 | return nil |
| 13735 | } |
| 13736 | func (m *LeaseRevokeResponse) Unmarshal(dAtA []byte) error { |
| 13737 | l := len(dAtA) |
| 13738 | iNdEx := 0 |
| 13739 | for iNdEx < l { |
| 13740 | preIndex := iNdEx |
| 13741 | var wire uint64 |
| 13742 | for shift := uint(0); ; shift += 7 { |
| 13743 | if shift >= 64 { |
| 13744 | return ErrIntOverflowRpc |
| 13745 | } |
| 13746 | if iNdEx >= l { |
| 13747 | return io.ErrUnexpectedEOF |
| 13748 | } |
| 13749 | b := dAtA[iNdEx] |
| 13750 | iNdEx++ |
| 13751 | wire |= (uint64(b) & 0x7F) << shift |
| 13752 | if b < 0x80 { |
| 13753 | break |
| 13754 | } |
| 13755 | } |
| 13756 | fieldNum := int32(wire >> 3) |
| 13757 | wireType := int(wire & 0x7) |
| 13758 | if wireType == 4 { |
| 13759 | return fmt.Errorf("proto: LeaseRevokeResponse: wiretype end group for non-group") |
| 13760 | } |
| 13761 | if fieldNum <= 0 { |
| 13762 | return fmt.Errorf("proto: LeaseRevokeResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 13763 | } |
| 13764 | switch fieldNum { |
| 13765 | case 1: |
| 13766 | if wireType != 2 { |
| 13767 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 13768 | } |
| 13769 | var msglen int |
| 13770 | for shift := uint(0); ; shift += 7 { |
| 13771 | if shift >= 64 { |
| 13772 | return ErrIntOverflowRpc |
| 13773 | } |
| 13774 | if iNdEx >= l { |
| 13775 | return io.ErrUnexpectedEOF |
| 13776 | } |
| 13777 | b := dAtA[iNdEx] |
| 13778 | iNdEx++ |
| 13779 | msglen |= (int(b) & 0x7F) << shift |
| 13780 | if b < 0x80 { |
| 13781 | break |
| 13782 | } |
| 13783 | } |
| 13784 | if msglen < 0 { |
| 13785 | return ErrInvalidLengthRpc |
| 13786 | } |
| 13787 | postIndex := iNdEx + msglen |
| 13788 | if postIndex > l { |
| 13789 | return io.ErrUnexpectedEOF |
| 13790 | } |
| 13791 | if m.Header == nil { |
| 13792 | m.Header = &ResponseHeader{} |
| 13793 | } |
| 13794 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 13795 | return err |
| 13796 | } |
| 13797 | iNdEx = postIndex |
| 13798 | default: |
| 13799 | iNdEx = preIndex |
| 13800 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 13801 | if err != nil { |
| 13802 | return err |
| 13803 | } |
| 13804 | if skippy < 0 { |
| 13805 | return ErrInvalidLengthRpc |
| 13806 | } |
| 13807 | if (iNdEx + skippy) > l { |
| 13808 | return io.ErrUnexpectedEOF |
| 13809 | } |
| 13810 | iNdEx += skippy |
| 13811 | } |
| 13812 | } |
| 13813 | |
| 13814 | if iNdEx > l { |
| 13815 | return io.ErrUnexpectedEOF |
| 13816 | } |
| 13817 | return nil |
| 13818 | } |
| 13819 | func (m *LeaseCheckpoint) Unmarshal(dAtA []byte) error { |
| 13820 | l := len(dAtA) |
| 13821 | iNdEx := 0 |
| 13822 | for iNdEx < l { |
| 13823 | preIndex := iNdEx |
| 13824 | var wire uint64 |
| 13825 | for shift := uint(0); ; shift += 7 { |
| 13826 | if shift >= 64 { |
| 13827 | return ErrIntOverflowRpc |
| 13828 | } |
| 13829 | if iNdEx >= l { |
| 13830 | return io.ErrUnexpectedEOF |
| 13831 | } |
| 13832 | b := dAtA[iNdEx] |
| 13833 | iNdEx++ |
| 13834 | wire |= (uint64(b) & 0x7F) << shift |
| 13835 | if b < 0x80 { |
| 13836 | break |
| 13837 | } |
| 13838 | } |
| 13839 | fieldNum := int32(wire >> 3) |
| 13840 | wireType := int(wire & 0x7) |
| 13841 | if wireType == 4 { |
| 13842 | return fmt.Errorf("proto: LeaseCheckpoint: wiretype end group for non-group") |
| 13843 | } |
| 13844 | if fieldNum <= 0 { |
| 13845 | return fmt.Errorf("proto: LeaseCheckpoint: illegal tag %d (wire type %d)", fieldNum, wire) |
| 13846 | } |
| 13847 | switch fieldNum { |
| 13848 | case 1: |
| 13849 | if wireType != 0 { |
| 13850 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 13851 | } |
| 13852 | m.ID = 0 |
| 13853 | for shift := uint(0); ; shift += 7 { |
| 13854 | if shift >= 64 { |
| 13855 | return ErrIntOverflowRpc |
| 13856 | } |
| 13857 | if iNdEx >= l { |
| 13858 | return io.ErrUnexpectedEOF |
| 13859 | } |
| 13860 | b := dAtA[iNdEx] |
| 13861 | iNdEx++ |
| 13862 | m.ID |= (int64(b) & 0x7F) << shift |
| 13863 | if b < 0x80 { |
| 13864 | break |
| 13865 | } |
| 13866 | } |
| 13867 | case 2: |
| 13868 | if wireType != 0 { |
| 13869 | return fmt.Errorf("proto: wrong wireType = %d for field Remaining_TTL", wireType) |
| 13870 | } |
| 13871 | m.Remaining_TTL = 0 |
| 13872 | for shift := uint(0); ; shift += 7 { |
| 13873 | if shift >= 64 { |
| 13874 | return ErrIntOverflowRpc |
| 13875 | } |
| 13876 | if iNdEx >= l { |
| 13877 | return io.ErrUnexpectedEOF |
| 13878 | } |
| 13879 | b := dAtA[iNdEx] |
| 13880 | iNdEx++ |
| 13881 | m.Remaining_TTL |= (int64(b) & 0x7F) << shift |
| 13882 | if b < 0x80 { |
| 13883 | break |
| 13884 | } |
| 13885 | } |
| 13886 | default: |
| 13887 | iNdEx = preIndex |
| 13888 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 13889 | if err != nil { |
| 13890 | return err |
| 13891 | } |
| 13892 | if skippy < 0 { |
| 13893 | return ErrInvalidLengthRpc |
| 13894 | } |
| 13895 | if (iNdEx + skippy) > l { |
| 13896 | return io.ErrUnexpectedEOF |
| 13897 | } |
| 13898 | iNdEx += skippy |
| 13899 | } |
| 13900 | } |
| 13901 | |
| 13902 | if iNdEx > l { |
| 13903 | return io.ErrUnexpectedEOF |
| 13904 | } |
| 13905 | return nil |
| 13906 | } |
| 13907 | func (m *LeaseCheckpointRequest) Unmarshal(dAtA []byte) error { |
| 13908 | l := len(dAtA) |
| 13909 | iNdEx := 0 |
| 13910 | for iNdEx < l { |
| 13911 | preIndex := iNdEx |
| 13912 | var wire uint64 |
| 13913 | for shift := uint(0); ; shift += 7 { |
| 13914 | if shift >= 64 { |
| 13915 | return ErrIntOverflowRpc |
| 13916 | } |
| 13917 | if iNdEx >= l { |
| 13918 | return io.ErrUnexpectedEOF |
| 13919 | } |
| 13920 | b := dAtA[iNdEx] |
| 13921 | iNdEx++ |
| 13922 | wire |= (uint64(b) & 0x7F) << shift |
| 13923 | if b < 0x80 { |
| 13924 | break |
| 13925 | } |
| 13926 | } |
| 13927 | fieldNum := int32(wire >> 3) |
| 13928 | wireType := int(wire & 0x7) |
| 13929 | if wireType == 4 { |
| 13930 | return fmt.Errorf("proto: LeaseCheckpointRequest: wiretype end group for non-group") |
| 13931 | } |
| 13932 | if fieldNum <= 0 { |
| 13933 | return fmt.Errorf("proto: LeaseCheckpointRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 13934 | } |
| 13935 | switch fieldNum { |
| 13936 | case 1: |
| 13937 | if wireType != 2 { |
| 13938 | return fmt.Errorf("proto: wrong wireType = %d for field Checkpoints", wireType) |
| 13939 | } |
| 13940 | var msglen int |
| 13941 | for shift := uint(0); ; shift += 7 { |
| 13942 | if shift >= 64 { |
| 13943 | return ErrIntOverflowRpc |
| 13944 | } |
| 13945 | if iNdEx >= l { |
| 13946 | return io.ErrUnexpectedEOF |
| 13947 | } |
| 13948 | b := dAtA[iNdEx] |
| 13949 | iNdEx++ |
| 13950 | msglen |= (int(b) & 0x7F) << shift |
| 13951 | if b < 0x80 { |
| 13952 | break |
| 13953 | } |
| 13954 | } |
| 13955 | if msglen < 0 { |
| 13956 | return ErrInvalidLengthRpc |
| 13957 | } |
| 13958 | postIndex := iNdEx + msglen |
| 13959 | if postIndex > l { |
| 13960 | return io.ErrUnexpectedEOF |
| 13961 | } |
| 13962 | m.Checkpoints = append(m.Checkpoints, &LeaseCheckpoint{}) |
| 13963 | if err := m.Checkpoints[len(m.Checkpoints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 13964 | return err |
| 13965 | } |
| 13966 | iNdEx = postIndex |
| 13967 | default: |
| 13968 | iNdEx = preIndex |
| 13969 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 13970 | if err != nil { |
| 13971 | return err |
| 13972 | } |
| 13973 | if skippy < 0 { |
| 13974 | return ErrInvalidLengthRpc |
| 13975 | } |
| 13976 | if (iNdEx + skippy) > l { |
| 13977 | return io.ErrUnexpectedEOF |
| 13978 | } |
| 13979 | iNdEx += skippy |
| 13980 | } |
| 13981 | } |
| 13982 | |
| 13983 | if iNdEx > l { |
| 13984 | return io.ErrUnexpectedEOF |
| 13985 | } |
| 13986 | return nil |
| 13987 | } |
| 13988 | func (m *LeaseCheckpointResponse) Unmarshal(dAtA []byte) error { |
| 13989 | l := len(dAtA) |
| 13990 | iNdEx := 0 |
| 13991 | for iNdEx < l { |
| 13992 | preIndex := iNdEx |
| 13993 | var wire uint64 |
| 13994 | for shift := uint(0); ; shift += 7 { |
| 13995 | if shift >= 64 { |
| 13996 | return ErrIntOverflowRpc |
| 13997 | } |
| 13998 | if iNdEx >= l { |
| 13999 | return io.ErrUnexpectedEOF |
| 14000 | } |
| 14001 | b := dAtA[iNdEx] |
| 14002 | iNdEx++ |
| 14003 | wire |= (uint64(b) & 0x7F) << shift |
| 14004 | if b < 0x80 { |
| 14005 | break |
| 14006 | } |
| 14007 | } |
| 14008 | fieldNum := int32(wire >> 3) |
| 14009 | wireType := int(wire & 0x7) |
| 14010 | if wireType == 4 { |
| 14011 | return fmt.Errorf("proto: LeaseCheckpointResponse: wiretype end group for non-group") |
| 14012 | } |
| 14013 | if fieldNum <= 0 { |
| 14014 | return fmt.Errorf("proto: LeaseCheckpointResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 14015 | } |
| 14016 | switch fieldNum { |
| 14017 | case 1: |
| 14018 | if wireType != 2 { |
| 14019 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 14020 | } |
| 14021 | var msglen int |
| 14022 | for shift := uint(0); ; shift += 7 { |
| 14023 | if shift >= 64 { |
| 14024 | return ErrIntOverflowRpc |
| 14025 | } |
| 14026 | if iNdEx >= l { |
| 14027 | return io.ErrUnexpectedEOF |
| 14028 | } |
| 14029 | b := dAtA[iNdEx] |
| 14030 | iNdEx++ |
| 14031 | msglen |= (int(b) & 0x7F) << shift |
| 14032 | if b < 0x80 { |
| 14033 | break |
| 14034 | } |
| 14035 | } |
| 14036 | if msglen < 0 { |
| 14037 | return ErrInvalidLengthRpc |
| 14038 | } |
| 14039 | postIndex := iNdEx + msglen |
| 14040 | if postIndex > l { |
| 14041 | return io.ErrUnexpectedEOF |
| 14042 | } |
| 14043 | if m.Header == nil { |
| 14044 | m.Header = &ResponseHeader{} |
| 14045 | } |
| 14046 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 14047 | return err |
| 14048 | } |
| 14049 | iNdEx = postIndex |
| 14050 | default: |
| 14051 | iNdEx = preIndex |
| 14052 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 14053 | if err != nil { |
| 14054 | return err |
| 14055 | } |
| 14056 | if skippy < 0 { |
| 14057 | return ErrInvalidLengthRpc |
| 14058 | } |
| 14059 | if (iNdEx + skippy) > l { |
| 14060 | return io.ErrUnexpectedEOF |
| 14061 | } |
| 14062 | iNdEx += skippy |
| 14063 | } |
| 14064 | } |
| 14065 | |
| 14066 | if iNdEx > l { |
| 14067 | return io.ErrUnexpectedEOF |
| 14068 | } |
| 14069 | return nil |
| 14070 | } |
| 14071 | func (m *LeaseKeepAliveRequest) Unmarshal(dAtA []byte) error { |
| 14072 | l := len(dAtA) |
| 14073 | iNdEx := 0 |
| 14074 | for iNdEx < l { |
| 14075 | preIndex := iNdEx |
| 14076 | var wire uint64 |
| 14077 | for shift := uint(0); ; shift += 7 { |
| 14078 | if shift >= 64 { |
| 14079 | return ErrIntOverflowRpc |
| 14080 | } |
| 14081 | if iNdEx >= l { |
| 14082 | return io.ErrUnexpectedEOF |
| 14083 | } |
| 14084 | b := dAtA[iNdEx] |
| 14085 | iNdEx++ |
| 14086 | wire |= (uint64(b) & 0x7F) << shift |
| 14087 | if b < 0x80 { |
| 14088 | break |
| 14089 | } |
| 14090 | } |
| 14091 | fieldNum := int32(wire >> 3) |
| 14092 | wireType := int(wire & 0x7) |
| 14093 | if wireType == 4 { |
| 14094 | return fmt.Errorf("proto: LeaseKeepAliveRequest: wiretype end group for non-group") |
| 14095 | } |
| 14096 | if fieldNum <= 0 { |
| 14097 | return fmt.Errorf("proto: LeaseKeepAliveRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 14098 | } |
| 14099 | switch fieldNum { |
| 14100 | case 1: |
| 14101 | if wireType != 0 { |
| 14102 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 14103 | } |
| 14104 | m.ID = 0 |
| 14105 | for shift := uint(0); ; shift += 7 { |
| 14106 | if shift >= 64 { |
| 14107 | return ErrIntOverflowRpc |
| 14108 | } |
| 14109 | if iNdEx >= l { |
| 14110 | return io.ErrUnexpectedEOF |
| 14111 | } |
| 14112 | b := dAtA[iNdEx] |
| 14113 | iNdEx++ |
| 14114 | m.ID |= (int64(b) & 0x7F) << shift |
| 14115 | if b < 0x80 { |
| 14116 | break |
| 14117 | } |
| 14118 | } |
| 14119 | default: |
| 14120 | iNdEx = preIndex |
| 14121 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 14122 | if err != nil { |
| 14123 | return err |
| 14124 | } |
| 14125 | if skippy < 0 { |
| 14126 | return ErrInvalidLengthRpc |
| 14127 | } |
| 14128 | if (iNdEx + skippy) > l { |
| 14129 | return io.ErrUnexpectedEOF |
| 14130 | } |
| 14131 | iNdEx += skippy |
| 14132 | } |
| 14133 | } |
| 14134 | |
| 14135 | if iNdEx > l { |
| 14136 | return io.ErrUnexpectedEOF |
| 14137 | } |
| 14138 | return nil |
| 14139 | } |
| 14140 | func (m *LeaseKeepAliveResponse) Unmarshal(dAtA []byte) error { |
| 14141 | l := len(dAtA) |
| 14142 | iNdEx := 0 |
| 14143 | for iNdEx < l { |
| 14144 | preIndex := iNdEx |
| 14145 | var wire uint64 |
| 14146 | for shift := uint(0); ; shift += 7 { |
| 14147 | if shift >= 64 { |
| 14148 | return ErrIntOverflowRpc |
| 14149 | } |
| 14150 | if iNdEx >= l { |
| 14151 | return io.ErrUnexpectedEOF |
| 14152 | } |
| 14153 | b := dAtA[iNdEx] |
| 14154 | iNdEx++ |
| 14155 | wire |= (uint64(b) & 0x7F) << shift |
| 14156 | if b < 0x80 { |
| 14157 | break |
| 14158 | } |
| 14159 | } |
| 14160 | fieldNum := int32(wire >> 3) |
| 14161 | wireType := int(wire & 0x7) |
| 14162 | if wireType == 4 { |
| 14163 | return fmt.Errorf("proto: LeaseKeepAliveResponse: wiretype end group for non-group") |
| 14164 | } |
| 14165 | if fieldNum <= 0 { |
| 14166 | return fmt.Errorf("proto: LeaseKeepAliveResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 14167 | } |
| 14168 | switch fieldNum { |
| 14169 | case 1: |
| 14170 | if wireType != 2 { |
| 14171 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 14172 | } |
| 14173 | var msglen int |
| 14174 | for shift := uint(0); ; shift += 7 { |
| 14175 | if shift >= 64 { |
| 14176 | return ErrIntOverflowRpc |
| 14177 | } |
| 14178 | if iNdEx >= l { |
| 14179 | return io.ErrUnexpectedEOF |
| 14180 | } |
| 14181 | b := dAtA[iNdEx] |
| 14182 | iNdEx++ |
| 14183 | msglen |= (int(b) & 0x7F) << shift |
| 14184 | if b < 0x80 { |
| 14185 | break |
| 14186 | } |
| 14187 | } |
| 14188 | if msglen < 0 { |
| 14189 | return ErrInvalidLengthRpc |
| 14190 | } |
| 14191 | postIndex := iNdEx + msglen |
| 14192 | if postIndex > l { |
| 14193 | return io.ErrUnexpectedEOF |
| 14194 | } |
| 14195 | if m.Header == nil { |
| 14196 | m.Header = &ResponseHeader{} |
| 14197 | } |
| 14198 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 14199 | return err |
| 14200 | } |
| 14201 | iNdEx = postIndex |
| 14202 | case 2: |
| 14203 | if wireType != 0 { |
| 14204 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 14205 | } |
| 14206 | m.ID = 0 |
| 14207 | for shift := uint(0); ; shift += 7 { |
| 14208 | if shift >= 64 { |
| 14209 | return ErrIntOverflowRpc |
| 14210 | } |
| 14211 | if iNdEx >= l { |
| 14212 | return io.ErrUnexpectedEOF |
| 14213 | } |
| 14214 | b := dAtA[iNdEx] |
| 14215 | iNdEx++ |
| 14216 | m.ID |= (int64(b) & 0x7F) << shift |
| 14217 | if b < 0x80 { |
| 14218 | break |
| 14219 | } |
| 14220 | } |
| 14221 | case 3: |
| 14222 | if wireType != 0 { |
| 14223 | return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) |
| 14224 | } |
| 14225 | m.TTL = 0 |
| 14226 | for shift := uint(0); ; shift += 7 { |
| 14227 | if shift >= 64 { |
| 14228 | return ErrIntOverflowRpc |
| 14229 | } |
| 14230 | if iNdEx >= l { |
| 14231 | return io.ErrUnexpectedEOF |
| 14232 | } |
| 14233 | b := dAtA[iNdEx] |
| 14234 | iNdEx++ |
| 14235 | m.TTL |= (int64(b) & 0x7F) << shift |
| 14236 | if b < 0x80 { |
| 14237 | break |
| 14238 | } |
| 14239 | } |
| 14240 | default: |
| 14241 | iNdEx = preIndex |
| 14242 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 14243 | if err != nil { |
| 14244 | return err |
| 14245 | } |
| 14246 | if skippy < 0 { |
| 14247 | return ErrInvalidLengthRpc |
| 14248 | } |
| 14249 | if (iNdEx + skippy) > l { |
| 14250 | return io.ErrUnexpectedEOF |
| 14251 | } |
| 14252 | iNdEx += skippy |
| 14253 | } |
| 14254 | } |
| 14255 | |
| 14256 | if iNdEx > l { |
| 14257 | return io.ErrUnexpectedEOF |
| 14258 | } |
| 14259 | return nil |
| 14260 | } |
| 14261 | func (m *LeaseTimeToLiveRequest) Unmarshal(dAtA []byte) error { |
| 14262 | l := len(dAtA) |
| 14263 | iNdEx := 0 |
| 14264 | for iNdEx < l { |
| 14265 | preIndex := iNdEx |
| 14266 | var wire uint64 |
| 14267 | for shift := uint(0); ; shift += 7 { |
| 14268 | if shift >= 64 { |
| 14269 | return ErrIntOverflowRpc |
| 14270 | } |
| 14271 | if iNdEx >= l { |
| 14272 | return io.ErrUnexpectedEOF |
| 14273 | } |
| 14274 | b := dAtA[iNdEx] |
| 14275 | iNdEx++ |
| 14276 | wire |= (uint64(b) & 0x7F) << shift |
| 14277 | if b < 0x80 { |
| 14278 | break |
| 14279 | } |
| 14280 | } |
| 14281 | fieldNum := int32(wire >> 3) |
| 14282 | wireType := int(wire & 0x7) |
| 14283 | if wireType == 4 { |
| 14284 | return fmt.Errorf("proto: LeaseTimeToLiveRequest: wiretype end group for non-group") |
| 14285 | } |
| 14286 | if fieldNum <= 0 { |
| 14287 | return fmt.Errorf("proto: LeaseTimeToLiveRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 14288 | } |
| 14289 | switch fieldNum { |
| 14290 | case 1: |
| 14291 | if wireType != 0 { |
| 14292 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 14293 | } |
| 14294 | m.ID = 0 |
| 14295 | for shift := uint(0); ; shift += 7 { |
| 14296 | if shift >= 64 { |
| 14297 | return ErrIntOverflowRpc |
| 14298 | } |
| 14299 | if iNdEx >= l { |
| 14300 | return io.ErrUnexpectedEOF |
| 14301 | } |
| 14302 | b := dAtA[iNdEx] |
| 14303 | iNdEx++ |
| 14304 | m.ID |= (int64(b) & 0x7F) << shift |
| 14305 | if b < 0x80 { |
| 14306 | break |
| 14307 | } |
| 14308 | } |
| 14309 | case 2: |
| 14310 | if wireType != 0 { |
| 14311 | return fmt.Errorf("proto: wrong wireType = %d for field Keys", wireType) |
| 14312 | } |
| 14313 | var v int |
| 14314 | for shift := uint(0); ; shift += 7 { |
| 14315 | if shift >= 64 { |
| 14316 | return ErrIntOverflowRpc |
| 14317 | } |
| 14318 | if iNdEx >= l { |
| 14319 | return io.ErrUnexpectedEOF |
| 14320 | } |
| 14321 | b := dAtA[iNdEx] |
| 14322 | iNdEx++ |
| 14323 | v |= (int(b) & 0x7F) << shift |
| 14324 | if b < 0x80 { |
| 14325 | break |
| 14326 | } |
| 14327 | } |
| 14328 | m.Keys = bool(v != 0) |
| 14329 | default: |
| 14330 | iNdEx = preIndex |
| 14331 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 14332 | if err != nil { |
| 14333 | return err |
| 14334 | } |
| 14335 | if skippy < 0 { |
| 14336 | return ErrInvalidLengthRpc |
| 14337 | } |
| 14338 | if (iNdEx + skippy) > l { |
| 14339 | return io.ErrUnexpectedEOF |
| 14340 | } |
| 14341 | iNdEx += skippy |
| 14342 | } |
| 14343 | } |
| 14344 | |
| 14345 | if iNdEx > l { |
| 14346 | return io.ErrUnexpectedEOF |
| 14347 | } |
| 14348 | return nil |
| 14349 | } |
| 14350 | func (m *LeaseTimeToLiveResponse) Unmarshal(dAtA []byte) error { |
| 14351 | l := len(dAtA) |
| 14352 | iNdEx := 0 |
| 14353 | for iNdEx < l { |
| 14354 | preIndex := iNdEx |
| 14355 | var wire uint64 |
| 14356 | for shift := uint(0); ; shift += 7 { |
| 14357 | if shift >= 64 { |
| 14358 | return ErrIntOverflowRpc |
| 14359 | } |
| 14360 | if iNdEx >= l { |
| 14361 | return io.ErrUnexpectedEOF |
| 14362 | } |
| 14363 | b := dAtA[iNdEx] |
| 14364 | iNdEx++ |
| 14365 | wire |= (uint64(b) & 0x7F) << shift |
| 14366 | if b < 0x80 { |
| 14367 | break |
| 14368 | } |
| 14369 | } |
| 14370 | fieldNum := int32(wire >> 3) |
| 14371 | wireType := int(wire & 0x7) |
| 14372 | if wireType == 4 { |
| 14373 | return fmt.Errorf("proto: LeaseTimeToLiveResponse: wiretype end group for non-group") |
| 14374 | } |
| 14375 | if fieldNum <= 0 { |
| 14376 | return fmt.Errorf("proto: LeaseTimeToLiveResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 14377 | } |
| 14378 | switch fieldNum { |
| 14379 | case 1: |
| 14380 | if wireType != 2 { |
| 14381 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 14382 | } |
| 14383 | var msglen int |
| 14384 | for shift := uint(0); ; shift += 7 { |
| 14385 | if shift >= 64 { |
| 14386 | return ErrIntOverflowRpc |
| 14387 | } |
| 14388 | if iNdEx >= l { |
| 14389 | return io.ErrUnexpectedEOF |
| 14390 | } |
| 14391 | b := dAtA[iNdEx] |
| 14392 | iNdEx++ |
| 14393 | msglen |= (int(b) & 0x7F) << shift |
| 14394 | if b < 0x80 { |
| 14395 | break |
| 14396 | } |
| 14397 | } |
| 14398 | if msglen < 0 { |
| 14399 | return ErrInvalidLengthRpc |
| 14400 | } |
| 14401 | postIndex := iNdEx + msglen |
| 14402 | if postIndex > l { |
| 14403 | return io.ErrUnexpectedEOF |
| 14404 | } |
| 14405 | if m.Header == nil { |
| 14406 | m.Header = &ResponseHeader{} |
| 14407 | } |
| 14408 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 14409 | return err |
| 14410 | } |
| 14411 | iNdEx = postIndex |
| 14412 | case 2: |
| 14413 | if wireType != 0 { |
| 14414 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 14415 | } |
| 14416 | m.ID = 0 |
| 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 | m.ID |= (int64(b) & 0x7F) << shift |
| 14427 | if b < 0x80 { |
| 14428 | break |
| 14429 | } |
| 14430 | } |
| 14431 | case 3: |
| 14432 | if wireType != 0 { |
| 14433 | return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) |
| 14434 | } |
| 14435 | m.TTL = 0 |
| 14436 | for shift := uint(0); ; shift += 7 { |
| 14437 | if shift >= 64 { |
| 14438 | return ErrIntOverflowRpc |
| 14439 | } |
| 14440 | if iNdEx >= l { |
| 14441 | return io.ErrUnexpectedEOF |
| 14442 | } |
| 14443 | b := dAtA[iNdEx] |
| 14444 | iNdEx++ |
| 14445 | m.TTL |= (int64(b) & 0x7F) << shift |
| 14446 | if b < 0x80 { |
| 14447 | break |
| 14448 | } |
| 14449 | } |
| 14450 | case 4: |
| 14451 | if wireType != 0 { |
| 14452 | return fmt.Errorf("proto: wrong wireType = %d for field GrantedTTL", wireType) |
| 14453 | } |
| 14454 | m.GrantedTTL = 0 |
| 14455 | for shift := uint(0); ; shift += 7 { |
| 14456 | if shift >= 64 { |
| 14457 | return ErrIntOverflowRpc |
| 14458 | } |
| 14459 | if iNdEx >= l { |
| 14460 | return io.ErrUnexpectedEOF |
| 14461 | } |
| 14462 | b := dAtA[iNdEx] |
| 14463 | iNdEx++ |
| 14464 | m.GrantedTTL |= (int64(b) & 0x7F) << shift |
| 14465 | if b < 0x80 { |
| 14466 | break |
| 14467 | } |
| 14468 | } |
| 14469 | case 5: |
| 14470 | if wireType != 2 { |
| 14471 | return fmt.Errorf("proto: wrong wireType = %d for field Keys", wireType) |
| 14472 | } |
| 14473 | var byteLen int |
| 14474 | for shift := uint(0); ; shift += 7 { |
| 14475 | if shift >= 64 { |
| 14476 | return ErrIntOverflowRpc |
| 14477 | } |
| 14478 | if iNdEx >= l { |
| 14479 | return io.ErrUnexpectedEOF |
| 14480 | } |
| 14481 | b := dAtA[iNdEx] |
| 14482 | iNdEx++ |
| 14483 | byteLen |= (int(b) & 0x7F) << shift |
| 14484 | if b < 0x80 { |
| 14485 | break |
| 14486 | } |
| 14487 | } |
| 14488 | if byteLen < 0 { |
| 14489 | return ErrInvalidLengthRpc |
| 14490 | } |
| 14491 | postIndex := iNdEx + byteLen |
| 14492 | if postIndex > l { |
| 14493 | return io.ErrUnexpectedEOF |
| 14494 | } |
| 14495 | m.Keys = append(m.Keys, make([]byte, postIndex-iNdEx)) |
| 14496 | copy(m.Keys[len(m.Keys)-1], dAtA[iNdEx:postIndex]) |
| 14497 | iNdEx = postIndex |
| 14498 | default: |
| 14499 | iNdEx = preIndex |
| 14500 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 14501 | if err != nil { |
| 14502 | return err |
| 14503 | } |
| 14504 | if skippy < 0 { |
| 14505 | return ErrInvalidLengthRpc |
| 14506 | } |
| 14507 | if (iNdEx + skippy) > l { |
| 14508 | return io.ErrUnexpectedEOF |
| 14509 | } |
| 14510 | iNdEx += skippy |
| 14511 | } |
| 14512 | } |
| 14513 | |
| 14514 | if iNdEx > l { |
| 14515 | return io.ErrUnexpectedEOF |
| 14516 | } |
| 14517 | return nil |
| 14518 | } |
| 14519 | func (m *LeaseLeasesRequest) Unmarshal(dAtA []byte) error { |
| 14520 | l := len(dAtA) |
| 14521 | iNdEx := 0 |
| 14522 | for iNdEx < l { |
| 14523 | preIndex := iNdEx |
| 14524 | var wire uint64 |
| 14525 | for shift := uint(0); ; shift += 7 { |
| 14526 | if shift >= 64 { |
| 14527 | return ErrIntOverflowRpc |
| 14528 | } |
| 14529 | if iNdEx >= l { |
| 14530 | return io.ErrUnexpectedEOF |
| 14531 | } |
| 14532 | b := dAtA[iNdEx] |
| 14533 | iNdEx++ |
| 14534 | wire |= (uint64(b) & 0x7F) << shift |
| 14535 | if b < 0x80 { |
| 14536 | break |
| 14537 | } |
| 14538 | } |
| 14539 | fieldNum := int32(wire >> 3) |
| 14540 | wireType := int(wire & 0x7) |
| 14541 | if wireType == 4 { |
| 14542 | return fmt.Errorf("proto: LeaseLeasesRequest: wiretype end group for non-group") |
| 14543 | } |
| 14544 | if fieldNum <= 0 { |
| 14545 | return fmt.Errorf("proto: LeaseLeasesRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 14546 | } |
| 14547 | switch fieldNum { |
| 14548 | default: |
| 14549 | iNdEx = preIndex |
| 14550 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 14551 | if err != nil { |
| 14552 | return err |
| 14553 | } |
| 14554 | if skippy < 0 { |
| 14555 | return ErrInvalidLengthRpc |
| 14556 | } |
| 14557 | if (iNdEx + skippy) > l { |
| 14558 | return io.ErrUnexpectedEOF |
| 14559 | } |
| 14560 | iNdEx += skippy |
| 14561 | } |
| 14562 | } |
| 14563 | |
| 14564 | if iNdEx > l { |
| 14565 | return io.ErrUnexpectedEOF |
| 14566 | } |
| 14567 | return nil |
| 14568 | } |
| 14569 | func (m *LeaseStatus) Unmarshal(dAtA []byte) error { |
| 14570 | l := len(dAtA) |
| 14571 | iNdEx := 0 |
| 14572 | for iNdEx < l { |
| 14573 | preIndex := iNdEx |
| 14574 | var wire uint64 |
| 14575 | for shift := uint(0); ; shift += 7 { |
| 14576 | if shift >= 64 { |
| 14577 | return ErrIntOverflowRpc |
| 14578 | } |
| 14579 | if iNdEx >= l { |
| 14580 | return io.ErrUnexpectedEOF |
| 14581 | } |
| 14582 | b := dAtA[iNdEx] |
| 14583 | iNdEx++ |
| 14584 | wire |= (uint64(b) & 0x7F) << shift |
| 14585 | if b < 0x80 { |
| 14586 | break |
| 14587 | } |
| 14588 | } |
| 14589 | fieldNum := int32(wire >> 3) |
| 14590 | wireType := int(wire & 0x7) |
| 14591 | if wireType == 4 { |
| 14592 | return fmt.Errorf("proto: LeaseStatus: wiretype end group for non-group") |
| 14593 | } |
| 14594 | if fieldNum <= 0 { |
| 14595 | return fmt.Errorf("proto: LeaseStatus: illegal tag %d (wire type %d)", fieldNum, wire) |
| 14596 | } |
| 14597 | switch fieldNum { |
| 14598 | case 1: |
| 14599 | if wireType != 0 { |
| 14600 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 14601 | } |
| 14602 | m.ID = 0 |
| 14603 | for shift := uint(0); ; shift += 7 { |
| 14604 | if shift >= 64 { |
| 14605 | return ErrIntOverflowRpc |
| 14606 | } |
| 14607 | if iNdEx >= l { |
| 14608 | return io.ErrUnexpectedEOF |
| 14609 | } |
| 14610 | b := dAtA[iNdEx] |
| 14611 | iNdEx++ |
| 14612 | m.ID |= (int64(b) & 0x7F) << shift |
| 14613 | if b < 0x80 { |
| 14614 | break |
| 14615 | } |
| 14616 | } |
| 14617 | default: |
| 14618 | iNdEx = preIndex |
| 14619 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 14620 | if err != nil { |
| 14621 | return err |
| 14622 | } |
| 14623 | if skippy < 0 { |
| 14624 | return ErrInvalidLengthRpc |
| 14625 | } |
| 14626 | if (iNdEx + skippy) > l { |
| 14627 | return io.ErrUnexpectedEOF |
| 14628 | } |
| 14629 | iNdEx += skippy |
| 14630 | } |
| 14631 | } |
| 14632 | |
| 14633 | if iNdEx > l { |
| 14634 | return io.ErrUnexpectedEOF |
| 14635 | } |
| 14636 | return nil |
| 14637 | } |
| 14638 | func (m *LeaseLeasesResponse) Unmarshal(dAtA []byte) error { |
| 14639 | l := len(dAtA) |
| 14640 | iNdEx := 0 |
| 14641 | for iNdEx < l { |
| 14642 | preIndex := iNdEx |
| 14643 | var wire uint64 |
| 14644 | for shift := uint(0); ; shift += 7 { |
| 14645 | if shift >= 64 { |
| 14646 | return ErrIntOverflowRpc |
| 14647 | } |
| 14648 | if iNdEx >= l { |
| 14649 | return io.ErrUnexpectedEOF |
| 14650 | } |
| 14651 | b := dAtA[iNdEx] |
| 14652 | iNdEx++ |
| 14653 | wire |= (uint64(b) & 0x7F) << shift |
| 14654 | if b < 0x80 { |
| 14655 | break |
| 14656 | } |
| 14657 | } |
| 14658 | fieldNum := int32(wire >> 3) |
| 14659 | wireType := int(wire & 0x7) |
| 14660 | if wireType == 4 { |
| 14661 | return fmt.Errorf("proto: LeaseLeasesResponse: wiretype end group for non-group") |
| 14662 | } |
| 14663 | if fieldNum <= 0 { |
| 14664 | return fmt.Errorf("proto: LeaseLeasesResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 14665 | } |
| 14666 | switch fieldNum { |
| 14667 | case 1: |
| 14668 | if wireType != 2 { |
| 14669 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 14670 | } |
| 14671 | var msglen int |
| 14672 | for shift := uint(0); ; shift += 7 { |
| 14673 | if shift >= 64 { |
| 14674 | return ErrIntOverflowRpc |
| 14675 | } |
| 14676 | if iNdEx >= l { |
| 14677 | return io.ErrUnexpectedEOF |
| 14678 | } |
| 14679 | b := dAtA[iNdEx] |
| 14680 | iNdEx++ |
| 14681 | msglen |= (int(b) & 0x7F) << shift |
| 14682 | if b < 0x80 { |
| 14683 | break |
| 14684 | } |
| 14685 | } |
| 14686 | if msglen < 0 { |
| 14687 | return ErrInvalidLengthRpc |
| 14688 | } |
| 14689 | postIndex := iNdEx + msglen |
| 14690 | if postIndex > l { |
| 14691 | return io.ErrUnexpectedEOF |
| 14692 | } |
| 14693 | if m.Header == nil { |
| 14694 | m.Header = &ResponseHeader{} |
| 14695 | } |
| 14696 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 14697 | return err |
| 14698 | } |
| 14699 | iNdEx = postIndex |
| 14700 | case 2: |
| 14701 | if wireType != 2 { |
| 14702 | return fmt.Errorf("proto: wrong wireType = %d for field Leases", wireType) |
| 14703 | } |
| 14704 | var msglen int |
| 14705 | for shift := uint(0); ; shift += 7 { |
| 14706 | if shift >= 64 { |
| 14707 | return ErrIntOverflowRpc |
| 14708 | } |
| 14709 | if iNdEx >= l { |
| 14710 | return io.ErrUnexpectedEOF |
| 14711 | } |
| 14712 | b := dAtA[iNdEx] |
| 14713 | iNdEx++ |
| 14714 | msglen |= (int(b) & 0x7F) << shift |
| 14715 | if b < 0x80 { |
| 14716 | break |
| 14717 | } |
| 14718 | } |
| 14719 | if msglen < 0 { |
| 14720 | return ErrInvalidLengthRpc |
| 14721 | } |
| 14722 | postIndex := iNdEx + msglen |
| 14723 | if postIndex > l { |
| 14724 | return io.ErrUnexpectedEOF |
| 14725 | } |
| 14726 | m.Leases = append(m.Leases, &LeaseStatus{}) |
| 14727 | if err := m.Leases[len(m.Leases)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 14728 | return err |
| 14729 | } |
| 14730 | iNdEx = postIndex |
| 14731 | default: |
| 14732 | iNdEx = preIndex |
| 14733 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 14734 | if err != nil { |
| 14735 | return err |
| 14736 | } |
| 14737 | if skippy < 0 { |
| 14738 | return ErrInvalidLengthRpc |
| 14739 | } |
| 14740 | if (iNdEx + skippy) > l { |
| 14741 | return io.ErrUnexpectedEOF |
| 14742 | } |
| 14743 | iNdEx += skippy |
| 14744 | } |
| 14745 | } |
| 14746 | |
| 14747 | if iNdEx > l { |
| 14748 | return io.ErrUnexpectedEOF |
| 14749 | } |
| 14750 | return nil |
| 14751 | } |
| 14752 | func (m *Member) Unmarshal(dAtA []byte) error { |
| 14753 | l := len(dAtA) |
| 14754 | iNdEx := 0 |
| 14755 | for iNdEx < l { |
| 14756 | preIndex := iNdEx |
| 14757 | var wire uint64 |
| 14758 | for shift := uint(0); ; shift += 7 { |
| 14759 | if shift >= 64 { |
| 14760 | return ErrIntOverflowRpc |
| 14761 | } |
| 14762 | if iNdEx >= l { |
| 14763 | return io.ErrUnexpectedEOF |
| 14764 | } |
| 14765 | b := dAtA[iNdEx] |
| 14766 | iNdEx++ |
| 14767 | wire |= (uint64(b) & 0x7F) << shift |
| 14768 | if b < 0x80 { |
| 14769 | break |
| 14770 | } |
| 14771 | } |
| 14772 | fieldNum := int32(wire >> 3) |
| 14773 | wireType := int(wire & 0x7) |
| 14774 | if wireType == 4 { |
| 14775 | return fmt.Errorf("proto: Member: wiretype end group for non-group") |
| 14776 | } |
| 14777 | if fieldNum <= 0 { |
| 14778 | return fmt.Errorf("proto: Member: illegal tag %d (wire type %d)", fieldNum, wire) |
| 14779 | } |
| 14780 | switch fieldNum { |
| 14781 | case 1: |
| 14782 | if wireType != 0 { |
| 14783 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 14784 | } |
| 14785 | m.ID = 0 |
| 14786 | for shift := uint(0); ; shift += 7 { |
| 14787 | if shift >= 64 { |
| 14788 | return ErrIntOverflowRpc |
| 14789 | } |
| 14790 | if iNdEx >= l { |
| 14791 | return io.ErrUnexpectedEOF |
| 14792 | } |
| 14793 | b := dAtA[iNdEx] |
| 14794 | iNdEx++ |
| 14795 | m.ID |= (uint64(b) & 0x7F) << shift |
| 14796 | if b < 0x80 { |
| 14797 | break |
| 14798 | } |
| 14799 | } |
| 14800 | case 2: |
| 14801 | if wireType != 2 { |
| 14802 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 14803 | } |
| 14804 | var stringLen uint64 |
| 14805 | for shift := uint(0); ; shift += 7 { |
| 14806 | if shift >= 64 { |
| 14807 | return ErrIntOverflowRpc |
| 14808 | } |
| 14809 | if iNdEx >= l { |
| 14810 | return io.ErrUnexpectedEOF |
| 14811 | } |
| 14812 | b := dAtA[iNdEx] |
| 14813 | iNdEx++ |
| 14814 | stringLen |= (uint64(b) & 0x7F) << shift |
| 14815 | if b < 0x80 { |
| 14816 | break |
| 14817 | } |
| 14818 | } |
| 14819 | intStringLen := int(stringLen) |
| 14820 | if intStringLen < 0 { |
| 14821 | return ErrInvalidLengthRpc |
| 14822 | } |
| 14823 | postIndex := iNdEx + intStringLen |
| 14824 | if postIndex > l { |
| 14825 | return io.ErrUnexpectedEOF |
| 14826 | } |
| 14827 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 14828 | iNdEx = postIndex |
| 14829 | case 3: |
| 14830 | if wireType != 2 { |
| 14831 | return fmt.Errorf("proto: wrong wireType = %d for field PeerURLs", wireType) |
| 14832 | } |
| 14833 | var stringLen uint64 |
| 14834 | for shift := uint(0); ; shift += 7 { |
| 14835 | if shift >= 64 { |
| 14836 | return ErrIntOverflowRpc |
| 14837 | } |
| 14838 | if iNdEx >= l { |
| 14839 | return io.ErrUnexpectedEOF |
| 14840 | } |
| 14841 | b := dAtA[iNdEx] |
| 14842 | iNdEx++ |
| 14843 | stringLen |= (uint64(b) & 0x7F) << shift |
| 14844 | if b < 0x80 { |
| 14845 | break |
| 14846 | } |
| 14847 | } |
| 14848 | intStringLen := int(stringLen) |
| 14849 | if intStringLen < 0 { |
| 14850 | return ErrInvalidLengthRpc |
| 14851 | } |
| 14852 | postIndex := iNdEx + intStringLen |
| 14853 | if postIndex > l { |
| 14854 | return io.ErrUnexpectedEOF |
| 14855 | } |
| 14856 | m.PeerURLs = append(m.PeerURLs, string(dAtA[iNdEx:postIndex])) |
| 14857 | iNdEx = postIndex |
| 14858 | case 4: |
| 14859 | if wireType != 2 { |
| 14860 | return fmt.Errorf("proto: wrong wireType = %d for field ClientURLs", wireType) |
| 14861 | } |
| 14862 | var stringLen uint64 |
| 14863 | for shift := uint(0); ; shift += 7 { |
| 14864 | if shift >= 64 { |
| 14865 | return ErrIntOverflowRpc |
| 14866 | } |
| 14867 | if iNdEx >= l { |
| 14868 | return io.ErrUnexpectedEOF |
| 14869 | } |
| 14870 | b := dAtA[iNdEx] |
| 14871 | iNdEx++ |
| 14872 | stringLen |= (uint64(b) & 0x7F) << shift |
| 14873 | if b < 0x80 { |
| 14874 | break |
| 14875 | } |
| 14876 | } |
| 14877 | intStringLen := int(stringLen) |
| 14878 | if intStringLen < 0 { |
| 14879 | return ErrInvalidLengthRpc |
| 14880 | } |
| 14881 | postIndex := iNdEx + intStringLen |
| 14882 | if postIndex > l { |
| 14883 | return io.ErrUnexpectedEOF |
| 14884 | } |
| 14885 | m.ClientURLs = append(m.ClientURLs, string(dAtA[iNdEx:postIndex])) |
| 14886 | iNdEx = postIndex |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 14887 | case 5: |
| 14888 | if wireType != 0 { |
| 14889 | return fmt.Errorf("proto: wrong wireType = %d for field IsLearner", wireType) |
| 14890 | } |
| 14891 | var v int |
| 14892 | for shift := uint(0); ; shift += 7 { |
| 14893 | if shift >= 64 { |
| 14894 | return ErrIntOverflowRpc |
| 14895 | } |
| 14896 | if iNdEx >= l { |
| 14897 | return io.ErrUnexpectedEOF |
| 14898 | } |
| 14899 | b := dAtA[iNdEx] |
| 14900 | iNdEx++ |
| 14901 | v |= (int(b) & 0x7F) << shift |
| 14902 | if b < 0x80 { |
| 14903 | break |
| 14904 | } |
| 14905 | } |
| 14906 | m.IsLearner = bool(v != 0) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 14907 | default: |
| 14908 | iNdEx = preIndex |
| 14909 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 14910 | if err != nil { |
| 14911 | return err |
| 14912 | } |
| 14913 | if skippy < 0 { |
| 14914 | return ErrInvalidLengthRpc |
| 14915 | } |
| 14916 | if (iNdEx + skippy) > l { |
| 14917 | return io.ErrUnexpectedEOF |
| 14918 | } |
| 14919 | iNdEx += skippy |
| 14920 | } |
| 14921 | } |
| 14922 | |
| 14923 | if iNdEx > l { |
| 14924 | return io.ErrUnexpectedEOF |
| 14925 | } |
| 14926 | return nil |
| 14927 | } |
| 14928 | func (m *MemberAddRequest) Unmarshal(dAtA []byte) error { |
| 14929 | l := len(dAtA) |
| 14930 | iNdEx := 0 |
| 14931 | for iNdEx < l { |
| 14932 | preIndex := iNdEx |
| 14933 | var wire uint64 |
| 14934 | for shift := uint(0); ; shift += 7 { |
| 14935 | if shift >= 64 { |
| 14936 | return ErrIntOverflowRpc |
| 14937 | } |
| 14938 | if iNdEx >= l { |
| 14939 | return io.ErrUnexpectedEOF |
| 14940 | } |
| 14941 | b := dAtA[iNdEx] |
| 14942 | iNdEx++ |
| 14943 | wire |= (uint64(b) & 0x7F) << shift |
| 14944 | if b < 0x80 { |
| 14945 | break |
| 14946 | } |
| 14947 | } |
| 14948 | fieldNum := int32(wire >> 3) |
| 14949 | wireType := int(wire & 0x7) |
| 14950 | if wireType == 4 { |
| 14951 | return fmt.Errorf("proto: MemberAddRequest: wiretype end group for non-group") |
| 14952 | } |
| 14953 | if fieldNum <= 0 { |
| 14954 | return fmt.Errorf("proto: MemberAddRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 14955 | } |
| 14956 | switch fieldNum { |
| 14957 | case 1: |
| 14958 | if wireType != 2 { |
| 14959 | return fmt.Errorf("proto: wrong wireType = %d for field PeerURLs", wireType) |
| 14960 | } |
| 14961 | var stringLen uint64 |
| 14962 | for shift := uint(0); ; shift += 7 { |
| 14963 | if shift >= 64 { |
| 14964 | return ErrIntOverflowRpc |
| 14965 | } |
| 14966 | if iNdEx >= l { |
| 14967 | return io.ErrUnexpectedEOF |
| 14968 | } |
| 14969 | b := dAtA[iNdEx] |
| 14970 | iNdEx++ |
| 14971 | stringLen |= (uint64(b) & 0x7F) << shift |
| 14972 | if b < 0x80 { |
| 14973 | break |
| 14974 | } |
| 14975 | } |
| 14976 | intStringLen := int(stringLen) |
| 14977 | if intStringLen < 0 { |
| 14978 | return ErrInvalidLengthRpc |
| 14979 | } |
| 14980 | postIndex := iNdEx + intStringLen |
| 14981 | if postIndex > l { |
| 14982 | return io.ErrUnexpectedEOF |
| 14983 | } |
| 14984 | m.PeerURLs = append(m.PeerURLs, string(dAtA[iNdEx:postIndex])) |
| 14985 | iNdEx = postIndex |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 14986 | case 2: |
| 14987 | if wireType != 0 { |
| 14988 | return fmt.Errorf("proto: wrong wireType = %d for field IsLearner", wireType) |
| 14989 | } |
| 14990 | var v int |
| 14991 | for shift := uint(0); ; shift += 7 { |
| 14992 | if shift >= 64 { |
| 14993 | return ErrIntOverflowRpc |
| 14994 | } |
| 14995 | if iNdEx >= l { |
| 14996 | return io.ErrUnexpectedEOF |
| 14997 | } |
| 14998 | b := dAtA[iNdEx] |
| 14999 | iNdEx++ |
| 15000 | v |= (int(b) & 0x7F) << shift |
| 15001 | if b < 0x80 { |
| 15002 | break |
| 15003 | } |
| 15004 | } |
| 15005 | m.IsLearner = bool(v != 0) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 15006 | default: |
| 15007 | iNdEx = preIndex |
| 15008 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15009 | if err != nil { |
| 15010 | return err |
| 15011 | } |
| 15012 | if skippy < 0 { |
| 15013 | return ErrInvalidLengthRpc |
| 15014 | } |
| 15015 | if (iNdEx + skippy) > l { |
| 15016 | return io.ErrUnexpectedEOF |
| 15017 | } |
| 15018 | iNdEx += skippy |
| 15019 | } |
| 15020 | } |
| 15021 | |
| 15022 | if iNdEx > l { |
| 15023 | return io.ErrUnexpectedEOF |
| 15024 | } |
| 15025 | return nil |
| 15026 | } |
| 15027 | func (m *MemberAddResponse) Unmarshal(dAtA []byte) error { |
| 15028 | l := len(dAtA) |
| 15029 | iNdEx := 0 |
| 15030 | for iNdEx < l { |
| 15031 | preIndex := iNdEx |
| 15032 | var wire uint64 |
| 15033 | for shift := uint(0); ; shift += 7 { |
| 15034 | if shift >= 64 { |
| 15035 | return ErrIntOverflowRpc |
| 15036 | } |
| 15037 | if iNdEx >= l { |
| 15038 | return io.ErrUnexpectedEOF |
| 15039 | } |
| 15040 | b := dAtA[iNdEx] |
| 15041 | iNdEx++ |
| 15042 | wire |= (uint64(b) & 0x7F) << shift |
| 15043 | if b < 0x80 { |
| 15044 | break |
| 15045 | } |
| 15046 | } |
| 15047 | fieldNum := int32(wire >> 3) |
| 15048 | wireType := int(wire & 0x7) |
| 15049 | if wireType == 4 { |
| 15050 | return fmt.Errorf("proto: MemberAddResponse: wiretype end group for non-group") |
| 15051 | } |
| 15052 | if fieldNum <= 0 { |
| 15053 | return fmt.Errorf("proto: MemberAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15054 | } |
| 15055 | switch fieldNum { |
| 15056 | case 1: |
| 15057 | if wireType != 2 { |
| 15058 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 15059 | } |
| 15060 | var msglen int |
| 15061 | for shift := uint(0); ; shift += 7 { |
| 15062 | if shift >= 64 { |
| 15063 | return ErrIntOverflowRpc |
| 15064 | } |
| 15065 | if iNdEx >= l { |
| 15066 | return io.ErrUnexpectedEOF |
| 15067 | } |
| 15068 | b := dAtA[iNdEx] |
| 15069 | iNdEx++ |
| 15070 | msglen |= (int(b) & 0x7F) << shift |
| 15071 | if b < 0x80 { |
| 15072 | break |
| 15073 | } |
| 15074 | } |
| 15075 | if msglen < 0 { |
| 15076 | return ErrInvalidLengthRpc |
| 15077 | } |
| 15078 | postIndex := iNdEx + msglen |
| 15079 | if postIndex > l { |
| 15080 | return io.ErrUnexpectedEOF |
| 15081 | } |
| 15082 | if m.Header == nil { |
| 15083 | m.Header = &ResponseHeader{} |
| 15084 | } |
| 15085 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 15086 | return err |
| 15087 | } |
| 15088 | iNdEx = postIndex |
| 15089 | case 2: |
| 15090 | if wireType != 2 { |
| 15091 | return fmt.Errorf("proto: wrong wireType = %d for field Member", wireType) |
| 15092 | } |
| 15093 | var msglen int |
| 15094 | for shift := uint(0); ; shift += 7 { |
| 15095 | if shift >= 64 { |
| 15096 | return ErrIntOverflowRpc |
| 15097 | } |
| 15098 | if iNdEx >= l { |
| 15099 | return io.ErrUnexpectedEOF |
| 15100 | } |
| 15101 | b := dAtA[iNdEx] |
| 15102 | iNdEx++ |
| 15103 | msglen |= (int(b) & 0x7F) << shift |
| 15104 | if b < 0x80 { |
| 15105 | break |
| 15106 | } |
| 15107 | } |
| 15108 | if msglen < 0 { |
| 15109 | return ErrInvalidLengthRpc |
| 15110 | } |
| 15111 | postIndex := iNdEx + msglen |
| 15112 | if postIndex > l { |
| 15113 | return io.ErrUnexpectedEOF |
| 15114 | } |
| 15115 | if m.Member == nil { |
| 15116 | m.Member = &Member{} |
| 15117 | } |
| 15118 | if err := m.Member.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 15119 | return err |
| 15120 | } |
| 15121 | iNdEx = postIndex |
| 15122 | case 3: |
| 15123 | if wireType != 2 { |
| 15124 | return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) |
| 15125 | } |
| 15126 | var msglen int |
| 15127 | for shift := uint(0); ; shift += 7 { |
| 15128 | if shift >= 64 { |
| 15129 | return ErrIntOverflowRpc |
| 15130 | } |
| 15131 | if iNdEx >= l { |
| 15132 | return io.ErrUnexpectedEOF |
| 15133 | } |
| 15134 | b := dAtA[iNdEx] |
| 15135 | iNdEx++ |
| 15136 | msglen |= (int(b) & 0x7F) << shift |
| 15137 | if b < 0x80 { |
| 15138 | break |
| 15139 | } |
| 15140 | } |
| 15141 | if msglen < 0 { |
| 15142 | return ErrInvalidLengthRpc |
| 15143 | } |
| 15144 | postIndex := iNdEx + msglen |
| 15145 | if postIndex > l { |
| 15146 | return io.ErrUnexpectedEOF |
| 15147 | } |
| 15148 | m.Members = append(m.Members, &Member{}) |
| 15149 | if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 15150 | return err |
| 15151 | } |
| 15152 | iNdEx = postIndex |
| 15153 | default: |
| 15154 | iNdEx = preIndex |
| 15155 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15156 | if err != nil { |
| 15157 | return err |
| 15158 | } |
| 15159 | if skippy < 0 { |
| 15160 | return ErrInvalidLengthRpc |
| 15161 | } |
| 15162 | if (iNdEx + skippy) > l { |
| 15163 | return io.ErrUnexpectedEOF |
| 15164 | } |
| 15165 | iNdEx += skippy |
| 15166 | } |
| 15167 | } |
| 15168 | |
| 15169 | if iNdEx > l { |
| 15170 | return io.ErrUnexpectedEOF |
| 15171 | } |
| 15172 | return nil |
| 15173 | } |
| 15174 | func (m *MemberRemoveRequest) Unmarshal(dAtA []byte) error { |
| 15175 | l := len(dAtA) |
| 15176 | iNdEx := 0 |
| 15177 | for iNdEx < l { |
| 15178 | preIndex := iNdEx |
| 15179 | var wire uint64 |
| 15180 | for shift := uint(0); ; shift += 7 { |
| 15181 | if shift >= 64 { |
| 15182 | return ErrIntOverflowRpc |
| 15183 | } |
| 15184 | if iNdEx >= l { |
| 15185 | return io.ErrUnexpectedEOF |
| 15186 | } |
| 15187 | b := dAtA[iNdEx] |
| 15188 | iNdEx++ |
| 15189 | wire |= (uint64(b) & 0x7F) << shift |
| 15190 | if b < 0x80 { |
| 15191 | break |
| 15192 | } |
| 15193 | } |
| 15194 | fieldNum := int32(wire >> 3) |
| 15195 | wireType := int(wire & 0x7) |
| 15196 | if wireType == 4 { |
| 15197 | return fmt.Errorf("proto: MemberRemoveRequest: wiretype end group for non-group") |
| 15198 | } |
| 15199 | if fieldNum <= 0 { |
| 15200 | return fmt.Errorf("proto: MemberRemoveRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15201 | } |
| 15202 | switch fieldNum { |
| 15203 | case 1: |
| 15204 | if wireType != 0 { |
| 15205 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 15206 | } |
| 15207 | m.ID = 0 |
| 15208 | for shift := uint(0); ; shift += 7 { |
| 15209 | if shift >= 64 { |
| 15210 | return ErrIntOverflowRpc |
| 15211 | } |
| 15212 | if iNdEx >= l { |
| 15213 | return io.ErrUnexpectedEOF |
| 15214 | } |
| 15215 | b := dAtA[iNdEx] |
| 15216 | iNdEx++ |
| 15217 | m.ID |= (uint64(b) & 0x7F) << shift |
| 15218 | if b < 0x80 { |
| 15219 | break |
| 15220 | } |
| 15221 | } |
| 15222 | default: |
| 15223 | iNdEx = preIndex |
| 15224 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15225 | if err != nil { |
| 15226 | return err |
| 15227 | } |
| 15228 | if skippy < 0 { |
| 15229 | return ErrInvalidLengthRpc |
| 15230 | } |
| 15231 | if (iNdEx + skippy) > l { |
| 15232 | return io.ErrUnexpectedEOF |
| 15233 | } |
| 15234 | iNdEx += skippy |
| 15235 | } |
| 15236 | } |
| 15237 | |
| 15238 | if iNdEx > l { |
| 15239 | return io.ErrUnexpectedEOF |
| 15240 | } |
| 15241 | return nil |
| 15242 | } |
| 15243 | func (m *MemberRemoveResponse) Unmarshal(dAtA []byte) error { |
| 15244 | l := len(dAtA) |
| 15245 | iNdEx := 0 |
| 15246 | for iNdEx < l { |
| 15247 | preIndex := iNdEx |
| 15248 | var wire uint64 |
| 15249 | for shift := uint(0); ; shift += 7 { |
| 15250 | if shift >= 64 { |
| 15251 | return ErrIntOverflowRpc |
| 15252 | } |
| 15253 | if iNdEx >= l { |
| 15254 | return io.ErrUnexpectedEOF |
| 15255 | } |
| 15256 | b := dAtA[iNdEx] |
| 15257 | iNdEx++ |
| 15258 | wire |= (uint64(b) & 0x7F) << shift |
| 15259 | if b < 0x80 { |
| 15260 | break |
| 15261 | } |
| 15262 | } |
| 15263 | fieldNum := int32(wire >> 3) |
| 15264 | wireType := int(wire & 0x7) |
| 15265 | if wireType == 4 { |
| 15266 | return fmt.Errorf("proto: MemberRemoveResponse: wiretype end group for non-group") |
| 15267 | } |
| 15268 | if fieldNum <= 0 { |
| 15269 | return fmt.Errorf("proto: MemberRemoveResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15270 | } |
| 15271 | switch fieldNum { |
| 15272 | case 1: |
| 15273 | if wireType != 2 { |
| 15274 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 15275 | } |
| 15276 | var msglen int |
| 15277 | for shift := uint(0); ; shift += 7 { |
| 15278 | if shift >= 64 { |
| 15279 | return ErrIntOverflowRpc |
| 15280 | } |
| 15281 | if iNdEx >= l { |
| 15282 | return io.ErrUnexpectedEOF |
| 15283 | } |
| 15284 | b := dAtA[iNdEx] |
| 15285 | iNdEx++ |
| 15286 | msglen |= (int(b) & 0x7F) << shift |
| 15287 | if b < 0x80 { |
| 15288 | break |
| 15289 | } |
| 15290 | } |
| 15291 | if msglen < 0 { |
| 15292 | return ErrInvalidLengthRpc |
| 15293 | } |
| 15294 | postIndex := iNdEx + msglen |
| 15295 | if postIndex > l { |
| 15296 | return io.ErrUnexpectedEOF |
| 15297 | } |
| 15298 | if m.Header == nil { |
| 15299 | m.Header = &ResponseHeader{} |
| 15300 | } |
| 15301 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 15302 | return err |
| 15303 | } |
| 15304 | iNdEx = postIndex |
| 15305 | case 2: |
| 15306 | if wireType != 2 { |
| 15307 | return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) |
| 15308 | } |
| 15309 | var msglen int |
| 15310 | for shift := uint(0); ; shift += 7 { |
| 15311 | if shift >= 64 { |
| 15312 | return ErrIntOverflowRpc |
| 15313 | } |
| 15314 | if iNdEx >= l { |
| 15315 | return io.ErrUnexpectedEOF |
| 15316 | } |
| 15317 | b := dAtA[iNdEx] |
| 15318 | iNdEx++ |
| 15319 | msglen |= (int(b) & 0x7F) << shift |
| 15320 | if b < 0x80 { |
| 15321 | break |
| 15322 | } |
| 15323 | } |
| 15324 | if msglen < 0 { |
| 15325 | return ErrInvalidLengthRpc |
| 15326 | } |
| 15327 | postIndex := iNdEx + msglen |
| 15328 | if postIndex > l { |
| 15329 | return io.ErrUnexpectedEOF |
| 15330 | } |
| 15331 | m.Members = append(m.Members, &Member{}) |
| 15332 | if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 15333 | return err |
| 15334 | } |
| 15335 | iNdEx = postIndex |
| 15336 | default: |
| 15337 | iNdEx = preIndex |
| 15338 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15339 | if err != nil { |
| 15340 | return err |
| 15341 | } |
| 15342 | if skippy < 0 { |
| 15343 | return ErrInvalidLengthRpc |
| 15344 | } |
| 15345 | if (iNdEx + skippy) > l { |
| 15346 | return io.ErrUnexpectedEOF |
| 15347 | } |
| 15348 | iNdEx += skippy |
| 15349 | } |
| 15350 | } |
| 15351 | |
| 15352 | if iNdEx > l { |
| 15353 | return io.ErrUnexpectedEOF |
| 15354 | } |
| 15355 | return nil |
| 15356 | } |
| 15357 | func (m *MemberUpdateRequest) Unmarshal(dAtA []byte) error { |
| 15358 | l := len(dAtA) |
| 15359 | iNdEx := 0 |
| 15360 | for iNdEx < l { |
| 15361 | preIndex := iNdEx |
| 15362 | var wire uint64 |
| 15363 | for shift := uint(0); ; shift += 7 { |
| 15364 | if shift >= 64 { |
| 15365 | return ErrIntOverflowRpc |
| 15366 | } |
| 15367 | if iNdEx >= l { |
| 15368 | return io.ErrUnexpectedEOF |
| 15369 | } |
| 15370 | b := dAtA[iNdEx] |
| 15371 | iNdEx++ |
| 15372 | wire |= (uint64(b) & 0x7F) << shift |
| 15373 | if b < 0x80 { |
| 15374 | break |
| 15375 | } |
| 15376 | } |
| 15377 | fieldNum := int32(wire >> 3) |
| 15378 | wireType := int(wire & 0x7) |
| 15379 | if wireType == 4 { |
| 15380 | return fmt.Errorf("proto: MemberUpdateRequest: wiretype end group for non-group") |
| 15381 | } |
| 15382 | if fieldNum <= 0 { |
| 15383 | return fmt.Errorf("proto: MemberUpdateRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15384 | } |
| 15385 | switch fieldNum { |
| 15386 | case 1: |
| 15387 | if wireType != 0 { |
| 15388 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 15389 | } |
| 15390 | m.ID = 0 |
| 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 | m.ID |= (uint64(b) & 0x7F) << shift |
| 15401 | if b < 0x80 { |
| 15402 | break |
| 15403 | } |
| 15404 | } |
| 15405 | case 2: |
| 15406 | if wireType != 2 { |
| 15407 | return fmt.Errorf("proto: wrong wireType = %d for field PeerURLs", wireType) |
| 15408 | } |
| 15409 | var stringLen uint64 |
| 15410 | for shift := uint(0); ; shift += 7 { |
| 15411 | if shift >= 64 { |
| 15412 | return ErrIntOverflowRpc |
| 15413 | } |
| 15414 | if iNdEx >= l { |
| 15415 | return io.ErrUnexpectedEOF |
| 15416 | } |
| 15417 | b := dAtA[iNdEx] |
| 15418 | iNdEx++ |
| 15419 | stringLen |= (uint64(b) & 0x7F) << shift |
| 15420 | if b < 0x80 { |
| 15421 | break |
| 15422 | } |
| 15423 | } |
| 15424 | intStringLen := int(stringLen) |
| 15425 | if intStringLen < 0 { |
| 15426 | return ErrInvalidLengthRpc |
| 15427 | } |
| 15428 | postIndex := iNdEx + intStringLen |
| 15429 | if postIndex > l { |
| 15430 | return io.ErrUnexpectedEOF |
| 15431 | } |
| 15432 | m.PeerURLs = append(m.PeerURLs, string(dAtA[iNdEx:postIndex])) |
| 15433 | iNdEx = postIndex |
| 15434 | default: |
| 15435 | iNdEx = preIndex |
| 15436 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15437 | if err != nil { |
| 15438 | return err |
| 15439 | } |
| 15440 | if skippy < 0 { |
| 15441 | return ErrInvalidLengthRpc |
| 15442 | } |
| 15443 | if (iNdEx + skippy) > l { |
| 15444 | return io.ErrUnexpectedEOF |
| 15445 | } |
| 15446 | iNdEx += skippy |
| 15447 | } |
| 15448 | } |
| 15449 | |
| 15450 | if iNdEx > l { |
| 15451 | return io.ErrUnexpectedEOF |
| 15452 | } |
| 15453 | return nil |
| 15454 | } |
| 15455 | func (m *MemberUpdateResponse) Unmarshal(dAtA []byte) error { |
| 15456 | l := len(dAtA) |
| 15457 | iNdEx := 0 |
| 15458 | for iNdEx < l { |
| 15459 | preIndex := iNdEx |
| 15460 | var wire uint64 |
| 15461 | for shift := uint(0); ; shift += 7 { |
| 15462 | if shift >= 64 { |
| 15463 | return ErrIntOverflowRpc |
| 15464 | } |
| 15465 | if iNdEx >= l { |
| 15466 | return io.ErrUnexpectedEOF |
| 15467 | } |
| 15468 | b := dAtA[iNdEx] |
| 15469 | iNdEx++ |
| 15470 | wire |= (uint64(b) & 0x7F) << shift |
| 15471 | if b < 0x80 { |
| 15472 | break |
| 15473 | } |
| 15474 | } |
| 15475 | fieldNum := int32(wire >> 3) |
| 15476 | wireType := int(wire & 0x7) |
| 15477 | if wireType == 4 { |
| 15478 | return fmt.Errorf("proto: MemberUpdateResponse: wiretype end group for non-group") |
| 15479 | } |
| 15480 | if fieldNum <= 0 { |
| 15481 | return fmt.Errorf("proto: MemberUpdateResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15482 | } |
| 15483 | switch fieldNum { |
| 15484 | case 1: |
| 15485 | if wireType != 2 { |
| 15486 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 15487 | } |
| 15488 | var msglen int |
| 15489 | for shift := uint(0); ; shift += 7 { |
| 15490 | if shift >= 64 { |
| 15491 | return ErrIntOverflowRpc |
| 15492 | } |
| 15493 | if iNdEx >= l { |
| 15494 | return io.ErrUnexpectedEOF |
| 15495 | } |
| 15496 | b := dAtA[iNdEx] |
| 15497 | iNdEx++ |
| 15498 | msglen |= (int(b) & 0x7F) << shift |
| 15499 | if b < 0x80 { |
| 15500 | break |
| 15501 | } |
| 15502 | } |
| 15503 | if msglen < 0 { |
| 15504 | return ErrInvalidLengthRpc |
| 15505 | } |
| 15506 | postIndex := iNdEx + msglen |
| 15507 | if postIndex > l { |
| 15508 | return io.ErrUnexpectedEOF |
| 15509 | } |
| 15510 | if m.Header == nil { |
| 15511 | m.Header = &ResponseHeader{} |
| 15512 | } |
| 15513 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 15514 | return err |
| 15515 | } |
| 15516 | iNdEx = postIndex |
| 15517 | case 2: |
| 15518 | if wireType != 2 { |
| 15519 | return fmt.Errorf("proto: wrong wireType = %d for field Members", 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 | m.Members = append(m.Members, &Member{}) |
| 15544 | if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 15545 | return err |
| 15546 | } |
| 15547 | iNdEx = postIndex |
| 15548 | default: |
| 15549 | iNdEx = preIndex |
| 15550 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15551 | if err != nil { |
| 15552 | return err |
| 15553 | } |
| 15554 | if skippy < 0 { |
| 15555 | return ErrInvalidLengthRpc |
| 15556 | } |
| 15557 | if (iNdEx + skippy) > l { |
| 15558 | return io.ErrUnexpectedEOF |
| 15559 | } |
| 15560 | iNdEx += skippy |
| 15561 | } |
| 15562 | } |
| 15563 | |
| 15564 | if iNdEx > l { |
| 15565 | return io.ErrUnexpectedEOF |
| 15566 | } |
| 15567 | return nil |
| 15568 | } |
| 15569 | func (m *MemberListRequest) Unmarshal(dAtA []byte) error { |
| 15570 | l := len(dAtA) |
| 15571 | iNdEx := 0 |
| 15572 | for iNdEx < l { |
| 15573 | preIndex := iNdEx |
| 15574 | var wire uint64 |
| 15575 | for shift := uint(0); ; shift += 7 { |
| 15576 | if shift >= 64 { |
| 15577 | return ErrIntOverflowRpc |
| 15578 | } |
| 15579 | if iNdEx >= l { |
| 15580 | return io.ErrUnexpectedEOF |
| 15581 | } |
| 15582 | b := dAtA[iNdEx] |
| 15583 | iNdEx++ |
| 15584 | wire |= (uint64(b) & 0x7F) << shift |
| 15585 | if b < 0x80 { |
| 15586 | break |
| 15587 | } |
| 15588 | } |
| 15589 | fieldNum := int32(wire >> 3) |
| 15590 | wireType := int(wire & 0x7) |
| 15591 | if wireType == 4 { |
| 15592 | return fmt.Errorf("proto: MemberListRequest: wiretype end group for non-group") |
| 15593 | } |
| 15594 | if fieldNum <= 0 { |
| 15595 | return fmt.Errorf("proto: MemberListRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15596 | } |
| 15597 | switch fieldNum { |
| 15598 | default: |
| 15599 | iNdEx = preIndex |
| 15600 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15601 | if err != nil { |
| 15602 | return err |
| 15603 | } |
| 15604 | if skippy < 0 { |
| 15605 | return ErrInvalidLengthRpc |
| 15606 | } |
| 15607 | if (iNdEx + skippy) > l { |
| 15608 | return io.ErrUnexpectedEOF |
| 15609 | } |
| 15610 | iNdEx += skippy |
| 15611 | } |
| 15612 | } |
| 15613 | |
| 15614 | if iNdEx > l { |
| 15615 | return io.ErrUnexpectedEOF |
| 15616 | } |
| 15617 | return nil |
| 15618 | } |
| 15619 | func (m *MemberListResponse) Unmarshal(dAtA []byte) error { |
| 15620 | l := len(dAtA) |
| 15621 | iNdEx := 0 |
| 15622 | for iNdEx < l { |
| 15623 | preIndex := iNdEx |
| 15624 | var wire uint64 |
| 15625 | for shift := uint(0); ; shift += 7 { |
| 15626 | if shift >= 64 { |
| 15627 | return ErrIntOverflowRpc |
| 15628 | } |
| 15629 | if iNdEx >= l { |
| 15630 | return io.ErrUnexpectedEOF |
| 15631 | } |
| 15632 | b := dAtA[iNdEx] |
| 15633 | iNdEx++ |
| 15634 | wire |= (uint64(b) & 0x7F) << shift |
| 15635 | if b < 0x80 { |
| 15636 | break |
| 15637 | } |
| 15638 | } |
| 15639 | fieldNum := int32(wire >> 3) |
| 15640 | wireType := int(wire & 0x7) |
| 15641 | if wireType == 4 { |
| 15642 | return fmt.Errorf("proto: MemberListResponse: wiretype end group for non-group") |
| 15643 | } |
| 15644 | if fieldNum <= 0 { |
| 15645 | return fmt.Errorf("proto: MemberListResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15646 | } |
| 15647 | switch fieldNum { |
| 15648 | case 1: |
| 15649 | if wireType != 2 { |
| 15650 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 15651 | } |
| 15652 | var msglen int |
| 15653 | for shift := uint(0); ; shift += 7 { |
| 15654 | if shift >= 64 { |
| 15655 | return ErrIntOverflowRpc |
| 15656 | } |
| 15657 | if iNdEx >= l { |
| 15658 | return io.ErrUnexpectedEOF |
| 15659 | } |
| 15660 | b := dAtA[iNdEx] |
| 15661 | iNdEx++ |
| 15662 | msglen |= (int(b) & 0x7F) << shift |
| 15663 | if b < 0x80 { |
| 15664 | break |
| 15665 | } |
| 15666 | } |
| 15667 | if msglen < 0 { |
| 15668 | return ErrInvalidLengthRpc |
| 15669 | } |
| 15670 | postIndex := iNdEx + msglen |
| 15671 | if postIndex > l { |
| 15672 | return io.ErrUnexpectedEOF |
| 15673 | } |
| 15674 | if m.Header == nil { |
| 15675 | m.Header = &ResponseHeader{} |
| 15676 | } |
| 15677 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 15678 | return err |
| 15679 | } |
| 15680 | iNdEx = postIndex |
| 15681 | case 2: |
| 15682 | if wireType != 2 { |
| 15683 | return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) |
| 15684 | } |
| 15685 | var msglen int |
| 15686 | for shift := uint(0); ; shift += 7 { |
| 15687 | if shift >= 64 { |
| 15688 | return ErrIntOverflowRpc |
| 15689 | } |
| 15690 | if iNdEx >= l { |
| 15691 | return io.ErrUnexpectedEOF |
| 15692 | } |
| 15693 | b := dAtA[iNdEx] |
| 15694 | iNdEx++ |
| 15695 | msglen |= (int(b) & 0x7F) << shift |
| 15696 | if b < 0x80 { |
| 15697 | break |
| 15698 | } |
| 15699 | } |
| 15700 | if msglen < 0 { |
| 15701 | return ErrInvalidLengthRpc |
| 15702 | } |
| 15703 | postIndex := iNdEx + msglen |
| 15704 | if postIndex > l { |
| 15705 | return io.ErrUnexpectedEOF |
| 15706 | } |
| 15707 | m.Members = append(m.Members, &Member{}) |
| 15708 | if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 15709 | return err |
| 15710 | } |
| 15711 | iNdEx = postIndex |
| 15712 | default: |
| 15713 | iNdEx = preIndex |
| 15714 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15715 | if err != nil { |
| 15716 | return err |
| 15717 | } |
| 15718 | if skippy < 0 { |
| 15719 | return ErrInvalidLengthRpc |
| 15720 | } |
| 15721 | if (iNdEx + skippy) > l { |
| 15722 | return io.ErrUnexpectedEOF |
| 15723 | } |
| 15724 | iNdEx += skippy |
| 15725 | } |
| 15726 | } |
| 15727 | |
| 15728 | if iNdEx > l { |
| 15729 | return io.ErrUnexpectedEOF |
| 15730 | } |
| 15731 | return nil |
| 15732 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 15733 | func (m *MemberPromoteRequest) Unmarshal(dAtA []byte) error { |
| 15734 | l := len(dAtA) |
| 15735 | iNdEx := 0 |
| 15736 | for iNdEx < l { |
| 15737 | preIndex := iNdEx |
| 15738 | var wire uint64 |
| 15739 | for shift := uint(0); ; shift += 7 { |
| 15740 | if shift >= 64 { |
| 15741 | return ErrIntOverflowRpc |
| 15742 | } |
| 15743 | if iNdEx >= l { |
| 15744 | return io.ErrUnexpectedEOF |
| 15745 | } |
| 15746 | b := dAtA[iNdEx] |
| 15747 | iNdEx++ |
| 15748 | wire |= (uint64(b) & 0x7F) << shift |
| 15749 | if b < 0x80 { |
| 15750 | break |
| 15751 | } |
| 15752 | } |
| 15753 | fieldNum := int32(wire >> 3) |
| 15754 | wireType := int(wire & 0x7) |
| 15755 | if wireType == 4 { |
| 15756 | return fmt.Errorf("proto: MemberPromoteRequest: wiretype end group for non-group") |
| 15757 | } |
| 15758 | if fieldNum <= 0 { |
| 15759 | return fmt.Errorf("proto: MemberPromoteRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15760 | } |
| 15761 | switch fieldNum { |
| 15762 | case 1: |
| 15763 | if wireType != 0 { |
| 15764 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 15765 | } |
| 15766 | m.ID = 0 |
| 15767 | for shift := uint(0); ; shift += 7 { |
| 15768 | if shift >= 64 { |
| 15769 | return ErrIntOverflowRpc |
| 15770 | } |
| 15771 | if iNdEx >= l { |
| 15772 | return io.ErrUnexpectedEOF |
| 15773 | } |
| 15774 | b := dAtA[iNdEx] |
| 15775 | iNdEx++ |
| 15776 | m.ID |= (uint64(b) & 0x7F) << shift |
| 15777 | if b < 0x80 { |
| 15778 | break |
| 15779 | } |
| 15780 | } |
| 15781 | default: |
| 15782 | iNdEx = preIndex |
| 15783 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15784 | if err != nil { |
| 15785 | return err |
| 15786 | } |
| 15787 | if skippy < 0 { |
| 15788 | return ErrInvalidLengthRpc |
| 15789 | } |
| 15790 | if (iNdEx + skippy) > l { |
| 15791 | return io.ErrUnexpectedEOF |
| 15792 | } |
| 15793 | iNdEx += skippy |
| 15794 | } |
| 15795 | } |
| 15796 | |
| 15797 | if iNdEx > l { |
| 15798 | return io.ErrUnexpectedEOF |
| 15799 | } |
| 15800 | return nil |
| 15801 | } |
| 15802 | func (m *MemberPromoteResponse) Unmarshal(dAtA []byte) error { |
| 15803 | l := len(dAtA) |
| 15804 | iNdEx := 0 |
| 15805 | for iNdEx < l { |
| 15806 | preIndex := iNdEx |
| 15807 | var wire uint64 |
| 15808 | for shift := uint(0); ; shift += 7 { |
| 15809 | if shift >= 64 { |
| 15810 | return ErrIntOverflowRpc |
| 15811 | } |
| 15812 | if iNdEx >= l { |
| 15813 | return io.ErrUnexpectedEOF |
| 15814 | } |
| 15815 | b := dAtA[iNdEx] |
| 15816 | iNdEx++ |
| 15817 | wire |= (uint64(b) & 0x7F) << shift |
| 15818 | if b < 0x80 { |
| 15819 | break |
| 15820 | } |
| 15821 | } |
| 15822 | fieldNum := int32(wire >> 3) |
| 15823 | wireType := int(wire & 0x7) |
| 15824 | if wireType == 4 { |
| 15825 | return fmt.Errorf("proto: MemberPromoteResponse: wiretype end group for non-group") |
| 15826 | } |
| 15827 | if fieldNum <= 0 { |
| 15828 | return fmt.Errorf("proto: MemberPromoteResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15829 | } |
| 15830 | switch fieldNum { |
| 15831 | case 1: |
| 15832 | if wireType != 2 { |
| 15833 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 15834 | } |
| 15835 | var msglen int |
| 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 | msglen |= (int(b) & 0x7F) << shift |
| 15846 | if b < 0x80 { |
| 15847 | break |
| 15848 | } |
| 15849 | } |
| 15850 | if msglen < 0 { |
| 15851 | return ErrInvalidLengthRpc |
| 15852 | } |
| 15853 | postIndex := iNdEx + msglen |
| 15854 | if postIndex > l { |
| 15855 | return io.ErrUnexpectedEOF |
| 15856 | } |
| 15857 | if m.Header == nil { |
| 15858 | m.Header = &ResponseHeader{} |
| 15859 | } |
| 15860 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 15861 | return err |
| 15862 | } |
| 15863 | iNdEx = postIndex |
| 15864 | case 2: |
| 15865 | if wireType != 2 { |
| 15866 | return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) |
| 15867 | } |
| 15868 | var msglen int |
| 15869 | for shift := uint(0); ; shift += 7 { |
| 15870 | if shift >= 64 { |
| 15871 | return ErrIntOverflowRpc |
| 15872 | } |
| 15873 | if iNdEx >= l { |
| 15874 | return io.ErrUnexpectedEOF |
| 15875 | } |
| 15876 | b := dAtA[iNdEx] |
| 15877 | iNdEx++ |
| 15878 | msglen |= (int(b) & 0x7F) << shift |
| 15879 | if b < 0x80 { |
| 15880 | break |
| 15881 | } |
| 15882 | } |
| 15883 | if msglen < 0 { |
| 15884 | return ErrInvalidLengthRpc |
| 15885 | } |
| 15886 | postIndex := iNdEx + msglen |
| 15887 | if postIndex > l { |
| 15888 | return io.ErrUnexpectedEOF |
| 15889 | } |
| 15890 | m.Members = append(m.Members, &Member{}) |
| 15891 | if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 15892 | return err |
| 15893 | } |
| 15894 | iNdEx = postIndex |
| 15895 | default: |
| 15896 | iNdEx = preIndex |
| 15897 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15898 | if err != nil { |
| 15899 | return err |
| 15900 | } |
| 15901 | if skippy < 0 { |
| 15902 | return ErrInvalidLengthRpc |
| 15903 | } |
| 15904 | if (iNdEx + skippy) > l { |
| 15905 | return io.ErrUnexpectedEOF |
| 15906 | } |
| 15907 | iNdEx += skippy |
| 15908 | } |
| 15909 | } |
| 15910 | |
| 15911 | if iNdEx > l { |
| 15912 | return io.ErrUnexpectedEOF |
| 15913 | } |
| 15914 | return nil |
| 15915 | } |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 15916 | func (m *DefragmentRequest) Unmarshal(dAtA []byte) error { |
| 15917 | l := len(dAtA) |
| 15918 | iNdEx := 0 |
| 15919 | for iNdEx < l { |
| 15920 | preIndex := iNdEx |
| 15921 | var wire uint64 |
| 15922 | for shift := uint(0); ; shift += 7 { |
| 15923 | if shift >= 64 { |
| 15924 | return ErrIntOverflowRpc |
| 15925 | } |
| 15926 | if iNdEx >= l { |
| 15927 | return io.ErrUnexpectedEOF |
| 15928 | } |
| 15929 | b := dAtA[iNdEx] |
| 15930 | iNdEx++ |
| 15931 | wire |= (uint64(b) & 0x7F) << shift |
| 15932 | if b < 0x80 { |
| 15933 | break |
| 15934 | } |
| 15935 | } |
| 15936 | fieldNum := int32(wire >> 3) |
| 15937 | wireType := int(wire & 0x7) |
| 15938 | if wireType == 4 { |
| 15939 | return fmt.Errorf("proto: DefragmentRequest: wiretype end group for non-group") |
| 15940 | } |
| 15941 | if fieldNum <= 0 { |
| 15942 | return fmt.Errorf("proto: DefragmentRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15943 | } |
| 15944 | switch fieldNum { |
| 15945 | default: |
| 15946 | iNdEx = preIndex |
| 15947 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15948 | if err != nil { |
| 15949 | return err |
| 15950 | } |
| 15951 | if skippy < 0 { |
| 15952 | return ErrInvalidLengthRpc |
| 15953 | } |
| 15954 | if (iNdEx + skippy) > l { |
| 15955 | return io.ErrUnexpectedEOF |
| 15956 | } |
| 15957 | iNdEx += skippy |
| 15958 | } |
| 15959 | } |
| 15960 | |
| 15961 | if iNdEx > l { |
| 15962 | return io.ErrUnexpectedEOF |
| 15963 | } |
| 15964 | return nil |
| 15965 | } |
| 15966 | func (m *DefragmentResponse) Unmarshal(dAtA []byte) error { |
| 15967 | l := len(dAtA) |
| 15968 | iNdEx := 0 |
| 15969 | for iNdEx < l { |
| 15970 | preIndex := iNdEx |
| 15971 | var wire uint64 |
| 15972 | for shift := uint(0); ; shift += 7 { |
| 15973 | if shift >= 64 { |
| 15974 | return ErrIntOverflowRpc |
| 15975 | } |
| 15976 | if iNdEx >= l { |
| 15977 | return io.ErrUnexpectedEOF |
| 15978 | } |
| 15979 | b := dAtA[iNdEx] |
| 15980 | iNdEx++ |
| 15981 | wire |= (uint64(b) & 0x7F) << shift |
| 15982 | if b < 0x80 { |
| 15983 | break |
| 15984 | } |
| 15985 | } |
| 15986 | fieldNum := int32(wire >> 3) |
| 15987 | wireType := int(wire & 0x7) |
| 15988 | if wireType == 4 { |
| 15989 | return fmt.Errorf("proto: DefragmentResponse: wiretype end group for non-group") |
| 15990 | } |
| 15991 | if fieldNum <= 0 { |
| 15992 | return fmt.Errorf("proto: DefragmentResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15993 | } |
| 15994 | switch fieldNum { |
| 15995 | case 1: |
| 15996 | if wireType != 2 { |
| 15997 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 15998 | } |
| 15999 | var msglen int |
| 16000 | for shift := uint(0); ; shift += 7 { |
| 16001 | if shift >= 64 { |
| 16002 | return ErrIntOverflowRpc |
| 16003 | } |
| 16004 | if iNdEx >= l { |
| 16005 | return io.ErrUnexpectedEOF |
| 16006 | } |
| 16007 | b := dAtA[iNdEx] |
| 16008 | iNdEx++ |
| 16009 | msglen |= (int(b) & 0x7F) << shift |
| 16010 | if b < 0x80 { |
| 16011 | break |
| 16012 | } |
| 16013 | } |
| 16014 | if msglen < 0 { |
| 16015 | return ErrInvalidLengthRpc |
| 16016 | } |
| 16017 | postIndex := iNdEx + msglen |
| 16018 | if postIndex > l { |
| 16019 | return io.ErrUnexpectedEOF |
| 16020 | } |
| 16021 | if m.Header == nil { |
| 16022 | m.Header = &ResponseHeader{} |
| 16023 | } |
| 16024 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 16025 | return err |
| 16026 | } |
| 16027 | iNdEx = postIndex |
| 16028 | default: |
| 16029 | iNdEx = preIndex |
| 16030 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16031 | if err != nil { |
| 16032 | return err |
| 16033 | } |
| 16034 | if skippy < 0 { |
| 16035 | return ErrInvalidLengthRpc |
| 16036 | } |
| 16037 | if (iNdEx + skippy) > l { |
| 16038 | return io.ErrUnexpectedEOF |
| 16039 | } |
| 16040 | iNdEx += skippy |
| 16041 | } |
| 16042 | } |
| 16043 | |
| 16044 | if iNdEx > l { |
| 16045 | return io.ErrUnexpectedEOF |
| 16046 | } |
| 16047 | return nil |
| 16048 | } |
| 16049 | func (m *MoveLeaderRequest) Unmarshal(dAtA []byte) error { |
| 16050 | l := len(dAtA) |
| 16051 | iNdEx := 0 |
| 16052 | for iNdEx < l { |
| 16053 | preIndex := iNdEx |
| 16054 | var wire uint64 |
| 16055 | for shift := uint(0); ; shift += 7 { |
| 16056 | if shift >= 64 { |
| 16057 | return ErrIntOverflowRpc |
| 16058 | } |
| 16059 | if iNdEx >= l { |
| 16060 | return io.ErrUnexpectedEOF |
| 16061 | } |
| 16062 | b := dAtA[iNdEx] |
| 16063 | iNdEx++ |
| 16064 | wire |= (uint64(b) & 0x7F) << shift |
| 16065 | if b < 0x80 { |
| 16066 | break |
| 16067 | } |
| 16068 | } |
| 16069 | fieldNum := int32(wire >> 3) |
| 16070 | wireType := int(wire & 0x7) |
| 16071 | if wireType == 4 { |
| 16072 | return fmt.Errorf("proto: MoveLeaderRequest: wiretype end group for non-group") |
| 16073 | } |
| 16074 | if fieldNum <= 0 { |
| 16075 | return fmt.Errorf("proto: MoveLeaderRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16076 | } |
| 16077 | switch fieldNum { |
| 16078 | case 1: |
| 16079 | if wireType != 0 { |
| 16080 | return fmt.Errorf("proto: wrong wireType = %d for field TargetID", wireType) |
| 16081 | } |
| 16082 | m.TargetID = 0 |
| 16083 | for shift := uint(0); ; shift += 7 { |
| 16084 | if shift >= 64 { |
| 16085 | return ErrIntOverflowRpc |
| 16086 | } |
| 16087 | if iNdEx >= l { |
| 16088 | return io.ErrUnexpectedEOF |
| 16089 | } |
| 16090 | b := dAtA[iNdEx] |
| 16091 | iNdEx++ |
| 16092 | m.TargetID |= (uint64(b) & 0x7F) << shift |
| 16093 | if b < 0x80 { |
| 16094 | break |
| 16095 | } |
| 16096 | } |
| 16097 | default: |
| 16098 | iNdEx = preIndex |
| 16099 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16100 | if err != nil { |
| 16101 | return err |
| 16102 | } |
| 16103 | if skippy < 0 { |
| 16104 | return ErrInvalidLengthRpc |
| 16105 | } |
| 16106 | if (iNdEx + skippy) > l { |
| 16107 | return io.ErrUnexpectedEOF |
| 16108 | } |
| 16109 | iNdEx += skippy |
| 16110 | } |
| 16111 | } |
| 16112 | |
| 16113 | if iNdEx > l { |
| 16114 | return io.ErrUnexpectedEOF |
| 16115 | } |
| 16116 | return nil |
| 16117 | } |
| 16118 | func (m *MoveLeaderResponse) Unmarshal(dAtA []byte) error { |
| 16119 | l := len(dAtA) |
| 16120 | iNdEx := 0 |
| 16121 | for iNdEx < l { |
| 16122 | preIndex := iNdEx |
| 16123 | var wire uint64 |
| 16124 | for shift := uint(0); ; shift += 7 { |
| 16125 | if shift >= 64 { |
| 16126 | return ErrIntOverflowRpc |
| 16127 | } |
| 16128 | if iNdEx >= l { |
| 16129 | return io.ErrUnexpectedEOF |
| 16130 | } |
| 16131 | b := dAtA[iNdEx] |
| 16132 | iNdEx++ |
| 16133 | wire |= (uint64(b) & 0x7F) << shift |
| 16134 | if b < 0x80 { |
| 16135 | break |
| 16136 | } |
| 16137 | } |
| 16138 | fieldNum := int32(wire >> 3) |
| 16139 | wireType := int(wire & 0x7) |
| 16140 | if wireType == 4 { |
| 16141 | return fmt.Errorf("proto: MoveLeaderResponse: wiretype end group for non-group") |
| 16142 | } |
| 16143 | if fieldNum <= 0 { |
| 16144 | return fmt.Errorf("proto: MoveLeaderResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16145 | } |
| 16146 | switch fieldNum { |
| 16147 | case 1: |
| 16148 | if wireType != 2 { |
| 16149 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 16150 | } |
| 16151 | var msglen int |
| 16152 | for shift := uint(0); ; shift += 7 { |
| 16153 | if shift >= 64 { |
| 16154 | return ErrIntOverflowRpc |
| 16155 | } |
| 16156 | if iNdEx >= l { |
| 16157 | return io.ErrUnexpectedEOF |
| 16158 | } |
| 16159 | b := dAtA[iNdEx] |
| 16160 | iNdEx++ |
| 16161 | msglen |= (int(b) & 0x7F) << shift |
| 16162 | if b < 0x80 { |
| 16163 | break |
| 16164 | } |
| 16165 | } |
| 16166 | if msglen < 0 { |
| 16167 | return ErrInvalidLengthRpc |
| 16168 | } |
| 16169 | postIndex := iNdEx + msglen |
| 16170 | if postIndex > l { |
| 16171 | return io.ErrUnexpectedEOF |
| 16172 | } |
| 16173 | if m.Header == nil { |
| 16174 | m.Header = &ResponseHeader{} |
| 16175 | } |
| 16176 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 16177 | return err |
| 16178 | } |
| 16179 | iNdEx = postIndex |
| 16180 | default: |
| 16181 | iNdEx = preIndex |
| 16182 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16183 | if err != nil { |
| 16184 | return err |
| 16185 | } |
| 16186 | if skippy < 0 { |
| 16187 | return ErrInvalidLengthRpc |
| 16188 | } |
| 16189 | if (iNdEx + skippy) > l { |
| 16190 | return io.ErrUnexpectedEOF |
| 16191 | } |
| 16192 | iNdEx += skippy |
| 16193 | } |
| 16194 | } |
| 16195 | |
| 16196 | if iNdEx > l { |
| 16197 | return io.ErrUnexpectedEOF |
| 16198 | } |
| 16199 | return nil |
| 16200 | } |
| 16201 | func (m *AlarmRequest) Unmarshal(dAtA []byte) error { |
| 16202 | l := len(dAtA) |
| 16203 | iNdEx := 0 |
| 16204 | for iNdEx < l { |
| 16205 | preIndex := iNdEx |
| 16206 | var wire uint64 |
| 16207 | for shift := uint(0); ; shift += 7 { |
| 16208 | if shift >= 64 { |
| 16209 | return ErrIntOverflowRpc |
| 16210 | } |
| 16211 | if iNdEx >= l { |
| 16212 | return io.ErrUnexpectedEOF |
| 16213 | } |
| 16214 | b := dAtA[iNdEx] |
| 16215 | iNdEx++ |
| 16216 | wire |= (uint64(b) & 0x7F) << shift |
| 16217 | if b < 0x80 { |
| 16218 | break |
| 16219 | } |
| 16220 | } |
| 16221 | fieldNum := int32(wire >> 3) |
| 16222 | wireType := int(wire & 0x7) |
| 16223 | if wireType == 4 { |
| 16224 | return fmt.Errorf("proto: AlarmRequest: wiretype end group for non-group") |
| 16225 | } |
| 16226 | if fieldNum <= 0 { |
| 16227 | return fmt.Errorf("proto: AlarmRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16228 | } |
| 16229 | switch fieldNum { |
| 16230 | case 1: |
| 16231 | if wireType != 0 { |
| 16232 | return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) |
| 16233 | } |
| 16234 | m.Action = 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.Action |= (AlarmRequest_AlarmAction(b) & 0x7F) << shift |
| 16245 | if b < 0x80 { |
| 16246 | break |
| 16247 | } |
| 16248 | } |
| 16249 | case 2: |
| 16250 | if wireType != 0 { |
| 16251 | return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType) |
| 16252 | } |
| 16253 | m.MemberID = 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.MemberID |= (uint64(b) & 0x7F) << shift |
| 16264 | if b < 0x80 { |
| 16265 | break |
| 16266 | } |
| 16267 | } |
| 16268 | case 3: |
| 16269 | if wireType != 0 { |
| 16270 | return fmt.Errorf("proto: wrong wireType = %d for field Alarm", wireType) |
| 16271 | } |
| 16272 | m.Alarm = 0 |
| 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 | m.Alarm |= (AlarmType(b) & 0x7F) << shift |
| 16283 | if b < 0x80 { |
| 16284 | break |
| 16285 | } |
| 16286 | } |
| 16287 | default: |
| 16288 | iNdEx = preIndex |
| 16289 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16290 | if err != nil { |
| 16291 | return err |
| 16292 | } |
| 16293 | if skippy < 0 { |
| 16294 | return ErrInvalidLengthRpc |
| 16295 | } |
| 16296 | if (iNdEx + skippy) > l { |
| 16297 | return io.ErrUnexpectedEOF |
| 16298 | } |
| 16299 | iNdEx += skippy |
| 16300 | } |
| 16301 | } |
| 16302 | |
| 16303 | if iNdEx > l { |
| 16304 | return io.ErrUnexpectedEOF |
| 16305 | } |
| 16306 | return nil |
| 16307 | } |
| 16308 | func (m *AlarmMember) Unmarshal(dAtA []byte) error { |
| 16309 | l := len(dAtA) |
| 16310 | iNdEx := 0 |
| 16311 | for iNdEx < l { |
| 16312 | preIndex := iNdEx |
| 16313 | var wire uint64 |
| 16314 | for shift := uint(0); ; shift += 7 { |
| 16315 | if shift >= 64 { |
| 16316 | return ErrIntOverflowRpc |
| 16317 | } |
| 16318 | if iNdEx >= l { |
| 16319 | return io.ErrUnexpectedEOF |
| 16320 | } |
| 16321 | b := dAtA[iNdEx] |
| 16322 | iNdEx++ |
| 16323 | wire |= (uint64(b) & 0x7F) << shift |
| 16324 | if b < 0x80 { |
| 16325 | break |
| 16326 | } |
| 16327 | } |
| 16328 | fieldNum := int32(wire >> 3) |
| 16329 | wireType := int(wire & 0x7) |
| 16330 | if wireType == 4 { |
| 16331 | return fmt.Errorf("proto: AlarmMember: wiretype end group for non-group") |
| 16332 | } |
| 16333 | if fieldNum <= 0 { |
| 16334 | return fmt.Errorf("proto: AlarmMember: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16335 | } |
| 16336 | switch fieldNum { |
| 16337 | case 1: |
| 16338 | if wireType != 0 { |
| 16339 | return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType) |
| 16340 | } |
| 16341 | m.MemberID = 0 |
| 16342 | for shift := uint(0); ; shift += 7 { |
| 16343 | if shift >= 64 { |
| 16344 | return ErrIntOverflowRpc |
| 16345 | } |
| 16346 | if iNdEx >= l { |
| 16347 | return io.ErrUnexpectedEOF |
| 16348 | } |
| 16349 | b := dAtA[iNdEx] |
| 16350 | iNdEx++ |
| 16351 | m.MemberID |= (uint64(b) & 0x7F) << shift |
| 16352 | if b < 0x80 { |
| 16353 | break |
| 16354 | } |
| 16355 | } |
| 16356 | case 2: |
| 16357 | if wireType != 0 { |
| 16358 | return fmt.Errorf("proto: wrong wireType = %d for field Alarm", wireType) |
| 16359 | } |
| 16360 | m.Alarm = 0 |
| 16361 | for shift := uint(0); ; shift += 7 { |
| 16362 | if shift >= 64 { |
| 16363 | return ErrIntOverflowRpc |
| 16364 | } |
| 16365 | if iNdEx >= l { |
| 16366 | return io.ErrUnexpectedEOF |
| 16367 | } |
| 16368 | b := dAtA[iNdEx] |
| 16369 | iNdEx++ |
| 16370 | m.Alarm |= (AlarmType(b) & 0x7F) << shift |
| 16371 | if b < 0x80 { |
| 16372 | break |
| 16373 | } |
| 16374 | } |
| 16375 | default: |
| 16376 | iNdEx = preIndex |
| 16377 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16378 | if err != nil { |
| 16379 | return err |
| 16380 | } |
| 16381 | if skippy < 0 { |
| 16382 | return ErrInvalidLengthRpc |
| 16383 | } |
| 16384 | if (iNdEx + skippy) > l { |
| 16385 | return io.ErrUnexpectedEOF |
| 16386 | } |
| 16387 | iNdEx += skippy |
| 16388 | } |
| 16389 | } |
| 16390 | |
| 16391 | if iNdEx > l { |
| 16392 | return io.ErrUnexpectedEOF |
| 16393 | } |
| 16394 | return nil |
| 16395 | } |
| 16396 | func (m *AlarmResponse) Unmarshal(dAtA []byte) error { |
| 16397 | l := len(dAtA) |
| 16398 | iNdEx := 0 |
| 16399 | for iNdEx < l { |
| 16400 | preIndex := iNdEx |
| 16401 | var wire uint64 |
| 16402 | for shift := uint(0); ; shift += 7 { |
| 16403 | if shift >= 64 { |
| 16404 | return ErrIntOverflowRpc |
| 16405 | } |
| 16406 | if iNdEx >= l { |
| 16407 | return io.ErrUnexpectedEOF |
| 16408 | } |
| 16409 | b := dAtA[iNdEx] |
| 16410 | iNdEx++ |
| 16411 | wire |= (uint64(b) & 0x7F) << shift |
| 16412 | if b < 0x80 { |
| 16413 | break |
| 16414 | } |
| 16415 | } |
| 16416 | fieldNum := int32(wire >> 3) |
| 16417 | wireType := int(wire & 0x7) |
| 16418 | if wireType == 4 { |
| 16419 | return fmt.Errorf("proto: AlarmResponse: wiretype end group for non-group") |
| 16420 | } |
| 16421 | if fieldNum <= 0 { |
| 16422 | return fmt.Errorf("proto: AlarmResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16423 | } |
| 16424 | switch fieldNum { |
| 16425 | case 1: |
| 16426 | if wireType != 2 { |
| 16427 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 16428 | } |
| 16429 | var msglen int |
| 16430 | for shift := uint(0); ; shift += 7 { |
| 16431 | if shift >= 64 { |
| 16432 | return ErrIntOverflowRpc |
| 16433 | } |
| 16434 | if iNdEx >= l { |
| 16435 | return io.ErrUnexpectedEOF |
| 16436 | } |
| 16437 | b := dAtA[iNdEx] |
| 16438 | iNdEx++ |
| 16439 | msglen |= (int(b) & 0x7F) << shift |
| 16440 | if b < 0x80 { |
| 16441 | break |
| 16442 | } |
| 16443 | } |
| 16444 | if msglen < 0 { |
| 16445 | return ErrInvalidLengthRpc |
| 16446 | } |
| 16447 | postIndex := iNdEx + msglen |
| 16448 | if postIndex > l { |
| 16449 | return io.ErrUnexpectedEOF |
| 16450 | } |
| 16451 | if m.Header == nil { |
| 16452 | m.Header = &ResponseHeader{} |
| 16453 | } |
| 16454 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 16455 | return err |
| 16456 | } |
| 16457 | iNdEx = postIndex |
| 16458 | case 2: |
| 16459 | if wireType != 2 { |
| 16460 | return fmt.Errorf("proto: wrong wireType = %d for field Alarms", wireType) |
| 16461 | } |
| 16462 | var msglen int |
| 16463 | for shift := uint(0); ; shift += 7 { |
| 16464 | if shift >= 64 { |
| 16465 | return ErrIntOverflowRpc |
| 16466 | } |
| 16467 | if iNdEx >= l { |
| 16468 | return io.ErrUnexpectedEOF |
| 16469 | } |
| 16470 | b := dAtA[iNdEx] |
| 16471 | iNdEx++ |
| 16472 | msglen |= (int(b) & 0x7F) << shift |
| 16473 | if b < 0x80 { |
| 16474 | break |
| 16475 | } |
| 16476 | } |
| 16477 | if msglen < 0 { |
| 16478 | return ErrInvalidLengthRpc |
| 16479 | } |
| 16480 | postIndex := iNdEx + msglen |
| 16481 | if postIndex > l { |
| 16482 | return io.ErrUnexpectedEOF |
| 16483 | } |
| 16484 | m.Alarms = append(m.Alarms, &AlarmMember{}) |
| 16485 | if err := m.Alarms[len(m.Alarms)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 16486 | return err |
| 16487 | } |
| 16488 | iNdEx = postIndex |
| 16489 | default: |
| 16490 | iNdEx = preIndex |
| 16491 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16492 | if err != nil { |
| 16493 | return err |
| 16494 | } |
| 16495 | if skippy < 0 { |
| 16496 | return ErrInvalidLengthRpc |
| 16497 | } |
| 16498 | if (iNdEx + skippy) > l { |
| 16499 | return io.ErrUnexpectedEOF |
| 16500 | } |
| 16501 | iNdEx += skippy |
| 16502 | } |
| 16503 | } |
| 16504 | |
| 16505 | if iNdEx > l { |
| 16506 | return io.ErrUnexpectedEOF |
| 16507 | } |
| 16508 | return nil |
| 16509 | } |
| 16510 | func (m *StatusRequest) Unmarshal(dAtA []byte) error { |
| 16511 | l := len(dAtA) |
| 16512 | iNdEx := 0 |
| 16513 | for iNdEx < l { |
| 16514 | preIndex := iNdEx |
| 16515 | var wire uint64 |
| 16516 | for shift := uint(0); ; shift += 7 { |
| 16517 | if shift >= 64 { |
| 16518 | return ErrIntOverflowRpc |
| 16519 | } |
| 16520 | if iNdEx >= l { |
| 16521 | return io.ErrUnexpectedEOF |
| 16522 | } |
| 16523 | b := dAtA[iNdEx] |
| 16524 | iNdEx++ |
| 16525 | wire |= (uint64(b) & 0x7F) << shift |
| 16526 | if b < 0x80 { |
| 16527 | break |
| 16528 | } |
| 16529 | } |
| 16530 | fieldNum := int32(wire >> 3) |
| 16531 | wireType := int(wire & 0x7) |
| 16532 | if wireType == 4 { |
| 16533 | return fmt.Errorf("proto: StatusRequest: wiretype end group for non-group") |
| 16534 | } |
| 16535 | if fieldNum <= 0 { |
| 16536 | return fmt.Errorf("proto: StatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16537 | } |
| 16538 | switch fieldNum { |
| 16539 | default: |
| 16540 | iNdEx = preIndex |
| 16541 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16542 | if err != nil { |
| 16543 | return err |
| 16544 | } |
| 16545 | if skippy < 0 { |
| 16546 | return ErrInvalidLengthRpc |
| 16547 | } |
| 16548 | if (iNdEx + skippy) > l { |
| 16549 | return io.ErrUnexpectedEOF |
| 16550 | } |
| 16551 | iNdEx += skippy |
| 16552 | } |
| 16553 | } |
| 16554 | |
| 16555 | if iNdEx > l { |
| 16556 | return io.ErrUnexpectedEOF |
| 16557 | } |
| 16558 | return nil |
| 16559 | } |
| 16560 | func (m *StatusResponse) Unmarshal(dAtA []byte) error { |
| 16561 | l := len(dAtA) |
| 16562 | iNdEx := 0 |
| 16563 | for iNdEx < l { |
| 16564 | preIndex := iNdEx |
| 16565 | var wire uint64 |
| 16566 | for shift := uint(0); ; shift += 7 { |
| 16567 | if shift >= 64 { |
| 16568 | return ErrIntOverflowRpc |
| 16569 | } |
| 16570 | if iNdEx >= l { |
| 16571 | return io.ErrUnexpectedEOF |
| 16572 | } |
| 16573 | b := dAtA[iNdEx] |
| 16574 | iNdEx++ |
| 16575 | wire |= (uint64(b) & 0x7F) << shift |
| 16576 | if b < 0x80 { |
| 16577 | break |
| 16578 | } |
| 16579 | } |
| 16580 | fieldNum := int32(wire >> 3) |
| 16581 | wireType := int(wire & 0x7) |
| 16582 | if wireType == 4 { |
| 16583 | return fmt.Errorf("proto: StatusResponse: wiretype end group for non-group") |
| 16584 | } |
| 16585 | if fieldNum <= 0 { |
| 16586 | return fmt.Errorf("proto: StatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16587 | } |
| 16588 | switch fieldNum { |
| 16589 | case 1: |
| 16590 | if wireType != 2 { |
| 16591 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 16592 | } |
| 16593 | var msglen int |
| 16594 | for shift := uint(0); ; shift += 7 { |
| 16595 | if shift >= 64 { |
| 16596 | return ErrIntOverflowRpc |
| 16597 | } |
| 16598 | if iNdEx >= l { |
| 16599 | return io.ErrUnexpectedEOF |
| 16600 | } |
| 16601 | b := dAtA[iNdEx] |
| 16602 | iNdEx++ |
| 16603 | msglen |= (int(b) & 0x7F) << shift |
| 16604 | if b < 0x80 { |
| 16605 | break |
| 16606 | } |
| 16607 | } |
| 16608 | if msglen < 0 { |
| 16609 | return ErrInvalidLengthRpc |
| 16610 | } |
| 16611 | postIndex := iNdEx + msglen |
| 16612 | if postIndex > l { |
| 16613 | return io.ErrUnexpectedEOF |
| 16614 | } |
| 16615 | if m.Header == nil { |
| 16616 | m.Header = &ResponseHeader{} |
| 16617 | } |
| 16618 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 16619 | return err |
| 16620 | } |
| 16621 | iNdEx = postIndex |
| 16622 | case 2: |
| 16623 | if wireType != 2 { |
| 16624 | return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) |
| 16625 | } |
| 16626 | var stringLen uint64 |
| 16627 | for shift := uint(0); ; shift += 7 { |
| 16628 | if shift >= 64 { |
| 16629 | return ErrIntOverflowRpc |
| 16630 | } |
| 16631 | if iNdEx >= l { |
| 16632 | return io.ErrUnexpectedEOF |
| 16633 | } |
| 16634 | b := dAtA[iNdEx] |
| 16635 | iNdEx++ |
| 16636 | stringLen |= (uint64(b) & 0x7F) << shift |
| 16637 | if b < 0x80 { |
| 16638 | break |
| 16639 | } |
| 16640 | } |
| 16641 | intStringLen := int(stringLen) |
| 16642 | if intStringLen < 0 { |
| 16643 | return ErrInvalidLengthRpc |
| 16644 | } |
| 16645 | postIndex := iNdEx + intStringLen |
| 16646 | if postIndex > l { |
| 16647 | return io.ErrUnexpectedEOF |
| 16648 | } |
| 16649 | m.Version = string(dAtA[iNdEx:postIndex]) |
| 16650 | iNdEx = postIndex |
| 16651 | case 3: |
| 16652 | if wireType != 0 { |
| 16653 | return fmt.Errorf("proto: wrong wireType = %d for field DbSize", wireType) |
| 16654 | } |
| 16655 | m.DbSize = 0 |
| 16656 | for shift := uint(0); ; shift += 7 { |
| 16657 | if shift >= 64 { |
| 16658 | return ErrIntOverflowRpc |
| 16659 | } |
| 16660 | if iNdEx >= l { |
| 16661 | return io.ErrUnexpectedEOF |
| 16662 | } |
| 16663 | b := dAtA[iNdEx] |
| 16664 | iNdEx++ |
| 16665 | m.DbSize |= (int64(b) & 0x7F) << shift |
| 16666 | if b < 0x80 { |
| 16667 | break |
| 16668 | } |
| 16669 | } |
| 16670 | case 4: |
| 16671 | if wireType != 0 { |
| 16672 | return fmt.Errorf("proto: wrong wireType = %d for field Leader", wireType) |
| 16673 | } |
| 16674 | m.Leader = 0 |
| 16675 | for shift := uint(0); ; shift += 7 { |
| 16676 | if shift >= 64 { |
| 16677 | return ErrIntOverflowRpc |
| 16678 | } |
| 16679 | if iNdEx >= l { |
| 16680 | return io.ErrUnexpectedEOF |
| 16681 | } |
| 16682 | b := dAtA[iNdEx] |
| 16683 | iNdEx++ |
| 16684 | m.Leader |= (uint64(b) & 0x7F) << shift |
| 16685 | if b < 0x80 { |
| 16686 | break |
| 16687 | } |
| 16688 | } |
| 16689 | case 5: |
| 16690 | if wireType != 0 { |
| 16691 | return fmt.Errorf("proto: wrong wireType = %d for field RaftIndex", wireType) |
| 16692 | } |
| 16693 | m.RaftIndex = 0 |
| 16694 | for shift := uint(0); ; shift += 7 { |
| 16695 | if shift >= 64 { |
| 16696 | return ErrIntOverflowRpc |
| 16697 | } |
| 16698 | if iNdEx >= l { |
| 16699 | return io.ErrUnexpectedEOF |
| 16700 | } |
| 16701 | b := dAtA[iNdEx] |
| 16702 | iNdEx++ |
| 16703 | m.RaftIndex |= (uint64(b) & 0x7F) << shift |
| 16704 | if b < 0x80 { |
| 16705 | break |
| 16706 | } |
| 16707 | } |
| 16708 | case 6: |
| 16709 | if wireType != 0 { |
| 16710 | return fmt.Errorf("proto: wrong wireType = %d for field RaftTerm", wireType) |
| 16711 | } |
| 16712 | m.RaftTerm = 0 |
| 16713 | for shift := uint(0); ; shift += 7 { |
| 16714 | if shift >= 64 { |
| 16715 | return ErrIntOverflowRpc |
| 16716 | } |
| 16717 | if iNdEx >= l { |
| 16718 | return io.ErrUnexpectedEOF |
| 16719 | } |
| 16720 | b := dAtA[iNdEx] |
| 16721 | iNdEx++ |
| 16722 | m.RaftTerm |= (uint64(b) & 0x7F) << shift |
| 16723 | if b < 0x80 { |
| 16724 | break |
| 16725 | } |
| 16726 | } |
| 16727 | case 7: |
| 16728 | if wireType != 0 { |
| 16729 | return fmt.Errorf("proto: wrong wireType = %d for field RaftAppliedIndex", wireType) |
| 16730 | } |
| 16731 | m.RaftAppliedIndex = 0 |
| 16732 | for shift := uint(0); ; shift += 7 { |
| 16733 | if shift >= 64 { |
| 16734 | return ErrIntOverflowRpc |
| 16735 | } |
| 16736 | if iNdEx >= l { |
| 16737 | return io.ErrUnexpectedEOF |
| 16738 | } |
| 16739 | b := dAtA[iNdEx] |
| 16740 | iNdEx++ |
| 16741 | m.RaftAppliedIndex |= (uint64(b) & 0x7F) << shift |
| 16742 | if b < 0x80 { |
| 16743 | break |
| 16744 | } |
| 16745 | } |
| 16746 | case 8: |
| 16747 | if wireType != 2 { |
| 16748 | return fmt.Errorf("proto: wrong wireType = %d for field Errors", wireType) |
| 16749 | } |
| 16750 | var stringLen uint64 |
| 16751 | for shift := uint(0); ; shift += 7 { |
| 16752 | if shift >= 64 { |
| 16753 | return ErrIntOverflowRpc |
| 16754 | } |
| 16755 | if iNdEx >= l { |
| 16756 | return io.ErrUnexpectedEOF |
| 16757 | } |
| 16758 | b := dAtA[iNdEx] |
| 16759 | iNdEx++ |
| 16760 | stringLen |= (uint64(b) & 0x7F) << shift |
| 16761 | if b < 0x80 { |
| 16762 | break |
| 16763 | } |
| 16764 | } |
| 16765 | intStringLen := int(stringLen) |
| 16766 | if intStringLen < 0 { |
| 16767 | return ErrInvalidLengthRpc |
| 16768 | } |
| 16769 | postIndex := iNdEx + intStringLen |
| 16770 | if postIndex > l { |
| 16771 | return io.ErrUnexpectedEOF |
| 16772 | } |
| 16773 | m.Errors = append(m.Errors, string(dAtA[iNdEx:postIndex])) |
| 16774 | iNdEx = postIndex |
| 16775 | case 9: |
| 16776 | if wireType != 0 { |
| 16777 | return fmt.Errorf("proto: wrong wireType = %d for field DbSizeInUse", wireType) |
| 16778 | } |
| 16779 | m.DbSizeInUse = 0 |
| 16780 | for shift := uint(0); ; shift += 7 { |
| 16781 | if shift >= 64 { |
| 16782 | return ErrIntOverflowRpc |
| 16783 | } |
| 16784 | if iNdEx >= l { |
| 16785 | return io.ErrUnexpectedEOF |
| 16786 | } |
| 16787 | b := dAtA[iNdEx] |
| 16788 | iNdEx++ |
| 16789 | m.DbSizeInUse |= (int64(b) & 0x7F) << shift |
| 16790 | if b < 0x80 { |
| 16791 | break |
| 16792 | } |
| 16793 | } |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 16794 | case 10: |
| 16795 | if wireType != 0 { |
| 16796 | return fmt.Errorf("proto: wrong wireType = %d for field IsLearner", wireType) |
| 16797 | } |
| 16798 | var v int |
| 16799 | for shift := uint(0); ; shift += 7 { |
| 16800 | if shift >= 64 { |
| 16801 | return ErrIntOverflowRpc |
| 16802 | } |
| 16803 | if iNdEx >= l { |
| 16804 | return io.ErrUnexpectedEOF |
| 16805 | } |
| 16806 | b := dAtA[iNdEx] |
| 16807 | iNdEx++ |
| 16808 | v |= (int(b) & 0x7F) << shift |
| 16809 | if b < 0x80 { |
| 16810 | break |
| 16811 | } |
| 16812 | } |
| 16813 | m.IsLearner = bool(v != 0) |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 16814 | default: |
| 16815 | iNdEx = preIndex |
| 16816 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16817 | if err != nil { |
| 16818 | return err |
| 16819 | } |
| 16820 | if skippy < 0 { |
| 16821 | return ErrInvalidLengthRpc |
| 16822 | } |
| 16823 | if (iNdEx + skippy) > l { |
| 16824 | return io.ErrUnexpectedEOF |
| 16825 | } |
| 16826 | iNdEx += skippy |
| 16827 | } |
| 16828 | } |
| 16829 | |
| 16830 | if iNdEx > l { |
| 16831 | return io.ErrUnexpectedEOF |
| 16832 | } |
| 16833 | return nil |
| 16834 | } |
| 16835 | func (m *AuthEnableRequest) Unmarshal(dAtA []byte) error { |
| 16836 | l := len(dAtA) |
| 16837 | iNdEx := 0 |
| 16838 | for iNdEx < l { |
| 16839 | preIndex := iNdEx |
| 16840 | var wire uint64 |
| 16841 | for shift := uint(0); ; shift += 7 { |
| 16842 | if shift >= 64 { |
| 16843 | return ErrIntOverflowRpc |
| 16844 | } |
| 16845 | if iNdEx >= l { |
| 16846 | return io.ErrUnexpectedEOF |
| 16847 | } |
| 16848 | b := dAtA[iNdEx] |
| 16849 | iNdEx++ |
| 16850 | wire |= (uint64(b) & 0x7F) << shift |
| 16851 | if b < 0x80 { |
| 16852 | break |
| 16853 | } |
| 16854 | } |
| 16855 | fieldNum := int32(wire >> 3) |
| 16856 | wireType := int(wire & 0x7) |
| 16857 | if wireType == 4 { |
| 16858 | return fmt.Errorf("proto: AuthEnableRequest: wiretype end group for non-group") |
| 16859 | } |
| 16860 | if fieldNum <= 0 { |
| 16861 | return fmt.Errorf("proto: AuthEnableRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16862 | } |
| 16863 | switch fieldNum { |
| 16864 | default: |
| 16865 | iNdEx = preIndex |
| 16866 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16867 | if err != nil { |
| 16868 | return err |
| 16869 | } |
| 16870 | if skippy < 0 { |
| 16871 | return ErrInvalidLengthRpc |
| 16872 | } |
| 16873 | if (iNdEx + skippy) > l { |
| 16874 | return io.ErrUnexpectedEOF |
| 16875 | } |
| 16876 | iNdEx += skippy |
| 16877 | } |
| 16878 | } |
| 16879 | |
| 16880 | if iNdEx > l { |
| 16881 | return io.ErrUnexpectedEOF |
| 16882 | } |
| 16883 | return nil |
| 16884 | } |
| 16885 | func (m *AuthDisableRequest) Unmarshal(dAtA []byte) error { |
| 16886 | l := len(dAtA) |
| 16887 | iNdEx := 0 |
| 16888 | for iNdEx < l { |
| 16889 | preIndex := iNdEx |
| 16890 | var wire uint64 |
| 16891 | for shift := uint(0); ; shift += 7 { |
| 16892 | if shift >= 64 { |
| 16893 | return ErrIntOverflowRpc |
| 16894 | } |
| 16895 | if iNdEx >= l { |
| 16896 | return io.ErrUnexpectedEOF |
| 16897 | } |
| 16898 | b := dAtA[iNdEx] |
| 16899 | iNdEx++ |
| 16900 | wire |= (uint64(b) & 0x7F) << shift |
| 16901 | if b < 0x80 { |
| 16902 | break |
| 16903 | } |
| 16904 | } |
| 16905 | fieldNum := int32(wire >> 3) |
| 16906 | wireType := int(wire & 0x7) |
| 16907 | if wireType == 4 { |
| 16908 | return fmt.Errorf("proto: AuthDisableRequest: wiretype end group for non-group") |
| 16909 | } |
| 16910 | if fieldNum <= 0 { |
| 16911 | return fmt.Errorf("proto: AuthDisableRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16912 | } |
| 16913 | switch fieldNum { |
| 16914 | default: |
| 16915 | iNdEx = preIndex |
| 16916 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16917 | if err != nil { |
| 16918 | return err |
| 16919 | } |
| 16920 | if skippy < 0 { |
| 16921 | return ErrInvalidLengthRpc |
| 16922 | } |
| 16923 | if (iNdEx + skippy) > l { |
| 16924 | return io.ErrUnexpectedEOF |
| 16925 | } |
| 16926 | iNdEx += skippy |
| 16927 | } |
| 16928 | } |
| 16929 | |
| 16930 | if iNdEx > l { |
| 16931 | return io.ErrUnexpectedEOF |
| 16932 | } |
| 16933 | return nil |
| 16934 | } |
| 16935 | func (m *AuthenticateRequest) Unmarshal(dAtA []byte) error { |
| 16936 | l := len(dAtA) |
| 16937 | iNdEx := 0 |
| 16938 | for iNdEx < l { |
| 16939 | preIndex := iNdEx |
| 16940 | var wire uint64 |
| 16941 | for shift := uint(0); ; shift += 7 { |
| 16942 | if shift >= 64 { |
| 16943 | return ErrIntOverflowRpc |
| 16944 | } |
| 16945 | if iNdEx >= l { |
| 16946 | return io.ErrUnexpectedEOF |
| 16947 | } |
| 16948 | b := dAtA[iNdEx] |
| 16949 | iNdEx++ |
| 16950 | wire |= (uint64(b) & 0x7F) << shift |
| 16951 | if b < 0x80 { |
| 16952 | break |
| 16953 | } |
| 16954 | } |
| 16955 | fieldNum := int32(wire >> 3) |
| 16956 | wireType := int(wire & 0x7) |
| 16957 | if wireType == 4 { |
| 16958 | return fmt.Errorf("proto: AuthenticateRequest: wiretype end group for non-group") |
| 16959 | } |
| 16960 | if fieldNum <= 0 { |
| 16961 | return fmt.Errorf("proto: AuthenticateRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16962 | } |
| 16963 | switch fieldNum { |
| 16964 | case 1: |
| 16965 | if wireType != 2 { |
| 16966 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 16967 | } |
| 16968 | var stringLen uint64 |
| 16969 | for shift := uint(0); ; shift += 7 { |
| 16970 | if shift >= 64 { |
| 16971 | return ErrIntOverflowRpc |
| 16972 | } |
| 16973 | if iNdEx >= l { |
| 16974 | return io.ErrUnexpectedEOF |
| 16975 | } |
| 16976 | b := dAtA[iNdEx] |
| 16977 | iNdEx++ |
| 16978 | stringLen |= (uint64(b) & 0x7F) << shift |
| 16979 | if b < 0x80 { |
| 16980 | break |
| 16981 | } |
| 16982 | } |
| 16983 | intStringLen := int(stringLen) |
| 16984 | if intStringLen < 0 { |
| 16985 | return ErrInvalidLengthRpc |
| 16986 | } |
| 16987 | postIndex := iNdEx + intStringLen |
| 16988 | if postIndex > l { |
| 16989 | return io.ErrUnexpectedEOF |
| 16990 | } |
| 16991 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 16992 | iNdEx = postIndex |
| 16993 | case 2: |
| 16994 | if wireType != 2 { |
| 16995 | return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) |
| 16996 | } |
| 16997 | var stringLen uint64 |
| 16998 | for shift := uint(0); ; shift += 7 { |
| 16999 | if shift >= 64 { |
| 17000 | return ErrIntOverflowRpc |
| 17001 | } |
| 17002 | if iNdEx >= l { |
| 17003 | return io.ErrUnexpectedEOF |
| 17004 | } |
| 17005 | b := dAtA[iNdEx] |
| 17006 | iNdEx++ |
| 17007 | stringLen |= (uint64(b) & 0x7F) << shift |
| 17008 | if b < 0x80 { |
| 17009 | break |
| 17010 | } |
| 17011 | } |
| 17012 | intStringLen := int(stringLen) |
| 17013 | if intStringLen < 0 { |
| 17014 | return ErrInvalidLengthRpc |
| 17015 | } |
| 17016 | postIndex := iNdEx + intStringLen |
| 17017 | if postIndex > l { |
| 17018 | return io.ErrUnexpectedEOF |
| 17019 | } |
| 17020 | m.Password = string(dAtA[iNdEx:postIndex]) |
| 17021 | iNdEx = postIndex |
| 17022 | default: |
| 17023 | iNdEx = preIndex |
| 17024 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17025 | if err != nil { |
| 17026 | return err |
| 17027 | } |
| 17028 | if skippy < 0 { |
| 17029 | return ErrInvalidLengthRpc |
| 17030 | } |
| 17031 | if (iNdEx + skippy) > l { |
| 17032 | return io.ErrUnexpectedEOF |
| 17033 | } |
| 17034 | iNdEx += skippy |
| 17035 | } |
| 17036 | } |
| 17037 | |
| 17038 | if iNdEx > l { |
| 17039 | return io.ErrUnexpectedEOF |
| 17040 | } |
| 17041 | return nil |
| 17042 | } |
| 17043 | func (m *AuthUserAddRequest) Unmarshal(dAtA []byte) error { |
| 17044 | l := len(dAtA) |
| 17045 | iNdEx := 0 |
| 17046 | for iNdEx < l { |
| 17047 | preIndex := iNdEx |
| 17048 | var wire uint64 |
| 17049 | for shift := uint(0); ; shift += 7 { |
| 17050 | if shift >= 64 { |
| 17051 | return ErrIntOverflowRpc |
| 17052 | } |
| 17053 | if iNdEx >= l { |
| 17054 | return io.ErrUnexpectedEOF |
| 17055 | } |
| 17056 | b := dAtA[iNdEx] |
| 17057 | iNdEx++ |
| 17058 | wire |= (uint64(b) & 0x7F) << shift |
| 17059 | if b < 0x80 { |
| 17060 | break |
| 17061 | } |
| 17062 | } |
| 17063 | fieldNum := int32(wire >> 3) |
| 17064 | wireType := int(wire & 0x7) |
| 17065 | if wireType == 4 { |
| 17066 | return fmt.Errorf("proto: AuthUserAddRequest: wiretype end group for non-group") |
| 17067 | } |
| 17068 | if fieldNum <= 0 { |
| 17069 | return fmt.Errorf("proto: AuthUserAddRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17070 | } |
| 17071 | switch fieldNum { |
| 17072 | case 1: |
| 17073 | if wireType != 2 { |
| 17074 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 17075 | } |
| 17076 | var stringLen uint64 |
| 17077 | for shift := uint(0); ; shift += 7 { |
| 17078 | if shift >= 64 { |
| 17079 | return ErrIntOverflowRpc |
| 17080 | } |
| 17081 | if iNdEx >= l { |
| 17082 | return io.ErrUnexpectedEOF |
| 17083 | } |
| 17084 | b := dAtA[iNdEx] |
| 17085 | iNdEx++ |
| 17086 | stringLen |= (uint64(b) & 0x7F) << shift |
| 17087 | if b < 0x80 { |
| 17088 | break |
| 17089 | } |
| 17090 | } |
| 17091 | intStringLen := int(stringLen) |
| 17092 | if intStringLen < 0 { |
| 17093 | return ErrInvalidLengthRpc |
| 17094 | } |
| 17095 | postIndex := iNdEx + intStringLen |
| 17096 | if postIndex > l { |
| 17097 | return io.ErrUnexpectedEOF |
| 17098 | } |
| 17099 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 17100 | iNdEx = postIndex |
| 17101 | case 2: |
| 17102 | if wireType != 2 { |
| 17103 | return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) |
| 17104 | } |
| 17105 | var stringLen uint64 |
| 17106 | for shift := uint(0); ; shift += 7 { |
| 17107 | if shift >= 64 { |
| 17108 | return ErrIntOverflowRpc |
| 17109 | } |
| 17110 | if iNdEx >= l { |
| 17111 | return io.ErrUnexpectedEOF |
| 17112 | } |
| 17113 | b := dAtA[iNdEx] |
| 17114 | iNdEx++ |
| 17115 | stringLen |= (uint64(b) & 0x7F) << shift |
| 17116 | if b < 0x80 { |
| 17117 | break |
| 17118 | } |
| 17119 | } |
| 17120 | intStringLen := int(stringLen) |
| 17121 | if intStringLen < 0 { |
| 17122 | return ErrInvalidLengthRpc |
| 17123 | } |
| 17124 | postIndex := iNdEx + intStringLen |
| 17125 | if postIndex > l { |
| 17126 | return io.ErrUnexpectedEOF |
| 17127 | } |
| 17128 | m.Password = string(dAtA[iNdEx:postIndex]) |
| 17129 | iNdEx = postIndex |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 17130 | case 3: |
| 17131 | if wireType != 2 { |
| 17132 | return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) |
| 17133 | } |
| 17134 | var msglen int |
| 17135 | for shift := uint(0); ; shift += 7 { |
| 17136 | if shift >= 64 { |
| 17137 | return ErrIntOverflowRpc |
| 17138 | } |
| 17139 | if iNdEx >= l { |
| 17140 | return io.ErrUnexpectedEOF |
| 17141 | } |
| 17142 | b := dAtA[iNdEx] |
| 17143 | iNdEx++ |
| 17144 | msglen |= (int(b) & 0x7F) << shift |
| 17145 | if b < 0x80 { |
| 17146 | break |
| 17147 | } |
| 17148 | } |
| 17149 | if msglen < 0 { |
| 17150 | return ErrInvalidLengthRpc |
| 17151 | } |
| 17152 | postIndex := iNdEx + msglen |
| 17153 | if postIndex > l { |
| 17154 | return io.ErrUnexpectedEOF |
| 17155 | } |
| 17156 | if m.Options == nil { |
| 17157 | m.Options = &authpb.UserAddOptions{} |
| 17158 | } |
| 17159 | if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 17160 | return err |
| 17161 | } |
| 17162 | iNdEx = postIndex |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 17163 | default: |
| 17164 | iNdEx = preIndex |
| 17165 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17166 | if err != nil { |
| 17167 | return err |
| 17168 | } |
| 17169 | if skippy < 0 { |
| 17170 | return ErrInvalidLengthRpc |
| 17171 | } |
| 17172 | if (iNdEx + skippy) > l { |
| 17173 | return io.ErrUnexpectedEOF |
| 17174 | } |
| 17175 | iNdEx += skippy |
| 17176 | } |
| 17177 | } |
| 17178 | |
| 17179 | if iNdEx > l { |
| 17180 | return io.ErrUnexpectedEOF |
| 17181 | } |
| 17182 | return nil |
| 17183 | } |
| 17184 | func (m *AuthUserGetRequest) Unmarshal(dAtA []byte) error { |
| 17185 | l := len(dAtA) |
| 17186 | iNdEx := 0 |
| 17187 | for iNdEx < l { |
| 17188 | preIndex := iNdEx |
| 17189 | var wire uint64 |
| 17190 | for shift := uint(0); ; shift += 7 { |
| 17191 | if shift >= 64 { |
| 17192 | return ErrIntOverflowRpc |
| 17193 | } |
| 17194 | if iNdEx >= l { |
| 17195 | return io.ErrUnexpectedEOF |
| 17196 | } |
| 17197 | b := dAtA[iNdEx] |
| 17198 | iNdEx++ |
| 17199 | wire |= (uint64(b) & 0x7F) << shift |
| 17200 | if b < 0x80 { |
| 17201 | break |
| 17202 | } |
| 17203 | } |
| 17204 | fieldNum := int32(wire >> 3) |
| 17205 | wireType := int(wire & 0x7) |
| 17206 | if wireType == 4 { |
| 17207 | return fmt.Errorf("proto: AuthUserGetRequest: wiretype end group for non-group") |
| 17208 | } |
| 17209 | if fieldNum <= 0 { |
| 17210 | return fmt.Errorf("proto: AuthUserGetRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17211 | } |
| 17212 | switch fieldNum { |
| 17213 | case 1: |
| 17214 | if wireType != 2 { |
| 17215 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 17216 | } |
| 17217 | var stringLen uint64 |
| 17218 | for shift := uint(0); ; shift += 7 { |
| 17219 | if shift >= 64 { |
| 17220 | return ErrIntOverflowRpc |
| 17221 | } |
| 17222 | if iNdEx >= l { |
| 17223 | return io.ErrUnexpectedEOF |
| 17224 | } |
| 17225 | b := dAtA[iNdEx] |
| 17226 | iNdEx++ |
| 17227 | stringLen |= (uint64(b) & 0x7F) << shift |
| 17228 | if b < 0x80 { |
| 17229 | break |
| 17230 | } |
| 17231 | } |
| 17232 | intStringLen := int(stringLen) |
| 17233 | if intStringLen < 0 { |
| 17234 | return ErrInvalidLengthRpc |
| 17235 | } |
| 17236 | postIndex := iNdEx + intStringLen |
| 17237 | if postIndex > l { |
| 17238 | return io.ErrUnexpectedEOF |
| 17239 | } |
| 17240 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 17241 | iNdEx = postIndex |
| 17242 | default: |
| 17243 | iNdEx = preIndex |
| 17244 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17245 | if err != nil { |
| 17246 | return err |
| 17247 | } |
| 17248 | if skippy < 0 { |
| 17249 | return ErrInvalidLengthRpc |
| 17250 | } |
| 17251 | if (iNdEx + skippy) > l { |
| 17252 | return io.ErrUnexpectedEOF |
| 17253 | } |
| 17254 | iNdEx += skippy |
| 17255 | } |
| 17256 | } |
| 17257 | |
| 17258 | if iNdEx > l { |
| 17259 | return io.ErrUnexpectedEOF |
| 17260 | } |
| 17261 | return nil |
| 17262 | } |
| 17263 | func (m *AuthUserDeleteRequest) Unmarshal(dAtA []byte) error { |
| 17264 | l := len(dAtA) |
| 17265 | iNdEx := 0 |
| 17266 | for iNdEx < l { |
| 17267 | preIndex := iNdEx |
| 17268 | var wire uint64 |
| 17269 | for shift := uint(0); ; shift += 7 { |
| 17270 | if shift >= 64 { |
| 17271 | return ErrIntOverflowRpc |
| 17272 | } |
| 17273 | if iNdEx >= l { |
| 17274 | return io.ErrUnexpectedEOF |
| 17275 | } |
| 17276 | b := dAtA[iNdEx] |
| 17277 | iNdEx++ |
| 17278 | wire |= (uint64(b) & 0x7F) << shift |
| 17279 | if b < 0x80 { |
| 17280 | break |
| 17281 | } |
| 17282 | } |
| 17283 | fieldNum := int32(wire >> 3) |
| 17284 | wireType := int(wire & 0x7) |
| 17285 | if wireType == 4 { |
| 17286 | return fmt.Errorf("proto: AuthUserDeleteRequest: wiretype end group for non-group") |
| 17287 | } |
| 17288 | if fieldNum <= 0 { |
| 17289 | return fmt.Errorf("proto: AuthUserDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17290 | } |
| 17291 | switch fieldNum { |
| 17292 | case 1: |
| 17293 | if wireType != 2 { |
| 17294 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 17295 | } |
| 17296 | var stringLen uint64 |
| 17297 | for shift := uint(0); ; shift += 7 { |
| 17298 | if shift >= 64 { |
| 17299 | return ErrIntOverflowRpc |
| 17300 | } |
| 17301 | if iNdEx >= l { |
| 17302 | return io.ErrUnexpectedEOF |
| 17303 | } |
| 17304 | b := dAtA[iNdEx] |
| 17305 | iNdEx++ |
| 17306 | stringLen |= (uint64(b) & 0x7F) << shift |
| 17307 | if b < 0x80 { |
| 17308 | break |
| 17309 | } |
| 17310 | } |
| 17311 | intStringLen := int(stringLen) |
| 17312 | if intStringLen < 0 { |
| 17313 | return ErrInvalidLengthRpc |
| 17314 | } |
| 17315 | postIndex := iNdEx + intStringLen |
| 17316 | if postIndex > l { |
| 17317 | return io.ErrUnexpectedEOF |
| 17318 | } |
| 17319 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 17320 | iNdEx = postIndex |
| 17321 | default: |
| 17322 | iNdEx = preIndex |
| 17323 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17324 | if err != nil { |
| 17325 | return err |
| 17326 | } |
| 17327 | if skippy < 0 { |
| 17328 | return ErrInvalidLengthRpc |
| 17329 | } |
| 17330 | if (iNdEx + skippy) > l { |
| 17331 | return io.ErrUnexpectedEOF |
| 17332 | } |
| 17333 | iNdEx += skippy |
| 17334 | } |
| 17335 | } |
| 17336 | |
| 17337 | if iNdEx > l { |
| 17338 | return io.ErrUnexpectedEOF |
| 17339 | } |
| 17340 | return nil |
| 17341 | } |
| 17342 | func (m *AuthUserChangePasswordRequest) Unmarshal(dAtA []byte) error { |
| 17343 | l := len(dAtA) |
| 17344 | iNdEx := 0 |
| 17345 | for iNdEx < l { |
| 17346 | preIndex := iNdEx |
| 17347 | var wire uint64 |
| 17348 | for shift := uint(0); ; shift += 7 { |
| 17349 | if shift >= 64 { |
| 17350 | return ErrIntOverflowRpc |
| 17351 | } |
| 17352 | if iNdEx >= l { |
| 17353 | return io.ErrUnexpectedEOF |
| 17354 | } |
| 17355 | b := dAtA[iNdEx] |
| 17356 | iNdEx++ |
| 17357 | wire |= (uint64(b) & 0x7F) << shift |
| 17358 | if b < 0x80 { |
| 17359 | break |
| 17360 | } |
| 17361 | } |
| 17362 | fieldNum := int32(wire >> 3) |
| 17363 | wireType := int(wire & 0x7) |
| 17364 | if wireType == 4 { |
| 17365 | return fmt.Errorf("proto: AuthUserChangePasswordRequest: wiretype end group for non-group") |
| 17366 | } |
| 17367 | if fieldNum <= 0 { |
| 17368 | return fmt.Errorf("proto: AuthUserChangePasswordRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17369 | } |
| 17370 | switch fieldNum { |
| 17371 | case 1: |
| 17372 | if wireType != 2 { |
| 17373 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 17374 | } |
| 17375 | var stringLen uint64 |
| 17376 | for shift := uint(0); ; shift += 7 { |
| 17377 | if shift >= 64 { |
| 17378 | return ErrIntOverflowRpc |
| 17379 | } |
| 17380 | if iNdEx >= l { |
| 17381 | return io.ErrUnexpectedEOF |
| 17382 | } |
| 17383 | b := dAtA[iNdEx] |
| 17384 | iNdEx++ |
| 17385 | stringLen |= (uint64(b) & 0x7F) << shift |
| 17386 | if b < 0x80 { |
| 17387 | break |
| 17388 | } |
| 17389 | } |
| 17390 | intStringLen := int(stringLen) |
| 17391 | if intStringLen < 0 { |
| 17392 | return ErrInvalidLengthRpc |
| 17393 | } |
| 17394 | postIndex := iNdEx + intStringLen |
| 17395 | if postIndex > l { |
| 17396 | return io.ErrUnexpectedEOF |
| 17397 | } |
| 17398 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 17399 | iNdEx = postIndex |
| 17400 | case 2: |
| 17401 | if wireType != 2 { |
| 17402 | return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) |
| 17403 | } |
| 17404 | var stringLen uint64 |
| 17405 | for shift := uint(0); ; shift += 7 { |
| 17406 | if shift >= 64 { |
| 17407 | return ErrIntOverflowRpc |
| 17408 | } |
| 17409 | if iNdEx >= l { |
| 17410 | return io.ErrUnexpectedEOF |
| 17411 | } |
| 17412 | b := dAtA[iNdEx] |
| 17413 | iNdEx++ |
| 17414 | stringLen |= (uint64(b) & 0x7F) << shift |
| 17415 | if b < 0x80 { |
| 17416 | break |
| 17417 | } |
| 17418 | } |
| 17419 | intStringLen := int(stringLen) |
| 17420 | if intStringLen < 0 { |
| 17421 | return ErrInvalidLengthRpc |
| 17422 | } |
| 17423 | postIndex := iNdEx + intStringLen |
| 17424 | if postIndex > l { |
| 17425 | return io.ErrUnexpectedEOF |
| 17426 | } |
| 17427 | m.Password = string(dAtA[iNdEx:postIndex]) |
| 17428 | iNdEx = postIndex |
| 17429 | default: |
| 17430 | iNdEx = preIndex |
| 17431 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17432 | if err != nil { |
| 17433 | return err |
| 17434 | } |
| 17435 | if skippy < 0 { |
| 17436 | return ErrInvalidLengthRpc |
| 17437 | } |
| 17438 | if (iNdEx + skippy) > l { |
| 17439 | return io.ErrUnexpectedEOF |
| 17440 | } |
| 17441 | iNdEx += skippy |
| 17442 | } |
| 17443 | } |
| 17444 | |
| 17445 | if iNdEx > l { |
| 17446 | return io.ErrUnexpectedEOF |
| 17447 | } |
| 17448 | return nil |
| 17449 | } |
| 17450 | func (m *AuthUserGrantRoleRequest) Unmarshal(dAtA []byte) error { |
| 17451 | l := len(dAtA) |
| 17452 | iNdEx := 0 |
| 17453 | for iNdEx < l { |
| 17454 | preIndex := iNdEx |
| 17455 | var wire uint64 |
| 17456 | for shift := uint(0); ; shift += 7 { |
| 17457 | if shift >= 64 { |
| 17458 | return ErrIntOverflowRpc |
| 17459 | } |
| 17460 | if iNdEx >= l { |
| 17461 | return io.ErrUnexpectedEOF |
| 17462 | } |
| 17463 | b := dAtA[iNdEx] |
| 17464 | iNdEx++ |
| 17465 | wire |= (uint64(b) & 0x7F) << shift |
| 17466 | if b < 0x80 { |
| 17467 | break |
| 17468 | } |
| 17469 | } |
| 17470 | fieldNum := int32(wire >> 3) |
| 17471 | wireType := int(wire & 0x7) |
| 17472 | if wireType == 4 { |
| 17473 | return fmt.Errorf("proto: AuthUserGrantRoleRequest: wiretype end group for non-group") |
| 17474 | } |
| 17475 | if fieldNum <= 0 { |
| 17476 | return fmt.Errorf("proto: AuthUserGrantRoleRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17477 | } |
| 17478 | switch fieldNum { |
| 17479 | case 1: |
| 17480 | if wireType != 2 { |
| 17481 | return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) |
| 17482 | } |
| 17483 | var stringLen uint64 |
| 17484 | for shift := uint(0); ; shift += 7 { |
| 17485 | if shift >= 64 { |
| 17486 | return ErrIntOverflowRpc |
| 17487 | } |
| 17488 | if iNdEx >= l { |
| 17489 | return io.ErrUnexpectedEOF |
| 17490 | } |
| 17491 | b := dAtA[iNdEx] |
| 17492 | iNdEx++ |
| 17493 | stringLen |= (uint64(b) & 0x7F) << shift |
| 17494 | if b < 0x80 { |
| 17495 | break |
| 17496 | } |
| 17497 | } |
| 17498 | intStringLen := int(stringLen) |
| 17499 | if intStringLen < 0 { |
| 17500 | return ErrInvalidLengthRpc |
| 17501 | } |
| 17502 | postIndex := iNdEx + intStringLen |
| 17503 | if postIndex > l { |
| 17504 | return io.ErrUnexpectedEOF |
| 17505 | } |
| 17506 | m.User = string(dAtA[iNdEx:postIndex]) |
| 17507 | iNdEx = postIndex |
| 17508 | case 2: |
| 17509 | if wireType != 2 { |
| 17510 | return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) |
| 17511 | } |
| 17512 | var stringLen uint64 |
| 17513 | for shift := uint(0); ; shift += 7 { |
| 17514 | if shift >= 64 { |
| 17515 | return ErrIntOverflowRpc |
| 17516 | } |
| 17517 | if iNdEx >= l { |
| 17518 | return io.ErrUnexpectedEOF |
| 17519 | } |
| 17520 | b := dAtA[iNdEx] |
| 17521 | iNdEx++ |
| 17522 | stringLen |= (uint64(b) & 0x7F) << shift |
| 17523 | if b < 0x80 { |
| 17524 | break |
| 17525 | } |
| 17526 | } |
| 17527 | intStringLen := int(stringLen) |
| 17528 | if intStringLen < 0 { |
| 17529 | return ErrInvalidLengthRpc |
| 17530 | } |
| 17531 | postIndex := iNdEx + intStringLen |
| 17532 | if postIndex > l { |
| 17533 | return io.ErrUnexpectedEOF |
| 17534 | } |
| 17535 | m.Role = string(dAtA[iNdEx:postIndex]) |
| 17536 | iNdEx = postIndex |
| 17537 | default: |
| 17538 | iNdEx = preIndex |
| 17539 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17540 | if err != nil { |
| 17541 | return err |
| 17542 | } |
| 17543 | if skippy < 0 { |
| 17544 | return ErrInvalidLengthRpc |
| 17545 | } |
| 17546 | if (iNdEx + skippy) > l { |
| 17547 | return io.ErrUnexpectedEOF |
| 17548 | } |
| 17549 | iNdEx += skippy |
| 17550 | } |
| 17551 | } |
| 17552 | |
| 17553 | if iNdEx > l { |
| 17554 | return io.ErrUnexpectedEOF |
| 17555 | } |
| 17556 | return nil |
| 17557 | } |
| 17558 | func (m *AuthUserRevokeRoleRequest) Unmarshal(dAtA []byte) error { |
| 17559 | l := len(dAtA) |
| 17560 | iNdEx := 0 |
| 17561 | for iNdEx < l { |
| 17562 | preIndex := iNdEx |
| 17563 | var wire uint64 |
| 17564 | for shift := uint(0); ; shift += 7 { |
| 17565 | if shift >= 64 { |
| 17566 | return ErrIntOverflowRpc |
| 17567 | } |
| 17568 | if iNdEx >= l { |
| 17569 | return io.ErrUnexpectedEOF |
| 17570 | } |
| 17571 | b := dAtA[iNdEx] |
| 17572 | iNdEx++ |
| 17573 | wire |= (uint64(b) & 0x7F) << shift |
| 17574 | if b < 0x80 { |
| 17575 | break |
| 17576 | } |
| 17577 | } |
| 17578 | fieldNum := int32(wire >> 3) |
| 17579 | wireType := int(wire & 0x7) |
| 17580 | if wireType == 4 { |
| 17581 | return fmt.Errorf("proto: AuthUserRevokeRoleRequest: wiretype end group for non-group") |
| 17582 | } |
| 17583 | if fieldNum <= 0 { |
| 17584 | return fmt.Errorf("proto: AuthUserRevokeRoleRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17585 | } |
| 17586 | switch fieldNum { |
| 17587 | case 1: |
| 17588 | if wireType != 2 { |
| 17589 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 17590 | } |
| 17591 | var stringLen uint64 |
| 17592 | for shift := uint(0); ; shift += 7 { |
| 17593 | if shift >= 64 { |
| 17594 | return ErrIntOverflowRpc |
| 17595 | } |
| 17596 | if iNdEx >= l { |
| 17597 | return io.ErrUnexpectedEOF |
| 17598 | } |
| 17599 | b := dAtA[iNdEx] |
| 17600 | iNdEx++ |
| 17601 | stringLen |= (uint64(b) & 0x7F) << shift |
| 17602 | if b < 0x80 { |
| 17603 | break |
| 17604 | } |
| 17605 | } |
| 17606 | intStringLen := int(stringLen) |
| 17607 | if intStringLen < 0 { |
| 17608 | return ErrInvalidLengthRpc |
| 17609 | } |
| 17610 | postIndex := iNdEx + intStringLen |
| 17611 | if postIndex > l { |
| 17612 | return io.ErrUnexpectedEOF |
| 17613 | } |
| 17614 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 17615 | iNdEx = postIndex |
| 17616 | case 2: |
| 17617 | if wireType != 2 { |
| 17618 | return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) |
| 17619 | } |
| 17620 | var stringLen uint64 |
| 17621 | for shift := uint(0); ; shift += 7 { |
| 17622 | if shift >= 64 { |
| 17623 | return ErrIntOverflowRpc |
| 17624 | } |
| 17625 | if iNdEx >= l { |
| 17626 | return io.ErrUnexpectedEOF |
| 17627 | } |
| 17628 | b := dAtA[iNdEx] |
| 17629 | iNdEx++ |
| 17630 | stringLen |= (uint64(b) & 0x7F) << shift |
| 17631 | if b < 0x80 { |
| 17632 | break |
| 17633 | } |
| 17634 | } |
| 17635 | intStringLen := int(stringLen) |
| 17636 | if intStringLen < 0 { |
| 17637 | return ErrInvalidLengthRpc |
| 17638 | } |
| 17639 | postIndex := iNdEx + intStringLen |
| 17640 | if postIndex > l { |
| 17641 | return io.ErrUnexpectedEOF |
| 17642 | } |
| 17643 | m.Role = string(dAtA[iNdEx:postIndex]) |
| 17644 | iNdEx = postIndex |
| 17645 | default: |
| 17646 | iNdEx = preIndex |
| 17647 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17648 | if err != nil { |
| 17649 | return err |
| 17650 | } |
| 17651 | if skippy < 0 { |
| 17652 | return ErrInvalidLengthRpc |
| 17653 | } |
| 17654 | if (iNdEx + skippy) > l { |
| 17655 | return io.ErrUnexpectedEOF |
| 17656 | } |
| 17657 | iNdEx += skippy |
| 17658 | } |
| 17659 | } |
| 17660 | |
| 17661 | if iNdEx > l { |
| 17662 | return io.ErrUnexpectedEOF |
| 17663 | } |
| 17664 | return nil |
| 17665 | } |
| 17666 | func (m *AuthRoleAddRequest) Unmarshal(dAtA []byte) error { |
| 17667 | l := len(dAtA) |
| 17668 | iNdEx := 0 |
| 17669 | for iNdEx < l { |
| 17670 | preIndex := iNdEx |
| 17671 | var wire uint64 |
| 17672 | for shift := uint(0); ; shift += 7 { |
| 17673 | if shift >= 64 { |
| 17674 | return ErrIntOverflowRpc |
| 17675 | } |
| 17676 | if iNdEx >= l { |
| 17677 | return io.ErrUnexpectedEOF |
| 17678 | } |
| 17679 | b := dAtA[iNdEx] |
| 17680 | iNdEx++ |
| 17681 | wire |= (uint64(b) & 0x7F) << shift |
| 17682 | if b < 0x80 { |
| 17683 | break |
| 17684 | } |
| 17685 | } |
| 17686 | fieldNum := int32(wire >> 3) |
| 17687 | wireType := int(wire & 0x7) |
| 17688 | if wireType == 4 { |
| 17689 | return fmt.Errorf("proto: AuthRoleAddRequest: wiretype end group for non-group") |
| 17690 | } |
| 17691 | if fieldNum <= 0 { |
| 17692 | return fmt.Errorf("proto: AuthRoleAddRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17693 | } |
| 17694 | switch fieldNum { |
| 17695 | case 1: |
| 17696 | if wireType != 2 { |
| 17697 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 17698 | } |
| 17699 | var stringLen uint64 |
| 17700 | for shift := uint(0); ; shift += 7 { |
| 17701 | if shift >= 64 { |
| 17702 | return ErrIntOverflowRpc |
| 17703 | } |
| 17704 | if iNdEx >= l { |
| 17705 | return io.ErrUnexpectedEOF |
| 17706 | } |
| 17707 | b := dAtA[iNdEx] |
| 17708 | iNdEx++ |
| 17709 | stringLen |= (uint64(b) & 0x7F) << shift |
| 17710 | if b < 0x80 { |
| 17711 | break |
| 17712 | } |
| 17713 | } |
| 17714 | intStringLen := int(stringLen) |
| 17715 | if intStringLen < 0 { |
| 17716 | return ErrInvalidLengthRpc |
| 17717 | } |
| 17718 | postIndex := iNdEx + intStringLen |
| 17719 | if postIndex > l { |
| 17720 | return io.ErrUnexpectedEOF |
| 17721 | } |
| 17722 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 17723 | iNdEx = postIndex |
| 17724 | default: |
| 17725 | iNdEx = preIndex |
| 17726 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17727 | if err != nil { |
| 17728 | return err |
| 17729 | } |
| 17730 | if skippy < 0 { |
| 17731 | return ErrInvalidLengthRpc |
| 17732 | } |
| 17733 | if (iNdEx + skippy) > l { |
| 17734 | return io.ErrUnexpectedEOF |
| 17735 | } |
| 17736 | iNdEx += skippy |
| 17737 | } |
| 17738 | } |
| 17739 | |
| 17740 | if iNdEx > l { |
| 17741 | return io.ErrUnexpectedEOF |
| 17742 | } |
| 17743 | return nil |
| 17744 | } |
| 17745 | func (m *AuthRoleGetRequest) Unmarshal(dAtA []byte) error { |
| 17746 | l := len(dAtA) |
| 17747 | iNdEx := 0 |
| 17748 | for iNdEx < l { |
| 17749 | preIndex := iNdEx |
| 17750 | var wire uint64 |
| 17751 | for shift := uint(0); ; shift += 7 { |
| 17752 | if shift >= 64 { |
| 17753 | return ErrIntOverflowRpc |
| 17754 | } |
| 17755 | if iNdEx >= l { |
| 17756 | return io.ErrUnexpectedEOF |
| 17757 | } |
| 17758 | b := dAtA[iNdEx] |
| 17759 | iNdEx++ |
| 17760 | wire |= (uint64(b) & 0x7F) << shift |
| 17761 | if b < 0x80 { |
| 17762 | break |
| 17763 | } |
| 17764 | } |
| 17765 | fieldNum := int32(wire >> 3) |
| 17766 | wireType := int(wire & 0x7) |
| 17767 | if wireType == 4 { |
| 17768 | return fmt.Errorf("proto: AuthRoleGetRequest: wiretype end group for non-group") |
| 17769 | } |
| 17770 | if fieldNum <= 0 { |
| 17771 | return fmt.Errorf("proto: AuthRoleGetRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17772 | } |
| 17773 | switch fieldNum { |
| 17774 | case 1: |
| 17775 | if wireType != 2 { |
| 17776 | return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) |
| 17777 | } |
| 17778 | var stringLen uint64 |
| 17779 | for shift := uint(0); ; shift += 7 { |
| 17780 | if shift >= 64 { |
| 17781 | return ErrIntOverflowRpc |
| 17782 | } |
| 17783 | if iNdEx >= l { |
| 17784 | return io.ErrUnexpectedEOF |
| 17785 | } |
| 17786 | b := dAtA[iNdEx] |
| 17787 | iNdEx++ |
| 17788 | stringLen |= (uint64(b) & 0x7F) << shift |
| 17789 | if b < 0x80 { |
| 17790 | break |
| 17791 | } |
| 17792 | } |
| 17793 | intStringLen := int(stringLen) |
| 17794 | if intStringLen < 0 { |
| 17795 | return ErrInvalidLengthRpc |
| 17796 | } |
| 17797 | postIndex := iNdEx + intStringLen |
| 17798 | if postIndex > l { |
| 17799 | return io.ErrUnexpectedEOF |
| 17800 | } |
| 17801 | m.Role = string(dAtA[iNdEx:postIndex]) |
| 17802 | iNdEx = postIndex |
| 17803 | default: |
| 17804 | iNdEx = preIndex |
| 17805 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17806 | if err != nil { |
| 17807 | return err |
| 17808 | } |
| 17809 | if skippy < 0 { |
| 17810 | return ErrInvalidLengthRpc |
| 17811 | } |
| 17812 | if (iNdEx + skippy) > l { |
| 17813 | return io.ErrUnexpectedEOF |
| 17814 | } |
| 17815 | iNdEx += skippy |
| 17816 | } |
| 17817 | } |
| 17818 | |
| 17819 | if iNdEx > l { |
| 17820 | return io.ErrUnexpectedEOF |
| 17821 | } |
| 17822 | return nil |
| 17823 | } |
| 17824 | func (m *AuthUserListRequest) Unmarshal(dAtA []byte) error { |
| 17825 | l := len(dAtA) |
| 17826 | iNdEx := 0 |
| 17827 | for iNdEx < l { |
| 17828 | preIndex := iNdEx |
| 17829 | var wire uint64 |
| 17830 | for shift := uint(0); ; shift += 7 { |
| 17831 | if shift >= 64 { |
| 17832 | return ErrIntOverflowRpc |
| 17833 | } |
| 17834 | if iNdEx >= l { |
| 17835 | return io.ErrUnexpectedEOF |
| 17836 | } |
| 17837 | b := dAtA[iNdEx] |
| 17838 | iNdEx++ |
| 17839 | wire |= (uint64(b) & 0x7F) << shift |
| 17840 | if b < 0x80 { |
| 17841 | break |
| 17842 | } |
| 17843 | } |
| 17844 | fieldNum := int32(wire >> 3) |
| 17845 | wireType := int(wire & 0x7) |
| 17846 | if wireType == 4 { |
| 17847 | return fmt.Errorf("proto: AuthUserListRequest: wiretype end group for non-group") |
| 17848 | } |
| 17849 | if fieldNum <= 0 { |
| 17850 | return fmt.Errorf("proto: AuthUserListRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17851 | } |
| 17852 | switch fieldNum { |
| 17853 | default: |
| 17854 | iNdEx = preIndex |
| 17855 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17856 | if err != nil { |
| 17857 | return err |
| 17858 | } |
| 17859 | if skippy < 0 { |
| 17860 | return ErrInvalidLengthRpc |
| 17861 | } |
| 17862 | if (iNdEx + skippy) > l { |
| 17863 | return io.ErrUnexpectedEOF |
| 17864 | } |
| 17865 | iNdEx += skippy |
| 17866 | } |
| 17867 | } |
| 17868 | |
| 17869 | if iNdEx > l { |
| 17870 | return io.ErrUnexpectedEOF |
| 17871 | } |
| 17872 | return nil |
| 17873 | } |
| 17874 | func (m *AuthRoleListRequest) Unmarshal(dAtA []byte) error { |
| 17875 | l := len(dAtA) |
| 17876 | iNdEx := 0 |
| 17877 | for iNdEx < l { |
| 17878 | preIndex := iNdEx |
| 17879 | var wire uint64 |
| 17880 | for shift := uint(0); ; shift += 7 { |
| 17881 | if shift >= 64 { |
| 17882 | return ErrIntOverflowRpc |
| 17883 | } |
| 17884 | if iNdEx >= l { |
| 17885 | return io.ErrUnexpectedEOF |
| 17886 | } |
| 17887 | b := dAtA[iNdEx] |
| 17888 | iNdEx++ |
| 17889 | wire |= (uint64(b) & 0x7F) << shift |
| 17890 | if b < 0x80 { |
| 17891 | break |
| 17892 | } |
| 17893 | } |
| 17894 | fieldNum := int32(wire >> 3) |
| 17895 | wireType := int(wire & 0x7) |
| 17896 | if wireType == 4 { |
| 17897 | return fmt.Errorf("proto: AuthRoleListRequest: wiretype end group for non-group") |
| 17898 | } |
| 17899 | if fieldNum <= 0 { |
| 17900 | return fmt.Errorf("proto: AuthRoleListRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17901 | } |
| 17902 | switch fieldNum { |
| 17903 | default: |
| 17904 | iNdEx = preIndex |
| 17905 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17906 | if err != nil { |
| 17907 | return err |
| 17908 | } |
| 17909 | if skippy < 0 { |
| 17910 | return ErrInvalidLengthRpc |
| 17911 | } |
| 17912 | if (iNdEx + skippy) > l { |
| 17913 | return io.ErrUnexpectedEOF |
| 17914 | } |
| 17915 | iNdEx += skippy |
| 17916 | } |
| 17917 | } |
| 17918 | |
| 17919 | if iNdEx > l { |
| 17920 | return io.ErrUnexpectedEOF |
| 17921 | } |
| 17922 | return nil |
| 17923 | } |
| 17924 | func (m *AuthRoleDeleteRequest) Unmarshal(dAtA []byte) error { |
| 17925 | l := len(dAtA) |
| 17926 | iNdEx := 0 |
| 17927 | for iNdEx < l { |
| 17928 | preIndex := iNdEx |
| 17929 | var wire uint64 |
| 17930 | for shift := uint(0); ; shift += 7 { |
| 17931 | if shift >= 64 { |
| 17932 | return ErrIntOverflowRpc |
| 17933 | } |
| 17934 | if iNdEx >= l { |
| 17935 | return io.ErrUnexpectedEOF |
| 17936 | } |
| 17937 | b := dAtA[iNdEx] |
| 17938 | iNdEx++ |
| 17939 | wire |= (uint64(b) & 0x7F) << shift |
| 17940 | if b < 0x80 { |
| 17941 | break |
| 17942 | } |
| 17943 | } |
| 17944 | fieldNum := int32(wire >> 3) |
| 17945 | wireType := int(wire & 0x7) |
| 17946 | if wireType == 4 { |
| 17947 | return fmt.Errorf("proto: AuthRoleDeleteRequest: wiretype end group for non-group") |
| 17948 | } |
| 17949 | if fieldNum <= 0 { |
| 17950 | return fmt.Errorf("proto: AuthRoleDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17951 | } |
| 17952 | switch fieldNum { |
| 17953 | case 1: |
| 17954 | if wireType != 2 { |
| 17955 | return fmt.Errorf("proto: wrong wireType = %d for field Role", 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.Role = 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 *AuthRoleGrantPermissionRequest) 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: AuthRoleGrantPermissionRequest: wiretype end group for non-group") |
| 18027 | } |
| 18028 | if fieldNum <= 0 { |
| 18029 | return fmt.Errorf("proto: AuthRoleGrantPermissionRequest: 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 Name", wireType) |
| 18035 | } |
| 18036 | var stringLen uint64 |
| 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 | stringLen |= (uint64(b) & 0x7F) << shift |
| 18047 | if b < 0x80 { |
| 18048 | break |
| 18049 | } |
| 18050 | } |
| 18051 | intStringLen := int(stringLen) |
| 18052 | if intStringLen < 0 { |
| 18053 | return ErrInvalidLengthRpc |
| 18054 | } |
| 18055 | postIndex := iNdEx + intStringLen |
| 18056 | if postIndex > l { |
| 18057 | return io.ErrUnexpectedEOF |
| 18058 | } |
| 18059 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 18060 | iNdEx = postIndex |
| 18061 | case 2: |
| 18062 | if wireType != 2 { |
| 18063 | return fmt.Errorf("proto: wrong wireType = %d for field Perm", wireType) |
| 18064 | } |
| 18065 | var msglen int |
| 18066 | for shift := uint(0); ; shift += 7 { |
| 18067 | if shift >= 64 { |
| 18068 | return ErrIntOverflowRpc |
| 18069 | } |
| 18070 | if iNdEx >= l { |
| 18071 | return io.ErrUnexpectedEOF |
| 18072 | } |
| 18073 | b := dAtA[iNdEx] |
| 18074 | iNdEx++ |
| 18075 | msglen |= (int(b) & 0x7F) << shift |
| 18076 | if b < 0x80 { |
| 18077 | break |
| 18078 | } |
| 18079 | } |
| 18080 | if msglen < 0 { |
| 18081 | return ErrInvalidLengthRpc |
| 18082 | } |
| 18083 | postIndex := iNdEx + msglen |
| 18084 | if postIndex > l { |
| 18085 | return io.ErrUnexpectedEOF |
| 18086 | } |
| 18087 | if m.Perm == nil { |
| 18088 | m.Perm = &authpb.Permission{} |
| 18089 | } |
| 18090 | if err := m.Perm.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18091 | return err |
| 18092 | } |
| 18093 | iNdEx = postIndex |
| 18094 | default: |
| 18095 | iNdEx = preIndex |
| 18096 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18097 | if err != nil { |
| 18098 | return err |
| 18099 | } |
| 18100 | if skippy < 0 { |
| 18101 | return ErrInvalidLengthRpc |
| 18102 | } |
| 18103 | if (iNdEx + skippy) > l { |
| 18104 | return io.ErrUnexpectedEOF |
| 18105 | } |
| 18106 | iNdEx += skippy |
| 18107 | } |
| 18108 | } |
| 18109 | |
| 18110 | if iNdEx > l { |
| 18111 | return io.ErrUnexpectedEOF |
| 18112 | } |
| 18113 | return nil |
| 18114 | } |
| 18115 | func (m *AuthRoleRevokePermissionRequest) Unmarshal(dAtA []byte) error { |
| 18116 | l := len(dAtA) |
| 18117 | iNdEx := 0 |
| 18118 | for iNdEx < l { |
| 18119 | preIndex := iNdEx |
| 18120 | var wire uint64 |
| 18121 | for shift := uint(0); ; shift += 7 { |
| 18122 | if shift >= 64 { |
| 18123 | return ErrIntOverflowRpc |
| 18124 | } |
| 18125 | if iNdEx >= l { |
| 18126 | return io.ErrUnexpectedEOF |
| 18127 | } |
| 18128 | b := dAtA[iNdEx] |
| 18129 | iNdEx++ |
| 18130 | wire |= (uint64(b) & 0x7F) << shift |
| 18131 | if b < 0x80 { |
| 18132 | break |
| 18133 | } |
| 18134 | } |
| 18135 | fieldNum := int32(wire >> 3) |
| 18136 | wireType := int(wire & 0x7) |
| 18137 | if wireType == 4 { |
| 18138 | return fmt.Errorf("proto: AuthRoleRevokePermissionRequest: wiretype end group for non-group") |
| 18139 | } |
| 18140 | if fieldNum <= 0 { |
| 18141 | return fmt.Errorf("proto: AuthRoleRevokePermissionRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18142 | } |
| 18143 | switch fieldNum { |
| 18144 | case 1: |
| 18145 | if wireType != 2 { |
| 18146 | return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) |
| 18147 | } |
| 18148 | var stringLen uint64 |
| 18149 | for shift := uint(0); ; shift += 7 { |
| 18150 | if shift >= 64 { |
| 18151 | return ErrIntOverflowRpc |
| 18152 | } |
| 18153 | if iNdEx >= l { |
| 18154 | return io.ErrUnexpectedEOF |
| 18155 | } |
| 18156 | b := dAtA[iNdEx] |
| 18157 | iNdEx++ |
| 18158 | stringLen |= (uint64(b) & 0x7F) << shift |
| 18159 | if b < 0x80 { |
| 18160 | break |
| 18161 | } |
| 18162 | } |
| 18163 | intStringLen := int(stringLen) |
| 18164 | if intStringLen < 0 { |
| 18165 | return ErrInvalidLengthRpc |
| 18166 | } |
| 18167 | postIndex := iNdEx + intStringLen |
| 18168 | if postIndex > l { |
| 18169 | return io.ErrUnexpectedEOF |
| 18170 | } |
| 18171 | m.Role = string(dAtA[iNdEx:postIndex]) |
| 18172 | iNdEx = postIndex |
| 18173 | case 2: |
| 18174 | if wireType != 2 { |
| 18175 | return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| 18176 | } |
| 18177 | var byteLen int |
| 18178 | for shift := uint(0); ; shift += 7 { |
| 18179 | if shift >= 64 { |
| 18180 | return ErrIntOverflowRpc |
| 18181 | } |
| 18182 | if iNdEx >= l { |
| 18183 | return io.ErrUnexpectedEOF |
| 18184 | } |
| 18185 | b := dAtA[iNdEx] |
| 18186 | iNdEx++ |
| 18187 | byteLen |= (int(b) & 0x7F) << shift |
| 18188 | if b < 0x80 { |
| 18189 | break |
| 18190 | } |
| 18191 | } |
| 18192 | if byteLen < 0 { |
| 18193 | return ErrInvalidLengthRpc |
| 18194 | } |
| 18195 | postIndex := iNdEx + byteLen |
| 18196 | if postIndex > l { |
| 18197 | return io.ErrUnexpectedEOF |
| 18198 | } |
| 18199 | m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) |
| 18200 | if m.Key == nil { |
| 18201 | m.Key = []byte{} |
| 18202 | } |
| 18203 | iNdEx = postIndex |
| 18204 | case 3: |
| 18205 | if wireType != 2 { |
| 18206 | return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType) |
| 18207 | } |
| 18208 | var byteLen int |
| 18209 | for shift := uint(0); ; shift += 7 { |
| 18210 | if shift >= 64 { |
| 18211 | return ErrIntOverflowRpc |
| 18212 | } |
| 18213 | if iNdEx >= l { |
| 18214 | return io.ErrUnexpectedEOF |
| 18215 | } |
| 18216 | b := dAtA[iNdEx] |
| 18217 | iNdEx++ |
| 18218 | byteLen |= (int(b) & 0x7F) << shift |
| 18219 | if b < 0x80 { |
| 18220 | break |
| 18221 | } |
| 18222 | } |
| 18223 | if byteLen < 0 { |
| 18224 | return ErrInvalidLengthRpc |
| 18225 | } |
| 18226 | postIndex := iNdEx + byteLen |
| 18227 | if postIndex > l { |
| 18228 | return io.ErrUnexpectedEOF |
| 18229 | } |
| 18230 | m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...) |
| 18231 | if m.RangeEnd == nil { |
| 18232 | m.RangeEnd = []byte{} |
| 18233 | } |
| 18234 | iNdEx = postIndex |
| 18235 | default: |
| 18236 | iNdEx = preIndex |
| 18237 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18238 | if err != nil { |
| 18239 | return err |
| 18240 | } |
| 18241 | if skippy < 0 { |
| 18242 | return ErrInvalidLengthRpc |
| 18243 | } |
| 18244 | if (iNdEx + skippy) > l { |
| 18245 | return io.ErrUnexpectedEOF |
| 18246 | } |
| 18247 | iNdEx += skippy |
| 18248 | } |
| 18249 | } |
| 18250 | |
| 18251 | if iNdEx > l { |
| 18252 | return io.ErrUnexpectedEOF |
| 18253 | } |
| 18254 | return nil |
| 18255 | } |
| 18256 | func (m *AuthEnableResponse) Unmarshal(dAtA []byte) error { |
| 18257 | l := len(dAtA) |
| 18258 | iNdEx := 0 |
| 18259 | for iNdEx < l { |
| 18260 | preIndex := iNdEx |
| 18261 | var wire uint64 |
| 18262 | for shift := uint(0); ; shift += 7 { |
| 18263 | if shift >= 64 { |
| 18264 | return ErrIntOverflowRpc |
| 18265 | } |
| 18266 | if iNdEx >= l { |
| 18267 | return io.ErrUnexpectedEOF |
| 18268 | } |
| 18269 | b := dAtA[iNdEx] |
| 18270 | iNdEx++ |
| 18271 | wire |= (uint64(b) & 0x7F) << shift |
| 18272 | if b < 0x80 { |
| 18273 | break |
| 18274 | } |
| 18275 | } |
| 18276 | fieldNum := int32(wire >> 3) |
| 18277 | wireType := int(wire & 0x7) |
| 18278 | if wireType == 4 { |
| 18279 | return fmt.Errorf("proto: AuthEnableResponse: wiretype end group for non-group") |
| 18280 | } |
| 18281 | if fieldNum <= 0 { |
| 18282 | return fmt.Errorf("proto: AuthEnableResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18283 | } |
| 18284 | switch fieldNum { |
| 18285 | case 1: |
| 18286 | if wireType != 2 { |
| 18287 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 18288 | } |
| 18289 | var msglen int |
| 18290 | for shift := uint(0); ; shift += 7 { |
| 18291 | if shift >= 64 { |
| 18292 | return ErrIntOverflowRpc |
| 18293 | } |
| 18294 | if iNdEx >= l { |
| 18295 | return io.ErrUnexpectedEOF |
| 18296 | } |
| 18297 | b := dAtA[iNdEx] |
| 18298 | iNdEx++ |
| 18299 | msglen |= (int(b) & 0x7F) << shift |
| 18300 | if b < 0x80 { |
| 18301 | break |
| 18302 | } |
| 18303 | } |
| 18304 | if msglen < 0 { |
| 18305 | return ErrInvalidLengthRpc |
| 18306 | } |
| 18307 | postIndex := iNdEx + msglen |
| 18308 | if postIndex > l { |
| 18309 | return io.ErrUnexpectedEOF |
| 18310 | } |
| 18311 | if m.Header == nil { |
| 18312 | m.Header = &ResponseHeader{} |
| 18313 | } |
| 18314 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18315 | return err |
| 18316 | } |
| 18317 | iNdEx = postIndex |
| 18318 | default: |
| 18319 | iNdEx = preIndex |
| 18320 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18321 | if err != nil { |
| 18322 | return err |
| 18323 | } |
| 18324 | if skippy < 0 { |
| 18325 | return ErrInvalidLengthRpc |
| 18326 | } |
| 18327 | if (iNdEx + skippy) > l { |
| 18328 | return io.ErrUnexpectedEOF |
| 18329 | } |
| 18330 | iNdEx += skippy |
| 18331 | } |
| 18332 | } |
| 18333 | |
| 18334 | if iNdEx > l { |
| 18335 | return io.ErrUnexpectedEOF |
| 18336 | } |
| 18337 | return nil |
| 18338 | } |
| 18339 | func (m *AuthDisableResponse) Unmarshal(dAtA []byte) error { |
| 18340 | l := len(dAtA) |
| 18341 | iNdEx := 0 |
| 18342 | for iNdEx < l { |
| 18343 | preIndex := iNdEx |
| 18344 | var wire uint64 |
| 18345 | for shift := uint(0); ; shift += 7 { |
| 18346 | if shift >= 64 { |
| 18347 | return ErrIntOverflowRpc |
| 18348 | } |
| 18349 | if iNdEx >= l { |
| 18350 | return io.ErrUnexpectedEOF |
| 18351 | } |
| 18352 | b := dAtA[iNdEx] |
| 18353 | iNdEx++ |
| 18354 | wire |= (uint64(b) & 0x7F) << shift |
| 18355 | if b < 0x80 { |
| 18356 | break |
| 18357 | } |
| 18358 | } |
| 18359 | fieldNum := int32(wire >> 3) |
| 18360 | wireType := int(wire & 0x7) |
| 18361 | if wireType == 4 { |
| 18362 | return fmt.Errorf("proto: AuthDisableResponse: wiretype end group for non-group") |
| 18363 | } |
| 18364 | if fieldNum <= 0 { |
| 18365 | return fmt.Errorf("proto: AuthDisableResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18366 | } |
| 18367 | switch fieldNum { |
| 18368 | case 1: |
| 18369 | if wireType != 2 { |
| 18370 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 18371 | } |
| 18372 | var msglen int |
| 18373 | for shift := uint(0); ; shift += 7 { |
| 18374 | if shift >= 64 { |
| 18375 | return ErrIntOverflowRpc |
| 18376 | } |
| 18377 | if iNdEx >= l { |
| 18378 | return io.ErrUnexpectedEOF |
| 18379 | } |
| 18380 | b := dAtA[iNdEx] |
| 18381 | iNdEx++ |
| 18382 | msglen |= (int(b) & 0x7F) << shift |
| 18383 | if b < 0x80 { |
| 18384 | break |
| 18385 | } |
| 18386 | } |
| 18387 | if msglen < 0 { |
| 18388 | return ErrInvalidLengthRpc |
| 18389 | } |
| 18390 | postIndex := iNdEx + msglen |
| 18391 | if postIndex > l { |
| 18392 | return io.ErrUnexpectedEOF |
| 18393 | } |
| 18394 | if m.Header == nil { |
| 18395 | m.Header = &ResponseHeader{} |
| 18396 | } |
| 18397 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18398 | return err |
| 18399 | } |
| 18400 | iNdEx = postIndex |
| 18401 | default: |
| 18402 | iNdEx = preIndex |
| 18403 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18404 | if err != nil { |
| 18405 | return err |
| 18406 | } |
| 18407 | if skippy < 0 { |
| 18408 | return ErrInvalidLengthRpc |
| 18409 | } |
| 18410 | if (iNdEx + skippy) > l { |
| 18411 | return io.ErrUnexpectedEOF |
| 18412 | } |
| 18413 | iNdEx += skippy |
| 18414 | } |
| 18415 | } |
| 18416 | |
| 18417 | if iNdEx > l { |
| 18418 | return io.ErrUnexpectedEOF |
| 18419 | } |
| 18420 | return nil |
| 18421 | } |
| 18422 | func (m *AuthenticateResponse) Unmarshal(dAtA []byte) error { |
| 18423 | l := len(dAtA) |
| 18424 | iNdEx := 0 |
| 18425 | for iNdEx < l { |
| 18426 | preIndex := iNdEx |
| 18427 | var wire uint64 |
| 18428 | for shift := uint(0); ; shift += 7 { |
| 18429 | if shift >= 64 { |
| 18430 | return ErrIntOverflowRpc |
| 18431 | } |
| 18432 | if iNdEx >= l { |
| 18433 | return io.ErrUnexpectedEOF |
| 18434 | } |
| 18435 | b := dAtA[iNdEx] |
| 18436 | iNdEx++ |
| 18437 | wire |= (uint64(b) & 0x7F) << shift |
| 18438 | if b < 0x80 { |
| 18439 | break |
| 18440 | } |
| 18441 | } |
| 18442 | fieldNum := int32(wire >> 3) |
| 18443 | wireType := int(wire & 0x7) |
| 18444 | if wireType == 4 { |
| 18445 | return fmt.Errorf("proto: AuthenticateResponse: wiretype end group for non-group") |
| 18446 | } |
| 18447 | if fieldNum <= 0 { |
| 18448 | return fmt.Errorf("proto: AuthenticateResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18449 | } |
| 18450 | switch fieldNum { |
| 18451 | case 1: |
| 18452 | if wireType != 2 { |
| 18453 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 18454 | } |
| 18455 | var msglen int |
| 18456 | for shift := uint(0); ; shift += 7 { |
| 18457 | if shift >= 64 { |
| 18458 | return ErrIntOverflowRpc |
| 18459 | } |
| 18460 | if iNdEx >= l { |
| 18461 | return io.ErrUnexpectedEOF |
| 18462 | } |
| 18463 | b := dAtA[iNdEx] |
| 18464 | iNdEx++ |
| 18465 | msglen |= (int(b) & 0x7F) << shift |
| 18466 | if b < 0x80 { |
| 18467 | break |
| 18468 | } |
| 18469 | } |
| 18470 | if msglen < 0 { |
| 18471 | return ErrInvalidLengthRpc |
| 18472 | } |
| 18473 | postIndex := iNdEx + msglen |
| 18474 | if postIndex > l { |
| 18475 | return io.ErrUnexpectedEOF |
| 18476 | } |
| 18477 | if m.Header == nil { |
| 18478 | m.Header = &ResponseHeader{} |
| 18479 | } |
| 18480 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18481 | return err |
| 18482 | } |
| 18483 | iNdEx = postIndex |
| 18484 | case 2: |
| 18485 | if wireType != 2 { |
| 18486 | return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) |
| 18487 | } |
| 18488 | var stringLen uint64 |
| 18489 | for shift := uint(0); ; shift += 7 { |
| 18490 | if shift >= 64 { |
| 18491 | return ErrIntOverflowRpc |
| 18492 | } |
| 18493 | if iNdEx >= l { |
| 18494 | return io.ErrUnexpectedEOF |
| 18495 | } |
| 18496 | b := dAtA[iNdEx] |
| 18497 | iNdEx++ |
| 18498 | stringLen |= (uint64(b) & 0x7F) << shift |
| 18499 | if b < 0x80 { |
| 18500 | break |
| 18501 | } |
| 18502 | } |
| 18503 | intStringLen := int(stringLen) |
| 18504 | if intStringLen < 0 { |
| 18505 | return ErrInvalidLengthRpc |
| 18506 | } |
| 18507 | postIndex := iNdEx + intStringLen |
| 18508 | if postIndex > l { |
| 18509 | return io.ErrUnexpectedEOF |
| 18510 | } |
| 18511 | m.Token = string(dAtA[iNdEx:postIndex]) |
| 18512 | iNdEx = postIndex |
| 18513 | default: |
| 18514 | iNdEx = preIndex |
| 18515 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18516 | if err != nil { |
| 18517 | return err |
| 18518 | } |
| 18519 | if skippy < 0 { |
| 18520 | return ErrInvalidLengthRpc |
| 18521 | } |
| 18522 | if (iNdEx + skippy) > l { |
| 18523 | return io.ErrUnexpectedEOF |
| 18524 | } |
| 18525 | iNdEx += skippy |
| 18526 | } |
| 18527 | } |
| 18528 | |
| 18529 | if iNdEx > l { |
| 18530 | return io.ErrUnexpectedEOF |
| 18531 | } |
| 18532 | return nil |
| 18533 | } |
| 18534 | func (m *AuthUserAddResponse) Unmarshal(dAtA []byte) error { |
| 18535 | l := len(dAtA) |
| 18536 | iNdEx := 0 |
| 18537 | for iNdEx < l { |
| 18538 | preIndex := iNdEx |
| 18539 | var wire uint64 |
| 18540 | for shift := uint(0); ; shift += 7 { |
| 18541 | if shift >= 64 { |
| 18542 | return ErrIntOverflowRpc |
| 18543 | } |
| 18544 | if iNdEx >= l { |
| 18545 | return io.ErrUnexpectedEOF |
| 18546 | } |
| 18547 | b := dAtA[iNdEx] |
| 18548 | iNdEx++ |
| 18549 | wire |= (uint64(b) & 0x7F) << shift |
| 18550 | if b < 0x80 { |
| 18551 | break |
| 18552 | } |
| 18553 | } |
| 18554 | fieldNum := int32(wire >> 3) |
| 18555 | wireType := int(wire & 0x7) |
| 18556 | if wireType == 4 { |
| 18557 | return fmt.Errorf("proto: AuthUserAddResponse: wiretype end group for non-group") |
| 18558 | } |
| 18559 | if fieldNum <= 0 { |
| 18560 | return fmt.Errorf("proto: AuthUserAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18561 | } |
| 18562 | switch fieldNum { |
| 18563 | case 1: |
| 18564 | if wireType != 2 { |
| 18565 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 18566 | } |
| 18567 | var msglen int |
| 18568 | for shift := uint(0); ; shift += 7 { |
| 18569 | if shift >= 64 { |
| 18570 | return ErrIntOverflowRpc |
| 18571 | } |
| 18572 | if iNdEx >= l { |
| 18573 | return io.ErrUnexpectedEOF |
| 18574 | } |
| 18575 | b := dAtA[iNdEx] |
| 18576 | iNdEx++ |
| 18577 | msglen |= (int(b) & 0x7F) << shift |
| 18578 | if b < 0x80 { |
| 18579 | break |
| 18580 | } |
| 18581 | } |
| 18582 | if msglen < 0 { |
| 18583 | return ErrInvalidLengthRpc |
| 18584 | } |
| 18585 | postIndex := iNdEx + msglen |
| 18586 | if postIndex > l { |
| 18587 | return io.ErrUnexpectedEOF |
| 18588 | } |
| 18589 | if m.Header == nil { |
| 18590 | m.Header = &ResponseHeader{} |
| 18591 | } |
| 18592 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18593 | return err |
| 18594 | } |
| 18595 | iNdEx = postIndex |
| 18596 | default: |
| 18597 | iNdEx = preIndex |
| 18598 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18599 | if err != nil { |
| 18600 | return err |
| 18601 | } |
| 18602 | if skippy < 0 { |
| 18603 | return ErrInvalidLengthRpc |
| 18604 | } |
| 18605 | if (iNdEx + skippy) > l { |
| 18606 | return io.ErrUnexpectedEOF |
| 18607 | } |
| 18608 | iNdEx += skippy |
| 18609 | } |
| 18610 | } |
| 18611 | |
| 18612 | if iNdEx > l { |
| 18613 | return io.ErrUnexpectedEOF |
| 18614 | } |
| 18615 | return nil |
| 18616 | } |
| 18617 | func (m *AuthUserGetResponse) Unmarshal(dAtA []byte) error { |
| 18618 | l := len(dAtA) |
| 18619 | iNdEx := 0 |
| 18620 | for iNdEx < l { |
| 18621 | preIndex := iNdEx |
| 18622 | var wire uint64 |
| 18623 | for shift := uint(0); ; shift += 7 { |
| 18624 | if shift >= 64 { |
| 18625 | return ErrIntOverflowRpc |
| 18626 | } |
| 18627 | if iNdEx >= l { |
| 18628 | return io.ErrUnexpectedEOF |
| 18629 | } |
| 18630 | b := dAtA[iNdEx] |
| 18631 | iNdEx++ |
| 18632 | wire |= (uint64(b) & 0x7F) << shift |
| 18633 | if b < 0x80 { |
| 18634 | break |
| 18635 | } |
| 18636 | } |
| 18637 | fieldNum := int32(wire >> 3) |
| 18638 | wireType := int(wire & 0x7) |
| 18639 | if wireType == 4 { |
| 18640 | return fmt.Errorf("proto: AuthUserGetResponse: wiretype end group for non-group") |
| 18641 | } |
| 18642 | if fieldNum <= 0 { |
| 18643 | return fmt.Errorf("proto: AuthUserGetResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18644 | } |
| 18645 | switch fieldNum { |
| 18646 | case 1: |
| 18647 | if wireType != 2 { |
| 18648 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 18649 | } |
| 18650 | var msglen int |
| 18651 | for shift := uint(0); ; shift += 7 { |
| 18652 | if shift >= 64 { |
| 18653 | return ErrIntOverflowRpc |
| 18654 | } |
| 18655 | if iNdEx >= l { |
| 18656 | return io.ErrUnexpectedEOF |
| 18657 | } |
| 18658 | b := dAtA[iNdEx] |
| 18659 | iNdEx++ |
| 18660 | msglen |= (int(b) & 0x7F) << shift |
| 18661 | if b < 0x80 { |
| 18662 | break |
| 18663 | } |
| 18664 | } |
| 18665 | if msglen < 0 { |
| 18666 | return ErrInvalidLengthRpc |
| 18667 | } |
| 18668 | postIndex := iNdEx + msglen |
| 18669 | if postIndex > l { |
| 18670 | return io.ErrUnexpectedEOF |
| 18671 | } |
| 18672 | if m.Header == nil { |
| 18673 | m.Header = &ResponseHeader{} |
| 18674 | } |
| 18675 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18676 | return err |
| 18677 | } |
| 18678 | iNdEx = postIndex |
| 18679 | case 2: |
| 18680 | if wireType != 2 { |
| 18681 | return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType) |
| 18682 | } |
| 18683 | var stringLen uint64 |
| 18684 | for shift := uint(0); ; shift += 7 { |
| 18685 | if shift >= 64 { |
| 18686 | return ErrIntOverflowRpc |
| 18687 | } |
| 18688 | if iNdEx >= l { |
| 18689 | return io.ErrUnexpectedEOF |
| 18690 | } |
| 18691 | b := dAtA[iNdEx] |
| 18692 | iNdEx++ |
| 18693 | stringLen |= (uint64(b) & 0x7F) << shift |
| 18694 | if b < 0x80 { |
| 18695 | break |
| 18696 | } |
| 18697 | } |
| 18698 | intStringLen := int(stringLen) |
| 18699 | if intStringLen < 0 { |
| 18700 | return ErrInvalidLengthRpc |
| 18701 | } |
| 18702 | postIndex := iNdEx + intStringLen |
| 18703 | if postIndex > l { |
| 18704 | return io.ErrUnexpectedEOF |
| 18705 | } |
| 18706 | m.Roles = append(m.Roles, string(dAtA[iNdEx:postIndex])) |
| 18707 | iNdEx = postIndex |
| 18708 | default: |
| 18709 | iNdEx = preIndex |
| 18710 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18711 | if err != nil { |
| 18712 | return err |
| 18713 | } |
| 18714 | if skippy < 0 { |
| 18715 | return ErrInvalidLengthRpc |
| 18716 | } |
| 18717 | if (iNdEx + skippy) > l { |
| 18718 | return io.ErrUnexpectedEOF |
| 18719 | } |
| 18720 | iNdEx += skippy |
| 18721 | } |
| 18722 | } |
| 18723 | |
| 18724 | if iNdEx > l { |
| 18725 | return io.ErrUnexpectedEOF |
| 18726 | } |
| 18727 | return nil |
| 18728 | } |
| 18729 | func (m *AuthUserDeleteResponse) Unmarshal(dAtA []byte) error { |
| 18730 | l := len(dAtA) |
| 18731 | iNdEx := 0 |
| 18732 | for iNdEx < l { |
| 18733 | preIndex := iNdEx |
| 18734 | var wire uint64 |
| 18735 | for shift := uint(0); ; shift += 7 { |
| 18736 | if shift >= 64 { |
| 18737 | return ErrIntOverflowRpc |
| 18738 | } |
| 18739 | if iNdEx >= l { |
| 18740 | return io.ErrUnexpectedEOF |
| 18741 | } |
| 18742 | b := dAtA[iNdEx] |
| 18743 | iNdEx++ |
| 18744 | wire |= (uint64(b) & 0x7F) << shift |
| 18745 | if b < 0x80 { |
| 18746 | break |
| 18747 | } |
| 18748 | } |
| 18749 | fieldNum := int32(wire >> 3) |
| 18750 | wireType := int(wire & 0x7) |
| 18751 | if wireType == 4 { |
| 18752 | return fmt.Errorf("proto: AuthUserDeleteResponse: wiretype end group for non-group") |
| 18753 | } |
| 18754 | if fieldNum <= 0 { |
| 18755 | return fmt.Errorf("proto: AuthUserDeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18756 | } |
| 18757 | switch fieldNum { |
| 18758 | case 1: |
| 18759 | if wireType != 2 { |
| 18760 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 18761 | } |
| 18762 | var msglen int |
| 18763 | for shift := uint(0); ; shift += 7 { |
| 18764 | if shift >= 64 { |
| 18765 | return ErrIntOverflowRpc |
| 18766 | } |
| 18767 | if iNdEx >= l { |
| 18768 | return io.ErrUnexpectedEOF |
| 18769 | } |
| 18770 | b := dAtA[iNdEx] |
| 18771 | iNdEx++ |
| 18772 | msglen |= (int(b) & 0x7F) << shift |
| 18773 | if b < 0x80 { |
| 18774 | break |
| 18775 | } |
| 18776 | } |
| 18777 | if msglen < 0 { |
| 18778 | return ErrInvalidLengthRpc |
| 18779 | } |
| 18780 | postIndex := iNdEx + msglen |
| 18781 | if postIndex > l { |
| 18782 | return io.ErrUnexpectedEOF |
| 18783 | } |
| 18784 | if m.Header == nil { |
| 18785 | m.Header = &ResponseHeader{} |
| 18786 | } |
| 18787 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18788 | return err |
| 18789 | } |
| 18790 | iNdEx = postIndex |
| 18791 | default: |
| 18792 | iNdEx = preIndex |
| 18793 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18794 | if err != nil { |
| 18795 | return err |
| 18796 | } |
| 18797 | if skippy < 0 { |
| 18798 | return ErrInvalidLengthRpc |
| 18799 | } |
| 18800 | if (iNdEx + skippy) > l { |
| 18801 | return io.ErrUnexpectedEOF |
| 18802 | } |
| 18803 | iNdEx += skippy |
| 18804 | } |
| 18805 | } |
| 18806 | |
| 18807 | if iNdEx > l { |
| 18808 | return io.ErrUnexpectedEOF |
| 18809 | } |
| 18810 | return nil |
| 18811 | } |
| 18812 | func (m *AuthUserChangePasswordResponse) Unmarshal(dAtA []byte) error { |
| 18813 | l := len(dAtA) |
| 18814 | iNdEx := 0 |
| 18815 | for iNdEx < l { |
| 18816 | preIndex := iNdEx |
| 18817 | var wire uint64 |
| 18818 | for shift := uint(0); ; shift += 7 { |
| 18819 | if shift >= 64 { |
| 18820 | return ErrIntOverflowRpc |
| 18821 | } |
| 18822 | if iNdEx >= l { |
| 18823 | return io.ErrUnexpectedEOF |
| 18824 | } |
| 18825 | b := dAtA[iNdEx] |
| 18826 | iNdEx++ |
| 18827 | wire |= (uint64(b) & 0x7F) << shift |
| 18828 | if b < 0x80 { |
| 18829 | break |
| 18830 | } |
| 18831 | } |
| 18832 | fieldNum := int32(wire >> 3) |
| 18833 | wireType := int(wire & 0x7) |
| 18834 | if wireType == 4 { |
| 18835 | return fmt.Errorf("proto: AuthUserChangePasswordResponse: wiretype end group for non-group") |
| 18836 | } |
| 18837 | if fieldNum <= 0 { |
| 18838 | return fmt.Errorf("proto: AuthUserChangePasswordResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18839 | } |
| 18840 | switch fieldNum { |
| 18841 | case 1: |
| 18842 | if wireType != 2 { |
| 18843 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 18844 | } |
| 18845 | var msglen int |
| 18846 | for shift := uint(0); ; shift += 7 { |
| 18847 | if shift >= 64 { |
| 18848 | return ErrIntOverflowRpc |
| 18849 | } |
| 18850 | if iNdEx >= l { |
| 18851 | return io.ErrUnexpectedEOF |
| 18852 | } |
| 18853 | b := dAtA[iNdEx] |
| 18854 | iNdEx++ |
| 18855 | msglen |= (int(b) & 0x7F) << shift |
| 18856 | if b < 0x80 { |
| 18857 | break |
| 18858 | } |
| 18859 | } |
| 18860 | if msglen < 0 { |
| 18861 | return ErrInvalidLengthRpc |
| 18862 | } |
| 18863 | postIndex := iNdEx + msglen |
| 18864 | if postIndex > l { |
| 18865 | return io.ErrUnexpectedEOF |
| 18866 | } |
| 18867 | if m.Header == nil { |
| 18868 | m.Header = &ResponseHeader{} |
| 18869 | } |
| 18870 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18871 | return err |
| 18872 | } |
| 18873 | iNdEx = postIndex |
| 18874 | default: |
| 18875 | iNdEx = preIndex |
| 18876 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18877 | if err != nil { |
| 18878 | return err |
| 18879 | } |
| 18880 | if skippy < 0 { |
| 18881 | return ErrInvalidLengthRpc |
| 18882 | } |
| 18883 | if (iNdEx + skippy) > l { |
| 18884 | return io.ErrUnexpectedEOF |
| 18885 | } |
| 18886 | iNdEx += skippy |
| 18887 | } |
| 18888 | } |
| 18889 | |
| 18890 | if iNdEx > l { |
| 18891 | return io.ErrUnexpectedEOF |
| 18892 | } |
| 18893 | return nil |
| 18894 | } |
| 18895 | func (m *AuthUserGrantRoleResponse) Unmarshal(dAtA []byte) error { |
| 18896 | l := len(dAtA) |
| 18897 | iNdEx := 0 |
| 18898 | for iNdEx < l { |
| 18899 | preIndex := iNdEx |
| 18900 | var wire uint64 |
| 18901 | for shift := uint(0); ; shift += 7 { |
| 18902 | if shift >= 64 { |
| 18903 | return ErrIntOverflowRpc |
| 18904 | } |
| 18905 | if iNdEx >= l { |
| 18906 | return io.ErrUnexpectedEOF |
| 18907 | } |
| 18908 | b := dAtA[iNdEx] |
| 18909 | iNdEx++ |
| 18910 | wire |= (uint64(b) & 0x7F) << shift |
| 18911 | if b < 0x80 { |
| 18912 | break |
| 18913 | } |
| 18914 | } |
| 18915 | fieldNum := int32(wire >> 3) |
| 18916 | wireType := int(wire & 0x7) |
| 18917 | if wireType == 4 { |
| 18918 | return fmt.Errorf("proto: AuthUserGrantRoleResponse: wiretype end group for non-group") |
| 18919 | } |
| 18920 | if fieldNum <= 0 { |
| 18921 | return fmt.Errorf("proto: AuthUserGrantRoleResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18922 | } |
| 18923 | switch fieldNum { |
| 18924 | case 1: |
| 18925 | if wireType != 2 { |
| 18926 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 18927 | } |
| 18928 | var msglen int |
| 18929 | for shift := uint(0); ; shift += 7 { |
| 18930 | if shift >= 64 { |
| 18931 | return ErrIntOverflowRpc |
| 18932 | } |
| 18933 | if iNdEx >= l { |
| 18934 | return io.ErrUnexpectedEOF |
| 18935 | } |
| 18936 | b := dAtA[iNdEx] |
| 18937 | iNdEx++ |
| 18938 | msglen |= (int(b) & 0x7F) << shift |
| 18939 | if b < 0x80 { |
| 18940 | break |
| 18941 | } |
| 18942 | } |
| 18943 | if msglen < 0 { |
| 18944 | return ErrInvalidLengthRpc |
| 18945 | } |
| 18946 | postIndex := iNdEx + msglen |
| 18947 | if postIndex > l { |
| 18948 | return io.ErrUnexpectedEOF |
| 18949 | } |
| 18950 | if m.Header == nil { |
| 18951 | m.Header = &ResponseHeader{} |
| 18952 | } |
| 18953 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18954 | return err |
| 18955 | } |
| 18956 | iNdEx = postIndex |
| 18957 | default: |
| 18958 | iNdEx = preIndex |
| 18959 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18960 | if err != nil { |
| 18961 | return err |
| 18962 | } |
| 18963 | if skippy < 0 { |
| 18964 | return ErrInvalidLengthRpc |
| 18965 | } |
| 18966 | if (iNdEx + skippy) > l { |
| 18967 | return io.ErrUnexpectedEOF |
| 18968 | } |
| 18969 | iNdEx += skippy |
| 18970 | } |
| 18971 | } |
| 18972 | |
| 18973 | if iNdEx > l { |
| 18974 | return io.ErrUnexpectedEOF |
| 18975 | } |
| 18976 | return nil |
| 18977 | } |
| 18978 | func (m *AuthUserRevokeRoleResponse) Unmarshal(dAtA []byte) error { |
| 18979 | l := len(dAtA) |
| 18980 | iNdEx := 0 |
| 18981 | for iNdEx < l { |
| 18982 | preIndex := iNdEx |
| 18983 | var wire uint64 |
| 18984 | for shift := uint(0); ; shift += 7 { |
| 18985 | if shift >= 64 { |
| 18986 | return ErrIntOverflowRpc |
| 18987 | } |
| 18988 | if iNdEx >= l { |
| 18989 | return io.ErrUnexpectedEOF |
| 18990 | } |
| 18991 | b := dAtA[iNdEx] |
| 18992 | iNdEx++ |
| 18993 | wire |= (uint64(b) & 0x7F) << shift |
| 18994 | if b < 0x80 { |
| 18995 | break |
| 18996 | } |
| 18997 | } |
| 18998 | fieldNum := int32(wire >> 3) |
| 18999 | wireType := int(wire & 0x7) |
| 19000 | if wireType == 4 { |
| 19001 | return fmt.Errorf("proto: AuthUserRevokeRoleResponse: wiretype end group for non-group") |
| 19002 | } |
| 19003 | if fieldNum <= 0 { |
| 19004 | return fmt.Errorf("proto: AuthUserRevokeRoleResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 19005 | } |
| 19006 | switch fieldNum { |
| 19007 | case 1: |
| 19008 | if wireType != 2 { |
| 19009 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 19010 | } |
| 19011 | var msglen int |
| 19012 | for shift := uint(0); ; shift += 7 { |
| 19013 | if shift >= 64 { |
| 19014 | return ErrIntOverflowRpc |
| 19015 | } |
| 19016 | if iNdEx >= l { |
| 19017 | return io.ErrUnexpectedEOF |
| 19018 | } |
| 19019 | b := dAtA[iNdEx] |
| 19020 | iNdEx++ |
| 19021 | msglen |= (int(b) & 0x7F) << shift |
| 19022 | if b < 0x80 { |
| 19023 | break |
| 19024 | } |
| 19025 | } |
| 19026 | if msglen < 0 { |
| 19027 | return ErrInvalidLengthRpc |
| 19028 | } |
| 19029 | postIndex := iNdEx + msglen |
| 19030 | if postIndex > l { |
| 19031 | return io.ErrUnexpectedEOF |
| 19032 | } |
| 19033 | if m.Header == nil { |
| 19034 | m.Header = &ResponseHeader{} |
| 19035 | } |
| 19036 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 19037 | return err |
| 19038 | } |
| 19039 | iNdEx = postIndex |
| 19040 | default: |
| 19041 | iNdEx = preIndex |
| 19042 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 19043 | if err != nil { |
| 19044 | return err |
| 19045 | } |
| 19046 | if skippy < 0 { |
| 19047 | return ErrInvalidLengthRpc |
| 19048 | } |
| 19049 | if (iNdEx + skippy) > l { |
| 19050 | return io.ErrUnexpectedEOF |
| 19051 | } |
| 19052 | iNdEx += skippy |
| 19053 | } |
| 19054 | } |
| 19055 | |
| 19056 | if iNdEx > l { |
| 19057 | return io.ErrUnexpectedEOF |
| 19058 | } |
| 19059 | return nil |
| 19060 | } |
| 19061 | func (m *AuthRoleAddResponse) Unmarshal(dAtA []byte) error { |
| 19062 | l := len(dAtA) |
| 19063 | iNdEx := 0 |
| 19064 | for iNdEx < l { |
| 19065 | preIndex := iNdEx |
| 19066 | var wire uint64 |
| 19067 | for shift := uint(0); ; shift += 7 { |
| 19068 | if shift >= 64 { |
| 19069 | return ErrIntOverflowRpc |
| 19070 | } |
| 19071 | if iNdEx >= l { |
| 19072 | return io.ErrUnexpectedEOF |
| 19073 | } |
| 19074 | b := dAtA[iNdEx] |
| 19075 | iNdEx++ |
| 19076 | wire |= (uint64(b) & 0x7F) << shift |
| 19077 | if b < 0x80 { |
| 19078 | break |
| 19079 | } |
| 19080 | } |
| 19081 | fieldNum := int32(wire >> 3) |
| 19082 | wireType := int(wire & 0x7) |
| 19083 | if wireType == 4 { |
| 19084 | return fmt.Errorf("proto: AuthRoleAddResponse: wiretype end group for non-group") |
| 19085 | } |
| 19086 | if fieldNum <= 0 { |
| 19087 | return fmt.Errorf("proto: AuthRoleAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 19088 | } |
| 19089 | switch fieldNum { |
| 19090 | case 1: |
| 19091 | if wireType != 2 { |
| 19092 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 19093 | } |
| 19094 | var msglen int |
| 19095 | for shift := uint(0); ; shift += 7 { |
| 19096 | if shift >= 64 { |
| 19097 | return ErrIntOverflowRpc |
| 19098 | } |
| 19099 | if iNdEx >= l { |
| 19100 | return io.ErrUnexpectedEOF |
| 19101 | } |
| 19102 | b := dAtA[iNdEx] |
| 19103 | iNdEx++ |
| 19104 | msglen |= (int(b) & 0x7F) << shift |
| 19105 | if b < 0x80 { |
| 19106 | break |
| 19107 | } |
| 19108 | } |
| 19109 | if msglen < 0 { |
| 19110 | return ErrInvalidLengthRpc |
| 19111 | } |
| 19112 | postIndex := iNdEx + msglen |
| 19113 | if postIndex > l { |
| 19114 | return io.ErrUnexpectedEOF |
| 19115 | } |
| 19116 | if m.Header == nil { |
| 19117 | m.Header = &ResponseHeader{} |
| 19118 | } |
| 19119 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 19120 | return err |
| 19121 | } |
| 19122 | iNdEx = postIndex |
| 19123 | default: |
| 19124 | iNdEx = preIndex |
| 19125 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 19126 | if err != nil { |
| 19127 | return err |
| 19128 | } |
| 19129 | if skippy < 0 { |
| 19130 | return ErrInvalidLengthRpc |
| 19131 | } |
| 19132 | if (iNdEx + skippy) > l { |
| 19133 | return io.ErrUnexpectedEOF |
| 19134 | } |
| 19135 | iNdEx += skippy |
| 19136 | } |
| 19137 | } |
| 19138 | |
| 19139 | if iNdEx > l { |
| 19140 | return io.ErrUnexpectedEOF |
| 19141 | } |
| 19142 | return nil |
| 19143 | } |
| 19144 | func (m *AuthRoleGetResponse) Unmarshal(dAtA []byte) error { |
| 19145 | l := len(dAtA) |
| 19146 | iNdEx := 0 |
| 19147 | for iNdEx < l { |
| 19148 | preIndex := iNdEx |
| 19149 | var wire uint64 |
| 19150 | for shift := uint(0); ; shift += 7 { |
| 19151 | if shift >= 64 { |
| 19152 | return ErrIntOverflowRpc |
| 19153 | } |
| 19154 | if iNdEx >= l { |
| 19155 | return io.ErrUnexpectedEOF |
| 19156 | } |
| 19157 | b := dAtA[iNdEx] |
| 19158 | iNdEx++ |
| 19159 | wire |= (uint64(b) & 0x7F) << shift |
| 19160 | if b < 0x80 { |
| 19161 | break |
| 19162 | } |
| 19163 | } |
| 19164 | fieldNum := int32(wire >> 3) |
| 19165 | wireType := int(wire & 0x7) |
| 19166 | if wireType == 4 { |
| 19167 | return fmt.Errorf("proto: AuthRoleGetResponse: wiretype end group for non-group") |
| 19168 | } |
| 19169 | if fieldNum <= 0 { |
| 19170 | return fmt.Errorf("proto: AuthRoleGetResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 19171 | } |
| 19172 | switch fieldNum { |
| 19173 | case 1: |
| 19174 | if wireType != 2 { |
| 19175 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 19176 | } |
| 19177 | var msglen int |
| 19178 | for shift := uint(0); ; shift += 7 { |
| 19179 | if shift >= 64 { |
| 19180 | return ErrIntOverflowRpc |
| 19181 | } |
| 19182 | if iNdEx >= l { |
| 19183 | return io.ErrUnexpectedEOF |
| 19184 | } |
| 19185 | b := dAtA[iNdEx] |
| 19186 | iNdEx++ |
| 19187 | msglen |= (int(b) & 0x7F) << shift |
| 19188 | if b < 0x80 { |
| 19189 | break |
| 19190 | } |
| 19191 | } |
| 19192 | if msglen < 0 { |
| 19193 | return ErrInvalidLengthRpc |
| 19194 | } |
| 19195 | postIndex := iNdEx + msglen |
| 19196 | if postIndex > l { |
| 19197 | return io.ErrUnexpectedEOF |
| 19198 | } |
| 19199 | if m.Header == nil { |
| 19200 | m.Header = &ResponseHeader{} |
| 19201 | } |
| 19202 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 19203 | return err |
| 19204 | } |
| 19205 | iNdEx = postIndex |
| 19206 | case 2: |
| 19207 | if wireType != 2 { |
| 19208 | return fmt.Errorf("proto: wrong wireType = %d for field Perm", wireType) |
| 19209 | } |
| 19210 | var msglen int |
| 19211 | for shift := uint(0); ; shift += 7 { |
| 19212 | if shift >= 64 { |
| 19213 | return ErrIntOverflowRpc |
| 19214 | } |
| 19215 | if iNdEx >= l { |
| 19216 | return io.ErrUnexpectedEOF |
| 19217 | } |
| 19218 | b := dAtA[iNdEx] |
| 19219 | iNdEx++ |
| 19220 | msglen |= (int(b) & 0x7F) << shift |
| 19221 | if b < 0x80 { |
| 19222 | break |
| 19223 | } |
| 19224 | } |
| 19225 | if msglen < 0 { |
| 19226 | return ErrInvalidLengthRpc |
| 19227 | } |
| 19228 | postIndex := iNdEx + msglen |
| 19229 | if postIndex > l { |
| 19230 | return io.ErrUnexpectedEOF |
| 19231 | } |
| 19232 | m.Perm = append(m.Perm, &authpb.Permission{}) |
| 19233 | if err := m.Perm[len(m.Perm)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 19234 | return err |
| 19235 | } |
| 19236 | iNdEx = postIndex |
| 19237 | default: |
| 19238 | iNdEx = preIndex |
| 19239 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 19240 | if err != nil { |
| 19241 | return err |
| 19242 | } |
| 19243 | if skippy < 0 { |
| 19244 | return ErrInvalidLengthRpc |
| 19245 | } |
| 19246 | if (iNdEx + skippy) > l { |
| 19247 | return io.ErrUnexpectedEOF |
| 19248 | } |
| 19249 | iNdEx += skippy |
| 19250 | } |
| 19251 | } |
| 19252 | |
| 19253 | if iNdEx > l { |
| 19254 | return io.ErrUnexpectedEOF |
| 19255 | } |
| 19256 | return nil |
| 19257 | } |
| 19258 | func (m *AuthRoleListResponse) Unmarshal(dAtA []byte) error { |
| 19259 | l := len(dAtA) |
| 19260 | iNdEx := 0 |
| 19261 | for iNdEx < l { |
| 19262 | preIndex := iNdEx |
| 19263 | var wire uint64 |
| 19264 | for shift := uint(0); ; shift += 7 { |
| 19265 | if shift >= 64 { |
| 19266 | return ErrIntOverflowRpc |
| 19267 | } |
| 19268 | if iNdEx >= l { |
| 19269 | return io.ErrUnexpectedEOF |
| 19270 | } |
| 19271 | b := dAtA[iNdEx] |
| 19272 | iNdEx++ |
| 19273 | wire |= (uint64(b) & 0x7F) << shift |
| 19274 | if b < 0x80 { |
| 19275 | break |
| 19276 | } |
| 19277 | } |
| 19278 | fieldNum := int32(wire >> 3) |
| 19279 | wireType := int(wire & 0x7) |
| 19280 | if wireType == 4 { |
| 19281 | return fmt.Errorf("proto: AuthRoleListResponse: wiretype end group for non-group") |
| 19282 | } |
| 19283 | if fieldNum <= 0 { |
| 19284 | return fmt.Errorf("proto: AuthRoleListResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 19285 | } |
| 19286 | switch fieldNum { |
| 19287 | case 1: |
| 19288 | if wireType != 2 { |
| 19289 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 19290 | } |
| 19291 | var msglen int |
| 19292 | for shift := uint(0); ; shift += 7 { |
| 19293 | if shift >= 64 { |
| 19294 | return ErrIntOverflowRpc |
| 19295 | } |
| 19296 | if iNdEx >= l { |
| 19297 | return io.ErrUnexpectedEOF |
| 19298 | } |
| 19299 | b := dAtA[iNdEx] |
| 19300 | iNdEx++ |
| 19301 | msglen |= (int(b) & 0x7F) << shift |
| 19302 | if b < 0x80 { |
| 19303 | break |
| 19304 | } |
| 19305 | } |
| 19306 | if msglen < 0 { |
| 19307 | return ErrInvalidLengthRpc |
| 19308 | } |
| 19309 | postIndex := iNdEx + msglen |
| 19310 | if postIndex > l { |
| 19311 | return io.ErrUnexpectedEOF |
| 19312 | } |
| 19313 | if m.Header == nil { |
| 19314 | m.Header = &ResponseHeader{} |
| 19315 | } |
| 19316 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 19317 | return err |
| 19318 | } |
| 19319 | iNdEx = postIndex |
| 19320 | case 2: |
| 19321 | if wireType != 2 { |
| 19322 | return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType) |
| 19323 | } |
| 19324 | var stringLen uint64 |
| 19325 | for shift := uint(0); ; shift += 7 { |
| 19326 | if shift >= 64 { |
| 19327 | return ErrIntOverflowRpc |
| 19328 | } |
| 19329 | if iNdEx >= l { |
| 19330 | return io.ErrUnexpectedEOF |
| 19331 | } |
| 19332 | b := dAtA[iNdEx] |
| 19333 | iNdEx++ |
| 19334 | stringLen |= (uint64(b) & 0x7F) << shift |
| 19335 | if b < 0x80 { |
| 19336 | break |
| 19337 | } |
| 19338 | } |
| 19339 | intStringLen := int(stringLen) |
| 19340 | if intStringLen < 0 { |
| 19341 | return ErrInvalidLengthRpc |
| 19342 | } |
| 19343 | postIndex := iNdEx + intStringLen |
| 19344 | if postIndex > l { |
| 19345 | return io.ErrUnexpectedEOF |
| 19346 | } |
| 19347 | m.Roles = append(m.Roles, string(dAtA[iNdEx:postIndex])) |
| 19348 | iNdEx = postIndex |
| 19349 | default: |
| 19350 | iNdEx = preIndex |
| 19351 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 19352 | if err != nil { |
| 19353 | return err |
| 19354 | } |
| 19355 | if skippy < 0 { |
| 19356 | return ErrInvalidLengthRpc |
| 19357 | } |
| 19358 | if (iNdEx + skippy) > l { |
| 19359 | return io.ErrUnexpectedEOF |
| 19360 | } |
| 19361 | iNdEx += skippy |
| 19362 | } |
| 19363 | } |
| 19364 | |
| 19365 | if iNdEx > l { |
| 19366 | return io.ErrUnexpectedEOF |
| 19367 | } |
| 19368 | return nil |
| 19369 | } |
| 19370 | func (m *AuthUserListResponse) Unmarshal(dAtA []byte) error { |
| 19371 | l := len(dAtA) |
| 19372 | iNdEx := 0 |
| 19373 | for iNdEx < l { |
| 19374 | preIndex := iNdEx |
| 19375 | var wire uint64 |
| 19376 | for shift := uint(0); ; shift += 7 { |
| 19377 | if shift >= 64 { |
| 19378 | return ErrIntOverflowRpc |
| 19379 | } |
| 19380 | if iNdEx >= l { |
| 19381 | return io.ErrUnexpectedEOF |
| 19382 | } |
| 19383 | b := dAtA[iNdEx] |
| 19384 | iNdEx++ |
| 19385 | wire |= (uint64(b) & 0x7F) << shift |
| 19386 | if b < 0x80 { |
| 19387 | break |
| 19388 | } |
| 19389 | } |
| 19390 | fieldNum := int32(wire >> 3) |
| 19391 | wireType := int(wire & 0x7) |
| 19392 | if wireType == 4 { |
| 19393 | return fmt.Errorf("proto: AuthUserListResponse: wiretype end group for non-group") |
| 19394 | } |
| 19395 | if fieldNum <= 0 { |
| 19396 | return fmt.Errorf("proto: AuthUserListResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 19397 | } |
| 19398 | switch fieldNum { |
| 19399 | case 1: |
| 19400 | if wireType != 2 { |
| 19401 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 19402 | } |
| 19403 | var msglen int |
| 19404 | for shift := uint(0); ; shift += 7 { |
| 19405 | if shift >= 64 { |
| 19406 | return ErrIntOverflowRpc |
| 19407 | } |
| 19408 | if iNdEx >= l { |
| 19409 | return io.ErrUnexpectedEOF |
| 19410 | } |
| 19411 | b := dAtA[iNdEx] |
| 19412 | iNdEx++ |
| 19413 | msglen |= (int(b) & 0x7F) << shift |
| 19414 | if b < 0x80 { |
| 19415 | break |
| 19416 | } |
| 19417 | } |
| 19418 | if msglen < 0 { |
| 19419 | return ErrInvalidLengthRpc |
| 19420 | } |
| 19421 | postIndex := iNdEx + msglen |
| 19422 | if postIndex > l { |
| 19423 | return io.ErrUnexpectedEOF |
| 19424 | } |
| 19425 | if m.Header == nil { |
| 19426 | m.Header = &ResponseHeader{} |
| 19427 | } |
| 19428 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 19429 | return err |
| 19430 | } |
| 19431 | iNdEx = postIndex |
| 19432 | case 2: |
| 19433 | if wireType != 2 { |
| 19434 | return fmt.Errorf("proto: wrong wireType = %d for field Users", wireType) |
| 19435 | } |
| 19436 | var stringLen uint64 |
| 19437 | for shift := uint(0); ; shift += 7 { |
| 19438 | if shift >= 64 { |
| 19439 | return ErrIntOverflowRpc |
| 19440 | } |
| 19441 | if iNdEx >= l { |
| 19442 | return io.ErrUnexpectedEOF |
| 19443 | } |
| 19444 | b := dAtA[iNdEx] |
| 19445 | iNdEx++ |
| 19446 | stringLen |= (uint64(b) & 0x7F) << shift |
| 19447 | if b < 0x80 { |
| 19448 | break |
| 19449 | } |
| 19450 | } |
| 19451 | intStringLen := int(stringLen) |
| 19452 | if intStringLen < 0 { |
| 19453 | return ErrInvalidLengthRpc |
| 19454 | } |
| 19455 | postIndex := iNdEx + intStringLen |
| 19456 | if postIndex > l { |
| 19457 | return io.ErrUnexpectedEOF |
| 19458 | } |
| 19459 | m.Users = append(m.Users, string(dAtA[iNdEx:postIndex])) |
| 19460 | iNdEx = postIndex |
| 19461 | default: |
| 19462 | iNdEx = preIndex |
| 19463 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 19464 | if err != nil { |
| 19465 | return err |
| 19466 | } |
| 19467 | if skippy < 0 { |
| 19468 | return ErrInvalidLengthRpc |
| 19469 | } |
| 19470 | if (iNdEx + skippy) > l { |
| 19471 | return io.ErrUnexpectedEOF |
| 19472 | } |
| 19473 | iNdEx += skippy |
| 19474 | } |
| 19475 | } |
| 19476 | |
| 19477 | if iNdEx > l { |
| 19478 | return io.ErrUnexpectedEOF |
| 19479 | } |
| 19480 | return nil |
| 19481 | } |
| 19482 | func (m *AuthRoleDeleteResponse) Unmarshal(dAtA []byte) error { |
| 19483 | l := len(dAtA) |
| 19484 | iNdEx := 0 |
| 19485 | for iNdEx < l { |
| 19486 | preIndex := iNdEx |
| 19487 | var wire uint64 |
| 19488 | for shift := uint(0); ; shift += 7 { |
| 19489 | if shift >= 64 { |
| 19490 | return ErrIntOverflowRpc |
| 19491 | } |
| 19492 | if iNdEx >= l { |
| 19493 | return io.ErrUnexpectedEOF |
| 19494 | } |
| 19495 | b := dAtA[iNdEx] |
| 19496 | iNdEx++ |
| 19497 | wire |= (uint64(b) & 0x7F) << shift |
| 19498 | if b < 0x80 { |
| 19499 | break |
| 19500 | } |
| 19501 | } |
| 19502 | fieldNum := int32(wire >> 3) |
| 19503 | wireType := int(wire & 0x7) |
| 19504 | if wireType == 4 { |
| 19505 | return fmt.Errorf("proto: AuthRoleDeleteResponse: wiretype end group for non-group") |
| 19506 | } |
| 19507 | if fieldNum <= 0 { |
| 19508 | return fmt.Errorf("proto: AuthRoleDeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 19509 | } |
| 19510 | switch fieldNum { |
| 19511 | case 1: |
| 19512 | if wireType != 2 { |
| 19513 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 19514 | } |
| 19515 | var msglen int |
| 19516 | for shift := uint(0); ; shift += 7 { |
| 19517 | if shift >= 64 { |
| 19518 | return ErrIntOverflowRpc |
| 19519 | } |
| 19520 | if iNdEx >= l { |
| 19521 | return io.ErrUnexpectedEOF |
| 19522 | } |
| 19523 | b := dAtA[iNdEx] |
| 19524 | iNdEx++ |
| 19525 | msglen |= (int(b) & 0x7F) << shift |
| 19526 | if b < 0x80 { |
| 19527 | break |
| 19528 | } |
| 19529 | } |
| 19530 | if msglen < 0 { |
| 19531 | return ErrInvalidLengthRpc |
| 19532 | } |
| 19533 | postIndex := iNdEx + msglen |
| 19534 | if postIndex > l { |
| 19535 | return io.ErrUnexpectedEOF |
| 19536 | } |
| 19537 | if m.Header == nil { |
| 19538 | m.Header = &ResponseHeader{} |
| 19539 | } |
| 19540 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 19541 | return err |
| 19542 | } |
| 19543 | iNdEx = postIndex |
| 19544 | default: |
| 19545 | iNdEx = preIndex |
| 19546 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 19547 | if err != nil { |
| 19548 | return err |
| 19549 | } |
| 19550 | if skippy < 0 { |
| 19551 | return ErrInvalidLengthRpc |
| 19552 | } |
| 19553 | if (iNdEx + skippy) > l { |
| 19554 | return io.ErrUnexpectedEOF |
| 19555 | } |
| 19556 | iNdEx += skippy |
| 19557 | } |
| 19558 | } |
| 19559 | |
| 19560 | if iNdEx > l { |
| 19561 | return io.ErrUnexpectedEOF |
| 19562 | } |
| 19563 | return nil |
| 19564 | } |
| 19565 | func (m *AuthRoleGrantPermissionResponse) Unmarshal(dAtA []byte) error { |
| 19566 | l := len(dAtA) |
| 19567 | iNdEx := 0 |
| 19568 | for iNdEx < l { |
| 19569 | preIndex := iNdEx |
| 19570 | var wire uint64 |
| 19571 | for shift := uint(0); ; shift += 7 { |
| 19572 | if shift >= 64 { |
| 19573 | return ErrIntOverflowRpc |
| 19574 | } |
| 19575 | if iNdEx >= l { |
| 19576 | return io.ErrUnexpectedEOF |
| 19577 | } |
| 19578 | b := dAtA[iNdEx] |
| 19579 | iNdEx++ |
| 19580 | wire |= (uint64(b) & 0x7F) << shift |
| 19581 | if b < 0x80 { |
| 19582 | break |
| 19583 | } |
| 19584 | } |
| 19585 | fieldNum := int32(wire >> 3) |
| 19586 | wireType := int(wire & 0x7) |
| 19587 | if wireType == 4 { |
| 19588 | return fmt.Errorf("proto: AuthRoleGrantPermissionResponse: wiretype end group for non-group") |
| 19589 | } |
| 19590 | if fieldNum <= 0 { |
| 19591 | return fmt.Errorf("proto: AuthRoleGrantPermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 19592 | } |
| 19593 | switch fieldNum { |
| 19594 | case 1: |
| 19595 | if wireType != 2 { |
| 19596 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 19597 | } |
| 19598 | var msglen int |
| 19599 | for shift := uint(0); ; shift += 7 { |
| 19600 | if shift >= 64 { |
| 19601 | return ErrIntOverflowRpc |
| 19602 | } |
| 19603 | if iNdEx >= l { |
| 19604 | return io.ErrUnexpectedEOF |
| 19605 | } |
| 19606 | b := dAtA[iNdEx] |
| 19607 | iNdEx++ |
| 19608 | msglen |= (int(b) & 0x7F) << shift |
| 19609 | if b < 0x80 { |
| 19610 | break |
| 19611 | } |
| 19612 | } |
| 19613 | if msglen < 0 { |
| 19614 | return ErrInvalidLengthRpc |
| 19615 | } |
| 19616 | postIndex := iNdEx + msglen |
| 19617 | if postIndex > l { |
| 19618 | return io.ErrUnexpectedEOF |
| 19619 | } |
| 19620 | if m.Header == nil { |
| 19621 | m.Header = &ResponseHeader{} |
| 19622 | } |
| 19623 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 19624 | return err |
| 19625 | } |
| 19626 | iNdEx = postIndex |
| 19627 | default: |
| 19628 | iNdEx = preIndex |
| 19629 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 19630 | if err != nil { |
| 19631 | return err |
| 19632 | } |
| 19633 | if skippy < 0 { |
| 19634 | return ErrInvalidLengthRpc |
| 19635 | } |
| 19636 | if (iNdEx + skippy) > l { |
| 19637 | return io.ErrUnexpectedEOF |
| 19638 | } |
| 19639 | iNdEx += skippy |
| 19640 | } |
| 19641 | } |
| 19642 | |
| 19643 | if iNdEx > l { |
| 19644 | return io.ErrUnexpectedEOF |
| 19645 | } |
| 19646 | return nil |
| 19647 | } |
| 19648 | func (m *AuthRoleRevokePermissionResponse) Unmarshal(dAtA []byte) error { |
| 19649 | l := len(dAtA) |
| 19650 | iNdEx := 0 |
| 19651 | for iNdEx < l { |
| 19652 | preIndex := iNdEx |
| 19653 | var wire uint64 |
| 19654 | for shift := uint(0); ; shift += 7 { |
| 19655 | if shift >= 64 { |
| 19656 | return ErrIntOverflowRpc |
| 19657 | } |
| 19658 | if iNdEx >= l { |
| 19659 | return io.ErrUnexpectedEOF |
| 19660 | } |
| 19661 | b := dAtA[iNdEx] |
| 19662 | iNdEx++ |
| 19663 | wire |= (uint64(b) & 0x7F) << shift |
| 19664 | if b < 0x80 { |
| 19665 | break |
| 19666 | } |
| 19667 | } |
| 19668 | fieldNum := int32(wire >> 3) |
| 19669 | wireType := int(wire & 0x7) |
| 19670 | if wireType == 4 { |
| 19671 | return fmt.Errorf("proto: AuthRoleRevokePermissionResponse: wiretype end group for non-group") |
| 19672 | } |
| 19673 | if fieldNum <= 0 { |
| 19674 | return fmt.Errorf("proto: AuthRoleRevokePermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 19675 | } |
| 19676 | switch fieldNum { |
| 19677 | case 1: |
| 19678 | if wireType != 2 { |
| 19679 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 19680 | } |
| 19681 | var msglen int |
| 19682 | for shift := uint(0); ; shift += 7 { |
| 19683 | if shift >= 64 { |
| 19684 | return ErrIntOverflowRpc |
| 19685 | } |
| 19686 | if iNdEx >= l { |
| 19687 | return io.ErrUnexpectedEOF |
| 19688 | } |
| 19689 | b := dAtA[iNdEx] |
| 19690 | iNdEx++ |
| 19691 | msglen |= (int(b) & 0x7F) << shift |
| 19692 | if b < 0x80 { |
| 19693 | break |
| 19694 | } |
| 19695 | } |
| 19696 | if msglen < 0 { |
| 19697 | return ErrInvalidLengthRpc |
| 19698 | } |
| 19699 | postIndex := iNdEx + msglen |
| 19700 | if postIndex > l { |
| 19701 | return io.ErrUnexpectedEOF |
| 19702 | } |
| 19703 | if m.Header == nil { |
| 19704 | m.Header = &ResponseHeader{} |
| 19705 | } |
| 19706 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 19707 | return err |
| 19708 | } |
| 19709 | iNdEx = postIndex |
| 19710 | default: |
| 19711 | iNdEx = preIndex |
| 19712 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 19713 | if err != nil { |
| 19714 | return err |
| 19715 | } |
| 19716 | if skippy < 0 { |
| 19717 | return ErrInvalidLengthRpc |
| 19718 | } |
| 19719 | if (iNdEx + skippy) > l { |
| 19720 | return io.ErrUnexpectedEOF |
| 19721 | } |
| 19722 | iNdEx += skippy |
| 19723 | } |
| 19724 | } |
| 19725 | |
| 19726 | if iNdEx > l { |
| 19727 | return io.ErrUnexpectedEOF |
| 19728 | } |
| 19729 | return nil |
| 19730 | } |
| 19731 | func skipRpc(dAtA []byte) (n int, err error) { |
| 19732 | l := len(dAtA) |
| 19733 | iNdEx := 0 |
| 19734 | for iNdEx < l { |
| 19735 | var wire uint64 |
| 19736 | for shift := uint(0); ; shift += 7 { |
| 19737 | if shift >= 64 { |
| 19738 | return 0, ErrIntOverflowRpc |
| 19739 | } |
| 19740 | if iNdEx >= l { |
| 19741 | return 0, io.ErrUnexpectedEOF |
| 19742 | } |
| 19743 | b := dAtA[iNdEx] |
| 19744 | iNdEx++ |
| 19745 | wire |= (uint64(b) & 0x7F) << shift |
| 19746 | if b < 0x80 { |
| 19747 | break |
| 19748 | } |
| 19749 | } |
| 19750 | wireType := int(wire & 0x7) |
| 19751 | switch wireType { |
| 19752 | case 0: |
| 19753 | for shift := uint(0); ; shift += 7 { |
| 19754 | if shift >= 64 { |
| 19755 | return 0, ErrIntOverflowRpc |
| 19756 | } |
| 19757 | if iNdEx >= l { |
| 19758 | return 0, io.ErrUnexpectedEOF |
| 19759 | } |
| 19760 | iNdEx++ |
| 19761 | if dAtA[iNdEx-1] < 0x80 { |
| 19762 | break |
| 19763 | } |
| 19764 | } |
| 19765 | return iNdEx, nil |
| 19766 | case 1: |
| 19767 | iNdEx += 8 |
| 19768 | return iNdEx, nil |
| 19769 | case 2: |
| 19770 | var length int |
| 19771 | for shift := uint(0); ; shift += 7 { |
| 19772 | if shift >= 64 { |
| 19773 | return 0, ErrIntOverflowRpc |
| 19774 | } |
| 19775 | if iNdEx >= l { |
| 19776 | return 0, io.ErrUnexpectedEOF |
| 19777 | } |
| 19778 | b := dAtA[iNdEx] |
| 19779 | iNdEx++ |
| 19780 | length |= (int(b) & 0x7F) << shift |
| 19781 | if b < 0x80 { |
| 19782 | break |
| 19783 | } |
| 19784 | } |
| 19785 | iNdEx += length |
| 19786 | if length < 0 { |
| 19787 | return 0, ErrInvalidLengthRpc |
| 19788 | } |
| 19789 | return iNdEx, nil |
| 19790 | case 3: |
| 19791 | for { |
| 19792 | var innerWire uint64 |
| 19793 | var start int = iNdEx |
| 19794 | for shift := uint(0); ; shift += 7 { |
| 19795 | if shift >= 64 { |
| 19796 | return 0, ErrIntOverflowRpc |
| 19797 | } |
| 19798 | if iNdEx >= l { |
| 19799 | return 0, io.ErrUnexpectedEOF |
| 19800 | } |
| 19801 | b := dAtA[iNdEx] |
| 19802 | iNdEx++ |
| 19803 | innerWire |= (uint64(b) & 0x7F) << shift |
| 19804 | if b < 0x80 { |
| 19805 | break |
| 19806 | } |
| 19807 | } |
| 19808 | innerWireType := int(innerWire & 0x7) |
| 19809 | if innerWireType == 4 { |
| 19810 | break |
| 19811 | } |
| 19812 | next, err := skipRpc(dAtA[start:]) |
| 19813 | if err != nil { |
| 19814 | return 0, err |
| 19815 | } |
| 19816 | iNdEx = start + next |
| 19817 | } |
| 19818 | return iNdEx, nil |
| 19819 | case 4: |
| 19820 | return iNdEx, nil |
| 19821 | case 5: |
| 19822 | iNdEx += 4 |
| 19823 | return iNdEx, nil |
| 19824 | default: |
| 19825 | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| 19826 | } |
| 19827 | } |
| 19828 | panic("unreachable") |
| 19829 | } |
| 19830 | |
| 19831 | var ( |
| 19832 | ErrInvalidLengthRpc = fmt.Errorf("proto: negative length found during unmarshaling") |
| 19833 | ErrIntOverflowRpc = fmt.Errorf("proto: integer overflow") |
| 19834 | ) |
| 19835 | |
| 19836 | func init() { proto.RegisterFile("rpc.proto", fileDescriptorRpc) } |
| 19837 | |
| 19838 | var fileDescriptorRpc = []byte{ |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 19839 | // 3928 bytes of a gzipped FileDescriptorProto |
| 19840 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x5b, 0x5b, 0x6f, 0x23, 0xc9, |
| 19841 | 0x75, 0x56, 0x93, 0xe2, 0xed, 0xf0, 0x22, 0xaa, 0x74, 0x19, 0x0e, 0x67, 0x46, 0xa3, 0xad, 0xd9, |
| 19842 | 0xd9, 0xd5, 0xce, 0xec, 0x8a, 0x6b, 0xd9, 0x4e, 0x80, 0x49, 0xe2, 0x58, 0x23, 0x71, 0x67, 0xb4, |
| 19843 | 0xd2, 0x88, 0xda, 0x16, 0x67, 0xf6, 0x02, 0x23, 0x42, 0x8b, 0x2c, 0x49, 0x1d, 0x91, 0xdd, 0x74, |
| 19844 | 0x77, 0x93, 0x23, 0x6d, 0x2e, 0x0e, 0x0c, 0xc7, 0x40, 0xf2, 0x68, 0x03, 0x41, 0xf2, 0x90, 0xa7, |
| 19845 | 0x20, 0x08, 0xfc, 0x90, 0xe7, 0x00, 0xf9, 0x05, 0x79, 0xca, 0x05, 0xf9, 0x03, 0xc1, 0xc6, 0x2f, |
| 19846 | 0xc9, 0xaf, 0x30, 0xea, 0xd6, 0x5d, 0x7d, 0xa3, 0xc6, 0xa6, 0x77, 0x5f, 0xa4, 0xae, 0x53, 0xa7, |
| 19847 | 0xce, 0x39, 0x75, 0xaa, 0xea, 0x9c, 0xd3, 0x5f, 0x17, 0xa1, 0xe4, 0x8c, 0x7a, 0x9b, 0x23, 0xc7, |
| 19848 | 0xf6, 0x6c, 0x54, 0x21, 0x5e, 0xaf, 0xef, 0x12, 0x67, 0x42, 0x9c, 0xd1, 0x69, 0x73, 0xf9, 0xdc, |
| 19849 | 0x3e, 0xb7, 0x59, 0x47, 0x8b, 0x3e, 0x71, 0x9e, 0xe6, 0x6d, 0xca, 0xd3, 0x1a, 0x4e, 0x7a, 0x3d, |
| 19850 | 0xf6, 0x67, 0x74, 0xda, 0xba, 0x9c, 0x88, 0xae, 0x3b, 0xac, 0xcb, 0x18, 0x7b, 0x17, 0xec, 0xcf, |
| 19851 | 0xe8, 0x94, 0xfd, 0x13, 0x9d, 0x77, 0xcf, 0x6d, 0xfb, 0x7c, 0x40, 0x5a, 0xc6, 0xc8, 0x6c, 0x19, |
| 19852 | 0x96, 0x65, 0x7b, 0x86, 0x67, 0xda, 0x96, 0xcb, 0x7b, 0xf1, 0x5f, 0x6a, 0x50, 0xd3, 0x89, 0x3b, |
| 19853 | 0xb2, 0x2d, 0x97, 0x3c, 0x27, 0x46, 0x9f, 0x38, 0xe8, 0x1e, 0x40, 0x6f, 0x30, 0x76, 0x3d, 0xe2, |
| 19854 | 0x9c, 0x98, 0xfd, 0x86, 0xb6, 0xae, 0x6d, 0xcc, 0xeb, 0x25, 0x41, 0xd9, 0xeb, 0xa3, 0x3b, 0x50, |
| 19855 | 0x1a, 0x92, 0xe1, 0x29, 0xef, 0xcd, 0xb0, 0xde, 0x22, 0x27, 0xec, 0xf5, 0x51, 0x13, 0x8a, 0x0e, |
| 19856 | 0x99, 0x98, 0xae, 0x69, 0x5b, 0x8d, 0xec, 0xba, 0xb6, 0x91, 0xd5, 0xfd, 0x36, 0x1d, 0xe8, 0x18, |
| 19857 | 0x67, 0xde, 0x89, 0x47, 0x9c, 0x61, 0x63, 0x9e, 0x0f, 0xa4, 0x84, 0x2e, 0x71, 0x86, 0xf8, 0x27, |
| 19858 | 0x39, 0xa8, 0xe8, 0x86, 0x75, 0x4e, 0x74, 0xf2, 0xc3, 0x31, 0x71, 0x3d, 0x54, 0x87, 0xec, 0x25, |
| 19859 | 0xb9, 0x66, 0xea, 0x2b, 0x3a, 0x7d, 0xe4, 0xe3, 0xad, 0x73, 0x72, 0x42, 0x2c, 0xae, 0xb8, 0x42, |
| 19860 | 0xc7, 0x5b, 0xe7, 0xa4, 0x6d, 0xf5, 0xd1, 0x32, 0xe4, 0x06, 0xe6, 0xd0, 0xf4, 0x84, 0x56, 0xde, |
| 19861 | 0x08, 0x99, 0x33, 0x1f, 0x31, 0x67, 0x07, 0xc0, 0xb5, 0x1d, 0xef, 0xc4, 0x76, 0xfa, 0xc4, 0x69, |
| 19862 | 0xe4, 0xd6, 0xb5, 0x8d, 0xda, 0xd6, 0xdb, 0x9b, 0xea, 0x42, 0x6c, 0xaa, 0x06, 0x6d, 0x1e, 0xdb, |
| 19863 | 0x8e, 0xd7, 0xa1, 0xbc, 0x7a, 0xc9, 0x95, 0x8f, 0xe8, 0x23, 0x28, 0x33, 0x21, 0x9e, 0xe1, 0x9c, |
| 19864 | 0x13, 0xaf, 0x91, 0x67, 0x52, 0x1e, 0xde, 0x20, 0xa5, 0xcb, 0x98, 0x75, 0xa6, 0x9e, 0x3f, 0x23, |
| 19865 | 0x0c, 0x15, 0x97, 0x38, 0xa6, 0x31, 0x30, 0xbf, 0x34, 0x4e, 0x07, 0xa4, 0x51, 0x58, 0xd7, 0x36, |
| 19866 | 0x8a, 0x7a, 0x88, 0x46, 0xe7, 0x7f, 0x49, 0xae, 0xdd, 0x13, 0xdb, 0x1a, 0x5c, 0x37, 0x8a, 0x8c, |
| 19867 | 0xa1, 0x48, 0x09, 0x1d, 0x6b, 0x70, 0xcd, 0x16, 0xcd, 0x1e, 0x5b, 0x1e, 0xef, 0x2d, 0xb1, 0xde, |
| 19868 | 0x12, 0xa3, 0xb0, 0xee, 0x0d, 0xa8, 0x0f, 0x4d, 0xeb, 0x64, 0x68, 0xf7, 0x4f, 0x7c, 0x87, 0x00, |
| 19869 | 0x73, 0x48, 0x6d, 0x68, 0x5a, 0x2f, 0xec, 0xbe, 0x2e, 0xdd, 0x42, 0x39, 0x8d, 0xab, 0x30, 0x67, |
| 19870 | 0x59, 0x70, 0x1a, 0x57, 0x2a, 0xe7, 0x26, 0x2c, 0x51, 0x99, 0x3d, 0x87, 0x18, 0x1e, 0x09, 0x98, |
| 19871 | 0x2b, 0x8c, 0x79, 0x71, 0x68, 0x5a, 0x3b, 0xac, 0x27, 0xc4, 0x6f, 0x5c, 0xc5, 0xf8, 0xab, 0x82, |
| 19872 | 0xdf, 0xb8, 0x0a, 0xf3, 0xe3, 0x4d, 0x28, 0xf9, 0x3e, 0x47, 0x45, 0x98, 0x3f, 0xec, 0x1c, 0xb6, |
| 19873 | 0xeb, 0x73, 0x08, 0x20, 0xbf, 0x7d, 0xbc, 0xd3, 0x3e, 0xdc, 0xad, 0x6b, 0xa8, 0x0c, 0x85, 0xdd, |
| 19874 | 0x36, 0x6f, 0x64, 0xf0, 0x53, 0x80, 0xc0, 0xbb, 0xa8, 0x00, 0xd9, 0xfd, 0xf6, 0xe7, 0xf5, 0x39, |
| 19875 | 0xca, 0xf3, 0xaa, 0xad, 0x1f, 0xef, 0x75, 0x0e, 0xeb, 0x1a, 0x1d, 0xbc, 0xa3, 0xb7, 0xb7, 0xbb, |
| 19876 | 0xed, 0x7a, 0x86, 0x72, 0xbc, 0xe8, 0xec, 0xd6, 0xb3, 0xa8, 0x04, 0xb9, 0x57, 0xdb, 0x07, 0x2f, |
| 19877 | 0xdb, 0xf5, 0x79, 0xfc, 0x73, 0x0d, 0xaa, 0x62, 0xbd, 0xf8, 0x99, 0x40, 0xdf, 0x81, 0xfc, 0x05, |
| 19878 | 0x3b, 0x17, 0x6c, 0x2b, 0x96, 0xb7, 0xee, 0x46, 0x16, 0x37, 0x74, 0x76, 0x74, 0xc1, 0x8b, 0x30, |
| 19879 | 0x64, 0x2f, 0x27, 0x6e, 0x23, 0xb3, 0x9e, 0xdd, 0x28, 0x6f, 0xd5, 0x37, 0xf9, 0x81, 0xdd, 0xdc, |
| 19880 | 0x27, 0xd7, 0xaf, 0x8c, 0xc1, 0x98, 0xe8, 0xb4, 0x13, 0x21, 0x98, 0x1f, 0xda, 0x0e, 0x61, 0x3b, |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 19881 | 0xb6, 0xa8, 0xb3, 0x67, 0xba, 0x8d, 0xd9, 0xa2, 0x89, 0xdd, 0xca, 0x1b, 0xf8, 0x17, 0x1a, 0xc0, |
Scott Baker | 611f6bd | 2019-10-18 13:45:19 -0700 | [diff] [blame^] | 19882 | 0xd1, 0xd8, 0x4b, 0x3f, 0x1a, 0xcb, 0x90, 0x9b, 0x50, 0xc1, 0xe2, 0x58, 0xf0, 0x06, 0x3b, 0x13, |
| 19883 | 0xc4, 0x70, 0x89, 0x7f, 0x26, 0x68, 0x03, 0xdd, 0x82, 0xc2, 0xc8, 0x21, 0x93, 0x93, 0xcb, 0x09, |
| 19884 | 0x53, 0x52, 0xd4, 0xf3, 0xb4, 0xb9, 0x3f, 0x41, 0x6f, 0x41, 0xc5, 0x3c, 0xb7, 0x6c, 0x87, 0x9c, |
| 19885 | 0x70, 0x59, 0x39, 0xd6, 0x5b, 0xe6, 0x34, 0x66, 0xb7, 0xc2, 0xc2, 0x05, 0xe7, 0x55, 0x96, 0x03, |
| 19886 | 0x4a, 0xc2, 0x16, 0x94, 0x99, 0xa9, 0x33, 0xb9, 0xef, 0xbd, 0xc0, 0xc6, 0x0c, 0x1b, 0x16, 0x77, |
| 19887 | 0xa1, 0xb0, 0x1a, 0xff, 0x00, 0xd0, 0x2e, 0x19, 0x10, 0x8f, 0xcc, 0x12, 0x3d, 0x14, 0x9f, 0x64, |
| 19888 | 0x55, 0x9f, 0xe0, 0x9f, 0x69, 0xb0, 0x14, 0x12, 0x3f, 0xd3, 0xb4, 0x1a, 0x50, 0xe8, 0x33, 0x61, |
| 19889 | 0xdc, 0x82, 0xac, 0x2e, 0x9b, 0xe8, 0x31, 0x14, 0x85, 0x01, 0x6e, 0x23, 0x9b, 0xb2, 0x69, 0x0a, |
| 19890 | 0xdc, 0x26, 0x17, 0xff, 0x22, 0x03, 0x25, 0x31, 0xd1, 0xce, 0x08, 0x6d, 0x43, 0xd5, 0xe1, 0x8d, |
| 19891 | 0x13, 0x36, 0x1f, 0x61, 0x51, 0x33, 0x3d, 0x08, 0x3d, 0x9f, 0xd3, 0x2b, 0x62, 0x08, 0x23, 0xa3, |
| 19892 | 0xdf, 0x83, 0xb2, 0x14, 0x31, 0x1a, 0x7b, 0xc2, 0xe5, 0x8d, 0xb0, 0x80, 0x60, 0xff, 0x3d, 0x9f, |
| 19893 | 0xd3, 0x41, 0xb0, 0x1f, 0x8d, 0x3d, 0xd4, 0x85, 0x65, 0x39, 0x98, 0xcf, 0x46, 0x98, 0x91, 0x65, |
| 19894 | 0x52, 0xd6, 0xc3, 0x52, 0xe2, 0x4b, 0xf5, 0x7c, 0x4e, 0x47, 0x62, 0xbc, 0xd2, 0xa9, 0x9a, 0xe4, |
| 19895 | 0x5d, 0xf1, 0xe0, 0x1d, 0x33, 0xa9, 0x7b, 0x65, 0xc5, 0x4d, 0xea, 0x5e, 0x59, 0x4f, 0x4b, 0x50, |
| 19896 | 0x10, 0x2d, 0xfc, 0x2f, 0x19, 0x00, 0xb9, 0x1a, 0x9d, 0x11, 0xda, 0x85, 0x9a, 0x23, 0x5a, 0x21, |
| 19897 | 0x6f, 0xdd, 0x49, 0xf4, 0x96, 0x58, 0xc4, 0x39, 0xbd, 0x2a, 0x07, 0x71, 0xe3, 0xbe, 0x07, 0x15, |
| 19898 | 0x5f, 0x4a, 0xe0, 0xb0, 0xdb, 0x09, 0x0e, 0xf3, 0x25, 0x94, 0xe5, 0x00, 0xea, 0xb2, 0x4f, 0x61, |
| 19899 | 0xc5, 0x1f, 0x9f, 0xe0, 0xb3, 0xb7, 0xa6, 0xf8, 0xcc, 0x17, 0xb8, 0x24, 0x25, 0xa8, 0x5e, 0x53, |
| 19900 | 0x0d, 0x0b, 0xdc, 0x76, 0x3b, 0xc1, 0x6d, 0x71, 0xc3, 0xa8, 0xe3, 0x80, 0xe6, 0x4b, 0xde, 0xc4, |
| 19901 | 0xff, 0x97, 0x85, 0xc2, 0x8e, 0x3d, 0x1c, 0x19, 0x0e, 0x5d, 0x8d, 0xbc, 0x43, 0xdc, 0xf1, 0xc0, |
| 19902 | 0x63, 0xee, 0xaa, 0x6d, 0x3d, 0x08, 0x4b, 0x14, 0x6c, 0xf2, 0xbf, 0xce, 0x58, 0x75, 0x31, 0x84, |
| 19903 | 0x0e, 0x16, 0xe9, 0x31, 0xf3, 0x06, 0x83, 0x45, 0x72, 0x14, 0x43, 0xe4, 0x41, 0xce, 0x06, 0x07, |
| 19904 | 0xb9, 0x09, 0x85, 0x09, 0x71, 0x82, 0x94, 0xfe, 0x7c, 0x4e, 0x97, 0x04, 0xf4, 0x1e, 0x2c, 0x44, |
| 19905 | 0xd3, 0x4b, 0x4e, 0xf0, 0xd4, 0x7a, 0xe1, 0x6c, 0xf4, 0x00, 0x2a, 0xa1, 0x1c, 0x97, 0x17, 0x7c, |
| 19906 | 0xe5, 0xa1, 0x92, 0xe2, 0x56, 0x65, 0x5c, 0xa5, 0xf9, 0xb8, 0xf2, 0x7c, 0x4e, 0x46, 0xd6, 0x55, |
| 19907 | 0x19, 0x59, 0x8b, 0x62, 0x94, 0x88, 0xad, 0xa1, 0x20, 0xf3, 0xfd, 0x70, 0x90, 0xc1, 0xdf, 0x87, |
| 19908 | 0x6a, 0xc8, 0x41, 0x34, 0xef, 0xb4, 0x3f, 0x79, 0xb9, 0x7d, 0xc0, 0x93, 0xd4, 0x33, 0x96, 0x97, |
| 19909 | 0xf4, 0xba, 0x46, 0x73, 0xdd, 0x41, 0xfb, 0xf8, 0xb8, 0x9e, 0x41, 0x55, 0x28, 0x1d, 0x76, 0xba, |
| 19910 | 0x27, 0x9c, 0x2b, 0x8b, 0x9f, 0xf9, 0x12, 0x44, 0x92, 0x53, 0x72, 0xdb, 0x9c, 0x92, 0xdb, 0x34, |
| 19911 | 0x99, 0xdb, 0x32, 0x41, 0x6e, 0x63, 0x69, 0xee, 0xa0, 0xbd, 0x7d, 0xdc, 0xae, 0xcf, 0x3f, 0xad, |
| 19912 | 0x41, 0x85, 0xfb, 0xf7, 0x64, 0x6c, 0xd1, 0x54, 0xfb, 0x0f, 0x1a, 0x40, 0x70, 0x9a, 0x50, 0x0b, |
| 19913 | 0x0a, 0x3d, 0xae, 0xa7, 0xa1, 0xb1, 0x60, 0xb4, 0x92, 0xb8, 0x64, 0xba, 0xe4, 0x42, 0xdf, 0x82, |
| 19914 | 0x82, 0x3b, 0xee, 0xf5, 0x88, 0x2b, 0x53, 0xde, 0xad, 0x68, 0x3c, 0x14, 0xd1, 0x4a, 0x97, 0x7c, |
| 19915 | 0x74, 0xc8, 0x99, 0x61, 0x0e, 0xc6, 0x2c, 0x01, 0x4e, 0x1f, 0x22, 0xf8, 0xf0, 0xdf, 0x69, 0x50, |
| 19916 | 0x56, 0x36, 0xef, 0x6f, 0x18, 0x84, 0xef, 0x42, 0x89, 0xd9, 0x40, 0xfa, 0x22, 0x0c, 0x17, 0xf5, |
| 19917 | 0x80, 0x80, 0x7e, 0x07, 0x4a, 0xf2, 0x04, 0xc8, 0x48, 0xdc, 0x48, 0x16, 0xdb, 0x19, 0xe9, 0x01, |
| 19918 | 0x2b, 0xde, 0x87, 0x45, 0xe6, 0x95, 0x1e, 0x2d, 0xae, 0xa5, 0x1f, 0xd5, 0xf2, 0x53, 0x8b, 0x94, |
| 19919 | 0x9f, 0x4d, 0x28, 0x8e, 0x2e, 0xae, 0x5d, 0xb3, 0x67, 0x0c, 0x84, 0x15, 0x7e, 0x1b, 0x7f, 0x0c, |
| 19920 | 0x48, 0x15, 0x36, 0xcb, 0x74, 0x71, 0x15, 0xca, 0xcf, 0x0d, 0xf7, 0x42, 0x98, 0x84, 0x1f, 0x43, |
| 19921 | 0x95, 0x36, 0xf7, 0x5f, 0xbd, 0x81, 0x8d, 0xec, 0xe5, 0x40, 0x72, 0xcf, 0xe4, 0x73, 0x04, 0xf3, |
| 19922 | 0x17, 0x86, 0x7b, 0xc1, 0x26, 0x5a, 0xd5, 0xd9, 0x33, 0x7a, 0x0f, 0xea, 0x3d, 0x3e, 0xc9, 0x93, |
| 19923 | 0xc8, 0x2b, 0xc3, 0x82, 0xa0, 0xfb, 0x95, 0xe0, 0x67, 0x50, 0xe1, 0x73, 0xf8, 0x6d, 0x1b, 0x81, |
| 19924 | 0x17, 0x61, 0xe1, 0xd8, 0x32, 0x46, 0xee, 0x85, 0x2d, 0xb3, 0x1b, 0x9d, 0x74, 0x3d, 0xa0, 0xcd, |
| 19925 | 0xa4, 0xf1, 0x5d, 0x58, 0x70, 0xc8, 0xd0, 0x30, 0x2d, 0xd3, 0x3a, 0x3f, 0x39, 0xbd, 0xf6, 0x88, |
| 19926 | 0x2b, 0x5e, 0x98, 0x6a, 0x3e, 0xf9, 0x29, 0xa5, 0x52, 0xd3, 0x4e, 0x07, 0xf6, 0xa9, 0x08, 0x73, |
| 19927 | 0xec, 0x19, 0xff, 0x34, 0x03, 0x95, 0x4f, 0x0d, 0xaf, 0x27, 0x97, 0x0e, 0xed, 0x41, 0xcd, 0x0f, |
| 19928 | 0x6e, 0x8c, 0x22, 0x6c, 0x89, 0xa4, 0x58, 0x36, 0x46, 0x96, 0xd2, 0x32, 0x3b, 0x56, 0x7b, 0x2a, |
| 19929 | 0x81, 0x89, 0x32, 0xac, 0x1e, 0x19, 0xf8, 0xa2, 0x32, 0xe9, 0xa2, 0x18, 0xa3, 0x2a, 0x4a, 0x25, |
| 19930 | 0xa0, 0x0e, 0xd4, 0x47, 0x8e, 0x7d, 0xee, 0x10, 0xd7, 0xf5, 0x85, 0xf1, 0x34, 0x86, 0x13, 0x84, |
| 19931 | 0x1d, 0x09, 0xd6, 0x40, 0xdc, 0xc2, 0x28, 0x4c, 0x7a, 0xba, 0x10, 0xd4, 0x33, 0x3c, 0x38, 0xfd, |
| 19932 | 0x57, 0x06, 0x50, 0x7c, 0x52, 0xbf, 0x6e, 0x89, 0xf7, 0x10, 0x6a, 0xae, 0x67, 0x38, 0xb1, 0xcd, |
| 19933 | 0x56, 0x65, 0x54, 0x3f, 0xe2, 0xbf, 0x0b, 0xbe, 0x41, 0x27, 0x96, 0xed, 0x99, 0x67, 0xd7, 0xa2, |
| 19934 | 0x4a, 0xae, 0x49, 0xf2, 0x21, 0xa3, 0xa2, 0x36, 0x14, 0xce, 0xcc, 0x81, 0x47, 0x1c, 0xb7, 0x91, |
| 19935 | 0x5b, 0xcf, 0x6e, 0xd4, 0xb6, 0x1e, 0xdf, 0xb4, 0x0c, 0x9b, 0x1f, 0x31, 0xfe, 0xee, 0xf5, 0x88, |
| 19936 | 0xe8, 0x72, 0xac, 0x5a, 0x79, 0xe6, 0x43, 0xd5, 0xf8, 0x6d, 0x28, 0xbe, 0xa6, 0x22, 0xe8, 0x5b, |
| 19937 | 0x76, 0x81, 0x17, 0x8b, 0xac, 0xcd, 0x5f, 0xb2, 0xcf, 0x1c, 0xe3, 0x7c, 0x48, 0x2c, 0x4f, 0xbe, |
| 19938 | 0x07, 0xca, 0x36, 0x7e, 0x08, 0x10, 0xa8, 0xa1, 0x21, 0xff, 0xb0, 0x73, 0xf4, 0xb2, 0x5b, 0x9f, |
| 19939 | 0x43, 0x15, 0x28, 0x1e, 0x76, 0x76, 0xdb, 0x07, 0x6d, 0x9a, 0x1f, 0x70, 0x4b, 0xba, 0x34, 0xb4, |
| 19940 | 0x96, 0xaa, 0x4e, 0x2d, 0xa4, 0x13, 0xaf, 0xc2, 0x72, 0xd2, 0x02, 0xd2, 0x5a, 0xb4, 0x2a, 0x76, |
| 19941 | 0xe9, 0x4c, 0x47, 0x45, 0x55, 0x9d, 0x09, 0x4f, 0xb7, 0x01, 0x05, 0xbe, 0x7b, 0xfb, 0xa2, 0x38, |
| 19942 | 0x97, 0x4d, 0xea, 0x08, 0xbe, 0x19, 0x49, 0x5f, 0xac, 0x92, 0xdf, 0x4e, 0x0c, 0x2f, 0xb9, 0xc4, |
| 19943 | 0xf0, 0x82, 0x1e, 0x40, 0xd5, 0x3f, 0x0d, 0x86, 0x2b, 0x6a, 0x81, 0x92, 0x5e, 0x91, 0x1b, 0x9d, |
| 19944 | 0xd2, 0x42, 0x4e, 0x2f, 0x84, 0x9d, 0x8e, 0x1e, 0x42, 0x9e, 0x4c, 0x88, 0xe5, 0xb9, 0x8d, 0x32, |
| 19945 | 0xcb, 0x18, 0x55, 0x59, 0xbb, 0xb7, 0x29, 0x55, 0x17, 0x9d, 0xf8, 0xbb, 0xb0, 0xc8, 0xde, 0x91, |
| 19946 | 0x9e, 0x39, 0x86, 0xa5, 0xbe, 0xcc, 0x75, 0xbb, 0x07, 0xc2, 0xdd, 0xf4, 0x11, 0xd5, 0x20, 0xb3, |
| 19947 | 0xb7, 0x2b, 0x9c, 0x90, 0xd9, 0xdb, 0xc5, 0x3f, 0xd6, 0x00, 0xa9, 0xe3, 0x66, 0xf2, 0x73, 0x44, |
| 19948 | 0xb8, 0x54, 0x9f, 0x0d, 0xd4, 0x2f, 0x43, 0x8e, 0x38, 0x8e, 0xed, 0x30, 0x8f, 0x96, 0x74, 0xde, |
| 19949 | 0xc0, 0x6f, 0x0b, 0x1b, 0x74, 0x32, 0xb1, 0x2f, 0xfd, 0x33, 0xc8, 0xa5, 0x69, 0xbe, 0xa9, 0xfb, |
| 19950 | 0xb0, 0x14, 0xe2, 0x9a, 0x29, 0x73, 0x7d, 0x04, 0x0b, 0x4c, 0xd8, 0xce, 0x05, 0xe9, 0x5d, 0x8e, |
| 19951 | 0x6c, 0xd3, 0x8a, 0xe9, 0xa3, 0x2b, 0x17, 0x04, 0x58, 0x3a, 0x0f, 0x3e, 0xb1, 0x8a, 0x4f, 0xec, |
| 19952 | 0x76, 0x0f, 0xf0, 0xe7, 0xb0, 0x1a, 0x91, 0x23, 0xcd, 0xff, 0x43, 0x28, 0xf7, 0x7c, 0xa2, 0x2b, |
| 19953 | 0x6a, 0x9d, 0x7b, 0x61, 0xe3, 0xa2, 0x43, 0xd5, 0x11, 0xb8, 0x03, 0xb7, 0x62, 0xa2, 0x67, 0x9a, |
| 19954 | 0xf3, 0xbb, 0xb0, 0xc2, 0x04, 0xee, 0x13, 0x32, 0xda, 0x1e, 0x98, 0x93, 0x54, 0x4f, 0x8f, 0xc4, |
| 19955 | 0xa4, 0x14, 0xc6, 0xaf, 0x77, 0x5f, 0xe0, 0xdf, 0x17, 0x1a, 0xbb, 0xe6, 0x90, 0x74, 0xed, 0x83, |
| 19956 | 0x74, 0xdb, 0x68, 0x36, 0xbb, 0x24, 0xd7, 0xae, 0x28, 0x6b, 0xd8, 0x33, 0xfe, 0x47, 0x4d, 0xb8, |
| 19957 | 0x4a, 0x1d, 0xfe, 0x35, 0xef, 0xe4, 0x35, 0x80, 0x73, 0x7a, 0x64, 0x48, 0x9f, 0x76, 0x70, 0x44, |
| 19958 | 0x45, 0xa1, 0xf8, 0x76, 0xd2, 0xf8, 0x5d, 0x11, 0x76, 0x2e, 0x8b, 0x7d, 0xce, 0xfe, 0xf8, 0x51, |
| 19959 | 0xee, 0x1e, 0x94, 0x19, 0xe1, 0xd8, 0x33, 0xbc, 0xb1, 0x1b, 0x5b, 0x8c, 0x3f, 0x17, 0xdb, 0x5e, |
| 19960 | 0x0e, 0x9a, 0x69, 0x5e, 0xdf, 0x82, 0x3c, 0x7b, 0x99, 0x90, 0xa5, 0xf4, 0xed, 0x84, 0xfd, 0xc8, |
| 19961 | 0xed, 0xd0, 0x05, 0x23, 0xfe, 0xa9, 0x06, 0xf9, 0x17, 0x0c, 0x82, 0x55, 0x4c, 0x9b, 0x97, 0x6b, |
| 19962 | 0x61, 0x19, 0x43, 0x0e, 0x0c, 0x95, 0x74, 0xf6, 0xcc, 0x4a, 0x4f, 0x42, 0x9c, 0x97, 0xfa, 0x01, |
| 19963 | 0x2f, 0x71, 0x4b, 0xba, 0xdf, 0xa6, 0x3e, 0xeb, 0x0d, 0x4c, 0x62, 0x79, 0xac, 0x77, 0x9e, 0xf5, |
| 19964 | 0x2a, 0x14, 0x5a, 0x3d, 0x9b, 0xee, 0x01, 0x31, 0x1c, 0x4b, 0x80, 0xa6, 0x45, 0x3d, 0x20, 0xe0, |
| 19965 | 0x03, 0xa8, 0x73, 0x3b, 0xb6, 0xfb, 0x7d, 0xa5, 0xc0, 0xf4, 0xb5, 0x69, 0x11, 0x6d, 0x21, 0x69, |
| 19966 | 0x99, 0xa8, 0xb4, 0x7f, 0xd2, 0x60, 0x51, 0x11, 0x37, 0x93, 0x57, 0xdf, 0x87, 0x3c, 0x07, 0xa9, |
| 19967 | 0x45, 0xa5, 0xb3, 0x1c, 0x1e, 0xc5, 0xd5, 0xe8, 0x82, 0x07, 0x6d, 0x42, 0x81, 0x3f, 0xc9, 0x77, |
| 19968 | 0x80, 0x64, 0x76, 0xc9, 0x84, 0x1f, 0xc2, 0x92, 0x20, 0x91, 0xa1, 0x9d, 0x74, 0x30, 0xd8, 0x62, |
| 19969 | 0xe0, 0x3f, 0x85, 0xe5, 0x30, 0xdb, 0x4c, 0x53, 0x52, 0x8c, 0xcc, 0xbc, 0x89, 0x91, 0xdb, 0xd2, |
| 19970 | 0xc8, 0x97, 0xa3, 0xbe, 0x52, 0x47, 0x45, 0x77, 0x8c, 0xba, 0x5e, 0x99, 0xf0, 0x7a, 0x05, 0x13, |
| 19971 | 0x90, 0x22, 0xbe, 0xd1, 0x09, 0x2c, 0xc9, 0xed, 0x70, 0x60, 0xba, 0x7e, 0xb9, 0xfe, 0x25, 0x20, |
| 19972 | 0x95, 0xf8, 0x8d, 0x1a, 0xf4, 0x8e, 0x74, 0xc7, 0x91, 0x63, 0x0f, 0xed, 0x54, 0x97, 0xe2, 0x3f, |
| 19973 | 0x83, 0x95, 0x08, 0xdf, 0x37, 0xed, 0xb7, 0x5d, 0x22, 0x8b, 0x15, 0xe9, 0xb7, 0x8f, 0x01, 0xa9, |
| 19974 | 0xc4, 0x99, 0xb2, 0x56, 0x0b, 0x16, 0x5f, 0xd8, 0x13, 0x1a, 0xfe, 0x28, 0x35, 0x38, 0xf7, 0x1c, |
| 19975 | 0x63, 0xf0, 0x5d, 0xe1, 0xb7, 0xa9, 0x72, 0x75, 0xc0, 0x4c, 0xca, 0xff, 0x43, 0x83, 0xca, 0xf6, |
| 19976 | 0xc0, 0x70, 0x86, 0x52, 0xf1, 0xf7, 0x20, 0xcf, 0xdf, 0x9c, 0x05, 0x58, 0xf5, 0x4e, 0x58, 0x8c, |
| 19977 | 0xca, 0xcb, 0x1b, 0xdb, 0xfc, 0x3d, 0x5b, 0x8c, 0xa2, 0x86, 0x8b, 0xef, 0x59, 0xbb, 0x91, 0xef, |
| 19978 | 0x5b, 0xbb, 0xe8, 0x03, 0xc8, 0x19, 0x74, 0x08, 0x4b, 0x33, 0xb5, 0x28, 0x66, 0xc1, 0xa4, 0xb1, |
| 19979 | 0xfa, 0x9e, 0x73, 0xe1, 0xef, 0x40, 0x59, 0xd1, 0x80, 0x0a, 0x90, 0x7d, 0xd6, 0x16, 0xc5, 0xf8, |
| 19980 | 0xf6, 0x4e, 0x77, 0xef, 0x15, 0x07, 0x6b, 0x6a, 0x00, 0xbb, 0x6d, 0xbf, 0x9d, 0xc1, 0x9f, 0x89, |
| 19981 | 0x51, 0x22, 0xa4, 0xab, 0xf6, 0x68, 0x69, 0xf6, 0x64, 0xde, 0xc8, 0x9e, 0x2b, 0xa8, 0x8a, 0xe9, |
| 19982 | 0xcf, 0x9a, 0xa2, 0x98, 0xbc, 0x94, 0x14, 0xa5, 0x18, 0xaf, 0x0b, 0x46, 0xbc, 0x00, 0x55, 0x91, |
| 19983 | 0xb4, 0xc4, 0xfe, 0xfb, 0xf7, 0x0c, 0xd4, 0x24, 0x65, 0x56, 0x50, 0x5d, 0xe2, 0x81, 0x3c, 0xc9, |
| 19984 | 0xf9, 0x68, 0xe0, 0x2a, 0xe4, 0xfb, 0xa7, 0xc7, 0xe6, 0x97, 0xf2, 0x03, 0x88, 0x68, 0x51, 0xfa, |
| 19985 | 0x80, 0xeb, 0xe1, 0x5f, 0x21, 0x45, 0x8b, 0x66, 0x23, 0xc7, 0x38, 0xf3, 0xf6, 0xac, 0x3e, 0xb9, |
| 19986 | 0x62, 0xb9, 0x6d, 0x5e, 0x0f, 0x08, 0x0c, 0x28, 0x11, 0x5f, 0x2b, 0xd9, 0x0b, 0x82, 0xf2, 0xf5, |
| 19987 | 0x12, 0x3d, 0x82, 0x3a, 0x7d, 0xde, 0x1e, 0x8d, 0x06, 0x26, 0xe9, 0x73, 0x01, 0x05, 0xc6, 0x13, |
| 19988 | 0xa3, 0x53, 0xed, 0xac, 0xa4, 0x76, 0x1b, 0x45, 0x16, 0x5d, 0x45, 0x0b, 0xad, 0x43, 0x99, 0xdb, |
| 19989 | 0xb7, 0x67, 0xbd, 0x74, 0x09, 0xfb, 0x84, 0x97, 0xd5, 0x55, 0x52, 0x38, 0x5b, 0x42, 0x34, 0x5b, |
| 19990 | 0x2e, 0xc1, 0xe2, 0xf6, 0xd8, 0xbb, 0x68, 0x5b, 0xc6, 0xe9, 0x40, 0x46, 0x22, 0x5a, 0xce, 0x50, |
| 19991 | 0xe2, 0xae, 0xe9, 0xaa, 0xd4, 0x36, 0x2c, 0x51, 0x2a, 0xb1, 0x3c, 0xb3, 0xa7, 0x64, 0x02, 0x59, |
| 19992 | 0x2b, 0x68, 0x91, 0x5a, 0xc1, 0x70, 0xdd, 0xd7, 0xb6, 0xd3, 0x17, 0xee, 0xf5, 0xdb, 0x78, 0xc2, |
| 19993 | 0x85, 0xbf, 0x74, 0x43, 0xf9, 0xfe, 0xd7, 0x94, 0x82, 0x3e, 0x84, 0x82, 0x3d, 0x62, 0x9f, 0xa4, |
| 19994 | 0x05, 0x6e, 0xb0, 0xba, 0xc9, 0x3f, 0x62, 0x6f, 0x0a, 0xc1, 0x1d, 0xde, 0xab, 0x4b, 0x36, 0xbc, |
| 19995 | 0x11, 0xe8, 0x7d, 0x46, 0xbc, 0x29, 0x7a, 0xf1, 0x63, 0x58, 0x91, 0x9c, 0x02, 0x26, 0x9f, 0xc2, |
| 19996 | 0xdc, 0x81, 0x7b, 0x92, 0x79, 0xe7, 0xc2, 0xb0, 0xce, 0xc9, 0x91, 0x30, 0xf1, 0x37, 0xf5, 0xcf, |
| 19997 | 0x53, 0x68, 0xf8, 0x76, 0xb2, 0x57, 0x37, 0x7b, 0xa0, 0x1a, 0x30, 0x76, 0xc5, 0x4e, 0x2f, 0xe9, |
| 19998 | 0xec, 0x99, 0xd2, 0x1c, 0x7b, 0xe0, 0xd7, 0x6a, 0xf4, 0x19, 0xef, 0xc0, 0x6d, 0x29, 0x43, 0xbc, |
| 19999 | 0x54, 0x85, 0x85, 0xc4, 0x0c, 0x4a, 0x12, 0x22, 0x1c, 0x46, 0x87, 0x4e, 0x5f, 0x28, 0x95, 0x33, |
| 20000 | 0xec, 0x5a, 0x26, 0x53, 0x53, 0x64, 0xae, 0xf0, 0x3d, 0x44, 0x0d, 0x53, 0xd3, 0xb1, 0x20, 0x53, |
| 20001 | 0x01, 0x2a, 0x59, 0x2c, 0x04, 0x25, 0xc7, 0x16, 0x22, 0x26, 0xfa, 0x07, 0xb0, 0xe6, 0x1b, 0x41, |
| 20002 | 0xfd, 0x76, 0x44, 0x9c, 0xa1, 0xe9, 0xba, 0x0a, 0xb0, 0x9a, 0x34, 0xf1, 0x77, 0x60, 0x7e, 0x44, |
| 20003 | 0x44, 0x24, 0x2c, 0x6f, 0x21, 0xb9, 0x89, 0x94, 0xc1, 0xac, 0x1f, 0xf7, 0xe1, 0xbe, 0x94, 0xce, |
| 20004 | 0x3d, 0x9a, 0x28, 0x3e, 0x6a, 0x94, 0x84, 0x9b, 0x32, 0x29, 0x70, 0x53, 0x36, 0x02, 0xf6, 0x7f, |
| 20005 | 0xcc, 0x1d, 0x29, 0x4f, 0xe3, 0x4c, 0x19, 0x6e, 0x9f, 0xfb, 0xd4, 0x3f, 0xc4, 0x33, 0x09, 0x3b, |
| 20006 | 0x85, 0xe5, 0xf0, 0xd9, 0x9f, 0x29, 0xf8, 0x2e, 0x43, 0xce, 0xb3, 0x2f, 0x89, 0x0c, 0xbd, 0xbc, |
| 20007 | 0x21, 0x0d, 0xf6, 0x03, 0xc3, 0x4c, 0x06, 0x1b, 0x81, 0x30, 0xb6, 0x25, 0x67, 0xb5, 0x97, 0xae, |
| 20008 | 0xa6, 0xac, 0x6c, 0x79, 0x03, 0x1f, 0xc2, 0x6a, 0x34, 0x4c, 0xcc, 0x64, 0xf2, 0x2b, 0xbe, 0x81, |
| 20009 | 0x93, 0x22, 0xc9, 0x4c, 0x72, 0x3f, 0x09, 0x82, 0x81, 0x12, 0x50, 0x66, 0x12, 0xa9, 0x43, 0x33, |
| 20010 | 0x29, 0xbe, 0xfc, 0x36, 0xf6, 0xab, 0x1f, 0x6e, 0x66, 0x12, 0xe6, 0x06, 0xc2, 0x66, 0x5f, 0xfe, |
| 20011 | 0x20, 0x46, 0x64, 0xa7, 0xc6, 0x08, 0x71, 0x48, 0x82, 0x28, 0xf6, 0x35, 0x6c, 0x3a, 0xa1, 0x23, |
| 20012 | 0x08, 0xa0, 0xb3, 0xea, 0xa0, 0x39, 0xc4, 0xd7, 0xc1, 0x1a, 0x72, 0x63, 0xab, 0x61, 0x77, 0xa6, |
| 20013 | 0xc5, 0xf8, 0x34, 0x88, 0x9d, 0xb1, 0xc8, 0x3c, 0x93, 0xe0, 0xcf, 0x60, 0x3d, 0x3d, 0x28, 0xcf, |
| 20014 | 0x22, 0xf9, 0x51, 0x0b, 0x4a, 0x7e, 0x19, 0xac, 0xdc, 0x22, 0x2a, 0x43, 0xe1, 0xb0, 0x73, 0x7c, |
| 20015 | 0xb4, 0xbd, 0xd3, 0xe6, 0xd7, 0x88, 0x76, 0x3a, 0xba, 0xfe, 0xf2, 0xa8, 0x5b, 0xcf, 0x6c, 0xfd, |
| 20016 | 0x32, 0x0b, 0x99, 0xfd, 0x57, 0xe8, 0x73, 0xc8, 0xf1, 0x6f, 0xea, 0x53, 0x2e, 0x52, 0x34, 0xa7, |
| 20017 | 0x5d, 0x1b, 0xc0, 0xb7, 0x7e, 0xfc, 0xdf, 0xbf, 0xfc, 0x79, 0x66, 0x11, 0x57, 0x5a, 0x93, 0x6f, |
| 20018 | 0xb7, 0x2e, 0x27, 0x2d, 0x96, 0x1b, 0x9e, 0x68, 0x8f, 0xd0, 0x27, 0x90, 0x3d, 0x1a, 0x7b, 0x28, |
| 20019 | 0xf5, 0x82, 0x45, 0x33, 0xfd, 0x26, 0x01, 0x5e, 0x61, 0x42, 0x17, 0x30, 0x08, 0xa1, 0xa3, 0xb1, |
| 20020 | 0x47, 0x45, 0xfe, 0x10, 0xca, 0xea, 0x3d, 0x80, 0x1b, 0x6f, 0x5d, 0x34, 0x6f, 0xbe, 0x63, 0x80, |
| 20021 | 0xef, 0x31, 0x55, 0xb7, 0x30, 0x12, 0xaa, 0xf8, 0x4d, 0x05, 0x75, 0x16, 0xdd, 0x2b, 0x0b, 0xa5, |
| 20022 | 0xde, 0xc9, 0x68, 0xa6, 0x5f, 0x3b, 0x88, 0xcd, 0xc2, 0xbb, 0xb2, 0xa8, 0xc8, 0x3f, 0x16, 0x37, |
| 20023 | 0x0e, 0x7a, 0x1e, 0xba, 0x9f, 0xf0, 0xc5, 0x59, 0xfd, 0xb6, 0xda, 0x5c, 0x4f, 0x67, 0x10, 0x4a, |
| 20024 | 0xee, 0x32, 0x25, 0xab, 0x78, 0x51, 0x28, 0xe9, 0xf9, 0x2c, 0x4f, 0xb4, 0x47, 0x5b, 0x3d, 0xc8, |
| 20025 | 0xb1, 0xef, 0x16, 0xe8, 0x0b, 0xf9, 0xd0, 0x4c, 0xf8, 0x80, 0x93, 0xb2, 0xd0, 0xa1, 0x2f, 0x1e, |
| 20026 | 0x78, 0x99, 0x29, 0xaa, 0xe1, 0x12, 0x55, 0xc4, 0xbe, 0x5a, 0x3c, 0xd1, 0x1e, 0x6d, 0x68, 0x1f, |
| 20027 | 0x6a, 0x5b, 0xff, 0x9c, 0x83, 0x1c, 0x03, 0xec, 0xd0, 0x25, 0x40, 0x80, 0xe1, 0x47, 0x67, 0x17, |
| 20028 | 0xfb, 0x2a, 0x10, 0x9d, 0x5d, 0x1c, 0xfe, 0xc7, 0x4d, 0xa6, 0x74, 0x19, 0x2f, 0x50, 0xa5, 0x0c, |
| 20029 | 0x07, 0x6c, 0x31, 0x68, 0x93, 0xfa, 0xf1, 0xaf, 0x34, 0x81, 0x57, 0xf2, 0xb3, 0x84, 0x92, 0xa4, |
| 20030 | 0x85, 0x80, 0xfc, 0xe8, 0x76, 0x48, 0x00, 0xf1, 0xf1, 0x77, 0x99, 0xc2, 0x16, 0xae, 0x07, 0x0a, |
| 20031 | 0x1d, 0xc6, 0xf1, 0x44, 0x7b, 0xf4, 0x45, 0x03, 0x2f, 0x09, 0x2f, 0x47, 0x7a, 0xd0, 0x8f, 0xa0, |
| 20032 | 0x16, 0x06, 0xaa, 0xd1, 0x83, 0x04, 0x5d, 0x51, 0xbc, 0xbb, 0xf9, 0xf6, 0x74, 0x26, 0x61, 0xd3, |
| 20033 | 0x1a, 0xb3, 0x49, 0x28, 0xe7, 0x9a, 0x2f, 0x09, 0x19, 0x19, 0x94, 0x49, 0xac, 0x01, 0xfa, 0x7b, |
| 20034 | 0x4d, 0x7c, 0x47, 0x08, 0x90, 0x67, 0x94, 0x24, 0x3d, 0x86, 0x6b, 0x37, 0x1f, 0xde, 0xc0, 0x25, |
| 20035 | 0x8c, 0xf8, 0x03, 0x66, 0xc4, 0xef, 0xe2, 0xe5, 0xc0, 0x08, 0xcf, 0x1c, 0x12, 0xcf, 0x16, 0x56, |
| 20036 | 0x7c, 0x71, 0x17, 0xdf, 0x0a, 0x39, 0x27, 0xd4, 0x1b, 0x2c, 0x16, 0x47, 0x8f, 0x13, 0x17, 0x2b, |
| 20037 | 0x84, 0x46, 0x27, 0x2e, 0x56, 0x18, 0x7a, 0x4e, 0x5a, 0x2c, 0x8e, 0x15, 0x27, 0x2d, 0x96, 0xdf, |
| 20038 | 0xb3, 0xf5, 0xff, 0xf3, 0x50, 0xd8, 0xe1, 0x37, 0x7d, 0x91, 0x0d, 0x25, 0x1f, 0x7c, 0x45, 0x6b, |
| 20039 | 0x49, 0x08, 0x53, 0xf0, 0x2e, 0xd1, 0xbc, 0x9f, 0xda, 0x2f, 0x0c, 0x7a, 0x8b, 0x19, 0x74, 0x07, |
| 20040 | 0xaf, 0x52, 0xcd, 0xe2, 0x32, 0x71, 0x8b, 0xc3, 0x18, 0x2d, 0xa3, 0xdf, 0xa7, 0x8e, 0xf8, 0x13, |
| 20041 | 0xa8, 0xa8, 0xe8, 0x28, 0x7a, 0x2b, 0x11, 0xd5, 0x52, 0x01, 0xd6, 0x26, 0x9e, 0xc6, 0x22, 0x34, |
| 20042 | 0xbf, 0xcd, 0x34, 0xaf, 0xe1, 0xdb, 0x09, 0x9a, 0x1d, 0xc6, 0x1a, 0x52, 0xce, 0x91, 0xcd, 0x64, |
| 20043 | 0xe5, 0x21, 0xe0, 0x34, 0x59, 0x79, 0x18, 0x18, 0x9d, 0xaa, 0x7c, 0xcc, 0x58, 0xa9, 0x72, 0x17, |
| 20044 | 0x20, 0xc0, 0x30, 0x51, 0xa2, 0x2f, 0x95, 0x97, 0xa9, 0x68, 0x70, 0x88, 0xc3, 0x9f, 0x18, 0x33, |
| 20045 | 0xb5, 0x62, 0xdf, 0x45, 0xd4, 0x0e, 0x4c, 0xd7, 0xe3, 0x07, 0xb3, 0x1a, 0x02, 0x25, 0x51, 0xe2, |
| 20046 | 0x7c, 0xc2, 0xc8, 0x66, 0xf3, 0xc1, 0x54, 0x1e, 0xa1, 0xfd, 0x21, 0xd3, 0x7e, 0x1f, 0x37, 0x13, |
| 20047 | 0xb4, 0x8f, 0x38, 0x2f, 0xdd, 0x6c, 0x7f, 0x9d, 0x87, 0xf2, 0x0b, 0xc3, 0xb4, 0x3c, 0x62, 0x19, |
| 20048 | 0x56, 0x8f, 0xa0, 0x53, 0xc8, 0xb1, 0x4c, 0x1d, 0x0d, 0xc4, 0x2a, 0x60, 0x17, 0x0d, 0xc4, 0x21, |
| 20049 | 0x34, 0x0b, 0xaf, 0x33, 0xc5, 0x4d, 0xbc, 0x42, 0x15, 0x0f, 0x03, 0xd1, 0x2d, 0x06, 0x42, 0xd1, |
| 20050 | 0x49, 0x9f, 0x41, 0x5e, 0x7c, 0xc3, 0x89, 0x08, 0x0a, 0x81, 0x53, 0xcd, 0xbb, 0xc9, 0x9d, 0x49, |
| 20051 | 0x7b, 0x59, 0x55, 0xe3, 0x32, 0x3e, 0xaa, 0x67, 0x02, 0x10, 0xa0, 0xab, 0xd1, 0x15, 0x8d, 0x81, |
| 20052 | 0xb1, 0xcd, 0xf5, 0x74, 0x86, 0x24, 0x9f, 0xaa, 0x3a, 0xfb, 0x3e, 0x2f, 0xd5, 0xfb, 0x47, 0x30, |
| 20053 | 0xff, 0xdc, 0x70, 0x2f, 0x50, 0x24, 0xf7, 0x2a, 0x37, 0x80, 0x9a, 0xcd, 0xa4, 0x2e, 0xa1, 0xe5, |
| 20054 | 0x3e, 0xd3, 0x72, 0x9b, 0x87, 0x32, 0x55, 0xcb, 0x85, 0xe1, 0xd2, 0xa4, 0x86, 0xfa, 0x90, 0xe7, |
| 20055 | 0x17, 0x82, 0xa2, 0xfe, 0x0b, 0x5d, 0x2a, 0x8a, 0xfa, 0x2f, 0x7c, 0x87, 0xe8, 0x66, 0x2d, 0x23, |
| 20056 | 0x28, 0xca, 0x1b, 0x38, 0x28, 0xf2, 0x39, 0x36, 0x72, 0x5b, 0xa7, 0xb9, 0x96, 0xd6, 0x2d, 0x74, |
| 20057 | 0x3d, 0x60, 0xba, 0xee, 0xe1, 0x46, 0x6c, 0xad, 0x04, 0xe7, 0x13, 0xed, 0xd1, 0x87, 0x1a, 0xfa, |
| 20058 | 0x11, 0x40, 0x00, 0x48, 0xc7, 0x4e, 0x60, 0x14, 0xdb, 0x8e, 0x9d, 0xc0, 0x18, 0x96, 0x8d, 0x37, |
| 20059 | 0x99, 0xde, 0x0d, 0xfc, 0x20, 0xaa, 0xd7, 0x73, 0x0c, 0xcb, 0x3d, 0x23, 0xce, 0x07, 0x1c, 0x74, |
| 20060 | 0x74, 0x2f, 0xcc, 0x11, 0x3d, 0x0c, 0xff, 0xba, 0x00, 0xf3, 0xb4, 0x02, 0xa6, 0x85, 0x42, 0x00, |
| 20061 | 0x1c, 0x44, 0x2d, 0x89, 0x01, 0x7c, 0x51, 0x4b, 0xe2, 0x98, 0x43, 0xb8, 0x50, 0x60, 0xbf, 0x11, |
| 20062 | 0x21, 0x8c, 0x81, 0x3a, 0xda, 0x86, 0xb2, 0x82, 0x2c, 0xa0, 0x04, 0x61, 0x61, 0xe4, 0x30, 0x9a, |
| 20063 | 0x7a, 0x12, 0x60, 0x09, 0x7c, 0x87, 0xe9, 0x5b, 0xe1, 0xa9, 0x87, 0xe9, 0xeb, 0x73, 0x0e, 0xaa, |
| 20064 | 0xf0, 0x35, 0x54, 0x54, 0xf4, 0x01, 0x25, 0xc8, 0x8b, 0xa0, 0x92, 0xd1, 0x30, 0x9b, 0x04, 0x5e, |
| 20065 | 0x84, 0x0f, 0xbe, 0xff, 0x3b, 0x18, 0xc9, 0x46, 0x15, 0x0f, 0xa0, 0x20, 0xe0, 0x88, 0xa4, 0x59, |
| 20066 | 0x86, 0x21, 0xcc, 0xa4, 0x59, 0x46, 0xb0, 0x8c, 0x70, 0x71, 0xc9, 0x34, 0xd2, 0x37, 0x2e, 0x99, |
| 20067 | 0xca, 0x84, 0xb6, 0x67, 0xc4, 0x4b, 0xd3, 0x16, 0xa0, 0x6b, 0x69, 0xda, 0x94, 0xb7, 0xdd, 0x34, |
| 20068 | 0x6d, 0xe7, 0xc4, 0x13, 0xc7, 0x45, 0xbe, 0x45, 0xa2, 0x14, 0x61, 0x6a, 0xfa, 0xc0, 0xd3, 0x58, |
| 20069 | 0x92, 0x6a, 0xff, 0x40, 0xa1, 0xcc, 0x1d, 0x57, 0x00, 0x01, 0x58, 0x12, 0x2d, 0xe8, 0x12, 0x11, |
| 20070 | 0xd7, 0x68, 0x41, 0x97, 0x8c, 0xb7, 0x84, 0x43, 0x43, 0xa0, 0x97, 0xbf, 0x7a, 0x50, 0xcd, 0x3f, |
| 20071 | 0xd3, 0x00, 0xc5, 0x71, 0x15, 0xf4, 0x38, 0x59, 0x7a, 0x22, 0x8e, 0xdb, 0x7c, 0xff, 0xcd, 0x98, |
| 20072 | 0x93, 0xa2, 0x7d, 0x60, 0x52, 0x8f, 0x71, 0x8f, 0x5e, 0x53, 0xa3, 0xfe, 0x42, 0x83, 0x6a, 0x08, |
| 20073 | 0x94, 0x41, 0xef, 0xa4, 0xac, 0x69, 0x04, 0x06, 0x6e, 0xbe, 0x7b, 0x23, 0x5f, 0x52, 0xa5, 0xab, |
| 20074 | 0xec, 0x00, 0x59, 0xf2, 0xff, 0x44, 0x83, 0x5a, 0x18, 0xc4, 0x41, 0x29, 0xb2, 0x63, 0x30, 0x72, |
| 20075 | 0x73, 0xe3, 0x66, 0xc6, 0xe9, 0xcb, 0x13, 0x54, 0xfb, 0x03, 0x28, 0x08, 0xd8, 0x27, 0x69, 0xe3, |
| 20076 | 0x87, 0x01, 0xe8, 0xa4, 0x8d, 0x1f, 0xc1, 0x8c, 0x12, 0x36, 0xbe, 0x63, 0x0f, 0x88, 0x72, 0xcc, |
| 20077 | 0x04, 0x2e, 0x94, 0xa6, 0x6d, 0xfa, 0x31, 0x8b, 0x80, 0x4a, 0x69, 0xda, 0x82, 0x63, 0x26, 0x01, |
| 20078 | 0x21, 0x94, 0x22, 0xec, 0x86, 0x63, 0x16, 0xc5, 0x93, 0x12, 0x8e, 0x19, 0x53, 0xa8, 0x1c, 0xb3, |
| 20079 | 0x00, 0xba, 0x49, 0x3a, 0x66, 0x31, 0x3c, 0x3d, 0xe9, 0x98, 0xc5, 0xd1, 0x9f, 0x84, 0x75, 0x64, |
| 20080 | 0x7a, 0x43, 0xc7, 0x6c, 0x29, 0x01, 0xe5, 0x41, 0xef, 0xa7, 0x38, 0x31, 0x11, 0xa6, 0x6f, 0x7e, |
| 20081 | 0xf0, 0x86, 0xdc, 0xa9, 0x7b, 0x9c, 0xbb, 0x5f, 0xee, 0xf1, 0xbf, 0xd1, 0x60, 0x39, 0x09, 0x21, |
| 20082 | 0x42, 0x29, 0x7a, 0x52, 0xe0, 0xfd, 0xe6, 0xe6, 0x9b, 0xb2, 0x4f, 0xf7, 0x96, 0xbf, 0xeb, 0x9f, |
| 20083 | 0xd6, 0xff, 0xed, 0xab, 0x35, 0xed, 0x3f, 0xbf, 0x5a, 0xd3, 0xfe, 0xe7, 0xab, 0x35, 0xed, 0x6f, |
| 20084 | 0xff, 0x77, 0x6d, 0xee, 0x34, 0xcf, 0x7e, 0x5d, 0xf9, 0xed, 0x5f, 0x05, 0x00, 0x00, 0xff, 0xff, |
| 20085 | 0x52, 0x4e, 0xd7, 0x33, 0xe4, 0x39, 0x00, 0x00, |
Scott Baker | eee8dd8 | 2019-09-24 12:52:34 -0700 | [diff] [blame] | 20086 | } |